diff --git a/assets/IFTM-CYfROHWP.png b/assets/IFTM-CYfROHWP.png new file mode 100644 index 0000000..c0d6502 Binary files /dev/null and b/assets/IFTM-CYfROHWP.png differ diff --git a/assets/index-DbEoV8Dq.js b/assets/index-BenmRWrA.js similarity index 50% rename from assets/index-DbEoV8Dq.js rename to assets/index-BenmRWrA.js index 5f3129e..188b140 100644 --- a/assets/index-DbEoV8Dq.js +++ b/assets/index-BenmRWrA.js @@ -1,4 +1,4 @@ -function _d(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rd={exports:{}},Al={},Nd={exports:{}},Y={};/** +function Rd(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Od(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd={exports:{}},Al={},Ld={exports:{}},Y={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function _d(e,t){for(var n=0;n>>1,q=N[Q];if(0>>1;Qi(Be,M))yei(st,Be)?(N[Q]=st,N[ye]=M,Q=ye):(N[Q]=Be,N[ve]=M,Q=ve);else if(yei(st,M))N[Q]=st,N[ye]=M,Q=ye;else break e}}return b}function i(N,b){var M=N.sortIndex-b.sortIndex;return M!==0?M:N.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,d=null,h=3,g=!1,y=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var b=n(s);b!==null;){if(b.callback===null)r(s);else if(b.startTime<=N)r(s),b.sortIndex=b.expirationTime,t(u,b);else break;b=n(s)}}function x(N){if(w=!1,m(N),!y)if(n(u)!==null)y=!0,Ie(_);else{var b=n(s);b!==null&&J(x,b.startTime-N)}}function _(N,b){y=!1,w&&(w=!1,p(O),O=-1),g=!0;var M=h;try{for(m(b),d=n(u);d!==null&&(!(d.expirationTime>b)||N&&!B());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,h=d.priorityLevel;var q=Q(d.expirationTime<=b);b=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(u)&&r(u),m(b)}else r(u);d=n(u)}if(d!==null)var ut=!0;else{var ve=n(s);ve!==null&&J(x,ve.startTime-b),ut=!1}return ut}finally{d=null,h=M,g=!1}}var v=!1,C=null,O=-1,A=5,F=-1;function B(){return!(e.unstable_now()-FN||125Q?(N.sortIndex=M,t(s,N),n(u)===null&&N===n(s)&&(w?(p(O),O=-1):w=!0,J(x,M-Q))):(N.sortIndex=q,t(u,N),y||g||(y=!0,Ie(_))),N},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(N){var b=h;return function(){var M=h;h=b;try{return N.apply(this,arguments)}finally{h=M}}}})(zd);$d.exports=zd;var xg=$d.exports;/** + */(function(e){function t(O,I){var M=O.length;O.push(I);e:for(;0>>1,q=O[Q];if(0>>1;Qi(Be,M))wei(st,Be)?(O[Q]=st,O[we]=M,Q=we):(O[Q]=Be,O[ye]=M,Q=ye);else if(wei(st,M))O[Q]=st,O[we]=M,Q=we;else break e}}return I}function i(O,I){var M=O.sortIndex-I.sortIndex;return M!==0?M:O.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,d=null,h=3,g=!1,y=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(O){for(var I=n(s);I!==null;){if(I.callback===null)r(s);else if(I.startTime<=O)r(s),I.sortIndex=I.expirationTime,t(u,I);else break;I=n(s)}}function S(O){if(w=!1,m(O),!y)if(n(u)!==null)y=!0,De(T);else{var I=n(s);I!==null&&Z(S,I.startTime-O)}}function T(O,I){y=!1,w&&(w=!1,p(N),N=-1),g=!0;var M=h;try{for(m(I),d=n(u);d!==null&&(!(d.expirationTime>I)||O&&!B());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,h=d.priorityLevel;var q=Q(d.expirationTime<=I);I=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(u)&&r(u),m(I)}else r(u);d=n(u)}if(d!==null)var ut=!0;else{var ye=n(s);ye!==null&&Z(S,ye.startTime-I),ut=!1}return ut}finally{d=null,h=M,g=!1}}var v=!1,C=null,N=-1,b=5,F=-1;function B(){return!(e.unstable_now()-FO||125Q?(O.sortIndex=M,t(s,O),n(u)===null&&O===n(s)&&(w?(p(N),N=-1):w=!0,Z(S,M-Q))):(O.sortIndex=q,t(u,O),y||g||(y=!0,De(T))),O},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(O){var I=h;return function(){var M=h;h=I;try{return O.apply(this,arguments)}finally{h=M}}}})(Bd);Ud.exports=Bd;var kg=Ud.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function _d(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ya=Object.prototype.hasOwnProperty,Eg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_c={},Tc={};function kg(e){return Ya.call(Tc,e)?!0:Ya.call(_c,e)?!1:Eg.test(e)?Tc[e]=!0:(_c[e]=!0,!1)}function Cg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pg(e,t,n,r){if(t===null||typeof t>"u"||Cg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new Xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ue[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var as=/[\-:]([a-z])/g;function us(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(as,us);Ue[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(as,us);Ue[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(as,us);Ue[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ue[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ue.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ue[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ss(e,t,n,r){var i=Ue.hasOwnProperty(t)?Ue[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qa=Object.prototype.hasOwnProperty,Cg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rc={},Oc={};function Pg(e){return qa.call(Oc,e)?!0:qa.call(Rc,e)?!1:Cg.test(e)?Oc[e]=!0:(Rc[e]=!0,!1)}function _g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tg(e,t,n,r){if(t===null||typeof t>"u"||_g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new Xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ue[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ss=/[\-:]([a-z])/g;function cs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ss,cs);Ue[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ss,cs);Ue[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ss,cs);Ue[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ue[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ue.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ue[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function fs(e,t,n,r){var i=Ue.hasOwnProperty(t)?Ue[t]:null;(i!==null?i.type!==0:r||!(2a||i[l]!==o[a]){var u=` -`+i[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{pa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mi(e):""}function _g(e){switch(e.tag){case 5:return mi(e.type);case 16:return mi("Lazy");case 13:return mi("Suspense");case 19:return mi("SuspenseList");case 0:case 2:case 15:return e=ha(e.type,!1),e;case 11:return e=ha(e.type.render,!1),e;case 1:return e=ha(e.type,!0),e;default:return""}}function Ja(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fr:return"Fragment";case cr:return"Portal";case Ga:return"Profiler";case cs:return"StrictMode";case qa:return"Suspense";case Xa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hd:return(e.displayName||"Context")+".Consumer";case Wd:return(e._context.displayName||"Context")+".Provider";case fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ds:return t=e.displayName||null,t!==null?t:Ja(e.type)||"Memo";case fn:t=e._payload,e=e._init;try{return Ja(e(t))}catch{}}return null}function Tg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ja(t);case 8:return t===cs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rg(e){var t=Qd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yo(e){e._valueTracker||(e._valueTracker=Rg(e))}function Kd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function il(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Za(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yd(e,t){t=t.checked,t!=null&&ss(e,"checked",t,!1)}function eu(e,t){Yd(e,t);var n=Rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tu(e,t.type,n):t.hasOwnProperty("defaultValue")&&tu(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tu(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gi=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ng=["Webkit","ms","Moz","O"];Object.keys(Si).forEach(function(e){Ng.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Si[t]=Si[e]})});function Jd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Si.hasOwnProperty(e)&&Si[e]?(""+t).trim():t+"px"}function Zd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Jd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Og=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function iu(e,t){if(t){if(Og[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function ou(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lu=null;function ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var au=null,Tr=null,Rr=null;function Ac(e){if(e=lo(e)){if(typeof au!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Ml(t),au(e.stateNode,e.type,t))}}function ep(e){Tr?Rr?Rr.push(e):Rr=[e]:Tr=e}function tp(){if(Tr){var e=Tr,t=Rr;if(Rr=Tr=null,Ac(e),t)for(e=0;e>>=0,e===0?32:31-(Ug(e)/Bg|0)|0}var So=64,xo=4194304;function vi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ul(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=vi(a):(o&=l,o!==0&&(r=vi(o)))}else l=n&~i,l!==0?r=vi(l):o!==0&&(r=vi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function io(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function Qg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ei),Bc=" ",Wc=!1;function xp(e,t){switch(e){case"keyup":return Sv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ep(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dr=!1;function Ev(e,t){switch(e){case"compositionend":return Ep(t);case"keypress":return t.which!==32?null:(Wc=!0,Bc);case"textInput":return e=t.data,e===Bc&&Wc?null:e;default:return null}}function kv(e,t){if(dr)return e==="compositionend"||!xs&&xp(e,t)?(e=wp(),Bo=ys=mn=null,dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Kc(n)}}function _p(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_p(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tp(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function Es(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jv(e){var t=Tp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_p(n.ownerDocument.documentElement,n)){if(r!==null&&Es(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Yc(n,o);var l=Yc(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,pr=null,pu=null,Ci=null,hu=!1;function Gc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hu||pr==null||pr!==il(r)||(r=pr,"selectionStart"in r&&Es(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ci&&Ui(Ci,r)||(Ci=r,r=fl(pu,"onSelect"),0gr||(e.current=Su[gr],Su[gr]=null,gr--)}function oe(e,t){gr++,Su[gr]=e.current,e.current=t}var Nn={},Ke=Ln(Nn),rt=Ln(!1),qn=Nn;function Ar(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function it(e){return e=e.childContextTypes,e!=null}function pl(){ue(rt),ue(Ke)}function nf(e,t,n){if(Ke.current!==Nn)throw Error(L(168));oe(Ke,t),oe(rt,n)}function Ip(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,Tg(e)||"Unknown",i));return pe({},n,r)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,qn=Ke.current,oe(Ke,e),oe(rt,rt.current),!0}function rf(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Ip(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,ue(rt),ue(Ke),oe(Ke,e)):ue(rt),oe(rt,n)}var Qt=null,$l=!1,Ra=!1;function Fp(e){Qt===null?Qt=[e]:Qt.push(e)}function Hv(e){$l=!0,Fp(e)}function jn(){if(!Ra&&Qt!==null){Ra=!0;var e=0,t=te;try{var n=Qt;for(te=1;e>=l,i-=l,Kt=1<<32-jt(t)+i|n<O?(A=C,C=null):A=C.sibling;var F=h(p,C,m[O],x);if(F===null){C===null&&(C=A);break}e&&C&&F.alternate===null&&t(p,C),f=o(F,f,O),v===null?_=F:v.sibling=F,v=F,C=A}if(O===m.length)return n(p,C),se&&Mn(p,O),_;if(C===null){for(;OO?(A=C,C=null):A=C.sibling;var B=h(p,C,F.value,x);if(B===null){C===null&&(C=A);break}e&&C&&B.alternate===null&&t(p,C),f=o(B,f,O),v===null?_=B:v.sibling=B,v=B,C=A}if(F.done)return n(p,C),se&&Mn(p,O),_;if(C===null){for(;!F.done;O++,F=m.next())F=d(p,F.value,x),F!==null&&(f=o(F,f,O),v===null?_=F:v.sibling=F,v=F);return se&&Mn(p,O),_}for(C=r(p,C);!F.done;O++,F=m.next())F=g(C,p,O,F.value,x),F!==null&&(e&&F.alternate!==null&&C.delete(F.key===null?O:F.key),f=o(F,f,O),v===null?_=F:v.sibling=F,v=F);return e&&C.forEach(function(ce){return t(p,ce)}),se&&Mn(p,O),_}function E(p,f,m,x){if(typeof m=="object"&&m!==null&&m.type===fr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case vo:e:{for(var _=m.key,v=f;v!==null;){if(v.key===_){if(_=m.type,_===fr){if(v.tag===7){n(p,v.sibling),f=i(v,m.props.children),f.return=p,p=f;break e}}else if(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===fn&&ff(_)===v.type){n(p,v.sibling),f=i(v,m.props),f.ref=oi(p,v,m),f.return=p,p=f;break e}n(p,v);break}else t(p,v);v=v.sibling}m.type===fr?(f=Kn(m.props.children,p.mode,x,m.key),f.return=p,p=f):(x=qo(m.type,m.key,m.props,null,p.mode,x),x.ref=oi(p,f,m),x.return=p,p=x)}return l(p);case cr:e:{for(v=m.key;f!==null;){if(f.key===v)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(p,f.sibling),f=i(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=Ia(m,p.mode,x),f.return=p,p=f}return l(p);case fn:return v=m._init,E(p,f,v(m._payload),x)}if(gi(m))return y(p,f,m,x);if(ei(m))return w(p,f,m,x);Ro(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(p,f.sibling),f=i(f,m),f.return=p,p=f):(n(p,f),f=ba(m,p.mode,x),f.return=p,p=f),l(p)):n(p,f)}return E}var br=Vp(!0),Qp=Vp(!1),ao={},Bt=Ln(ao),Vi=Ln(ao),Qi=Ln(ao);function Bn(e){if(e===ao)throw Error(L(174));return e}function Ls(e,t){switch(oe(Qi,t),oe(Vi,e),oe(Bt,ao),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ru(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ru(t,e)}ue(Bt),oe(Bt,t)}function Ir(){ue(Bt),ue(Vi),ue(Qi)}function Kp(e){Bn(Qi.current);var t=Bn(Bt.current),n=ru(t,e.type);t!==n&&(oe(Vi,e),oe(Bt,n))}function js(e){Vi.current===e&&(ue(Bt),ue(Vi))}var fe=Ln(0);function Sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Na=[];function As(){for(var e=0;en?n:4,e(!0);var r=Oa.transition;Oa.transition={};try{e(!1),t()}finally{te=n,Oa.transition=r}}function sh(){return Pt().memoizedState}function Yv(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ch(e))fh(t,n);else if(n=Up(e,t,n,r),n!==null){var i=Ge();At(n,e,r,i),dh(n,t,r)}}function Gv(e,t,n){var r=Pn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ch(e))fh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,bt(a,l)){var u=t.interleaved;u===null?(i.next=i,Ns(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Up(e,t,i,r),n!==null&&(i=Ge(),At(n,e,r,i),dh(n,t,r))}}function ch(e){var t=e.alternate;return e===de||t!==null&&t===de}function fh(e,t){Pi=xl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ms(e,n)}}var El={readContext:Ct,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},qv={readContext:Ct,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:pf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qo(4194308,4,ih.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qo(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Yv.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:df,useDebugValue:Ms,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=df(!1),t=e[0];return e=Kv.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,i=Mt();if(se){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),De===null)throw Error(L(349));Jn&30||qp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,pf(Jp.bind(null,r,o,e),[e]),r.flags|=2048,Gi(9,Xp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mt(),t=De.identifierPrefix;if(se){var n=Yt,r=Kt;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ki++,0")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{ma=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mi(e):""}function Rg(e){switch(e.tag){case 5:return mi(e.type);case 16:return mi("Lazy");case 13:return mi("Suspense");case 19:return mi("SuspenseList");case 0:case 2:case 15:return e=ga(e.type,!1),e;case 11:return e=ga(e.type.render,!1),e;case 1:return e=ga(e.type,!0),e;default:return""}}function eu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fr:return"Fragment";case cr:return"Portal";case Xa:return"Profiler";case ds:return"StrictMode";case Za:return"Suspense";case Ja:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qd:return(e.displayName||"Context")+".Consumer";case Vd:return(e._context.displayName||"Context")+".Provider";case ps:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hs:return t=e.displayName||null,t!==null?t:eu(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return eu(e(t))}catch{}}return null}function Og(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return eu(t);case 8:return t===ds?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function On(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ng(e){var t=Yd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yo(e){e._valueTracker||(e._valueTracker=Ng(e))}function Gd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function il(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tu(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=On(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qd(e,t){t=t.checked,t!=null&&fs(e,"checked",t,!1)}function nu(e,t){qd(e,t);var n=On(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&ru(e,t.type,On(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ru(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gi=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ii(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lg=["Webkit","ms","Moz","O"];Object.keys(xi).forEach(function(e){Lg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xi[t]=xi[e]})});function ep(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xi.hasOwnProperty(e)&&xi[e]?(""+t).trim():t+"px"}function tp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ep(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jg=he({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lu(e,t){if(t){if(jg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function au(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uu=null;function ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var su=null,Tr=null,Rr=null;function Ic(e){if(e=lo(e)){if(typeof su!="function")throw Error(L(280));var t=e.stateNode;t&&(t=$l(t),su(e.stateNode,e.type,t))}}function np(e){Tr?Rr?Rr.push(e):Rr=[e]:Tr=e}function rp(){if(Tr){var e=Tr,t=Rr;if(Rr=Tr=null,Ic(e),t)for(e=0;e>>=0,e===0?32:31-(Wg(e)/Hg|0)|0}var xo=64,So=4194304;function vi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ul(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=vi(a):(o&=l,o!==0&&(r=vi(o)))}else l=n&~i,l!==0?r=vi(l):o!==0&&(r=vi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function io(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function Yg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ei),Hc=" ",Vc=!1;function kp(e,t){switch(e){case"keyup":return Ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dr=!1;function Cv(e,t){switch(e){case"compositionend":return Cp(t);case"keypress":return t.which!==32?null:(Vc=!0,Hc);case"textInput":return e=t.data,e===Hc&&Vc?null:e;default:return null}}function Pv(e,t){if(dr)return e==="compositionend"||!ks&&kp(e,t)?(e=Sp(),Bo=xs=gn=null,dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gc(n)}}function Rp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Op(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function Cs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Av(e){var t=Op(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rp(n.ownerDocument.documentElement,n)){if(r!==null&&Cs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=qc(n,o);var l=qc(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,pr=null,mu=null,Ci=null,gu=!1;function Xc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gu||pr==null||pr!==il(r)||(r=pr,"selectionStart"in r&&Cs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ci&&Ui(Ci,r)||(Ci=r,r=fl(mu,"onSelect"),0gr||(e.current=Eu[gr],Eu[gr]=null,gr--)}function le(e,t){gr++,Eu[gr]=e.current,e.current=t}var Nn={},Ke=jn(Nn),rt=jn(!1),qn=Nn;function br(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function it(e){return e=e.childContextTypes,e!=null}function pl(){se(rt),se(Ke)}function of(e,t,n){if(Ke.current!==Nn)throw Error(L(168));le(Ke,t),le(rt,n)}function Mp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,Og(e)||"Unknown",i));return he({},n,r)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,qn=Ke.current,le(Ke,e),le(rt,rt.current),!0}function lf(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Mp(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,se(rt),se(Ke),le(Ke,e)):se(rt),le(rt,n)}var Kt=null,zl=!1,Na=!1;function $p(e){Kt===null?Kt=[e]:Kt.push(e)}function Qv(e){zl=!0,$p(e)}function bn(){if(!Na&&Kt!==null){Na=!0;var e=0,t=te;try{var n=Kt;for(te=1;e>=l,i-=l,Yt=1<<32-jt(t)+i|n<N?(b=C,C=null):b=C.sibling;var F=h(p,C,m[N],S);if(F===null){C===null&&(C=b);break}e&&C&&F.alternate===null&&t(p,C),f=o(F,f,N),v===null?T=F:v.sibling=F,v=F,C=b}if(N===m.length)return n(p,C),ce&&Mn(p,N),T;if(C===null){for(;NN?(b=C,C=null):b=C.sibling;var B=h(p,C,F.value,S);if(B===null){C===null&&(C=b);break}e&&C&&B.alternate===null&&t(p,C),f=o(B,f,N),v===null?T=B:v.sibling=B,v=B,C=b}if(F.done)return n(p,C),ce&&Mn(p,N),T;if(C===null){for(;!F.done;N++,F=m.next())F=d(p,F.value,S),F!==null&&(f=o(F,f,N),v===null?T=F:v.sibling=F,v=F);return ce&&Mn(p,N),T}for(C=r(p,C);!F.done;N++,F=m.next())F=g(C,p,N,F.value,S),F!==null&&(e&&F.alternate!==null&&C.delete(F.key===null?N:F.key),f=o(F,f,N),v===null?T=F:v.sibling=F,v=F);return e&&C.forEach(function(fe){return t(p,fe)}),ce&&Mn(p,N),T}function E(p,f,m,S){if(typeof m=="object"&&m!==null&&m.type===fr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case vo:e:{for(var T=m.key,v=f;v!==null;){if(v.key===T){if(T=m.type,T===fr){if(v.tag===7){n(p,v.sibling),f=i(v,m.props.children),f.return=p,p=f;break e}}else if(v.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===dn&&pf(T)===v.type){n(p,v.sibling),f=i(v,m.props),f.ref=oi(p,v,m),f.return=p,p=f;break e}n(p,v);break}else t(p,v);v=v.sibling}m.type===fr?(f=Kn(m.props.children,p.mode,S,m.key),f.return=p,p=f):(S=qo(m.type,m.key,m.props,null,p.mode,S),S.ref=oi(p,f,m),S.return=p,p=S)}return l(p);case cr:e:{for(v=m.key;f!==null;){if(f.key===v)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(p,f.sibling),f=i(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=Ma(m,p.mode,S),f.return=p,p=f}return l(p);case dn:return v=m._init,E(p,f,v(m._payload),S)}if(gi(m))return y(p,f,m,S);if(ei(m))return w(p,f,m,S);Ro(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(p,f.sibling),f=i(f,m),f.return=p,p=f):(n(p,f),f=Fa(m,p.mode,S),f.return=p,p=f),l(p)):n(p,f)}return E}var Ir=Kp(!0),Yp=Kp(!1),ao={},Bt=jn(ao),Vi=jn(ao),Qi=jn(ao);function Bn(e){if(e===ao)throw Error(L(174));return e}function bs(e,t){switch(le(Qi,t),le(Vi,e),le(Bt,ao),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ou(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ou(t,e)}se(Bt),le(Bt,t)}function Dr(){se(Bt),se(Vi),se(Qi)}function Gp(e){Bn(Qi.current);var t=Bn(Bt.current),n=ou(t,e.type);t!==n&&(le(Vi,e),le(Bt,n))}function As(e){Vi.current===e&&(se(Bt),se(Vi))}var de=jn(0);function xl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var La=[];function Is(){for(var e=0;en?n:4,e(!0);var r=ja.transition;ja.transition={};try{e(!1),t()}finally{te=n,ja.transition=r}}function fh(){return Pt().memoizedState}function qv(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dh(e))ph(t,n);else if(n=Wp(e,t,n,r),n!==null){var i=Ge();bt(n,e,r,i),hh(n,t,r)}}function Xv(e,t,n){var r=_n(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dh(e))ph(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,It(a,l)){var u=t.interleaved;u===null?(i.next=i,Ls(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Wp(e,t,i,r),n!==null&&(i=Ge(),bt(n,e,r,i),hh(n,t,r))}}function dh(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function ph(e,t){Pi=Sl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vs(e,n)}}var El={readContext:Ct,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Zv={readContext:Ct,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:mf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qo(4194308,4,lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qo(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qv.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:hf,useDebugValue:zs,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=hf(!1),t=e[0];return e=Gv.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=Mt();if(ce){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ae===null)throw Error(L(349));Zn&30||Zp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,mf(eh.bind(null,r,o,e),[e]),r.flags|=2048,Gi(9,Jp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mt(),t=Ae.identifierPrefix;if(ce){var n=Gt,r=Yt;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ki++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[zt]=t,e[Hi]=r,xh(e,t,!1,!1),t.stateNode=e;e:{switch(l=ou(n,r),n){case"dialog":le("cancel",e),le("close",e),i=r;break;case"iframe":case"object":case"embed":le("load",e),i=r;break;case"video":case"audio":for(i=0;iMr&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),li(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!se)return He(t),null}else 2*xe()-o.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xe(),t.sibling=null,n=fe.current,oe(fe,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return Hs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function iy(e,t){switch(Cs(t),t.tag){case 1:return it(t.type)&&pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ir(),ue(rt),ue(Ke),As(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return js(t),null;case 13:if(ue(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(fe),null;case 4:return Ir(),null;case 10:return Rs(t.type._context),null;case 22:case 23:return Hs(),null;case 24:return null;default:return null}}var Oo=!1,Qe=!1,oy=typeof WeakSet=="function"?WeakSet:Set,D=null;function Sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function ju(e,t,n){try{n()}catch(r){me(e,t,r)}}var Ef=!1;function ly(e,t){if(mu=sl,e=Tp(),Es(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,d=e,h=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(a=l+i),d!==o||r!==0&&d.nodeType!==3||(u=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++s===i&&(a=l),h===o&&++c===r&&(u=l),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(gu={focusedElem:e,selectionRange:n},sl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,E=y.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Rt(t.type,w),E);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(x){me(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return y=Ef,Ef=!1,y}function _i(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ju(t,n,o)}i=i.next}while(i!==r)}}function Bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Au(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ch(e){var t=e.alternate;t!==null&&(e.alternate=null,Ch(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Hi],delete t[wu],delete t[Bv],delete t[Wv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ph(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ph(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Du(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dl));else if(r!==4&&(e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}function bu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}var Me=null,Nt=!1;function an(e,t,n){for(n=n.child;n!==null;)_h(e,t,n),n=n.sibling}function _h(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Dl,n)}catch{}switch(n.tag){case 5:Qe||Sr(n,t);case 6:var r=Me,i=Nt;Me=null,an(e,t,n),Me=r,Nt=i,Me!==null&&(Nt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Nt?(e=Me,n=n.stateNode,e.nodeType===8?Ta(e.parentNode,n):e.nodeType===1&&Ta(e,n),$i(e)):Ta(Me,n.stateNode));break;case 4:r=Me,i=Nt,Me=n.stateNode.containerInfo,Nt=!0,an(e,t,n),Me=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&ju(n,t,l),i=i.next}while(i!==r)}an(e,t,n);break;case 1:if(!Qe&&(Sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,an(e,t,n),Qe=r):an(e,t,n);break;default:an(e,t,n)}}function Cf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oy),t.forEach(function(r){var i=my.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uy(r/1960))-r,10e?16:e,gn===null)var r=!1;else{if(e=gn,gn=null,Pl=0,X&6)throw Error(L(331));var i=X;for(X|=4,D=e.current;D!==null;){var o=D,l=o.child;if(D.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uxe()-Bs?Qn(e,0):Us|=n),ot(e,t)}function Dh(e,t){t===0&&(e.mode&1?(t=xo,xo<<=1,!(xo&130023424)&&(xo=4194304)):t=1);var n=Ge();e=Zt(e,t),e!==null&&(io(e,t,n),ot(e,n))}function hy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dh(e,n)}function my(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Dh(e,n)}var bh;bh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,ny(e,t,n);tt=!!(e.flags&131072)}else tt=!1,se&&t.flags&1048576&&Mp(t,gl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ko(e,t),e=t.pendingProps;var i=Ar(t,Ke.current);Or(t,n),i=bs(null,t,r,e,i,n);var o=Is();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(r)?(o=!0,hl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Os(t),i.updater=zl,t.stateNode=i,i._reactInternals=t,Pu(t,r,e,n),t=Ru(null,t,r,!0,o,n)):(t.tag=0,se&&o&&ks(t),Ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ko(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=vy(r),e=Rt(r,e),i){case 0:t=Tu(null,t,r,e,n);break e;case 1:t=wf(null,t,r,e,n);break e;case 11:t=vf(null,t,r,e,n);break e;case 14:t=yf(null,t,r,Rt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Tu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),wf(e,t,r,i,n);case 3:e:{if(yh(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Bp(e,t),wl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Fr(Error(L(423)),t),t=Sf(e,t,r,n,i);break e}else if(r!==i){i=Fr(Error(L(424)),t),t=Sf(e,t,r,n,i);break e}else for(pt=En(t.stateNode.containerInfo.firstChild),ht=t,se=!0,Lt=null,n=Qp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dr(),r===i){t=en(e,t,n);break e}Ye(e,t,r,n)}t=t.child}return t;case 5:return Kp(t),e===null&&Eu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,vu(r,i)?l=null:o!==null&&vu(r,o)&&(t.flags|=32),vh(e,t),Ye(e,t,l,n),t.child;case 6:return e===null&&Eu(t),null;case 13:return wh(e,t,n);case 4:return Ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=br(t,null,r,n):Ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),vf(e,t,r,i,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,oe(vl,r._currentValue),r._currentValue=l,o!==null)if(bt(o.value,l)){if(o.children===i.children&&!rt.current){t=en(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Gt(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ku(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(L(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ku(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Or(t,n),i=Ct(i),r=r(i),t.flags|=1,Ye(e,t,r,n),t.child;case 14:return r=t.type,i=Rt(r,t.pendingProps),i=Rt(r.type,i),yf(e,t,r,i,n);case 15:return mh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Ko(e,t),t.tag=1,it(r)?(e=!0,hl(t)):e=!1,Or(t,n),Hp(t,r,i),Pu(t,r,i,n),Ru(null,t,r,!0,e,n);case 19:return Sh(e,t,n);case 22:return gh(e,t,n)}throw Error(L(156,t.tag))};function Ih(e,t){return up(e,t)}function gy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,r){return new gy(e,t,n,r)}function Qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vy(e){if(typeof e=="function")return Qs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fs)return 11;if(e===ds)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Qs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fr:return Kn(n.children,i,o,t);case cs:l=8,i|=8;break;case Ga:return e=Et(12,n,t,i|2),e.elementType=Ga,e.lanes=o,e;case qa:return e=Et(13,n,t,i),e.elementType=qa,e.lanes=o,e;case Xa:return e=Et(19,n,t,i),e.elementType=Xa,e.lanes=o,e;case Vd:return Hl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wd:l=10;break e;case Hd:l=9;break e;case fs:l=11;break e;case ds:l=14;break e;case fn:l=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Et(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Kn(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=Et(22,e,r,t),e.elementType=Vd,e.lanes=n,e.stateNode={isHidden:!1},e}function ba(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function Ia(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ga(0),this.expirationTimes=ga(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ga(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ks(e,t,n,r,i,o,l,a,u){return e=new yy(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Et(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Os(o),e}function wy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zh)}catch(e){console.error(e)}}zh(),Md.exports=gt;var Xs=Md.exports;const Cy=Td(Xs),Py=_d({__proto__:null,default:Cy},[Xs]);var jf=Xs;Ka.createRoot=jf.createRoot,Ka.hydrateRoot=jf.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ia(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ru(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ty=typeof WeakMap=="function"?WeakMap:Map;function mh(e,t,n){n=qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Cl||(Cl=!0,Mu=r),Ru(e,t)},n}function gh(e,t,n){n=qt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ru(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ru(e,t),typeof r!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function gf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ty;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=my.bind(null,e,t,n),t.then(e,e))}function vf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function yf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qt(-1,1),t.tag=2,Cn(n,t,1))),n.lanes|=1),e)}var ny=nn.ReactCurrentOwner,tt=!1;function Ye(e,t,n,r){t.child=e===null?Yp(t,null,n,r):Ir(t,e.child,n,r)}function wf(e,t,n,r,i){n=n.render;var o=t.ref;return Nr(t,i),r=Fs(e,t,n,r,o,i),n=Ms(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tn(e,t,i)):(ce&&n&&Ps(t),t.flags|=1,Ye(e,t,r,i),t.child)}function xf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ys(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,vh(e,t,o,r,i)):(e=qo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ui,n(l,r)&&e.ref===t.ref)return tn(e,t,i)}return t.flags|=1,e=Tn(o,r),e.ref=t.ref,e.return=t,t.child=e}function vh(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ui(o,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,tn(e,t,i)}return Ou(e,t,n,r,i)}function yh(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(Sr,dt),dt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(Sr,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,le(Sr,dt),dt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,le(Sr,dt),dt|=r;return Ye(e,t,i,n),t.child}function wh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ou(e,t,n,r,i){var o=it(n)?qn:Ke.current;return o=br(t,o),Nr(t,i),n=Fs(e,t,n,r,o,i),r=Ms(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tn(e,t,i)):(ce&&r&&Ps(t),t.flags|=1,Ye(e,t,n,i),t.child)}function Sf(e,t,n,r,i){if(it(n)){var o=!0;hl(t)}else o=!1;if(Nr(t,i),t.stateNode===null)Ko(e,t),Qp(t,n,r),Tu(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=Ct(s):(s=it(n)?qn:Ke.current,s=br(t,s));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==s)&&df(t,l,r,s),pn=!1;var h=t.memoizedState;l.state=h,wl(t,r,l,i),u=t.memoizedState,a!==r||h!==u||rt.current||pn?(typeof c=="function"&&(_u(t,n,c,r),u=t.memoizedState),(a=pn||ff(t,n,a,r,h,u,s))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Hp(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:Rt(t.type,a),l.props=s,d=t.pendingProps,h=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ct(u):(u=it(n)?qn:Ke.current,u=br(t,u));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==d||h!==u)&&df(t,l,r,u),pn=!1,h=t.memoizedState,l.state=h,wl(t,r,l,i);var y=t.memoizedState;a!==d||h!==y||rt.current||pn?(typeof g=="function"&&(_u(t,n,g,r),y=t.memoizedState),(s=pn||ff(t,n,s,r,h,y,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=u,r=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Nu(e,t,n,r,o,i)}function Nu(e,t,n,r,i,o){wh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&lf(t,n,!1),tn(e,t,o);r=t.stateNode,ny.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ir(t,e.child,null,o),t.child=Ir(t,null,a,o)):Ye(e,t,a,o),t.memoizedState=r.state,i&&lf(t,n,!0),t.child}function xh(e){var t=e.stateNode;t.pendingContext?of(e,t.pendingContext,t.pendingContext!==t.context):t.context&&of(e,t.context,!1),bs(e,t.containerInfo)}function Ef(e,t,n,r,i){return Ar(),Ts(i),t.flags|=256,Ye(e,t,n,r),t.child}var Lu={dehydrated:null,treeContext:null,retryLane:0};function ju(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sh(e,t,n){var r=t.pendingProps,i=de.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),le(de,i&1),e===null)return Cu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Vl(l,r,0,null),e=Kn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ju(n),t.memoizedState=Lu,e):Us(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return ry(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Tn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Tn(a,o):(o=Kn(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?ju(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Lu,r}return o=e.child,e=o.sibling,r=Tn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Us(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Oo(e,t,n,r){return r!==null&&Ts(r),Ir(t,e.child,null,n),e=Us(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ry(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Ia(Error(L(422))),Oo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Vl({mode:"visible",children:r.children},i,0,null),o=Kn(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ir(t,e.child,null,l),t.child.memoizedState=ju(l),t.memoizedState=Lu,o);if(!(t.mode&1))return Oo(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(L(419)),r=Ia(o,r,void 0),Oo(e,t,l,r)}if(a=(l&e.childLanes)!==0,tt||a){if(r=Ae,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,en(e,i),bt(r,e,i,-1))}return Ks(),r=Ia(Error(L(421))),Oo(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=gy.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,pt=kn(i.nextSibling),ht=t,ce=!0,Lt=null,e!==null&&(xt[St++]=Yt,xt[St++]=Gt,xt[St++]=Xn,Yt=e.id,Gt=e.overflow,Xn=t),t=Us(t,r.children),t.flags|=4096,t)}function kf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pu(e.return,t,n)}function Da(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Eh(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ye(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kf(e,n,t);else if(e.tag===19)kf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(de,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Da(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Da(t,!0,n,null,o);break;case"together":Da(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ko(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=Tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iy(e,t,n){switch(t.tag){case 3:xh(t),Ar();break;case 5:Gp(t);break;case 1:it(t.type)&&hl(t);break;case 4:bs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(vl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Sh(e,t,n):(le(de,de.current&1),e=tn(e,t,n),e!==null?e.sibling:null);le(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Eh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,yh(e,t,n)}return tn(e,t,n)}var kh,bu,Ch,Ph;kh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};bu=function(){};Ch=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Bn(Bt.current);var o=null;switch(n){case"input":i=tu(e,i),r=tu(e,r),o=[];break;case"select":i=he({},i,{value:void 0}),r=he({},r,{value:void 0}),o=[];break;case"textarea":i=iu(e,i),r=iu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=dl)}lu(n,r);var l;n=null;for(s in i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var a=i[s];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ai.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var u=r[s];if(a=i!=null?i[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(o||(o=[]),o.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Ai.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&ae("scroll",e),o||a===u||(o=[])):(o=o||[]).push(s,u))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};Ph=function(e,t,n,r){n!==r&&(t.flags|=4)};function li(e,t){if(!ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oy(e,t,n){var r=t.pendingProps;switch(_s(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return it(t.type)&&pl(),He(t),null;case 3:return r=t.stateNode,Dr(),se(rt),se(Ke),Is(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(To(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lt!==null&&(Uu(Lt),Lt=null))),bu(e,t),He(t),null;case 5:As(t);var i=Bn(Qi.current);if(n=t.type,e!==null&&t.stateNode!=null)Ch(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return He(t),null}if(e=Bn(Bt.current),To(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[zt]=t,r[Hi]=o,e=(t.mode&1)!==0,n){case"dialog":ae("cancel",r),ae("close",r);break;case"iframe":case"object":case"embed":ae("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[zt]=t,e[Hi]=r,kh(e,t,!1,!1),t.stateNode=e;e:{switch(l=au(n,r),n){case"dialog":ae("cancel",e),ae("close",e),i=r;break;case"iframe":case"object":case"embed":ae("load",e),i=r;break;case"video":case"audio":for(i=0;iMr&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304)}else{if(!r)if(e=xl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),li(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ce)return He(t),null}else 2*Ee()-o.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ee(),t.sibling=null,n=de.current,le(de,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return Qs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function ly(e,t){switch(_s(t),t.tag){case 1:return it(t.type)&&pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dr(),se(rt),se(Ke),Is(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return As(t),null;case 13:if(se(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(de),null;case 4:return Dr(),null;case 10:return Ns(t.type._context),null;case 22:case 23:return Qs(),null;case 24:return null;default:return null}}var No=!1,Qe=!1,ay=typeof WeakSet=="function"?WeakSet:Set,A=null;function xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function Au(e,t,n){try{n()}catch(r){ge(e,t,r)}}var Cf=!1;function uy(e,t){if(vu=sl,e=Op(),Cs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,d=e,h=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(a=l+i),d!==o||r!==0&&d.nodeType!==3||(u=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++s===i&&(a=l),h===o&&++c===r&&(u=l),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(yu={focusedElem:e,selectionRange:n},sl=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,E=y.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Rt(t.type,w),E);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(S){ge(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return y=Cf,Cf=!1,y}function _i(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Au(t,n,o)}i=i.next}while(i!==r)}}function Wl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Iu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _h(e){var t=e.alternate;t!==null&&(e.alternate=null,_h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Hi],delete t[Su],delete t[Hv],delete t[Vv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Th(e){return e.tag===5||e.tag===3||e.tag===4}function Pf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Th(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Du(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dl));else if(r!==4&&(e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}function Fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fu(e,t,n),e=e.sibling;e!==null;)Fu(e,t,n),e=e.sibling}var Me=null,Ot=!1;function un(e,t,n){for(n=n.child;n!==null;)Rh(e,t,n),n=n.sibling}function Rh(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:Qe||xr(n,t);case 6:var r=Me,i=Ot;Me=null,un(e,t,n),Me=r,Ot=i,Me!==null&&(Ot?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Ot?(e=Me,n=n.stateNode,e.nodeType===8?Oa(e.parentNode,n):e.nodeType===1&&Oa(e,n),$i(e)):Oa(Me,n.stateNode));break;case 4:r=Me,i=Ot,Me=n.stateNode.containerInfo,Ot=!0,un(e,t,n),Me=r,Ot=i;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Au(n,t,l),i=i.next}while(i!==r)}un(e,t,n);break;case 1:if(!Qe&&(xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ge(n,t,a)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,un(e,t,n),Qe=r):un(e,t,n);break;default:un(e,t,n)}}function _f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ay),t.forEach(function(r){var i=vy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cy(r/1960))-r,10e?16:e,vn===null)var r=!1;else{if(e=vn,vn=null,Pl=0,X&6)throw Error(L(331));var i=X;for(X|=4,A=e.current;A!==null;){var o=A,l=o.child;if(A.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uEe()-Hs?Qn(e,0):Ws|=n),ot(e,t)}function Dh(e,t){t===0&&(e.mode&1?(t=So,So<<=1,!(So&130023424)&&(So=4194304)):t=1);var n=Ge();e=en(e,t),e!==null&&(io(e,t,n),ot(e,n))}function gy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dh(e,n)}function vy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Dh(e,n)}var Fh;Fh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,iy(e,t,n);tt=!!(e.flags&131072)}else tt=!1,ce&&t.flags&1048576&&zp(t,gl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ko(e,t),e=t.pendingProps;var i=br(t,Ke.current);Nr(t,n),i=Fs(null,t,r,e,i,n);var o=Ms();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(r)?(o=!0,hl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,js(t),i.updater=Ul,t.stateNode=i,i._reactInternals=t,Tu(t,r,e,n),t=Nu(null,t,r,!0,o,n)):(t.tag=0,ce&&o&&Ps(t),Ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ko(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=wy(r),e=Rt(r,e),i){case 0:t=Ou(null,t,r,e,n);break e;case 1:t=Sf(null,t,r,e,n);break e;case 11:t=wf(null,t,r,e,n);break e;case 14:t=xf(null,t,r,Rt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Ou(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Sf(e,t,r,i,n);case 3:e:{if(xh(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Hp(e,t),wl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Fr(Error(L(423)),t),t=Ef(e,t,r,n,i);break e}else if(r!==i){i=Fr(Error(L(424)),t),t=Ef(e,t,r,n,i);break e}else for(pt=kn(t.stateNode.containerInfo.firstChild),ht=t,ce=!0,Lt=null,n=Yp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ar(),r===i){t=tn(e,t,n);break e}Ye(e,t,r,n)}t=t.child}return t;case 5:return Gp(t),e===null&&Cu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,wu(r,i)?l=null:o!==null&&wu(r,o)&&(t.flags|=32),wh(e,t),Ye(e,t,l,n),t.child;case 6:return e===null&&Cu(t),null;case 13:return Sh(e,t,n);case 4:return bs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ir(t,null,r,n):Ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),wf(e,t,r,i,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,le(vl,r._currentValue),r._currentValue=l,o!==null)if(It(o.value,l)){if(o.children===i.children&&!rt.current){t=tn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=qt(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Pu(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(L(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Pu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Nr(t,n),i=Ct(i),r=r(i),t.flags|=1,Ye(e,t,r,n),t.child;case 14:return r=t.type,i=Rt(r,t.pendingProps),i=Rt(r.type,i),xf(e,t,r,i,n);case 15:return vh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Ko(e,t),t.tag=1,it(r)?(e=!0,hl(t)):e=!1,Nr(t,n),Qp(t,r,i),Tu(t,r,i,n),Nu(null,t,r,!0,e,n);case 19:return Eh(e,t,n);case 22:return yh(e,t,n)}throw Error(L(156,t.tag))};function Mh(e,t){return cp(e,t)}function yy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,r){return new yy(e,t,n,r)}function Ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wy(e){if(typeof e=="function")return Ys(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ps)return 11;if(e===hs)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Ys(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fr:return Kn(n.children,i,o,t);case ds:l=8,i|=8;break;case Xa:return e=Et(12,n,t,i|2),e.elementType=Xa,e.lanes=o,e;case Za:return e=Et(13,n,t,i),e.elementType=Za,e.lanes=o,e;case Ja:return e=Et(19,n,t,i),e.elementType=Ja,e.lanes=o,e;case Kd:return Vl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vd:l=10;break e;case Qd:l=9;break e;case ps:l=11;break e;case hs:l=14;break e;case dn:l=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Et(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Kn(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=Et(22,e,r,t),e.elementType=Kd,e.lanes=n,e.stateNode={isHidden:!1},e}function Fa(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function Ma(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ya(0),this.expirationTimes=ya(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ya(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Gs(e,t,n,r,i,o,l,a,u){return e=new xy(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Et(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},js(o),e}function Sy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bh)}catch(e){console.error(e)}}Bh(),zd.exports=gt;var Js=zd.exports;const _y=Od(Js),Ty=Rd({__proto__:null,default:_y},[Js]);var Af=Js;Ga.createRoot=Af.createRoot,Ga.hydrateRoot=Af.hydrateRoot;/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function $r(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ty(){return Math.random().toString(36).substr(2,8)}function Df(e,t){return{usr:e.state,key:e.key,idx:t}}function Xi(e,t,n,r){return n===void 0&&(n=null),ge({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nn(t):t,{state:n,key:t&&t.key||r||Ty()})}function tr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ry(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=we.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(ge({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function d(){a=we.Pop;let E=c(),p=E==null?null:E-s;s=E,u&&u({action:a,location:w.location,delta:p})}function h(E,p){a=we.Push;let f=Xi(w.location,E,p);n&&n(f,E),s=c()+1;let m=Df(f,s),x=w.createHref(f);try{l.pushState(m,"",x)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(x)}o&&u&&u({action:a,location:w.location,delta:1})}function g(E,p){a=we.Replace;let f=Xi(w.location,E,p);n&&n(f,E),s=c();let m=Df(f,s),x=w.createHref(f);l.replaceState(m,"",x),o&&u&&u({action:a,location:w.location,delta:0})}function y(E){let p=i.location.origin!=="null"?i.location.origin:i.location.href,f=typeof E=="string"?E:tr(E);return f=f.replace(/ $/,"%20"),K(p,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,p)}let w={get action(){return a},get location(){return e(i,l)},listen(E){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Af,d),u=E,()=>{i.removeEventListener(Af,d),u=null}},createHref(E){return t(i,E)},createURL:y,encodeLocation(E){let p=y(E);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:g,go(E){return l.go(E)}};return w}var he;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(he||(he={}));const Ny=new Set(["lazy","caseSensitive","path","id","index","children"]);function Oy(e){return e.index===!0}function zu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let l=[...n,o],a=typeof i.id=="string"?i.id:l.join("-");if(K(i.index!==!0||!i.children,"Cannot specify children on an index route"),K(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Oy(i)){let u=ge({},i,t(i),{id:a});return r[a]=u,u}else{let u=ge({},i,t(i),{id:a,children:void 0});return r[a]=u,i.children&&(u.children=zu(i.children,t,l,r)),u}})}function Er(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nn(t):t,i=Yr(r.pathname||"/",n);if(i==null)return null;let o=Uh(e);jy(o);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(K(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=qt([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(K(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Uh(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:$y(s,o.index),routesMeta:c})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let u of Bh(o.path))i(o,l,u)}),t}function Bh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Bh(r.join("/")),a=[];return a.push(...l.map(u=>u===""?o:[o,u].join("/"))),i&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function jy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ay=/^:[\w-]+$/,Dy=3,by=2,Iy=1,Fy=10,My=-2,bf=e=>e==="*";function $y(e,t){let n=e.split("/"),r=n.length;return n.some(bf)&&(r+=My),t&&(r+=by),n.filter(i=>!bf(i)).reduce((i,o)=>i+(Ay.test(o)?Dy:o===""?Iy:Fy),r)}function zy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Uy(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{let{paramName:h,isOptional:g}=c;if(h==="*"){let w=a[d]||"";l=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const y=a[d];return g&&!y?s[h]=void 0:s[h]=(y||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:l,pattern:e}}function Wy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$r(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Hy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $r(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Yr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Vy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?nn(e):e;return{pathname:n?n.startsWith("/")?n:Qy(n,t):t,search:Yy(r),hash:Gy(i)}}function Qy(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Fa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Wh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Js(e,t){let n=Wh(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Zs(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=nn(e):(i=ge({},e),K(!i.pathname||!i.pathname.includes("?"),Fa("?","pathname","search",i)),K(!i.pathname||!i.pathname.includes("#"),Fa("#","pathname","hash",i)),K(!i.search||!i.search.includes("#"),Fa("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?t[d]:"/"}let u=Vy(i,a),s=l&&l!=="/"&&l.endsWith("/"),c=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const qt=e=>e.join("/").replace(/\/\/+/g,"/"),Ky=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Yy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ec{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Hh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vh=["post","put","patch","delete"],qy=new Set(Vh),Xy=["get",...Vh],Jy=new Set(Xy),Zy=new Set([301,302,303,307,308]),e0=new Set([307,308]),Ma={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},t0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ui={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Qh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,n0=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Kh="remix-router-transitions";function r0(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;K(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let S=e.detectErrorBoundary;i=k=>({hasErrorBoundary:S(k)})}else i=n0;let o={},l=zu(e.routes,i,void 0,o),a,u=e.basename||"/",s=ge({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,h=null,g=null,y=null,w=e.hydrationData!=null,E=Er(l,e.history.location,u),p=null;if(E==null){let S=wt(404,{pathname:e.history.location.pathname}),{matches:k,route:R}=Wf(l);E=k,p={[R.id]:S}}let f,m=E.some(S=>S.route.lazy),x=E.some(S=>S.route.loader);if(m)f=!1;else if(!x)f=!0;else if(s.v7_partialHydration){let S=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,R=j=>j.route.loader?j.route.loader.hydrate===!0?!1:S&&S[j.route.id]!==void 0||k&&k[j.route.id]!==void 0:!0;if(k){let j=E.findIndex(I=>k[I.route.id]!==void 0);f=E.slice(0,j+1).every(R)}else f=E.every(R)}else f=e.hydrationData!=null;let _,v={historyAction:e.history.action,location:e.history.location,matches:E,initialized:f,navigation:Ma,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},C=we.Pop,O=!1,A,F=!1,B=new Map,ce=null,re=!1,be=!1,at=[],Ie=[],J=new Map,N=0,b=-1,M=new Map,Q=new Set,q=new Map,ut=new Map,ve=new Set,Be=new Map,ye=new Map,st=!1;function bn(){if(c=e.history.listen(S=>{let{action:k,location:R,delta:j}=S;if(st){st=!1;return}$r(ye.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=Sc({currentLocation:v.location,nextLocation:R,historyAction:k});if(I&&j!=null){st=!0,e.history.go(j*-1),po(I,{state:"blocked",location:R,proceed(){po(I,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),e.history.go(j)},reset(){let V=new Map(v.blockers);V.set(I,ui),Re({blockers:V})}});return}return In(k,R)}),n){h0(t,B);let S=()=>m0(t,B);t.addEventListener("pagehide",S),ce=()=>t.removeEventListener("pagehide",S)}return v.initialized||In(we.Pop,v.location,{initialHydration:!0}),_}function Wt(){c&&c(),ce&&ce(),d.clear(),A&&A.abort(),v.fetchers.forEach((S,k)=>fo(k)),v.blockers.forEach((S,k)=>wc(k))}function qr(S){return d.add(S),()=>d.delete(S)}function Re(S,k){k===void 0&&(k={}),v=ge({},v,S);let R=[],j=[];s.v7_fetcherPersist&&v.fetchers.forEach((I,V)=>{I.state==="idle"&&(ve.has(V)?j.push(V):R.push(V))}),[...d].forEach(I=>I(v,{deletedFetchers:j,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),s.v7_fetcherPersist&&(R.forEach(I=>v.fetchers.delete(I)),j.forEach(I=>fo(I)))}function Je(S,k,R){var j,I;let{flushSync:V}=R===void 0?{}:R,U=v.actionData!=null&&v.navigation.formMethod!=null&&Ot(v.navigation.formMethod)&&v.navigation.state==="loading"&&((j=S.state)==null?void 0:j._isRedirect)!==!0,z;k.actionData?Object.keys(k.actionData).length>0?z=k.actionData:z=null:U?z=v.actionData:z=null;let $=k.loaderData?Bf(v.loaderData,k.loaderData,k.matches||[],k.errors):v.loaderData,G=v.blockers;G.size>0&&(G=new Map(G),G.forEach((ie,Fe)=>G.set(Fe,ui)));let Ne=O===!0||v.navigation.formMethod!=null&&Ot(v.navigation.formMethod)&&((I=S.state)==null?void 0:I._isRedirect)!==!0;a&&(l=a,a=void 0),re||C===we.Pop||(C===we.Push?e.history.push(S,S.state):C===we.Replace&&e.history.replace(S,S.state));let W;if(C===we.Pop){let ie=B.get(v.location.pathname);ie&&ie.has(S.pathname)?W={currentLocation:v.location,nextLocation:S}:B.has(S.pathname)&&(W={currentLocation:S,nextLocation:v.location})}else if(F){let ie=B.get(v.location.pathname);ie?ie.add(S.pathname):(ie=new Set([S.pathname]),B.set(v.location.pathname,ie)),W={currentLocation:v.location,nextLocation:S}}Re(ge({},k,{actionData:z,loaderData:$,historyAction:C,location:S,initialized:!0,navigation:Ma,revalidation:"idle",restoreScrollPosition:Ec(S,k.matches||v.matches),preventScrollReset:Ne,blockers:G}),{viewTransitionOpts:W,flushSync:V===!0}),C=we.Pop,O=!1,F=!1,re=!1,be=!1,at=[],Ie=[]}async function pc(S,k){if(typeof S=="number"){e.history.go(S);return}let R=Uu(v.location,v.matches,u,s.v7_prependBasename,S,s.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:j,submission:I,error:V}=If(s.v7_normalizeFormMethod,!1,R,k),U=v.location,z=Xi(v.location,j,k&&k.state);z=ge({},z,e.history.encodeLocation(z));let $=k&&k.replace!=null?k.replace:void 0,G=we.Push;$===!0?G=we.Replace:$===!1||I!=null&&Ot(I.formMethod)&&I.formAction===v.location.pathname+v.location.search&&(G=we.Replace);let Ne=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,W=(k&&k.unstable_flushSync)===!0,ie=Sc({currentLocation:U,nextLocation:z,historyAction:G});if(ie){po(ie,{state:"blocked",location:z,proceed(){po(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),pc(S,k)},reset(){let Fe=new Map(v.blockers);Fe.set(ie,ui),Re({blockers:Fe})}});return}return await In(G,z,{submission:I,pendingError:V,preventScrollReset:Ne,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:W})}function Um(){if(la(),Re({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){In(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}In(C||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function In(S,k,R){A&&A.abort(),A=null,C=S,re=(R&&R.startUninterruptedRevalidation)===!0,qm(v.location,v.matches),O=(R&&R.preventScrollReset)===!0,F=(R&&R.enableViewTransition)===!0;let j=a||l,I=R&&R.overrideNavigation,V=Er(j,k,u),U=(R&&R.flushSync)===!0;if(!V){let Fe=wt(404,{pathname:k.pathname}),{matches:ct,route:Oe}=Wf(j);aa(),Je(k,{matches:ct,loaderData:{},errors:{[Oe.id]:Fe}},{flushSync:U});return}if(v.initialized&&!be&&u0(v.location,k)&&!(R&&R.submission&&Ot(R.submission.formMethod))){Je(k,{matches:V},{flushSync:U});return}A=new AbortController;let z=ci(e.history,k,A.signal,R&&R.submission),$,G;if(R&&R.pendingError)G={[Ni(V).route.id]:R.pendingError};else if(R&&R.submission&&Ot(R.submission.formMethod)){let Fe=await Bm(z,k,R.submission,V,{replace:R.replace,flushSync:U});if(Fe.shortCircuited)return;$=Fe.pendingActionData,G=Fe.pendingActionError,I=$a(k,R.submission),U=!1,z=new Request(z.url,{signal:z.signal})}let{shortCircuited:Ne,loaderData:W,errors:ie}=await Wm(z,k,V,I,R&&R.submission,R&&R.fetcherSubmission,R&&R.replace,R&&R.initialHydration===!0,U,$,G);Ne||(A=null,Je(k,ge({matches:V},$?{actionData:$}:{},{loaderData:W,errors:ie})))}async function Bm(S,k,R,j,I){I===void 0&&(I={}),la();let V=d0(k,R);Re({navigation:V},{flushSync:I.flushSync===!0});let U,z=Wu(j,k);if(!z.route.action&&!z.route.lazy)U={type:he.error,error:wt(405,{method:S.method,pathname:k.pathname,routeId:z.route.id})};else if(U=await si("action",S,z,j,o,i,u,s.v7_relativeSplatPath),S.signal.aborted)return{shortCircuited:!0};if(Hn(U)){let $;return I&&I.replace!=null?$=I.replace:$=U.location===v.location.pathname+v.location.search,await Xr(v,U,{submission:R,replace:$}),{shortCircuited:!0}}if(kr(U)){let $=Ni(j,z.route.id);return(I&&I.replace)!==!0&&(C=we.Push),{pendingActionData:{},pendingActionError:{[$.route.id]:U.error}}}if(Wn(U))throw wt(400,{type:"defer-action"});return{pendingActionData:{[z.route.id]:U.data}}}async function Wm(S,k,R,j,I,V,U,z,$,G,Ne){let W=j||$a(k,I),ie=I||V||Qf(W),Fe=a||l,[ct,Oe]=Ff(e.history,v,R,ie,k,s.v7_partialHydration&&z===!0,be,at,Ie,ve,q,Q,Fe,u,G,Ne);if(aa(Z=>!(R&&R.some(ne=>ne.route.id===Z))||ct&&ct.some(ne=>ne.route.id===Z)),b=++N,ct.length===0&&Oe.length===0){let Z=vc();return Je(k,ge({matches:R,loaderData:{},errors:Ne||null},G?{actionData:G}:{},Z?{fetchers:new Map(v.fetchers)}:{}),{flushSync:$}),{shortCircuited:!0}}if(!re&&(!s.v7_partialHydration||!z)){Oe.forEach(ne=>{let Ze=v.fetchers.get(ne.key),mo=fi(void 0,Ze?Ze.data:void 0);v.fetchers.set(ne.key,mo)});let Z=G||v.actionData;Re(ge({navigation:W},Z?Object.keys(Z).length===0?{actionData:null}:{actionData:Z}:{},Oe.length>0?{fetchers:new Map(v.fetchers)}:{}),{flushSync:$})}Oe.forEach(Z=>{J.has(Z.key)&&on(Z.key),Z.controller&&J.set(Z.key,Z.controller)});let or=()=>Oe.forEach(Z=>on(Z.key));A&&A.signal.addEventListener("abort",or);let{results:ua,loaderResults:lr,fetcherResults:ln}=await hc(v.matches,R,ct,Oe,S);if(S.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",or),Oe.forEach(Z=>J.delete(Z.key));let Fn=Hf(ua);if(Fn){if(Fn.idx>=ct.length){let Z=Oe[Fn.idx-ct.length].key;Q.add(Z)}return await Xr(v,Fn.result,{replace:U}),{shortCircuited:!0}}let{loaderData:sa,errors:Zr}=Uf(v,R,ct,lr,Ne,Oe,ln,Be);Be.forEach((Z,ne)=>{Z.subscribe(Ze=>{(Ze||Z.done)&&Be.delete(ne)})}),s.v7_partialHydration&&z&&v.errors&&Object.entries(v.errors).filter(Z=>{let[ne]=Z;return!ct.some(Ze=>Ze.route.id===ne)}).forEach(Z=>{let[ne,Ze]=Z;Zr=Object.assign(Zr||{},{[ne]:Ze})});let ca=vc(),ar=yc(b),ho=ca||ar||Oe.length>0;return ge({loaderData:sa,errors:Zr},ho?{fetchers:new Map(v.fetchers)}:{})}function Hm(S,k,R,j){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");J.has(S)&&on(S);let I=(j&&j.unstable_flushSync)===!0,V=a||l,U=Uu(v.location,v.matches,u,s.v7_prependBasename,R,s.v7_relativeSplatPath,k,j==null?void 0:j.relative),z=Er(V,U,u);if(!z){Jr(S,k,wt(404,{pathname:U}),{flushSync:I});return}let{path:$,submission:G,error:Ne}=If(s.v7_normalizeFormMethod,!0,U,j);if(Ne){Jr(S,k,Ne,{flushSync:I});return}let W=Wu(z,$);if(O=(j&&j.preventScrollReset)===!0,G&&Ot(G.formMethod)){Vm(S,k,$,W,z,I,G);return}q.set(S,{routeId:k,path:$}),Qm(S,k,$,W,z,I,G)}async function Vm(S,k,R,j,I,V,U){if(la(),q.delete(S),!j.route.action&&!j.route.lazy){let ne=wt(405,{method:U.formMethod,pathname:R,routeId:k});Jr(S,k,ne,{flushSync:V});return}let z=v.fetchers.get(S);rn(S,p0(U,z),{flushSync:V});let $=new AbortController,G=ci(e.history,R,$.signal,U);J.set(S,$);let Ne=N,W=await si("action",G,j,I,o,i,u,s.v7_relativeSplatPath);if(G.signal.aborted){J.get(S)===$&&J.delete(S);return}if(s.v7_fetcherPersist&&ve.has(S)){if(Hn(W)||kr(W)){rn(S,sn(void 0));return}}else{if(Hn(W))if(J.delete(S),b>Ne){rn(S,sn(void 0));return}else return Q.add(S),rn(S,fi(U)),Xr(v,W,{fetcherSubmission:U});if(kr(W)){Jr(S,k,W.error);return}}if(Wn(W))throw wt(400,{type:"defer-action"});let ie=v.navigation.location||v.location,Fe=ci(e.history,ie,$.signal),ct=a||l,Oe=v.navigation.state!=="idle"?Er(ct,v.navigation.location,u):v.matches;K(Oe,"Didn't find any matches after fetcher action");let or=++N;M.set(S,or);let ua=fi(U,W.data);v.fetchers.set(S,ua);let[lr,ln]=Ff(e.history,v,Oe,U,ie,!1,be,at,Ie,ve,q,Q,ct,u,{[j.route.id]:W.data},void 0);ln.filter(ne=>ne.key!==S).forEach(ne=>{let Ze=ne.key,mo=v.fetchers.get(Ze),Jm=fi(void 0,mo?mo.data:void 0);v.fetchers.set(Ze,Jm),J.has(Ze)&&on(Ze),ne.controller&&J.set(Ze,ne.controller)}),Re({fetchers:new Map(v.fetchers)});let Fn=()=>ln.forEach(ne=>on(ne.key));$.signal.addEventListener("abort",Fn);let{results:sa,loaderResults:Zr,fetcherResults:ca}=await hc(v.matches,Oe,lr,ln,Fe);if($.signal.aborted)return;$.signal.removeEventListener("abort",Fn),M.delete(S),J.delete(S),ln.forEach(ne=>J.delete(ne.key));let ar=Hf(sa);if(ar){if(ar.idx>=lr.length){let ne=ln[ar.idx-lr.length].key;Q.add(ne)}return Xr(v,ar.result)}let{loaderData:ho,errors:Z}=Uf(v,v.matches,lr,Zr,void 0,ln,ca,Be);if(v.fetchers.has(S)){let ne=sn(W.data);v.fetchers.set(S,ne)}yc(or),v.navigation.state==="loading"&&or>b?(K(C,"Expected pending action"),A&&A.abort(),Je(v.navigation.location,{matches:Oe,loaderData:ho,errors:Z,fetchers:new Map(v.fetchers)})):(Re({errors:Z,loaderData:Bf(v.loaderData,ho,Oe,Z),fetchers:new Map(v.fetchers)}),be=!1)}async function Qm(S,k,R,j,I,V,U){let z=v.fetchers.get(S);rn(S,fi(U,z?z.data:void 0),{flushSync:V});let $=new AbortController,G=ci(e.history,R,$.signal);J.set(S,$);let Ne=N,W=await si("loader",G,j,I,o,i,u,s.v7_relativeSplatPath);if(Wn(W)&&(W=await qh(W,G.signal,!0)||W),J.get(S)===$&&J.delete(S),!G.signal.aborted){if(ve.has(S)){rn(S,sn(void 0));return}if(Hn(W))if(b>Ne){rn(S,sn(void 0));return}else{Q.add(S),await Xr(v,W);return}if(kr(W)){Jr(S,k,W.error);return}K(!Wn(W),"Unhandled fetcher deferred data"),rn(S,sn(W.data))}}async function Xr(S,k,R){let{submission:j,fetcherSubmission:I,replace:V}=R===void 0?{}:R;k.revalidate&&(be=!0);let U=Xi(S.location,k.location,{_isRedirect:!0});if(K(U,"Expected a location on the redirect navigation"),n){let ie=!1;if(k.reloadDocument)ie=!0;else if(Qh.test(k.location)){const Fe=e.history.createURL(k.location);ie=Fe.origin!==t.location.origin||Yr(Fe.pathname,u)==null}if(ie){V?t.location.replace(k.location):t.location.assign(k.location);return}}A=null;let z=V===!0?we.Replace:we.Push,{formMethod:$,formAction:G,formEncType:Ne}=S.navigation;!j&&!I&&$&&G&&Ne&&(j=Qf(S.navigation));let W=j||I;if(e0.has(k.status)&&W&&Ot(W.formMethod))await In(z,U,{submission:ge({},W,{formAction:k.location}),preventScrollReset:O});else{let ie=$a(U,j);await In(z,U,{overrideNavigation:ie,fetcherSubmission:I,preventScrollReset:O})}}async function hc(S,k,R,j,I){let V=await Promise.all([...R.map($=>si("loader",I,$,k,o,i,u,s.v7_relativeSplatPath)),...j.map($=>$.matches&&$.match&&$.controller?si("loader",ci(e.history,$.path,$.controller.signal),$.match,$.matches,o,i,u,s.v7_relativeSplatPath):{type:he.error,error:wt(404,{pathname:$.path})})]),U=V.slice(0,R.length),z=V.slice(R.length);return await Promise.all([Vf(S,R,U,U.map(()=>I.signal),!1,v.loaderData),Vf(S,j.map($=>$.match),z,j.map($=>$.controller?$.controller.signal:null),!0)]),{results:V,loaderResults:U,fetcherResults:z}}function la(){be=!0,at.push(...aa()),q.forEach((S,k)=>{J.has(k)&&(Ie.push(k),on(k))})}function rn(S,k,R){R===void 0&&(R={}),v.fetchers.set(S,k),Re({fetchers:new Map(v.fetchers)},{flushSync:(R&&R.flushSync)===!0})}function Jr(S,k,R,j){j===void 0&&(j={});let I=Ni(v.matches,k);fo(S),Re({errors:{[I.route.id]:R},fetchers:new Map(v.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function mc(S){return s.v7_fetcherPersist&&(ut.set(S,(ut.get(S)||0)+1),ve.has(S)&&ve.delete(S)),v.fetchers.get(S)||t0}function fo(S){let k=v.fetchers.get(S);J.has(S)&&!(k&&k.state==="loading"&&M.has(S))&&on(S),q.delete(S),M.delete(S),Q.delete(S),ve.delete(S),v.fetchers.delete(S)}function Km(S){if(s.v7_fetcherPersist){let k=(ut.get(S)||0)-1;k<=0?(ut.delete(S),ve.add(S)):ut.set(S,k)}else fo(S);Re({fetchers:new Map(v.fetchers)})}function on(S){let k=J.get(S);K(k,"Expected fetch controller: "+S),k.abort(),J.delete(S)}function gc(S){for(let k of S){let R=mc(k),j=sn(R.data);v.fetchers.set(k,j)}}function vc(){let S=[],k=!1;for(let R of Q){let j=v.fetchers.get(R);K(j,"Expected fetcher: "+R),j.state==="loading"&&(Q.delete(R),S.push(R),k=!0)}return gc(S),k}function yc(S){let k=[];for(let[R,j]of M)if(j0}function Ym(S,k){let R=v.blockers.get(S)||ui;return ye.get(S)!==k&&ye.set(S,k),R}function wc(S){v.blockers.delete(S),ye.delete(S)}function po(S,k){let R=v.blockers.get(S)||ui;K(R.state==="unblocked"&&k.state==="blocked"||R.state==="blocked"&&k.state==="blocked"||R.state==="blocked"&&k.state==="proceeding"||R.state==="blocked"&&k.state==="unblocked"||R.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+R.state+" -> "+k.state);let j=new Map(v.blockers);j.set(S,k),Re({blockers:j})}function Sc(S){let{currentLocation:k,nextLocation:R,historyAction:j}=S;if(ye.size===0)return;ye.size>1&&$r(!1,"A router only supports one blocker at a time");let I=Array.from(ye.entries()),[V,U]=I[I.length-1],z=v.blockers.get(V);if(!(z&&z.state==="proceeding")&&U({currentLocation:k,nextLocation:R,historyAction:j}))return V}function aa(S){let k=[];return Be.forEach((R,j)=>{(!S||S(j))&&(R.cancel(),k.push(j),Be.delete(j))}),k}function Gm(S,k,R){if(h=S,y=k,g=R||null,!w&&v.navigation===Ma){w=!0;let j=Ec(v.location,v.matches);j!=null&&Re({restoreScrollPosition:j})}return()=>{h=null,y=null,g=null}}function xc(S,k){return g&&g(S,k.map(j=>Ly(j,v.loaderData)))||S.key}function qm(S,k){if(h&&y){let R=xc(S,k);h[R]=y()}}function Ec(S,k){if(h){let R=xc(S,k),j=h[R];if(typeof j=="number")return j}return null}function Xm(S){o={},a=zu(S,i,void 0,o)}return _={get basename(){return u},get future(){return s},get state(){return v},get routes(){return l},get window(){return t},initialize:bn,subscribe:qr,enableScrollRestoration:Gm,navigate:pc,fetch:Hm,revalidate:Um,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:mc,deleteFetcher:Km,dispose:Wt,getBlocker:Ym,deleteBlocker:wc,_internalFetchControllers:J,_internalActiveDeferreds:Be,_internalSetRoutes:Xm},_}function i0(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Uu(e,t,n,r,i,o,l,a){let u,s;if(l){u=[];for(let d of t)if(u.push(d),d.route.id===l){s=d;break}}else u=t,s=t[t.length-1];let c=Zs(i||".",Js(u,o),Yr(e.pathname,n)||e.pathname,a==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&s&&s.route.index&&!tc(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:qt([n,c.pathname])),tr(c)}function If(e,t,n,r){if(!r||!i0(r))return{path:n};if(r.formMethod&&!f0(r.formMethod))return{path:n,error:wt(405,{method:r.formMethod})};let i=()=>({path:n,error:wt(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=Gh(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ot(l))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,y)=>{let[w,E]=y;return""+g+w+"="+E+` -`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Ot(l))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}K(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Bu(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Bu(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=zf(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=zf(u)}catch{return i()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ot(c.formMethod))return{path:n,submission:c};let d=nn(n);return t&&d.search&&tc(d.search)&&u.append("index",""),d.search="?"+u,{path:tr(d),submission:c}}function o0(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ff(e,t,n,r,i,o,l,a,u,s,c,d,h,g,y,w){let E=w?Object.values(w)[0]:y?Object.values(y)[0]:void 0,p=e.createURL(t.location),f=e.createURL(i),m=w?Object.keys(w)[0]:void 0,_=o0(n,m).filter((C,O)=>{let{route:A}=C;if(A.lazy)return!0;if(A.loader==null)return!1;if(o)return A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(l0(t.loaderData,t.matches[O],C)||a.some(ce=>ce===C.route.id))return!0;let F=t.matches[O],B=C;return Mf(C,ge({currentUrl:p,currentParams:F.params,nextUrl:f,nextParams:B.params},r,{actionResult:E,defaultShouldRevalidate:l||p.pathname+p.search===f.pathname+f.search||p.search!==f.search||Yh(F,B)}))}),v=[];return c.forEach((C,O)=>{if(o||!n.some(re=>re.route.id===C.routeId)||s.has(O))return;let A=Er(h,C.path,g);if(!A){v.push({key:O,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(O),B=Wu(A,C.path),ce=!1;d.has(O)?ce=!1:u.includes(O)?ce=!0:F&&F.state!=="idle"&&F.data===void 0?ce=l:ce=Mf(B,ge({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:l})),ce&&v.push({key:O,routeId:C.routeId,path:C.path,matches:A,match:B,controller:new AbortController})}),[_,v]}function l0(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Yh(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Mf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function $f(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];K(i,"No route found in manifest");let o={};for(let l in r){let u=i[l]!==void 0&&l!=="hasErrorBoundary";$r(!u,'Route "'+i.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!Ny.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,ge({},t(i),{lazy:void 0}))}async function si(e,t,n,r,i,o,l,a,u){u===void 0&&(u={});let s,c,d,h=w=>{let E,p=new Promise((f,m)=>E=m);return d=()=>E(),t.signal.addEventListener("abort",d),Promise.race([w({request:t,params:n.params,context:u.requestContext}),p])};try{let w=n.route[e];if(n.route.lazy)if(w){let E,p=await Promise.all([h(w).catch(f=>{E=f}),$f(n.route,o,i)]);if(E)throw E;c=p[0]}else if(await $f(n.route,o,i),w=n.route[e],w)c=await h(w);else if(e==="action"){let E=new URL(t.url),p=E.pathname+E.search;throw wt(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:he.data,data:void 0};else if(w)c=await h(w);else{let E=new URL(t.url),p=E.pathname+E.search;throw wt(404,{pathname:p})}K(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(w){s=he.error,c=w}finally{d&&t.signal.removeEventListener("abort",d)}if(c0(c)){let w=c.status;if(Zy.has(w)){let p=c.headers.get("Location");if(K(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!Qh.test(p))p=Uu(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,p,a);else if(!u.isStaticRequest){let f=new URL(t.url),m=p.startsWith("//")?new URL(f.protocol+p):new URL(p),x=Yr(m.pathname,l)!=null;m.origin===f.origin&&x&&(p=m.pathname+m.search+m.hash)}if(u.isStaticRequest)throw c.headers.set("Location",p),c;return{type:he.redirect,status:w,location:p,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===he.error?he.error:he.data,response:c};let E;try{let p=c.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?c.body==null?E=null:E=await c.json():E=await c.text()}catch(p){return{type:he.error,error:p}}return s===he.error?{type:s,error:new ec(w,c.statusText,E),headers:c.headers}:{type:he.data,data:E,statusCode:c.status,headers:c.headers}}if(s===he.error)return{type:s,error:c};if(s0(c)){var g,y;return{type:he.deferred,deferredData:c,statusCode:(g=c.init)==null?void 0:g.status,headers:((y=c.init)==null?void 0:y.headers)&&new Headers(c.init.headers)}}return{type:he.data,data:c}}function ci(e,t,n,r){let i=e.createURL(Gh(t)).toString(),o={signal:n};if(r&&Ot(r.formMethod)){let{formMethod:l,formEncType:a}=r;o.method=l.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=Bu(r.formData):o.body=r.formData}return new Request(i,o)}function Bu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function zf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function a0(e,t,n,r,i){let o={},l=null,a,u=!1,s={};return n.forEach((c,d)=>{let h=t[d].route.id;if(K(!Hn(c),"Cannot handle redirect results in processLoaderData"),kr(c)){let g=Ni(e,h),y=c.error;r&&(y=Object.values(r)[0],r=void 0),l=l||{},l[g.route.id]==null&&(l[g.route.id]=y),o[h]=void 0,u||(u=!0,a=Hh(c.error)?c.error.status:500),c.headers&&(s[h]=c.headers)}else Wn(c)?(i.set(h,c.deferredData),o[h]=c.deferredData.data):o[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[h]=c.headers)}),r&&(l=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:s}}function Uf(e,t,n,r,i,o,l,a){let{loaderData:u,errors:s}=a0(t,n,r,i,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Wf(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function wt(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new ec(e||500,l,new Error(a),!0)}function Hf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Hn(n))return{result:n,idx:t}}}function Gh(e){let t=typeof e=="string"?nn(e):e;return tr(ge({},t,{hash:""}))}function u0(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Wn(e){return e.type===he.deferred}function kr(e){return e.type===he.error}function Hn(e){return(e&&e.type)===he.redirect}function s0(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function c0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function f0(e){return Jy.has(e.toLowerCase())}function Ot(e){return qy.has(e.toLowerCase())}async function Vf(e,t,n,r,i,o){for(let l=0;ld.route.id===u.route.id),c=s!=null&&!Yh(s,u)&&(o&&o[u.route.id])!==void 0;if(Wn(a)&&(i||c)){let d=r[l];K(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await qh(a,d,i).then(h=>{h&&(n[l]=h||n[l])})}}}async function qh(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:he.data,data:e.deferredData.unwrappedData}}catch(i){return{type:he.error,error:i}}return{type:he.data,data:e.deferredData.data}}}function tc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Wu(e,t){let n=typeof t=="string"?nn(t).search:t.search;if(e[e.length-1].route.index&&tc(n||""))return e[e.length-1];let r=Wh(e);return r[r.length-1]}function Qf(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function $a(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function d0(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function fi(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function p0(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function sn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function h0(e,t){try{let n=e.sessionStorage.getItem(Kh);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function m0(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Kh,JSON.stringify(n))}catch(r){$r(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function $r(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Oy(){return Math.random().toString(36).substr(2,8)}function Df(e,t){return{usr:e.state,key:e.key,idx:t}}function Xi(e,t,n,r){return n===void 0&&(n=null),ve({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rn(t):t,{state:n,key:t&&t.key||r||Oy()})}function tr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function rn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ny(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=xe.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(ve({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function d(){a=xe.Pop;let E=c(),p=E==null?null:E-s;s=E,u&&u({action:a,location:w.location,delta:p})}function h(E,p){a=xe.Push;let f=Xi(w.location,E,p);n&&n(f,E),s=c()+1;let m=Df(f,s),S=w.createHref(f);try{l.pushState(m,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(S)}o&&u&&u({action:a,location:w.location,delta:1})}function g(E,p){a=xe.Replace;let f=Xi(w.location,E,p);n&&n(f,E),s=c();let m=Df(f,s),S=w.createHref(f);l.replaceState(m,"",S),o&&u&&u({action:a,location:w.location,delta:0})}function y(E){let p=i.location.origin!=="null"?i.location.origin:i.location.href,f=typeof E=="string"?E:tr(E);return f=f.replace(/ $/,"%20"),K(p,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,p)}let w={get action(){return a},get location(){return e(i,l)},listen(E){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(If,d),u=E,()=>{i.removeEventListener(If,d),u=null}},createHref(E){return t(i,E)},createURL:y,encodeLocation(E){let p=y(E);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:g,go(E){return l.go(E)}};return w}var me;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(me||(me={}));const Ly=new Set(["lazy","caseSensitive","path","id","index","children"]);function jy(e){return e.index===!0}function Bu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let l=[...n,o],a=typeof i.id=="string"?i.id:l.join("-");if(K(i.index!==!0||!i.children,"Cannot specify children on an index route"),K(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),jy(i)){let u=ve({},i,t(i),{id:a});return r[a]=u,u}else{let u=ve({},i,t(i),{id:a,children:void 0});return r[a]=u,i.children&&(u.children=Bu(i.children,t,l,r)),u}})}function Er(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?rn(t):t,i=Yr(r.pathname||"/",n);if(i==null)return null;let o=Wh(e);Ay(o);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(K(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=Xt([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(K(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Wh(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Uy(s,o.index),routesMeta:c})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let u of Hh(o.path))i(o,l,u)}),t}function Hh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Hh(r.join("/")),a=[];return a.push(...l.map(u=>u===""?o:[o,u].join("/"))),i&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Ay(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:By(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Iy=/^:[\w-]+$/,Dy=3,Fy=2,My=1,$y=10,zy=-2,Ff=e=>e==="*";function Uy(e,t){let n=e.split("/"),r=n.length;return n.some(Ff)&&(r+=zy),t&&(r+=Fy),n.filter(i=>!Ff(i)).reduce((i,o)=>i+(Iy.test(o)?Dy:o===""?My:$y),r)}function By(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Wy(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{let{paramName:h,isOptional:g}=c;if(h==="*"){let w=a[d]||"";l=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const y=a[d];return g&&!y?s[h]=void 0:s[h]=(y||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:l,pattern:e}}function Vy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$r(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Qy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $r(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Yr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ky(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?rn(e):e;return{pathname:n?n.startsWith("/")?n:Yy(n,t):t,search:qy(r),hash:Xy(i)}}function Yy(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function $a(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Vh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ec(e,t){let n=Vh(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tc(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=rn(e):(i=ve({},e),K(!i.pathname||!i.pathname.includes("?"),$a("?","pathname","search",i)),K(!i.pathname||!i.pathname.includes("#"),$a("#","pathname","hash",i)),K(!i.search||!i.search.includes("#"),$a("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?t[d]:"/"}let u=Ky(i,a),s=l&&l!=="/"&&l.endsWith("/"),c=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Xt=e=>e.join("/").replace(/\/\/+/g,"/"),Gy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Xy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class nc{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Qh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Kh=["post","put","patch","delete"],Zy=new Set(Kh),Jy=["get",...Kh],e0=new Set(Jy),t0=new Set([301,302,303,307,308]),n0=new Set([307,308]),za={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},r0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ui={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Yh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,i0=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Gh="remix-router-transitions";function o0(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;K(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let x=e.detectErrorBoundary;i=k=>({hasErrorBoundary:x(k)})}else i=i0;let o={},l=Bu(e.routes,i,void 0,o),a,u=e.basename||"/",s=ve({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,h=null,g=null,y=null,w=e.hydrationData!=null,E=Er(l,e.history.location,u),p=null;if(E==null){let x=wt(404,{pathname:e.history.location.pathname}),{matches:k,route:R}=Vf(l);E=k,p={[R.id]:x}}let f,m=E.some(x=>x.route.lazy),S=E.some(x=>x.route.loader);if(m)f=!1;else if(!S)f=!0;else if(s.v7_partialHydration){let x=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,R=j=>j.route.loader?j.route.loader.hydrate===!0?!1:x&&x[j.route.id]!==void 0||k&&k[j.route.id]!==void 0:!0;if(k){let j=E.findIndex(D=>k[D.route.id]!==void 0);f=E.slice(0,j+1).every(R)}else f=E.every(R)}else f=e.hydrationData!=null;let T,v={historyAction:e.history.action,location:e.history.location,matches:E,initialized:f,navigation:za,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},C=xe.Pop,N=!1,b,F=!1,B=new Map,fe=null,ie=!1,Ie=!1,at=[],De=[],Z=new Map,O=0,I=-1,M=new Map,Q=new Set,q=new Map,ut=new Map,ye=new Set,Be=new Map,we=new Map,st=!1;function In(){if(c=e.history.listen(x=>{let{action:k,location:R,delta:j}=x;if(st){st=!1;return}$r(we.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let D=Ec({currentLocation:v.location,nextLocation:R,historyAction:k});if(D&&j!=null){st=!0,e.history.go(j*-1),po(D,{state:"blocked",location:R,proceed(){po(D,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),e.history.go(j)},reset(){let V=new Map(v.blockers);V.set(D,ui),Re({blockers:V})}});return}return Dn(k,R)}),n){g0(t,B);let x=()=>v0(t,B);t.addEventListener("pagehide",x),fe=()=>t.removeEventListener("pagehide",x)}return v.initialized||Dn(xe.Pop,v.location,{initialHydration:!0}),T}function Ht(){c&&c(),fe&&fe(),d.clear(),b&&b.abort(),v.fetchers.forEach((x,k)=>fo(k)),v.blockers.forEach((x,k)=>Sc(k))}function qr(x){return d.add(x),()=>d.delete(x)}function Re(x,k){k===void 0&&(k={}),v=ve({},v,x);let R=[],j=[];s.v7_fetcherPersist&&v.fetchers.forEach((D,V)=>{D.state==="idle"&&(ye.has(V)?j.push(V):R.push(V))}),[...d].forEach(D=>D(v,{deletedFetchers:j,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),s.v7_fetcherPersist&&(R.forEach(D=>v.fetchers.delete(D)),j.forEach(D=>fo(D)))}function Ze(x,k,R){var j,D;let{flushSync:V}=R===void 0?{}:R,U=v.actionData!=null&&v.navigation.formMethod!=null&&Nt(v.navigation.formMethod)&&v.navigation.state==="loading"&&((j=x.state)==null?void 0:j._isRedirect)!==!0,z;k.actionData?Object.keys(k.actionData).length>0?z=k.actionData:z=null:U?z=v.actionData:z=null;let $=k.loaderData?Hf(v.loaderData,k.loaderData,k.matches||[],k.errors):v.loaderData,G=v.blockers;G.size>0&&(G=new Map(G),G.forEach((oe,Fe)=>G.set(Fe,ui)));let Oe=N===!0||v.navigation.formMethod!=null&&Nt(v.navigation.formMethod)&&((D=x.state)==null?void 0:D._isRedirect)!==!0;a&&(l=a,a=void 0),ie||C===xe.Pop||(C===xe.Push?e.history.push(x,x.state):C===xe.Replace&&e.history.replace(x,x.state));let W;if(C===xe.Pop){let oe=B.get(v.location.pathname);oe&&oe.has(x.pathname)?W={currentLocation:v.location,nextLocation:x}:B.has(x.pathname)&&(W={currentLocation:x,nextLocation:v.location})}else if(F){let oe=B.get(v.location.pathname);oe?oe.add(x.pathname):(oe=new Set([x.pathname]),B.set(v.location.pathname,oe)),W={currentLocation:v.location,nextLocation:x}}Re(ve({},k,{actionData:z,loaderData:$,historyAction:C,location:x,initialized:!0,navigation:za,revalidation:"idle",restoreScrollPosition:Cc(x,k.matches||v.matches),preventScrollReset:Oe,blockers:G}),{viewTransitionOpts:W,flushSync:V===!0}),C=xe.Pop,N=!1,F=!1,ie=!1,Ie=!1,at=[],De=[]}async function mc(x,k){if(typeof x=="number"){e.history.go(x);return}let R=Wu(v.location,v.matches,u,s.v7_prependBasename,x,s.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:j,submission:D,error:V}=Mf(s.v7_normalizeFormMethod,!1,R,k),U=v.location,z=Xi(v.location,j,k&&k.state);z=ve({},z,e.history.encodeLocation(z));let $=k&&k.replace!=null?k.replace:void 0,G=xe.Push;$===!0?G=xe.Replace:$===!1||D!=null&&Nt(D.formMethod)&&D.formAction===v.location.pathname+v.location.search&&(G=xe.Replace);let Oe=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,W=(k&&k.unstable_flushSync)===!0,oe=Ec({currentLocation:U,nextLocation:z,historyAction:G});if(oe){po(oe,{state:"blocked",location:z,proceed(){po(oe,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),mc(x,k)},reset(){let Fe=new Map(v.blockers);Fe.set(oe,ui),Re({blockers:Fe})}});return}return await Dn(G,z,{submission:D,pendingError:V,preventScrollReset:Oe,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:W})}function Wm(){if(ua(),Re({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){Dn(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}Dn(C||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function Dn(x,k,R){b&&b.abort(),b=null,C=x,ie=(R&&R.startUninterruptedRevalidation)===!0,Zm(v.location,v.matches),N=(R&&R.preventScrollReset)===!0,F=(R&&R.enableViewTransition)===!0;let j=a||l,D=R&&R.overrideNavigation,V=Er(j,k,u),U=(R&&R.flushSync)===!0;if(!V){let Fe=wt(404,{pathname:k.pathname}),{matches:ct,route:Ne}=Vf(j);sa(),Ze(k,{matches:ct,loaderData:{},errors:{[Ne.id]:Fe}},{flushSync:U});return}if(v.initialized&&!Ie&&c0(v.location,k)&&!(R&&R.submission&&Nt(R.submission.formMethod))){Ze(k,{matches:V},{flushSync:U});return}b=new AbortController;let z=ci(e.history,k,b.signal,R&&R.submission),$,G;if(R&&R.pendingError)G={[Oi(V).route.id]:R.pendingError};else if(R&&R.submission&&Nt(R.submission.formMethod)){let Fe=await Hm(z,k,R.submission,V,{replace:R.replace,flushSync:U});if(Fe.shortCircuited)return;$=Fe.pendingActionData,G=Fe.pendingActionError,D=Ua(k,R.submission),U=!1,z=new Request(z.url,{signal:z.signal})}let{shortCircuited:Oe,loaderData:W,errors:oe}=await Vm(z,k,V,D,R&&R.submission,R&&R.fetcherSubmission,R&&R.replace,R&&R.initialHydration===!0,U,$,G);Oe||(b=null,Ze(k,ve({matches:V},$?{actionData:$}:{},{loaderData:W,errors:oe})))}async function Hm(x,k,R,j,D){D===void 0&&(D={}),ua();let V=h0(k,R);Re({navigation:V},{flushSync:D.flushSync===!0});let U,z=Vu(j,k);if(!z.route.action&&!z.route.lazy)U={type:me.error,error:wt(405,{method:x.method,pathname:k.pathname,routeId:z.route.id})};else if(U=await si("action",x,z,j,o,i,u,s.v7_relativeSplatPath),x.signal.aborted)return{shortCircuited:!0};if(Hn(U)){let $;return D&&D.replace!=null?$=D.replace:$=U.location===v.location.pathname+v.location.search,await Xr(v,U,{submission:R,replace:$}),{shortCircuited:!0}}if(kr(U)){let $=Oi(j,z.route.id);return(D&&D.replace)!==!0&&(C=xe.Push),{pendingActionData:{},pendingActionError:{[$.route.id]:U.error}}}if(Wn(U))throw wt(400,{type:"defer-action"});return{pendingActionData:{[z.route.id]:U.data}}}async function Vm(x,k,R,j,D,V,U,z,$,G,Oe){let W=j||Ua(k,D),oe=D||V||Yf(W),Fe=a||l,[ct,Ne]=$f(e.history,v,R,oe,k,s.v7_partialHydration&&z===!0,Ie,at,De,ye,q,Q,Fe,u,G,Oe);if(sa(J=>!(R&&R.some(re=>re.route.id===J))||ct&&ct.some(re=>re.route.id===J)),I=++O,ct.length===0&&Ne.length===0){let J=wc();return Ze(k,ve({matches:R,loaderData:{},errors:Oe||null},G?{actionData:G}:{},J?{fetchers:new Map(v.fetchers)}:{}),{flushSync:$}),{shortCircuited:!0}}if(!ie&&(!s.v7_partialHydration||!z)){Ne.forEach(re=>{let Je=v.fetchers.get(re.key),mo=fi(void 0,Je?Je.data:void 0);v.fetchers.set(re.key,mo)});let J=G||v.actionData;Re(ve({navigation:W},J?Object.keys(J).length===0?{actionData:null}:{actionData:J}:{},Ne.length>0?{fetchers:new Map(v.fetchers)}:{}),{flushSync:$})}Ne.forEach(J=>{Z.has(J.key)&&ln(J.key),J.controller&&Z.set(J.key,J.controller)});let or=()=>Ne.forEach(J=>ln(J.key));b&&b.signal.addEventListener("abort",or);let{results:ca,loaderResults:lr,fetcherResults:an}=await gc(v.matches,R,ct,Ne,x);if(x.signal.aborted)return{shortCircuited:!0};b&&b.signal.removeEventListener("abort",or),Ne.forEach(J=>Z.delete(J.key));let Fn=Qf(ca);if(Fn){if(Fn.idx>=ct.length){let J=Ne[Fn.idx-ct.length].key;Q.add(J)}return await Xr(v,Fn.result,{replace:U}),{shortCircuited:!0}}let{loaderData:fa,errors:Jr}=Wf(v,R,ct,lr,Oe,Ne,an,Be);Be.forEach((J,re)=>{J.subscribe(Je=>{(Je||J.done)&&Be.delete(re)})}),s.v7_partialHydration&&z&&v.errors&&Object.entries(v.errors).filter(J=>{let[re]=J;return!ct.some(Je=>Je.route.id===re)}).forEach(J=>{let[re,Je]=J;Jr=Object.assign(Jr||{},{[re]:Je})});let da=wc(),ar=xc(I),ho=da||ar||Ne.length>0;return ve({loaderData:fa,errors:Jr},ho?{fetchers:new Map(v.fetchers)}:{})}function Qm(x,k,R,j){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Z.has(x)&&ln(x);let D=(j&&j.unstable_flushSync)===!0,V=a||l,U=Wu(v.location,v.matches,u,s.v7_prependBasename,R,s.v7_relativeSplatPath,k,j==null?void 0:j.relative),z=Er(V,U,u);if(!z){Zr(x,k,wt(404,{pathname:U}),{flushSync:D});return}let{path:$,submission:G,error:Oe}=Mf(s.v7_normalizeFormMethod,!0,U,j);if(Oe){Zr(x,k,Oe,{flushSync:D});return}let W=Vu(z,$);if(N=(j&&j.preventScrollReset)===!0,G&&Nt(G.formMethod)){Km(x,k,$,W,z,D,G);return}q.set(x,{routeId:k,path:$}),Ym(x,k,$,W,z,D,G)}async function Km(x,k,R,j,D,V,U){if(ua(),q.delete(x),!j.route.action&&!j.route.lazy){let re=wt(405,{method:U.formMethod,pathname:R,routeId:k});Zr(x,k,re,{flushSync:V});return}let z=v.fetchers.get(x);on(x,m0(U,z),{flushSync:V});let $=new AbortController,G=ci(e.history,R,$.signal,U);Z.set(x,$);let Oe=O,W=await si("action",G,j,D,o,i,u,s.v7_relativeSplatPath);if(G.signal.aborted){Z.get(x)===$&&Z.delete(x);return}if(s.v7_fetcherPersist&&ye.has(x)){if(Hn(W)||kr(W)){on(x,cn(void 0));return}}else{if(Hn(W))if(Z.delete(x),I>Oe){on(x,cn(void 0));return}else return Q.add(x),on(x,fi(U)),Xr(v,W,{fetcherSubmission:U});if(kr(W)){Zr(x,k,W.error);return}}if(Wn(W))throw wt(400,{type:"defer-action"});let oe=v.navigation.location||v.location,Fe=ci(e.history,oe,$.signal),ct=a||l,Ne=v.navigation.state!=="idle"?Er(ct,v.navigation.location,u):v.matches;K(Ne,"Didn't find any matches after fetcher action");let or=++O;M.set(x,or);let ca=fi(U,W.data);v.fetchers.set(x,ca);let[lr,an]=$f(e.history,v,Ne,U,oe,!1,Ie,at,De,ye,q,Q,ct,u,{[j.route.id]:W.data},void 0);an.filter(re=>re.key!==x).forEach(re=>{let Je=re.key,mo=v.fetchers.get(Je),eg=fi(void 0,mo?mo.data:void 0);v.fetchers.set(Je,eg),Z.has(Je)&&ln(Je),re.controller&&Z.set(Je,re.controller)}),Re({fetchers:new Map(v.fetchers)});let Fn=()=>an.forEach(re=>ln(re.key));$.signal.addEventListener("abort",Fn);let{results:fa,loaderResults:Jr,fetcherResults:da}=await gc(v.matches,Ne,lr,an,Fe);if($.signal.aborted)return;$.signal.removeEventListener("abort",Fn),M.delete(x),Z.delete(x),an.forEach(re=>Z.delete(re.key));let ar=Qf(fa);if(ar){if(ar.idx>=lr.length){let re=an[ar.idx-lr.length].key;Q.add(re)}return Xr(v,ar.result)}let{loaderData:ho,errors:J}=Wf(v,v.matches,lr,Jr,void 0,an,da,Be);if(v.fetchers.has(x)){let re=cn(W.data);v.fetchers.set(x,re)}xc(or),v.navigation.state==="loading"&&or>I?(K(C,"Expected pending action"),b&&b.abort(),Ze(v.navigation.location,{matches:Ne,loaderData:ho,errors:J,fetchers:new Map(v.fetchers)})):(Re({errors:J,loaderData:Hf(v.loaderData,ho,Ne,J),fetchers:new Map(v.fetchers)}),Ie=!1)}async function Ym(x,k,R,j,D,V,U){let z=v.fetchers.get(x);on(x,fi(U,z?z.data:void 0),{flushSync:V});let $=new AbortController,G=ci(e.history,R,$.signal);Z.set(x,$);let Oe=O,W=await si("loader",G,j,D,o,i,u,s.v7_relativeSplatPath);if(Wn(W)&&(W=await Zh(W,G.signal,!0)||W),Z.get(x)===$&&Z.delete(x),!G.signal.aborted){if(ye.has(x)){on(x,cn(void 0));return}if(Hn(W))if(I>Oe){on(x,cn(void 0));return}else{Q.add(x),await Xr(v,W);return}if(kr(W)){Zr(x,k,W.error);return}K(!Wn(W),"Unhandled fetcher deferred data"),on(x,cn(W.data))}}async function Xr(x,k,R){let{submission:j,fetcherSubmission:D,replace:V}=R===void 0?{}:R;k.revalidate&&(Ie=!0);let U=Xi(x.location,k.location,{_isRedirect:!0});if(K(U,"Expected a location on the redirect navigation"),n){let oe=!1;if(k.reloadDocument)oe=!0;else if(Yh.test(k.location)){const Fe=e.history.createURL(k.location);oe=Fe.origin!==t.location.origin||Yr(Fe.pathname,u)==null}if(oe){V?t.location.replace(k.location):t.location.assign(k.location);return}}b=null;let z=V===!0?xe.Replace:xe.Push,{formMethod:$,formAction:G,formEncType:Oe}=x.navigation;!j&&!D&&$&&G&&Oe&&(j=Yf(x.navigation));let W=j||D;if(n0.has(k.status)&&W&&Nt(W.formMethod))await Dn(z,U,{submission:ve({},W,{formAction:k.location}),preventScrollReset:N});else{let oe=Ua(U,j);await Dn(z,U,{overrideNavigation:oe,fetcherSubmission:D,preventScrollReset:N})}}async function gc(x,k,R,j,D){let V=await Promise.all([...R.map($=>si("loader",D,$,k,o,i,u,s.v7_relativeSplatPath)),...j.map($=>$.matches&&$.match&&$.controller?si("loader",ci(e.history,$.path,$.controller.signal),$.match,$.matches,o,i,u,s.v7_relativeSplatPath):{type:me.error,error:wt(404,{pathname:$.path})})]),U=V.slice(0,R.length),z=V.slice(R.length);return await Promise.all([Kf(x,R,U,U.map(()=>D.signal),!1,v.loaderData),Kf(x,j.map($=>$.match),z,j.map($=>$.controller?$.controller.signal:null),!0)]),{results:V,loaderResults:U,fetcherResults:z}}function ua(){Ie=!0,at.push(...sa()),q.forEach((x,k)=>{Z.has(k)&&(De.push(k),ln(k))})}function on(x,k,R){R===void 0&&(R={}),v.fetchers.set(x,k),Re({fetchers:new Map(v.fetchers)},{flushSync:(R&&R.flushSync)===!0})}function Zr(x,k,R,j){j===void 0&&(j={});let D=Oi(v.matches,k);fo(x),Re({errors:{[D.route.id]:R},fetchers:new Map(v.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function vc(x){return s.v7_fetcherPersist&&(ut.set(x,(ut.get(x)||0)+1),ye.has(x)&&ye.delete(x)),v.fetchers.get(x)||r0}function fo(x){let k=v.fetchers.get(x);Z.has(x)&&!(k&&k.state==="loading"&&M.has(x))&&ln(x),q.delete(x),M.delete(x),Q.delete(x),ye.delete(x),v.fetchers.delete(x)}function Gm(x){if(s.v7_fetcherPersist){let k=(ut.get(x)||0)-1;k<=0?(ut.delete(x),ye.add(x)):ut.set(x,k)}else fo(x);Re({fetchers:new Map(v.fetchers)})}function ln(x){let k=Z.get(x);K(k,"Expected fetch controller: "+x),k.abort(),Z.delete(x)}function yc(x){for(let k of x){let R=vc(k),j=cn(R.data);v.fetchers.set(k,j)}}function wc(){let x=[],k=!1;for(let R of Q){let j=v.fetchers.get(R);K(j,"Expected fetcher: "+R),j.state==="loading"&&(Q.delete(R),x.push(R),k=!0)}return yc(x),k}function xc(x){let k=[];for(let[R,j]of M)if(j0}function qm(x,k){let R=v.blockers.get(x)||ui;return we.get(x)!==k&&we.set(x,k),R}function Sc(x){v.blockers.delete(x),we.delete(x)}function po(x,k){let R=v.blockers.get(x)||ui;K(R.state==="unblocked"&&k.state==="blocked"||R.state==="blocked"&&k.state==="blocked"||R.state==="blocked"&&k.state==="proceeding"||R.state==="blocked"&&k.state==="unblocked"||R.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+R.state+" -> "+k.state);let j=new Map(v.blockers);j.set(x,k),Re({blockers:j})}function Ec(x){let{currentLocation:k,nextLocation:R,historyAction:j}=x;if(we.size===0)return;we.size>1&&$r(!1,"A router only supports one blocker at a time");let D=Array.from(we.entries()),[V,U]=D[D.length-1],z=v.blockers.get(V);if(!(z&&z.state==="proceeding")&&U({currentLocation:k,nextLocation:R,historyAction:j}))return V}function sa(x){let k=[];return Be.forEach((R,j)=>{(!x||x(j))&&(R.cancel(),k.push(j),Be.delete(j))}),k}function Xm(x,k,R){if(h=x,y=k,g=R||null,!w&&v.navigation===za){w=!0;let j=Cc(v.location,v.matches);j!=null&&Re({restoreScrollPosition:j})}return()=>{h=null,y=null,g=null}}function kc(x,k){return g&&g(x,k.map(j=>by(j,v.loaderData)))||x.key}function Zm(x,k){if(h&&y){let R=kc(x,k);h[R]=y()}}function Cc(x,k){if(h){let R=kc(x,k),j=h[R];if(typeof j=="number")return j}return null}function Jm(x){o={},a=Bu(x,i,void 0,o)}return T={get basename(){return u},get future(){return s},get state(){return v},get routes(){return l},get window(){return t},initialize:In,subscribe:qr,enableScrollRestoration:Xm,navigate:mc,fetch:Qm,revalidate:Wm,createHref:x=>e.history.createHref(x),encodeLocation:x=>e.history.encodeLocation(x),getFetcher:vc,deleteFetcher:Gm,dispose:Ht,getBlocker:qm,deleteBlocker:Sc,_internalFetchControllers:Z,_internalActiveDeferreds:Be,_internalSetRoutes:Jm},T}function l0(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Wu(e,t,n,r,i,o,l,a){let u,s;if(l){u=[];for(let d of t)if(u.push(d),d.route.id===l){s=d;break}}else u=t,s=t[t.length-1];let c=tc(i||".",ec(u,o),Yr(e.pathname,n)||e.pathname,a==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&s&&s.route.index&&!rc(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Xt([n,c.pathname])),tr(c)}function Mf(e,t,n,r){if(!r||!l0(r))return{path:n};if(r.formMethod&&!p0(r.formMethod))return{path:n,error:wt(405,{method:r.formMethod})};let i=()=>({path:n,error:wt(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=Xh(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Nt(l))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,y)=>{let[w,E]=y;return""+g+w+"="+E+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Nt(l))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}K(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Hu(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Hu(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Bf(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Bf(u)}catch{return i()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Nt(c.formMethod))return{path:n,submission:c};let d=rn(n);return t&&d.search&&rc(d.search)&&u.append("index",""),d.search="?"+u,{path:tr(d),submission:c}}function a0(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function $f(e,t,n,r,i,o,l,a,u,s,c,d,h,g,y,w){let E=w?Object.values(w)[0]:y?Object.values(y)[0]:void 0,p=e.createURL(t.location),f=e.createURL(i),m=w?Object.keys(w)[0]:void 0,T=a0(n,m).filter((C,N)=>{let{route:b}=C;if(b.lazy)return!0;if(b.loader==null)return!1;if(o)return b.loader.hydrate?!0:t.loaderData[b.id]===void 0&&(!t.errors||t.errors[b.id]===void 0);if(u0(t.loaderData,t.matches[N],C)||a.some(fe=>fe===C.route.id))return!0;let F=t.matches[N],B=C;return zf(C,ve({currentUrl:p,currentParams:F.params,nextUrl:f,nextParams:B.params},r,{actionResult:E,defaultShouldRevalidate:l||p.pathname+p.search===f.pathname+f.search||p.search!==f.search||qh(F,B)}))}),v=[];return c.forEach((C,N)=>{if(o||!n.some(ie=>ie.route.id===C.routeId)||s.has(N))return;let b=Er(h,C.path,g);if(!b){v.push({key:N,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(N),B=Vu(b,C.path),fe=!1;d.has(N)?fe=!1:u.includes(N)?fe=!0:F&&F.state!=="idle"&&F.data===void 0?fe=l:fe=zf(B,ve({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:l})),fe&&v.push({key:N,routeId:C.routeId,path:C.path,matches:b,match:B,controller:new AbortController})}),[T,v]}function u0(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function qh(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function zf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Uf(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];K(i,"No route found in manifest");let o={};for(let l in r){let u=i[l]!==void 0&&l!=="hasErrorBoundary";$r(!u,'Route "'+i.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!Ly.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,ve({},t(i),{lazy:void 0}))}async function si(e,t,n,r,i,o,l,a,u){u===void 0&&(u={});let s,c,d,h=w=>{let E,p=new Promise((f,m)=>E=m);return d=()=>E(),t.signal.addEventListener("abort",d),Promise.race([w({request:t,params:n.params,context:u.requestContext}),p])};try{let w=n.route[e];if(n.route.lazy)if(w){let E,p=await Promise.all([h(w).catch(f=>{E=f}),Uf(n.route,o,i)]);if(E)throw E;c=p[0]}else if(await Uf(n.route,o,i),w=n.route[e],w)c=await h(w);else if(e==="action"){let E=new URL(t.url),p=E.pathname+E.search;throw wt(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:me.data,data:void 0};else if(w)c=await h(w);else{let E=new URL(t.url),p=E.pathname+E.search;throw wt(404,{pathname:p})}K(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(w){s=me.error,c=w}finally{d&&t.signal.removeEventListener("abort",d)}if(d0(c)){let w=c.status;if(t0.has(w)){let p=c.headers.get("Location");if(K(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!Yh.test(p))p=Wu(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,p,a);else if(!u.isStaticRequest){let f=new URL(t.url),m=p.startsWith("//")?new URL(f.protocol+p):new URL(p),S=Yr(m.pathname,l)!=null;m.origin===f.origin&&S&&(p=m.pathname+m.search+m.hash)}if(u.isStaticRequest)throw c.headers.set("Location",p),c;return{type:me.redirect,status:w,location:p,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===me.error?me.error:me.data,response:c};let E;try{let p=c.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?c.body==null?E=null:E=await c.json():E=await c.text()}catch(p){return{type:me.error,error:p}}return s===me.error?{type:s,error:new nc(w,c.statusText,E),headers:c.headers}:{type:me.data,data:E,statusCode:c.status,headers:c.headers}}if(s===me.error)return{type:s,error:c};if(f0(c)){var g,y;return{type:me.deferred,deferredData:c,statusCode:(g=c.init)==null?void 0:g.status,headers:((y=c.init)==null?void 0:y.headers)&&new Headers(c.init.headers)}}return{type:me.data,data:c}}function ci(e,t,n,r){let i=e.createURL(Xh(t)).toString(),o={signal:n};if(r&&Nt(r.formMethod)){let{formMethod:l,formEncType:a}=r;o.method=l.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=Hu(r.formData):o.body=r.formData}return new Request(i,o)}function Hu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Bf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function s0(e,t,n,r,i){let o={},l=null,a,u=!1,s={};return n.forEach((c,d)=>{let h=t[d].route.id;if(K(!Hn(c),"Cannot handle redirect results in processLoaderData"),kr(c)){let g=Oi(e,h),y=c.error;r&&(y=Object.values(r)[0],r=void 0),l=l||{},l[g.route.id]==null&&(l[g.route.id]=y),o[h]=void 0,u||(u=!0,a=Qh(c.error)?c.error.status:500),c.headers&&(s[h]=c.headers)}else Wn(c)?(i.set(h,c.deferredData),o[h]=c.deferredData.data):o[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[h]=c.headers)}),r&&(l=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:s}}function Wf(e,t,n,r,i,o,l,a){let{loaderData:u,errors:s}=s0(t,n,r,i,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Vf(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function wt(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new nc(e||500,l,new Error(a),!0)}function Qf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Hn(n))return{result:n,idx:t}}}function Xh(e){let t=typeof e=="string"?rn(e):e;return tr(ve({},t,{hash:""}))}function c0(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Wn(e){return e.type===me.deferred}function kr(e){return e.type===me.error}function Hn(e){return(e&&e.type)===me.redirect}function f0(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function d0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function p0(e){return e0.has(e.toLowerCase())}function Nt(e){return Zy.has(e.toLowerCase())}async function Kf(e,t,n,r,i,o){for(let l=0;ld.route.id===u.route.id),c=s!=null&&!qh(s,u)&&(o&&o[u.route.id])!==void 0;if(Wn(a)&&(i||c)){let d=r[l];K(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await Zh(a,d,i).then(h=>{h&&(n[l]=h||n[l])})}}}async function Zh(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:me.data,data:e.deferredData.unwrappedData}}catch(i){return{type:me.error,error:i}}return{type:me.data,data:e.deferredData.data}}}function rc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Vu(e,t){let n=typeof t=="string"?rn(t).search:t.search;if(e[e.length-1].route.index&&rc(n||""))return e[e.length-1];let r=Vh(e);return r[r.length-1]}function Yf(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Ua(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function h0(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function fi(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function m0(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function cn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function g0(e,t){try{let n=e.sessionStorage.getItem(Gh);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function v0(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Gh,JSON.stringify(n))}catch(r){$r(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),P.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let d=Zs(s,JSON.parse(l),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:qt([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,l,o,e])}const w0=P.createContext(null);function S0(e){let t=P.useContext(An).outlet;return t&&P.createElement(w0.Provider,{value:e},t)}function em(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(ir),{matches:i}=P.useContext(An),{pathname:o}=so(),l=JSON.stringify(Js(i,r.v7_relativeSplatPath));return P.useMemo(()=>Zs(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function x0(e,t,n,r){uo()||K(!1);let{navigator:i}=P.useContext(ir),{matches:o}=P.useContext(An),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=so(),c;if(t){var d;let E=typeof t=="string"?nn(t):t;u==="/"||(d=E.pathname)!=null&&d.startsWith(u)||K(!1),c=E}else c=s;let h=c.pathname||"/",g=h;if(u!=="/"){let E=u.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=Er(e,{pathname:g}),w=_0(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},a,E.params),pathname:qt([u,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?u:qt([u,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&w?P.createElement(ql.Provider,{value:{location:Ji({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:we.Pop}},w):w}function E0(){let e=O0(),t=Hh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const k0=P.createElement(E0,null);class C0 extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(An.Provider,{value:this.props.routeContext},P.createElement(Jh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function P0(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(Gl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(An.Provider,{value:t},r)}function _0(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let l=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=l.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||K(!1),l=l.slice(0,Math.min(l.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((c,d,h)=>{let g,y=!1,w=null,E=null;n&&(g=a&&d.route.id?a[d.route.id]:void 0,w=d.route.errorElement||k0,u&&(s<0&&h===0?(j0("route-fallback",!1),y=!0,E=null):s===h&&(y=!0,E=d.route.hydrateFallbackElement||null)));let p=t.concat(l.slice(0,h+1)),f=()=>{let m;return g?m=w:y?m=E:d.route.Component?m=P.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=c,P.createElement(P0,{match:d,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?P.createElement(C0,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:f(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):f()},null)}var tm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(tm||{}),Rl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rl||{});function T0(e){let t=P.useContext(Gl);return t||K(!1),t}function R0(e){let t=P.useContext(Xh);return t||K(!1),t}function N0(e){let t=P.useContext(An);return t||K(!1),t}function nm(e){let t=N0(),n=t.matches[t.matches.length-1];return n.route.id||K(!1),n.route.id}function O0(){var e;let t=P.useContext(Jh),n=R0(Rl.UseRouteError),r=nm(Rl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function L0(){let{router:e}=T0(tm.UseNavigateStable),t=nm(Rl.UseNavigateStable),n=P.useRef(!1);return Zh(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ji({fromRouteId:t},o)))},[e,t])}const Kf={};function j0(e,t,n){!t&&!Kf[e]&&(Kf[e]=!0)}function A0(e){return S0(e.context)}function D0(e){let{basename:t="/",children:n=null,location:r,navigationType:i=we.Pop,navigator:o,static:l=!1,future:a}=e;uo()&&K(!1);let u=t.replace(/^\/*/,"/"),s=P.useMemo(()=>({basename:u,navigator:o,static:l,future:Ji({v7_relativeSplatPath:!1},a)}),[u,a,o,l]);typeof r=="string"&&(r=nn(r));let{pathname:c="/",search:d="",hash:h="",state:g=null,key:y="default"}=r,w=P.useMemo(()=>{let E=Yr(c,u);return E==null?null:{location:{pathname:E,search:d,hash:h,state:g,key:y},navigationType:i}},[u,c,d,h,g,y,i]);return w==null?null:P.createElement(ir.Provider,{value:s},P.createElement(ql.Provider,{children:n,value:w}))}new Promise(()=>{});function b0(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),_.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let d=tc(s,JSON.parse(l),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Xt([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,l,o,e])}const S0=_.createContext(null);function E0(e){let t=_.useContext(An).outlet;return t&&_.createElement(S0.Provider,{value:e},t)}function nm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(ir),{matches:i}=_.useContext(An),{pathname:o}=so(),l=JSON.stringify(ec(i,r.v7_relativeSplatPath));return _.useMemo(()=>tc(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function k0(e,t,n,r){uo()||K(!1);let{navigator:i}=_.useContext(ir),{matches:o}=_.useContext(An),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=so(),c;if(t){var d;let E=typeof t=="string"?rn(t):t;u==="/"||(d=E.pathname)!=null&&d.startsWith(u)||K(!1),c=E}else c=s;let h=c.pathname||"/",g=h;if(u!=="/"){let E=u.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=Er(e,{pathname:g}),w=R0(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},a,E.params),pathname:Xt([u,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?u:Xt([u,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&w?_.createElement(Xl.Provider,{value:{location:Zi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:xe.Pop}},w):w}function C0(){let e=j0(),t=Qh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,null)}const P0=_.createElement(C0,null);class _0 extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement(An.Provider,{value:this.props.routeContext},_.createElement(em.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T0(e){let{routeContext:t,match:n,children:r}=e,i=_.useContext(ql);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(An.Provider,{value:t},r)}function R0(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let l=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=l.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||K(!1),l=l.slice(0,Math.min(l.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((c,d,h)=>{let g,y=!1,w=null,E=null;n&&(g=a&&d.route.id?a[d.route.id]:void 0,w=d.route.errorElement||P0,u&&(s<0&&h===0?(A0("route-fallback",!1),y=!0,E=null):s===h&&(y=!0,E=d.route.hydrateFallbackElement||null)));let p=t.concat(l.slice(0,h+1)),f=()=>{let m;return g?m=w:y?m=E:d.route.Component?m=_.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=c,_.createElement(T0,{match:d,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?_.createElement(_0,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:f(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):f()},null)}var rm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rm||{}),Rl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rl||{});function O0(e){let t=_.useContext(ql);return t||K(!1),t}function N0(e){let t=_.useContext(Jh);return t||K(!1),t}function L0(e){let t=_.useContext(An);return t||K(!1),t}function im(e){let t=L0(),n=t.matches[t.matches.length-1];return n.route.id||K(!1),n.route.id}function j0(){var e;let t=_.useContext(em),n=N0(Rl.UseRouteError),r=im(Rl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function b0(){let{router:e}=O0(rm.UseNavigateStable),t=im(Rl.UseNavigateStable),n=_.useRef(!1);return tm(()=>{n.current=!0}),_.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Zi({fromRouteId:t},o)))},[e,t])}const Gf={};function A0(e,t,n){!t&&!Gf[e]&&(Gf[e]=!0)}function I0(e){return E0(e.context)}function D0(e){let{basename:t="/",children:n=null,location:r,navigationType:i=xe.Pop,navigator:o,static:l=!1,future:a}=e;uo()&&K(!1);let u=t.replace(/^\/*/,"/"),s=_.useMemo(()=>({basename:u,navigator:o,static:l,future:Zi({v7_relativeSplatPath:!1},a)}),[u,a,o,l]);typeof r=="string"&&(r=rn(r));let{pathname:c="/",search:d="",hash:h="",state:g=null,key:y="default"}=r,w=_.useMemo(()=>{let E=Yr(c,u);return E==null?null:{location:{pathname:E,search:d,hash:h,state:g,key:y},navigationType:i}},[u,c,d,h,g,y,i]);return w==null?null:_.createElement(ir.Provider,{value:s},_.createElement(Xl.Provider,{children:n,value:w}))}new Promise(()=>{});function F0(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -65,14 +65,14 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function F0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M0(e,t){return e.button===0&&(!t||t==="_self")&&!F0(e)}const $0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],z0="6";try{window.__reactRouterVersion=z0}catch{}function U0(e,t){return r0({basename:t==null?void 0:t.basename,future:Zi({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:_y({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||B0(),routes:e,mapRouteProperties:b0,window:t==null?void 0:t.window}).initialize()}function B0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Zi({},t,{errors:W0(t.errors)})),t}function W0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new ec(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let l=new o(i.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const H0=P.createContext({isTransitioning:!1}),V0=P.createContext(new Map),Q0="startTransition",Yf=hg[Q0],K0="flushSync",Gf=Py[K0];function Y0(e){Yf?Yf(e):e()}function di(e){Gf?Gf(e):e()}class G0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function q0(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=P.useState(n.state),[l,a]=P.useState(),[u,s]=P.useState({isTransitioning:!1}),[c,d]=P.useState(),[h,g]=P.useState(),[y,w]=P.useState(),E=P.useRef(new Map),{v7_startTransition:p}=r||{},f=P.useCallback(C=>{p?Y0(C):C()},[p]),m=P.useCallback((C,O)=>{let{deletedFetchers:A,unstable_flushSync:F,unstable_viewTransitionOpts:B}=O;A.forEach(re=>E.current.delete(re)),C.fetchers.forEach((re,be)=>{re.data!==void 0&&E.current.set(be,re.data)});let ce=n.window==null||typeof n.window.document.startViewTransition!="function";if(!B||ce){F?di(()=>o(C)):f(()=>o(C));return}if(F){di(()=>{h&&(c&&c.resolve(),h.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let re=n.window.document.startViewTransition(()=>{di(()=>o(C))});re.finished.finally(()=>{di(()=>{d(void 0),g(void 0),a(void 0),s({isTransitioning:!1})})}),di(()=>g(re));return}h?(c&&c.resolve(),h.skipTransition(),w({state:C,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(a(C),s({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,h,c,E,f]);P.useLayoutEffect(()=>n.subscribe(m),[n,m]),P.useEffect(()=>{u.isTransitioning&&!u.flushSync&&d(new G0)},[u]),P.useEffect(()=>{if(c&&l&&n.window){let C=l,O=c.promise,A=n.window.document.startViewTransition(async()=>{f(()=>o(C)),await O});A.finished.finally(()=>{d(void 0),g(void 0),a(void 0),s({isTransitioning:!1})}),g(A)}},[f,l,c,n.window]),P.useEffect(()=>{c&&l&&i.location.key===l.location.key&&c.resolve()},[c,h,i.location,l]),P.useEffect(()=>{!u.isTransitioning&&y&&(a(y.state),s({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),w(void 0))},[u.isTransitioning,y]),P.useEffect(()=>{},[]);let x=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,O,A)=>n.navigate(C,{state:O,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(C,O,A)=>n.navigate(C,{replace:!0,state:O,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),_=n.basename||"/",v=P.useMemo(()=>({router:n,navigator:x,static:!1,basename:_}),[n,x,_]);return P.createElement(P.Fragment,null,P.createElement(Gl.Provider,{value:v},P.createElement(Xh.Provider,{value:i},P.createElement(V0.Provider,{value:E.current},P.createElement(H0.Provider,{value:u},P.createElement(D0,{basename:_,location:i.location,navigationType:i.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?P.createElement(X0,{routes:n.routes,future:n.future,state:i}):t))))),null)}function X0(e){let{routes:t,future:n,state:r}=e;return x0(t,void 0,r,n)}const J0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nc=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:d}=t,h=I0(t,$0),{basename:g}=P.useContext(ir),y,w=!1;if(typeof s=="string"&&Z0.test(s)&&(y=s,J0))try{let m=new URL(window.location.href),x=s.startsWith("//")?new URL(m.protocol+s):new URL(s),_=Yr(x.pathname,g);x.origin===m.origin&&_!=null?s=_+x.search+x.hash:w=!0}catch{}let E=g0(s,{relative:i}),p=e1(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:i,unstable_viewTransition:d});function f(m){r&&r(m),m.defaultPrevented||p(m)}return P.createElement("a",Zi({},h,{href:y||E,onClick:w||o?r:f,ref:n,target:u}))});var qf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qf||(qf={}));var Xf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Xf||(Xf={}));function e1(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=v0(),s=so(),c=em(e,{relative:l});return P.useCallback(d=>{if(M0(d,n)){d.preventDefault();let h=r!==void 0?r:tr(s)===tr(c);u(e,{replace:h,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[s,u,c,r,i,n,e,o,l,a])}const t1="_headerWrapper_jlk7e_1",n1="_topHeaderWrapper_jlk7e_29",r1="_topHeaderLeft_jlk7e_39",i1="_topHeaderRight_jlk7e_53",o1="_bottomElementsWrapper_jlk7e_67",pi={headerWrapper:t1,topHeaderWrapper:n1,topHeaderLeft:r1,topHeaderRight:i1,bottomElementsWrapper:o1},Te={white:"#FFFFFF",gray:"#F8F8F8",darkBlue:"#071D41",blue:"#155BCB",lightBlue:"#D4E5FF",green:"#168821",lightGreen:"#E3F5E1",yellow:"#FFCD07",lightYellow:"FFF5C2",red:"#E52207",lightRed:"#FDB8AE",backgroundDarkBlue:"#04132A",backgroundBlue:"#071D41",transparent:"#0000000",fadeBackground:"#00000075",textBlack:"#333333",textBlue:"#1351B4",textLightBlue:"#C5D4EB",hoverBlue:"#5992ED"};var nt=function(){return nt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Ae(Gr,--_t):0,Ur--,ke===10&&(Ur=1,Jl--),ke}function Dt(){return ke=_t2||Vu(ke)>3?"":" "}function m1(e,t){for(;--t&&Dt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return ea(e,Jo()+(t<6&&Yn()==32&&Dt()==32))}function Qu(e){for(;Dt();)switch(ke){case e:return _t;case 34:case 39:e!==34&&e!==39&&Qu(ke);break;case 40:e===41&&Qu(e);break;case 92:Dt();break}return _t}function g1(e,t){for(;Dt()&&e+ke!==57;)if(e+ke===84&&Yn()===47)break;return"/*"+ea(t,_t-1)+"*"+ic(e===47?e:Dt())}function v1(e){for(;!Vu(Yn());)Dt();return ea(e,_t)}function y1(e){return p1(Zo("",null,null,null,[""],e=d1(e),0,[0],e))}function Zo(e,t,n,r,i,o,l,a,u){for(var s=0,c=0,d=l,h=0,g=0,y=0,w=1,E=1,p=1,f=0,m="",x=i,_=o,v=r,C=m;E;)switch(y=f,f=Dt()){case 40:if(y!=108&&Ae(C,d-1)==58){Xo(C+=H(za(f),"&","&\f"),"&\f",om(s?a[s-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:C+=za(f);break;case 9:case 10:case 13:case 32:C+=h1(y);break;case 92:C+=m1(Jo()-1,7);continue;case 47:switch(Yn()){case 42:case 47:wi(w1(g1(Dt(),Jo()),t,n,u),u);break;default:C+="/"}break;case 123*w:a[s++]=$t(C)*p;case 125*w:case 59:case 0:switch(f){case 0:case 125:E=0;case 59+c:p==-1&&(C=H(C,/\f/g,"")),g>0&&$t(C)-d&&wi(g>32?ed(C+";",r,n,d-1,u):ed(H(C," ","")+";",r,n,d-2,u),u);break;case 59:C+=";";default:if(wi(v=Zf(C,t,n,s,c,i,a,m,x=[],_=[],d,o),o),f===123)if(c===0)Zo(C,t,v,v,x,o,d,a,_);else switch(h===99&&Ae(C,3)===110?100:h){case 100:case 108:case 109:case 115:Zo(e,v,v,r&&wi(Zf(e,v,v,0,0,i,a,m,i,x=[],d,_),_),i,_,d,a,r?x:_);break;default:Zo(C,v,v,v,[""],_,0,a,_)}}s=c=g=0,w=p=1,m=C="",d=l;break;case 58:d=1+$t(C),g=y;default:if(w<1){if(f==123)--w;else if(f==125&&w++==0&&f1()==125)continue}switch(C+=ic(f),f*w){case 38:p=c>0?1:(C+="\f",-1);break;case 44:a[s++]=($t(C)-1)*p,p=1;break;case 64:Yn()===45&&(C+=za(Dt())),h=Yn(),c=d=$t(m=C+=v1(Jo())),f++;break;case 45:y===45&&$t(C)==2&&(w=0)}}return o}function Zf(e,t,n,r,i,o,l,a,u,s,c,d){for(var h=i-1,g=i===0?o:[""],y=am(g),w=0,E=0,p=0;w0?g[f]+" "+m:H(m,/&\f/g,g[f])))&&(u[p++]=x);return Zl(e,t,n,i===0?Xl:a,u,s,c,d)}function w1(e,t,n,r){return Zl(e,t,n,rm,ic(c1()),zr(e,2,-2),0,r)}function ed(e,t,n,r,i){return Zl(e,t,n,rc,zr(e,0,r),zr(e,r+1,-1),r,i)}function sm(e,t,n){switch(u1(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 4789:return Oi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Oi+e+ae+e+e;case 5936:switch(Ae(e,t+11)){case 114:return ee+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ee+e+ae+e+e;case 6165:return ee+e+ae+"flex-"+e+e;case 5187:return ee+e+H(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+ae+"flex-$1$2")+e;case 5443:return ee+e+ae+"flex-item-"+H(e,/flex-|-self/g,"")+(Vt(e,/flex-|baseline/)?"":ae+"grid-row-"+H(e,/flex-|-self/g,""))+e;case 4675:return ee+e+ae+"flex-line-pack"+H(e,/align-content|flex-|-self/g,"")+e;case 5548:return ee+e+ae+H(e,"shrink","negative")+e;case 5292:return ee+e+ae+H(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+H(e,"-grow","")+ee+e+ae+H(e,"grow","positive")+e;case 4554:return ee+H(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4200:if(!Vt(e,/flex-|baseline/))return ae+"grid-column-align"+zr(e,t)+e;break;case 2592:case 3360:return ae+H(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Vt(r.props,/grid-\w+-end/)})?~Xo(e+(n=n[t].value),"span",0)?e:ae+H(e,"-start","")+e+ae+"grid-row-span:"+(~Xo(n,"span",0)?Vt(n,/\d+/):+Vt(n,/\d+/)-+Vt(e,/\d+/))+";":ae+H(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Vt(r.props,/grid-\w+-start/)})?e:ae+H(H(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($t(e)-1-t>6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Oi+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xo(e,"stretch",0)?sm(H(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return H(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,l,a,u,s){return ae+i+":"+o+s+(l?ae+i+"-span:"+(a?u:+u-+o)+s:"")+e});case 4949:if(Ae(e,t+6)===121)return H(e,":",":"+ee)+e;break;case 6444:switch(Ae(e,Ae(e,14)===45?18:11)){case 120:return H(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ee+(Ae(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+ae+"$2box$3")+e;case 100:return H(e,":",":"+ae)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return H(e,"scroll-","scroll-snap-")+e}return e}function Ol(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case rc:e.return=sm(e.value,e.length,n);return;case im:return Ol([cn(e,{value:H(e.value,"@","@"+ee)})],r);case Xl:if(e.length)return s1(n=e.props,function(i){switch(Vt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":sr(cn(e,{props:[H(i,/:(read-\w+)/,":"+Oi+"$1")]})),sr(cn(e,{props:[i]})),Hu(e,{props:Jf(n,r)});break;case"::placeholder":sr(cn(e,{props:[H(i,/:(plac\w+)/,":"+ee+"input-$1")]})),sr(cn(e,{props:[H(i,/:(plac\w+)/,":"+Oi+"$1")]})),sr(cn(e,{props:[H(i,/:(plac\w+)/,ae+"input-$1")]})),sr(cn(e,{props:[i]})),Hu(e,{props:Jf(n,r)});break}return""})}}var C1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ft={},Br=typeof process<"u"&&ft!==void 0&&(ft.REACT_APP_SC_ATTR||ft.SC_ATTR)||"data-styled",cm="active",fm="data-styled-version",ta="6.1.8",oc=`/*!sc*/ -`,lc=typeof window<"u"&&"HTMLElement"in window,P1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ft!==void 0&&ft.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ft.REACT_APP_SC_DISABLE_SPEEDY!==""?ft.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ft.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ft!==void 0&&ft.SC_DISABLE_SPEEDY!==void 0&&ft.SC_DISABLE_SPEEDY!==""&&ft.SC_DISABLE_SPEEDY!=="false"&&ft.SC_DISABLE_SPEEDY),na=Object.freeze([]),Wr=Object.freeze({});function _1(e,t,n){return n===void 0&&(n=Wr),e.theme!==n.theme&&e.theme||t||n.theme}var dm=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),T1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,R1=/(^-|-$)/g;function td(e){return e.replace(T1,"-").replace(R1,"")}var N1=/(a)(d)/gi,Ao=52,nd=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ku(e){var t,n="";for(t=Math.abs(e);t>Ao;t=t/Ao|0)n=nd(t%Ao)+n;return(nd(t%Ao)+n).replace(N1,"$1-$2")}var Ua,pm=5381,Cr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},hm=function(e){return Cr(pm,e)};function O1(e){return Ku(hm(e)>>>0)}function L1(e){return e.displayName||e.name||"Component"}function Ba(e){return typeof e=="string"&&!0}var mm=typeof Symbol=="function"&&Symbol.for,gm=mm?Symbol.for("react.memo"):60115,j1=mm?Symbol.for("react.forward_ref"):60112,A1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},D1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},b1=((Ua={})[j1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ua[gm]=vm,Ua);function rd(e){return("type"in(t=e)&&t.type.$$typeof)===gm?vm:"$$typeof"in e?b1[e.$$typeof]:A1;var t}var I1=Object.defineProperty,F1=Object.getOwnPropertyNames,id=Object.getOwnPropertySymbols,M1=Object.getOwnPropertyDescriptor,$1=Object.getPrototypeOf,od=Object.prototype;function ym(e,t,n){if(typeof t!="string"){if(od){var r=$1(t);r&&r!==od&&ym(e,r,n)}var i=F1(t);id&&(i=i.concat(id(t)));for(var o=rd(e),l=rd(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var z1=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw co(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var l=i;l=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,l=i;l=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(E+="".concat(p,","))}),u+="".concat(y).concat(w,'{content:"').concat(E,'"}').concat(oc)},c=0;c0?".".concat(t):h},c=u.slice();c.push(function(h){h.type===Xl&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(X1,n).replace(r,s))}),l.prefix&&c.push(k1),c.push(S1);var d=function(h,g,y,w){g===void 0&&(g=""),y===void 0&&(y=""),w===void 0&&(w="&"),t=w,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var E=h.replace(J1,""),p=y1(y||g?"".concat(y," ").concat(g," { ").concat(E," }"):E);l.namespace&&(p=xm(p,l.namespace));var f=[];return Ol(p,x1(c.concat(E1(function(m){return f.push(m)})))),f};return d.hash=u.length?u.reduce(function(h,g){return g.name||co(15),Cr(h,g.name)},pm).toString():"",d}var ew=new Sm,Gu=Z1(),Em=Tn.createContext({shouldForwardProp:void 0,styleSheet:ew,stylis:Gu});Em.Consumer;Tn.createContext(void 0);function ud(){return P.useContext(Em)}var tw=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Gu);var l=r.name+o.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,o(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,uc(this,function(){throw co(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Gu),this.name+t.hash},e}(),nw=function(e){return e>="A"&&e<="Z"};function sd(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,l)){var a=r(o,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,a)}i=Vn(i,l),this.staticRulesId=l}else{for(var u=Cr(this.baseHash,r.hash),s="",c=0;c>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(s,".".concat(g),void 0,this.componentId)),i=Vn(i,g)}}return i},e}(),Pm=Tn.createContext(void 0);Pm.Consumer;var Wa={};function lw(e,t,n){var r=ac(e),i=e,o=!Ba(e),l=t.attrs,a=l===void 0?na:l,u=t.componentId,s=u===void 0?function(x,_){var v=typeof x!="string"?"sc":td(x);Wa[v]=(Wa[v]||0)+1;var C="".concat(v,"-").concat(O1(ta+v+Wa[v]));return _?"".concat(_,"-").concat(C):C}(t.displayName,t.parentComponentId):u,c=t.displayName,d=c===void 0?function(x){return Ba(x)?"styled.".concat(x):"Styled(".concat(L1(x),")")}(e):c,h=t.displayName&&t.componentId?"".concat(td(t.displayName),"-").concat(t.componentId):t.componentId||s,g=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;y=function(x,_){return w(x,_)&&E(x,_)}}else y=w}var p=new ow(n,h,r?i.componentStyle:void 0);function f(x,_){return function(v,C,O){var A=v.attrs,F=v.componentStyle,B=v.defaultProps,ce=v.foldedComponentIds,re=v.styledComponentId,be=v.target,at=Tn.useContext(Pm),Ie=ud(),J=v.shouldForwardProp||Ie.shouldForwardProp,N=_1(C,at,B)||Wr,b=function(Be,ye,st){for(var bn,Wt=nt(nt({},ye),{className:void 0,theme:st}),qr=0;qr=0)&&(n[i]=e[i]);return n}function $0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function z0(e,t){return e.button===0&&(!t||t==="_self")&&!$0(e)}const U0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],B0="6";try{window.__reactRouterVersion=B0}catch{}function W0(e,t){return o0({basename:t==null?void 0:t.basename,future:Ji({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Ry({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||H0(),routes:e,mapRouteProperties:F0,window:t==null?void 0:t.window}).initialize()}function H0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ji({},t,{errors:V0(t.errors)})),t}function V0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new nc(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let l=new o(i.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const Q0=_.createContext({isTransitioning:!1}),K0=_.createContext(new Map),Y0="startTransition",qf=gg[Y0],G0="flushSync",Xf=Ty[G0];function q0(e){qf?qf(e):e()}function di(e){Xf?Xf(e):e()}class X0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Z0(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=_.useState(n.state),[l,a]=_.useState(),[u,s]=_.useState({isTransitioning:!1}),[c,d]=_.useState(),[h,g]=_.useState(),[y,w]=_.useState(),E=_.useRef(new Map),{v7_startTransition:p}=r||{},f=_.useCallback(C=>{p?q0(C):C()},[p]),m=_.useCallback((C,N)=>{let{deletedFetchers:b,unstable_flushSync:F,unstable_viewTransitionOpts:B}=N;b.forEach(ie=>E.current.delete(ie)),C.fetchers.forEach((ie,Ie)=>{ie.data!==void 0&&E.current.set(Ie,ie.data)});let fe=n.window==null||typeof n.window.document.startViewTransition!="function";if(!B||fe){F?di(()=>o(C)):f(()=>o(C));return}if(F){di(()=>{h&&(c&&c.resolve(),h.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let ie=n.window.document.startViewTransition(()=>{di(()=>o(C))});ie.finished.finally(()=>{di(()=>{d(void 0),g(void 0),a(void 0),s({isTransitioning:!1})})}),di(()=>g(ie));return}h?(c&&c.resolve(),h.skipTransition(),w({state:C,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(a(C),s({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,h,c,E,f]);_.useLayoutEffect(()=>n.subscribe(m),[n,m]),_.useEffect(()=>{u.isTransitioning&&!u.flushSync&&d(new X0)},[u]),_.useEffect(()=>{if(c&&l&&n.window){let C=l,N=c.promise,b=n.window.document.startViewTransition(async()=>{f(()=>o(C)),await N});b.finished.finally(()=>{d(void 0),g(void 0),a(void 0),s({isTransitioning:!1})}),g(b)}},[f,l,c,n.window]),_.useEffect(()=>{c&&l&&i.location.key===l.location.key&&c.resolve()},[c,h,i.location,l]),_.useEffect(()=>{!u.isTransitioning&&y&&(a(y.state),s({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),w(void 0))},[u.isTransitioning,y]),_.useEffect(()=>{},[]);let S=_.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,N,b)=>n.navigate(C,{state:N,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(C,N,b)=>n.navigate(C,{replace:!0,state:N,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),T=n.basename||"/",v=_.useMemo(()=>({router:n,navigator:S,static:!1,basename:T}),[n,S,T]);return _.createElement(_.Fragment,null,_.createElement(ql.Provider,{value:v},_.createElement(Jh.Provider,{value:i},_.createElement(K0.Provider,{value:E.current},_.createElement(Q0.Provider,{value:u},_.createElement(D0,{basename:T,location:i.location,navigationType:i.historyAction,navigator:S,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?_.createElement(J0,{routes:n.routes,future:n.future,state:i}):t))))),null)}function J0(e){let{routes:t,future:n,state:r}=e;return k0(t,void 0,r,n)}const e1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",t1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zl=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:d}=t,h=M0(t,U0),{basename:g}=_.useContext(ir),y,w=!1;if(typeof s=="string"&&t1.test(s)&&(y=s,e1))try{let m=new URL(window.location.href),S=s.startsWith("//")?new URL(m.protocol+s):new URL(s),T=Yr(S.pathname,g);S.origin===m.origin&&T!=null?s=T+S.search+S.hash:w=!0}catch{}let E=y0(s,{relative:i}),p=n1(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:i,unstable_viewTransition:d});function f(m){r&&r(m),m.defaultPrevented||p(m)}return _.createElement("a",Ji({},h,{href:y||E,onClick:w||o?r:f,ref:n,target:u}))});var Zf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Zf||(Zf={}));var Jf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Jf||(Jf={}));function n1(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=w0(),s=so(),c=nm(e,{relative:l});return _.useCallback(d=>{if(z0(d,n)){d.preventDefault();let h=r!==void 0?r:tr(s)===tr(c);u(e,{replace:h,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[s,u,c,r,i,n,e,o,l,a])}const r1="_headerWrapper_jlk7e_1",i1="_topHeaderWrapper_jlk7e_29",o1="_topHeaderLeft_jlk7e_39",l1="_topHeaderRight_jlk7e_53",a1="_bottomElementsWrapper_jlk7e_67",pi={headerWrapper:r1,topHeaderWrapper:i1,topHeaderLeft:o1,topHeaderRight:l1,bottomElementsWrapper:a1},ne={white:"#FFFFFF",gray:"#F8F8F8",darkBlue:"#071D41",blue:"#155BCB",lightBlue:"#D4E5FF",green:"#168821",lightGreen:"#E3F5E1",yellow:"#FFCD07",lightYellow:"FFF5C2",red:"#E52207",lightRed:"#FDB8AE",backgroundDarkBlue:"#04132A",backgroundBlue:"#071D41",transparent:"#0000000",fadeBackground:"#00000075",textBlack:"#333333",textBlue:"#1351B4",textLightBlue:"#C5D4EB",hoverBlue:"#5992ED"};var nt=function(){return nt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?be(Gr,--_t):0,Ur--,Ce===10&&(Ur=1,ea--),Ce}function At(){return Ce=_t2||Ku(Ce)>3?"":" "}function v1(e,t){for(;--t&&At()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return na(e,Zo()+(t<6&&Yn()==32&&At()==32))}function Yu(e){for(;At();)switch(Ce){case e:return _t;case 34:case 39:e!==34&&e!==39&&Yu(Ce);break;case 40:e===41&&Yu(e);break;case 92:At();break}return _t}function y1(e,t){for(;At()&&e+Ce!==57;)if(e+Ce===84&&Yn()===47)break;return"/*"+na(t,_t-1)+"*"+oc(e===47?e:At())}function w1(e){for(;!Ku(Yn());)At();return na(e,_t)}function x1(e){return m1(Jo("",null,null,null,[""],e=h1(e),0,[0],e))}function Jo(e,t,n,r,i,o,l,a,u){for(var s=0,c=0,d=l,h=0,g=0,y=0,w=1,E=1,p=1,f=0,m="",S=i,T=o,v=r,C=m;E;)switch(y=f,f=At()){case 40:if(y!=108&&be(C,d-1)==58){Xo(C+=H(Ba(f),"&","&\f"),"&\f",am(s?a[s-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:C+=Ba(f);break;case 9:case 10:case 13:case 32:C+=g1(y);break;case 92:C+=v1(Zo()-1,7);continue;case 47:switch(Yn()){case 42:case 47:wi(S1(y1(At(),Zo()),t,n,u),u);break;default:C+="/"}break;case 123*w:a[s++]=$t(C)*p;case 125*w:case 59:case 0:switch(f){case 0:case 125:E=0;case 59+c:p==-1&&(C=H(C,/\f/g,"")),g>0&&$t(C)-d&&wi(g>32?nd(C+";",r,n,d-1,u):nd(H(C," ","")+";",r,n,d-2,u),u);break;case 59:C+=";";default:if(wi(v=td(C,t,n,s,c,i,a,m,S=[],T=[],d,o),o),f===123)if(c===0)Jo(C,t,v,v,S,o,d,a,T);else switch(h===99&&be(C,3)===110?100:h){case 100:case 108:case 109:case 115:Jo(e,v,v,r&&wi(td(e,v,v,0,0,i,a,m,i,S=[],d,T),T),i,T,d,a,r?S:T);break;default:Jo(C,v,v,v,[""],T,0,a,T)}}s=c=g=0,w=p=1,m=C="",d=l;break;case 58:d=1+$t(C),g=y;default:if(w<1){if(f==123)--w;else if(f==125&&w++==0&&p1()==125)continue}switch(C+=oc(f),f*w){case 38:p=c>0?1:(C+="\f",-1);break;case 44:a[s++]=($t(C)-1)*p,p=1;break;case 64:Yn()===45&&(C+=Ba(At())),h=Yn(),c=d=$t(m=C+=w1(Zo())),f++;break;case 45:y===45&&$t(C)==2&&(w=0)}}return o}function td(e,t,n,r,i,o,l,a,u,s,c,d){for(var h=i-1,g=i===0?o:[""],y=sm(g),w=0,E=0,p=0;w0?g[f]+" "+m:H(m,/&\f/g,g[f])))&&(u[p++]=S);return ta(e,t,n,i===0?Jl:a,u,s,c,d)}function S1(e,t,n,r){return ta(e,t,n,om,oc(d1()),zr(e,2,-2),0,r)}function nd(e,t,n,r,i){return ta(e,t,n,ic,zr(e,0,r),zr(e,r+1,-1),r,i)}function fm(e,t,n){switch(c1(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 4789:return Ni+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Ni+e+ue+e+e;case 5936:switch(be(e,t+11)){case 114:return ee+e+ue+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+ue+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+ue+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ee+e+ue+e+e;case 6165:return ee+e+ue+"flex-"+e+e;case 5187:return ee+e+H(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+ue+"flex-$1$2")+e;case 5443:return ee+e+ue+"flex-item-"+H(e,/flex-|-self/g,"")+(Qt(e,/flex-|baseline/)?"":ue+"grid-row-"+H(e,/flex-|-self/g,""))+e;case 4675:return ee+e+ue+"flex-line-pack"+H(e,/align-content|flex-|-self/g,"")+e;case 5548:return ee+e+ue+H(e,"shrink","negative")+e;case 5292:return ee+e+ue+H(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+H(e,"-grow","")+ee+e+ue+H(e,"grow","positive")+e;case 4554:return ee+H(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4200:if(!Qt(e,/flex-|baseline/))return ue+"grid-column-align"+zr(e,t)+e;break;case 2592:case 3360:return ue+H(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Qt(r.props,/grid-\w+-end/)})?~Xo(e+(n=n[t].value),"span",0)?e:ue+H(e,"-start","")+e+ue+"grid-row-span:"+(~Xo(n,"span",0)?Qt(n,/\d+/):+Qt(n,/\d+/)-+Qt(e,/\d+/))+";":ue+H(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Qt(r.props,/grid-\w+-start/)})?e:ue+H(H(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($t(e)-1-t>6)switch(be(e,t+1)){case 109:if(be(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Ni+(be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xo(e,"stretch",0)?fm(H(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return H(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,l,a,u,s){return ue+i+":"+o+s+(l?ue+i+"-span:"+(a?u:+u-+o)+s:"")+e});case 4949:if(be(e,t+6)===121)return H(e,":",":"+ee)+e;break;case 6444:switch(be(e,be(e,14)===45?18:11)){case 120:return H(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ee+(be(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+ue+"$2box$3")+e;case 100:return H(e,":",":"+ue)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return H(e,"scroll-","scroll-snap-")+e}return e}function Nl(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case ic:e.return=fm(e.value,e.length,n);return;case lm:return Nl([fn(e,{value:H(e.value,"@","@"+ee)})],r);case Jl:if(e.length)return f1(n=e.props,function(i){switch(Qt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":sr(fn(e,{props:[H(i,/:(read-\w+)/,":"+Ni+"$1")]})),sr(fn(e,{props:[i]})),Qu(e,{props:ed(n,r)});break;case"::placeholder":sr(fn(e,{props:[H(i,/:(plac\w+)/,":"+ee+"input-$1")]})),sr(fn(e,{props:[H(i,/:(plac\w+)/,":"+Ni+"$1")]})),sr(fn(e,{props:[H(i,/:(plac\w+)/,ue+"input-$1")]})),sr(fn(e,{props:[i]})),Qu(e,{props:ed(n,r)});break}return""})}}var _1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ft={},Br=typeof process<"u"&&ft!==void 0&&(ft.REACT_APP_SC_ATTR||ft.SC_ATTR)||"data-styled",dm="active",pm="data-styled-version",ra="6.1.8",lc=`/*!sc*/ +`,ac=typeof window<"u"&&"HTMLElement"in window,T1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ft!==void 0&&ft.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ft.REACT_APP_SC_DISABLE_SPEEDY!==""?ft.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ft.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ft!==void 0&&ft.SC_DISABLE_SPEEDY!==void 0&&ft.SC_DISABLE_SPEEDY!==""&&ft.SC_DISABLE_SPEEDY!=="false"&&ft.SC_DISABLE_SPEEDY),ia=Object.freeze([]),Wr=Object.freeze({});function R1(e,t,n){return n===void 0&&(n=Wr),e.theme!==n.theme&&e.theme||t||n.theme}var hm=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,N1=/(^-|-$)/g;function rd(e){return e.replace(O1,"-").replace(N1,"")}var L1=/(a)(d)/gi,bo=52,id=function(e){return String.fromCharCode(e+(e>25?39:97))};function Gu(e){var t,n="";for(t=Math.abs(e);t>bo;t=t/bo|0)n=id(t%bo)+n;return(id(t%bo)+n).replace(L1,"$1-$2")}var Wa,mm=5381,Cr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},gm=function(e){return Cr(mm,e)};function j1(e){return Gu(gm(e)>>>0)}function b1(e){return e.displayName||e.name||"Component"}function Ha(e){return typeof e=="string"&&!0}var vm=typeof Symbol=="function"&&Symbol.for,ym=vm?Symbol.for("react.memo"):60115,A1=vm?Symbol.for("react.forward_ref"):60112,I1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},D1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F1=((Wa={})[A1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Wa[ym]=wm,Wa);function od(e){return("type"in(t=e)&&t.type.$$typeof)===ym?wm:"$$typeof"in e?F1[e.$$typeof]:I1;var t}var M1=Object.defineProperty,$1=Object.getOwnPropertyNames,ld=Object.getOwnPropertySymbols,z1=Object.getOwnPropertyDescriptor,U1=Object.getPrototypeOf,ad=Object.prototype;function xm(e,t,n){if(typeof t!="string"){if(ad){var r=U1(t);r&&r!==ad&&xm(e,r,n)}var i=$1(t);ld&&(i=i.concat(ld(t)));for(var o=od(e),l=od(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var B1=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw co(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var l=i;l=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,l=i;l=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(E+="".concat(p,","))}),u+="".concat(y).concat(w,'{content:"').concat(E,'"}').concat(lc)},c=0;c0?".".concat(t):h},c=u.slice();c.push(function(h){h.type===Jl&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(J1,n).replace(r,s))}),l.prefix&&c.push(P1),c.push(E1);var d=function(h,g,y,w){g===void 0&&(g=""),y===void 0&&(y=""),w===void 0&&(w="&"),t=w,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var E=h.replace(ew,""),p=x1(y||g?"".concat(y," ").concat(g," { ").concat(E," }"):E);l.namespace&&(p=km(p,l.namespace));var f=[];return Nl(p,k1(c.concat(C1(function(m){return f.push(m)})))),f};return d.hash=u.length?u.reduce(function(h,g){return g.name||co(15),Cr(h,g.name)},mm).toString():"",d}var nw=new Em,Xu=tw(),Cm=Rn.createContext({shouldForwardProp:void 0,styleSheet:nw,stylis:Xu});Cm.Consumer;Rn.createContext(void 0);function cd(){return _.useContext(Cm)}var rw=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Xu);var l=r.name+o.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,o(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,sc(this,function(){throw co(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Xu),this.name+t.hash},e}(),iw=function(e){return e>="A"&&e<="Z"};function fd(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,l)){var a=r(o,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,a)}i=Vn(i,l),this.staticRulesId=l}else{for(var u=Cr(this.baseHash,r.hash),s="",c=0;c>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(s,".".concat(g),void 0,this.componentId)),i=Vn(i,g)}}return i},e}(),Tm=Rn.createContext(void 0);Tm.Consumer;var Va={};function uw(e,t,n){var r=uc(e),i=e,o=!Ha(e),l=t.attrs,a=l===void 0?ia:l,u=t.componentId,s=u===void 0?function(S,T){var v=typeof S!="string"?"sc":rd(S);Va[v]=(Va[v]||0)+1;var C="".concat(v,"-").concat(j1(ra+v+Va[v]));return T?"".concat(T,"-").concat(C):C}(t.displayName,t.parentComponentId):u,c=t.displayName,d=c===void 0?function(S){return Ha(S)?"styled.".concat(S):"Styled(".concat(b1(S),")")}(e):c,h=t.displayName&&t.componentId?"".concat(rd(t.displayName),"-").concat(t.componentId):t.componentId||s,g=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;y=function(S,T){return w(S,T)&&E(S,T)}}else y=w}var p=new aw(n,h,r?i.componentStyle:void 0);function f(S,T){return function(v,C,N){var b=v.attrs,F=v.componentStyle,B=v.defaultProps,fe=v.foldedComponentIds,ie=v.styledComponentId,Ie=v.target,at=Rn.useContext(Tm),De=cd(),Z=v.shouldForwardProp||De.shouldForwardProp,O=R1(C,at,B)||Wr,I=function(Be,we,st){for(var In,Ht=nt(nt({},we),{className:void 0,theme:st}),qr=0;qre.padding?e.padding:"2rem"}; display: flex; flex-direction: column; align-items: ${e=>e.alignItem?e.alignItem:"start"}; -`,uw=Dn.a` - color: ${e=>e.color?e.color:Te.white}; +`,cw=Wt.a` + color: ${e=>e.color?e.color:ne.white}; cursor: pointer; text-align: ${e=>e.textAlign?e.textAlign:"left"}; font-size: ${e=>e.fontSize?e.fontSize:"1rem"}; @@ -92,22 +92,22 @@ Error generating stack: `+o.message+` margin-right: ${e=>e.marginRight?e.marginRight:"0px"}; &:hover { - color: ${Te.hoverBlue}; + color: ${ne.hoverBlue}; background: none; } -`,sw=Dn.button` +`,fw=Wt.button` display: flex; justify-content: center; align-items: center; min-height: 1.25rem; min-width: 1.25rem; - background-color: ${Te.gray}; + background-color: ${ne.gray}; border-radius: 100vmax; &:hover { - background-color: ${Te.lightBlue}; + background-color: ${ne.lightBlue}; } -`,cw=Dn.button` +`,dw=Wt.button` display: flex; justify-content: space-between; align-items: center; @@ -115,12 +115,12 @@ Error generating stack: `+o.message+` background-color: ${e=>e.bg?e.bg:"white"}; border: 1px solid transparent; border-top: ${e=>e.noBorder?"1px solid transparent":"1px solid #CCCCCC"}; - color: ${Te.textBlue}; + color: ${ne.textBlue}; &:hover { - background-color: ${Te.lightBlue}; + background-color: ${ne.lightBlue}; } -`,dd=Dn(nc)` +`,hd=Wt(Zl)` display: flex; justify-content: space-between; align-items: center; @@ -128,36 +128,53 @@ Error generating stack: `+o.message+` background-color: ${e=>e.bg?e.bg:"white"}; border: 1px solid transparent; border-top: ${e=>e.noBorder?"1px solid transparent":"1px solid #CCCCCC"}; - color: ${Te.textBlue}; + color: ${ne.textBlue}; &:hover { - background-color: ${Te.lightBlue}; + background-color: ${ne.lightBlue}; } -`,fw=Dn.div` +`,md=Wt(Zl)` + color: ${ne.textBlue}; + &:hover { + color: ${ne.textLightBlue}; + } +`,pw=Wt.a` + color: ${ne.textBlue}; + &:hover { + color: ${ne.textLightBlue}; + } +`,Om=Wt.div` + border: 2px solid transparent; + border-top: 2px solid ${ne.blue}; display: flex; flex-direction: column; - background-color: ${Te.white}; + background-color: ${ne.white}; box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.2); padding: 1rem; gap: ${e=>e.gap?e.gap:"0"}rem; -`,Tm=Dn.div` + min-width: ${e=>e.minWidth?e.minWidth:"25rem"}; + max-width: ${e=>e.maxWidth?e.maxWidth:null}; + z-index: ${e=>e.zIndex?e.zIndex:null}; + position: ${e=>e.position?e.position:null}; +`,cc=Wt.div` + width: 100%; display: flex; justify-content: center; - align-items: center; + justify-content: ${e=>e.justifyContent?e.justifyContent:"center"}; gap: ${e=>e.gap?e.gap:"0"}rem; -`;function pd({label:e,onClick:t,icon:n}){return T.jsxs(sw,{onClick:t,style:{padding:n&&e?"0.5rem 1rem 0.5rem 1rem":"0.5rem"},children:[n&&T.jsx("div",{className:"fa-solid "+n,style:{color:Te.textBlue,marginRight:e?"0.5rem":null}}),e&&T.jsx("p",{style:{color:Te.textBlue,fontWeight:"bold"},children:e})]})}const dw="modulepreload",pw=function(e){return"/observatorioiftm/"+e},hd={},hw=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.all(n.map(u=>{if(u=pw(u),u in hd)return;hd[u]=!0;const s=u.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(!!r)for(let g=o.length-1;g>=0;g--){const y=o[g];if(y.href===u&&(!s||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${c}`))return;const h=document.createElement("link");if(h.rel=s?"stylesheet":dw,s||(h.as="script",h.crossOrigin=""),h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),s)return new Promise((g,y)=>{h.addEventListener("load",g),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}return i.then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};var mw={};function gw(e){if(Array.isArray(e))return e}function vw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,l,a=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(c){s=!0,i=c}finally{try{if(!u&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw i}}return a}}function Xu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,a;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return o=s.done,s},e:function(s){l=!0,a=s},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(l)throw a}}}}function kw(e,t){if(e){if(typeof e=="string")return gd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gd(e,t)}}function gd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{};n&&Object.entries(r).forEach(function(i){var o=nl(i,2),l=o[0],a=o[1];return n.style[l]=a})}},{key:"find",value:function(n,r){return n?Array.from(n.querySelectorAll(r)):[]}},{key:"findSingle",value:function(n,r){return n?n.querySelector(r):null}},{key:"setAttributes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n){var o=function l(a,u){var s,c,d=n!=null&&(s=n.$attrs)!==null&&s!==void 0&&s[a]?[n==null||(c=n.$attrs)===null||c===void 0?void 0:c[a]]:[];return[u].flat().reduce(function(h,g){if(g!=null){var y=$e(g);if(y==="string"||y==="number")h.push(g);else if(y==="object"){var w=Array.isArray(g)?l(a,g):Object.entries(g).map(function(E){var p=nl(E,2),f=p[0],m=p[1];return a==="style"&&(m||m===0)?"".concat(f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(m):m?f:void 0});h=w.length?h.concat(w.filter(function(E){return!!E})):h}}return h},d)};Object.entries(i).forEach(function(l){var a=nl(l,2),u=a[0],s=a[1];if(s!=null){var c=u.match(/^on(.+)/);c?n.addEventListener(c[1].toLowerCase(),s):u==="p-bind"?r.setAttributes(n,s):(s=u==="class"?Zu(new Set(o("class",s))).join(" ").trim():u==="style"?o("style",s).join(";").trim():s,(n.$attrs=n.$attrs||{})&&(n.$attrs[u]=s),n.setAttribute(u,s))}})}}},{key:"getAttribute",value:function(n,r){if(n){var i=n.getAttribute(r);return isNaN(i)?i==="true"||i==="false"?i==="true":i:+i}}},{key:"isAttributeEquals",value:function(n,r,i){return n?this.getAttribute(n,r)===i:!1}},{key:"isAttributeNotEquals",value:function(n,r,i){return!this.isAttributeEquals(n,r,i)}},{key:"getHeight",value:function(n){if(n){var r=n.offsetHeight,i=getComputedStyle(n);return r=r-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)),r}return 0}},{key:"getWidth",value:function(n){if(n){var r=n.offsetWidth,i=getComputedStyle(n);return r=r-(parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth)),r}return 0}},{key:"alignOverlay",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;n&&r&&(i==="self"?this.relativePosition(n,r):(o&&(n.style.minWidth=e.getOuterWidth(r)+"px"),this.absolutePosition(n,r)))}},{key:"absolutePosition",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left";if(n&&r){var o=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),l=o.height,a=o.width,u=r.offsetHeight,s=r.offsetWidth,c=r.getBoundingClientRect(),d=this.getWindowScrollTop(),h=this.getWindowScrollLeft(),g=this.getViewport(),y,w;c.top+u+l>g.height?(y=c.top+d-l,y<0&&(y=d),n.style.transformOrigin="bottom"):(y=u+c.top+d,n.style.transformOrigin="top");var E=c.left,p=i==="left"?0:a-s;E+s+a>g.width?w=Math.max(0,E+h+s-a):w=E-p+h,n.style.top=y+"px",n.style.left=w+"px"}}},{key:"relativePosition",value:function(n,r){if(n&&r){var i=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),o=r.offsetHeight,l=r.getBoundingClientRect(),a=this.getViewport(),u,s;l.top+o+i.height>a.height?(u=-1*i.height,l.top+u<0&&(u=-1*l.top),n.style.transformOrigin="bottom"):(u=o,n.style.transformOrigin="top"),i.width>a.width?s=l.left*-1:l.left+i.width>a.width?s=(l.left+i.width-a.width)*-1:s=0,n.style.top=u+"px",n.style.left=s+"px"}}},{key:"flipfitCollision",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left top",l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"left bottom",a=arguments.length>4?arguments[4]:void 0;if(n&&r){var u=r.getBoundingClientRect(),s=this.getViewport(),c=o.split(" "),d=l.split(" "),h=function(p,f){return f?+p.substring(p.search(/(\+|-)/g))||0:p.substring(0,p.search(/(\+|-)/g))||p},g={my:{x:h(c[0]),y:h(c[1]||c[0]),offsetX:h(c[0],!0),offsetY:h(c[1]||c[0],!0)},at:{x:h(d[0]),y:h(d[1]||d[0]),offsetX:h(d[0],!0),offsetY:h(d[1]||d[0],!0)}},y={left:function(){var p=g.my.offsetX+g.at.offsetX;return p+u.left+(g.my.x==="left"?0:-1*(g.my.x==="center"?i.getOuterWidth(n)/2:i.getOuterWidth(n)))},top:function(){var p=g.my.offsetY+g.at.offsetY;return p+u.top+(g.my.y==="top"?0:-1*(g.my.y==="center"?i.getOuterHeight(n)/2:i.getOuterHeight(n)))}},w={count:{x:0,y:0},left:function(){var p=y.left(),f=e.getWindowScrollLeft();n.style.left=p+f+"px",this.count.x===2?(n.style.left=f+"px",this.count.x=0):p<0&&(this.count.x++,g.my.x="left",g.at.x="right",g.my.offsetX*=-1,g.at.offsetX*=-1,this.right())},right:function(){var p=y.left()+e.getOuterWidth(r),f=e.getWindowScrollLeft();n.style.left=p+f+"px",this.count.x===2?(n.style.left=s.width-e.getOuterWidth(n)+f+"px",this.count.x=0):p+e.getOuterWidth(n)>s.width&&(this.count.x++,g.my.x="right",g.at.x="left",g.my.offsetX*=-1,g.at.offsetX*=-1,this.left())},top:function(){var p=y.top(),f=e.getWindowScrollTop();n.style.top=p+f+"px",this.count.y===2?(n.style.left=f+"px",this.count.y=0):p<0&&(this.count.y++,g.my.y="top",g.at.y="bottom",g.my.offsetY*=-1,g.at.offsetY*=-1,this.bottom())},bottom:function(){var p=y.top()+e.getOuterHeight(r),f=e.getWindowScrollTop();n.style.top=p+f+"px",this.count.y===2?(n.style.left=s.height-e.getOuterHeight(n)+f+"px",this.count.y=0):p+e.getOuterHeight(r)>s.height&&(this.count.y++,g.my.y="bottom",g.at.y="top",g.my.offsetY*=-1,g.at.offsetY*=-1,this.top())},center:function(p){if(p==="y"){var f=y.top()+e.getOuterHeight(r)/2;n.style.top=f+e.getWindowScrollTop()+"px",f<0?this.bottom():f+e.getOuterHeight(r)>s.height&&this.top()}else{var m=y.left()+e.getOuterWidth(r)/2;n.style.left=m+e.getWindowScrollLeft()+"px",m<0?this.left():m+e.getOuterWidth(n)>s.width&&this.right()}}};w[g.at.x]("x"),w[g.at.y]("y"),this.isFunction(a)&&a(g)}}},{key:"findCollisionPosition",value:function(n){if(n){var r=n==="top"||n==="bottom",i=n==="left"?"right":"left",o=n==="top"?"bottom":"top";return r?{axis:"y",my:"center ".concat(o),at:"center ".concat(n)}:{axis:"x",my:"".concat(i," center"),at:"".concat(n," center")}}}},{key:"getParents",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return n.parentNode===null?r:this.getParents(n.parentNode,r.concat([n.parentNode]))}},{key:"getScrollableParents",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=[];if(n){var o=this.getParents(n),l=/(auto|scroll)/,a=function(m){var x=m?getComputedStyle(m):null;return x&&(l.test(x.getPropertyValue("overflow"))||l.test(x.getPropertyValue("overflow-x"))||l.test(x.getPropertyValue("overflow-y")))},u=function(m){r?i.push(m.nodeName==="BODY"||m.nodeName==="HTML"||m.nodeType===9?window:m):i.push(m)},s=Ha(o),c;try{for(s.s();!(c=s.n()).done;){var d=c.value,h=d.nodeType===1&&d.dataset.scrollselectors;if(h){var g=h.split(","),y=Ha(g),w;try{for(y.s();!(w=y.n()).done;){var E=w.value,p=this.findSingle(d,E);p&&a(p)&&u(p)}}catch(f){y.e(f)}finally{y.f()}}d.nodeType===1&&a(d)&&u(d)}}catch(f){s.e(f)}finally{s.f()}}return i.some(function(f){return f===document.body||f===window})||i.push(window),i}},{key:"getHiddenElementOuterHeight",value:function(n){if(n){n.style.visibility="hidden",n.style.display="block";var r=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",r}return 0}},{key:"getHiddenElementOuterWidth",value:function(n){if(n){n.style.visibility="hidden",n.style.display="block";var r=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",r}return 0}},{key:"getHiddenElementDimensions",value:function(n){var r={};return n&&(n.style.visibility="hidden",n.style.display="block",r.width=n.offsetWidth,r.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible"),r}},{key:"fadeIn",value:function(n,r){if(n){n.style.opacity=0;var i=+new Date,o=0,l=function a(){o=+n.style.opacity+(new Date().getTime()-i)/r,n.style.opacity=o,i=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(a)||setTimeout(a,16))};l()}}},{key:"fadeOut",value:function(n,r){if(n)var i=1,o=50,l=o/r,a=setInterval(function(){i=i-l,i<=0&&(i=0,clearInterval(a)),n.style.opacity=i},o)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(n){return!!(n&&n.constructor&&n.call&&n.apply)}},{key:"appendChild",value:function(n,r){if(this.isElement(r))r.appendChild(n);else if(r.el&&r.el.nativeElement)r.el.nativeElement.appendChild(n);else throw new Error("Cannot append "+r+" to "+n)}},{key:"removeChild",value:function(n,r){if(this.isElement(r))r.removeChild(n);else if(r.el&&r.el.nativeElement)r.el.nativeElement.removeChild(n);else throw new Error("Cannot remove "+n+" from "+r)}},{key:"isElement",value:function(n){return(typeof HTMLElement>"u"?"undefined":$e(HTMLElement))==="object"?n instanceof HTMLElement:n&&$e(n)==="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"}},{key:"scrollInView",value:function(n,r){var i=getComputedStyle(n).getPropertyValue("border-top-width"),o=i?parseFloat(i):0,l=getComputedStyle(n).getPropertyValue("padding-top"),a=l?parseFloat(l):0,u=n.getBoundingClientRect(),s=r.getBoundingClientRect(),c=s.top+document.body.scrollTop-(u.top+document.body.scrollTop)-o-a,d=n.scrollTop,h=n.clientHeight,g=this.getOuterHeight(r);c<0?n.scrollTop=d+c:c+g>h&&(n.scrollTop=d+c-h+g)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}},{key:"calculateScrollbarWidth",value:function(n){if(n){var r=getComputedStyle(n);return n.offsetWidth-n.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);var o=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=o,o}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var n=this.resolveUserAgent();this.browser={},n.browser&&(this.browser[n.browser]=!0,this.browser.version=n.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var n=navigator.userAgent.toLowerCase(),r=/(chrome)[ ]([\w.]+)/.exec(n)||/(webkit)[ ]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:r[1]||"",version:r[2]||"0"}}},{key:"blockBodyScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden",r=!!document.body.style.getPropertyValue("--scrollbar-width");!r&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,n)}},{key:"unblockBodyScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,n)}},{key:"isVisible",value:function(n){return n&&(n.clientHeight!==0||n.getClientRects().length!==0||getComputedStyle(n).display!=="none")}},{key:"isExist",value:function(n){return!!(n!==null&&typeof n<"u"&&n.nodeName&&n.parentNode)}},{key:"getFocusableElements",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=e.find(n,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,`, +`;function jl({label:e,onClick:t,icon:n}){return P.jsxs(fw,{onClick:t,style:{padding:n&&e?"0.5rem 1rem 0.5rem 1rem":"0.5rem"},children:[n&&P.jsx("div",{className:"fa-solid "+n,style:{color:ne.textBlue,marginRight:e?"0.5rem":null}}),e&&P.jsx("p",{style:{color:ne.textBlue,fontWeight:"bold"},children:e})]})}const hw="modulepreload",mw=function(e){return"/observatorioiftm/"+e},gd={},gw=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.all(n.map(u=>{if(u=mw(u),u in gd)return;gd[u]=!0;const s=u.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(!!r)for(let g=o.length-1;g>=0;g--){const y=o[g];if(y.href===u&&(!s||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${c}`))return;const h=document.createElement("link");if(h.rel=s?"stylesheet":hw,s||(h.as="script",h.crossOrigin=""),h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),s)return new Promise((g,y)=>{h.addEventListener("load",g),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}return i.then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};var vw={};function yw(e){if(Array.isArray(e))return e}function ww(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,l,a=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(c){s=!0,i=c}finally{try{if(!u&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw i}}return a}}function Ju(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,a;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return o=s.done,s},e:function(s){l=!0,a=s},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(l)throw a}}}}function Pw(e,t){if(e){if(typeof e=="string")return yd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yd(e,t)}}function yd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{};n&&Object.entries(r).forEach(function(i){var o=nl(i,2),l=o[0],a=o[1];return n.style[l]=a})}},{key:"find",value:function(n,r){return n?Array.from(n.querySelectorAll(r)):[]}},{key:"findSingle",value:function(n,r){return n?n.querySelector(r):null}},{key:"setAttributes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n){var o=function l(a,u){var s,c,d=n!=null&&(s=n.$attrs)!==null&&s!==void 0&&s[a]?[n==null||(c=n.$attrs)===null||c===void 0?void 0:c[a]]:[];return[u].flat().reduce(function(h,g){if(g!=null){var y=$e(g);if(y==="string"||y==="number")h.push(g);else if(y==="object"){var w=Array.isArray(g)?l(a,g):Object.entries(g).map(function(E){var p=nl(E,2),f=p[0],m=p[1];return a==="style"&&(m||m===0)?"".concat(f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(m):m?f:void 0});h=w.length?h.concat(w.filter(function(E){return!!E})):h}}return h},d)};Object.entries(i).forEach(function(l){var a=nl(l,2),u=a[0],s=a[1];if(s!=null){var c=u.match(/^on(.+)/);c?n.addEventListener(c[1].toLowerCase(),s):u==="p-bind"?r.setAttributes(n,s):(s=u==="class"?ts(new Set(o("class",s))).join(" ").trim():u==="style"?o("style",s).join(";").trim():s,(n.$attrs=n.$attrs||{})&&(n.$attrs[u]=s),n.setAttribute(u,s))}})}}},{key:"getAttribute",value:function(n,r){if(n){var i=n.getAttribute(r);return isNaN(i)?i==="true"||i==="false"?i==="true":i:+i}}},{key:"isAttributeEquals",value:function(n,r,i){return n?this.getAttribute(n,r)===i:!1}},{key:"isAttributeNotEquals",value:function(n,r,i){return!this.isAttributeEquals(n,r,i)}},{key:"getHeight",value:function(n){if(n){var r=n.offsetHeight,i=getComputedStyle(n);return r=r-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)),r}return 0}},{key:"getWidth",value:function(n){if(n){var r=n.offsetWidth,i=getComputedStyle(n);return r=r-(parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth)),r}return 0}},{key:"alignOverlay",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;n&&r&&(i==="self"?this.relativePosition(n,r):(o&&(n.style.minWidth=e.getOuterWidth(r)+"px"),this.absolutePosition(n,r)))}},{key:"absolutePosition",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left";if(n&&r){var o=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),l=o.height,a=o.width,u=r.offsetHeight,s=r.offsetWidth,c=r.getBoundingClientRect(),d=this.getWindowScrollTop(),h=this.getWindowScrollLeft(),g=this.getViewport(),y,w;c.top+u+l>g.height?(y=c.top+d-l,y<0&&(y=d),n.style.transformOrigin="bottom"):(y=u+c.top+d,n.style.transformOrigin="top");var E=c.left,p=i==="left"?0:a-s;E+s+a>g.width?w=Math.max(0,E+h+s-a):w=E-p+h,n.style.top=y+"px",n.style.left=w+"px"}}},{key:"relativePosition",value:function(n,r){if(n&&r){var i=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),o=r.offsetHeight,l=r.getBoundingClientRect(),a=this.getViewport(),u,s;l.top+o+i.height>a.height?(u=-1*i.height,l.top+u<0&&(u=-1*l.top),n.style.transformOrigin="bottom"):(u=o,n.style.transformOrigin="top"),i.width>a.width?s=l.left*-1:l.left+i.width>a.width?s=(l.left+i.width-a.width)*-1:s=0,n.style.top=u+"px",n.style.left=s+"px"}}},{key:"flipfitCollision",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left top",l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"left bottom",a=arguments.length>4?arguments[4]:void 0;if(n&&r){var u=r.getBoundingClientRect(),s=this.getViewport(),c=o.split(" "),d=l.split(" "),h=function(p,f){return f?+p.substring(p.search(/(\+|-)/g))||0:p.substring(0,p.search(/(\+|-)/g))||p},g={my:{x:h(c[0]),y:h(c[1]||c[0]),offsetX:h(c[0],!0),offsetY:h(c[1]||c[0],!0)},at:{x:h(d[0]),y:h(d[1]||d[0]),offsetX:h(d[0],!0),offsetY:h(d[1]||d[0],!0)}},y={left:function(){var p=g.my.offsetX+g.at.offsetX;return p+u.left+(g.my.x==="left"?0:-1*(g.my.x==="center"?i.getOuterWidth(n)/2:i.getOuterWidth(n)))},top:function(){var p=g.my.offsetY+g.at.offsetY;return p+u.top+(g.my.y==="top"?0:-1*(g.my.y==="center"?i.getOuterHeight(n)/2:i.getOuterHeight(n)))}},w={count:{x:0,y:0},left:function(){var p=y.left(),f=e.getWindowScrollLeft();n.style.left=p+f+"px",this.count.x===2?(n.style.left=f+"px",this.count.x=0):p<0&&(this.count.x++,g.my.x="left",g.at.x="right",g.my.offsetX*=-1,g.at.offsetX*=-1,this.right())},right:function(){var p=y.left()+e.getOuterWidth(r),f=e.getWindowScrollLeft();n.style.left=p+f+"px",this.count.x===2?(n.style.left=s.width-e.getOuterWidth(n)+f+"px",this.count.x=0):p+e.getOuterWidth(n)>s.width&&(this.count.x++,g.my.x="right",g.at.x="left",g.my.offsetX*=-1,g.at.offsetX*=-1,this.left())},top:function(){var p=y.top(),f=e.getWindowScrollTop();n.style.top=p+f+"px",this.count.y===2?(n.style.left=f+"px",this.count.y=0):p<0&&(this.count.y++,g.my.y="top",g.at.y="bottom",g.my.offsetY*=-1,g.at.offsetY*=-1,this.bottom())},bottom:function(){var p=y.top()+e.getOuterHeight(r),f=e.getWindowScrollTop();n.style.top=p+f+"px",this.count.y===2?(n.style.left=s.height-e.getOuterHeight(n)+f+"px",this.count.y=0):p+e.getOuterHeight(r)>s.height&&(this.count.y++,g.my.y="bottom",g.at.y="top",g.my.offsetY*=-1,g.at.offsetY*=-1,this.top())},center:function(p){if(p==="y"){var f=y.top()+e.getOuterHeight(r)/2;n.style.top=f+e.getWindowScrollTop()+"px",f<0?this.bottom():f+e.getOuterHeight(r)>s.height&&this.top()}else{var m=y.left()+e.getOuterWidth(r)/2;n.style.left=m+e.getWindowScrollLeft()+"px",m<0?this.left():m+e.getOuterWidth(n)>s.width&&this.right()}}};w[g.at.x]("x"),w[g.at.y]("y"),this.isFunction(a)&&a(g)}}},{key:"findCollisionPosition",value:function(n){if(n){var r=n==="top"||n==="bottom",i=n==="left"?"right":"left",o=n==="top"?"bottom":"top";return r?{axis:"y",my:"center ".concat(o),at:"center ".concat(n)}:{axis:"x",my:"".concat(i," center"),at:"".concat(n," center")}}}},{key:"getParents",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return n.parentNode===null?r:this.getParents(n.parentNode,r.concat([n.parentNode]))}},{key:"getScrollableParents",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=[];if(n){var o=this.getParents(n),l=/(auto|scroll)/,a=function(m){var S=m?getComputedStyle(m):null;return S&&(l.test(S.getPropertyValue("overflow"))||l.test(S.getPropertyValue("overflow-x"))||l.test(S.getPropertyValue("overflow-y")))},u=function(m){r?i.push(m.nodeName==="BODY"||m.nodeName==="HTML"||m.nodeType===9?window:m):i.push(m)},s=Qa(o),c;try{for(s.s();!(c=s.n()).done;){var d=c.value,h=d.nodeType===1&&d.dataset.scrollselectors;if(h){var g=h.split(","),y=Qa(g),w;try{for(y.s();!(w=y.n()).done;){var E=w.value,p=this.findSingle(d,E);p&&a(p)&&u(p)}}catch(f){y.e(f)}finally{y.f()}}d.nodeType===1&&a(d)&&u(d)}}catch(f){s.e(f)}finally{s.f()}}return i.some(function(f){return f===document.body||f===window})||i.push(window),i}},{key:"getHiddenElementOuterHeight",value:function(n){if(n){n.style.visibility="hidden",n.style.display="block";var r=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",r}return 0}},{key:"getHiddenElementOuterWidth",value:function(n){if(n){n.style.visibility="hidden",n.style.display="block";var r=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",r}return 0}},{key:"getHiddenElementDimensions",value:function(n){var r={};return n&&(n.style.visibility="hidden",n.style.display="block",r.width=n.offsetWidth,r.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible"),r}},{key:"fadeIn",value:function(n,r){if(n){n.style.opacity=0;var i=+new Date,o=0,l=function a(){o=+n.style.opacity+(new Date().getTime()-i)/r,n.style.opacity=o,i=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(a)||setTimeout(a,16))};l()}}},{key:"fadeOut",value:function(n,r){if(n)var i=1,o=50,l=o/r,a=setInterval(function(){i=i-l,i<=0&&(i=0,clearInterval(a)),n.style.opacity=i},o)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(n){return!!(n&&n.constructor&&n.call&&n.apply)}},{key:"appendChild",value:function(n,r){if(this.isElement(r))r.appendChild(n);else if(r.el&&r.el.nativeElement)r.el.nativeElement.appendChild(n);else throw new Error("Cannot append "+r+" to "+n)}},{key:"removeChild",value:function(n,r){if(this.isElement(r))r.removeChild(n);else if(r.el&&r.el.nativeElement)r.el.nativeElement.removeChild(n);else throw new Error("Cannot remove "+n+" from "+r)}},{key:"isElement",value:function(n){return(typeof HTMLElement>"u"?"undefined":$e(HTMLElement))==="object"?n instanceof HTMLElement:n&&$e(n)==="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"}},{key:"scrollInView",value:function(n,r){var i=getComputedStyle(n).getPropertyValue("border-top-width"),o=i?parseFloat(i):0,l=getComputedStyle(n).getPropertyValue("padding-top"),a=l?parseFloat(l):0,u=n.getBoundingClientRect(),s=r.getBoundingClientRect(),c=s.top+document.body.scrollTop-(u.top+document.body.scrollTop)-o-a,d=n.scrollTop,h=n.clientHeight,g=this.getOuterHeight(r);c<0?n.scrollTop=d+c:c+g>h&&(n.scrollTop=d+c-h+g)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}},{key:"calculateScrollbarWidth",value:function(n){if(n){var r=getComputedStyle(n);return n.offsetWidth-n.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);var o=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=o,o}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var n=this.resolveUserAgent();this.browser={},n.browser&&(this.browser[n.browser]=!0,this.browser.version=n.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var n=navigator.userAgent.toLowerCase(),r=/(chrome)[ ]([\w.]+)/.exec(n)||/(webkit)[ ]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:r[1]||"",version:r[2]||"0"}}},{key:"blockBodyScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden",r=!!document.body.style.getPropertyValue("--scrollbar-width");!r&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,n)}},{key:"unblockBodyScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,n)}},{key:"isVisible",value:function(n){return n&&(n.clientHeight!==0||n.getClientRects().length!==0||getComputedStyle(n).display!=="none")}},{key:"isExist",value:function(n){return!!(n!==null&&typeof n<"u"&&n.nodeName&&n.parentNode)}},{key:"getFocusableElements",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=e.find(n,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,`, [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, - [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r)),o=[],l=Ha(i),a;try{for(l.s();!(a=l.n()).done;){var u=a.value;getComputedStyle(u).display!=="none"&&getComputedStyle(u).visibility!=="hidden"&&o.push(u)}}catch(s){l.e(s)}finally{l.f()}return o}},{key:"getFirstFocusableElement",value:function(n,r){var i=e.getFocusableElements(n,r);return i.length>0?i[0]:null}},{key:"getLastFocusableElement",value:function(n,r){var i=e.getFocusableElements(n,r);return i.length>0?i[i.length-1]:null}},{key:"focus",value:function(n,r){var i=r===void 0?!0:!r;n&&document.activeElement!==n&&n.focus({preventScroll:i})}},{key:"focusFirstElement",value:function(n,r){if(n){var i=e.getFirstFocusableElement(n);return i&&e.focus(i,r),i}}},{key:"getCursorOffset",value:function(n,r,i,o){if(n){var l=getComputedStyle(n),a=document.createElement("div");a.style.position="absolute",a.style.top="0px",a.style.left="0px",a.style.visibility="hidden",a.style.pointerEvents="none",a.style.overflow=l.overflow,a.style.width=l.width,a.style.height=l.height,a.style.padding=l.padding,a.style.border=l.border,a.style.overflowWrap=l.overflowWrap,a.style.whiteSpace=l.whiteSpace,a.style.lineHeight=l.lineHeight,a.innerHTML=r.replace(/\r\n|\r|\n/g,"
");var u=document.createElement("span");u.textContent=o,a.appendChild(u);var s=document.createTextNode(i);a.appendChild(s),document.body.appendChild(a);var c=u.offsetLeft,d=u.offsetTop,h=u.clientHeight;return document.body.removeChild(a),{left:Math.abs(c-n.scrollLeft),top:Math.abs(d-n.scrollTop)+h}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(n,r,i){n[r].apply(n,i)}},{key:"isClickable",value:function(n){var r=n.nodeName,i=n.parentElement&&n.parentElement.nodeName;return r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||i==="INPUT"||i==="TEXTAREA"||i==="BUTTON"||i==="A"||this.hasClass(n,"p-button")||this.hasClass(n.parentElement,"p-button")||this.hasClass(n.parentElement,"p-checkbox")||this.hasClass(n.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(n,r){if(typeof r=="string")n.style.cssText=this.style;else for(var i in this.style)n.style[i]=r[i]}},{key:"exportCSV",value:function(n,r){var i=new Blob([n],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(i,r+".csv");else{var o=e.saveAs({name:r+".csv",src:URL.createObjectURL(i)});o||(n="data:text/csv;charset=utf-8,"+n,window.open(encodeURI(n)))}}},{key:"saveAs",value:function(n){if(n){var r=document.createElement("a");if(r.download!==void 0){var i=n.name,o=n.src;return r.setAttribute("href",o),r.setAttribute("download",i),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),!0}}return!1}},{key:"createInlineStyle",value:function(n,r){var i=document.createElement("style");return e.addNonce(i,n),r||(r=document.head),r.appendChild(i),i}},{key:"removeInlineStyle",value:function(n){if(this.isExist(n)){try{n.parentNode.removeChild(n)}catch{}n=null}return n}},{key:"addNonce",value:function(n,r){try{r||(r=mw.REACT_APP_CSS_NONCE)}catch{}r&&n.setAttribute("nonce",r)}},{key:"getTargetElement",value:function(n){if(!n)return null;if(n==="document")return document;if(n==="window")return window;if($e(n)==="object"&&n.hasOwnProperty("current"))return this.isExist(n.current)?n.current:null;var r=function(l){return!!(l&&l.constructor&&l.call&&l.apply)},i=r(n)?n():n;return i&&i.nodeType===9||this.isExist(i)?i:null}},{key:"getAttributeNames",value:function(n){var r,i,o;for(i=[],o=n.attributes,r=0;r0}return!1}},{key:"hasCSSTransition",value:function(n){if(n){var r=getComputedStyle(n),i=parseFloat(r.getPropertyValue("transition-duration")||"0");return i>0}return!1}}]),e}();sc(Li,"DATA_PROPS",["data-"]);sc(Li,"ARIA_PROPS",["aria","focus-target"]);function Cw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Pw(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,a;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return o=s.done,s},e:function(s){l=!0,a=s},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(l)throw a}}}}function Pw(e,t){if(e){if(typeof e=="string")return vd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vd(e,t)}}function vd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.length&&(i=i%n.length,r=r%n.length),n.splice(i,0,n.splice(r,1)[0]))}},{key:"findIndexInList",value:function(n,r,i){var o=this;return r?i?r.findIndex(function(l){return o.equals(l,n,i)}):r.findIndex(function(l){return l===n}):-1}},{key:"getJSXElement",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n?n[r]:void 0;return o===void 0?i[r]:o}},{key:"getPropCaseInsensitive",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.toFlatCase(r);for(var l in n)if(n.hasOwnProperty(l)&&this.toFlatCase(l)===o)return n[l];for(var a in i)if(i.hasOwnProperty(a)&&this.toFlatCase(a)===o)return i[a]}},{key:"getMergedProps",value:function(n,r){return Object.assign({},r,n)}},{key:"getDiffProps",value:function(n,r){return this.findDiffKeys(n,r)}},{key:"getPropValue",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.isNotEmpty(n)?this.getProp(n.props,r,i):void 0}},{key:"getComponentProps",value:function(n,r){return this.isNotEmpty(n)?this.getMergedProps(n.props,r):void 0}},{key:"getComponentDiffProps",value:function(n,r){return this.isNotEmpty(n)?this.getDiffProps(n.props,r):void 0}},{key:"isValidChild",value:function(n,r,i){if(n){var o,l=this.getComponentProp(n,"__TYPE")||(n.type?n.type.displayName:void 0);!l&&n!==null&&n!==void 0&&(o=n.type)!==null&&o!==void 0&&(o=o._payload)!==null&&o!==void 0&&o.value&&(l=n.type._payload.value.find(function(s){return s===r}));var a=l===r;try{var u}catch{}return a}return!1}},{key:"getRefElement",value:function(n){return n?$e(n)==="object"&&n.hasOwnProperty("current")?n.current:n:null}},{key:"combinedRefs",value:function(n,r){n&&r&&(typeof r=="function"?r(n.current):r.current=n.current)}},{key:"removeAccents",value:function(n){return n&&n.search(/[\xC0-\xFF]/g)>-1&&(n=n.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),n}},{key:"toFlatCase",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n.replace(/(-|_)/g,"").toLowerCase():n}},{key:"toCapitalCase",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n[0].toUpperCase()+n.slice(1):n}},{key:"trim",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n.trim():n}},{key:"isEmpty",value:function(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&$e(n)==="object"&&Object.keys(n).length===0}},{key:"isNotEmpty",value:function(n){return!this.isEmpty(n)}},{key:"isFunction",value:function(n){return!!(n&&n.constructor&&n.call&&n.apply)}},{key:"isObject",value:function(n){return n!==null&&n instanceof Object&&n.constructor===Object}},{key:"isDate",value:function(n){return n!==null&&n instanceof Date&&n.constructor===Date}},{key:"isArray",value:function(n){return n!==null&&Array.isArray(n)}},{key:"isString",value:function(n){return n!==null&&typeof n=="string"}},{key:"isPrintableCharacter",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}},{key:"isLetter",value:function(n){return/^[a-zA-Z\u00C0-\u017F]$/.test(n)}},{key:"findLast",value:function(n,r){var i;if(this.isNotEmpty(n))try{i=n.findLast(r)}catch{i=Zu(n).reverse().find(r)}return i}},{key:"findLastIndex",value:function(n,r){var i=-1;if(this.isNotEmpty(n))try{i=n.findLastIndex(r)}catch{i=n.lastIndexOf(Zu(n).reverse().find(r))}return i}},{key:"sort",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=this.compare(n,r,o,i),u=i;return(this.isEmpty(n)||this.isEmpty(r))&&(u=l===1?i:l),u*a}},{key:"compare",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,l=-1,a=this.isEmpty(n),u=this.isEmpty(r);return a&&u?l=0:a?l=o:u?l=-o:typeof n=="string"&&typeof r=="string"?l=i(n,r):l=nr?1:0,l}},{key:"localeComparator",value:function(n){return new Intl.Collator(n,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(n,r){var i=Cw(n),o;try{for(i.s();!(o=i.n()).done;){var l=o.value;if(l.key===r)return l.children||[];if(l.children){var a=this.findChildrenByKey(l.children,r);if(a.length>0)return a}}}catch(u){i.e(u)}finally{i.f()}return[]}},{key:"mutateFieldData",value:function(n,r,i){if(!($e(n)!=="object"||typeof r!="string"))for(var o=r.split("."),l=n,a=0,u=o.length;a1&&arguments[1]!==void 0?arguments[1]:{};if(e){var n=function(l){return typeof l=="function"},r=t.classNameMergeFunction,i=n(r);return e.reduce(function(o,l){if(!l)return o;var a=function(){var c=l[u];if(u==="style")o.style=wd(wd({},o.style),l.style);else if(u==="className"){var d="";i?d=r(o.className,l.className):d=[o.className,l.className].join(" ").trim(),o.className=d||void 0}else if(n(c)){var h=o[u];o[u]=h?function(){h.apply(void 0,arguments),c.apply(void 0,arguments)}:c}else o[u]=c};for(var u in l)a();return o},{})}}var Ve=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}function _w(e,t){if(to(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(to(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jm(e){var t=_w(e,"string");return to(t)==="symbol"?t:String(t)}function yt(e,t,n){return t=jm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sd(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},r=P.useState(!1),i=Aw(r,2),o=i[0],l=i[1],a=P.useRef(null),u=P.useContext(cc),s=Li.isClient()?window.document:void 0,c=n.document,d=c===void 0?s:c,h=n.manual,g=h===void 0?!1:h,y=n.name,w=y===void 0?"style_".concat(++Iw):y,E=n.id,p=E===void 0?void 0:E,f=n.media,m=f===void 0?void 0:f,x=function(A){var F=A.querySelector('style[data-primereact-style-id="'.concat(w,'"]'));if(F)return F;if(p!==void 0){var B=d.getElementById(p);if(B)return B}return d.createElement("style")},_=function(A){o&&t!==A&&(a.current.textContent=A)},v=function(){if(!(!d||o)){var A=(u==null?void 0:u.styleContainer)||d.head;a.current=x(A),a.current.isConnected||(a.current.type="text/css",p&&(a.current.id=p),m&&(a.current.media=m),Li.addNonce(a.current,u&&u.nonce||ra.nonce),A.appendChild(a.current),w&&a.current.setAttribute("data-primereact-style-id",w)),a.current.textContent=t,l(!0)}},C=function(){!d||!a.current||(Li.removeInlineStyle(a.current),l(!1))};return P.useEffect(function(){g||v()},[g]),{id:p,name:w,update:_,unload:C,load:v,isLoaded:o}},Fw=function(t,n){var r=P.useRef(!1);return P.useEffect(function(){if(!r.current){r.current=!0;return}return t&&t()},n)};function es(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?i[0]:null}},{key:"getLastFocusableElement",value:function(n,r){var i=e.getFocusableElements(n,r);return i.length>0?i[i.length-1]:null}},{key:"focus",value:function(n,r){var i=r===void 0?!0:!r;n&&document.activeElement!==n&&n.focus({preventScroll:i})}},{key:"focusFirstElement",value:function(n,r){if(n){var i=e.getFirstFocusableElement(n);return i&&e.focus(i,r),i}}},{key:"getCursorOffset",value:function(n,r,i,o){if(n){var l=getComputedStyle(n),a=document.createElement("div");a.style.position="absolute",a.style.top="0px",a.style.left="0px",a.style.visibility="hidden",a.style.pointerEvents="none",a.style.overflow=l.overflow,a.style.width=l.width,a.style.height=l.height,a.style.padding=l.padding,a.style.border=l.border,a.style.overflowWrap=l.overflowWrap,a.style.whiteSpace=l.whiteSpace,a.style.lineHeight=l.lineHeight,a.innerHTML=r.replace(/\r\n|\r|\n/g,"
");var u=document.createElement("span");u.textContent=o,a.appendChild(u);var s=document.createTextNode(i);a.appendChild(s),document.body.appendChild(a);var c=u.offsetLeft,d=u.offsetTop,h=u.clientHeight;return document.body.removeChild(a),{left:Math.abs(c-n.scrollLeft),top:Math.abs(d-n.scrollTop)+h}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(n,r,i){n[r].apply(n,i)}},{key:"isClickable",value:function(n){var r=n.nodeName,i=n.parentElement&&n.parentElement.nodeName;return r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||i==="INPUT"||i==="TEXTAREA"||i==="BUTTON"||i==="A"||this.hasClass(n,"p-button")||this.hasClass(n.parentElement,"p-button")||this.hasClass(n.parentElement,"p-checkbox")||this.hasClass(n.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(n,r){if(typeof r=="string")n.style.cssText=this.style;else for(var i in this.style)n.style[i]=r[i]}},{key:"exportCSV",value:function(n,r){var i=new Blob([n],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(i,r+".csv");else{var o=e.saveAs({name:r+".csv",src:URL.createObjectURL(i)});o||(n="data:text/csv;charset=utf-8,"+n,window.open(encodeURI(n)))}}},{key:"saveAs",value:function(n){if(n){var r=document.createElement("a");if(r.download!==void 0){var i=n.name,o=n.src;return r.setAttribute("href",o),r.setAttribute("download",i),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),!0}}return!1}},{key:"createInlineStyle",value:function(n,r){var i=document.createElement("style");return e.addNonce(i,n),r||(r=document.head),r.appendChild(i),i}},{key:"removeInlineStyle",value:function(n){if(this.isExist(n)){try{n.parentNode.removeChild(n)}catch{}n=null}return n}},{key:"addNonce",value:function(n,r){try{r||(r=vw.REACT_APP_CSS_NONCE)}catch{}r&&n.setAttribute("nonce",r)}},{key:"getTargetElement",value:function(n){if(!n)return null;if(n==="document")return document;if(n==="window")return window;if($e(n)==="object"&&n.hasOwnProperty("current"))return this.isExist(n.current)?n.current:null;var r=function(l){return!!(l&&l.constructor&&l.call&&l.apply)},i=r(n)?n():n;return i&&i.nodeType===9||this.isExist(i)?i:null}},{key:"getAttributeNames",value:function(n){var r,i,o;for(i=[],o=n.attributes,r=0;r0}return!1}},{key:"hasCSSTransition",value:function(n){if(n){var r=getComputedStyle(n),i=parseFloat(r.getPropertyValue("transition-duration")||"0");return i>0}return!1}}]),e}();fc(Li,"DATA_PROPS",["data-"]);fc(Li,"ARIA_PROPS",["aria","focus-target"]);function _w(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Tw(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,a;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return o=s.done,s},e:function(s){l=!0,a=s},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(l)throw a}}}}function Tw(e,t){if(e){if(typeof e=="string")return wd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wd(e,t)}}function wd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.length&&(i=i%n.length,r=r%n.length),n.splice(i,0,n.splice(r,1)[0]))}},{key:"findIndexInList",value:function(n,r,i){var o=this;return r?i?r.findIndex(function(l){return o.equals(l,n,i)}):r.findIndex(function(l){return l===n}):-1}},{key:"getJSXElement",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n?n[r]:void 0;return o===void 0?i[r]:o}},{key:"getPropCaseInsensitive",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.toFlatCase(r);for(var l in n)if(n.hasOwnProperty(l)&&this.toFlatCase(l)===o)return n[l];for(var a in i)if(i.hasOwnProperty(a)&&this.toFlatCase(a)===o)return i[a]}},{key:"getMergedProps",value:function(n,r){return Object.assign({},r,n)}},{key:"getDiffProps",value:function(n,r){return this.findDiffKeys(n,r)}},{key:"getPropValue",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.isNotEmpty(n)?this.getProp(n.props,r,i):void 0}},{key:"getComponentProps",value:function(n,r){return this.isNotEmpty(n)?this.getMergedProps(n.props,r):void 0}},{key:"getComponentDiffProps",value:function(n,r){return this.isNotEmpty(n)?this.getDiffProps(n.props,r):void 0}},{key:"isValidChild",value:function(n,r,i){if(n){var o,l=this.getComponentProp(n,"__TYPE")||(n.type?n.type.displayName:void 0);!l&&n!==null&&n!==void 0&&(o=n.type)!==null&&o!==void 0&&(o=o._payload)!==null&&o!==void 0&&o.value&&(l=n.type._payload.value.find(function(s){return s===r}));var a=l===r;try{var u}catch{}return a}return!1}},{key:"getRefElement",value:function(n){return n?$e(n)==="object"&&n.hasOwnProperty("current")?n.current:n:null}},{key:"combinedRefs",value:function(n,r){n&&r&&(typeof r=="function"?r(n.current):r.current=n.current)}},{key:"removeAccents",value:function(n){return n&&n.search(/[\xC0-\xFF]/g)>-1&&(n=n.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),n}},{key:"toFlatCase",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n.replace(/(-|_)/g,"").toLowerCase():n}},{key:"toCapitalCase",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n[0].toUpperCase()+n.slice(1):n}},{key:"trim",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n.trim():n}},{key:"isEmpty",value:function(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&$e(n)==="object"&&Object.keys(n).length===0}},{key:"isNotEmpty",value:function(n){return!this.isEmpty(n)}},{key:"isFunction",value:function(n){return!!(n&&n.constructor&&n.call&&n.apply)}},{key:"isObject",value:function(n){return n!==null&&n instanceof Object&&n.constructor===Object}},{key:"isDate",value:function(n){return n!==null&&n instanceof Date&&n.constructor===Date}},{key:"isArray",value:function(n){return n!==null&&Array.isArray(n)}},{key:"isString",value:function(n){return n!==null&&typeof n=="string"}},{key:"isPrintableCharacter",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}},{key:"isLetter",value:function(n){return/^[a-zA-Z\u00C0-\u017F]$/.test(n)}},{key:"findLast",value:function(n,r){var i;if(this.isNotEmpty(n))try{i=n.findLast(r)}catch{i=ts(n).reverse().find(r)}return i}},{key:"findLastIndex",value:function(n,r){var i=-1;if(this.isNotEmpty(n))try{i=n.findLastIndex(r)}catch{i=n.lastIndexOf(ts(n).reverse().find(r))}return i}},{key:"sort",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=this.compare(n,r,o,i),u=i;return(this.isEmpty(n)||this.isEmpty(r))&&(u=l===1?i:l),u*a}},{key:"compare",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,l=-1,a=this.isEmpty(n),u=this.isEmpty(r);return a&&u?l=0:a?l=o:u?l=-o:typeof n=="string"&&typeof r=="string"?l=i(n,r):l=nr?1:0,l}},{key:"localeComparator",value:function(n){return new Intl.Collator(n,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(n,r){var i=_w(n),o;try{for(i.s();!(o=i.n()).done;){var l=o.value;if(l.key===r)return l.children||[];if(l.children){var a=this.findChildrenByKey(l.children,r);if(a.length>0)return a}}}catch(u){i.e(u)}finally{i.f()}return[]}},{key:"mutateFieldData",value:function(n,r,i){if(!($e(n)!=="object"||typeof r!="string"))for(var o=r.split("."),l=n,a=0,u=o.length;a1&&arguments[1]!==void 0?arguments[1]:{};if(e){var n=function(l){return typeof l=="function"},r=t.classNameMergeFunction,i=n(r);return e.reduce(function(o,l){if(!l)return o;var a=function(){var c=l[u];if(u==="style")o.style=Sd(Sd({},o.style),l.style);else if(u==="className"){var d="";i?d=r(o.className,l.className):d=[o.className,l.className].join(" ").trim(),o.className=d||void 0}else if(n(c)){var h=o[u];o[u]=h?function(){h.apply(void 0,arguments),c.apply(void 0,arguments)}:c}else o[u]=c};for(var u in l)a();return o},{})}}var Ve=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}function Rw(e,t){if(to(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(to(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Am(e){var t=Rw(e,"string");return to(t)==="symbol"?t:String(t)}function yt(e,t,n){return t=Am(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ed(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},r=_.useState(!1),i=Iw(r,2),o=i[0],l=i[1],a=_.useRef(null),u=_.useContext(dc),s=Li.isClient()?window.document:void 0,c=n.document,d=c===void 0?s:c,h=n.manual,g=h===void 0?!1:h,y=n.name,w=y===void 0?"style_".concat(++Mw):y,E=n.id,p=E===void 0?void 0:E,f=n.media,m=f===void 0?void 0:f,S=function(b){var F=b.querySelector('style[data-primereact-style-id="'.concat(w,'"]'));if(F)return F;if(p!==void 0){var B=d.getElementById(p);if(B)return B}return d.createElement("style")},T=function(b){o&&t!==b&&(a.current.textContent=b)},v=function(){if(!(!d||o)){var b=(u==null?void 0:u.styleContainer)||d.head;a.current=S(b),a.current.isConnected||(a.current.type="text/css",p&&(a.current.id=p),m&&(a.current.media=m),Li.addNonce(a.current,u&&u.nonce||oa.nonce),b.appendChild(a.current),w&&a.current.setAttribute("data-primereact-style-id",w)),a.current.textContent=t,l(!0)}},C=function(){!d||!a.current||(Li.removeInlineStyle(a.current),l(!1))};return _.useEffect(function(){g||v()},[g]),{id:p,name:w,update:T,unload:C,load:v,isLoaded:o}},$w=function(t,n){var r=_.useRef(!1);return _.useEffect(function(){if(!r.current){r.current=!0;return}return t&&t()},n)};function ns(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:{},n=t.css,r=Le(Le({},t.defaultProps),Ee.defaultProps),i={},o=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ee.context=d,Ee.cProps=c,Se.getMergedProps(c,r)},l=function(c){return Se.getDiffProps(c,r)},a=function(){var c,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;d.hasOwnProperty("pt")&&d.pt!==void 0&&(d=d.pt);var w=h,E=/./g.test(w)&&!!g[w.split(".")[0]],p=E?Se.toFlatCase(w.split(".")[1]):Se.toFlatCase(w),f=g.hostName&&Se.toFlatCase(g.hostName),m=f||g.props&&g.props.__TYPE&&Se.toFlatCase(g.props.__TYPE)||"",x=p==="transition",_="data-pc-",v=function J(N){return N!=null&&N.props?N.hostName?N.props.__TYPE===N.hostName?N.props:J(N.parent):N.parent:void 0},C=function(N){var b,M;return((b=g.props)===null||b===void 0?void 0:b[N])||((M=v(g))===null||M===void 0?void 0:M[N])};Ee.cParams=g,Ee.cName=m;var O=C("ptOptions")||Ee.context.ptOptions||{},A=O.mergeSections,F=A===void 0?!0:A,B=O.mergeProps,ce=B===void 0?!1:B,re=function(){var N=vn.apply(void 0,arguments);return Array.isArray(N)?{className:Ju.apply(void 0,Ed(N))}:Se.isString(N)?{className:N}:N!=null&&N.hasOwnProperty("className")&&Array.isArray(N.className)?{className:Ju.apply(void 0,Ed(N.className))}:N},be=y?E?Dm(re,w,g):bm(re,w,g):void 0,at=E?void 0:oa(ia(d,m),re,w,g),Ie=!x&&Le(Le({},p==="root"&&ts({},"".concat(_,"name"),g.props&&g.props.__parentMetadata?Se.toFlatCase(g.props.__TYPE):m)),{},ts({},"".concat(_,"section"),p));return F||!F&&at?ce?jl([be,at,Object.keys(Ie).length?Ie:{}],{classNameMergeFunction:(c=Ee.context.ptOptions)===null||c===void 0?void 0:c.classNameMergeFunction}):Le(Le(Le({},be),at),Object.keys(Ie).length?Ie:{}):Le(Le({},at),Object.keys(Ie).length?Ie:{})},u=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c.props,h=c.state,g=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a((d||{}).pt,m,Le(Le({},c),x))},y=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return a(m,x,_,!1)},w=function(){return Ee.context.unstyled||ra.unstyled||d.unstyled},E=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return w()?void 0:vn(n&&n.classes,m,Le({props:d,state:h},x))},p=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(_){var v,C=vn(n&&n.inlineStyles,m,Le({props:d,state:h},x)),O=vn(i,m,Le({props:d,state:h},x));return jl([O,C],{classNameMergeFunction:(v=Ee.context.ptOptions)===null||v===void 0?void 0:v.classNameMergeFunction})}};return{ptm:g,ptmo:y,sx:p,cx:E,isUnstyled:w}};return Le(Le({getProps:o,getOtherProps:l,setMetaData:u},t),{},{defaultProps:r})}},vn=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=String(Se.toFlatCase(n)).split("."),o=i.shift(),l=Se.isNotEmpty(t)?Object.keys(t).find(function(a){return Se.toFlatCase(a)===o}):"";return o?Se.isObject(t)?e(Se.getItemValue(t[l],r),i.join("."),r):void 0:Se.getItemValue(t,r)},ia=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=t==null?void 0:t._usept,o=function(a){var u,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=r?r(a):a,d=Se.toFlatCase(n);return(u=s?d!==Ee.cName?c==null?void 0:c[d]:void 0:c==null?void 0:c[d])!==null&&u!==void 0?u:c};return Se.isNotEmpty(i)?{_usept:i,originalValue:o(t.originalValue),value:o(t.value)}:o(t,!0)},oa=function(t,n,r,i){var o=function(w){return n(w,r,i)};if(t!=null&&t.hasOwnProperty("_usept")){var l=t._usept||Ee.context.ptOptions||{},a=l.mergeSections,u=a===void 0?!0:a,s=l.mergeProps,c=s===void 0?!1:s,d=l.classNameMergeFunction,h=o(t.originalValue),g=o(t.value);return h===void 0&&g===void 0?void 0:Se.isString(g)?g:Se.isString(h)?h:u||!u&&g?c?jl([h,g],{classNameMergeFunction:d}):Le(Le({},h),g):g}return o(t)},Gw=function(){return ia(Ee.context.pt||ra.pt,void 0,function(t){return Se.getItemValue(t,Ee.cParams)})},qw=function(){return ia(Ee.context.pt||ra.pt,void 0,function(t){return vn(t,Ee.cName,Ee.cParams)||Se.getItemValue(t,Ee.cParams)})},Dm=function(t,n,r){return oa(Gw(),t,n,r)},bm=function(t,n,r){return oa(qw(),t,n,r)},Xw=function(t){var n=arguments.length>2?arguments[2]:void 0,r=n.name,i=n.styled,o=i===void 0?!1:i,l=n.hostName,a=l===void 0?"":l,u=Dm(vn,"global.css",Ee.cParams),s=Se.toFlatCase(r),c=bo(Hw,{name:"base",manual:!0}),d=c.load,h=bo(Yw,{name:"common",manual:!0}),g=h.load,y=bo(u,{name:"global",manual:!0}),w=y.load,E=bo(t,{name:r,manual:!0}),p=E.load,f=function(x){if(!a){var _=oa(ia((Ee.cProps||{}).pt,s),vn,"hooks.".concat(x)),v=bm(vn,"hooks.".concat(x));_==null||_(),v==null||v()}};f("useMountEffect"),bw(function(){d(),w(),g(),o||p()}),Fw(function(){f("useUpdateEffect")}),Am(function(){f("useUnmountEffect")})},Io=Ee.extend({defaultProps:{__TYPE:"Chart",id:null,type:null,data:null,options:null,plugins:null,width:null,height:null,style:null,className:null,children:void 0},css:{classes:{root:"p-chart"},inlineStyles:{root:function(t){var n=t.props;return Object.assign({width:n.width,height:n.height},n.style)}},styles:` +`),ke={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.css,r=Le(Le({},t.defaultProps),ke.defaultProps),i={},o=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ke.context=d,ke.cProps=c,Se.getMergedProps(c,r)},l=function(c){return Se.getDiffProps(c,r)},a=function(){var c,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;d.hasOwnProperty("pt")&&d.pt!==void 0&&(d=d.pt);var w=h,E=/./g.test(w)&&!!g[w.split(".")[0]],p=E?Se.toFlatCase(w.split(".")[1]):Se.toFlatCase(w),f=g.hostName&&Se.toFlatCase(g.hostName),m=f||g.props&&g.props.__TYPE&&Se.toFlatCase(g.props.__TYPE)||"",S=p==="transition",T="data-pc-",v=function Z(O){return O!=null&&O.props?O.hostName?O.props.__TYPE===O.hostName?O.props:Z(O.parent):O.parent:void 0},C=function(O){var I,M;return((I=g.props)===null||I===void 0?void 0:I[O])||((M=v(g))===null||M===void 0?void 0:M[O])};ke.cParams=g,ke.cName=m;var N=C("ptOptions")||ke.context.ptOptions||{},b=N.mergeSections,F=b===void 0?!0:b,B=N.mergeProps,fe=B===void 0?!1:B,ie=function(){var O=yn.apply(void 0,arguments);return Array.isArray(O)?{className:es.apply(void 0,Cd(O))}:Se.isString(O)?{className:O}:O!=null&&O.hasOwnProperty("className")&&Array.isArray(O.className)?{className:es.apply(void 0,Cd(O.className))}:O},Ie=y?E?Dm(ie,w,g):Fm(ie,w,g):void 0,at=E?void 0:aa(la(d,m),ie,w,g),De=!S&&Le(Le({},p==="root"&&rs({},"".concat(T,"name"),g.props&&g.props.__parentMetadata?Se.toFlatCase(g.props.__TYPE):m)),{},rs({},"".concat(T,"section"),p));return F||!F&&at?fe?bl([Ie,at,Object.keys(De).length?De:{}],{classNameMergeFunction:(c=ke.context.ptOptions)===null||c===void 0?void 0:c.classNameMergeFunction}):Le(Le(Le({},Ie),at),Object.keys(De).length?De:{}):Le(Le({},at),Object.keys(De).length?De:{})},u=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=c.props,h=c.state,g=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a((d||{}).pt,m,Le(Le({},c),S))},y=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return a(m,S,T,!1)},w=function(){return ke.context.unstyled||oa.unstyled||d.unstyled},E=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return w()?void 0:yn(n&&n.classes,m,Le({props:d,state:h},S))},p=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(T){var v,C=yn(n&&n.inlineStyles,m,Le({props:d,state:h},S)),N=yn(i,m,Le({props:d,state:h},S));return bl([N,C],{classNameMergeFunction:(v=ke.context.ptOptions)===null||v===void 0?void 0:v.classNameMergeFunction})}};return{ptm:g,ptmo:y,sx:p,cx:E,isUnstyled:w}};return Le(Le({getProps:o,getOtherProps:l,setMetaData:u},t),{},{defaultProps:r})}},yn=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=String(Se.toFlatCase(n)).split("."),o=i.shift(),l=Se.isNotEmpty(t)?Object.keys(t).find(function(a){return Se.toFlatCase(a)===o}):"";return o?Se.isObject(t)?e(Se.getItemValue(t[l],r),i.join("."),r):void 0:Se.getItemValue(t,r)},la=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=t==null?void 0:t._usept,o=function(a){var u,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=r?r(a):a,d=Se.toFlatCase(n);return(u=s?d!==ke.cName?c==null?void 0:c[d]:void 0:c==null?void 0:c[d])!==null&&u!==void 0?u:c};return Se.isNotEmpty(i)?{_usept:i,originalValue:o(t.originalValue),value:o(t.value)}:o(t,!0)},aa=function(t,n,r,i){var o=function(w){return n(w,r,i)};if(t!=null&&t.hasOwnProperty("_usept")){var l=t._usept||ke.context.ptOptions||{},a=l.mergeSections,u=a===void 0?!0:a,s=l.mergeProps,c=s===void 0?!1:s,d=l.classNameMergeFunction,h=o(t.originalValue),g=o(t.value);return h===void 0&&g===void 0?void 0:Se.isString(g)?g:Se.isString(h)?h:u||!u&&g?c?bl([h,g],{classNameMergeFunction:d}):Le(Le({},h),g):g}return o(t)},Xw=function(){return la(ke.context.pt||oa.pt,void 0,function(t){return Se.getItemValue(t,ke.cParams)})},Zw=function(){return la(ke.context.pt||oa.pt,void 0,function(t){return yn(t,ke.cName,ke.cParams)||Se.getItemValue(t,ke.cParams)})},Dm=function(t,n,r){return aa(Xw(),t,n,r)},Fm=function(t,n,r){return aa(Zw(),t,n,r)},Jw=function(t){var n=arguments.length>2?arguments[2]:void 0,r=n.name,i=n.styled,o=i===void 0?!1:i,l=n.hostName,a=l===void 0?"":l,u=Dm(yn,"global.css",ke.cParams),s=Se.toFlatCase(r),c=Io(Qw,{name:"base",manual:!0}),d=c.load,h=Io(qw,{name:"common",manual:!0}),g=h.load,y=Io(u,{name:"global",manual:!0}),w=y.load,E=Io(t,{name:r,manual:!0}),p=E.load,f=function(S){if(!a){var T=aa(la((ke.cProps||{}).pt,s),yn,"hooks.".concat(S)),v=Fm(yn,"hooks.".concat(S));T==null||T(),v==null||v()}};f("useMountEffect"),Fw(function(){d(),w(),g(),o||p()}),$w(function(){f("useUpdateEffect")}),Im(function(){f("useUnmountEffect")})},Do=ke.extend({defaultProps:{__TYPE:"Chart",id:null,type:null,data:null,options:null,plugins:null,width:null,height:null,style:null,className:null,children:void 0},css:{classes:{root:"p-chart"},inlineStyles:{root:function(t){var n=t.props;return Object.assign({width:n.width,height:n.height},n.style)}},styles:` @layer primereact { .p-chart { position: relative } } - `}}),Cd=function(){try{return Chart}catch{return null}}(),Im=P.memo(P.forwardRef(function(e,t){var n=Dw(),r=P.useContext(cc),i=Io.getProps(e,r),o=Io.setMetaData({props:i}),l=o.ptm,a=o.cx,u=o.sx,s=o.isUnstyled;Xw(Io.css.styles,s,{name:"chart"});var c=P.useRef(null),d=P.useRef(null),h=P.useRef(null),g=function(){y();var x={type:i.type,data:i.data,options:i.options,plugins:i.plugins};Cd?d.current=new Cd(h.current,x):hw(()=>import("./auto-BwZvv_Gp.js"),[]).then(function(_){y(),h.current&&_&&(_.default?d.current=new _.default(h.current,x):d.current=new _(h.current,x))})},y=function(){d.current&&(d.current.destroy(),d.current=null)};P.useImperativeHandle(t,function(){return{props:i,getCanvas:function(){return h.current},getChart:function(){return d.current},getBase64Image:function(){return d.current.toBase64Image()},getElement:function(){return c.current},generateLegend:function(){return d.current&&d.current.generateLegend()},refresh:function(){return d.current&&d.current.update()}}}),P.useEffect(function(){g()}),Am(function(){y()});var w=i.options&&i.options.plugins&&i.options.plugins.title&&i.options.plugins.title.text,E=i.ariaLabel||w,p=n({id:i.id,ref:c,style:u("root"),className:Ju(i.className,a("root"))},Io.getOtherProps(i),l("root")),f=n({ref:h,width:i.width,height:i.height,role:"img","aria-label":E},l("canvas"));return P.createElement("div",p,P.createElement("canvas",f))}),function(e,t){return e.data===t.data&&e.options===t.options&&e.type===t.type});Im.displayName="Chart";const Jw="_logo1_wzwid_1",Zw="_logo2_wzwid_23",eS={logo1:Jw,"p-chart":"_p-chart_wzwid_13",logo2:Zw},fc=P.memo(function({black:t,small:n}){const r={title:{display:!1},legend:{display:!1,position:"bottom"}},i={datasets:[{data:[200,70,100],backgroundColor:["#e60000","#cca300","#0000ff"],hoverBackgroundColor:["#e60000","#cca300","#0000ff"]}]};return T.jsx(nc,{to:"/observatorioiftm/",children:T.jsxs("div",{className:eS.logo1,children:[T.jsx(Im,{style:{marginTop:"-16px"},width:n?"35px":"40px",height:n?"35px":"40px",type:"doughnut",data:i,options:r}),T.jsxs("div",{style:{fontSize:n?"16px":"20px",color:t?"black":"white"},children:[T.jsx("span",{children:"bservatório"}),T.jsxs("span",{children:[" ",T.jsx("strong",{children:"IFTM"})]})]})]})})}),tS=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Va=tS.ReactCurrentDispatcher,nS=()=>P.useReducer(()=>({}))[1],rS=e=>()=>{const t=`Hook "${e}" no possible to using inside useBetween scope.`;throw console.error(t),new Error(t)},ns=(e,t)=>Object.is(e,t),hi=(e,t)=>!e||!t||e.length!==t.length||e.some((n,r)=>!ns(n,t[r])),iS=()=>typeof window>"u",Pd=new Map;let ji=[],rl=0,Pr=[],yn=[],Ai=()=>{},Qa=iS(),oS;const un=()=>{const e=rl++;return ji[e]=ji[e]||{}},Fm={useState(e){const t=un(),n=Ai;return t.initialized||(t.state=typeof e=="function"?e():e,t.set=r=>{if(typeof r=="function")return t.set(r(t.state));ns(r,t.state)||(t.state=r,n())},t.initialized=!0),[t.state,t.set]},useReducer(e,t,n){const r=un(),i=Ai;return r.initialized||(r.state=n?n(t):t,r.dispatch=o=>{const l=e(r.state,o);ns(l,r.state)||(r.state=l,i())},r.initialized=!0),[r.state,r.dispatch]},useEffect(e,t){if(Qa)return;const n=un();n.initialized?hi(n.deps,t)&&(n.deps=t,Pr.push([n,t,e])):(n.deps=t,n.initialized=!0,Pr.push([n,t,e]))},useLayoutEffect(e,t){if(Qa)return;const n=un();n.initialized?hi(n.deps,t)&&(n.deps=t,yn.push([n,t,e])):(n.deps=t,n.initialized=!0,yn.push([n,t,e]))},useCallback(e,t){const n=un();return n.initialized?hi(n.deps,t)&&(n.deps=t,n.fn=e):(n.fn=e,n.deps=t,n.initialized=!0),n.fn},useMemo(e,t){const n=un();return n.initialized?hi(n.deps,t)&&(n.deps=t,n.state=e()):(n.deps=t,n.state=e(),n.initialized=!0),n.state},useRef(e){const t=un();return t.initialized||(t.state={current:e},t.initialized=!0),t.state},useImperativeHandle(e,t,n){if(Qa)return;const r=un();r.initialized?hi(r.deps,n)&&(r.deps=n,yn.push([r,n,()=>{typeof e=="function"?e(t()):e.current=t()}])):(r.deps=n,r.initialized=!0,yn.push([r,n,()=>{typeof e=="function"?e(t()):e.current=t()}]))}};["readContext","useContext","useDebugValue","useResponder","useDeferredValue","useTransition"].forEach(e=>Fm[e]=rS(e));const lS=(e,t)=>{const n=[];let r=[],i,o=[],l=!1;t&&t.mock&&(i=t.mock,l=!0);const a=()=>{r.slice().forEach(g=>g())},u=()=>{if(l)return;const g=Va.current,y=[rl,Pr,yn,ji,Ai];let w=!1,E=!0;if(rl=0,Pr=[],yn=[],ji=n,Ai=()=>{E?w=!0:u()},Va.current=Fm,i=e(oS),[yn,Pr].forEach(p=>p.forEach(([f,m,x])=>{if(f.deps=m,f.unsub){const v=f.unsub;o=o.filter(C=>C!==v),v()}const _=x();typeof _=="function"?(o.push(_),f.unsub=_):f.unsub=null})),[rl,Pr,yn,ji,Ai]=y,Va.current=g,E=!1,!w){a();return}u()};return{init:()=>u(),get:()=>i,sub:g=>{r.indexOf(g)===-1&&r.push(g)},unsub:g=>{r=r.filter(y=>y!==g)},unsubs:()=>o,mock:g=>{l=!0,i=g,a()},unmock:()=>{l=!1,u()}}},aS=e=>{let t=Pd.get(e);return t||(t=lS(e),Pd.set(e,t),t.init()),t},dc=e=>{const t=nS();let n=aS(e);return n.sub(t),P.useEffect(()=>(n.sub(t),()=>n.unsub(t)),[n,t]),n.get()},uS=()=>{const[e,t]=P.useState(!1),n=P.useCallback(()=>t(!0),[]),r=P.useCallback(()=>t(!1),[]);return{menu:e,openMenu:n,closeMenu:r}},Mm=()=>dc(uS),sS=()=>{const[e,t]=P.useState(0);return{windowHeight:e,setWindowHeight:t}},$m=()=>dc(sS);function cS({page:e,innerRef:t}){const{menu:n,openMenu:r,closeMenu:i}=Mm();function o(){return T.jsxs("div",{className:pi.topHeaderWrapper,children:[T.jsx("div",{className:pi.topHeaderLeft,children:T.jsx(fc,{black:!0})}),T.jsx("div",{className:pi.topHeaderRight,children:T.jsx(nc,{to:"login",children:T.jsx(pd,{icon:"fa-user",label:"Login"})})})]})}function l(){return T.jsxs("div",{className:pi.bottomElementsWrapper,children:[T.jsx("div",{children:T.jsx(pd,{icon:n?"fa-xmark":"fa-bars",onClick:n?i:r})}),T.jsx("h2",{style:{fontWeight:"normal",color:Te.textBlue},children:e})]})}return T.jsxs("header",{ref:t,className:pi.headerWrapper,children:[o(),l()]})}const fS="_wrapper_byyki_1",dS="_copyrightBackground_byyki_11",pS="_textStyle_byyki_25",hS="_footerWrapper_byyki_37",Fo={wrapper:fS,copyrightBackground:dS,textStyle:pS,footerWrapper:hS},mS=({cursor:e,link:t})=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 117 49",height:49,width:117,shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",style:{cursor:e?"pointer":"default"},onClick:()=>e?window.open(t):null,children:[T.jsx("defs",{children:T.jsx("style",{type:"text/css",children:".a {font: normal bold 11px Open Sans, sans-serif;}"})}),T.jsx("circle",{cx:22,cy:23,r:22,fill:"#fff"}),T.jsx("path",{style:{stroke:"#222",strokeWidth:9,strokeLinecap:"round"},d:"m 22,23 v 13"}),T.jsx("path",{style:{stroke:"#fff",strokeWidth:4,strokeLinejoin:"round"},d:"m 4,43 3,-6 4,3 z"}),T.jsx("circle",{r:4.5,cy:11,cx:22,fill:"#222"}),T.jsx("g",{fill:"#fff",children:T.jsxs("text",{x:47,y:22,children:[T.jsx("tspan",{className:"a",y:18,children:"Acesso à"}),T.jsx("tspan",{className:"a",x:47,y:31,children:"Informação"})]})})]});function gS(){function e(){return T.jsxs("footer",{style:{backgroundColor:Te.backgroundBlue},className:Fo.footerWrapper,children:[T.jsx(fc,{}),T.jsx(mS,{cursor:!0,link:"https://www.gov.br/acessoainformacao/pt-br"})]})}function t(){return T.jsx("span",{className:Fo.copyrightBackground,style:{backgroundColor:Te.backgroundDarkBlue},children:T.jsxs("p",{style:{color:Te.white},className:Fo.textStyle,children:["Lorem ipsum dolor sit amet, consectetur adipisicing elit."," ",T.jsxs(uw,{children:[" ","Ea placeat magnam quisquam perspiciatis quaerat reiciendis"," "]})]})})}return T.jsxs("div",{className:Fo.wrapper,children:[e(),t()]})}const vS=P.memo(function({label:t,icon:n,link:r,data:i}){const[o,l]=P.useState(!1),a=P.useCallback(()=>l(u=>!u),[]);return r?T.jsx(dd,{to:r,children:T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",width:"100%"},children:[T.jsx("div",{className:`fa-solid ${n}`}),T.jsx("p",{children:t})]})}):T.jsxs(T.Fragment,{children:[T.jsxs(cw,{onClick:a,children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:[T.jsx("div",{className:`fa-solid ${n}`}),T.jsx("p",{children:t})]}),T.jsx("div",{className:`fa-solid fa-angle-${o?"up":"down"}`})]}),o&&i.map((u,s)=>T.jsx(dd,{to:u.route,noBorder:!0,bg:Te.gray,children:T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",width:"100%"},children:[T.jsx("div",{className:`fa-solid ${u.icon}`}),T.jsx("p",{children:u.label})]})},s*10))]})});function yS(){const e=[{label:"Home",icon:"fa-home",menus:null,route:"/observatorioiftm/"},{label:"Indicadores",icon:"fa-chart-pie",menus:[{label:"Produção Bibliográfica",icon:"fa-chart-line",menus:null,route:"producaobibliografica"},{label:"Orientações",icon:"fa-chart-column",menus:null,route:"orientacoes"},{label:"Inovação",icon:"fa-chart-area",menus:null,route:"inovacao"},{label:"Formação Acadêmica",icon:"fa-graduation-cap",menus:null,route:"formacaoacademica"},{label:"Temas de Pesquisa",icon:"fa-comments",menus:null,route:"temasdepesquisa"}],route:null},{label:"Docentes",icon:"fa-people-group",menus:[{label:"Consulta por Nome",icon:"fa-id-card",menus:null,route:"consultanome"},{label:"Consulta por Temas de Pesquisa",icon:"fa-book",menus:null,route:"consultatemaspesquisa"},{label:"Produção Científica",icon:"fa-hand-peace",menus:null,route:"producaocientifica"},{label:"Avaliação Pesquisador (Editais PROPI)",icon:"fa-calendar-check",menus:null,route:"avaliacaopesquisador"}],route:null},{label:"Login",icon:"fa-user",menus:null,route:"login"}];function t(){return e.map((n,r)=>{var i;return T.jsx(vS,{label:n.label,icon:n.icon,link:n.route??null,data:((i=n==null?void 0:n.menus)==null?void 0:i.length)>0?n==null?void 0:n.menus:null},r)})}return T.jsxs("div",{style:{display:"flex",flexDirection:"column",background:Te.white,height:"100%",width:"100%",padding:"1rem"},children:[T.jsx("div",{style:{marginBottom:"1.5rem",marginTop:"1rem"},children:T.jsx(fc,{black:!0,small:!0})}),t()]})}const wS=()=>{const e=P.useRef(),[t,n]=P.useState(0);return{ref:e,height:t,setHeight:n}},zm=()=>dc(wS);function SS(){const{setHeight:e,ref:t}=zm(),{windowHeight:n}=$m();P.useEffect(()=>{const r=t.current?t.current.offsetHeight:0;e(100*r/window.innerHeight)},[t.offsetHeight,n])}function xS(){const{height:e,ref:t}=zm(),n=so(),{menu:r,closeMenu:i}=Mm();SS();function o(){return r&&T.jsxs("div",{style:{display:"flex",position:"fixed",width:"100%",zIndex:1},children:[T.jsx("div",{style:{backgroundColor:Te.white,marginTop:`${e}vh`,height:`${100-e}vh`,width:"20%",overflowY:"auto",zIndex:1},children:T.jsx(yS,{})}),T.jsx("div",{style:{background:Te.fadeBackground,width:"80%"},onClick:i})]})}return T.jsxs(T.Fragment,{children:[T.jsx(cS,{innerRef:t,page:n.pathname==="/observatorioiftm/"?"Home":n.pathname}),o(),T.jsx("div",{style:{marginTop:`${e}vh`},children:T.jsx(A0,{})}),T.jsx(gS,{})]})}function Mo(){return T.jsxs(fw,{gap:1,children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"2rem"},children:[T.jsx("div",{style:{display:"flex",alignItems:"center"},children:T.jsx("h2",{children:"Card"})}),T.jsx("p",{children:"X"})]}),T.jsx(Tm,{children:T.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Saepe earum rerum molestias corrupti non qui quo a pariatur quis? Aspernatur incidunt neque laboriosam veritatis ratione ex, minus illo nesciunt deleniti. Deserunt labore neque illo, voluptates ullam excepturi omnis vero dolorum, eveniet amet porro quos impedit beatae dolore non nisi cupiditate aliquid. Vitae excepturi earum expedita magnam corporis quas, non repellendus. Vel laudantium a ratione nam voluptatum itaque minus, sapiente deleniti nostrum iste unde, voluptates iusto maiores blanditiis culpa nulla inventore. Fuga quis repellat maxime hic odit unde temporibus qui in?"})})]})}const ES=P.memo(function(){const t={margin:"2rem 0 1rem 0",display:"flex",flexDirection:"column",justifyContent:"space-evenly",gap:"2rem",width:"85%"};return T.jsxs(It,{children:[T.jsx("h1",{style:{fontWeight:600},children:"Bem vindo ao Observatório IFTM"}),T.jsx(Tm,{children:T.jsxs("div",{style:t,children:[T.jsxs("div",{style:{display:"flex",gap:"2rem"},children:[T.jsx(Mo,{}),T.jsx(Mo,{})]}),T.jsx(Mo,{}),T.jsx(Mo,{})]})})]})});function kS(){return T.jsx(It,{children:T.jsx("h1",{children:"ProducaoBibliografica"})})}function CS(){return T.jsx(It,{children:T.jsx("h1",{children:"Orientacoes"})})}function PS(){return T.jsx(It,{children:T.jsx("h1",{children:"Inovacao"})})}function _S(){return T.jsx(It,{children:T.jsx("h1",{children:"FormacaoAcademica"})})}function TS(){return T.jsx(It,{children:T.jsx("h1",{children:"TemasDePesquisa"})})}function RS(){return T.jsx(It,{children:T.jsx("h1",{children:"ConsultaNome"})})}function NS(){return T.jsx(It,{children:T.jsx("h1",{children:"ConsultaTemasPesquisa"})})}function OS(){return T.jsx(It,{children:T.jsx("h1",{children:"ProducaoCientifica"})})}function LS(){return T.jsx(It,{children:T.jsx("h1",{children:"AvaliacaoPesquisador"})})}function jS(){return T.jsx(It,{children:T.jsx("h1",{children:"Login"})})}function AS(){return T.jsx("h1",{children:"Sobre"})}const DS=U0([{path:"/observatorioiftm/",element:T.jsx(xS,{}),children:[{index:!0,element:T.jsx(ES,{})},{path:"producaobibliografica",element:T.jsx(kS,{})},{path:"orientacoes",element:T.jsx(CS,{})},{path:"inovacao",element:T.jsx(PS,{})},{path:"formacaoacademica",element:T.jsx(_S,{})},{path:"temasdepesquisa",element:T.jsx(TS,{})},{path:"consultanome",element:T.jsx(RS,{})},{path:"consultatemaspesquisa",element:T.jsx(NS,{})},{path:"producaocientifica",element:T.jsx(OS,{})},{path:"avaliacaopesquisador",element:T.jsx(LS,{})},{path:"login",element:T.jsx(jS,{})},{path:"sobre",element:T.jsx(AS,{})}]}]);function bS(){const{setWindowHeight:e}=$m();return window.addEventListener("resize",function(){e(this.window.innerHeight)}),T.jsx(q0,{router:DS})}Ka.createRoot(document.getElementById("root")).render(T.jsx(Tn.StrictMode,{children:T.jsx(bS,{})})); + `}}),_d=function(){try{return Chart}catch{return null}}(),Mm=_.memo(_.forwardRef(function(e,t){var n=Dw(),r=_.useContext(dc),i=Do.getProps(e,r),o=Do.setMetaData({props:i}),l=o.ptm,a=o.cx,u=o.sx,s=o.isUnstyled;Jw(Do.css.styles,s,{name:"chart"});var c=_.useRef(null),d=_.useRef(null),h=_.useRef(null),g=function(){y();var S={type:i.type,data:i.data,options:i.options,plugins:i.plugins};_d?d.current=new _d(h.current,S):gw(()=>import("./auto-BwZvv_Gp.js"),[]).then(function(T){y(),h.current&&T&&(T.default?d.current=new T.default(h.current,S):d.current=new T(h.current,S))})},y=function(){d.current&&(d.current.destroy(),d.current=null)};_.useImperativeHandle(t,function(){return{props:i,getCanvas:function(){return h.current},getChart:function(){return d.current},getBase64Image:function(){return d.current.toBase64Image()},getElement:function(){return c.current},generateLegend:function(){return d.current&&d.current.generateLegend()},refresh:function(){return d.current&&d.current.update()}}}),_.useEffect(function(){g()}),Im(function(){y()});var w=i.options&&i.options.plugins&&i.options.plugins.title&&i.options.plugins.title.text,E=i.ariaLabel||w,p=n({id:i.id,ref:c,style:u("root"),className:es(i.className,a("root"))},Do.getOtherProps(i),l("root")),f=n({ref:h,width:i.width,height:i.height,role:"img","aria-label":E},l("canvas"));return _.createElement("div",p,_.createElement("canvas",f))}),function(e,t){return e.data===t.data&&e.options===t.options&&e.type===t.type});Mm.displayName="Chart";const ex="_logo1_wzwid_1",tx="_logo2_wzwid_23",nx={logo1:ex,"p-chart":"_p-chart_wzwid_13",logo2:tx},pc=_.memo(function({black:t,small:n}){const r={title:{display:!1},legend:{display:!1,position:"bottom"}},i={datasets:[{data:[200,70,100],backgroundColor:["#e60000","#cca300","#0000ff"],hoverBackgroundColor:["#e60000","#cca300","#0000ff"]}]};return P.jsx(Zl,{to:"/observatorioiftm/",children:P.jsxs("div",{className:nx.logo1,children:[P.jsx(Mm,{style:{marginTop:"-16px"},width:n?"35px":"40px",height:n?"35px":"40px",type:"doughnut",data:i,options:r}),P.jsxs("div",{style:{fontSize:n?"16px":"20px",color:t?"black":"white"},children:[P.jsx("span",{children:"bservatório"}),P.jsxs("span",{children:[" ",P.jsx("strong",{children:"IFTM"})]})]})]})})}),rx=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ka=rx.ReactCurrentDispatcher,ix=()=>_.useReducer(()=>({}))[1],ox=e=>()=>{const t=`Hook "${e}" no possible to using inside useBetween scope.`;throw console.error(t),new Error(t)},is=(e,t)=>Object.is(e,t),hi=(e,t)=>!e||!t||e.length!==t.length||e.some((n,r)=>!is(n,t[r])),lx=()=>typeof window>"u",Td=new Map;let ji=[],rl=0,Pr=[],wn=[],bi=()=>{},Ya=lx(),ax;const sn=()=>{const e=rl++;return ji[e]=ji[e]||{}},$m={useState(e){const t=sn(),n=bi;return t.initialized||(t.state=typeof e=="function"?e():e,t.set=r=>{if(typeof r=="function")return t.set(r(t.state));is(r,t.state)||(t.state=r,n())},t.initialized=!0),[t.state,t.set]},useReducer(e,t,n){const r=sn(),i=bi;return r.initialized||(r.state=n?n(t):t,r.dispatch=o=>{const l=e(r.state,o);is(l,r.state)||(r.state=l,i())},r.initialized=!0),[r.state,r.dispatch]},useEffect(e,t){if(Ya)return;const n=sn();n.initialized?hi(n.deps,t)&&(n.deps=t,Pr.push([n,t,e])):(n.deps=t,n.initialized=!0,Pr.push([n,t,e]))},useLayoutEffect(e,t){if(Ya)return;const n=sn();n.initialized?hi(n.deps,t)&&(n.deps=t,wn.push([n,t,e])):(n.deps=t,n.initialized=!0,wn.push([n,t,e]))},useCallback(e,t){const n=sn();return n.initialized?hi(n.deps,t)&&(n.deps=t,n.fn=e):(n.fn=e,n.deps=t,n.initialized=!0),n.fn},useMemo(e,t){const n=sn();return n.initialized?hi(n.deps,t)&&(n.deps=t,n.state=e()):(n.deps=t,n.state=e(),n.initialized=!0),n.state},useRef(e){const t=sn();return t.initialized||(t.state={current:e},t.initialized=!0),t.state},useImperativeHandle(e,t,n){if(Ya)return;const r=sn();r.initialized?hi(r.deps,n)&&(r.deps=n,wn.push([r,n,()=>{typeof e=="function"?e(t()):e.current=t()}])):(r.deps=n,r.initialized=!0,wn.push([r,n,()=>{typeof e=="function"?e(t()):e.current=t()}]))}};["readContext","useContext","useDebugValue","useResponder","useDeferredValue","useTransition"].forEach(e=>$m[e]=ox(e));const ux=(e,t)=>{const n=[];let r=[],i,o=[],l=!1;t&&t.mock&&(i=t.mock,l=!0);const a=()=>{r.slice().forEach(g=>g())},u=()=>{if(l)return;const g=Ka.current,y=[rl,Pr,wn,ji,bi];let w=!1,E=!0;if(rl=0,Pr=[],wn=[],ji=n,bi=()=>{E?w=!0:u()},Ka.current=$m,i=e(ax),[wn,Pr].forEach(p=>p.forEach(([f,m,S])=>{if(f.deps=m,f.unsub){const v=f.unsub;o=o.filter(C=>C!==v),v()}const T=S();typeof T=="function"?(o.push(T),f.unsub=T):f.unsub=null})),[rl,Pr,wn,ji,bi]=y,Ka.current=g,E=!1,!w){a();return}u()};return{init:()=>u(),get:()=>i,sub:g=>{r.indexOf(g)===-1&&r.push(g)},unsub:g=>{r=r.filter(y=>y!==g)},unsubs:()=>o,mock:g=>{l=!0,i=g,a()},unmock:()=>{l=!1,u()}}},sx=e=>{let t=Td.get(e);return t||(t=ux(e),Td.set(e,t),t.init()),t},hc=e=>{const t=ix();let n=sx(e);return n.sub(t),_.useEffect(()=>(n.sub(t),()=>n.unsub(t)),[n,t]),n.get()},cx=()=>{const[e,t]=_.useState(!1),n=_.useCallback(()=>t(!0),[]),r=_.useCallback(()=>t(!1),[]);return{menu:e,openMenu:n,closeMenu:r}},zm=()=>hc(cx),fx=()=>{const[e,t]=_.useState(0);return{windowHeight:e,setWindowHeight:t}},Um=()=>hc(fx);function dx({page:e,innerRef:t}){const{menu:n,openMenu:r,closeMenu:i}=zm();function o(){return P.jsxs("div",{className:pi.topHeaderWrapper,children:[P.jsx("div",{className:pi.topHeaderLeft,children:P.jsx(pc,{black:!0})}),P.jsx("div",{className:pi.topHeaderRight,children:P.jsx(Zl,{to:"login",children:P.jsx(jl,{icon:"fa-user",label:"Login"})})})]})}function l(){return P.jsxs("div",{className:pi.bottomElementsWrapper,children:[P.jsx("div",{children:P.jsx(jl,{icon:n?"fa-xmark":"fa-bars",onClick:n?i:r})}),P.jsx("h2",{style:{fontWeight:"normal",color:ne.textBlue},children:e})]})}return P.jsxs("header",{ref:t,className:pi.headerWrapper,children:[o(),l()]})}const px="_wrapper_byyki_1",hx="_copyrightBackground_byyki_11",mx="_textStyle_byyki_25",gx="_footerWrapper_byyki_37",Fo={wrapper:px,copyrightBackground:hx,textStyle:mx,footerWrapper:gx},vx=({cursor:e,link:t})=>P.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 117 49",height:49,width:117,shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",style:{cursor:e?"pointer":"default"},onClick:()=>e?window.open(t):null,children:[P.jsx("defs",{children:P.jsx("style",{type:"text/css",children:".a {font: normal bold 11px Open Sans, sans-serif;}"})}),P.jsx("circle",{cx:22,cy:23,r:22,fill:"#fff"}),P.jsx("path",{style:{stroke:"#222",strokeWidth:9,strokeLinecap:"round"},d:"m 22,23 v 13"}),P.jsx("path",{style:{stroke:"#fff",strokeWidth:4,strokeLinejoin:"round"},d:"m 4,43 3,-6 4,3 z"}),P.jsx("circle",{r:4.5,cy:11,cx:22,fill:"#222"}),P.jsx("g",{fill:"#fff",children:P.jsxs("text",{x:47,y:22,children:[P.jsx("tspan",{className:"a",y:18,children:"Acesso à"}),P.jsx("tspan",{className:"a",x:47,y:31,children:"Informação"})]})})]});function yx(){function e(){return P.jsxs("footer",{style:{backgroundColor:ne.backgroundBlue},className:Fo.footerWrapper,children:[P.jsx(pc,{}),P.jsx(vx,{cursor:!0,link:"https://www.gov.br/acessoainformacao/pt-br"})]})}function t(){return P.jsx("span",{className:Fo.copyrightBackground,style:{backgroundColor:ne.backgroundDarkBlue},children:P.jsxs("p",{style:{color:ne.white},className:Fo.textStyle,children:["Lorem ipsum dolor sit amet, consectetur adipisicing elit."," ",P.jsxs(cw,{children:[" ","Ea placeat magnam quisquam perspiciatis quaerat reiciendis"," "]})]})})}return P.jsxs("div",{className:Fo.wrapper,children:[e(),t()]})}const wx=_.memo(function({label:t,icon:n,link:r,data:i}){const[o,l]=_.useState(!1),a=_.useCallback(()=>l(u=>!u),[]);return r?P.jsx(hd,{to:r,children:P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",width:"100%"},children:[P.jsx("div",{className:`fa-solid ${n}`}),P.jsx("p",{children:t})]})}):P.jsxs(P.Fragment,{children:[P.jsxs(dw,{onClick:a,children:[P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:[P.jsx("div",{className:`fa-solid ${n}`}),P.jsx("p",{children:t})]}),P.jsx("div",{className:`fa-solid fa-angle-${o?"up":"down"}`})]}),o&&i.map((u,s)=>P.jsx(hd,{to:u.route,noBorder:!0,bg:ne.gray,children:P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",width:"100%"},children:[P.jsx("div",{className:`fa-solid ${u.icon}`}),P.jsx("p",{children:u.label})]})},s*10))]})});function xx(){const e=[{label:"Home",icon:"fa-home",menus:null,route:"/observatorioiftm/"},{label:"Indicadores",icon:"fa-chart-pie",menus:[{label:"Produção Bibliográfica",icon:"fa-chart-line",menus:null,route:"producaobibliografica"},{label:"Orientações",icon:"fa-chart-column",menus:null,route:"orientacoes"},{label:"Inovação",icon:"fa-chart-area",menus:null,route:"inovacao"},{label:"Formação Acadêmica",icon:"fa-graduation-cap",menus:null,route:"formacaoacademica"},{label:"Temas de Pesquisa",icon:"fa-comments",menus:null,route:"temasdepesquisa"}],route:null},{label:"Docentes",icon:"fa-people-group",menus:[{label:"Consulta por Nome",icon:"fa-id-card",menus:null,route:"consultanome"},{label:"Consulta por Temas de Pesquisa",icon:"fa-book",menus:null,route:"consultatemaspesquisa"},{label:"Produção Científica",icon:"fa-hand-peace",menus:null,route:"producaocientifica"},{label:"Avaliação Pesquisador (Editais PROPI)",icon:"fa-calendar-check",menus:null,route:"avaliacaopesquisador"}],route:null},{label:"Login",icon:"fa-user",menus:null,route:"login"}];function t(){return e.map((n,r)=>{var i;return P.jsx(wx,{label:n.label,icon:n.icon,link:n.route??null,data:((i=n==null?void 0:n.menus)==null?void 0:i.length)>0?n==null?void 0:n.menus:null},r)})}return P.jsxs("div",{style:{display:"flex",flexDirection:"column",background:ne.white,height:"100%",width:"100%",padding:"1rem"},children:[P.jsx("div",{style:{marginBottom:"1.5rem",marginTop:"1rem"},children:P.jsx(pc,{black:!0,small:!0})}),t()]})}const Sx=()=>{const e=_.useRef(),[t,n]=_.useState(0);return{ref:e,height:t,setHeight:n}},Bm=()=>hc(Sx);function Ex(){const{setHeight:e,ref:t}=Bm(),{windowHeight:n}=Um();_.useEffect(()=>{const r=t.current?t.current.offsetHeight:0;e(100*r/window.innerHeight)},[t.offsetHeight,n])}function kx(){const{height:e,ref:t}=Bm(),n=so(),{menu:r,closeMenu:i}=zm();Ex();function o(){return r&&P.jsxs("div",{style:{display:"flex",position:"fixed",width:"100%",zIndex:1},children:[P.jsx("div",{style:{backgroundColor:ne.white,marginTop:`${e}vh`,height:`${100-e}vh`,width:"20%",overflowY:"auto",zIndex:1},children:P.jsx(xx,{})}),P.jsx("div",{style:{background:ne.fadeBackground,width:"80%"},onClick:i})]})}return P.jsxs(P.Fragment,{children:[P.jsx(dx,{innerRef:t,page:n.pathname==="/observatorioiftm/"?"Home":n.pathname}),o(),P.jsx("div",{style:{marginTop:`${e}vh`},children:P.jsx(I0,{})}),P.jsx(yx,{})]})}function Mo({name:e,image:t,openInfo:n,children:r,justifyLeft:i}){return P.jsxs(Om,{gap:1,children:[P.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"2rem"},children:[P.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[t&&P.jsx("img",{style:{height:"2.25rem",objectFit:"contain",marginRight:"1rem"},src:t}),P.jsx("h3",{style:{color:ne.textBlue},children:e})]}),n&&P.jsx(jl,{onClick:n,icon:"fa-circle-question"})]}),P.jsx(cc,{justifyContent:i?"flex-start":null,children:r})]})}const Cx="/observatorioiftm/assets/IFTM-CYfROHWP.png",Px="/observatorioiftm/assets/obs-DiWs6AjT.png",_x="/observatorioiftm/assets/favicon-DBuAxZ48.ico",Tx={IFTM:Cx,OBS:Px,FAVICON:_x},Rx={position:"fixed",top:"0",bottom:"0",left:"0",right:"0",backgroundColor:"rgb(0,0,0, 0.7)",zIndex:"1000"};function Ox({isOpen:e,name:t,setModalOpen:n,justifyLeft:r,children:i}){return e?P.jsxs(P.Fragment,{children:[P.jsx("div",{style:{zIndex:"1001",position:"fixed",top:"50%",left:"50%",display:"flex",justifyContent:"center",alignItems:"center"},children:P.jsxs(Om,{gap:1,position:"fixed",maxWidth:"50rem",children:[P.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"2rem"},children:[P.jsx("div",{style:{display:"flex",alignItems:"center"},children:P.jsx("h3",{style:{color:ne.textBlue},children:t})}),P.jsx(jl,{icon:"fa-xmark",onClick:n})]}),P.jsx(cc,{justifyContent:r?"flex-start":null,children:i})]})}),P.jsx("div",{style:Rx,onClick:n})]}):null}const Nx=_.memo(function(){const[t,n]=_.useState(!1),{OBS:r,IFTM:i}=Tx,o={margin:"2rem 0 1rem 0",display:"flex",flexDirection:"column",justifyContent:"space-evenly",gap:"2rem",width:"85%"},l=` + O Observatório tem como principal objetivo o mapeamento das áreas de pesquisa, perfis de professores e elaboração de indicadores de pesquisa. O Observatório faz parte do Grupo de Pesquisa em Mineração da Dados e Imagens (MiDI) do IFTM Campus Avançado Uberaba Parque Tecnológico. As estatísticas são realizadas usando o currículo Lattes dos professores permanentes da instituição. + Para maiores informações, + `,a=` + O Instituto Federal de Educação, Ciência e Tecnologia do Triângulo Mineiro (IFTM) é composto, atualmente, pelos Campus Campina Verde, Ibiá, Ituiutaba, Paracatu, Patos de Minas, Patrocínio, Uberaba, Uberaba Parque Tecnológico, Uberlândia e Uberlândia Centro e pela Reitoria. A missão do IFTM é ofertar a Educação Profissional e Tecnológica por meio do Ensino, Pesquisa e Extensão. + Para maiores informações, acesse + `,u=` + Os indicadores são ferramentas de gestão que quantificam o desempenho dos docentes do IFTM, sendo essenciais para o seu aprimoramento. + A lista de docentes é extraída do Portal da Transparência do Governo Federal anualmente. + Os dados utilizados para a elaboração dos indicadores são extraídos da Plataforma Lattes mensalmente. + Para saber mais sobre cada indicador, basta clicar no ícone + `;return P.jsxs(P.Fragment,{children:[P.jsx(Ox,{isOpen:t,setModalOpen:()=>n(!t),name:"Sobre Atualização dos Dados",children:P.jsxs("p",{style:{textAlign:"justify"},children:[u," ",P.jsx("div",{style:{color:ne.textBlue},className:"fa-solid fa-circle-question"})," ","(ao lado do título do indicador)."]})}),P.jsxs(Dt,{children:[P.jsx("h1",{style:{fontWeight:600,color:ne.textBlue},children:"Bem-vindo ao Observatório IFTM"}),P.jsx(cc,{children:P.jsxs("div",{style:o,children:[P.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:"2rem"},children:[P.jsx(Mo,{image:r,name:"Observatório",children:P.jsxs("p",{style:{textAlign:"justify"},children:[l," ",P.jsx(md,{to:"sobre",children:"clique aqui"}),"."]})}),P.jsx(Mo,{image:i,name:"IFTM",children:P.jsxs("p",{style:{textAlign:"justify"},children:[a," ",P.jsx(pw,{target:"_blank",href:"https://iftm.edu.br",children:"iftm.edu.br"}),"."]})})]}),P.jsx(Mo,{name:"Atualização dos Dados",openInfo:()=>n(!0),children:P.jsxs("p",{style:{textAlign:"justify"},children:[u," ",P.jsx("div",{style:{color:ne.textBlue},className:"fa-solid fa-circle-question"})," ","(ao lado do título do indicador)."]})}),P.jsx(Mo,{name:"Entre em Contato",children:P.jsxs("p",{style:{textAlign:"justify"},children:[` + Você pode entrar em contato com a equipe de desenvolvimento do Observatório IFTM para relatar problemas, deixar sugestões ou comentários. Basta enviar um email para o líder do projeto. + Para ler as principais dúvidas que surgem sobre esta ferramenta e conferir as respostas de cada pergunta, + `," ",P.jsx(md,{to:"sobre",children:"clique aqui"}),"."]})})]})})]})]})});function Lx(){return P.jsx(Dt,{children:P.jsx("h1",{children:"ProducaoBibliografica"})})}function jx(){return P.jsx(Dt,{children:P.jsx("h1",{children:"Orientacoes"})})}function bx(){return P.jsx(Dt,{children:P.jsx("h1",{children:"Inovacao"})})}function Ax(){return P.jsx(Dt,{children:P.jsx("h1",{children:"FormacaoAcademica"})})}function Ix(){return P.jsx(Dt,{children:P.jsx("h1",{children:"TemasDePesquisa"})})}function Dx(){return P.jsx(Dt,{children:P.jsx("h1",{children:"ConsultaNome"})})}function Fx(){return P.jsx(Dt,{children:P.jsx("h1",{children:"ConsultaTemasPesquisa"})})}function Mx(){return P.jsx(Dt,{children:P.jsx("h1",{children:"ProducaoCientifica"})})}function $x(){return P.jsx(Dt,{children:P.jsx("h1",{children:"AvaliacaoPesquisador"})})}function zx(){return P.jsx(Dt,{children:P.jsx("h1",{children:"Login"})})}function Ux(){return P.jsx("h1",{children:"Sobre"})}const Bx=W0([{path:"/observatorioiftm/",element:P.jsx(kx,{}),children:[{index:!0,element:P.jsx(Nx,{})},{path:"producaobibliografica",element:P.jsx(Lx,{})},{path:"orientacoes",element:P.jsx(jx,{})},{path:"inovacao",element:P.jsx(bx,{})},{path:"formacaoacademica",element:P.jsx(Ax,{})},{path:"temasdepesquisa",element:P.jsx(Ix,{})},{path:"consultanome",element:P.jsx(Dx,{})},{path:"consultatemaspesquisa",element:P.jsx(Fx,{})},{path:"producaocientifica",element:P.jsx(Mx,{})},{path:"avaliacaopesquisador",element:P.jsx($x,{})},{path:"login",element:P.jsx(zx,{})},{path:"sobre",element:P.jsx(Ux,{})}]}]);function Wx(){const{setWindowHeight:e}=Um();return window.addEventListener("resize",function(){e(this.window.innerHeight)}),P.jsx(Z0,{router:Bx})}Ga.createRoot(document.getElementById("root")).render(P.jsx(Rn.StrictMode,{children:P.jsx(Wx,{})})); diff --git a/assets/obs-DiWs6AjT.png b/assets/obs-DiWs6AjT.png new file mode 100644 index 0000000..b94073f Binary files /dev/null and b/assets/obs-DiWs6AjT.png differ diff --git a/index.html b/index.html index 33f091f..ac4c849 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@ referrerpolicy="no-referrer" /> Observatório IFTM - +