diff --git "a/py_backend/static/assets/index-BCz4bkWK.js" "b/py_backend/static/assets/index-BCz4bkWK.js" new file mode 100644--- /dev/null +++ "b/py_backend/static/assets/index-BCz4bkWK.js" @@ -0,0 +1,161 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-4L12dHQs.js","assets/index-B1uKTNcW.css","assets/index-Cj53JezQ.js","assets/useAdmin-LSEnRjVv.js","assets/ExportModal-Qf6Y7VAO.js","assets/ExportModal-BoB3JpqO.css","assets/index-C85X4vtS.css","assets/AdminPage-a1ONalH9.js","assets/AdminPage-VgSjQ50W.css","assets/index-D2ncrm5K.js","assets/index-tDgjKyWF.css"])))=>i.map(i=>d[i]); +function $g(e,n){for(var i=0;io[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=i(s);fetch(s.href,u)}})();var _P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zc={exports:{}},La={},Qc={exports:{}},We={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var am;function I1(){if(am)return We;am=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.iterator;function m(k){return k===null||typeof k!="object"?null:(k=C&&k[C]||k["@@iterator"],typeof k=="function"?k:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,_={};function N(k,H,oe){this.props=k,this.context=H,this.refs=_,this.updater=oe||x}N.prototype.isReactComponent={},N.prototype.setState=function(k,H){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,H,"setState")},N.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function P(){}P.prototype=N.prototype;function L(k,H,oe){this.props=k,this.context=H,this.refs=_,this.updater=oe||x}var $=L.prototype=new P;$.constructor=L,E($,N.prototype),$.isPureReactComponent=!0;var q=Array.isArray,Z=Object.prototype.hasOwnProperty,fe={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function K(k,H,oe){var Se,se={},re=null,ee=null;if(H!=null)for(Se in H.ref!==void 0&&(ee=H.ref),H.key!==void 0&&(re=""+H.key),H)Z.call(H,Se)&&!O.hasOwnProperty(Se)&&(se[Se]=H[Se]);var Q=arguments.length-2;if(Q===1)se.children=oe;else if(1>>1,oe=G[H];if(0>>1;Hs(re,k))ees(Q,re)?(G[H]=Q,G[ee]=k,H=ee):(G[H]=re,G[se]=k,H=se);else if(ees(Q,k))G[H]=Q,G[ee]=k,H=ee;else break e}}return ue}function s(G,ue){var k=G.sortIndex-ue.sortIndex;return k!==0?k:G.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],y=[],w=1,C=null,m=3,x=!1,E=!1,_=!1,N=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(G){for(var ue=i(y);ue!==null;){if(ue.callback===null)o(y);else if(ue.startTime<=G)o(y),ue.sortIndex=ue.expirationTime,n(p,ue);else break;ue=i(y)}}function q(G){if(_=!1,$(G),!E)if(i(p)!==null)E=!0,Ce(Z);else{var ue=i(y);ue!==null&&be(q,ue.startTime-G)}}function Z(G,ue){E=!1,_&&(_=!1,P(K),K=-1),x=!0;var k=m;try{for($(ue),C=i(p);C!==null&&(!(C.expirationTime>ue)||G&&!I());){var H=C.callback;if(typeof H=="function"){C.callback=null,m=C.priorityLevel;var oe=H(C.expirationTime<=ue);ue=e.unstable_now(),typeof oe=="function"?C.callback=oe:C===i(p)&&o(p),$(ue)}else o(p);C=i(p)}if(C!==null)var Se=!0;else{var se=i(y);se!==null&&be(q,se.startTime-ue),Se=!1}return Se}finally{C=null,m=k,x=!1}}var fe=!1,O=null,K=-1,ce=5,de=-1;function I(){return!(e.unstable_now()-deG||125H?(G.sortIndex=k,n(y,G),i(p)===null&&G===i(y)&&(_?(P(K),K=-1):_=!0,be(q,k-H))):(G.sortIndex=oe,n(p,G),E||x||(E=!0,Ce(Z))),G},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(G){var ue=m;return function(){var k=m;m=ue;try{return G.apply(this,arguments)}finally{m=k}}}}(Xc)),Xc}var dm;function B1(){return dm||(dm=1,Yc.exports=z1()),Yc.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fm;function U1(){if(fm)return _n;fm=1;var e=Yd(),n=B1();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,a=1;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,y=/^[: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]*$/,w={},C={};function m(t){return p.call(C,t)?!0:p.call(w,t)?!1:y.test(t)?C[t]=!0:(w[t]=!0,!1)}function x(t,r,a,l){if(a!==null&&a.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function E(t,r,a,l){if(r===null||typeof r>"u"||x(t,r,a,l))return!0;if(l)return!1;if(a!==null)switch(a.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function _(t,r,a,l,c,h,S){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=a,this.propertyName=t,this.type=r,this.sanitizeURL=h,this.removeEmptyString=S}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){N[t]=new _(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];N[r]=new _(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){N[t]=new _(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){N[t]=new _(t,2,!1,t,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(t){N[t]=new _(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){N[t]=new _(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){N[t]=new _(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){N[t]=new _(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){N[t]=new _(t,5,!1,t.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function L(t){return t[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(t){var r=t.replace(P,L);N[r]=new _(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(P,L);N[r]=new _(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(P,L);N[r]=new _(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){N[t]=new _(t,1,!1,t.toLowerCase(),null,!1,!1)}),N.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){N[t]=new _(t,1,!1,t.toLowerCase(),null,!0,!0)});function $(t,r,a,l){var c=N.hasOwnProperty(r)?N[r]:null;(c!==null?c.type!==0:l||!(2b||c[S]!==h[b]){var M=` +`+c[S].replace(" at new "," at ");return t.displayName&&M.includes("")&&(M=M.replace("",t.displayName)),M}while(1<=S&&0<=b);break}}}finally{Se=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?oe(t):""}function re(t){switch(t.tag){case 5:return oe(t.type);case 16:return oe("Lazy");case 13:return oe("Suspense");case 19:return oe("SuspenseList");case 0:case 2:case 15:return t=se(t.type,!1),t;case 11:return t=se(t.type.render,!1),t;case 1:return t=se(t.type,!0),t;default:return""}}function ee(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case fe:return"Portal";case ce:return"Profiler";case K:return"StrictMode";case W:return"Suspense";case ne:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case I:return(t.displayName||"Context")+".Consumer";case de:return(t._context.displayName||"Context")+".Provider";case U:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case he:return r=t.displayName||null,r!==null?r:ee(t.type)||"Memo";case Ce:r=t._payload,t=t._init;try{return ee(t(r))}catch{}}return null}function Q(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(r);case 8:return r===K?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Y(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function nt(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function tn(t){var r=nt(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,h=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(S){l=""+S,h.call(this,S)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Wt(t){t._valueTracker||(t._valueTracker=tn(t))}function st(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),l="";return t&&(l=nt(t)?t.checked?"true":"false":t.value),t=l,t!==a?(r.setValue(t),!0):!1}function St(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ut(t,r){var a=r.checked;return k({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function wt(t,r){var a=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;a=Y(r.value!=null?r.value:a),t._wrapperState={initialChecked:l,initialValue:a,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function ht(t,r){r=r.checked,r!=null&&$(t,"checked",r,!1)}function pt(t,r){ht(t,r);var a=Y(r.value),l=r.type;if(a!=null)l==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(l==="submit"||l==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?nn(t,r.type,a):r.hasOwnProperty("defaultValue")&&nn(t,r.type,Y(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Nt(t,r,a){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,a||r===t.value||(t.value=r),t.defaultValue=r}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function nn(t,r,a){(r!=="number"||St(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var jn=Array.isArray;function un(t,r,a,l){if(t=t.options,r){r={};for(var c=0;c"+r.valueOf().toString()+"",r=ct.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function Qt(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var mt={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},Kt=["Webkit","ms","Moz","O"];Object.keys(mt).forEach(function(t){Kt.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),mt[r]=mt[t]})});function fn(t,r,a){return r==null||typeof r=="boolean"||r===""?"":a||typeof r!="number"||r===0||mt.hasOwnProperty(t)&&mt[t]?(""+r).trim():r+"px"}function Ei(t,r){t=t.style;for(var a in r)if(r.hasOwnProperty(a)){var l=a.indexOf("--")===0,c=fn(a,r[a],l);a==="float"&&(a="cssFloat"),l?t.setProperty(a,c):t[a]=c}}var Ni=k({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 _r(t,r){if(r){if(Ni[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function br(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 Er=null;function zn(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Nr=null,hn=null,rn=null;function ki(t){if(t=va(t)){if(typeof Nr!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Ls(r),Nr(t.stateNode,t.type,r))}}function Ti(t){hn?rn?rn.push(t):rn=[t]:hn=t}function Yr(){if(hn){var t=hn,r=rn;if(rn=hn=null,ki(t),r)for(t=0;t>>=0,t===0?32:31-(ur(t)/Pr|0)|0}var oo=64,ao=4194304;function Mr(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function so(t,r){var a=t.pendingLanes;if(a===0)return 0;var l=0,c=t.suspendedLanes,h=t.pingedLanes,S=a&268435455;if(S!==0){var b=S&~c;b!==0?l=Mr(b):(h&=S,h!==0&&(l=Mr(h)))}else S=a&~c,S!==0?l=Mr(S):h!==0&&(l=Mr(h));if(l===0)return 0;if(r!==0&&r!==l&&(r&c)===0&&(c=l&-l,h=r&-r,c>=h||c===16&&(h&4194240)!==0))return r;if((l&4)!==0&&(l|=a&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=l;0a;a++)r.push(t);return r}function Mi(t,r,a){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Qe(r),t[r]=a}function wu(t,r){var a=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var l=t.eventTimes;for(t=t.expirationTimes;0=la),Xf=" ",Jf=!1;function eh(t,r){switch(t){case"keyup":return My.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function th(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fo=!1;function Dy(t,r){switch(t){case"compositionend":return th(r);case"keypress":return r.which!==32?null:(Jf=!0,Xf);case"textInput":return t=r.data,t===Xf&&Jf?null:t;default:return null}}function Oy(t,r){if(fo)return t==="compositionend"||!Tu&&eh(t,r)?(t=qe(),dt=Re=pe=null,fo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:a,offset:r-t};t=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=lh(a)}}function ch(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?ch(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function dh(){for(var t=window,r=St();r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=St(t.document)}return r}function Mu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Hy(t){var r=dh(),a=t.focusedElem,l=t.selectionRange;if(r!==a&&a&&a.ownerDocument&&ch(a.ownerDocument.documentElement,a)){if(l!==null&&Mu(a)){if(r=l.start,t=l.end,t===void 0&&(t=r),"selectionStart"in a)a.selectionStart=r,a.selectionEnd=Math.min(t,a.value.length);else if(t=(r=a.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var c=a.textContent.length,h=Math.min(l.start,c);l=l.end===void 0?h:Math.min(l.end,c),!t.extend&&h>l&&(c=l,l=h,h=c),c=uh(a,h);var S=uh(a,l);c&&S&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==S.node||t.focusOffset!==S.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),h>l?(t.addRange(r),t.extend(S.node,S.offset)):(r.setEnd(S.node,S.offset),t.addRange(r)))}}for(r=[],t=a;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,ho=null,Lu=null,fa=null,Du=!1;function fh(t,r,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Du||ho==null||ho!==St(l)||(l=ho,"selectionStart"in l&&Mu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),fa&&da(fa,l)||(fa=l,l=js(Lu,"onSelect"),0yo||(t.current=qu[yo],qu[yo]=null,yo--)}function gt(t,r){yo++,qu[yo]=t.current,t.current=r}var ai={},Yt=oi(ai),yn=oi(!1),Ri=ai;function wo(t,r){var a=t.type.contextTypes;if(!a)return ai;var l=t.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var c={},h;for(h in a)c[h]=r[h];return l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function wn(t){return t=t.childContextTypes,t!=null}function Ds(){yt(yn),yt(Yt)}function kh(t,r,a){if(Yt.current!==ai)throw Error(i(168));gt(Yt,r),gt(yn,a)}function Th(t,r,a){var l=t.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return a;l=l.getChildContext();for(var c in l)if(!(c in r))throw Error(i(108,Q(t)||"Unknown",c));return k({},a,l)}function Os(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ai,Ri=Yt.current,gt(Yt,t),gt(yn,yn.current),!0}function jh(t,r,a){var l=t.stateNode;if(!l)throw Error(i(169));a?(t=Th(t,r,Ri),l.__reactInternalMemoizedMergedChildContext=t,yt(yn),yt(Yt),gt(Yt,t)):yt(yn),gt(yn,a)}var Rr=null,Rs=!1,Wu=!1;function Ph(t){Rr===null?Rr=[t]:Rr.push(t)}function t1(t){Rs=!0,Ph(t)}function si(){if(!Wu&&Rr!==null){Wu=!0;var t=0,r=rt;try{var a=Rr;for(rt=1;t>=S,c-=S,Ir=1<<32-Qe(r)+c|a<Ie?(Ut=De,De=null):Ut=De.sibling;var tt=J(A,De,F[Ie],ae);if(tt===null){De===null&&(De=Ut);break}t&&De&&tt.alternate===null&&r(A,De),D=h(tt,D,Ie),Le===null?ke=tt:Le.sibling=tt,Le=tt,De=Ut}if(Ie===F.length)return a(A,De),xt&&Ai(A,Ie),ke;if(De===null){for(;IeIe?(Ut=De,De=null):Ut=De.sibling;var gi=J(A,De,tt.value,ae);if(gi===null){De===null&&(De=Ut);break}t&&De&&gi.alternate===null&&r(A,De),D=h(gi,D,Ie),Le===null?ke=gi:Le.sibling=gi,Le=gi,De=Ut}if(tt.done)return a(A,De),xt&&Ai(A,Ie),ke;if(De===null){for(;!tt.done;Ie++,tt=F.next())tt=ie(A,tt.value,ae),tt!==null&&(D=h(tt,D,Ie),Le===null?ke=tt:Le.sibling=tt,Le=tt);return xt&&Ai(A,Ie),ke}for(De=l(A,De);!tt.done;Ie++,tt=F.next())tt=me(De,A,Ie,tt.value,ae),tt!==null&&(t&&tt.alternate!==null&&De.delete(tt.key===null?Ie:tt.key),D=h(tt,D,Ie),Le===null?ke=tt:Le.sibling=tt,Le=tt);return t&&De.forEach(function(R1){return r(A,R1)}),xt&&Ai(A,Ie),ke}function Pt(A,D,F,ae){if(typeof F=="object"&&F!==null&&F.type===O&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case Z:e:{for(var ke=F.key,Le=D;Le!==null;){if(Le.key===ke){if(ke=F.type,ke===O){if(Le.tag===7){a(A,Le.sibling),D=c(Le,F.props.children),D.return=A,A=D;break e}}else if(Le.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===Ce&&Vh(ke)===Le.type){a(A,Le.sibling),D=c(Le,F.props),D.ref=ya(A,Le,F),D.return=A,A=D;break e}a(A,Le);break}else r(A,Le);Le=Le.sibling}F.type===O?(D=qi(F.props.children,A.mode,ae,F.key),D.return=A,A=D):(ae=ul(F.type,F.key,F.props,null,A.mode,ae),ae.ref=ya(A,D,F),ae.return=A,A=ae)}return S(A);case fe:e:{for(Le=F.key;D!==null;){if(D.key===Le)if(D.tag===4&&D.stateNode.containerInfo===F.containerInfo&&D.stateNode.implementation===F.implementation){a(A,D.sibling),D=c(D,F.children||[]),D.return=A,A=D;break e}else{a(A,D);break}else r(A,D);D=D.sibling}D=Hc(F,A.mode,ae),D.return=A,A=D}return S(A);case Ce:return Le=F._init,Pt(A,D,Le(F._payload),ae)}if(jn(F))return _e(A,D,F,ae);if(ue(F))return Ne(A,D,F,ae);Vs(A,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,D!==null&&D.tag===6?(a(A,D.sibling),D=c(D,F),D.return=A,A=D):(a(A,D),D=Uc(F,A.mode,ae),D.return=A,A=D),S(A)):a(A,D)}return Pt}var Eo=qh(!0),Wh=qh(!1),wa={},pr=oi(wa),xa=oi(wa),Ca=oi(wa);function $i(t){if(t===wa)throw Error(i(174));return t}function ac(t,r){switch(gt(Ca,r),gt(xa,t),gt(pr,wa),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Qn(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Qn(r,t)}yt(pr),gt(pr,r)}function No(){yt(pr),yt(xa),yt(Ca)}function Gh(t){$i(Ca.current);var r=$i(pr.current),a=Qn(r,t.type);r!==a&&(gt(xa,t),gt(pr,a))}function sc(t){xa.current===t&&(yt(pr),yt(xa))}var bt=oi(0);function qs(t){for(var r=t;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var lc=[];function uc(){for(var t=0;ta?a:4,t(!0);var l=cc.transition;cc.transition={};try{t(!1),r()}finally{rt=a,cc.transition=l}}function dp(){return qn().memoizedState}function o1(t,r,a){var l=hi(t);if(a={lane:l,action:a,hasEagerState:!1,eagerState:null,next:null},fp(t))hp(r,a);else if(a=Ih(t,r,a,l),a!==null){var c=sn();ir(a,t,l,c),pp(a,r,l)}}function a1(t,r,a){var l=hi(t),c={lane:l,action:a,hasEagerState:!1,eagerState:null,next:null};if(fp(t))hp(r,c);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var S=r.lastRenderedState,b=h(S,a);if(c.hasEagerState=!0,c.eagerState=b,Jn(b,S)){var M=r.interleaved;M===null?(c.next=c,nc(r)):(c.next=M.next,M.next=c),r.interleaved=c;return}}catch{}finally{}a=Ih(t,r,c,l),a!==null&&(c=sn(),ir(a,t,l,c),pp(a,r,l))}}function fp(t){var r=t.alternate;return t===Et||r!==null&&r===Et}function hp(t,r){Sa=Gs=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function pp(t,r,a){if((a&4194240)!==0){var l=r.lanes;l&=t.pendingLanes,a|=l,r.lanes=a,ta(t,a)}}var Ks={readContext:Vn,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useInsertionEffect:Xt,useLayoutEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useMutableSource:Xt,useSyncExternalStore:Xt,useId:Xt,unstable_isNewReconciler:!1},s1={readContext:Vn,useCallback:function(t,r){return mr().memoizedState=[t,r===void 0?null:r],t},useContext:Vn,useEffect:rp,useImperativeHandle:function(t,r,a){return a=a!=null?a.concat([t]):null,Zs(4194308,4,ap.bind(null,r,t),a)},useLayoutEffect:function(t,r){return Zs(4194308,4,t,r)},useInsertionEffect:function(t,r){return Zs(4,2,t,r)},useMemo:function(t,r){var a=mr();return r=r===void 0?null:r,t=t(),a.memoizedState=[t,r],t},useReducer:function(t,r,a){var l=mr();return r=a!==void 0?a(r):r,l.memoizedState=l.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=o1.bind(null,Et,t),[l.memoizedState,t]},useRef:function(t){var r=mr();return t={current:t},r.memoizedState=t},useState:tp,useDebugValue:vc,useDeferredValue:function(t){return mr().memoizedState=t},useTransition:function(){var t=tp(!1),r=t[0];return t=i1.bind(null,t[1]),mr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,a){var l=Et,c=mr();if(xt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=r(),Bt===null)throw Error(i(349));(zi&30)!==0||Kh(l,r,a)}c.memoizedState=a;var h={value:a,getSnapshot:r};return c.queue=h,rp(Xh.bind(null,l,h,t),[t]),l.flags|=2048,Ea(9,Yh.bind(null,l,h,a,r),void 0,null),a},useId:function(){var t=mr(),r=Bt.identifierPrefix;if(xt){var a=Ar,l=Ir;a=(l&~(1<<32-Qe(l)-1)).toString(32)+a,r=":"+r+"R"+a,a=_a++,0<\/script>",t=t.removeChild(t.firstChild)):typeof l.is=="string"?t=S.createElement(a,{is:l.is}):(t=S.createElement(a),a==="select"&&(S=t,l.multiple?S.multiple=!0:l.size&&(S.size=l.size))):t=S.createElementNS(t,a),t[hr]=r,t[ga]=l,Mp(t,r,!1,!1),r.stateNode=t;e:{switch(S=br(a,l),a){case"dialog":vt("cancel",t),vt("close",t),c=l;break;case"iframe":case"object":case"embed":vt("load",t),c=l;break;case"video":case"audio":for(c=0;cPo&&(r.flags|=128,l=!0,Na(h,!1),r.lanes=4194304)}else{if(!l)if(t=qs(S),t!==null){if(r.flags|=128,l=!0,a=t.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),Na(h,!0),h.tail===null&&h.tailMode==="hidden"&&!S.alternate&&!xt)return Jt(r),null}else 2*Ve()-h.renderingStartTime>Po&&a!==1073741824&&(r.flags|=128,l=!0,Na(h,!1),r.lanes=4194304);h.isBackwards?(S.sibling=r.child,r.child=S):(a=h.last,a!==null?a.sibling=S:r.child=S,h.last=S)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=Ve(),r.sibling=null,a=bt.current,gt(bt,l?a&1|2:a&1),r):(Jt(r),null);case 22:case 23:return $c(),l=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?(Rn&1073741824)!==0&&(Jt(r),r.subtreeFlags&6&&(r.flags|=8192)):Jt(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function m1(t,r){switch(Zu(r),r.tag){case 1:return wn(r.type)&&Ds(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return No(),yt(yn),yt(Yt),uc(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return sc(r),null;case 13:if(yt(bt),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));So()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return yt(bt),null;case 4:return No(),null;case 10:return ec(r.type._context),null;case 22:case 23:return $c(),null;case 24:return null;default:return null}}var Js=!1,en=!1,g1=typeof WeakSet=="function"?WeakSet:Set,xe=null;function To(t,r){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(l){kt(t,r,l)}else a.current=null}function kc(t,r,a){try{a()}catch(l){kt(t,r,l)}}var Op=!1;function v1(t,r){if($u=co,t=dh(),Mu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var c=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var S=0,b=-1,M=-1,B=0,te=0,ie=t,J=null;t:for(;;){for(var me;ie!==a||c!==0&&ie.nodeType!==3||(b=S+c),ie!==h||l!==0&&ie.nodeType!==3||(M=S+l),ie.nodeType===3&&(S+=ie.nodeValue.length),(me=ie.firstChild)!==null;)J=ie,ie=me;for(;;){if(ie===t)break t;if(J===a&&++B===c&&(b=S),J===h&&++te===l&&(M=S),(me=ie.nextSibling)!==null)break;ie=J,J=ie.parentNode}ie=me}a=b===-1||M===-1?null:{start:b,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(zu={focusedElem:t,selectionRange:a},co=!1,xe=r;xe!==null;)if(r=xe,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,xe=t;else for(;xe!==null;){r=xe;try{var _e=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var Ne=_e.memoizedProps,Pt=_e.memoizedState,A=r.stateNode,D=A.getSnapshotBeforeUpdate(r.elementType===r.type?Ne:tr(r.type,Ne),Pt);A.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var F=r.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ae){kt(r,r.return,ae)}if(t=r.sibling,t!==null){t.return=r.return,xe=t;break}xe=r.return}return _e=Op,Op=!1,_e}function ka(t,r,a){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&t)===t){var h=c.destroy;c.destroy=void 0,h!==void 0&&kc(r,a,h)}c=c.next}while(c!==l)}}function el(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&t)===t){var l=a.create;a.destroy=l()}a=a.next}while(a!==r)}}function Tc(t){var r=t.ref;if(r!==null){var a=t.stateNode;switch(t.tag){case 5:t=a;break;default:t=a}typeof r=="function"?r(t):r.current=t}}function Rp(t){var r=t.alternate;r!==null&&(t.alternate=null,Rp(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[hr],delete r[ga],delete r[Vu],delete r[Jy],delete r[e1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Ip(t){return t.tag===5||t.tag===3||t.tag===4}function Ap(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ip(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jc(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.nodeType===8?a.parentNode.insertBefore(t,r):a.insertBefore(t,r):(a.nodeType===8?(r=a.parentNode,r.insertBefore(t,a)):(r=a,r.appendChild(t)),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Ms));else if(l!==4&&(t=t.child,t!==null))for(jc(t,r,a),t=t.sibling;t!==null;)jc(t,r,a),t=t.sibling}function Pc(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(l!==4&&(t=t.child,t!==null))for(Pc(t,r,a),t=t.sibling;t!==null;)Pc(t,r,a),t=t.sibling}var Gt=null,nr=!1;function ci(t,r,a){for(a=a.child;a!==null;)Fp(t,r,a),a=a.sibling}function Fp(t,r,a){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(it,a)}catch{}switch(a.tag){case 5:en||To(a,r);case 6:var l=Gt,c=nr;Gt=null,ci(t,r,a),Gt=l,nr=c,Gt!==null&&(nr?(t=Gt,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):Gt.removeChild(a.stateNode));break;case 18:Gt!==null&&(nr?(t=Gt,a=a.stateNode,t.nodeType===8?Hu(t.parentNode,a):t.nodeType===1&&Hu(t,a),dr(t)):Hu(Gt,a.stateNode));break;case 4:l=Gt,c=nr,Gt=a.stateNode.containerInfo,nr=!0,ci(t,r,a),Gt=l,nr=c;break;case 0:case 11:case 14:case 15:if(!en&&(l=a.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var h=c,S=h.destroy;h=h.tag,S!==void 0&&((h&2)!==0||(h&4)!==0)&&kc(a,r,S),c=c.next}while(c!==l)}ci(t,r,a);break;case 1:if(!en&&(To(a,r),l=a.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=a.memoizedProps,l.state=a.memoizedState,l.componentWillUnmount()}catch(b){kt(a,r,b)}ci(t,r,a);break;case 21:ci(t,r,a);break;case 22:a.mode&1?(en=(l=en)||a.memoizedState!==null,ci(t,r,a),en=l):ci(t,r,a);break;default:ci(t,r,a)}}function $p(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new g1),r.forEach(function(l){var c=N1.bind(null,t,l);a.has(l)||(a.add(l),l.then(c,c))})}}function rr(t,r){var a=r.deletions;if(a!==null)for(var l=0;lc&&(c=S),l&=~h}if(l=c,l=Ve()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*w1(l/1960))-l,10t?16:t,fi===null)var l=!1;else{if(t=fi,fi=null,ol=0,(Ye&6)!==0)throw Error(i(331));var c=Ye;for(Ye|=4,xe=t.current;xe!==null;){var h=xe,S=h.child;if((xe.flags&16)!==0){var b=h.deletions;if(b!==null){for(var M=0;MVe()-Dc?Hi(t,0):Lc|=a),Sn(t,r)}function Xp(t,r){r===0&&((t.mode&1)===0?r=1:(r=ao,ao<<=1,(ao&130023424)===0&&(ao=4194304)));var a=sn();t=Fr(t,r),t!==null&&(Mi(t,r,a),Sn(t,a))}function E1(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),Xp(t,a)}function N1(t,r){var a=0;switch(t.tag){case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(a=c.retryLane);break;case 19:l=t.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(r),Xp(t,a)}var Jp;Jp=function(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps||yn.current)xn=!0;else{if((t.lanes&a)===0&&(r.flags&128)===0)return xn=!1,h1(t,r,a);xn=(t.flags&131072)!==0}else xn=!1,xt&&(r.flags&1048576)!==0&&Mh(r,As,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;Xs(t,r),t=r.pendingProps;var c=wo(r,Yt.current);bo(r,a),c=fc(null,r,l,t,c,a);var h=hc();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,wn(l)?(h=!0,Os(r)):h=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,rc(r),c.updater=Hs,r.stateNode=c,c._reactInternals=r,oc(r,l,t,a),r=Cc(null,r,l,!0,h,a)):(r.tag=0,xt&&h&&Gu(r),an(null,r,c,a),r=r.child),r;case 16:l=r.elementType;e:{switch(Xs(t,r),t=r.pendingProps,c=l._init,l=c(l._payload),r.type=l,c=r.tag=T1(l),t=tr(l,t),c){case 0:r=xc(null,r,l,t,a);break e;case 1:r=Ep(null,r,l,t,a);break e;case 11:r=xp(null,r,l,t,a);break e;case 14:r=Cp(null,r,l,tr(l.type,t),a);break e}throw Error(i(306,l,""))}return r;case 0:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:tr(l,c),xc(t,r,l,c,a);case 1:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:tr(l,c),Ep(t,r,l,c,a);case 3:e:{if(Np(r),t===null)throw Error(i(387));l=r.pendingProps,h=r.memoizedState,c=h.element,Ah(t,r),Us(r,l,null,a);var S=r.memoizedState;if(l=S.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){c=ko(Error(i(423)),r),r=kp(t,r,l,a,c);break e}else if(l!==c){c=ko(Error(i(424)),r),r=kp(t,r,l,a,c);break e}else for(On=ii(r.stateNode.containerInfo.firstChild),Dn=r,xt=!0,er=null,a=Wh(r,null,l,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(So(),l===c){r=zr(t,r,a);break e}an(t,r,l,a)}r=r.child}return r;case 5:return Gh(r),t===null&&Ku(r),l=r.type,c=r.pendingProps,h=t!==null?t.memoizedProps:null,S=c.children,Bu(l,c)?S=null:h!==null&&Bu(l,h)&&(r.flags|=32),bp(t,r),an(t,r,S,a),r.child;case 6:return t===null&&Ku(r),null;case 13:return Tp(t,r,a);case 4:return ac(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=Eo(r,null,l,a):an(t,r,l,a),r.child;case 11:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:tr(l,c),xp(t,r,l,c,a);case 7:return an(t,r,r.pendingProps,a),r.child;case 8:return an(t,r,r.pendingProps.children,a),r.child;case 12:return an(t,r,r.pendingProps.children,a),r.child;case 10:e:{if(l=r.type._context,c=r.pendingProps,h=r.memoizedProps,S=c.value,gt($s,l._currentValue),l._currentValue=S,h!==null)if(Jn(h.value,S)){if(h.children===c.children&&!yn.current){r=zr(t,r,a);break e}}else for(h=r.child,h!==null&&(h.return=r);h!==null;){var b=h.dependencies;if(b!==null){S=h.child;for(var M=b.firstContext;M!==null;){if(M.context===l){if(h.tag===1){M=$r(-1,a&-a),M.tag=2;var B=h.updateQueue;if(B!==null){B=B.shared;var te=B.pending;te===null?M.next=M:(M.next=te.next,te.next=M),B.pending=M}}h.lanes|=a,M=h.alternate,M!==null&&(M.lanes|=a),tc(h.return,a,r),b.lanes|=a;break}M=M.next}}else if(h.tag===10)S=h.type===r.type?null:h.child;else if(h.tag===18){if(S=h.return,S===null)throw Error(i(341));S.lanes|=a,b=S.alternate,b!==null&&(b.lanes|=a),tc(S,a,r),S=h.sibling}else S=h.child;if(S!==null)S.return=h;else for(S=h;S!==null;){if(S===r){S=null;break}if(h=S.sibling,h!==null){h.return=S.return,S=h;break}S=S.return}h=S}an(t,r,c.children,a),r=r.child}return r;case 9:return c=r.type,l=r.pendingProps.children,bo(r,a),c=Vn(c),l=l(c),r.flags|=1,an(t,r,l,a),r.child;case 14:return l=r.type,c=tr(l,r.pendingProps),c=tr(l.type,c),Cp(t,r,l,c,a);case 15:return Sp(t,r,r.type,r.pendingProps,a);case 17:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:tr(l,c),Xs(t,r),r.tag=1,wn(l)?(t=!0,Os(r)):t=!1,bo(r,a),Uh(r,l,c),oc(r,l,c,a),Cc(null,r,l,!0,t,a);case 19:return Pp(t,r,a);case 22:return _p(t,r,a)}throw Error(i(156,r.tag))};function em(t,r){return Je(t,r)}function k1(t,r,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(t,r,a,l){return new k1(t,r,a,l)}function Bc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function T1(t){if(typeof t=="function")return Bc(t)?1:0;if(t!=null){if(t=t.$$typeof,t===U)return 11;if(t===he)return 14}return 2}function mi(t,r){var a=t.alternate;return a===null?(a=Gn(t.tag,r,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=r,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,r=t.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function ul(t,r,a,l,c,h){var S=2;if(l=t,typeof t=="function")Bc(t)&&(S=1);else if(typeof t=="string")S=5;else e:switch(t){case O:return qi(a.children,c,h,r);case K:S=8,c|=8;break;case ce:return t=Gn(12,a,r,c|2),t.elementType=ce,t.lanes=h,t;case W:return t=Gn(13,a,r,c),t.elementType=W,t.lanes=h,t;case ne:return t=Gn(19,a,r,c),t.elementType=ne,t.lanes=h,t;case be:return cl(a,c,h,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case de:S=10;break e;case I:S=9;break e;case U:S=11;break e;case he:S=14;break e;case Ce:S=16,l=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Gn(S,a,r,c),r.elementType=t,r.type=l,r.lanes=h,r}function qi(t,r,a,l){return t=Gn(7,t,l,r),t.lanes=a,t}function cl(t,r,a,l){return t=Gn(22,t,l,r),t.elementType=be,t.lanes=a,t.stateNode={isHidden:!1},t}function Uc(t,r,a){return t=Gn(6,t,null,r),t.lanes=a,t}function Hc(t,r,a){return r=Gn(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function j1(t,r,a,l,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ea(0),this.expirationTimes=ea(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ea(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Vc(t,r,a,l,c,h,S,b,M){return t=new j1(t,r,a,b,M),r===1?(r=1,h===!0&&(r|=8)):r=0,h=Gn(3,null,null,r),t.current=h,h.stateNode=t,h.memoizedState={element:l,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},rc(h),t}function P1(t,r,a){var l=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Kc.exports=U1(),Kc.exports}var pm;function H1(){if(pm)return vl;pm=1;var e=Bg();return vl.createRoot=e.createRoot,vl.hydrateRoot=e.hydrateRoot,vl}var V1=H1();const q1="modulepreload",W1=function(e){return"/"+e},mm={},Zn=function(n,i,o){let s=Promise.resolve();if(i&&i.length>0){let p=function(y){return Promise.all(y.map(w=>Promise.resolve(w).then(C=>({status:"fulfilled",value:C}),C=>({status:"rejected",reason:C}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");s=p(i.map(y=>{if(y=W1(y),y in mm)return;mm[y]=!0;const w=y.endsWith(".css"),C=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${C}`))return;const m=document.createElement("link");if(m.rel=w?"stylesheet":q1,w||(m.as="script"),m.crossOrigin="",m.href=y,f&&m.setAttribute("nonce",f),document.head.appendChild(m),w)return new Promise((x,E)=>{m.addEventListener("load",x),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return s.then(d=>{for(const f of d||[])f.status==="rejected"&&u(f.reason);return n().catch(u)})};var Xd=Bg();const G1=zg(Xd),Z1=$g({__proto__:null,default:G1},[Xd]);/** + * @remix-run/router v1.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var n=1;n"u")throw new Error(n)}function Ho(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function K1(){return Math.random().toString(36).substr(2,8)}function vm(e,n){return{usr:e.state,key:e.key,idx:n}}function Ka(e,n,i,o){return i===void 0&&(i=null),Ct({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?_i(n):n,{state:i,key:n&&n.key||o||K1()})}function Ji(e){let{pathname:n="/",search:i="",hash:o=""}=e;return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function _i(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substr(i),e=e.substr(0,i));let o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),e&&(n.pathname=e)}return n}function Y1(e,n,i,o){o===void 0&&(o={});let{window:s=document.defaultView,v5Compat:u=!1}=o,d=s.history,f=Ot.Pop,p=null,y=w();y==null&&(y=0,d.replaceState(Ct({},d.state,{idx:y}),""));function w(){return(d.state||{idx:null}).idx}function C(){f=Ot.Pop;let N=w(),P=N==null?null:N-y;y=N,p&&p({action:f,location:_.location,delta:P})}function m(N,P){f=Ot.Push;let L=Ka(_.location,N,P);y=w()+1;let $=vm(L,y),q=_.createHref(L);try{d.pushState($,"",q)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;s.location.assign(q)}u&&p&&p({action:f,location:_.location,delta:1})}function x(N,P){f=Ot.Replace;let L=Ka(_.location,N,P);y=w();let $=vm(L,y),q=_.createHref(L);d.replaceState($,"",q),u&&p&&p({action:f,location:_.location,delta:0})}function E(N){let P=s.location.origin!=="null"?s.location.origin:s.location.href,L=typeof N=="string"?N:Ji(N);return L=L.replace(/ $/,"%20"),Ke(P,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,P)}let _={get action(){return f},get location(){return e(s,d)},listen(N){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(gm,C),p=N,()=>{s.removeEventListener(gm,C),p=null}},createHref(N){return n(s,N)},createURL:E,encodeLocation(N){let P=E(N);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:m,replace:x,go(N){return d.go(N)}};return _}var ot;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ot||(ot={}));const X1=new Set(["lazy","caseSensitive","path","id","index","children"]);function J1(e){return e.index===!0}function Vl(e,n,i,o){return i===void 0&&(i=[]),o===void 0&&(o={}),e.map((s,u)=>{let d=[...i,String(u)],f=typeof s.id=="string"?s.id:d.join("-");if(Ke(s.index!==!0||!s.children,"Cannot specify children on an index route"),Ke(!o[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),J1(s)){let p=Ct({},s,n(s),{id:f});return o[f]=p,p}else{let p=Ct({},s,n(s),{id:f,children:void 0});return o[f]=p,s.children&&(p.children=Vl(s.children,n,d,o)),p}})}function Gi(e,n,i){return i===void 0&&(i="/"),Al(e,n,i,!1)}function Al(e,n,i,o){let s=typeof n=="string"?_i(n):n,u=Qo(s.pathname||"/",i);if(u==null)return null;let d=Ug(e);tw(d);let f=null;for(let p=0;f==null&&p{let p={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};p.relativePath.startsWith("/")&&(Ke(p.relativePath.startsWith(o),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(o.length));let y=Wr([o,p.relativePath]),w=i.concat(p);u.children&&u.children.length>0&&(Ke(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+y+'".')),Ug(u.children,n,w,y)),!(u.path==null&&!u.index)&&n.push({path:y,score:lw(y,u.index),routesMeta:w})};return e.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))s(u,d);else for(let p of Hg(u.path))s(u,d,p)}),n}function Hg(e){let n=e.split("/");if(n.length===0)return[];let[i,...o]=n,s=i.endsWith("?"),u=i.replace(/\?$/,"");if(o.length===0)return s?[u,""]:[u];let d=Hg(o.join("/")),f=[];return f.push(...d.map(p=>p===""?u:[u,p].join("/"))),s&&f.push(...d),f.map(p=>e.startsWith("/")&&p===""?"/":p)}function tw(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:uw(n.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}const nw=/^:[\w-]+$/,rw=3,iw=2,ow=1,aw=10,sw=-2,ym=e=>e==="*";function lw(e,n){let i=e.split("/"),o=i.length;return i.some(ym)&&(o+=sw),n&&(o+=iw),i.filter(s=>!ym(s)).reduce((s,u)=>s+(nw.test(u)?rw:u===""?ow:aw),o)}function uw(e,n){return e.length===n.length&&e.slice(0,-1).every((o,s)=>o===n[s])?e[e.length-1]-n[n.length-1]:0}function cw(e,n,i){i===void 0&&(i=!1);let{routesMeta:o}=e,s={},u="/",d=[];for(let f=0;f{let{paramName:m,isOptional:x}=w;if(m==="*"){let _=f[C]||"";d=u.slice(0,u.length-_.length).replace(/(.)\/+$/,"$1")}const E=f[C];return x&&!E?y[m]=void 0:y[m]=(E||"").replace(/%2F/g,"/"),y},{}),pathname:u,pathnameBase:d,pattern:e}}function dw(e,n,i){n===void 0&&(n=!1),i===void 0&&(i=!0),Ho(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 o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,p)=>(o.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),o]}function fw(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ho(!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 ("+n+").")),e}}function Qo(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,o=e.charAt(i);return o&&o!=="/"?null:e.slice(i)||"/"}function hw(e,n){n===void 0&&(n="/");let{pathname:i,search:o="",hash:s=""}=typeof e=="string"?_i(e):e;return{pathname:i?i.startsWith("/")?i:pw(i,n):n,search:gw(o),hash:vw(s)}}function pw(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function Jc(e,n,i,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Vg(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function Jd(e,n){let i=Vg(e);return n?i.map((o,s)=>s===i.length-1?o.pathname:o.pathnameBase):i.map(o=>o.pathnameBase)}function ef(e,n,i,o){o===void 0&&(o=!1);let s;typeof e=="string"?s=_i(e):(s=Ct({},e),Ke(!s.pathname||!s.pathname.includes("?"),Jc("?","pathname","search",s)),Ke(!s.pathname||!s.pathname.includes("#"),Jc("#","pathname","hash",s)),Ke(!s.search||!s.search.includes("#"),Jc("#","search","hash",s)));let u=e===""||s.pathname==="",d=u?"/":s.pathname,f;if(d==null)f=i;else{let C=n.length-1;if(!o&&d.startsWith("..")){let m=d.split("/");for(;m[0]==="..";)m.shift(),C-=1;s.pathname=m.join("/")}f=C>=0?n[C]:"/"}let p=hw(s,f),y=d&&d!=="/"&&d.endsWith("/"),w=(u||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(y||w)&&(p.pathname+="/"),p}const Wr=e=>e.join("/").replace(/\/\/+/g,"/"),mw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ql{constructor(n,i,o,s){s===void 0&&(s=!1),this.status=n,this.statusText=i||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}}function Ya(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qg=["post","put","patch","delete"],yw=new Set(qg),ww=["get",...qg],xw=new Set(ww),Cw=new Set([301,302,303,307,308]),Sw=new Set([307,308]),ed={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_w={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Da={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},tf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Wg="remix-router-transitions";function Ew(e){const n=e.window?e.window:typeof window<"u"?window:void 0,i=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u",o=!i;Ke(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s;if(e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let j=e.detectErrorBoundary;s=R=>({hasErrorBoundary:j(R)})}else s=bw;let u={},d=Vl(e.routes,s,void 0,u),f,p=e.basename||"/",y=e.dataStrategy||jw,w=e.patchRoutesOnNavigation,C=Ct({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,x=new Set,E=null,_=null,N=null,P=e.hydrationData!=null,L=Gi(d,e.history.location,p),$=!1,q=null;if(L==null&&!w){let j=bn(404,{pathname:e.history.location.pathname}),{matches:R,route:z}=Pm(d);L=R,q={[z.id]:j}}L&&!e.hydrationData&&Kn(L,d,e.history.location.pathname).active&&(L=null);let Z;if(L)if(L.some(j=>j.route.lazy))Z=!1;else if(!L.some(j=>j.route.loader))Z=!0;else if(C.v7_partialHydration){let j=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null;if(R){let z=L.findIndex(X=>R[X.route.id]!==void 0);Z=L.slice(0,z+1).every(X=>!bd(X.route,j,R))}else Z=L.every(z=>!bd(z.route,j,R))}else Z=e.hydrationData!=null;else if(Z=!1,L=[],C.v7_partialHydration){let j=Kn(null,d,e.history.location.pathname);j.active&&j.matches&&($=!0,L=j.matches)}let fe,O={historyAction:e.history.action,location:e.history.location,matches:L,initialized:Z,navigation:ed,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||q,fetchers:new Map,blockers:new Map},K=Ot.Pop,ce=!1,de,I=!1,U=new Map,W=null,ne=!1,he=!1,Ce=[],be=new Set,G=new Map,ue=0,k=-1,H=new Map,oe=new Set,Se=new Map,se=new Map,re=new Set,ee=new Map,Q=new Map,Y;function nt(){if(m=e.history.listen(j=>{let{action:R,location:z,delta:X}=j;if(Y){Y(),Y=void 0;return}Ho(Q.size===0||X!=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 le=Nr({currentLocation:O.location,nextLocation:z,historyAction:R});if(le&&X!=null){let Ee=new Promise(Me=>{Y=Me});e.history.go(X*-1),zn(le,{state:"blocked",location:z,proceed(){zn(le,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),Ee.then(()=>e.history.go(X))},reset(){let Me=new Map(O.blockers);Me.set(le,Da),st({blockers:Me})}});return}return ht(R,z)}),i){Hw(n,U);let j=()=>Vw(n,U);n.addEventListener("pagehide",j),W=()=>n.removeEventListener("pagehide",j)}return O.initialized||ht(Ot.Pop,O.location,{initialHydration:!0}),fe}function tn(){m&&m(),W&&W(),x.clear(),de&&de.abort(),O.fetchers.forEach((j,R)=>mt(R)),O.blockers.forEach((j,R)=>Er(R))}function Wt(j){return x.add(j),()=>x.delete(j)}function st(j,R){R===void 0&&(R={}),O=Ct({},O,j);let z=[],X=[];C.v7_fetcherPersist&&O.fetchers.forEach((le,Ee)=>{le.state==="idle"&&(re.has(Ee)?X.push(Ee):z.push(Ee))}),re.forEach(le=>{!O.fetchers.has(le)&&!G.has(le)&&X.push(le)}),[...x].forEach(le=>le(O,{deletedFetchers:X,viewTransitionOpts:R.viewTransitionOpts,flushSync:R.flushSync===!0})),C.v7_fetcherPersist?(z.forEach(le=>O.fetchers.delete(le)),X.forEach(le=>mt(le))):X.forEach(le=>re.delete(le))}function St(j,R,z){var X,le;let{flushSync:Ee}=z===void 0?{}:z,Me=O.actionData!=null&&O.navigation.formMethod!=null&&or(O.navigation.formMethod)&&O.navigation.state==="loading"&&((X=j.state)==null?void 0:X._isRedirect)!==!0,ye;R.actionData?Object.keys(R.actionData).length>0?ye=R.actionData:ye=null:Me?ye=O.actionData:ye=null;let we=R.loaderData?Tm(O.loaderData,R.loaderData,R.matches||[],R.errors):O.loaderData,ge=O.blockers;ge.size>0&&(ge=new Map(ge),ge.forEach((ze,jt)=>ge.set(jt,Da)));let ve=ce===!0||O.navigation.formMethod!=null&&or(O.navigation.formMethod)&&((le=j.state)==null?void 0:le._isRedirect)!==!0;f&&(d=f,f=void 0),ne||K===Ot.Pop||(K===Ot.Push?e.history.push(j,j.state):K===Ot.Replace&&e.history.replace(j,j.state));let Fe;if(K===Ot.Pop){let ze=U.get(O.location.pathname);ze&&ze.has(j.pathname)?Fe={currentLocation:O.location,nextLocation:j}:U.has(j.pathname)&&(Fe={currentLocation:j,nextLocation:O.location})}else if(I){let ze=U.get(O.location.pathname);ze?ze.add(j.pathname):(ze=new Set([j.pathname]),U.set(O.location.pathname,ze)),Fe={currentLocation:O.location,nextLocation:j}}st(Ct({},R,{actionData:ye,loaderData:we,historyAction:K,location:j,initialized:!0,navigation:ed,revalidation:"idle",restoreScrollPosition:ji(j,R.matches||O.matches),preventScrollReset:ve,blockers:ge}),{viewTransitionOpts:Fe,flushSync:Ee===!0}),K=Ot.Pop,ce=!1,I=!1,ne=!1,he=!1,Ce=[]}async function ut(j,R){if(typeof j=="number"){e.history.go(j);return}let z=_d(O.location,O.matches,p,C.v7_prependBasename,j,C.v7_relativeSplatPath,R?.fromRouteId,R?.relative),{path:X,submission:le,error:Ee}=xm(C.v7_normalizeFormMethod,!1,z,R),Me=O.location,ye=Ka(O.location,X,R&&R.state);ye=Ct({},ye,e.history.encodeLocation(ye));let we=R&&R.replace!=null?R.replace:void 0,ge=Ot.Push;we===!0?ge=Ot.Replace:we===!1||le!=null&&or(le.formMethod)&&le.formAction===O.location.pathname+O.location.search&&(ge=Ot.Replace);let ve=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,Fe=(R&&R.flushSync)===!0,ze=Nr({currentLocation:Me,nextLocation:ye,historyAction:ge});if(ze){zn(ze,{state:"blocked",location:ye,proceed(){zn(ze,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),ut(j,R)},reset(){let jt=new Map(O.blockers);jt.set(ze,Da),st({blockers:jt})}});return}return await ht(ge,ye,{submission:le,pendingError:Ee,preventScrollReset:ve,replace:R&&R.replace,enableViewTransition:R&&R.viewTransition,flushSync:Fe})}function wt(){if(Qn(),st({revalidation:"loading"}),O.navigation.state!=="submitting"){if(O.navigation.state==="idle"){ht(O.historyAction,O.location,{startUninterruptedRevalidation:!0});return}ht(K||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:I===!0})}}async function ht(j,R,z){de&&de.abort(),de=null,K=j,ne=(z&&z.startUninterruptedRevalidation)===!0,Yr(O.location,O.matches),ce=(z&&z.preventScrollReset)===!0,I=(z&&z.enableViewTransition)===!0;let X=f||d,le=z&&z.overrideNavigation,Ee=z!=null&&z.initialHydration&&O.matches&&O.matches.length>0&&!$?O.matches:Gi(X,R,p),Me=(z&&z.flushSync)===!0;if(Ee&&O.initialized&&!he&&Rw(O.location,R)&&!(z&&z.submission&&or(z.submission.formMethod))){St(R,{matches:Ee},{flushSync:Me});return}let ye=Kn(Ee,X,R.pathname);if(ye.active&&ye.matches&&(Ee=ye.matches),!Ee){let{error:Xe,notFoundMatches:Ze,route:Je}=hn(R.pathname);St(R,{matches:Ze,loaderData:{},errors:{[Je.id]:Xe}},{flushSync:Me});return}de=new AbortController;let we=Lo(e.history,R,de.signal,z&&z.submission),ge;if(z&&z.pendingError)ge=[Zi(Ee).route.id,{type:ot.error,error:z.pendingError}];else if(z&&z.submission&&or(z.submission.formMethod)){let Xe=await pt(we,R,z.submission,Ee,ye.active,{replace:z.replace,flushSync:Me});if(Xe.shortCircuited)return;if(Xe.pendingActionResult){let[Ze,Je]=Xe.pendingActionResult;if(An(Je)&&Ya(Je.error)&&Je.error.status===404){de=null,St(R,{matches:Xe.matches,loaderData:{},errors:{[Ze]:Je.error}});return}}Ee=Xe.matches||Ee,ge=Xe.pendingActionResult,le=td(R,z.submission),Me=!1,ye.active=!1,we=Lo(e.history,we.url,we.signal)}let{shortCircuited:ve,matches:Fe,loaderData:ze,errors:jt}=await Nt(we,R,Ee,ye.active,le,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,Me,ge);ve||(de=null,St(R,Ct({matches:Fe||Ee},jm(ge),{loaderData:ze,errors:jt})))}async function pt(j,R,z,X,le,Ee){Ee===void 0&&(Ee={}),Qn();let Me=Bw(R,z);if(st({navigation:Me},{flushSync:Ee.flushSync===!0}),le){let ge=await pn(X,R.pathname,j.signal);if(ge.type==="aborted")return{shortCircuited:!0};if(ge.type==="error"){let ve=Zi(ge.partialMatches).route.id;return{matches:ge.partialMatches,pendingActionResult:[ve,{type:ot.error,error:ge.error}]}}else if(ge.matches)X=ge.matches;else{let{notFoundMatches:ve,error:Fe,route:ze}=hn(R.pathname);return{matches:ve,pendingActionResult:[ze.id,{type:ot.error,error:Fe}]}}}let ye,we=qa(X,R);if(!we.route.action&&!we.route.lazy)ye={type:ot.error,error:bn(405,{method:j.method,pathname:R.pathname,routeId:we.route.id})};else if(ye=(await dn("action",O,j,[we],X,null))[we.route.id],j.signal.aborted)return{shortCircuited:!0};if(Yi(ye)){let ge;return Ee&&Ee.replace!=null?ge=Ee.replace:ge=Em(ye.response.headers.get("Location"),new URL(j.url),p)===O.location.pathname+O.location.search,await cn(j,ye,!0,{submission:z,replace:ge}),{shortCircuited:!0}}if(Ci(ye))throw bn(400,{type:"defer-action"});if(An(ye)){let ge=Zi(X,we.route.id);return(Ee&&Ee.replace)!==!0&&(K=Ot.Push),{matches:X,pendingActionResult:[ge.route.id,ye]}}return{matches:X,pendingActionResult:[we.route.id,ye]}}async function Nt(j,R,z,X,le,Ee,Me,ye,we,ge,ve){let Fe=le||td(R,Ee),ze=Ee||Me||Lm(Fe),jt=!ne&&(!C.v7_partialHydration||!we);if(X){if(jt){let it=nn(ve);st(Ct({navigation:Fe},it!==void 0?{actionData:it}:{}),{flushSync:ge})}let He=await pn(z,R.pathname,j.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let it=Zi(He.partialMatches).route.id;return{matches:He.partialMatches,loaderData:{},errors:{[it]:He.error}}}else if(He.matches)z=He.matches;else{let{error:it,notFoundMatches:_t,route:jr}=hn(R.pathname);return{matches:_t,loaderData:{},errors:{[jr.id]:it}}}}let Xe=f||d,[Ze,Je]=Sm(e.history,O,z,ze,R,C.v7_partialHydration&&we===!0,C.v7_skipActionErrorRevalidation,he,Ce,be,re,Se,oe,Xe,p,ve);if(rn(He=>!(z&&z.some(it=>it.route.id===He))||Ze&&Ze.some(it=>it.route.id===He)),k=++ue,Ze.length===0&&Je.length===0){let He=Ni();return St(R,Ct({matches:z,loaderData:{},errors:ve&&An(ve[1])?{[ve[0]]:ve[1].error}:null},jm(ve),He?{fetchers:new Map(O.fetchers)}:{}),{flushSync:ge}),{shortCircuited:!0}}if(jt){let He={};if(!X){He.navigation=Fe;let it=nn(ve);it!==void 0&&(He.actionData=it)}Je.length>0&&(He.fetchers=jn(Je)),st(He,{flushSync:ge})}Je.forEach(He=>{fn(He.key),He.controller&&G.set(He.key,He.controller)});let Mn=()=>Je.forEach(He=>fn(He.key));de&&de.signal.addEventListener("abort",Mn);let{loaderResults:mn,fetcherResults:Ln}=await Sr(O,z,Ze,Je,j);if(j.signal.aborted)return{shortCircuited:!0};de&&de.signal.removeEventListener("abort",Mn),Je.forEach(He=>G.delete(He.key));let Ve=yl(mn);if(Ve)return await cn(j,Ve.result,!0,{replace:ye}),{shortCircuited:!0};if(Ve=yl(Ln),Ve)return oe.add(Ve.key),await cn(j,Ve.result,!0,{replace:ye}),{shortCircuited:!0};let{loaderData:Pi,errors:Rt}=km(O,z,mn,ve,Je,Ln,ee);ee.forEach((He,it)=>{He.subscribe(_t=>{(_t||He.done)&&ee.delete(it)})}),C.v7_partialHydration&&we&&O.errors&&(Rt=Ct({},O.errors,Rt));let Bn=Ni(),gn=_r(k),Xr=Bn||gn||Je.length>0;return Ct({matches:z,loaderData:Pi,errors:Rt},Xr?{fetchers:new Map(O.fetchers)}:{})}function nn(j){if(j&&!An(j[1]))return{[j[0]]:j[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function jn(j){return j.forEach(R=>{let z=O.fetchers.get(R.key),X=Oa(void 0,z?z.data:void 0);O.fetchers.set(R.key,X)}),new Map(O.fetchers)}function un(j,R,z,X){if(o)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.");fn(j);let le=(X&&X.flushSync)===!0,Ee=f||d,Me=_d(O.location,O.matches,p,C.v7_prependBasename,z,C.v7_relativeSplatPath,R,X?.relative),ye=Gi(Ee,Me,p),we=Kn(ye,Ee,Me);if(we.active&&we.matches&&(ye=we.matches),!ye){Lt(j,R,bn(404,{pathname:Me}),{flushSync:le});return}let{path:ge,submission:ve,error:Fe}=xm(C.v7_normalizeFormMethod,!0,Me,X);if(Fe){Lt(j,R,Fe,{flushSync:le});return}let ze=qa(ye,ge),jt=(X&&X.preventScrollReset)===!0;if(ve&&or(ve.formMethod)){Pn(j,R,ge,ze,ye,we.active,le,jt,ve);return}Se.set(j,{routeId:R,path:ge}),Kr(j,R,ge,ze,ye,we.active,le,jt,ve)}async function Pn(j,R,z,X,le,Ee,Me,ye,we){Qn(),Se.delete(j);function ge(Qe){if(!Qe.route.action&&!Qe.route.lazy){let ur=bn(405,{method:we.formMethod,pathname:z,routeId:R});return Lt(j,R,ur,{flushSync:Me}),!0}return!1}if(!Ee&&ge(X))return;let ve=O.fetchers.get(j);ct(j,Uw(we,ve),{flushSync:Me});let Fe=new AbortController,ze=Lo(e.history,z,Fe.signal,we);if(Ee){let Qe=await pn(le,new URL(ze.url).pathname,ze.signal,j);if(Qe.type==="aborted")return;if(Qe.type==="error"){Lt(j,R,Qe.error,{flushSync:Me});return}else if(Qe.matches){if(le=Qe.matches,X=qa(le,z),ge(X))return}else{Lt(j,R,bn(404,{pathname:z}),{flushSync:Me});return}}G.set(j,Fe);let jt=ue,Ze=(await dn("action",O,ze,[X],le,j))[X.route.id];if(ze.signal.aborted){G.get(j)===Fe&&G.delete(j);return}if(C.v7_fetcherPersist&&re.has(j)){if(Yi(Ze)||An(Ze)){ct(j,xi(void 0));return}}else{if(Yi(Ze))if(G.delete(j),k>jt){ct(j,xi(void 0));return}else return oe.add(j),ct(j,Oa(we)),cn(ze,Ze,!1,{fetcherSubmission:we,preventScrollReset:ye});if(An(Ze)){Lt(j,R,Ze.error);return}}if(Ci(Ze))throw bn(400,{type:"defer-action"});let Je=O.navigation.location||O.location,Mn=Lo(e.history,Je,Fe.signal),mn=f||d,Ln=O.navigation.state!=="idle"?Gi(mn,O.navigation.location,p):O.matches;Ke(Ln,"Didn't find any matches after fetcher action");let Ve=++ue;H.set(j,Ve);let Pi=Oa(we,Ze.data);O.fetchers.set(j,Pi);let[Rt,Bn]=Sm(e.history,O,Ln,we,Je,!1,C.v7_skipActionErrorRevalidation,he,Ce,be,re,Se,oe,mn,p,[X.route.id,Ze]);Bn.filter(Qe=>Qe.key!==j).forEach(Qe=>{let ur=Qe.key,Pr=O.fetchers.get(ur),Xo=Oa(void 0,Pr?Pr.data:void 0);O.fetchers.set(ur,Xo),fn(ur),Qe.controller&&G.set(ur,Qe.controller)}),st({fetchers:new Map(O.fetchers)});let gn=()=>Bn.forEach(Qe=>fn(Qe.key));Fe.signal.addEventListener("abort",gn);let{loaderResults:Xr,fetcherResults:He}=await Sr(O,Ln,Rt,Bn,Mn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",gn),H.delete(j),G.delete(j),Bn.forEach(Qe=>G.delete(Qe.key));let it=yl(Xr);if(it)return cn(Mn,it.result,!1,{preventScrollReset:ye});if(it=yl(He),it)return oe.add(it.key),cn(Mn,it.result,!1,{preventScrollReset:ye});let{loaderData:_t,errors:jr}=km(O,Ln,Xr,void 0,Bn,He,ee);if(O.fetchers.has(j)){let Qe=xi(Ze.data);O.fetchers.set(j,Qe)}_r(Ve),O.navigation.state==="loading"&&Ve>k?(Ke(K,"Expected pending action"),de&&de.abort(),St(O.navigation.location,{matches:Ln,loaderData:_t,errors:jr,fetchers:new Map(O.fetchers)})):(st({errors:jr,loaderData:Tm(O.loaderData,_t,Ln,jr),fetchers:new Map(O.fetchers)}),he=!1)}async function Kr(j,R,z,X,le,Ee,Me,ye,we){let ge=O.fetchers.get(j);ct(j,Oa(we,ge?ge.data:void 0),{flushSync:Me});let ve=new AbortController,Fe=Lo(e.history,z,ve.signal);if(Ee){let Ze=await pn(le,new URL(Fe.url).pathname,Fe.signal,j);if(Ze.type==="aborted")return;if(Ze.type==="error"){Lt(j,R,Ze.error,{flushSync:Me});return}else if(Ze.matches)le=Ze.matches,X=qa(le,z);else{Lt(j,R,bn(404,{pathname:z}),{flushSync:Me});return}}G.set(j,ve);let ze=ue,Xe=(await dn("loader",O,Fe,[X],le,j))[X.route.id];if(Ci(Xe)&&(Xe=await nf(Xe,Fe.signal,!0)||Xe),G.get(j)===ve&&G.delete(j),!Fe.signal.aborted){if(re.has(j)){ct(j,xi(void 0));return}if(Yi(Xe))if(k>ze){ct(j,xi(void 0));return}else{oe.add(j),await cn(Fe,Xe,!1,{preventScrollReset:ye});return}if(An(Xe)){Lt(j,R,Xe.error);return}Ke(!Ci(Xe),"Unhandled fetcher deferred data"),ct(j,xi(Xe.data))}}async function cn(j,R,z,X){let{submission:le,fetcherSubmission:Ee,preventScrollReset:Me,replace:ye}=X===void 0?{}:X;R.response.headers.has("X-Remix-Revalidate")&&(he=!0);let we=R.response.headers.get("Location");Ke(we,"Expected a Location header on the redirect Response"),we=Em(we,new URL(j.url),p);let ge=Ka(O.location,we,{_isRedirect:!0});if(i){let Ze=!1;if(R.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(tf.test(we)){const Je=e.history.createURL(we);Ze=Je.origin!==n.location.origin||Qo(Je.pathname,p)==null}if(Ze){ye?n.location.replace(we):n.location.assign(we);return}}de=null;let ve=ye===!0||R.response.headers.has("X-Remix-Replace")?Ot.Replace:Ot.Push,{formMethod:Fe,formAction:ze,formEncType:jt}=O.navigation;!le&&!Ee&&Fe&&ze&&jt&&(le=Lm(O.navigation));let Xe=le||Ee;if(Sw.has(R.response.status)&&Xe&&or(Xe.formMethod))await ht(ve,ge,{submission:Ct({},Xe,{formAction:we}),preventScrollReset:Me||ce,enableViewTransition:z?I:void 0});else{let Ze=td(ge,le);await ht(ve,ge,{overrideNavigation:Ze,fetcherSubmission:Ee,preventScrollReset:Me||ce,enableViewTransition:z?I:void 0})}}async function dn(j,R,z,X,le,Ee){let Me,ye={};try{Me=await Pw(y,j,R,z,X,le,Ee,u,s)}catch(we){return X.forEach(ge=>{ye[ge.route.id]={type:ot.error,error:we}}),ye}for(let[we,ge]of Object.entries(Me))if(Iw(ge)){let ve=ge.result;ye[we]={type:ot.redirect,response:Dw(ve,z,we,le,p,C.v7_relativeSplatPath)}}else ye[we]=await Lw(ge);return ye}async function Sr(j,R,z,X,le){let Ee=j.matches,Me=dn("loader",j,le,z,R,null),ye=Promise.all(X.map(async ve=>{if(ve.matches&&ve.match&&ve.controller){let ze=(await dn("loader",j,Lo(e.history,ve.path,ve.controller.signal),[ve.match],ve.matches,ve.key))[ve.match.route.id];return{[ve.key]:ze}}else return Promise.resolve({[ve.key]:{type:ot.error,error:bn(404,{pathname:ve.path})}})})),we=await Me,ge=(await ye).reduce((ve,Fe)=>Object.assign(ve,Fe),{});return await Promise.all([$w(R,we,le.signal,Ee,j.loaderData),zw(R,ge,X)]),{loaderResults:we,fetcherResults:ge}}function Qn(){he=!0,Ce.push(...rn()),Se.forEach((j,R)=>{G.has(R)&&be.add(R),fn(R)})}function ct(j,R,z){z===void 0&&(z={}),O.fetchers.set(j,R),st({fetchers:new Map(O.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function Lt(j,R,z,X){X===void 0&&(X={});let le=Zi(O.matches,R);mt(j),st({errors:{[le.route.id]:z},fetchers:new Map(O.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function Qt(j){return se.set(j,(se.get(j)||0)+1),re.has(j)&&re.delete(j),O.fetchers.get(j)||_w}function mt(j){let R=O.fetchers.get(j);G.has(j)&&!(R&&R.state==="loading"&&H.has(j))&&fn(j),Se.delete(j),H.delete(j),oe.delete(j),C.v7_fetcherPersist&&re.delete(j),be.delete(j),O.fetchers.delete(j)}function Kt(j){let R=(se.get(j)||0)-1;R<=0?(se.delete(j),re.add(j),C.v7_fetcherPersist||mt(j)):se.set(j,R),st({fetchers:new Map(O.fetchers)})}function fn(j){let R=G.get(j);R&&(R.abort(),G.delete(j))}function Ei(j){for(let R of j){let z=Qt(R),X=xi(z.data);O.fetchers.set(R,X)}}function Ni(){let j=[],R=!1;for(let z of oe){let X=O.fetchers.get(z);Ke(X,"Expected fetcher: "+z),X.state==="loading"&&(oe.delete(z),j.push(z),R=!0)}return Ei(j),R}function _r(j){let R=[];for(let[z,X]of H)if(X0}function br(j,R){let z=O.blockers.get(j)||Da;return Q.get(j)!==R&&Q.set(j,R),z}function Er(j){O.blockers.delete(j),Q.delete(j)}function zn(j,R){let z=O.blockers.get(j)||Da;Ke(z.state==="unblocked"&&R.state==="blocked"||z.state==="blocked"&&R.state==="blocked"||z.state==="blocked"&&R.state==="proceeding"||z.state==="blocked"&&R.state==="unblocked"||z.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+z.state+" -> "+R.state);let X=new Map(O.blockers);X.set(j,R),st({blockers:X})}function Nr(j){let{currentLocation:R,nextLocation:z,historyAction:X}=j;if(Q.size===0)return;Q.size>1&&Ho(!1,"A router only supports one blocker at a time");let le=Array.from(Q.entries()),[Ee,Me]=le[le.length-1],ye=O.blockers.get(Ee);if(!(ye&&ye.state==="proceeding")&&Me({currentLocation:R,nextLocation:z,historyAction:X}))return Ee}function hn(j){let R=bn(404,{pathname:j}),z=f||d,{matches:X,route:le}=Pm(z);return rn(),{notFoundMatches:X,route:le,error:R}}function rn(j){let R=[];return ee.forEach((z,X)=>{(!j||j(X))&&(z.cancel(),R.push(X),ee.delete(X))}),R}function ki(j,R,z){if(E=j,N=R,_=z||null,!P&&O.navigation===ed){P=!0;let X=ji(O.location,O.matches);X!=null&&st({restoreScrollPosition:X})}return()=>{E=null,N=null,_=null}}function Ti(j,R){return _&&_(j,R.map(X=>ew(X,O.loaderData)))||j.key}function Yr(j,R){if(E&&N){let z=Ti(j,R);E[z]=N()}}function ji(j,R){if(E){let z=Ti(j,R),X=E[z];if(typeof X=="number")return X}return null}function Kn(j,R,z){if(w)if(j){if(Object.keys(j[0].params).length>0)return{active:!0,matches:Al(R,z,p,!0)}}else return{active:!0,matches:Al(R,z,p,!0)||[]};return{active:!1,matches:null}}async function pn(j,R,z,X){if(!w)return{type:"success",matches:j};let le=j;for(;;){let Ee=f==null,Me=f||d,ye=u;try{await w({signal:z,path:R,matches:le,fetcherKey:X,patch:(ve,Fe)=>{z.aborted||bm(ve,Fe,Me,ye,s)}})}catch(ve){return{type:"error",error:ve,partialMatches:le}}finally{Ee&&!z.aborted&&(d=[...d])}if(z.aborted)return{type:"aborted"};let we=Gi(Me,R,p);if(we)return{type:"success",matches:we};let ge=Al(Me,R,p,!0);if(!ge||le.length===ge.length&&le.every((ve,Fe)=>ve.route.id===ge[Fe].route.id))return{type:"success",matches:null};le=ge}}function kr(j){u={},f=Vl(j,s,void 0,u)}function Tr(j,R){let z=f==null;bm(j,R,f||d,u,s),z&&(d=[...d],st({}))}return fe={get basename(){return p},get future(){return C},get state(){return O},get routes(){return d},get window(){return n},initialize:nt,subscribe:Wt,enableScrollRestoration:ki,navigate:ut,fetch:un,revalidate:wt,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:Qt,deleteFetcher:Kt,dispose:tn,getBlocker:br,deleteBlocker:Er,patchRoutes:Tr,_internalFetchControllers:G,_internalActiveDeferreds:ee,_internalSetRoutes:kr},fe}function Nw(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function _d(e,n,i,o,s,u,d,f){let p,y;if(d){p=[];for(let C of n)if(p.push(C),C.route.id===d){y=C;break}}else p=n,y=n[n.length-1];let w=ef(s||".",Jd(p,u),Qo(e.pathname,i)||e.pathname,f==="path");if(s==null&&(w.search=e.search,w.hash=e.hash),(s==null||s===""||s===".")&&y){let C=rf(w.search);if(y.route.index&&!C)w.search=w.search?w.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&C){let m=new URLSearchParams(w.search),x=m.getAll("index");m.delete("index"),x.filter(_=>_).forEach(_=>m.append("index",_));let E=m.toString();w.search=E?"?"+E:""}}return o&&i!=="/"&&(w.pathname=w.pathname==="/"?i:Wr([i,w.pathname])),Ji(w)}function xm(e,n,i,o){if(!o||!Nw(o))return{path:i};if(o.formMethod&&!Fw(o.formMethod))return{path:i,error:bn(405,{method:o.formMethod})};let s=()=>({path:i,error:bn(400,{type:"invalid-body"})}),u=o.formMethod||"get",d=e?u.toUpperCase():u.toLowerCase(),f=Qg(i);if(o.body!==void 0){if(o.formEncType==="text/plain"){if(!or(d))return s();let m=typeof o.body=="string"?o.body:o.body instanceof FormData||o.body instanceof URLSearchParams?Array.from(o.body.entries()).reduce((x,E)=>{let[_,N]=E;return""+x+_+"="+N+` +`},""):String(o.body);return{path:i,submission:{formMethod:d,formAction:f,formEncType:o.formEncType,formData:void 0,json:void 0,text:m}}}else if(o.formEncType==="application/json"){if(!or(d))return s();try{let m=typeof o.body=="string"?JSON.parse(o.body):o.body;return{path:i,submission:{formMethod:d,formAction:f,formEncType:o.formEncType,formData:void 0,json:m,text:void 0}}}catch{return s()}}}Ke(typeof FormData=="function","FormData is not available in this environment");let p,y;if(o.formData)p=Ed(o.formData),y=o.formData;else if(o.body instanceof FormData)p=Ed(o.body),y=o.body;else if(o.body instanceof URLSearchParams)p=o.body,y=Nm(p);else if(o.body==null)p=new URLSearchParams,y=new FormData;else try{p=new URLSearchParams(o.body),y=Nm(p)}catch{return s()}let w={formMethod:d,formAction:f,formEncType:o&&o.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(or(w.formMethod))return{path:i,submission:w};let C=_i(i);return n&&C.search&&rf(C.search)&&p.append("index",""),C.search="?"+p,{path:Ji(C),submission:w}}function Cm(e,n,i){i===void 0&&(i=!1);let o=e.findIndex(s=>s.route.id===n);return o>=0?e.slice(0,i?o+1:o):e}function Sm(e,n,i,o,s,u,d,f,p,y,w,C,m,x,E,_){let N=_?An(_[1])?_[1].error:_[1].data:void 0,P=e.createURL(n.location),L=e.createURL(s),$=i;u&&n.errors?$=Cm(i,Object.keys(n.errors)[0],!0):_&&An(_[1])&&($=Cm(i,_[0]));let q=_?_[1].statusCode:void 0,Z=d&&q&&q>=400,fe=$.filter((K,ce)=>{let{route:de}=K;if(de.lazy)return!0;if(de.loader==null)return!1;if(u)return bd(de,n.loaderData,n.errors);if(kw(n.loaderData,n.matches[ce],K)||p.some(W=>W===K.route.id))return!0;let I=n.matches[ce],U=K;return _m(K,Ct({currentUrl:P,currentParams:I.params,nextUrl:L,nextParams:U.params},o,{actionResult:N,actionStatus:q,defaultShouldRevalidate:Z?!1:f||P.pathname+P.search===L.pathname+L.search||P.search!==L.search||Gg(I,U)}))}),O=[];return C.forEach((K,ce)=>{if(u||!i.some(ne=>ne.route.id===K.routeId)||w.has(ce))return;let de=Gi(x,K.path,E);if(!de){O.push({key:ce,routeId:K.routeId,path:K.path,matches:null,match:null,controller:null});return}let I=n.fetchers.get(ce),U=qa(de,K.path),W=!1;m.has(ce)?W=!1:y.has(ce)?(y.delete(ce),W=!0):I&&I.state!=="idle"&&I.data===void 0?W=f:W=_m(U,Ct({currentUrl:P,currentParams:n.matches[n.matches.length-1].params,nextUrl:L,nextParams:i[i.length-1].params},o,{actionResult:N,actionStatus:q,defaultShouldRevalidate:Z?!1:f})),W&&O.push({key:ce,routeId:K.routeId,path:K.path,matches:de,match:U,controller:new AbortController})}),[fe,O]}function bd(e,n,i){if(e.lazy)return!0;if(!e.loader)return!1;let o=n!=null&&n[e.id]!==void 0,s=i!=null&&i[e.id]!==void 0;return!o&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!o&&!s}function kw(e,n,i){let o=!n||i.route.id!==n.route.id,s=e[i.route.id]===void 0;return o||s}function Gg(e,n){let i=e.route.path;return e.pathname!==n.pathname||i!=null&&i.endsWith("*")&&e.params["*"]!==n.params["*"]}function _m(e,n){if(e.route.shouldRevalidate){let i=e.route.shouldRevalidate(n);if(typeof i=="boolean")return i}return n.defaultShouldRevalidate}function bm(e,n,i,o,s){var u;let d;if(e){let y=o[e];Ke(y,"No route found to patch children into: routeId = "+e),y.children||(y.children=[]),d=y.children}else d=i;let f=n.filter(y=>!d.some(w=>Zg(y,w))),p=Vl(f,s,[e||"_","patch",String(((u=d)==null?void 0:u.length)||"0")],o);d.push(...p)}function Zg(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((i,o)=>{var s;return(s=n.children)==null?void 0:s.some(u=>Zg(i,u))}):!1}async function Tw(e,n,i){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let s=i[e.id];Ke(s,"No route found in manifest");let u={};for(let d in o){let p=s[d]!==void 0&&d!=="hasErrorBoundary";Ho(!p,'Route "'+s.id+'" has a static property "'+d+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+d+'" will be ignored.')),!p&&!X1.has(d)&&(u[d]=o[d])}Object.assign(s,u),Object.assign(s,Ct({},n(s),{lazy:void 0}))}async function jw(e){let{matches:n}=e,i=n.filter(s=>s.shouldLoad);return(await Promise.all(i.map(s=>s.resolve()))).reduce((s,u,d)=>Object.assign(s,{[i[d].route.id]:u}),{})}async function Pw(e,n,i,o,s,u,d,f,p,y){let w=u.map(x=>x.route.lazy?Tw(x.route,p,f):void 0),C=u.map((x,E)=>{let _=w[E],N=s.some(L=>L.route.id===x.route.id);return Ct({},x,{shouldLoad:N,resolve:async L=>(L&&o.method==="GET"&&(x.route.lazy||x.route.loader)&&(N=!0),N?Mw(n,o,x,_,L,y):Promise.resolve({type:ot.data,result:void 0}))})}),m=await e({matches:C,request:o,params:u[0].params,fetcherKey:d,context:y});try{await Promise.all(w)}catch{}return m}async function Mw(e,n,i,o,s,u){let d,f,p=y=>{let w,C=new Promise((E,_)=>w=_);f=()=>w(),n.signal.addEventListener("abort",f);let m=E=>typeof y!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+i.route.id+"]"))):y({request:n,params:i.params,context:u},...E!==void 0?[E]:[]),x=(async()=>{try{return{type:"data",result:await(s?s(_=>m(_)):m())}}catch(E){return{type:"error",result:E}}})();return Promise.race([x,C])};try{let y=i.route[e];if(o)if(y){let w,[C]=await Promise.all([p(y).catch(m=>{w=m}),o]);if(w!==void 0)throw w;d=C}else if(await o,y=i.route[e],y)d=await p(y);else if(e==="action"){let w=new URL(n.url),C=w.pathname+w.search;throw bn(405,{method:n.method,pathname:C,routeId:i.route.id})}else return{type:ot.data,result:void 0};else if(y)d=await p(y);else{let w=new URL(n.url),C=w.pathname+w.search;throw bn(404,{pathname:C})}Ke(d.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+i.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){return{type:ot.error,result:y}}finally{f&&n.signal.removeEventListener("abort",f)}return d}async function Lw(e){let{result:n,type:i}=e;if(Kg(n)){let C;try{let m=n.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?n.body==null?C=null:C=await n.json():C=await n.text()}catch(m){return{type:ot.error,error:m}}return i===ot.error?{type:ot.error,error:new ql(n.status,n.statusText,C),statusCode:n.status,headers:n.headers}:{type:ot.data,data:C,statusCode:n.status,headers:n.headers}}if(i===ot.error){if(Mm(n)){var o,s;if(n.data instanceof Error){var u,d;return{type:ot.error,error:n.data,statusCode:(u=n.init)==null?void 0:u.status,headers:(d=n.init)!=null&&d.headers?new Headers(n.init.headers):void 0}}return{type:ot.error,error:new ql(((o=n.init)==null?void 0:o.status)||500,void 0,n.data),statusCode:Ya(n)?n.status:void 0,headers:(s=n.init)!=null&&s.headers?new Headers(n.init.headers):void 0}}return{type:ot.error,error:n,statusCode:Ya(n)?n.status:void 0}}if(Aw(n)){var f,p;return{type:ot.deferred,deferredData:n,statusCode:(f=n.init)==null?void 0:f.status,headers:((p=n.init)==null?void 0:p.headers)&&new Headers(n.init.headers)}}if(Mm(n)){var y,w;return{type:ot.data,data:n.data,statusCode:(y=n.init)==null?void 0:y.status,headers:(w=n.init)!=null&&w.headers?new Headers(n.init.headers):void 0}}return{type:ot.data,data:n}}function Dw(e,n,i,o,s,u){let d=e.headers.get("Location");if(Ke(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!tf.test(d)){let f=o.slice(0,o.findIndex(p=>p.route.id===i)+1);d=_d(new URL(n.url),f,s,!0,d,u),e.headers.set("Location",d)}return e}function Em(e,n,i){if(tf.test(e)){let o=e,s=o.startsWith("//")?new URL(n.protocol+o):new URL(o),u=Qo(s.pathname,i)!=null;if(s.origin===n.origin&&u)return s.pathname+s.search+s.hash}return e}function Lo(e,n,i,o){let s=e.createURL(Qg(n)).toString(),u={signal:i};if(o&&or(o.formMethod)){let{formMethod:d,formEncType:f}=o;u.method=d.toUpperCase(),f==="application/json"?(u.headers=new Headers({"Content-Type":f}),u.body=JSON.stringify(o.json)):f==="text/plain"?u.body=o.text:f==="application/x-www-form-urlencoded"&&o.formData?u.body=Ed(o.formData):u.body=o.formData}return new Request(s,u)}function Ed(e){let n=new URLSearchParams;for(let[i,o]of e.entries())n.append(i,typeof o=="string"?o:o.name);return n}function Nm(e){let n=new FormData;for(let[i,o]of e.entries())n.append(i,o);return n}function Ow(e,n,i,o,s){let u={},d=null,f,p=!1,y={},w=i&&An(i[1])?i[1].error:void 0;return e.forEach(C=>{if(!(C.route.id in n))return;let m=C.route.id,x=n[m];if(Ke(!Yi(x),"Cannot handle redirect results in processLoaderData"),An(x)){let E=x.error;w!==void 0&&(E=w,w=void 0),d=d||{};{let _=Zi(e,m);d[_.route.id]==null&&(d[_.route.id]=E)}u[m]=void 0,p||(p=!0,f=Ya(x.error)?x.error.status:500),x.headers&&(y[m]=x.headers)}else Ci(x)?(o.set(m,x.deferredData),u[m]=x.deferredData.data,x.statusCode!=null&&x.statusCode!==200&&!p&&(f=x.statusCode),x.headers&&(y[m]=x.headers)):(u[m]=x.data,x.statusCode&&x.statusCode!==200&&!p&&(f=x.statusCode),x.headers&&(y[m]=x.headers))}),w!==void 0&&i&&(d={[i[0]]:w},u[i[0]]=void 0),{loaderData:u,errors:d,statusCode:f||200,loaderHeaders:y}}function km(e,n,i,o,s,u,d){let{loaderData:f,errors:p}=Ow(n,i,o,d);return s.forEach(y=>{let{key:w,match:C,controller:m}=y,x=u[w];if(Ke(x,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(An(x)){let E=Zi(e.matches,C?.route.id);p&&p[E.route.id]||(p=Ct({},p,{[E.route.id]:x.error})),e.fetchers.delete(w)}else if(Yi(x))Ke(!1,"Unhandled fetcher revalidation redirect");else if(Ci(x))Ke(!1,"Unhandled fetcher deferred data");else{let E=xi(x.data);e.fetchers.set(w,E)}}),{loaderData:f,errors:p}}function Tm(e,n,i,o){let s=Ct({},n);for(let u of i){let d=u.route.id;if(n.hasOwnProperty(d)?n[d]!==void 0&&(s[d]=n[d]):e[d]!==void 0&&u.route.loader&&(s[d]=e[d]),o&&o.hasOwnProperty(d))break}return s}function jm(e){return e?An(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Zi(e,n){return(n?e.slice(0,e.findIndex(o=>o.route.id===n)+1):[...e]).reverse().find(o=>o.route.hasErrorBoundary===!0)||e[0]}function Pm(e){let n=e.length===1?e[0]:e.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function bn(e,n){let{pathname:i,routeId:o,method:s,type:u,message:d}=n===void 0?{}:n,f="Unknown Server Error",p="Unknown @remix-run/router error";return e===400?(f="Bad Request",s&&i&&o?p="You made a "+s+' request to "'+i+'" but '+('did not provide a `loader` for route "'+o+'", ')+"so there is no way to handle the request.":u==="defer-action"?p="defer() is not supported in actions":u==="invalid-body"&&(p="Unable to encode submission body")):e===403?(f="Forbidden",p='Route "'+o+'" does not match URL "'+i+'"'):e===404?(f="Not Found",p='No route matches URL "'+i+'"'):e===405&&(f="Method Not Allowed",s&&i&&o?p="You made a "+s.toUpperCase()+' request to "'+i+'" but '+('did not provide an `action` for route "'+o+'", ')+"so there is no way to handle the request.":s&&(p='Invalid request method "'+s.toUpperCase()+'"')),new ql(e||500,f,new Error(p),!0)}function yl(e){let n=Object.entries(e);for(let i=n.length-1;i>=0;i--){let[o,s]=n[i];if(Yi(s))return{key:o,result:s}}}function Qg(e){let n=typeof e=="string"?_i(e):e;return Ji(Ct({},n,{hash:""}))}function Rw(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function Iw(e){return Kg(e.result)&&Cw.has(e.result.status)}function Ci(e){return e.type===ot.deferred}function An(e){return e.type===ot.error}function Yi(e){return(e&&e.type)===ot.redirect}function Mm(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Aw(e){let n=e;return n&&typeof n=="object"&&typeof n.data=="object"&&typeof n.subscribe=="function"&&typeof n.cancel=="function"&&typeof n.resolveData=="function"}function Kg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Fw(e){return xw.has(e.toLowerCase())}function or(e){return yw.has(e.toLowerCase())}async function $w(e,n,i,o,s){let u=Object.entries(n);for(let d=0;dm?.route.id===f);if(!y)continue;let w=o.find(m=>m.route.id===y.route.id),C=w!=null&&!Gg(w,y)&&(s&&s[y.route.id])!==void 0;Ci(p)&&C&&await nf(p,i,!1).then(m=>{m&&(n[f]=m)})}}async function zw(e,n,i){for(let o=0;oy?.route.id===u)&&Ci(f)&&(Ke(d,"Expected an AbortController for revalidating fetcher deferred result"),await nf(f,d.signal,!0).then(y=>{y&&(n[s]=y)}))}}async function nf(e,n,i){if(i===void 0&&(i=!1),!await e.deferredData.resolveData(n)){if(i)try{return{type:ot.data,data:e.deferredData.unwrappedData}}catch(s){return{type:ot.error,error:s}}return{type:ot.data,data:e.deferredData.data}}}function rf(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function qa(e,n){let i=typeof n=="string"?_i(n).search:n.search;if(e[e.length-1].route.index&&rf(i||""))return e[e.length-1];let o=Vg(e);return o[o.length-1]}function Lm(e){let{formMethod:n,formAction:i,formEncType:o,text:s,formData:u,json:d}=e;if(!(!n||!i||!o)){if(s!=null)return{formMethod:n,formAction:i,formEncType:o,formData:void 0,json:void 0,text:s};if(u!=null)return{formMethod:n,formAction:i,formEncType:o,formData:u,json:void 0,text:void 0};if(d!==void 0)return{formMethod:n,formAction:i,formEncType:o,formData:void 0,json:d,text:void 0}}}function td(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Bw(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function Oa(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function Uw(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function xi(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 Hw(e,n){try{let i=e.sessionStorage.getItem(Wg);if(i){let o=JSON.parse(i);for(let[s,u]of Object.entries(o||{}))u&&Array.isArray(u)&&n.set(s,new Set(u||[]))}}catch{}}function Vw(e,n){if(n.size>0){let i={};for(let[o,s]of n)i[o]=[...s];try{e.sessionStorage.setItem(Wg,JSON.stringify(i))}catch(o){Ho(!1,"Failed to save applied view transitions in sessionStorage ("+o+").")}}}/** + * React Router v6.30.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var n=1;n{f.current=!0}),v.useCallback(function(y,w){if(w===void 0&&(w={}),!f.current)return;if(typeof y=="number"){o.go(y);return}let C=ef(y,JSON.parse(d),u,w.relative==="path");e==null&&n!=="/"&&(C.pathname=C.pathname==="/"?n:Wr([n,C.pathname])),(w.replace?o.replace:o.push)(C,w.state,w)},[n,o,d,u,e])}const Gw=v.createContext(null);function Zw(e){let n=v.useContext(Qr).outlet;return n&&v.createElement(Gw.Provider,{value:e},n)}function bP(){let{matches:e}=v.useContext(Qr),n=e[e.length-1];return n?n.params:{}}function e0(e,n){let{relative:i}=n===void 0?{}:n,{future:o}=v.useContext(ro),{matches:s}=v.useContext(Qr),{pathname:u}=Ko(),d=JSON.stringify(Jd(s,o.v7_relativeSplatPath));return v.useMemo(()=>ef(e,JSON.parse(d),u,i==="path"),[e,d,u,i])}function Qw(e,n,i,o){us()||Ke(!1);let{navigator:s}=v.useContext(ro),{matches:u}=v.useContext(Qr),d=u[u.length-1],f=d?d.params:{};d&&d.pathname;let p=d?d.pathnameBase:"/";d&&d.route;let y=Ko(),w;w=y;let C=w.pathname||"/",m=C;if(p!=="/"){let _=p.replace(/^\//,"").split("/");m="/"+C.replace(/^\//,"").split("/").slice(_.length).join("/")}let x=Gi(e,{pathname:m});return ex(x&&x.map(_=>Object.assign({},_,{params:Object.assign({},f,_.params),pathname:Wr([p,s.encodeLocation?s.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?p:Wr([p,s.encodeLocation?s.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),u,i,o)}function Kw(){let e=ix(),n=Ya(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},n),i?v.createElement("pre",{style:s},i):null,null)}const Yw=v.createElement(Kw,null);class Xw extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){console.error("React Router caught the following error during render",n,i)}render(){return this.state.error!==void 0?v.createElement(Qr.Provider,{value:this.props.routeContext},v.createElement(Xg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Jw(e){let{routeContext:n,match:i,children:o}=e,s=v.useContext(ou);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),v.createElement(Qr.Provider,{value:n},o)}function ex(e,n,i,o){var s;if(n===void 0&&(n=[]),i===void 0&&(i=null),o===void 0&&(o=null),e==null){var u;if(!i)return null;if(i.errors)e=i.matches;else if((u=o)!=null&&u.v7_partialHydration&&n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let d=e,f=(s=i)==null?void 0:s.errors;if(f!=null){let w=d.findIndex(C=>C.route.id&&f?.[C.route.id]!==void 0);w>=0||Ke(!1),d=d.slice(0,Math.min(d.length,w+1))}let p=!1,y=-1;if(i&&o&&o.v7_partialHydration)for(let w=0;w=0?d=d.slice(0,y+1):d=[d[0]];break}}}return d.reduceRight((w,C,m)=>{let x,E=!1,_=null,N=null;i&&(x=f&&C.route.id?f[C.route.id]:void 0,_=C.route.errorElement||Yw,p&&(y<0&&m===0?(ax("route-fallback"),E=!0,N=null):y===m&&(E=!0,N=C.route.hydrateFallbackElement||null)));let P=n.concat(d.slice(0,m+1)),L=()=>{let $;return x?$=_:E?$=N:C.route.Component?$=v.createElement(C.route.Component,null):C.route.element?$=C.route.element:$=w,v.createElement(Jw,{match:C,routeContext:{outlet:w,matches:P,isDataRoute:i!=null},children:$})};return i&&(C.route.ErrorBoundary||C.route.errorElement||m===0)?v.createElement(Xw,{location:i.location,revalidation:i.revalidation,component:_,error:x,children:L(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):L()},null)}var t0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(t0||{}),n0=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}(n0||{});function tx(e){let n=v.useContext(ou);return n||Ke(!1),n}function nx(e){let n=v.useContext(Yg);return n||Ke(!1),n}function rx(e){let n=v.useContext(Qr);return n||Ke(!1),n}function r0(e){let n=rx(),i=n.matches[n.matches.length-1];return i.route.id||Ke(!1),i.route.id}function ix(){var e;let n=v.useContext(Xg),i=nx(),o=r0();return n!==void 0?n:(e=i.errors)==null?void 0:e[o]}function ox(){let{router:e}=tx(t0.UseNavigateStable),n=r0(n0.UseNavigateStable),i=v.useRef(!1);return Jg(()=>{i.current=!0}),v.useCallback(function(s,u){u===void 0&&(u={}),i.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Wl({fromRouteId:n},u)))},[e,n])}const Dm={};function ax(e,n,i){Dm[e]||(Dm[e]=!0)}function sx(e,n){e?.v7_startTransition,e?.v7_relativeSplatPath===void 0&&(!n||n.v7_relativeSplatPath),n&&(n.v7_fetcherPersist,n.v7_normalizeFormMethod,n.v7_partialHydration,n.v7_skipActionErrorRevalidation)}function lx(e){return Zw(e.context)}function ux(e){let{basename:n="/",children:i=null,location:o,navigationType:s=Ot.Pop,navigator:u,static:d=!1,future:f}=e;us()&&Ke(!1);let p=n.replace(/^\/*/,"/"),y=v.useMemo(()=>({basename:p,navigator:u,static:d,future:Wl({v7_relativeSplatPath:!1},f)}),[p,f,u,d]);typeof o=="string"&&(o=_i(o));let{pathname:w="/",search:C="",hash:m="",state:x=null,key:E="default"}=o,_=v.useMemo(()=>{let N=Qo(w,p);return N==null?null:{location:{pathname:N,search:C,hash:m,state:x,key:E},navigationType:s}},[p,w,C,m,x,E,s]);return _==null?null:v.createElement(ro.Provider,{value:y},v.createElement(of.Provider,{children:i,value:_}))}new Promise(()=>{});function cx(e){let n={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(n,{element:v.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n}/** + * React Router DOM v6.30.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(i[s]=e[s]);return i}function fx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hx(e,n){return e.button===0&&(!n||n==="_self")&&!fx(e)}function Nd(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,i)=>{let o=e[i];return n.concat(Array.isArray(o)?o.map(s=>[i,s]):[[i,o]])},[]))}function px(e,n){let i=Nd(e);return n&&n.forEach((o,s)=>{i.has(s)||n.getAll(s).forEach(u=>{i.append(s,u)})}),i}const mx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gx="6";try{window.__reactRouterVersion=gx}catch{}function vx(e,n){return Ew({basename:n?.basename,future:Xa({},n?.future,{v7_prependBasename:!0}),history:Q1({window:n?.window}),hydrationData:n?.hydrationData||yx(),routes:e,mapRouteProperties:cx,dataStrategy:n?.dataStrategy,patchRoutesOnNavigation:n?.patchRoutesOnNavigation,window:n?.window}).initialize()}function yx(){var e;let n=(e=window)==null?void 0:e.__staticRouterHydrationData;return n&&n.errors&&(n=Xa({},n,{errors:wx(n.errors)})),n}function wx(e){if(!e)return null;let n=Object.entries(e),i={};for(let[o,s]of n)if(s&&s.__type==="RouteErrorResponse")i[o]=new ql(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let u=window[s.__subType];if(typeof u=="function")try{let d=new u(s.message);d.stack="",i[o]=d}catch{}}if(i[o]==null){let u=new Error(s.message);u.stack="",i[o]=u}}else i[o]=s;return i}const xx=v.createContext({isTransitioning:!1}),Cx=v.createContext(new Map),Sx="startTransition",Om=$1[Sx],_x="flushSync",Rm=Z1[_x];function bx(e){Om?Om(e):e()}function Ra(e){Rm?Rm(e):e()}class Ex{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",n(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",i(o))}})}}function Nx(e){let{fallbackElement:n,router:i,future:o}=e,[s,u]=v.useState(i.state),[d,f]=v.useState(),[p,y]=v.useState({isTransitioning:!1}),[w,C]=v.useState(),[m,x]=v.useState(),[E,_]=v.useState(),N=v.useRef(new Map),{v7_startTransition:P}=o||{},L=v.useCallback(K=>{P?bx(K):K()},[P]),$=v.useCallback((K,ce)=>{let{deletedFetchers:de,flushSync:I,viewTransitionOpts:U}=ce;K.fetchers.forEach((ne,he)=>{ne.data!==void 0&&N.current.set(he,ne.data)}),de.forEach(ne=>N.current.delete(ne));let W=i.window==null||i.window.document==null||typeof i.window.document.startViewTransition!="function";if(!U||W){I?Ra(()=>u(K)):L(()=>u(K));return}if(I){Ra(()=>{m&&(w&&w.resolve(),m.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:U.currentLocation,nextLocation:U.nextLocation})});let ne=i.window.document.startViewTransition(()=>{Ra(()=>u(K))});ne.finished.finally(()=>{Ra(()=>{C(void 0),x(void 0),f(void 0),y({isTransitioning:!1})})}),Ra(()=>x(ne));return}m?(w&&w.resolve(),m.skipTransition(),_({state:K,currentLocation:U.currentLocation,nextLocation:U.nextLocation})):(f(K),y({isTransitioning:!0,flushSync:!1,currentLocation:U.currentLocation,nextLocation:U.nextLocation}))},[i.window,m,w,N,L]);v.useLayoutEffect(()=>i.subscribe($),[i,$]),v.useEffect(()=>{p.isTransitioning&&!p.flushSync&&C(new Ex)},[p]),v.useEffect(()=>{if(w&&d&&i.window){let K=d,ce=w.promise,de=i.window.document.startViewTransition(async()=>{L(()=>u(K)),await ce});de.finished.finally(()=>{C(void 0),x(void 0),f(void 0),y({isTransitioning:!1})}),x(de)}},[L,d,w,i.window]),v.useEffect(()=>{w&&d&&s.location.key===d.location.key&&w.resolve()},[w,m,s.location,d]),v.useEffect(()=>{!p.isTransitioning&&E&&(f(E.state),y({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),_(void 0))},[p.isTransitioning,E]),v.useEffect(()=>{},[]);let q=v.useMemo(()=>({createHref:i.createHref,encodeLocation:i.encodeLocation,go:K=>i.navigate(K),push:(K,ce,de)=>i.navigate(K,{state:ce,preventScrollReset:de?.preventScrollReset}),replace:(K,ce,de)=>i.navigate(K,{replace:!0,state:ce,preventScrollReset:de?.preventScrollReset})}),[i]),Z=i.basename||"/",fe=v.useMemo(()=>({router:i,navigator:q,static:!1,basename:Z}),[i,q,Z]),O=v.useMemo(()=>({v7_relativeSplatPath:i.future.v7_relativeSplatPath}),[i.future.v7_relativeSplatPath]);return v.useEffect(()=>sx(o,i.future),[o,i.future]),v.createElement(v.Fragment,null,v.createElement(ou.Provider,{value:fe},v.createElement(Yg.Provider,{value:s},v.createElement(Cx.Provider,{value:N.current},v.createElement(xx.Provider,{value:p},v.createElement(ux,{basename:Z,location:s.location,navigationType:s.historyAction,navigator:q,future:O},s.initialized||i.future.v7_partialHydration?v.createElement(kx,{routes:i.routes,future:i.future,state:s}):n))))),null)}const kx=v.memo(Tx);function Tx(e){let{routes:n,future:i,state:o}=e;return Qw(n,void 0,o,i)}const jx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Px=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mx=v.forwardRef(function(n,i){let{onClick:o,relative:s,reloadDocument:u,replace:d,state:f,target:p,to:y,preventScrollReset:w,viewTransition:C}=n,m=dx(n,mx),{basename:x}=v.useContext(ro),E,_=!1;if(typeof y=="string"&&Px.test(y)&&(E=y,jx))try{let $=new URL(window.location.href),q=y.startsWith("//")?new URL($.protocol+y):new URL(y),Z=Qo(q.pathname,x);q.origin===$.origin&&Z!=null?y=Z+q.search+q.hash:_=!0}catch{}let N=qw(y,{relative:s}),P=Lx(y,{replace:d,state:f,target:p,preventScrollReset:w,relative:s,viewTransition:C});function L($){o&&o($),$.defaultPrevented||P($)}return v.createElement("a",Xa({},m,{href:E||N,onClick:_||u?o:L,ref:i,target:p}))});var Im;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Im||(Im={}));var Am;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Am||(Am={}));function Lx(e,n){let{target:i,replace:o,state:s,preventScrollReset:u,relative:d,viewTransition:f}=n===void 0?{}:n,p=cs(),y=Ko(),w=e0(e,{relative:d});return v.useCallback(C=>{if(hx(C,i)){C.preventDefault();let m=o!==void 0?o:Ji(y)===Ji(w);p(e,{replace:m,state:s,preventScrollReset:u,relative:d,viewTransition:f})}},[y,p,w,o,s,i,e,u,d,f])}function Dx(e){let n=v.useRef(Nd(e)),i=v.useRef(!1),o=Ko(),s=v.useMemo(()=>px(o.search,i.current?null:n.current),[o.search]),u=cs(),d=v.useCallback((f,p)=>{const y=Nd(typeof f=="function"?f(s):f);i.current=!0,u("?"+y,p)},[u,s]);return[s,d]}function Ox(e){return typeof e=="number"?Number.isNaN(e):!1}function $e(e){return e==null||Ox(e)}function Mt(e){return!$e(e)}function Rx(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $e(e)||e===!1||n.includes(e)}function af(e){return Rx(e,[""])}function ds(e){return!af(e)}const Ix=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Ix.reduce((e,n)=>({...e,[`[object ${n}]`]:n.toLowerCase()}),{});const Ax={sorting:void 0,setSorting:e=>{console.warn("Trying to set to ",e)}},EP=v.createContext(Ax),Fx=v.createContext({alerts:[],addAlert:()=>{console.warn("AlertContext::addAlert called before it was initialized")},removeAlert:()=>{console.warn("AlertContext::removeAlert called before it was initialized")},updateAlert:()=>{console.warn("AlertContext::updateAlert called before it was initialized")}}),NP=v.createContext({setShowDropdown:()=>{console.warn("DropdownMenuContext::setShowDropdown called without a provider")}}),i0=v.createContext({currentLanguage:"en",setCurrentLanguage:()=>{console.warn("LanguageContext::setCurrentLanguage called without a provider")},languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{console.warn("LanguageContext::setLanguageNamespaceStatus called without a provider")},strings:{},setStrings:()=>{console.warn("LanguageContext::setStrings called without a provider")},registerNamespace:()=>{console.warn("LanguageContext::registerNamespace called without a provider")}});v.createContext({variant:"primary"});function $x(e){return typeof e=="number"?Number.isNaN(e):!1}function zx(e){return e==null||$x(e)}function Bx(e,n){if(zx(e))return;const i={},o=[];return e.forEach(s=>{const u=n?n(s):JSON.stringify(s);i[u]||(i[u]=!0,o.push(s))}),e.length===o.length?e:o}const Ux=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Ux.reduce((e,n)=>({...e,[`[object ${n}]`]:n.toLowerCase()}),{});function Oe(){for(var e=arguments.length,n=new Array(e),i=0;i{d&&d(u,C)},[d,u]);return g.jsx("button",{ref:s,name:typeof u=="string"?u:void 0,type:p,className:Oe(Fm.rawButton,f&&Fm.focused,i),disabled:o,onClick:d?w:void 0,...y,children:n})}function Ia(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";if($e(e))return"";const o=String(e);return o.length>=n?o:Array(n-o.length+1).join(i)+o}function qx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i="";const o=n?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789":"abcdefghijklmnopqrstuvwxyz0123456789";for(let s=0;sn+i,0)}function lf(e,n,i){const o=Math.min(n,i),s=Math.max(n,i);return Math.max(o,Math.min(s,e))}function wr(e){const[n]=v.useState(()=>`_${qx()}`),{spacing:i,variant:o="md",mode:s="gap",inner:u}=e;return v.useEffect(()=>{const d=["var(--go-ui-spacing-4xs)","var(--go-ui-spacing-3xs)","var(--go-ui-spacing-2xs)","var(--go-ui-spacing-xs)","var(--go-ui-spacing-sm)","var(--go-ui-spacing-md)","var(--go-ui-spacing-lg)","var(--go-ui-spacing-xl)","var(--go-ui-spacing-2xl)","var(--go-ui-spacing-3xl)","var(--go-ui-spacing-4xl)"];let f="0";if(i!=="none"){const w={condensed:-3,compact:-2,cozy:-1,default:0,comfortable:1,relaxed:2,loose:3},C={xs:3,sm:4,md:5,lg:6,xl:7},m=u?C[o]-1:C[o],x=w[i];f=d[lf(m+x,0,d.length-1)]}if($e(i))return;const p=document.createElement("style");if(document.head.appendChild(p),!p.sheet){p.remove();return}let y;return s==="gap"||s==="grid-gap"?y=`gap: ${f};`:s==="padding-h"?y=`padding-left: ${f}; padding-right: ${f};`:s==="padding-v"&&(y=`padding-top: ${f}; padding-bottom: ${f};`),p.sheet.insertRule(`.${n} { ${y} }`),()=>{p.remove()}},[i,o,s,u,n]),n}const Qx="_basic-layout_v9jro_1",Kx="_with-wrap_v9jro_5",Yx="_icons-container_v9jro_9",Xx="_children-container_v9jro_14",Jx="_actions-container_v9jro_19",Aa={basicLayout:Qx,withWrap:Kx,iconsContainer:Yx,childrenContainer:Xx,actionsContainer:Jx};function fs(e){const{className:n,icons:i,children:o,actions:s,iconsContainerClassName:u,childrenContainerClassName:d,actionsContainerClassName:f,withoutWrap:p,spacing:y="default",variant:w="md"}=e,C=wr({spacing:y,variant:w,mode:"gap"}),m=wr({spacing:y,variant:w,mode:"gap",inner:!0}),x=Oe(Aa.basicLayout,!p&&Aa.withWrap,C,n),E=$e(i)&&$e(o)&&$e(s)?null:g.jsxs(g.Fragment,{children:[i&&g.jsx("div",{className:Oe(Aa.iconsContainer,m,u),children:i}),g.jsx("div",{className:Oe(Aa.childrenContainer,m,d),children:o}),s&&g.jsx("div",{className:Oe(Aa.actionsContainer,m,f),children:s})]});return{containerClassName:x,content:E}}const eC="_button_18a84_1",tC="_ellipsized_18a84_29",nC="_children_18a84_32",rC="_overflow-wrapper_18a84_36",iC="_primary_18a84_44",oC="_secondary_18a84_45",aC="_no-spacing_18a84_50",sC="_condensed-spacing_18a84_54",lC="_compact-spacing_18a84_58",uC="_cozy-spacing_18a84_62",cC="_default-spacing_18a84_66",dC="_comfortable-spacing_18a84_70",fC="_relaxed-spacing_18a84_74",hC="_loose-spacing_18a84_78",pC="_disabled_18a84_88",mC="_tertiary_18a84_116",gC="_tertiary-on-dark_18a84_130",vC="_dropdown-item_18a84_144",Vt={button:eC,ellipsized:tC,children:nC,overflowWrapper:rC,primary:iC,secondary:oC,noSpacing:aC,condensedSpacing:sC,compactSpacing:lC,cozySpacing:uC,defaultSpacing:cC,comfortableSpacing:dC,relaxedSpacing:fC,looseSpacing:hC,disabled:pC,tertiary:mC,tertiaryOnDark:gC,dropdownItem:vC},yC={primary:Vt.primary,secondary:Vt.secondary,tertiary:Vt.tertiary,"tertiary-on-dark":Vt.tertiaryOnDark,"dropdown-item":Vt.dropdownItem},wC={none:Vt.noSpacing,condensed:Vt.condensedSpacing,compact:Vt.compactSpacing,cozy:Vt.cozySpacing,default:Vt.defaultSpacing,comfortable:Vt.comfortableSpacing,relaxed:Vt.relaxedSpacing,loose:Vt.looseSpacing};function xC(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:p,variant:y="primary",spacing:w="default",ellipsize:C}=e,m=Oe(Vt.button,yC[y],wC[w],d&&Vt.disabled,C&&Vt.ellipsized,u),x=v.useMemo(()=>C?g.jsx("div",{className:Vt.overflowWrapper,children:o}):o,[C,o]),{content:E,containerClassName:_}=fs({className:m,icons:f,children:x,actions:n,iconsContainerClassName:p,childrenContainerClassName:Oe(Vt.children,s),actionsContainerClassName:i,spacing:w,withoutWrap:!0,variant:"xs"});return{className:_,children:E,disabled:d}}function Ue(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:p,name:y,onClick:w,variant:C,type:m="button",spacing:x,...E}=e,_=v.useCallback((P,L)=>{w&&w(P,L)},[w]),N=xC({variant:C,className:u,actionsContainerClassName:i,iconsContainerClassName:p,childrenContainerClassName:s,children:o,icons:f,actions:n,spacing:x,disabled:d||m!=="submit"&&$e(w)});return g.jsx(sf,{name:y,type:m,onClick:_,...E,...N})}const CC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#alert-line_svg__a)"},v.createElement("path",{d:"m12.866 3 9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0Zm-8.66 16h15.588L12 5.5 4.206 19ZM11 16h2v2h-2v-2Zm0-7h2v5h-2V9Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"alert-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),o0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56","aria-hidden":"true",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#analysis_svg__a)"},v.createElement("path",{d:"m12.384 37.796-7.179 7.18a4.115 4.115 0 0 0 5.82 5.819l7.179-7.18a24.009 24.009 0 0 1-5.82-5.819Zm13.619-13.798h-4a1.003 1.003 0 0 0-1 1v4.94a12.572 12.572 0 0 0 6 5.518V24.998a1.003 1.003 0 0 0-1-1Zm15.998-6h-4a1.003 1.003 0 0 0-1 1v16.458a12.572 12.572 0 0 0 6-5.519V18.998a1.003 1.003 0 0 0-1-1Zm-7.999 3h-4a1.003 1.003 0 0 0-1 1v14.138c1.972.48 4.029.48 6 0V21.998a1.003 1.003 0 0 0-1-1Z"}),v.createElement("path",{d:"M32.002 4a19.998 19.998 0 1 0 0 39.995 19.998 19.998 0 0 0 0-39.995Zm10.999 30.177a14.998 14.998 0 1 1-21.998-20.394 14.998 14.998 0 0 1 21.998 20.394Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"analysis_svg__a"},v.createElement("path",{d:"M0 0h56v56H0z"})))),SC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-down-small-fill_svg__a)"},v.createElement("path",{d:"m12 16-6-6h12l-6 6Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-down-small-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),_C=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-right-line_svg__a)"},v.createElement("path",{d:"m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2h12.172Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-right-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),bC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-up-small-fill_svg__a)"},v.createElement("path",{d:"m12 8 6 6H6l6-6Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-up-small-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),EC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#check-double-fill_svg__a)"},v.createElement("path",{d:"m11.602 13.76 1.412 1.412 8.466-8.466 1.414 1.414-9.88 9.88-6.364-6.364 1.414-1.414 2.125 2.125 1.413 1.412Zm.002-2.829 4.952-4.952 1.41 1.41-4.952 4.952-1.41-1.41Zm-2.827 5.656L7.364 18 1 11.636l1.414-1.414 1.413 1.412-.001.002 4.951 4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"check-double-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),NC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#check-line_svg__a)"},v.createElement("path",{d:"m10 15.171 9.192-9.192 1.415 1.414L10 18l-6.364-6.364 1.414-1.414 4.95 4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"check-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),kC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-blank-circle-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-blank-circle-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),TC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-blank-line_svg__a)"},v.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-blank-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),jC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-line_svg__a)"},v.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm6.003 11L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),PC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#chevron-left-line_svg__a)"},v.createElement("path",{d:"M11.05 12 16 7.05l-1.413-1.414L8.223 12l6.364 6.364L16 16.95 11.05 12Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"chevron-left-line_svg__a"},v.createElement("path",{d:"M0 24h24V0H0z"})))),MC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#chevron-right-line_svg__a)"},v.createElement("path",{d:"m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414 4.95-4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"chevron-right-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),LC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("path",{fillRule:"evenodd",d:"m13.057 11.996 4.716-4.716a.75.75 0 1 0-1.06-1.06l-4.717 4.716L7.28 6.22a.75.75 0 1 0-1.06 1.06l4.716 4.716-4.716 4.716a.75.75 0 1 0 1.06 1.06l4.716-4.715 4.716 4.716a.748.748 0 0 0 1.061 0 .75.75 0 0 0 0-1.061l-4.716-4.716Z",clipRule:"evenodd"})),uf=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#delete-bin-line_svg__a)"},v.createElement("path",{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3Zm1 2H6v12h12V8Zm-9 3h2v6H9v-6Zm4 0h2v6h-2v-6ZM9 4v2h6V4H9Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"delete-bin-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),DC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 32 32",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("path",{d:"M17.949 6.651a1.834 1.834 0 1 0-1.833 1.834c1.01 0 1.833-.822 1.833-1.834Zm-7.806 15.847a1.836 1.836 0 0 0-1.833 1.834c0 1.01.822 1.832 1.833 1.832a1.835 1.835 0 0 0 1.833-1.832 1.836 1.836 0 0 0-1.833-1.834Zm5.973-10.343a2.506 2.506 0 1 0 .001 5.012 2.506 2.506 0 0 0-.001-5.012Zm5.973 10.343a1.834 1.834 0 1 0 1.833 1.834 1.836 1.836 0 0 0-1.833-1.834Z"}),v.createElement("path",{fillRule:"evenodd",d:"M0 16C0 7.163 7.164 0 16 0c8.837 0 16 7.163 16 16 0 8.836-7.164 16-16 16S0 24.836 0 16Zm22.089 11.044a2.716 2.716 0 0 1-2.713-2.713c0-.828.375-1.57.962-2.068l-2.589-4.324a3.643 3.643 0 0 1-3.266 0l-2.589 4.324a2.7 2.7 0 0 1 .962 2.068 2.716 2.716 0 0 1-2.713 2.713A2.716 2.716 0 0 1 7.43 24.33a2.716 2.716 0 0 1 2.713-2.713c.352 0 .688.07.997.192l2.606-4.354a3.664 3.664 0 0 1 1.93-6.43v-1.7a2.714 2.714 0 0 1-2.273-2.674 2.716 2.716 0 0 1 2.714-2.713 2.716 2.716 0 0 1 2.712 2.713 2.714 2.714 0 0 1-2.272 2.674v1.7a3.664 3.664 0 0 1 3.226 3.636 3.651 3.651 0 0 1-1.297 2.794l2.607 4.354c.31-.122.645-.192.997-.192a2.716 2.716 0 0 1 2.712 2.713 2.716 2.716 0 0 1-2.713 2.713ZM4.497 14.677c0-1.958 1.228-3.59 3.282-3.59 1.497 0 2.754.798 2.936 2.342H9.544c-.114-.901-.901-1.363-1.765-1.363-1.47 0-2.083 1.295-2.083 2.61 0 1.316.613 2.61 2.083 2.61 1.227.02 1.899-.719 1.919-1.88H7.875v-.912h2.917v3.609h-.768l-.182-.806c-.643.73-1.227.969-2.062.969-2.055 0-3.283-1.632-3.283-3.59Z",clipRule:"evenodd"})),OC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#menu-line_svg__a)"},v.createElement("path",{d:"M3 4h18v2H3V4Zm0 7h18v2H3v-2Zm0 7h18v2H3v-2Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"menu-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),RC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#question-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm-1-5h2v2h-2v-2Zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.5 3.5 0 1 1 13 13.355Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"question-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),IC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#radio-button-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm0-3a5 5 0 1 1 0-10 5 5 0 0 1 0 10Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"radio-button-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),AC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#search-line_svg__a)"},v.createElement("path",{d:"m18.031 16.617 4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"search-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),FC=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 25 25",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("path",{d:"M8.775 9.71a2.284 2.284 0 0 0-2.2 1.66H4.623a.623.623 0 0 0 0 1.247h1.952a2.284 2.284 0 0 0 4.401 0h8.804a.623.623 0 0 0 0-1.246h-8.804a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.076 1.038 1.038 0 0 1 0 2.076ZM15.627 4a2.284 2.284 0 0 0-2.2 1.661H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 1 0 0-1.246h-1.952A2.284 2.284 0 0 0 15.628 4Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Zm0 8.098a2.284 2.284 0 0 0-2.2 1.66H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 0 0 0-1.245h-1.952a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Z"})),a0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#upload-cloud-line_svg__a)"},v.createElement("path",{d:"M1 14.5a6.496 6.496 0 0 1 3.064-5.519 8.001 8.001 0 0 1 15.872 0 6.5 6.5 0 0 1-2.936 12l-10 .02c-3.356-.275-6-3.079-6-6.5Zm15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503-.12-.942a6 6 0 0 0-11.903 0l-.12.942-.805.503a4.5 4.5 0 0 0 2.029 8.31l.173.012h9.35l.173-.013ZM13 13v4h-2v-4H8l4-5 4 5h-3Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"upload-cloud-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),$C="_spinner_50bgg_1",zC="_spinner-bounce_50bgg_9",wl={spinner:$C,spinnerBounce:zC};function $o(e){const{className:n}=e;return g.jsxs("div",{className:Oe(wl.spinner,n),children:[g.jsx("div",{className:wl.spinnerBounce}),g.jsx("div",{className:wl.spinnerBounce}),g.jsx("div",{className:wl.spinnerBounce})]})}const BC="_message_176iw_1",UC="_icon_176iw_13",HC="_spinner_176iw_17",VC="_title_176iw_22",qC="_errored_176iw_27",WC="_compact_176iw_33",vi={message:BC,icon:UC,spinner:HC,title:VC,errored:qC,compact:WC};function GC(e){const{className:n,pending:i=!1,variant:o,icon:s,title:u,description:d,actions:f,compact:p=!1,errored:y,erroredTitle:w,erroredDescription:C}=e,m=Mt(y?w:u),x=Mt(y?C:d);return g.jsxs("div",{className:Oe(vi.message,o==="error"&&vi.errored,p&&vi.compact,n),children:[(s||i)&&g.jsxs("div",{className:vi.icon,children:[i&&g.jsx($o,{className:vi.spinner}),!i&&s]}),m&&g.jsx("div",{className:vi.title,children:y?w:u}),x&&g.jsx("div",{className:vi.description,children:d}),f&&g.jsx("div",{className:vi.actions,children:f})]})}function s0(e){const{strings:n,registerNamespace:i}=v.useContext(i0);return v.useEffect(()=>{i(e.namespace,e.strings)},[i,e]),n[e.namespace]??e.strings}const ZC="common",QC={messageTitleFetching:"Fetching data...",messageTitleFilteredDataNotAvailable:"Data is not available for selected filter!",messageTitleDataNotAvailable:"Data is not available!",messageTitleDataFailedToFetch:"Failed to fetch data!"},KC={namespace:ZC,strings:QC},YC="_default-message_wu986_1",XC="_overlay_wu986_2",$m={defaultMessage:YC,overlay:XC};function l0(e){const{className:n,compact:i,pending:o,overlayPending:s,filtered:u,empty:d,errored:f,emptyMessage:p,filteredEmptyMessage:y,pendingMessage:w,errorMessage:C}=e,m=s0(KC),x=v.useMemo(()=>o?w??m.messageTitleFetching:f?C??m.messageTitleDataFailedToFetch:u?y??m.messageTitleFilteredDataNotAvailable:d?p??m.messageTitleDataNotAvailable:null,[d,o,u,f,p,y,w,C,m]);return!d&&!o&&!f?null:g.jsx(GC,{className:Oe($m.defaultMessage,o&&s&&$m.overlay,n),icon:g.jsx(o0,{}),compact:i,title:x,pending:o})}const JC="_filter-bar_16xsj_1",eS="_grid-with-actions_16xsj_6",tS="_grid_16xsj_6",nS="_actions_16xsj_15",Wa={filterBar:JC,gridWithActions:eS,grid:tS,actions:nS};function zm(e){const{grid:n,actions:i,spacing:o="default"}=e,s=wr({spacing:o,mode:"gap"}),u=wr({spacing:o,mode:"gap",inner:!0}),d=wr({spacing:o,mode:"grid-gap"});return $e(n)&&$e(i)?null:g.jsxs("div",{className:Oe(Wa.gridWithActions,s),children:[g.jsx("div",{className:Oe(Wa.grid,d),children:n}),Mt(i)&&g.jsx("div",{className:Oe(Wa.actions,u),children:i})]})}function rS(e){const{className:n,filters:i,filterActions:o,search:s,searchActions:u,filterPreview:d,spacing:f}=e;return $e(i)&&$e(o)&&$e(s)&&$e(u)&&$e(d)?null:g.jsxs("div",{className:Oe(Wa.filterBar,n),children:[g.jsx(zm,{grid:i,actions:o,spacing:f}),g.jsx(zm,{grid:s,actions:u,spacing:f}),Mt(d)&&g.jsx("div",{className:Wa.filterPreview,children:d})]})}function iS(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:p,withoutWrap:y}=e,{content:w,containerClassName:C}=fs({actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:p,withoutWrap:y});return g.jsx("div",{className:C,children:w})}function oS(e,n,i){const[o,s]=v.useState(()=>e);return v.useEffect(()=>{const u=setTimeout(()=>{s(e)},300);return()=>{clearTimeout(u)}},[e,n,i]),o}function aS(e,n=!1){const[i,o]=v.useState(()=>{var s;const u=(s=e.current)==null?void 0:s.getBoundingClientRect();return{width:u?.width??0,height:u?.height??0}});return v.useEffect(()=>{const s=new ResizeObserver(d=>{const f=d.at(0),p=f?.contentRect;p&&o({width:p.width,height:p.height})}),u=e.current;return!n&&Mt(u)&&s.observe(u),()=>{!n&&Mt(u)&&s.unobserve(u)}},[n,e]),oS(i)}const sS="_heading_1uxwj_1",lS="_level-one_1uxwj_9",uS="_level-two_1uxwj_17",cS="_level-three_1uxwj_25",dS="_level-four_1uxwj_33",fS="_level-five_1uxwj_37",hS="_level-six_1uxwj_41",pS="_ellipsized-text_1uxwj_45",mS="_ellipsized_1uxwj_45",Vr={heading:sS,levelOne:lS,levelTwo:uS,levelThree:cS,levelFour:dS,levelFive:fS,levelSix:hS,ellipsizedText:pS,ellipsized:mS},gS={1:Vr.levelOne,2:Vr.levelTwo,3:Vr.levelThree,4:Vr.levelFour,5:Vr.levelFive,6:Vr.levelSix};function Qi(e){const{className:n,level:i=3,children:o,ellipsize:s}=e,u=`h${i}`,d=v.useRef(null),f=aS(d);return o?g.jsxs(u,{className:Oe(Vr.heading,s&&Vr.ellipsized,gS[i],n),ref:d,children:[s&&g.jsx("div",{className:Vr.ellipsizedText,style:{width:`${f.width}px`},title:typeof o=="string"?o:void 0,children:o}),!s&&o]}):null}const vS="_header_537v1_1",yS={header:vS};function wS(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,elementRef:d,ellipsizeHeading:f,heading:p,headingClassName:y,headingLevel:w,headingDescription:C,headingDescriptionContainerClassName:m,icons:x,iconsContainerClassName:E,headingSectionClassName:_,headingContainerClassName:N,wrapHeadingContent:P=!1,spacing:L="default"}=e,$=v.useMemo(()=>$e(p)&&$e(C)?null:g.jsxs(g.Fragment,{children:[g.jsx(Qi,{level:w,className:y,ellipsize:f,children:p}),C&&g.jsx("div",{className:m,children:C})]}),[p,f,C,y,m,w]),{content:q,containerClassName:Z}=fs({actions:n,actionsContainerClassName:i,children:$,childrenContainerClassName:N,className:_,icons:x,iconsContainerClassName:E,withoutWrap:!P,spacing:L,variant:"sm"}),fe=wr({spacing:L,inner:!0});return!q&&!o?null:g.jsxs("div",{className:Oe(yS.header,fe,u),ref:d,children:[q&&g.jsx("div",{className:Z,children:q}),o&&g.jsx("div",{className:s,children:o})]})}const xS="_container_lyve2_1",CS="_header_lyve2_8",SS="_centered-header-description-container_lyve2_11",_S="_centered-description_lyve2_16",bS="_with-border-and-header-background_lyve2_23",ES="_border_lyve2_33",NS="_content_lyve2_39",kS="_pending-overlaid_lyve2_42",TS="_message_lyve2_47",jS="_footer_lyve2_53",PS="_with-grid-view_lyve2_57",MS="_two-columns_lyve2_67",LS="_three-columns_lyve2_82",DS="_four-columns_lyve2_96",OS="_five-columns_lyve2_100",RS="_with-vertical-view_lyve2_105",IS="_with-overflow-in-content_lyve2_112",Ht={container:xS,header:CS,centeredHeaderDescriptionContainer:SS,centeredDescription:_S,withBorderAndHeaderBackground:bS,border:ES,content:NS,pendingOverlaid:kS,message:TS,footer:jS,withGridView:PS,twoColumns:MS,threeColumns:LS,fourColumns:DS,fiveColumns:OS,withVerticalView:RS,withOverflowInContent:IS},AS={2:Ht.twoColumns,3:Ht.threeColumns,4:Ht.fourColumns,5:Ht.fiveColumns};function ar(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,containerRef:d,contentViewType:f="default",ellipsizeHeading:p,filters:y,filterActions:w,footerActions:C,footerActionsContainerClassName:m,footerClassName:x,footerContent:E,footerContentClassName:_,footerIcons:N,headerClassName:P,headerDescription:L,withCenteredHeaderDescription:$,headerDescriptionContainerClassName:q,headerElementRef:Z,heading:fe,headingClassName:O,headingContainerClassName:K,headingDescription:ce,headingDescriptionContainerClassName:de,headingLevel:I,headingSectionClassName:U,icons:W,iconsContainerClassName:ne,numPreferredGridContentColumns:he=2,spacing:Ce="default",withHeaderBorder:be=!1,withFooterBorder:G=!1,withBorderAndHeaderBackground:ue=!1,withOverflowInContent:k=!1,withInternalPadding:H=!1,withoutWrapInHeading:oe=!1,withoutWrapInFooter:Se=!1,pending:se=!1,overlayPending:re=!1,empty:ee=!1,errored:Q=!1,filtered:Y=!1,compactMessage:nt=!1,errorMessage:tn,emptyMessage:Wt,pendingMessage:st,filteredEmptyMessage:St}=e,ut=N||E||C,wt=fe||n||W||L||ce,ht=wr({spacing:Ce}),pt=wr({spacing:Ce,mode:"padding-h"}),Nt=wr({spacing:Ce,mode:"padding-v"}),nn=wr({spacing:Ce,mode:"gap",inner:!0}),jn=v.useMemo(()=>$e(L)?null:$?g.jsx("div",{className:Ht.centeredDescription,children:L}):L,[L,$]);return!wt&&!y&&!o&&!ut&&!ee&&!se&&!Q&&!Y?null:g.jsxs("div",{ref:d,className:Oe(Ht.container,!ue&&ht,H&&Nt,k&&Ht.withOverflowInContent,ue&&Ht.withBorderAndHeaderBackground,f==="grid"&&Ht.withGridView,f==="grid"&&AS[he],f==="vertical"&&Ht.withVerticalView,u),children:[wt&&g.jsx(wS,{actions:n,className:Oe(Ht.header,ue&&Nt,(H||ue)&&pt,P),elementRef:Z,actionsContainerClassName:i,ellipsizeHeading:p,heading:fe,headingLevel:I,icons:W,iconsContainerClassName:ne,childrenContainerClassName:Oe($&&Ht.centeredHeaderDescriptionContainer,q),headingSectionClassName:U,headingClassName:O,headingContainerClassName:K,wrapHeadingContent:!oe,headingDescription:ce,headingDescriptionContainerClassName:de,spacing:Ce,children:jn}),be&&g.jsx("div",{className:Ht.border}),g.jsx(rS,{filters:y,filterActions:w,spacing:Ce,className:Oe(H&&pt)}),(o||ee||se||Q||Y)&&g.jsxs("div",{className:Oe(Ht.content,f!=="default"&&nn,(H||ue)&&pt,ue&&Nt,re&&se&&Ht.pendingOverlaid,s),children:[g.jsx(l0,{className:Ht.message,pending:se,filtered:Y,errored:Q,empty:ee,compact:nt,overlayPending:re,emptyMessage:Wt,filteredEmptyMessage:St,pendingMessage:st,errorMessage:tn}),!ee&&!Q&&(!se||re)&&o]}),ut&&G&&g.jsx("div",{className:Ht.border}),ut&&g.jsx(iS,{actions:C,icons:N,childrenContainerClassName:_,className:Oe(Ht.footer,H&&pt,ue&&Nt,x),actionsContainerClassName:m,spacing:Ce,withoutWrap:Se,children:E})]})}function FS(e){const{children:n,container:i=document.body,portalKey:o}=e;return g.jsx(g.Fragment,{children:Xd.createPortal(n,i,o)})}const $S="yyyy-MM-dd",kP="-",TP=108;function Ga(e,n,i){return $e(e)?void 0:e.reduce((o,s,u)=>{const d=n(s,u);return o[d]=i?i(s,d,u,o):s,o},{})}function cf(e,n){return function(i,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const u=Mt(i)?e(i):void 0,d=Mt(o)?e(o):void 0;return u===d?0:$e(u)?s*1:$e(d)?s*-1:s*n(u,d)}}const jP=cf(e=>e,(e,n)=>e.localeCompare(n)),PP=cf(e=>e,(e,n)=>e-n),zS=(e,n,i,o)=>i?cf(s=>s,(s,u)=>{const d=i.toLowerCase(),f=s.toLowerCase().indexOf(d),p=u.toLowerCase().indexOf(d);return f===p||f===-1&&p===-1?s.localeCompare(u):p===-1?-1:f===-1?1:f-p})(e,n,o):0,BS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],US=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var qr=function(e){return e.time="time",e.date="date",e}(qr||{});function Bm(e,n){let i,o;return n.forEach(s=>{const u=e.indexOf(s);if(u===-1)return;const d=u+s.length;(i===void 0||uo)&&(o=d)}),{start:i,end:o}}function HS(e){const{start:n,end:i}=Bm(e,["yyyy","yy","MMM","MM","dd","EEE"]),{start:o,end:s}=Bm(e,["hh","mm","ss","aaa"]),u=e.length,d=(f,p)=>f===void 0||p===void 0?"":e.substring(f,p);return n===void 0&&o===void 0?[{value:e}].filter(f=>f.value!==""):n===void 0?[{value:d(0,o)},{type:qr.time,value:d(o,s)},{value:d(s,u)}].filter(f=>f.value!==""):o===void 0?[{value:d(0,n)},{type:qr.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!==""):nf.value!==""):[{value:d(0,o)},{type:qr.time,value:d(o,s)},{value:d(s,n)},{type:qr.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!=="")}function VS(e,n){return e.map(i=>{if(i.type===qr.date){const o=n.getFullYear(),s=n.getMonth(),u=n.getDate(),d=US[n.getDay()],f={...i};return f.value=f.value.replace("yyyy",String(o)).replace("yy",String(o%100)).replace("MMM",BS[s]).replace("MM",Ia(s+1,2)).replace("EEE",d).replace("dd",Ia(u,2)),f}if(i.type===qr.time){const o=i.value.indexOf("aaa"),s=n.getHours(),u=o>=0?(s-1)%12+1:s,d=s>=12?"PM":"AM",f=n.getMinutes(),p=n.getSeconds(),y={...i};return y.value=y.value.replace("hh",Ia(u,2)).replace("mm",Ia(f,2)).replace("ss",Ia(p,2)).replace("aaa",d),y}return i})}function MP(e,n,i=!0){if($e(e)||$e(n))return;if(n===0)return 0;const o=e*100/n;return i?lf(o,0,100):o}function qS(e){if($e(e))return;const n=e.filter(Mt);if(n.length!==0)return n}function LP(e){const n=qS(e);if(!$e(n))return Zx(n)}function eo(e,n,i){return af(n)?e:e.filter(o=>Wx(i(o),n)).sort((o,s)=>zS(i(o),i(s),n))}function Um(e){if(e<1e3)return 2;const n=new Intl.NumberFormat("default",{notation:"compact"}).formatToParts(e).find(({type:i})=>i==="fraction");return $e(n)||af(n.value)?0:Number(n.value)>.1?1:0}function DP(e,n){if($e(e))return;const i={};if($e(n))return i.maximumFractionDigits=Um(e),new Intl.NumberFormat("default",i).format(e);const{currency:o,unit:s,maximumFractionDigits:u,compact:d,separatorHidden:f,language:p}=n;return ds(s)&&(i.unit=s,i.unitDisplay="short"),o&&(i.currencyDisplay="narrowSymbol",i.style="currency"),d&&(i.notation="compact",i.compactDisplay="short"),i.useGrouping=!f,Mt(u)?i.maximumFractionDigits=u:i.maximumFractionDigits=Um(e),new Intl.NumberFormat(p,i).format(e)}function OP(e,n=$S){if($e(e))return;const i=new Date(e);return Number.isNaN(i.getTime())?void 0:VS(HS(n),i).map(o=>o.value).join("")}const Gl=parseFloat(getComputedStyle(document.documentElement).fontSize),WS=16*Gl,nd=.5*Gl,GS={vertical:"bottom",horizontal:"right"};function ZS(e){const n=window.innerWidth/2,i=window.innerHeight/2,o=e.x+e.width/2,s=e.y+e.height/2;return{horizontal:o{if($e(e.current))return;const u=e.current.getBoundingClientRect(),{x:d,y:f,width:p,height:y}=u,w=Gl,C=w,m=window.innerWidth-w,x=window.innerWidth-2*w,E=ZS(u),_=d+p/2,N=lf(Mt(n)?n*Gl:p,WS,x);let P=_-N/2,L=_+N/2;if(Pm){const $=L-m-w;L=m,P-=$}o({content:{bottom:E.vertical==="bottom"?`${window.innerHeight-f+nd}px`:"unset",top:E.vertical==="top"?`${f+y+nd}px`:"unset",left:E.horizontal==="left"?`${P}px`:"unset",right:E.horizontal==="right"?`${window.innerWidth-L}px`:"unset"},pointer:{left:`${_}px`,top:E.vertical==="top"?`${f+y}px`:`${f-nd}px`,right:"unset",bottom:"unset"},width:`${L-P}px`,orientation:E})},[e,n]);return v.useEffect(()=>{s();const u=s,d=s;return window.addEventListener("scroll",u,!0),window.addEventListener("resize",d,!0),()=>{window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",d,!0)}},[s]),i}const KS="_popup_cws49_1",YS="_top-orientation_cws49_9",XS="_pointer_cws49_15",JS="_icon_cws49_25",Fa={popup:KS,topOrientation:YS,pointer:XS,icon:JS};function u0(e){const{parentRef:n,elementRef:i,children:o,className:s,pointerClassName:u,preferredWidth:d}=e,{content:f,pointer:p,width:y,orientation:w}=QS(n,d);return g.jsxs(FS,{children:[g.jsx("div",{ref:i,style:{...f,width:y},className:Oe(Fa.popup,w.vertical==="bottom"&&Fa.topOrientation,s),children:o}),g.jsx("div",{className:Oe(Fa.pointer,w.vertical==="bottom"&&Fa.topOrientation,u),style:{...p},children:g.jsx("svg",{className:Fa.icon,viewBox:"0 0 200 100",children:g.jsx("path",{d:"M0 100 L100 0 L200 100Z"})})})]})}const e_="_input-error_1sxiz_1",t_="_pointer_1sxiz_14",xl={inputError:e_,pointer:t_};function c0(e){const{children:n,className:i,disabled:o}=e,[s,u]=v.useState(!1),d=v.useRef(),f=v.useRef(null);return v.useEffect(()=>{if($e(f.current))return;const{current:{parentElement:p}}=f;$e(p)||(d.current=p,u(!0))},[]),g.jsxs(g.Fragment,{children:[!s&&g.jsx("div",{className:xl.tooltipDummy,ref:f}),n&&!o&&g.jsxs(u0,{className:Oe(xl.inputError,i),pointerClassName:xl.pointer,parentRef:d,children:[g.jsx(CC,{className:xl.icon}),n]})]})}const n_="_input-label_3lsx4_1",r_="_disabled_3lsx4_7",i_="_required_3lsx4_11",rd={inputLabel:n_,disabled:r_,required:i_};function d0(e){const{children:n,className:i,disabled:o,required:s}=e;return n?g.jsxs("div",{className:Oe(rd.inputLabel,o&&rd.disabled,i),children:[n,s&&g.jsx("span",{"aria-hidden":!0,className:rd.required,children:"*"})]}):null}function f0(e){const{data:n,keySelector:i,renderer:o,rendererParams:s}=e;return $e(n)?null:n.map((u,d)=>{const f=i(u,d),p=s(f,u,d,n);return g.jsx(o,{...p},String(f))})}const o_="_radio_1uudv_1",a_="_icon_1uudv_5",s_="_content_1uudv_10",l_="_description_1uudv_16",u_="_input_1uudv_21",c_="_active_1uudv_37",d_="_disabled_1uudv_43",f_="_read-only_1uudv_55",Ur={radio:o_,icon:a_,content:s_,description:l_,input:u_,active:c_,disabled:d_,readOnly:f_};function h_(e){const{name:n,label:i,description:o,className:s,value:u,inputName:d,onClick:f,disabled:p,readOnly:y,actions:w}=e,C=sr.useCallback(()=>{f&&f(n)},[n,f]),{content:m,containerClassName:x}=fs({icons:u?g.jsx(IC,{className:Ur.icon}):g.jsx(kC,{className:Ur.icon}),actions:w,childrenContainerClassName:Ur.content,children:g.jsxs(g.Fragment,{children:[i,o&&g.jsx("div",{className:Ur.description,children:o})]}),spacing:"compact",withoutWrap:!0});return g.jsxs("label",{className:Oe(Ur.radio,u&&Ur.active,p&&Ur.disabled,y&&Ur.readOnly,x,s),children:[g.jsx("input",{className:Ur.input,type:"radio",name:typeof d=="string"?d:void 0,checked:u,onClick:C,disabled:p,readOnly:!0}),m]})}const p_="_radio-input_17cft_1",m_="_radio-list-container_17cft_6",g_="_disabled_17cft_13",v_="_input-hint_17cft_18",Cl={radioInput:p_,radioListContainer:m_,disabled:g_,inputHint:v_};function y_(e){return!!e.clearable}function w_(e){const n=y_(e),{className:i,name:o,options:s,value:u,keySelector:d,labelSelector:f,descriptionSelector:p,label:y,labelContainerClassName:w,hint:C,hintContainerClassName:m,listContainerClassName:x,error:E,renderer:_=h_,rendererParams:N,disabled:P,readOnly:L,required:$,onChange:q,withAsterisk:Z}=e,fe=sr.useCallback(ce=>{L||(n&&e.onChange(ce===u?void 0:ce,o),!n&&Mt(ce)&&q(ce,o))},[u,e,q,n,L,o]),O=sr.useCallback((ce,de)=>{const I={inputName:o,label:f(de),description:p?p(de):void 0,name:ce,onClick:fe,value:ce===u,disabled:P,readOnly:L};return{...N?N(de):void 0,...I}},[o,f,u,fe,N,P,L,p]),K=Z??$;return g.jsxs("div",{className:Oe(Cl.radioInput,P&&Cl.disabled,i),children:[g.jsx(d0,{className:w,disabled:P,required:K,children:y}),g.jsx("div",{className:Oe(Cl.radioListContainer,x),children:g.jsx(f0,{data:s,rendererParams:O,renderer:_,keySelector:d})}),C&&g.jsx("div",{className:Oe(Cl.inputHint,m),children:C}),g.jsx(c0,{children:E})]})}const x_="_button_1vbet_1",C_="_round_1vbet_31",S_="_primary_1vbet_34",__="_secondary_1vbet_51",b_="_tertiary_1vbet_69",id={button:x_,round:C_,primary:S_,secondary:__,tertiary:b_};function df(e){const{ariaLabel:n,children:i,className:o,variant:s,round:u=!0,...d}=e,f=Oe(id.button,id[s],u&&id.round,o);return g.jsx(sf,{className:f,"aria-label":n,...d,children:i})}var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function E_(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function o(){return this instanceof o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(i,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),i}var kn=function(){return kn=Object.assign||function(e){for(var n,i=1,o=arguments.length;i=0}).sort(nb)},ib=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],wf=ib.join(","),ob="".concat(wf,", [data-focus-guard]"),D0=function(e,n){return Cr((e.shadowRoot||e).children).reduce(function(i,o){return i.concat(o.matches(n?ob:wf)?[o]:[],D0(o))},[])},ab=function(e,n){var i;return e instanceof HTMLIFrameElement&&!((i=e.contentDocument)===null||i===void 0)&&i.body?Vo([e.contentDocument.body],n):[e]},Vo=function(e,n){return e.reduce(function(i,o){var s,u=D0(o,n),d=(s=[]).concat.apply(s,u.map(function(f){return ab(f,n)}));return i.concat(d,o.parentNode?Cr(o.parentNode.querySelectorAll(wf)).filter(function(f){return f===o}):[])},[])},sb=function(e){var n=e.querySelectorAll("[".concat(R_,"]"));return Cr(n).map(function(i){return Vo([i])}).reduce(function(i,o){return i.concat(o)},[])},xf=function(e,n){return Cr(e).filter(function(i){return T0(n,i)}).filter(function(i){return J_(i)})},Gm=function(e,n){return n===void 0&&(n=new Map),Cr(e).filter(function(i){return j0(n,i)})},Cf=function(e,n,i){return yf(xf(Vo(e,i),n),!0,i)},es=function(e,n){return yf(xf(Vo(e),n),!1)},lb=function(e,n){return xf(sb(e),n)},Xi=function(e,n){return e.shadowRoot?Xi(e.shadowRoot,n):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,n)?!0:Cr(e.children).some(function(i){var o;if(i instanceof HTMLIFrameElement){var s=(o=i.contentDocument)===null||o===void 0?void 0:o.body;return s?Xi(s,n):!1}return Xi(i,n)})},ub=function(e){for(var n=new Set,i=e.length,o=0;o0&&n.add(s),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(o)}return e.filter(function(d,f){return!n.has(f)})},O0=function(e){return e.parentNode?O0(e.parentNode):e},Sf=function(e){var n=to(e);return n.filter(Boolean).reduce(function(i,o){var s=o.getAttribute(kd);return i.push.apply(i,s?ub(Cr(O0(o).querySelectorAll("[".concat(kd,'="').concat(s,'"]:not([').concat(y0,'="disabled"])')))):[o]),i},[])},cb=function(e){try{return e()}catch{return}},ts=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var n=e.activeElement;return n.shadowRoot?ts(n.shadowRoot):n instanceof HTMLIFrameElement&&cb(function(){return n.contentWindow.document})?ts(n.contentWindow.document):n}},db=function(e,n){return e===n},fb=function(e,n){return!!Cr(e.querySelectorAll("iframe")).some(function(i){return db(i,n)})},R0=function(e,n){return n===void 0&&(n=ts(E0(e).ownerDocument)),!n||n.dataset&&n.dataset.focusGuard?!1:Sf(e).some(function(i){return Xi(i,n)||fb(i,n)})},hb=function(e){e===void 0&&(e=document);var n=ts(e);return n?Cr(e.querySelectorAll("[".concat(O_,"]"))).some(function(i){return Xi(i,n)}):!1},pb=function(e,n){return n.filter(L0).filter(function(i){return i.name===e.name}).filter(function(i){return i.checked})[0]||e},_f=function(e,n){return L0(e)&&e.name?pb(e,n):e},mb=function(e){var n=new Set;return e.forEach(function(i){return n.add(_f(i,e))}),e.filter(function(i){return n.has(i)})},Zm=function(e){return e[0]&&e.length>1?_f(e[0],e):e[0]},Qm=function(e,n){return e.indexOf(_f(n,e))},Pd="NEW_FOCUS",gb=function(e,n,i,o,s){var u=e.length,d=e[0],f=e[u-1],p=vf(o);if(!(o&&e.indexOf(o)>=0)){var y=o!==void 0?i.indexOf(o):-1,w=s?i.indexOf(s):y,C=s?e.indexOf(s):-1;if(y===-1)return C!==-1?C:Pd;if(C===-1)return Pd;var m=y-w,x=i.indexOf(d),E=i.indexOf(f),_=mb(i),N=o!==void 0?_.indexOf(o):-1,P=N-(s?_.indexOf(s):y);if(!m&&C>=0||n.length===0)return C;var L=Qm(e,n[0]),$=Qm(e,n[n.length-1]);if(y<=x&&p&&Math.abs(m)>1)return $;if(y>=E&&p&&Math.abs(m)>1)return L;if(m&&Math.abs(P)>1)return C;if(y<=x)return $;if(y>E)return L;if(m)return Math.abs(m)>1?C:(u+C+m)%u}},vb=function(e){return function(n){var i,o=(i=P0(n))===null||i===void 0?void 0:i.autofocus;return n.autofocus||o!==void 0&&o!=="false"||e.indexOf(n)>=0}},Km=function(e,n,i){var o=e.map(function(u){var d=u.node;return d}),s=Gm(o.filter(vb(i)));return s&&s.length?Zm(s):Zm(Gm(n))},Md=function(e,n){return n===void 0&&(n=[]),n.push(e),e.parentNode&&Md(e.parentNode.host||e.parentNode,n),n},cd=function(e,n){for(var i=Md(e),o=Md(n),s=0;s=0)return u}return!1},I0=function(e,n,i){var o=to(e),s=to(n),u=o[0],d=!1;return s.filter(Boolean).forEach(function(f){d=cd(d||f,f)||d,i.filter(Boolean).forEach(function(p){var y=cd(u,p);y&&(!d||Xi(y,d)?d=y:d=cd(y,d))})}),d},Ym=function(e,n){return e.reduce(function(i,o){return i.concat(lb(o,n))},[])},yb=function(e,n){var i=new Map;return n.forEach(function(o){return i.set(o.node,o)}),e.map(function(o){return i.get(o)}).filter(tb)},wb=function(e,n){var i=ts(to(e).length>0?document:E0(e).ownerDocument),o=Sf(e).filter(jd),s=I0(i||e,e,o),u=new Map,d=es(o,u),f=d.filter(function(E){var _=E.node;return jd(_)});if(f[0]){var p=es([s],u).map(function(E){var _=E.node;return _}),y=yb(p,f),w=y.map(function(E){var _=E.node;return _}),C=y.filter(function(E){var _=E.tabIndex;return _>=0}).map(function(E){var _=E.node;return _}),m=gb(w,C,p,i,n);if(m===Pd){var x=Km(d,C,Ym(o,u))||Km(d,w,Ym(o,u));if(x)return{node:x};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:y[m]}},xb=function(e){var n=Sf(e).filter(jd),i=I0(e,e,n),o=yf(Vo([i],!0),!0,!0),s=Vo(n,!1);return o.map(function(u){var d=u.node,f=u.index;return{node:d,index:f,lockItem:s.indexOf(d)>=0,guard:vf(d)}})},bf=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},dd=0,fd=!1,A0=function(e,n,i){i===void 0&&(i={});var o=wb(e,n);if(!fd&&o){if(dd>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),fd=!0,setTimeout(function(){fd=!1},1);return}dd++,bf(o.node,i.focusOptions),dd--}};function $a(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var n=e?new WeakRef(e):null;return function(){return n?.deref()||null}}var Cb=function(e){if(!e)return null;for(var n=[],i=e;i&&i!==document.body;)n.push({current:$a(i),parent:$a(i.parentElement),left:$a(i.previousElementSibling),right:$a(i.nextElementSibling)}),i=i.parentElement;return{element:$a(e),stack:n,ownerDocument:e.ownerDocument}},Sb=function(e){var n,i,o,s,u;if(e)for(var d=e.stack,f=e.ownerDocument,p=new Map,y=0,w=d;y-1&&(_.filter(function(P){var L=P.guard,$=P.node;return L&&$.dataset.focusAutoGuard}).forEach(function(P){var L=P.node;return L.removeAttribute("tabIndex")}),Jm(N,_.length,1,_),Jm(N,-1,-1,_))}}}return e},H0=function(e){Kl()&&e&&(e.stopPropagation(),e.preventDefault())},Nf=function(){return gf(Kl)},$b=function(e){var n=e.target,i=e.currentTarget;i.contains(n)||Db(i,n)},zb=function(){return null},V0=function(){Ef=!0},q0=function(){Ef=!1,ns="just",gf(function(){ns="meanwhile"})},Bb=function(){document.addEventListener("focusin",H0),document.addEventListener("focusout",Nf),window.addEventListener("focus",V0),window.addEventListener("blur",q0)},Ub=function(){document.removeEventListener("focusin",H0),document.removeEventListener("focusout",Nf),window.removeEventListener("focus",V0),window.removeEventListener("blur",q0)};function Hb(e){return e.filter(function(n){var i=n.disabled;return!i})}var W0={moveFocusInside:A0,focusInside:R0,focusNextElement:Nb,focusPrevElement:kb,focusFirstElement:Tb,focusLastElement:jb,captureFocusRestore:F0};function Vb(e){var n=e.slice(-1)[0];n&&!zo&&Bb();var i=zo,o=i&&n&&n.id===i.id;zo=n,i&&!o&&(i.onDeactivation(),e.filter(function(s){var u=s.id;return u===i.id}).length||i.returnFocus(!n)),n?(In=null,(!o||i.observed!==n.observed)&&n.onActivation(W0),Kl(),gf(Kl)):(Ub(),In=null)}w0.assignSyncMedium($b);x0.assignMedium(Nf);A_.assignMedium(function(e){return e(W0)});const qb=G_(Hb,Vb)(zb);pf(C0,qb);var Wb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gb(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=Wb();return n&&e.setAttribute("nonce",n),e}function Zb(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function Qb(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var Kb=function(){var e=0,n=null;return{add:function(i){e==0&&(n=Gb())&&(Zb(n,i),Qb(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},Yb=function(){var e=Kb();return function(n,i){v.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&i])}},kf=function(){var e=Yb(),n=function(i){var o=i.styles,s=i.dynamic;return e(o,s),null};return n},Xb={left:0,top:0,right:0,gap:0},hd=function(e){return parseInt(e||"",10)||0},Jb=function(e){var n=window.getComputedStyle(document.body),i=n[e==="padding"?"paddingLeft":"marginLeft"],o=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[hd(i),hd(o),hd(s)]},eE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xb;var n=Jb(e),i=document.documentElement.clientWidth,o=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,o-i+n[2]-n[0])}},tE=kf(),Uo="data-scroll-locked",nE=function(e,n,i,o){var s=e.left,u=e.top,d=e.right,f=e.gap;return i===void 0&&(i="margin"),` + .`.concat(T_,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(f,"px ").concat(o,`; + } + body[`).concat(Uo,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([n&&"position: relative ".concat(o,";"),i==="margin"&&` + padding-left: `.concat(s,`px; + padding-top: `).concat(u,`px; + padding-right: `).concat(d,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(f,"px ").concat(o,`; + `),i==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(Fl,` { + right: `).concat(f,"px ").concat(o,`; + } + + .`).concat($l,` { + margin-right: `).concat(f,"px ").concat(o,`; + } + + .`).concat(Fl," .").concat(Fl,` { + right: 0 `).concat(o,`; + } + + .`).concat($l," .").concat($l,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(Uo,`] { + `).concat(j_,": ").concat(f,`px; + } +`)},eg=function(){var e=parseInt(document.body.getAttribute(Uo)||"0",10);return isFinite(e)?e:0},rE=function(){v.useEffect(function(){return document.body.setAttribute(Uo,(eg()+1).toString()),function(){var e=eg()-1;e<=0?document.body.removeAttribute(Uo):document.body.setAttribute(Uo,e.toString())}},[])},iE=function(e){var n=e.noRelative,i=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;rE();var u=v.useMemo(function(){return eE(s)},[s]);return v.createElement(tE,{styles:nE(u,!n,s,i?"":"!important")})},Ld=!1;if(typeof window<"u")try{var Sl=Object.defineProperty({},"passive",{get:function(){return Ld=!0,!0}});window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{Ld=!1}var Do=Ld?{passive:!1}:!1,oE=function(e){return e.tagName==="TEXTAREA"},G0=function(e,n){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[n]!=="hidden"&&!(i.overflowY===i.overflowX&&!oE(e)&&i[n]==="visible")},aE=function(e){return G0(e,"overflowY")},sE=function(e){return G0(e,"overflowX")},tg=function(e,n){var i=n.ownerDocument,o=n;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=Z0(e,o);if(s){var u=Q0(e,o),d=u[1],f=u[2];if(d>f)return!0}o=o.parentNode}while(o&&o!==i.body);return!1},lE=function(e){var n=e.scrollTop,i=e.scrollHeight,o=e.clientHeight;return[n,i,o]},uE=function(e){var n=e.scrollLeft,i=e.scrollWidth,o=e.clientWidth;return[n,i,o]},Z0=function(e,n){return e==="v"?aE(n):sE(n)},Q0=function(e,n){return e==="v"?lE(n):uE(n)},cE=function(e,n){return e==="h"&&n==="rtl"?-1:1},dE=function(e,n,i,o,s){var u=cE(e,window.getComputedStyle(n).direction),d=u*o,f=i.target,p=n.contains(f),y=!1,w=d>0,C=0,m=0;do{var x=Q0(e,f),E=x[0],_=x[1],N=x[2],P=_-N-u*E;(E||P)&&Z0(e,f)&&(C+=P,m+=E),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!p&&f!==document.body||p&&(n.contains(f)||n===f));return(w&&Math.abs(C)<1||!w&&Math.abs(m)<1)&&(y=!0),y},_l=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ng=function(e){return[e.deltaX,e.deltaY]},rg=function(e){return e&&"current"in e?e.current:e},fE=function(e,n){return e[0]===n[0]&&e[1]===n[1]},hE=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},pE=0,Oo=[];function mE(e){var n=v.useRef([]),i=v.useRef([0,0]),o=v.useRef(),s=v.useState(pE++)[0],u=v.useState(kf)[0],d=v.useRef(e);v.useEffect(function(){d.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var _=k_([e.lockRef.current],(e.shards||[]).map(rg)).filter(Boolean);return _.forEach(function(N){return N.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),_.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=v.useCallback(function(_,N){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!d.current.allowPinchZoom;var P=_l(_),L=i.current,$="deltaX"in _?_.deltaX:L[0]-P[0],q="deltaY"in _?_.deltaY:L[1]-P[1],Z,fe=_.target,O=Math.abs($)>Math.abs(q)?"h":"v";if("touches"in _&&O==="h"&&fe.type==="range")return!1;var K=tg(O,fe);if(!K)return!0;if(K?Z=O:(Z=O==="v"?"h":"v",K=tg(O,fe)),!K)return!1;if(!o.current&&"changedTouches"in _&&($||q)&&(o.current=Z),!Z)return!0;var ce=o.current||Z;return dE(ce,N,_,ce==="h"?$:q)},[]),p=v.useCallback(function(_){var N=_;if(!(!Oo.length||Oo[Oo.length-1]!==u)){var P="deltaY"in N?ng(N):_l(N),L=n.current.filter(function(Z){return Z.name===N.type&&(Z.target===N.target||N.target===Z.shadowParent)&&fE(Z.delta,P)})[0];if(L&&L.should){N.cancelable&&N.preventDefault();return}if(!L){var $=(d.current.shards||[]).map(rg).filter(Boolean).filter(function(Z){return Z.contains(N.target)}),q=$.length>0?f(N,$[0]):!d.current.noIsolation;q&&N.cancelable&&N.preventDefault()}}},[]),y=v.useCallback(function(_,N,P,L){var $={name:_,delta:N,target:P,should:L,shadowParent:gE(P)};n.current.push($),setTimeout(function(){n.current=n.current.filter(function(q){return q!==$})},1)},[]),w=v.useCallback(function(_){i.current=_l(_),o.current=void 0},[]),C=v.useCallback(function(_){y(_.type,ng(_),_.target,f(_,e.lockRef.current))},[]),m=v.useCallback(function(_){y(_.type,_l(_),_.target,f(_,e.lockRef.current))},[]);v.useEffect(function(){return Oo.push(u),e.setCallbacks({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:m}),document.addEventListener("wheel",p,Do),document.addEventListener("touchmove",p,Do),document.addEventListener("touchstart",w,Do),function(){Oo=Oo.filter(function(_){return _!==u}),document.removeEventListener("wheel",p,Do),document.removeEventListener("touchmove",p,Do),document.removeEventListener("touchstart",w,Do)}},[]);var x=e.removeScrollBar,E=e.inert;return v.createElement(v.Fragment,null,E?v.createElement(u,{styles:hE(s)}):null,x?v.createElement(iE,{gapMode:e.gapMode}):null)}function gE(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}pf(v0,mE);var vE=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Ro=new WeakMap,bl=new WeakMap,El={},pd=0,K0=function(e){return e&&(e.host||K0(e.parentNode))},yE=function(e,n){return n.map(function(i){if(e.contains(i))return i;var o=K0(i);return o&&e.contains(o)?o:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},wE=function(e,n,i,o){var s=yE(n,Array.isArray(e)?e:[e]);El[i]||(El[i]=new WeakMap);var u=El[i],d=[],f=new Set,p=new Set(s),y=function(C){!C||f.has(C)||(f.add(C),y(C.parentNode))};s.forEach(y);var w=function(C){!C||p.has(C)||Array.prototype.forEach.call(C.children,function(m){if(f.has(m))w(m);else try{var x=m.getAttribute(o),E=x!==null&&x!=="false",_=(Ro.get(m)||0)+1,N=(u.get(m)||0)+1;Ro.set(m,_),u.set(m,N),d.push(m),_===1&&E&&bl.set(m,!0),N===1&&m.setAttribute(i,"true"),E||m.setAttribute(o,"true")}catch(P){console.error("aria-hidden: cannot operate on ",m,P)}})};return w(n),f.clear(),pd++,function(){d.forEach(function(C){var m=Ro.get(C)-1,x=u.get(C)-1;Ro.set(C,m),u.set(C,x),m||(bl.has(C)||C.removeAttribute(o),bl.delete(C)),x||C.removeAttribute(i)}),pd--,pd||(Ro=new WeakMap,Ro=new WeakMap,bl=new WeakMap,El={})}},xE=function(e,n,i){var o=Array.from(Array.isArray(e)?e:[e]),s=n||vE(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live]"))),wE(o,s,i,"aria-hidden")):function(){return null}},CE=kf(),SE=` + [`+b0+`] { + pointer-events: none !important; + } +`,_E=function(){return v.createElement(CE,{styles:SE})},ig=function(e){return"current"in e?e.current:e};function bE(e){var n=e.setLockProps,i=e.onEscapeKey,o=e.onClickOutside,s=e.shards,u=e.onActivation,d=e.onDeactivation,f=e.noIsolation,p=v.useState(void 0),y=p[0],w=p[1],C=v.useRef(null),m=v.useRef(0);return v.useEffect(function(){var x=function(P){P.defaultPrevented||(P.code==="Escape"||P.key==="Escape"||P.keyCode===27)&&i&&i(P)},E=function(P){P.defaultPrevented||P.target===C.current||P instanceof MouseEvent&&P.button!==0||s&&s.map(ig).some(function(L){return L&&L.contains(P.target)||L===P.target})||o&&o(P)},_=function(P){E(P),m.current=P.touches.length},N=function(P){m.current=P.touches.length};if(y)return document.addEventListener("keydown",x),document.addEventListener("mousedown",E),document.addEventListener("touchstart",_),document.addEventListener("touchend",N),function(){document.removeEventListener("keydown",x),document.removeEventListener("mousedown",E),document.removeEventListener("touchstart",_),document.removeEventListener("touchend",N)}},[y,o,i]),v.useEffect(function(){if(y)return u&&u(y),function(){d&&d()}},[!!y]),v.useEffect(function(){var x=function(){return null},E=!1,_=function(P){f||(x=xE(N_([P],(s||[]).map(ig)),document.body,b0)),w(function(){return P})},N=function(){x(),E||w(null)};return n({onMouseDown:function(P){C.current=P.target},onTouchStart:function(P){C.current=P.target},onActivation:_,onDeactivation:N}),function(){E=!0,n(!1)}},[]),v.createElement(_E,null)}const EE=pf(_0,bE);var NE=function(e){return v.createElement(EE,kn({},e))};v.forwardRef(function(e,n){return v.createElement(U_,kn({},e,{ref:n,sideCar:NE}))});const kE="_input-container_1b4m7_1",TE="_input-section_1b4m7_4",jE="_input_1b4m7_1",PE="_disabled_1b4m7_17",ME="_errored_1b4m7_25",LE="_general_1b4m7_31",DE="_read-only_1b4m7_38",OE="_input-hint_1b4m7_53",RE="_input-error_1b4m7_58",vr={inputContainer:kE,inputSection:TE,input:jE,disabled:PE,errored:ME,general:LE,readOnly:DE,inputHint:OE,inputError:RE};function Tf(e){const{containerRef:n,inputSectionRef:i,actions:o,className:s,disabled:u,error:d,errorOnTooltip:f=!1,hint:p,icons:y,input:w,inputSectionClassName:C,label:m,labelClassName:x,readOnly:E,required:_,variant:N="form",withAsterisk:P,actionsContainerClassName:L,errorContainerClassName:$,hintContainerClassName:q,iconsContainerClassName:Z,spacing:fe}=e,O=P??_,{content:K,containerClassName:ce}=fs({className:Oe(vr.inputSection,C),icons:y,iconsContainerClassName:Z,actions:o,actionsContainerClassName:L,children:w,childrenContainerClassName:vr.input,spacing:fe,withoutWrap:!0,variant:"xs"});return g.jsxs("div",{ref:n,className:Oe(vr.inputContainer,!!d&&vr.errored,E&&vr.readOnly,N==="form"&&vr.form,N==="general"&&vr.general,u&&vr.disabled,s),title:f&&d&&typeof d=="string"?d:void 0,children:[g.jsx(d0,{className:x,disabled:u,required:O,children:m}),g.jsx("div",{ref:i,className:ce,children:K}),p&&g.jsx("div",{className:Oe(vr.inputHint,q),children:p}),!f&&g.jsx(c0,{disabled:u,className:Oe(vr.inputError,$),children:d})]})}const IE="_raw-input_8rtzt_1",AE={rawInput:IE};function Y0(e){const{className:n,onChange:i,elementRef:o,value:s,name:u,...d}=e,f=sr.useCallback(p=>{const y=p.currentTarget.value;i&&i(y===""?void 0:y,u,p)},[u,i]);return g.jsx("input",{...d,ref:o,className:Oe(AE.rawInput,n),name:Mt(u)?String(u):void 0,onChange:f,value:s??""})}function FE(e,n,i,o){sr.useEffect(()=>{if(!e)return;const s=u=>{const{current:d}=i,{current:f}=o,p=u.target,y=u&&d?d===u.target||d.contains(p):!1,w=f?f===u.target||f.contains(p):!1;n(y,w,u)};return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[e,n,i,o])}var og={},$E={},rs={},jf={},is={},Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;��ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢��⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0��rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});Mf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var Dd={};(function(e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var i=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(n=String.fromCodePoint)!==null&&n!==void 0?n:function(u){var d="";return u>65535&&(u-=65536,d+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),d+=String.fromCharCode(u),d};function o(u){var d;return u>=55296&&u<=57343||u>1114111?65533:(d=i.get(u))!==null&&d!==void 0?d:u}e.replaceCodePoint=o;function s(u){return(0,e.fromCodePoint)(o(u))}e.default=s})(Dd);(function(e){var n=Ae&&Ae.__createBinding||(Object.create?function(I,U,W,ne){ne===void 0&&(ne=W);var he=Object.getOwnPropertyDescriptor(U,W);(!he||("get"in he?!U.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return U[W]}}),Object.defineProperty(I,ne,he)}:function(I,U,W,ne){ne===void 0&&(ne=W),I[ne]=U[W]}),i=Ae&&Ae.__setModuleDefault||(Object.create?function(I,U){Object.defineProperty(I,"default",{enumerable:!0,value:U})}:function(I,U){I.default=U}),o=Ae&&Ae.__importStar||function(I){if(I&&I.__esModule)return I;var U={};if(I!=null)for(var W in I)W!=="default"&&Object.prototype.hasOwnProperty.call(I,W)&&n(U,I,W);return i(U,I),U},s=Ae&&Ae.__importDefault||function(I){return I&&I.__esModule?I:{default:I}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var u=s(Pf);e.htmlDecodeTree=u.default;var d=s(Mf);e.xmlDecodeTree=d.default;var f=o(Dd);e.decodeCodePoint=f.default;var p=Dd;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return p.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return p.fromCodePoint}});var y;(function(I){I[I.NUM=35]="NUM",I[I.SEMI=59]="SEMI",I[I.EQUALS=61]="EQUALS",I[I.ZERO=48]="ZERO",I[I.NINE=57]="NINE",I[I.LOWER_A=97]="LOWER_A",I[I.LOWER_F=102]="LOWER_F",I[I.LOWER_X=120]="LOWER_X",I[I.LOWER_Z=122]="LOWER_Z",I[I.UPPER_A=65]="UPPER_A",I[I.UPPER_F=70]="UPPER_F",I[I.UPPER_Z=90]="UPPER_Z"})(y||(y={}));var w=32,C;(function(I){I[I.VALUE_LENGTH=49152]="VALUE_LENGTH",I[I.BRANCH_LENGTH=16256]="BRANCH_LENGTH",I[I.JUMP_TABLE=127]="JUMP_TABLE"})(C=e.BinTrieFlags||(e.BinTrieFlags={}));function m(I){return I>=y.ZERO&&I<=y.NINE}function x(I){return I>=y.UPPER_A&&I<=y.UPPER_F||I>=y.LOWER_A&&I<=y.LOWER_F}function E(I){return I>=y.UPPER_A&&I<=y.UPPER_Z||I>=y.LOWER_A&&I<=y.LOWER_Z||m(I)}function _(I){return I===y.EQUALS||E(I)}var N;(function(I){I[I.EntityStart=0]="EntityStart",I[I.NumericStart=1]="NumericStart",I[I.NumericDecimal=2]="NumericDecimal",I[I.NumericHex=3]="NumericHex",I[I.NamedEntity=4]="NamedEntity"})(N||(N={}));var P;(function(I){I[I.Legacy=0]="Legacy",I[I.Strict=1]="Strict",I[I.Attribute=2]="Attribute"})(P=e.DecodingMode||(e.DecodingMode={}));var L=function(){function I(U,W,ne){this.decodeTree=U,this.emitCodePoint=W,this.errors=ne,this.state=N.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=P.Strict}return I.prototype.startEntity=function(U){this.decodeMode=U,this.state=N.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},I.prototype.write=function(U,W){switch(this.state){case N.EntityStart:return U.charCodeAt(W)===y.NUM?(this.state=N.NumericStart,this.consumed+=1,this.stateNumericStart(U,W+1)):(this.state=N.NamedEntity,this.stateNamedEntity(U,W));case N.NumericStart:return this.stateNumericStart(U,W);case N.NumericDecimal:return this.stateNumericDecimal(U,W);case N.NumericHex:return this.stateNumericHex(U,W);case N.NamedEntity:return this.stateNamedEntity(U,W)}},I.prototype.stateNumericStart=function(U,W){return W>=U.length?-1:(U.charCodeAt(W)|w)===y.LOWER_X?(this.state=N.NumericHex,this.consumed+=1,this.stateNumericHex(U,W+1)):(this.state=N.NumericDecimal,this.stateNumericDecimal(U,W))},I.prototype.addToNumericResult=function(U,W,ne,he){if(W!==ne){var Ce=ne-W;this.result=this.result*Math.pow(he,Ce)+parseInt(U.substr(W,Ce),he),this.consumed+=Ce}},I.prototype.stateNumericHex=function(U,W){for(var ne=W;W>14;W>14,Ce!==0){if(be===y.SEMI)return this.emitNamedEntityData(this.treeIndex,Ce,this.consumed+this.excess);this.decodeMode!==P.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},I.prototype.emitNotTerminatedNamedEntity=function(){var U,W=this,ne=W.result,he=W.decodeTree,Ce=(he[ne]&C.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ne,Ce,this.consumed),(U=this.errors)===null||U===void 0||U.missingSemicolonAfterCharacterReference(),this.consumed},I.prototype.emitNamedEntityData=function(U,W,ne){var he=this.decodeTree;return this.emitCodePoint(W===1?he[U]&~C.VALUE_LENGTH:he[U+1],ne),W===3&&this.emitCodePoint(he[U+2],ne),ne},I.prototype.end=function(){var U;switch(this.state){case N.NamedEntity:return this.result!==0&&(this.decodeMode!==P.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case N.NumericDecimal:return this.emitNumericEntity(0,2);case N.NumericHex:return this.emitNumericEntity(0,3);case N.NumericStart:return(U=this.errors)===null||U===void 0||U.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case N.EntityStart:return 0}},I}();e.EntityDecoder=L;function $(I){var U="",W=new L(I,function(ne){return U+=(0,f.fromCodePoint)(ne)});return function(ne,he){for(var Ce=0,be=0;(be=ne.indexOf("&",be))>=0;){U+=ne.slice(Ce,be),W.startEntity(he);var G=W.write(ne,be+1);if(G<0){Ce=be+W.end();break}Ce=be+G,be=G===0?Ce+1:Ce}var ue=U+ne.slice(Ce);return U="",ue}}function q(I,U,W,ne){var he=(U&C.BRANCH_LENGTH)>>7,Ce=U&C.JUMP_TABLE;if(he===0)return Ce!==0&&ne===Ce?W:-1;if(Ce){var be=ne-Ce;return be<0||be>=he?-1:I[W+be]-1}for(var G=W,ue=G+he-1;G<=ue;){var k=G+ue>>>1,H=I[k];if(Hne)ue=k-1;else return I[k+he]}return-1}e.determineBranch=q;var Z=$(u.default),fe=$(d.default);function O(I,U){return U===void 0&&(U=P.Legacy),Z(I,U)}e.decodeHTML=O;function K(I){return Z(I,P.Attribute)}e.decodeHTMLAttribute=K;function ce(I){return Z(I,P.Strict)}e.decodeHTMLStrict=ce;function de(I){return fe(I,P.Strict)}e.decodeXML=de})(is);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var n=is,i;(function(m){m[m.Tab=9]="Tab",m[m.NewLine=10]="NewLine",m[m.FormFeed=12]="FormFeed",m[m.CarriageReturn=13]="CarriageReturn",m[m.Space=32]="Space",m[m.ExclamationMark=33]="ExclamationMark",m[m.Number=35]="Number",m[m.Amp=38]="Amp",m[m.SingleQuote=39]="SingleQuote",m[m.DoubleQuote=34]="DoubleQuote",m[m.Dash=45]="Dash",m[m.Slash=47]="Slash",m[m.Zero=48]="Zero",m[m.Nine=57]="Nine",m[m.Semi=59]="Semi",m[m.Lt=60]="Lt",m[m.Eq=61]="Eq",m[m.Gt=62]="Gt",m[m.Questionmark=63]="Questionmark",m[m.UpperA=65]="UpperA",m[m.LowerA=97]="LowerA",m[m.UpperF=70]="UpperF",m[m.LowerF=102]="LowerF",m[m.UpperZ=90]="UpperZ",m[m.LowerZ=122]="LowerZ",m[m.LowerX=120]="LowerX",m[m.OpeningSquareBracket=91]="OpeningSquareBracket"})(i||(i={}));var o;(function(m){m[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity"})(o||(o={}));function s(m){return m===i.Space||m===i.NewLine||m===i.Tab||m===i.FormFeed||m===i.CarriageReturn}function u(m){return m===i.Slash||m===i.Gt||s(m)}function d(m){return m>=i.Zero&&m<=i.Nine}function f(m){return m>=i.LowerA&&m<=i.LowerZ||m>=i.UpperA&&m<=i.UpperZ}function p(m){return m>=i.UpperA&&m<=i.UpperF||m>=i.LowerA&&m<=i.LowerF}var y;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(y=e.QuoteType||(e.QuoteType={}));var w={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},C=function(){function m(x,E){var _=x.xmlMode,N=_===void 0?!1:_,P=x.decodeEntities,L=P===void 0?!0:P;this.cbs=E,this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=N,this.decodeEntities=L,this.entityTrie=N?n.xmlDecodeTree:n.htmlDecodeTree}return m.prototype.reset=function(){this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},m.prototype.write=function(x){this.offset+=this.buffer.length,this.buffer=x,this.parse()},m.prototype.end=function(){this.running&&this.finish()},m.prototype.pause=function(){this.running=!1},m.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=o.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&x===i.Amp&&(this.state=o.BeforeEntity)},m.prototype.stateSpecialStartSequence=function(x){var E=this.sequenceIndex===this.currentSequence.length,_=E?u(x):(x|32)===this.currentSequence[this.sequenceIndex];if(!_)this.isSpecial=!1;else if(!E){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=o.InTagName,this.stateInTagName(x)},m.prototype.stateInSpecialTag=function(x){if(this.sequenceIndex===this.currentSequence.length){if(x===i.Gt||s(x)){var E=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&x!==i.Semi)this.trieIndex+=_;else{var N=this.index-this.entityExcess+1;N>this.sectionStart&&this.emitPartial(this.sectionStart,N),this.entityResult=this.trieIndex,this.trieIndex+=_,this.entityExcess=0,this.sectionStart=this.index+1,_===0&&this.emitNamedEntity()}}},m.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var x=(this.entityTrie[this.entityResult]&n.BinTrieFlags.VALUE_LENGTH)>>14;switch(x){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~n.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},m.prototype.stateBeforeNumericEntity=function(x){(x|32)===i.LowerX?(this.entityExcess++,this.state=o.InHexEntity):(this.state=o.InNumericEntity,this.stateInNumericEntity(x))},m.prototype.emitNumericEntity=function(x){var E=this.index-this.entityExcess-1,_=E+2+ +(this.state===o.InHexEntity);_!==this.index&&(E>this.sectionStart&&this.emitPartial(this.sectionStart,E),this.sectionStart=this.index+Number(x),this.emitCodePoint((0,n.replaceCodePoint)(this.entityResult))),this.state=this.baseState},m.prototype.stateInNumericEntity=function(x){x===i.Semi?this.emitNumericEntity(!0):d(x)?(this.entityResult=this.entityResult*10+(x-i.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.stateInHexEntity=function(x){x===i.Semi?this.emitNumericEntity(!0):d(x)?(this.entityResult=this.entityResult*16+(x-i.Zero),this.entityExcess++):p(x)?(this.entityResult=this.entityResult*16+((x|32)-i.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===o.Text||this.baseState===o.InSpecialTag)},m.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===o.Text||this.state===o.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===o.InAttributeValueDq||this.state===o.InAttributeValueSq||this.state===o.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},m.prototype.shouldContinue=function(){return this.index0&&d.has(this.stack[this.stack.length-1]);){var f=this.stack.pop();(o=(i=this.cbs).onclosetag)===null||o===void 0||o.call(i,f,!0)}this.isVoidElement(n)||(this.stack.push(n),cg.has(n)?this.foreignContext.push(!0):dg.has(n)&&this.foreignContext.push(!1)),(u=(s=this.cbs).onopentagname)===null||u===void 0||u.call(s,n),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(n){var i,o;this.startIndex=this.openTagStart,this.attribs&&((o=(i=this.cbs).onopentag)===null||o===void 0||o.call(i,this.tagname,this.attribs,n),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(n){this.endIndex=n,this.endOpenTag(!1),this.startIndex=n+1},e.prototype.onclosetag=function(n,i){var o,s,u,d,f,p;this.endIndex=i;var y=this.getSlice(n,i);if(this.lowerCaseTagNames&&(y=y.toLowerCase()),(cg.has(y)||dg.has(y))&&this.foreignContext.pop(),this.isVoidElement(y))!this.options.xmlMode&&y==="br"&&((s=(o=this.cbs).onopentagname)===null||s===void 0||s.call(o,"br"),(d=(u=this.cbs).onopentag)===null||d===void 0||d.call(u,"br",{},!0),(p=(f=this.cbs).onclosetag)===null||p===void 0||p.call(f,"br",!1));else{var w=this.stack.lastIndexOf(y);if(w!==-1)if(this.cbs.onclosetag)for(var C=this.stack.length-w;C--;)this.cbs.onclosetag(this.stack.pop(),C!==0);else this.stack.length=w;else!this.options.xmlMode&&y==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=i+1},e.prototype.onselfclosingtag=function(n){this.endIndex=n,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=n+1):this.onopentagend(n)},e.prototype.closeCurrentTag=function(n){var i,o,s=this.tagname;this.endOpenTag(n),this.stack[this.stack.length-1]===s&&((o=(i=this.cbs).onclosetag)===null||o===void 0||o.call(i,s,!n),this.stack.pop())},e.prototype.onattribname=function(n,i){this.startIndex=n;var o=this.getSlice(n,i);this.attribname=this.lowerCaseAttributeNames?o.toLowerCase():o},e.prototype.onattribdata=function(n,i){this.attribvalue+=this.getSlice(n,i)},e.prototype.onattribentity=function(n){this.attribvalue+=(0,ag.fromCodePoint)(n)},e.prototype.onattribend=function(n,i){var o,s;this.endIndex=i,(s=(o=this.cbs).onattribute)===null||s===void 0||s.call(o,this.attribname,this.attribvalue,n===Nl.QuoteType.Double?'"':n===Nl.QuoteType.Single?"'":n===Nl.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(n){var i=n.search(qE),o=i<0?n:n.substr(0,i);return this.lowerCaseTagNames&&(o=o.toLowerCase()),o},e.prototype.ondeclaration=function(n,i){this.endIndex=i;var o=this.getSlice(n,i);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(o);this.cbs.onprocessinginstruction("!".concat(s),"!".concat(o))}this.startIndex=i+1},e.prototype.onprocessinginstruction=function(n,i){this.endIndex=i;var o=this.getSlice(n,i);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(o);this.cbs.onprocessinginstruction("?".concat(s),"?".concat(o))}this.startIndex=i+1},e.prototype.oncomment=function(n,i,o){var s,u,d,f;this.endIndex=i,(u=(s=this.cbs).oncomment)===null||u===void 0||u.call(s,this.getSlice(n,i-o)),(f=(d=this.cbs).oncommentend)===null||f===void 0||f.call(d),this.startIndex=i+1},e.prototype.oncdata=function(n,i,o){var s,u,d,f,p,y,w,C,m,x;this.endIndex=i;var E=this.getSlice(n,i-o);this.options.xmlMode||this.options.recognizeCDATA?((u=(s=this.cbs).oncdatastart)===null||u===void 0||u.call(s),(f=(d=this.cbs).ontext)===null||f===void 0||f.call(d,E),(y=(p=this.cbs).oncdataend)===null||y===void 0||y.call(p)):((C=(w=this.cbs).oncomment)===null||C===void 0||C.call(w,"[CDATA[".concat(E,"]]")),(x=(m=this.cbs).oncommentend)===null||x===void 0||x.call(m)),this.startIndex=i+1},e.prototype.onend=function(){var n,i;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var o=this.stack.length;o>0;this.cbs.onclosetag(this.stack[--o],!0));}(i=(n=this.cbs).onend)===null||i===void 0||i.call(n)},e.prototype.reset=function(){var n,i,o,s;(i=(n=this.cbs).onreset)===null||i===void 0||i.call(n),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(o=this.cbs).onparserinit)===null||s===void 0||s.call(o,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(n){this.reset(),this.end(n)},e.prototype.getSlice=function(n,i){for(;n-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var o=this.buffers[0].slice(n-this.bufferOffset,i-this.bufferOffset);i-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),o+=this.buffers[0].slice(0,i-this.bufferOffset);return o},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(n){var i,o;if(this.ended){(o=(i=this.cbs).onerror)===null||o===void 0||o.call(i,new Error(".write() after done!"));return}this.buffers.push(n),this.tokenizer.running&&(this.tokenizer.write(n),this.writeIndex++)},e.prototype.end=function(n){var i,o;if(this.ended){(o=(i=this.cbs).onerror)===null||o===void 0||o.call(i,new Error(".end() after done!"));return}n&&this.write(n),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(i){this.children=i},enumerable:!1,configurable:!0}),n}(Lf);Ge.NodeWithChildren=su;var tv=function(e){bi(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=Tn.ElementType.CDATA,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),n}(su);Ge.CDATA=tv;var nv=function(e){bi(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=Tn.ElementType.Root,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),n}(su);Ge.Document=nv;var rv=function(e){bi(n,e);function n(i,o,s,u){s===void 0&&(s=[]),u===void 0&&(u=i==="script"?Tn.ElementType.Script:i==="style"?Tn.ElementType.Style:Tn.ElementType.Tag);var d=e.call(this,s)||this;return d.name=i,d.attribs=o,d.type=u,d}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tagName",{get:function(){return this.name},set:function(i){this.name=i},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"attributes",{get:function(){var i=this;return Object.keys(this.attribs).map(function(o){var s,u;return{name:o,value:i.attribs[o],namespace:(s=i["x-attribsNamespace"])===null||s===void 0?void 0:s[o],prefix:(u=i["x-attribsPrefix"])===null||u===void 0?void 0:u[o]}})},enumerable:!1,configurable:!0}),n}(su);Ge.Element=rv;function iv(e){return(0,Tn.isTag)(e)}Ge.isTag=iv;function ov(e){return e.type===Tn.ElementType.CDATA}Ge.isCDATA=ov;function av(e){return e.type===Tn.ElementType.Text}Ge.isText=av;function sv(e){return e.type===Tn.ElementType.Comment}Ge.isComment=sv;function lv(e){return e.type===Tn.ElementType.Directive}Ge.isDirective=lv;function uv(e){return e.type===Tn.ElementType.Root}Ge.isDocument=uv;function GE(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ge.hasChildren=GE;function Df(e,n){n===void 0&&(n=!1);var i;if(av(e))i=new X0(e.data);else if(sv(e))i=new J0(e.data);else if(iv(e)){var o=n?md(e.children):[],s=new rv(e.name,Za({},e.attribs),o);o.forEach(function(p){return p.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Za({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Za({},e["x-attribsPrefix"])),i=s}else if(ov(e)){var o=n?md(e.children):[],u=new tv(o);o.forEach(function(y){return y.parent=u}),i=u}else if(uv(e)){var o=n?md(e.children):[],d=new nv(o);o.forEach(function(y){return y.parent=d}),e["x-mode"]&&(d["x-mode"]=e["x-mode"]),i=d}else if(lv(e)){var f=new ev(e.name,e.data);e["x-name"]!=null&&(f["x-name"]=e["x-name"],f["x-publicId"]=e["x-publicId"],f["x-systemId"]=e["x-systemId"]),i=f}else throw new Error("Not implemented yet: ".concat(e.type));return i.startIndex=e.startIndex,i.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(i.sourceCodeLocation=e.sourceCodeLocation),i}Ge.cloneNode=Df;function md(e){for(var n=e.map(function(o){return Df(o,!0)}),i=1;i$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(s,u){return s.codePointAt(u)}:function(s,u){return(s.charCodeAt(u)&64512)===55296?(s.charCodeAt(u)-55296)*1024+s.charCodeAt(u+1)-56320+65536:s.charCodeAt(u)};function i(s){for(var u="",d=0,f;(f=e.xmlReplacer.exec(s))!==null;){var p=f.index,y=s.charCodeAt(p),w=n.get(y);w!==void 0?(u+=s.substring(d,p)+w,d=p+1):(u+="".concat(s.substring(d,p),"&#x").concat((0,e.getCodePoint)(s,p).toString(16),";"),d=e.xmlReplacer.lastIndex+=+((y&64512)===55296))}return u+s.substr(d)}e.encodeXML=i,e.escape=i;function o(s,u){return function(d){for(var f,p=0,y="";f=s.exec(d);)p!==f.index&&(y+=d.substring(p,f.index)),y+=u.get(f[0].charCodeAt(0)),p=f.index+1;return y+d.substring(p)}}e.escapeUTF8=o(/[&<>'"]/g,n),e.escapeAttribute=o(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=o(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Yl);var ZE=Ae&&Ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(no,"__esModule",{value:!0});no.encodeNonAsciiHTML=no.encodeHTML=void 0;var QE=ZE(Of),dv=Yl,KE=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function YE(e){return fv(KE,e)}no.encodeHTML=YE;function XE(e){return fv(dv.xmlReplacer,e)}no.encodeNonAsciiHTML=XE;function fv(e,n){for(var i="",o=0,s;(s=e.exec(n))!==null;){var u=s.index;i+=n.substring(o,u);var d=n.charCodeAt(u),f=QE.default.get(d);if(typeof f=="object"){if(u+10&&(o+=lu(e.children,n)),(n.xmlMode||!fg.has(e.name))&&(o+=""))),o}function uN(e){return"<".concat(e.data,">")}function cN(e,n){var i,o=e.data||"";return((i=n.encodeEntities)!==null&&i!==void 0?i:n.decodeEntities)!==!1&&!(!n.xmlMode&&e.parent&&nN.has(e.parent.name))&&(o=n.xmlMode||n.encodeEntities!=="utf8"?(0,Xl.encodeXML)(o):(0,Xl.escapeText)(o)),o}function dN(e){return"")}function fN(e){return"")}var hN=Ae&&Ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.innerText=Fn.textContent=Fn.getText=Fn.getInnerHTML=Fn.getOuterHTML=void 0;var xr=Gr,pN=hN(hs),mN=Yo;function pv(e,n){return(0,pN.default)(e,n)}Fn.getOuterHTML=pv;function gN(e,n){return(0,xr.hasChildren)(e)?e.children.map(function(i){return pv(i,n)}).join(""):""}Fn.getInnerHTML=gN;function Bl(e){return Array.isArray(e)?e.map(Bl).join(""):(0,xr.isTag)(e)?e.name==="br"?` +`:Bl(e.children):(0,xr.isCDATA)(e)?Bl(e.children):(0,xr.isText)(e)?e.data:""}Fn.getText=Bl;function Od(e){return Array.isArray(e)?e.map(Od).join(""):(0,xr.hasChildren)(e)&&!(0,xr.isComment)(e)?Od(e.children):(0,xr.isText)(e)?e.data:""}Fn.textContent=Od;function Rd(e){return Array.isArray(e)?e.map(Rd).join(""):(0,xr.hasChildren)(e)&&(e.type===mN.ElementType.Tag||(0,xr.isCDATA)(e))?Rd(e.children):(0,xr.isText)(e)?e.data:""}Fn.innerText=Rd;var qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.prevElementSibling=qt.nextElementSibling=qt.getName=qt.hasAttrib=qt.getAttributeValue=qt.getSiblings=qt.getParent=qt.getChildren=void 0;var Rf=Gr;function mv(e){return(0,Rf.hasChildren)(e)?e.children:[]}qt.getChildren=mv;function gv(e){return e.parent||null}qt.getParent=gv;function vN(e){var n,i,o=gv(e);if(o!=null)return mv(o);for(var s=[e],u=e.prev,d=e.next;u!=null;)s.unshift(u),n=u,u=n.prev;for(;d!=null;)s.push(d),i=d,d=i.next;return s}qt.getSiblings=vN;function yN(e,n){var i;return(i=e.attribs)===null||i===void 0?void 0:i[n]}qt.getAttributeValue=yN;function wN(e,n){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,n)&&e.attribs[n]!=null}qt.hasAttrib=wN;function xN(e){return e.name}qt.getName=xN;function CN(e){for(var n,i=e.next;i!==null&&!(0,Rf.isTag)(i);)n=i,i=n.next;return i}qt.nextElementSibling=CN;function SN(e){for(var n,i=e.prev;i!==null&&!(0,Rf.isTag)(i);)n=i,i=n.prev;return i}qt.prevElementSibling=SN;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.prepend=Nn.prependChild=Nn.append=Nn.appendChild=Nn.replaceElement=Nn.removeElement=void 0;function ps(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var n=e.parent.children,i=n.lastIndexOf(e);i>=0&&n.splice(i,1)}e.next=null,e.prev=null,e.parent=null}Nn.removeElement=ps;function _N(e,n){var i=n.prev=e.prev;i&&(i.next=n);var o=n.next=e.next;o&&(o.prev=n);var s=n.parent=e.parent;if(s){var u=s.children;u[u.lastIndexOf(e)]=n,e.parent=null}}Nn.replaceElement=_N;function bN(e,n){if(ps(n),n.next=null,n.parent=e,e.children.push(n)>1){var i=e.children[e.children.length-2];i.next=n,n.prev=i}else n.prev=null}Nn.appendChild=bN;function EN(e,n){ps(n);var i=e.parent,o=e.next;if(n.next=o,n.prev=e,e.next=n,n.parent=i,o){if(o.prev=n,i){var s=i.children;s.splice(s.lastIndexOf(o),0,n)}}else i&&i.children.push(n)}Nn.append=EN;function NN(e,n){if(ps(n),n.parent=e,n.prev=null,e.children.unshift(n)!==1){var i=e.children[1];i.prev=n,n.next=i}else n.next=null}Nn.prependChild=NN;function kN(e,n){ps(n);var i=e.parent;if(i){var o=i.children;o.splice(o.indexOf(e),0,n)}e.prev&&(e.prev.next=n),n.parent=i,n.prev=e.prev,n.next=e,e.prev=n}Nn.prepend=kN;var ln={};Object.defineProperty(ln,"__esModule",{value:!0});ln.findAll=ln.existsOne=ln.findOne=ln.findOneChild=ln.find=ln.filter=void 0;var uu=Gr;function TN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),vv(e,Array.isArray(n)?n:[n],i,o)}ln.filter=TN;function vv(e,n,i,o){for(var s=[],u=[n],d=[0];;){if(d[0]>=u[0].length){if(d.length===1)return s;u.shift(),d.shift();continue}var f=u[0][d[0]++];if(e(f)&&(s.push(f),--o<=0))return s;i&&(0,uu.hasChildren)(f)&&f.children.length>0&&(d.unshift(0),u.unshift(f.children))}}ln.find=vv;function jN(e,n){return n.find(e)}ln.findOneChild=jN;function yv(e,n,i){i===void 0&&(i=!0);for(var o=null,s=0;s0&&(o=yv(e,u.children,!0));else continue}return o}ln.findOne=yv;function wv(e,n){return n.some(function(i){return(0,uu.isTag)(i)&&(e(i)||wv(e,i.children))})}ln.existsOne=wv;function PN(e,n){for(var i=[],o=[n],s=[0];;){if(s[0]>=o[0].length){if(o.length===1)return i;o.shift(),s.shift();continue}var u=o[0][s[0]++];(0,uu.isTag)(u)&&(e(u)&&i.push(u),u.children.length>0&&(s.unshift(0),o.unshift(u.children)))}}ln.findAll=PN;var $n={};Object.defineProperty($n,"__esModule",{value:!0});$n.getElementsByTagType=$n.getElementsByTagName=$n.getElementById=$n.getElements=$n.testElement=void 0;var Ki=Gr,cu=ln,Jl={tag_name:function(e){return typeof e=="function"?function(n){return(0,Ki.isTag)(n)&&e(n.name)}:e==="*"?Ki.isTag:function(n){return(0,Ki.isTag)(n)&&n.name===e}},tag_type:function(e){return typeof e=="function"?function(n){return e(n.type)}:function(n){return n.type===e}},tag_contains:function(e){return typeof e=="function"?function(n){return(0,Ki.isText)(n)&&e(n.data)}:function(n){return(0,Ki.isText)(n)&&n.data===e}}};function xv(e,n){return typeof n=="function"?function(i){return(0,Ki.isTag)(i)&&n(i.attribs[e])}:function(i){return(0,Ki.isTag)(i)&&i.attribs[e]===n}}function MN(e,n){return function(i){return e(i)||n(i)}}function Cv(e){var n=Object.keys(e).map(function(i){var o=e[i];return Object.prototype.hasOwnProperty.call(Jl,i)?Jl[i](o):xv(i,o)});return n.length===0?null:n.reduce(MN)}function LN(e,n){var i=Cv(e);return i?i(n):!0}$n.testElement=LN;function DN(e,n,i,o){o===void 0&&(o=1/0);var s=Cv(e);return s?(0,cu.filter)(s,n,i,o):[]}$n.getElements=DN;function ON(e,n,i){return i===void 0&&(i=!0),Array.isArray(n)||(n=[n]),(0,cu.findOne)(xv("id",e),n,i)}$n.getElementById=ON;function RN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,cu.filter)(Jl.tag_name(e),n,i,o)}$n.getElementsByTagName=RN;function IN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,cu.filter)(Jl.tag_type(e),n,i,o)}$n.getElementsByTagType=IN;var Sv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var n=Gr;function i(d){for(var f=d.length;--f>=0;){var p=d[f];if(f>0&&d.lastIndexOf(p,f-1)>=0){d.splice(f,1);continue}for(var y=p.parent;y;y=y.parent)if(d.includes(y)){d.splice(f,1);break}}return d}e.removeSubsets=i;var o;(function(d){d[d.DISCONNECTED=1]="DISCONNECTED",d[d.PRECEDING=2]="PRECEDING",d[d.FOLLOWING=4]="FOLLOWING",d[d.CONTAINS=8]="CONTAINS",d[d.CONTAINED_BY=16]="CONTAINED_BY"})(o=e.DocumentPosition||(e.DocumentPosition={}));function s(d,f){var p=[],y=[];if(d===f)return 0;for(var w=(0,n.hasChildren)(d)?d:d.parent;w;)p.unshift(w),w=w.parent;for(w=(0,n.hasChildren)(f)?f:f.parent;w;)y.unshift(w),w=w.parent;for(var C=Math.min(p.length,y.length),m=0;mE.indexOf(N)?x===f?o.FOLLOWING|o.CONTAINED_BY:o.FOLLOWING:x===d?o.PRECEDING|o.CONTAINS:o.PRECEDING}e.compareDocumentPosition=s;function u(d){return d=d.filter(function(f,p,y){return!y.includes(f,p+1)}),d.sort(function(f,p){var y=s(f,p);return y&o.PRECEDING?-1:y&o.FOLLOWING?1:0}),d}e.uniqueSort=u})(Sv);var du={};Object.defineProperty(du,"__esModule",{value:!0});du.getFeed=void 0;var AN=Fn,ms=$n;function FN(e){var n=eu(HN,e);return n?n.name==="feed"?$N(n):zN(n):null}du.getFeed=FN;function $N(e){var n,i=e.children,o={type:"atom",items:(0,ms.getElementsByTagName)("entry",i).map(function(d){var f,p=d.children,y={media:_v(p)};En(y,"id","id",p),En(y,"title","title",p);var w=(f=eu("link",p))===null||f===void 0?void 0:f.attribs.href;w&&(y.link=w);var C=Si("summary",p)||Si("content",p);C&&(y.description=C);var m=Si("updated",p);return m&&(y.pubDate=new Date(m)),y})};En(o,"id","id",i),En(o,"title","title",i);var s=(n=eu("link",i))===null||n===void 0?void 0:n.attribs.href;s&&(o.link=s),En(o,"description","subtitle",i);var u=Si("updated",i);return u&&(o.updated=new Date(u)),En(o,"author","email",i,!0),o}function zN(e){var n,i,o=(i=(n=eu("channel",e.children))===null||n===void 0?void 0:n.children)!==null&&i!==void 0?i:[],s={type:e.name.substr(0,3),id:"",items:(0,ms.getElementsByTagName)("item",e.children).map(function(d){var f=d.children,p={media:_v(f)};En(p,"id","guid",f),En(p,"title","title",f),En(p,"link","link",f),En(p,"description","description",f);var y=Si("pubDate",f)||Si("dc:date",f);return y&&(p.pubDate=new Date(y)),p})};En(s,"title","title",o),En(s,"link","link",o),En(s,"description","description",o);var u=Si("lastBuildDate",o);return u&&(s.updated=new Date(u)),En(s,"author","managingEditor",o,!0),s}var BN=["url","type","lang"],UN=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function _v(e){return(0,ms.getElementsByTagName)("media:content",e).map(function(n){for(var i=n.attribs,o={medium:i.medium,isDefault:!!i.isDefault},s=0,u=BN;s + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function hg(e){return Object.prototype.toString.call(e)==="[object Object]"}function VN(e){var n,i;return hg(e)===!1?!1:(n=e.constructor,n===void 0?!0:(i=n.prototype,!(hg(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}If.isPlainObject=VN;var qN={exports:{}};(function(e){(function(n,i){e.exports?e.exports=i():n.parseSrcset=i()})(Ae,function(){return function(n){function i(q){return q===" "||q===" "||q===` +`||q==="\f"||q==="\r"}function o(q){var Z,fe=q.exec(n.substring(N));if(fe)return Z=fe[0],N+=Z.length,Z}for(var s=n.length,u=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,y=/^\d+$/,w=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,C,m,x,E,_,N=0,P=[];;){if(o(d),N>=s)return P;C=o(f),m=[],C.slice(-1)===","?(C=C.replace(p,""),$()):L()}function L(){for(o(u),x="",E="in descriptor";;){if(_=n.charAt(N),E==="in descriptor")if(i(_))x&&(m.push(x),x="",E="after descriptor");else if(_===","){N+=1,x&&m.push(x),$();return}else if(_==="(")x=x+_,E="in parens";else if(_===""){x&&m.push(x),$();return}else x=x+_;else if(E==="in parens")if(_===")")x=x+_,E="in descriptor";else if(_===""){m.push(x),$();return}else x=x+_;else if(E==="after descriptor"&&!i(_))if(_===""){$();return}else E="in descriptor",N-=1;N+=1}}function $(){var q=!1,Z,fe,O,K,ce={},de,I,U,W,ne;for(K=0;K",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let i=this.source;n==null&&(n=pg.isColorSupported);let o=w=>w,s=w=>w,u=w=>w;if(n){let{bold:w,gray:C,red:m}=pg.createColors(!0);s=x=>w(m(x)),o=x=>C(x),mg&&(u=x=>mg(x))}let d=i.split(/\r?\n/),f=Math.max(this.line-3,0),p=Math.min(this.line+2,d.length),y=String(p).length;return d.slice(f,p).map((w,C)=>{let m=f+1+C,x=" "+(" "+m).slice(-y)+" | ";if(m===this.line){if(w.length>160){let _=20,N=Math.max(0,this.column-_),P=Math.max(this.column+_,this.endColumn+_),L=w.slice(N,P),$=o(x.replace(/\d/g," "))+w.slice(0,Math.min(this.column-1,_-1)).replace(/[^\t]/g," ");return s(">")+o(x)+u(L)+` + `+$+s("^")}let E=o(x.replace(/\d/g," "))+w.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+o(x)+u(w)+` + `+E+s("^")}return" "+o(x)+u(w)}).join(` +`)}toString(){let n=this.showSourceCode();return n&&(n=` + +`+n+` +`),this.name+": "+this.message+n}};var Ff=Id;Id.default=Id;const gg={after:` +`,beforeClose:` +`,beforeComment:` +`,beforeDecl:` +`,beforeOpen:" ",beforeRule:` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function QN(e){return e[0].toUpperCase()+e.slice(1)}let Ad=class{constructor(e){this.builder=e}atrule(e,n){let i="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o);else{let s=(e.raws.between||"")+(n?";":"");this.builder(i+o+s,e)}}beforeAfter(e,n){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):n==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let o=e.parent,s=0;for(;o&&o.type!=="root";)s+=1,o=o.parent;if(i.includes(` +`)){let u=this.raw(e,null,"indent");if(u.length)for(let d=0;d0&&e.nodes[n].type==="comment";)n-=1;let i=this.raw(e,"semicolon");for(let o=0;o{if(o=f.raws[n],typeof o<"u")return!1})}return typeof o>"u"&&(o=gg[i]),u.rawCache[i]=o,o}rawBeforeClose(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return n=i.raws.after,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(e,n){let i;return e.walkComments(o=>{if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(` +`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,n){let i;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(` +`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let n;return e.walk(i=>{if(i.type!=="decl"&&(n=i.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return n=i.raws.before,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(e){let n;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return n=i.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(i=>{let o=i.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof i.raws.before<"u"){let s=i.raws.before.split(` +`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let i=e[n],o=e.raws[n];return o&&o.value===i?o.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var Nv=Ad;Ad.default=Ad;let KN=Nv;function Fd(e,n){new KN(n).stringify(e)}var fu=Fd;Fd.default=Fd;var gs={};gs.isClean=Symbol("isClean");gs.my=Symbol("my");let YN=Ff,XN=Nv,JN=fu,{isClean:za,my:ek}=gs;function $d(e,n){let i=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="proxyCache")continue;let s=e[o],u=typeof s;o==="parent"&&u==="object"?n&&(i[o]=n):o==="source"?i[o]=s:Array.isArray(s)?i[o]=s.map(d=>$d(d,i)):(u==="object"&&s!==null&&(s=$d(s)),i[o]=s)}return i}let zd=class{constructor(e={}){this.raws={},this[za]=!1,this[ek]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let i of e[n])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=$d(this);for(let i in e)n[i]=e[i];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:i,start:o}=this.rangeBy(n);return this.source.input.error(e,{column:o.column,line:o.line},{column:i.column,line:i.line},n)}return new YN(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,i){return e[n]===i||(e[n]=i,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markClean(){this[za]=!0}markDirty(){if(this[za]){this[za]=!1;let e=this;for(;e=e.parent;)e[za]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let i=this.source.start;if(e.index)i=this.positionInside(e.index,n);else if(e.word){n=this.toString();let o=n.indexOf(e.word);o!==-1&&(i=this.positionInside(o,n))}return i}positionInside(e,n){let i=n||this.toString(),o=this.source.start.column,s=this.source.start.line;for(let u=0;utypeof f=="object"&&f.toJSON?f.toJSON(null,n):f);else if(typeof d=="object"&&d.toJSON)i[u]=d.toJSON(null,n);else if(u==="source"){let f=n.get(d.input);f==null&&(f=s,n.set(d.input,s),s++),i[u]={end:d.end,inputId:f,start:d.start}}else i[u]=d}return o&&(i.inputs=[...n.keys()].map(u=>u.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=JN){e.stringify&&(e=e.stringify);let n="";return e(this,i=>{n+=i}),n}warn(e,n,i){let o={node:this};for(let s in i)o[s]=i[s];return e.warn(n,o)}get proxyOf(){return this}};var hu=zd;zd.default=zd;let tk=hu,Bd=class extends tk{constructor(e){super(e),this.type="comment"}};var pu=Bd;Bd.default=Bd;let nk=hu,Ud=class extends nk{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var mu=Ud;Ud.default=Ud;let kv=pu,Tv=mu,rk=hu,{isClean:jv,my:Pv}=gs,$f,Mv,Lv,zf;function Dv(e){return e.map(n=>(n.nodes&&(n.nodes=Dv(n.nodes)),delete n.source,n))}function Ov(e){if(e[jv]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)Ov(n)}let Zr=class Rv extends rk{append(...n){for(let i of n){let o=this.normalize(i,this.last);for(let s of o)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let i of this.nodes)i.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let i=this.getIterator(),o,s;for(;this.indexes[i]n[i](...o.map(s=>typeof s=="function"?(u,d)=>s(u.toProxy(),d):s)):i==="every"||i==="some"?o=>n[i]((s,...u)=>o(s.toProxy(),...u)):i==="root"?()=>n.root().toProxy():i==="nodes"?n.nodes.map(o=>o.toProxy()):i==="first"||i==="last"?n[i].toProxy():n[i]:n[i]},set(n,i,o){return n[i]===o||(n[i]=o,(i==="name"||i==="params"||i==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,i){let o=this.index(n),s=this.normalize(i,this.proxyOf.nodes[o]).reverse();o=this.index(n);for(let d of s)this.proxyOf.nodes.splice(o+1,0,d);let u;for(let d in this.indexes)u=this.indexes[d],o"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let o of n)o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let o of n)o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new Tv(n)]}else if(n.selector||n.selectors)n=[new zf(n)];else if(n.name)n=[new $f(n)];else if(n.text)n=[new kv(n)];else throw new Error("Unknown node type in node creation");return n.map(o=>(o[Pv]||Rv.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[jv]&&Ov(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(o.raws.before=i.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...n){n=n.reverse();for(let i of n){let o=this.normalize(i,this.first,"prepend").reverse();for(let s of o)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+o.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let i;for(let o in this.indexes)i=this.indexes[o],i>=n&&(this.indexes[o]=i-1);return this.markDirty(),this}replaceValues(n,i,o){return o||(o=i,i={}),this.walkDecls(s=>{i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(n,o))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((i,o)=>{let s;try{s=n(i,o)}catch(u){throw i.addToError(u)}return s!==!1&&i.walk&&(s=i.walk(n)),s})}walkAtRules(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="atrule"&&n.test(o.name))return i(o,s)}):this.walk((o,s)=>{if(o.type==="atrule"&&o.name===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="atrule")return i(o,s)}))}walkComments(n){return this.walk((i,o)=>{if(i.type==="comment")return n(i,o)})}walkDecls(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="decl"&&n.test(o.prop))return i(o,s)}):this.walk((o,s)=>{if(o.type==="decl"&&o.prop===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="decl")return i(o,s)}))}walkRules(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="rule"&&n.test(o.selector))return i(o,s)}):this.walk((o,s)=>{if(o.type==="rule"&&o.selector===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="rule")return i(o,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Zr.registerParse=e=>{Mv=e};Zr.registerRule=e=>{zf=e};Zr.registerAtRule=e=>{$f=e};Zr.registerRoot=e=>{Lv=e};var io=Zr;Zr.default=Zr;Zr.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,$f.prototype):e.type==="rule"?Object.setPrototypeOf(e,zf.prototype):e.type==="decl"?Object.setPrototypeOf(e,Tv.prototype):e.type==="comment"?Object.setPrototypeOf(e,kv.prototype):e.type==="root"&&Object.setPrototypeOf(e,Lv.prototype),e[Pv]=!0,e.nodes&&e.nodes.forEach(n=>{Zr.rebuild(n)})};let Iv=io,tu=class extends Iv{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Bf=tu;tu.default=tu;Iv.registerAtRule(tu);let ik=io,Av,Fv,os=class extends ik{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Av(new Fv,this,e).stringify()}};os.registerLazyResult=e=>{Av=e};os.registerProcessor=e=>{Fv=e};var Uf=os;os.default=os;let ok="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ak=(e=21)=>{let n="",i=e;for(;i--;)n+=ok[Math.random()*64|0];return n};var sk={nanoid:ak};let{existsSync:lk,readFileSync:uk}=lr,{dirname:gd,join:ck}=lr,{SourceMapConsumer:vg,SourceMapGenerator:yg}=lr;function dk(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let Hd=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=n.map?n.map.prev:void 0,o=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=gd(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new vg(this.text)),this.consumerCache}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,u=e.match(o)||e.match(s);if(u)return decodeURIComponent(e.substr(u[0].length));let d=e.match(n)||e.match(i);if(d)return dk(e.substr(d[0].length));let f=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let i=e.lastIndexOf(n.pop()),o=e.indexOf("*/",i);i>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,o)))}loadFile(e){if(this.root=gd(e),lk(e))return this.mapFile=e,uk(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let i=n(e);if(i){let o=this.loadFile(i);if(!o)throw new Error("Unable to load previous source map: "+i.toString());return o}}else{if(n instanceof vg)return yg.fromSourceMap(n).toString();if(n instanceof yg)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=ck(gd(e),i)),this.loadFile(i)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var $v=Hd;Hd.default=Hd;let{nanoid:fk}=sk,{isAbsolute:Vd,resolve:qd}=lr,{SourceMapConsumer:hk,SourceMapGenerator:pk}=lr,{fileURLToPath:wg,pathToFileURL:Tl}=lr,xg=Ff,mk=$v,vd=lr,yd=Symbol("fromOffsetCache"),gk=!!(hk&&pk),Cg=!!(qd&&Vd),nu=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Cg||/^\w+:\/\//.test(n.from)||Vd(n.from)?this.file=n.from:this.file=qd(n.from)),Cg&&gk){let i=new mk(this.css,n);if(i.text){this.map=i;let o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,n,i,o={}){let s,u,d;if(n&&typeof n=="object"){let p=n,y=i;if(typeof p.offset=="number"){let w=this.fromOffset(p.offset);n=w.line,i=w.col}else n=p.line,i=p.column;if(typeof y.offset=="number"){let w=this.fromOffset(y.offset);u=w.line,s=w.col}else u=y.line,s=y.column}else if(!i){let p=this.fromOffset(n);n=p.line,i=p.col}let f=this.origin(n,i,u,s);return f?d=new xg(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,o.plugin):d=new xg(e,u===void 0?n:{column:i,line:n},u===void 0?i:{column:s,line:u},this.css,this.file,o.plugin),d.input={column:i,endColumn:s,endLine:u,line:n,source:this.css},this.file&&(Tl&&(d.input.url=Tl(this.file).toString()),d.input.file=this.file),d}fromOffset(e){let n,i;if(this[yd])i=this[yd];else{let s=this.css.split(` +`);i=new Array(s.length);let u=0;for(let d=0,f=s.length;d=n)o=i.length-1;else{let s=i.length-2,u;for(;o>1),e=i[u+1])o=u+1;else{o=u;break}}return{col:e-i[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:qd(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,i,o){if(!this.map)return!1;let s=this.map.consumer(),u=s.originalPositionFor({column:n,line:e});if(!u.source)return!1;let d;typeof i=="number"&&(d=s.originalPositionFor({column:o,line:i}));let f;Vd(u.source)?f=Tl(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||Tl(this.map.mapFile));let p={column:u.column,endColumn:d&&d.column,endLine:d&&d.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(wg)p.file=wg(f);else throw new Error("file: protocol is not available in this PostCSS build");let y=s.sourceContentFor(u.source);return y&&(p.source=y),p}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var gu=nu;nu.default=nu;vd&&vd.registerInput&&vd.registerInput(nu);let zv=io,Bv,Uv,Wo=class extends zv{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,i){let o=super.normalize(e);if(n){if(i==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of o)s.raws.before=n.raws.before}return o}removeChild(e,n){let i=this.index(e);return!n&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new Bv(new Uv,this,e).stringify()}};Wo.registerLazyResult=e=>{Bv=e};Wo.registerProcessor=e=>{Uv=e};var vs=Wo;Wo.default=Wo;zv.registerRoot(Wo);let as={comma(e){return as.split(e,[","],!0)},space(e){let n=[" ",` +`," "];return as.split(e,n)},split(e,n,i){let o=[],s="",u=!1,d=0,f=!1,p="",y=!1;for(let w of e)y?y=!1:w==="\\"?y=!0:f?w===p&&(f=!1):w==='"'||w==="'"?(f=!0,p=w):w==="("?d+=1:w===")"?d>0&&(d-=1):d===0&&n.includes(w)&&(u=!0),u?(s!==""&&o.push(s.trim()),s="",u=!1):s+=w;return(i||s!=="")&&o.push(s.trim()),o}};var Hv=as;as.default=as;let Vv=io,vk=Hv,ru=class extends Vv{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return vk.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var Hf=ru;ru.default=ru;Vv.registerRule(ru);let yk=Bf,wk=pu,xk=mu,Ck=gu,Sk=$v,_k=vs,bk=Hf;function ss(e,n){if(Array.isArray(e))return e.map(s=>ss(s));let{inputs:i,...o}=e;if(i){n=[];for(let s of i){let u={...s,__proto__:Ck.prototype};u.map&&(u.map={...u.map,__proto__:Sk.prototype}),n.push(u)}}if(o.nodes&&(o.nodes=e.nodes.map(s=>ss(s,n))),o.source){let{inputId:s,...u}=o.source;o.source=u,s!=null&&(o.source.input=n[s])}if(o.type==="root")return new _k(o);if(o.type==="decl")return new xk(o);if(o.type==="rule")return new bk(o);if(o.type==="comment")return new wk(o);if(o.type==="atrule")return new yk(o);throw new Error("Unknown node type: "+e.type)}var Ek=ss;ss.default=ss;let{dirname:Ul,relative:qv,resolve:Wv,sep:Gv}=lr,{SourceMapConsumer:Zv,SourceMapGenerator:Hl}=lr,{pathToFileURL:Sg}=lr,Nk=gu,kk=!!(Zv&&Hl),Tk=!!(Ul&&Wv&&qv&&Gv),jk=class{constructor(e,n,i,o){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=` +`;this.css.includes(`\r +`)&&(n=`\r +`),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),i=e.root||Ul(e.file),o;this.mapOpts.sourcesContent===!1?(o=new Zv(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Tk&&kk&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Hl.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Hl({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Hl({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,n=1,i="",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,u;this.stringify(this.root,(d,f,p)=>{if(this.css+=d,f&&p!=="end"&&(o.generated.line=e,o.generated.column=n-1,f.source&&f.source.start?(o.source=this.sourcePath(f),o.original.line=f.source.start.line,o.original.column=f.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),u=d.match(/\n/g),u?(e+=u.length,s=d.lastIndexOf(` +`),n=d.length-s):n+=d.length,f&&p!=="start"){let y=f.parent||{raws:{}};(!(f.type==="decl"||f.type==="atrule"&&!f.nodes)||f!==y.last||y.raws.semicolon)&&(f.source&&f.source.end?(o.source=this.sourcePath(f),o.original.line=f.source.end.line,o.original.column=f.source.end.column-1,o.generated.line=e,o.generated.column=n-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=n-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let i=this.opts.to?Ul(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Ul(Wv(i,this.mapOpts.annotation)));let o=qv(i,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new Nk(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let i=n.source.input.from;if(i&&!e[i]){e[i]=!0;let o=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(n,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(Sg){let i=Sg(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;Gv==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Qv=jk;const wd=39,_g=34,jl=92,bg=47,Pl=10,Ba=32,Ml=12,Ll=9,Dl=13,Pk=91,Mk=93,Lk=40,Dk=41,Ok=123,Rk=125,Ik=59,Ak=42,Fk=58,$k=64,Ol=/[\t\n\f\r "#'()/;[\\\]{}]/g,Rl=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,zk=/.[\r\n"'(/\\]/,Eg=/[\da-f]/i;var Bk=function(e,n={}){let i=e.css.valueOf(),o=n.ignoreErrors,s,u,d,f,p,y,w,C,m,x,E=i.length,_=0,N=[],P=[];function L(){return _}function $(O){throw e.error("Unclosed "+O,_)}function q(){return P.length===0&&_>=E}function Z(O){if(P.length)return P.pop();if(_>=E)return;let K=O?O.ignoreUnclosed:!1;switch(s=i.charCodeAt(_),s){case Pl:case Ba:case Ll:case Dl:case Ml:{f=_;do f+=1,s=i.charCodeAt(f);while(s===Ba||s===Pl||s===Ll||s===Dl||s===Ml);y=["space",i.slice(_,f)],_=f-1;break}case Pk:case Mk:case Ok:case Rk:case Fk:case Ik:case Dk:{let ce=String.fromCharCode(s);y=[ce,ce,_];break}case Lk:{if(x=N.length?N.pop()[1]:"",m=i.charCodeAt(_+1),x==="url"&&m!==wd&&m!==_g&&m!==Ba&&m!==Pl&&m!==Ll&&m!==Ml&&m!==Dl){f=_;do{if(w=!1,f=i.indexOf(")",f+1),f===-1)if(o||K){f=_;break}else $("bracket");for(C=f;i.charCodeAt(C-1)===jl;)C-=1,w=!w}while(w);y=["brackets",i.slice(_,f+1),_,f],_=f}else f=i.indexOf(")",_+1),u=i.slice(_,f+1),f===-1||zk.test(u)?y=["(","(",_]:(y=["brackets",u,_,f],_=f);break}case wd:case _g:{p=s===wd?"'":'"',f=_;do{if(w=!1,f=i.indexOf(p,f+1),f===-1)if(o||K){f=_+1;break}else $("string");for(C=f;i.charCodeAt(C-1)===jl;)C-=1,w=!w}while(w);y=["string",i.slice(_,f+1),_,f],_=f;break}case $k:{Ol.lastIndex=_+1,Ol.test(i),Ol.lastIndex===0?f=i.length-1:f=Ol.lastIndex-2,y=["at-word",i.slice(_,f+1),_,f],_=f;break}case jl:{for(f=_,d=!0;i.charCodeAt(f+1)===jl;)f+=1,d=!d;if(s=i.charCodeAt(f+1),d&&s!==bg&&s!==Ba&&s!==Pl&&s!==Ll&&s!==Dl&&s!==Ml&&(f+=1,Eg.test(i.charAt(f)))){for(;Eg.test(i.charAt(f+1));)f+=1;i.charCodeAt(f+1)===Ba&&(f+=1)}y=["word",i.slice(_,f+1),_,f],_=f;break}default:{s===bg&&i.charCodeAt(_+1)===Ak?(f=i.indexOf("*/",_+2)+1,f===0&&(o||K?f=i.length:$("comment")),y=["comment",i.slice(_,f+1),_,f],_=f):(Rl.lastIndex=_+1,Rl.test(i),Rl.lastIndex===0?f=i.length-1:f=Rl.lastIndex-2,y=["word",i.slice(_,f+1),_,f],N.push(y),_=f);break}}return _++,y}function fe(O){P.push(O)}return{back:fe,endOfFile:q,nextToken:Z,position:L}};let Uk=Bf,Hk=pu,Vk=mu,qk=vs,Ng=Hf,Wk=Bk;const kg={empty:!0,space:!0};function Gk(e){for(let n=e.length-1;n>=0;n--){let i=e[n],o=i[3]||i[2];if(o)return o}}let Zk=class{constructor(e){this.input=e,this.root=new qk,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new Uk;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let i,o,s,u=!1,d=!1,f=[],p=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?p.push(i==="("?")":"]"):i==="{"&&p.length>0?p.push("}"):i===p[p.length-1]&&p.pop(),p.length===0)if(i===";"){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){d=!0;break}else if(i==="}"){if(f.length>0){for(s=f.length-1,o=f[s];o&&o[0]==="space";)o=f[--s];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(n.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(n,"params",f),u&&(e=f[f.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),d&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let i=0,o;for(let s=n-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let n=0,i,o,s;for(let[u,d]of e.entries()){if(o=d,s=o[0],s==="("&&(n+=1),s===")"&&(n-=1),n===0&&s===":")if(!i)this.doubleColon(o);else{if(i[0]==="word"&&i[1]==="progid")continue;return u}i=o}return!1}comment(e){let n=new Hk;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{let o=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}}createTokenizer(){this.tokenizer=Wk(this.input)}decl(e,n){let i=new Vk;this.init(i,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||Gk(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){i.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],d;for(;e.length&&(d=e[0][0],!(d!=="space"&&d!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){i.important=!0;let p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(i.raws.important=p);break}else if(s[1].toLowerCase()==="important"){let p=e.slice(0),y="";for(let w=f;w>0;w--){let C=p[w][0];if(y.trim().startsWith("!")&&C!=="space")break;y=p.pop()[1]+y}y.trim().startsWith("!")&&(i.important=!0,i.raws.important=y,e=p)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(i.raws.between+=u.map(f=>f[1]).join(""),u=[]),this.raw(i,"value",u.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new Ng;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,i=null,o=!1,s=null,u=[],d=e[1].startsWith("--"),f=[],p=e;for(;p;){if(i=p[0],f.push(p),i==="("||i==="[")s||(s=p),u.push(i==="("?")":"]");else if(d&&o&&i==="{")s||(s=p),u.push("}");else if(u.length===0)if(i===";")if(o){this.decl(f,d);return}else break;else if(i==="{"){this.rule(f);return}else if(i==="}"){this.tokenizer.back(f.pop()),n=!0;break}else i===":"&&(o=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(s=null));p=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),u.length>0&&this.unclosedBracket(s),n&&o){if(!d)for(;f.length&&(p=f[f.length-1][0],!(p!=="space"&&p!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,d)}else this.unknownWord(f)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,n,i,o){let s,u,d=i.length,f="",p=!0,y,w;for(let C=0;Cm+x[1],"");e.raws[n]={raw:C,value:f}}e[n]=f}rule(e){e.pop();let n=new Ng;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let n,i="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],n==="space");)i=e.pop()[1]+i;return i}stringFrom(e,n){let i="";for(let o=n;oe.type==="warning")}get content(){return this.css}};var qf=Gd;Gd.default=Gd;let e2=io,t2=Uf,n2=Qv,r2=Vf,Tg=qf,i2=vs,o2=fu,{isClean:yr,my:a2}=gs;const s2={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},l2={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u2={Once:!0,postcssPlugin:!0,prepare:!0},Go=0;function Ua(e){return typeof e=="object"&&typeof e.then=="function"}function Yv(e){let n=!1,i=s2[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Go,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Go,i+"Exit"]:[i,i+"Exit"]}function jg(e){let n;return e.type==="document"?n=["Document",Go,"DocumentExit"]:e.type==="root"?n=["Root",Go,"RootExit"]:n=Yv(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Zd(e){return e[yr]=!1,e.nodes&&e.nodes.forEach(n=>Zd(n)),e}let Qd={},Zo=class Xv{constructor(n,i,o){this.stringified=!1,this.processed=!1;let s;if(typeof i=="object"&&i!==null&&(i.type==="root"||i.type==="document"))s=Zd(i);else if(i instanceof Xv||i instanceof Tg)s=Zd(i.root),i.map&&(typeof o.map>"u"&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=i.map);else{let u=r2;o.syntax&&(u=o.syntax.parse),o.parser&&(u=o.parser),u.parse&&(u=u.parse);try{s=u(i,o)}catch(d){this.processed=!0,this.error=d}s&&!s[a2]&&e2.rebuild(s)}this.result=new Tg(n,s,o),this.helpers={...Qd,postcss:Qd,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(n){return this.async().catch(n)}finally(n){return this.async().then(n,n)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(n,i){let o=this.result.lastPlugin;try{i&&i.addToError(n),this.error=n,n.name==="CssSyntaxError"&&!n.plugin?(n.plugin=o.postcssPlugin,n.setMessage()):o.postcssVersion}catch(s){console&&console.error&&console.error(s)}return n}prepareVisitors(){this.listeners={};let n=(i,o,s)=>{this.listeners[o]||(this.listeners[o]=[]),this.listeners[o].push([i,s])};for(let i of this.plugins)if(typeof i=="object")for(let o in i){if(!l2[o]&&/^[A-Z]/.test(o))throw new Error(`Unknown event ${o} in ${i.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u2[o])if(typeof i[o]=="object")for(let s in i[o])s==="*"?n(i,o,i[o][s]):n(i,o+"-"+s.toLowerCase(),i[o][s]);else typeof i[o]=="function"&&n(i,o,i[o])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let n=0;n0;){let o=this.visitTick(i);if(Ua(o))try{await o}catch(s){let u=i[i.length-1].node;throw this.handleError(s,u)}}}if(this.listeners.OnceExit)for(let[i,o]of this.listeners.OnceExit){this.result.lastPlugin=i;try{if(n.type==="document"){let s=n.nodes.map(u=>o(u,this.helpers));await Promise.all(s)}else await o(n,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(n){this.result.lastPlugin=n;try{if(typeof n=="object"&&n.Once){if(this.result.root.type==="document"){let i=this.result.root.nodes.map(o=>n.Once(o,this.helpers));return Ua(i[0])?Promise.all(i):i}return n.Once(this.result.root,this.helpers)}else if(typeof n=="function")return n(this.result.root,this.result)}catch(i){throw this.handleError(i)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let n=this.result.opts,i=o2;n.syntax&&(i=n.syntax.stringify),n.stringifier&&(i=n.stringifier),i.stringify&&(i=i.stringify);let o=new n2(i,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let n of this.plugins){let i=this.runOnRoot(n);if(Ua(i))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let n=this.result.root;for(;!n[yr];)n[yr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if(n.type==="document")for(let i of n.nodes)this.visitSync(this.listeners.OnceExit,i);else this.visitSync(this.listeners.OnceExit,n)}return this.result}then(n,i){return this.async().then(n,i)}toString(){return this.css}visitSync(n,i){for(let[o,s]of n){this.result.lastPlugin=o;let u;try{u=s(i,this.helpers)}catch(d){throw this.handleError(d,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(Ua(u))throw this.getAsyncError()}}visitTick(n){let i=n[n.length-1],{node:o,visitors:s}=i;if(o.type!=="root"&&o.type!=="document"&&!o.parent){n.pop();return}if(s.length>0&&i.visitorIndex{s[yr]||this.walkSync(s)});else{let s=this.listeners[o];if(s&&this.visitSync(s,n.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Zo.registerPostcss=e=>{Qd=e};var Jv=Zo;Zo.default=Zo;i2.registerLazyResult(Zo);t2.registerLazyResult(Zo);let c2=Qv,d2=Vf;const f2=qf;let h2=fu,Kd=class{constructor(e,n,i){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;let o,s=h2;this.result=new f2(this._processor,o,this._opts),this.result.css=n;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let d=new c2(s,o,this._opts,n);if(d.isMap()){let[f,p]=d.generate();f&&(this.result.css=f),p&&(this.result.map=p)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=d2;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var p2=Kd;Kd.default=Kd;let m2=Uf,g2=Jv,v2=p2,y2=vs,ls=class{constructor(n=[]){this.version="8.4.47",this.plugins=this.normalize(n)}normalize(n){let i=[];for(let o of n)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))i=i.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)i.push(o);else if(typeof o=="function")i.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return i}process(n,i={}){return!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new v2(this,n,i):new g2(this,n,i)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}};var w2=ls;ls.default=ls;y2.registerProcessor(ls);m2.registerProcessor(ls);let ey=Bf,ty=pu,x2=io,C2=Ff,ny=mu,ry=Uf,S2=Ek,_2=gu,b2=Jv,E2=Hv,N2=hu,k2=Vf,Wf=w2,T2=qf,iy=vs,oy=Hf,j2=fu,P2=Kv;function at(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Wf(e)}at.plugin=function(e,n){let i=!1;function o(...u){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`),og.LANG&&og.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南: +https://www.w3ctech.com/topic/2226`));let d=n(...u);return d.postcssPlugin=e,d.postcssVersion=new Wf().version,d}let s;return Object.defineProperty(o,"postcss",{get(){return s||(s=o()),s}}),o.process=function(u,d,f){return at([o(f)]).process(u,d)},o};at.stringify=j2;at.parse=k2;at.fromJSON=S2;at.list=E2;at.comment=e=>new ty(e);at.atRule=e=>new ey(e);at.decl=e=>new ny(e);at.rule=e=>new oy(e);at.root=e=>new iy(e);at.document=e=>new ry(e);at.CssSyntaxError=C2;at.Declaration=ny;at.Container=x2;at.Processor=Wf;at.Document=ry;at.Comment=ty;at.Warning=P2;at.AtRule=ey;at.Result=T2;at.Input=_2;at.Rule=oy;at.Root=iy;at.Node=N2;b2.registerPostcss(at);var M2=at;at.default=at;const{isPlainObject:IP}=If,{parse:AP}=M2,L2="_list_1whuj_1",D2="_compact_1whuj_5",O2="_pending_1whuj_8",xd={list:L2,compact:D2,pending:O2};function R2(e){const{className:n,data:i,keySelector:o,renderer:s,rendererParams:u,pending:d,errored:f,filtered:p,errorMessage:y,emptyMessage:w,pendingMessage:C,filteredEmptyMessage:m,compact:x,withoutMessage:E=!1,messageClassName:_}=e,N=$e(i)||i.length===0;return g.jsxs("div",{className:Oe(xd.list,x&&xd.compact,d&&xd.pending,n),children:[g.jsx(f0,{data:i,keySelector:o,renderer:s,rendererParams:u}),!E&&g.jsx(l0,{className:_,pending:d,filtered:p,empty:N,errored:f,compact:x,emptyMessage:w,filteredEmptyMessage:m,pendingMessage:C,errorMessage:y,overlayPending:!0})]})}function ay(e,n){if($e(e))return;const i={},o=[];return e.forEach(s=>{const u=n?n(s):JSON.stringify(s);i[u]||(i[u]=!0,o.push(s))}),e.length===o.length?e:o}const I2=[40,38,13,8];function A2(e,n,i){return n.findIndex((o,s)=>i(o,s)===e)}function Pg(e,n,i,o){if(i.length<=0)return;let s=A2(e,i,o);s===-1&&(s=n>0?-1:0);const u=Gx(s+n,i.length);return o(i[u],u)}function F2(e,n,i,o,s,u,d,f,p){return v.useCallback(y=>{const{keyCode:w}=y,C=e?.key;if(o&&(w===9||w===27))u();else if(!o&&I2.includes(w))y.stopPropagation(),y.preventDefault(),d();else if(w===13)if(Mt(C)){y.stopPropagation(),y.preventDefault();const m=i.find((x,E)=>n(x,E)===C);m&&f(C,m)}else y.stopPropagation(),y.preventDefault(),p&&p();else if(w===40){y.stopPropagation(),y.preventDefault();const m=Pg(C,1,i,n);s(m?{key:m}:void 0)}else if(w===38){y.stopPropagation(),y.preventDefault();const m=Pg(C,-1,i,n);s(m?{key:m}:void 0)}},[e,o,n,s,u,f,d,p,i])}const $2="_generic-option_zv1n8_1",z2={genericOption:$2};function B2(e){const{optionContainerClassName:n,contentRenderer:i,contentRendererParam:o,option:s,onClick:u,optionKey:d,focusedKey:f}=e,p=o(d,s),{containerClassName:y,title:w,...C}=p,m=f?.key===d,x=v.useRef(null);v.useEffect(()=>{f&&f.key===d&&!f.mouse&&x.current&&x.current.scrollIntoView({behavior:"smooth",block:"center"})},[d,f]);const E=v.useCallback(()=>{u(d,s)},[d,s,u]);return g.jsx(sf,{elementRef:x,className:Oe(z2.genericOption,n,y),onClick:E,title:w,name:d,focused:m,children:i(C)})}const U2="common",H2={infoMessageAnd:"and",infoMessageMore:"more",buttonTitleSelect:"Select all",buttonTitleClear:"Clear",buttonTitleClose:"Close",buttonTitleOpen:"Open",selectInputPendingMessage:"Fetching options...",selectInputEmptyMessage:"No option available",selectInputFilteredMessage:"No option available for the search",selectInputErrorMessage:"Could not load options"},V2={namespace:U2,strings:H2},q2="_popup_poyjv_1",W2="_list_poyjv_4",G2="_list-item_poyjv_9",Z2="_info-message_poyjv_14",Q2="_icon_poyjv_21",yi={popup:q2,list:W2,listItem:G2,infoMessage:Z2,icon:Q2},K2=[];function sy(e){const{actions:n,actionsContainerClassName:i,className:o,disabled:s,error:u,errorContainerClassName:d,hint:f,hintContainerClassName:p,icons:y,iconsContainerClassName:w,inputSectionClassName:C,label:m,labelClassName:x,name:E,onOptionClick:_,searchText:N,onSearchTextChange:P,optionContainerClassName:L,optionKeySelector:$,optionRenderer:q,optionRendererParams:Z,options:fe,optionsPopupClassName:O,persistentOptionPopup:K,readOnly:ce,placeholder:de,valueDisplay:I="",nonClearable:U,onClearButtonClick:W,onSelectAllButtonClick:ne,optionsPending:he=!1,optionsFiltered:Ce=!1,optionsErrored:be=!1,focused:G,focusedKey:ue,onFocusedKeyChange:k,onFocusedChange:H,dropdownShown:oe,onDropdownShownChange:Se,totalOptionsCount:se=0,hasValue:re,autoFocus:ee,onEnterWithoutOption:Q,withAsterisk:Y,required:nt,variant:tn,errorOnTooltip:Wt,dropdownHidden:st}=e,St=fe??K2,ut=s0(V2),wt=v.useRef(null),ht=v.useRef(null),pt=v.useRef(null),Nt=v.useRef(null),nn=v.useCallback(mt=>{oe||Se(!0),P(mt)},[oe,Se,P]),jn=v.useCallback((mt,Kt)=>{Kt.stopPropagation(),Se(!oe)},[oe,Se]),un=v.useCallback(()=>{oe||Se(!0)},[oe,Se]),Pn=v.useCallback(()=>{Se(!1)},[Se]),Kr=v.useCallback(()=>{ce||un()},[ce,un]),cn=v.useCallback((mt,Kt)=>{mt||Kt?K&&pt.current&&pt.current.focus():Pn()},[Pn,K]),dn=v.useCallback((mt,Kt)=>{_(mt,Kt,E),K||Pn()},[_,Pn,K,E]),Sr=v.useCallback((mt,Kt)=>({contentRendererParam:Z,option:Kt,optionKey:mt,focusedKey:ue,contentRenderer:q,onClick:dn,onFocus:k,optionContainerClassName:Oe(L,yi.listItem)}),[ue,dn,k,L,q,Z]);FE(oe,cn,Nt,wt);const Qn=F2(ue,$,St,oe,k,Pn,un,dn,Q),ct=St.length,Lt=se-ct>0?`${ut.infoMessageAnd} ${se-ct} ${ut.infoMessageMore}`:void 0,Qt=oe&&!st;return g.jsxs(g.Fragment,{children:[g.jsx(Tf,{actionsContainerClassName:i,className:o,containerRef:wt,disabled:s,errorContainerClassName:d,error:u,errorOnTooltip:Wt,hintContainerClassName:p,hint:f,iconsContainerClassName:w,icons:y,inputSectionClassName:C,inputSectionRef:ht,labelClassName:x,label:m,readOnly:ce,required:nt,variant:tn,withAsterisk:Y,actions:g.jsxs(g.Fragment,{children:[n,!ce&&ne&&g.jsx(Ue,{onClick:ne,disabled:s,variant:"tertiary",name:void 0,title:ut.buttonTitleSelect,children:g.jsx(EC,{className:yi.icon})}),!ce&&!U&&re&&g.jsx(Ue,{onClick:W,disabled:s,variant:"tertiary",name:void 0,title:ut.buttonTitleClear,children:g.jsx(LC,{className:yi.icon})}),!ce&&g.jsx(Ue,{onClick:jn,variant:"tertiary",name:void 0,title:Qt?ut.buttonTitleClose:ut.buttonTitleOpen,children:Qt?g.jsx(bC,{className:yi.icon}):g.jsx(SC,{className:yi.icon})})]}),input:g.jsx(Y0,{name:E,elementRef:pt,readOnly:ce,disabled:s,value:oe||G?N:I,onChange:nn,onClick:Kr,onFocus:()=>H(!0),onBlur:()=>H(!1),placeholder:ds(I)?I:de,autoComplete:"off",onKeyDown:Qn,autoFocus:ee})}),Qt&&g.jsxs(u0,{elementRef:Nt,parentRef:ht,className:Oe(O,yi.popup),children:[g.jsx(R2,{className:yi.list,data:St,keySelector:$,renderer:B2,rendererParams:Sr,errored:be,filtered:Ce,pending:he,pendingMessage:ut.selectInputPendingMessage,emptyMessage:ut.selectInputEmptyMessage,filteredEmptyMessage:ut.selectInputFilteredMessage,errorMessage:ut.selectInputErrorMessage,compact:!0}),!he&&!be&&!!Lt&&g.jsx("div",{className:yi.infoMessage,children:Lt})]})]})}function Y2(e){const{children:n,isActive:i,iconClassName:o,labelClassName:s}=e;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:o,children:i?g.jsx(jC,{}):g.jsx(TC,{})}),g.jsx("div",{className:s,children:n})]})}const X2="_option_1kpl9_1",J2="_active_1kpl9_7",eT="_icon_1kpl9_11",tT="_label_1kpl9_17",Ha={option:X2,active:J2,icon:eT,label:tT},Cd=[];function nT(e){const{keySelector:n,labelSelector:i,name:o,onChange:s,onOptionsChange:u,options:d,optionsPending:f,optionsErrored:p,value:y,sortFunction:w,searchOptions:C,onSearchValueChange:m,onShowDropdownChange:x,hideOptionFilter:E,selectedOnTop:_,...N}=e,P=d??Cd,L=C??Cd,$=y??Cd,[q,Z]=v.useState(),[fe,O]=v.useState(!1),[K,ce]=v.useState(!1),[de,I]=v.useState(),[U,W]=v.useState({}),ne=v.useMemo(()=>Ga(P,n,se=>se),[P,n]),he=v.useMemo(()=>Ga(P,n,i),[P,n,i]),Ce=v.useMemo(()=>$.map(se=>he[se]??"?").join(", "),[$,he]),be=v.useMemo(()=>$.map(se=>ne[se]).filter(Mt),[$,ne]),G=v.useMemo(()=>{const se=ay([...L,...be],n);if(!_)return w?w(se,q,i):se;const re=se.filter(Q=>U[n(Q)]),ee=se.filter(Q=>!U[n(Q)]&&($e(E)||E(Q)));return w?[...eo(re,q,i),...w(ee,q,i)]:[...eo(re,q,i),...ee]},[_,n,i,q,L,U,be,w,E]),ue=v.useCallback(se=>{Z(se),m&&m(se)},[m]),k=v.useCallback(se=>{O(se),x&&x(se),se?(W(Ga($,re=>re,()=>!0)),I(void 0)):(W({}),I(void 0),Z(void 0),m&&m(void 0))},[$,m,x]),H=v.useCallback((se,re)=>{const ee=$.findIndex(Q=>Q===se)!==-1;return{children:i(re),containerClassName:Oe(Ha.option,ee&&Ha.active),title:i(re),isActive:ee,labelClassName:Ha.label,iconClassName:Ha.icon}},[i,$]),oe=v.useCallback((se,re)=>{const ee=[...$],Q=$.findIndex(Y=>Y===se);Q!==-1?ee.splice(Q,1):(ee.push(se),u&&u(Y=>{const nt=Y??[];return nt.find(tn=>n(tn)===se)?Y:[...nt,re]})),s(ee,o)},[$,s,o,u,n]),Se=v.useCallback(()=>{s([],o)},[o,s]);return g.jsx(sy,{...N,name:o,options:G,optionsPending:f,optionsFiltered:ds(q)&&q.length>0,optionsErrored:p,optionKeySelector:n,optionRenderer:Y2,optionRendererParams:H,optionContainerClassName:Ha.optionContainer,onOptionClick:oe,valueDisplay:Ce,onClearButtonClick:Se,searchText:q,onSearchTextChange:ue,dropdownShown:fe,onDropdownShownChange:k,focused:K,onFocusedChange:ce,focusedKey:de,onFocusedKeyChange:I,persistentOptionPopup:!0,nonClearable:!1,hasValue:Mt($)&&$.length>0})}function Mg(e){const{name:n,options:i,keySelector:o,onChange:s,withSelectAll:u,...d}=e,f=v.useCallback(()=>{if($e(i))return;const p=i.map(o);s(p,n)},[i,n,s,o]);return g.jsx(nT,{...d,name:n,onChange:s,options:i,keySelector:o,sortFunction:eo,searchOptions:i,onSelectAllButtonClick:u?f:void 0,selectedOnTop:!1})}const rT="_page-container_1cfro_1",iT="_content_1cfro_2",Lg={pageContainer:rT,content:iT};function Gf(e){const{className:n,contentClassName:i,children:o,contentAs:s="div",containerAs:u="div"}=e,d=s;return g.jsx(u,{className:Oe(Lg.pageContainer,n),children:g.jsx(d,{className:Oe(Lg.content,i),children:o})})}const oT="_raw-input_145mq_1",aT={rawInput:oT};function sT(e){const{className:n,onChange:i,elementRef:o,value:s,name:u,...d}=e,f=sr.useCallback(p=>{var y;const w=(y=p?.target)==null?void 0:y.value;i&&i(w===""?void 0:w,u,p)},[u,i]);return g.jsx("textarea",{...d,ref:o,className:Oe(aT.rawInput,n),name:Mt(u)?String(u):void 0,onChange:f,value:s??""})}const lT="_option_11p37_1",uT="_icon_11p37_6",cT="_label_11p37_14",dT="_overflow-container_11p37_20",fT="_description_11p37_25",Ao={option:lT,icon:uT,label:cT,overflowContainer:dT,description:fT};function hT(e){const{className:n,label:i,description:o,iconClassName:s,labelClassName:u}=e;return g.jsxs("div",{className:Oe(Ao.option,n),children:[g.jsx("div",{className:Oe(Ao.icon,s),children:g.jsx(NC,{})}),g.jsxs("div",{className:Oe(Ao.label,u),children:[g.jsx("div",{className:Ao.overflowContainer,children:i}),g.jsx("div",{className:Oe(Ao.overflowContainer,Ao.description),children:o})]})]})}const pT="_option-container_2k92q_1",mT="_option_2k92q_1",gT="_active_2k92q_9",vT="_icon_2k92q_12",Va={optionContainer:pT,option:mT,active:gT,icon:vT},Dg=[];function Og(e){const{keySelector:n,labelSelector:i,descriptionSelector:o,name:s,onChange:u,onOptionsChange:d,options:f,optionsPending:p,optionsErrored:y,value:w,sortFunction:C,searchOptions:m,onSearchValueChange:x,onShowDropdownChange:E,hideOptionFilter:_,selectedOnTop:N,onEnterWithoutOption:P,...L}=e,$=f??Dg,q=m??Dg,[Z,fe]=v.useState(),[O,K]=v.useState(!1),[ce,de]=v.useState(!1),[I,U]=v.useState(),[W,ne]=v.useState({}),he=v.useMemo(()=>Ga($,n,i),[$,n,i]),Ce=Mt(w)?he[w]??"?":"",be=v.useMemo(()=>{const re=$?.find(ee=>n(ee)===w);return $e(re)?[]:[re]},[w,$,n]),G=v.useMemo(()=>{const re=ay([...q,...be],n);if(!N)return C?C(re,Z,i):re;const ee=re.filter(Y=>W[n(Y)]),Q=re.filter(Y=>!W[n(Y)]&&($e(_)||_(Y)));return C?[...eo(ee,Z,i),...C(Q,Z,i)]:[...eo(ee,Z,i),...Q]},[N,n,i,Z,q,W,be,C,_]),ue=v.useCallback(re=>{fe(re),x&&x(re)},[x]),k=v.useCallback(()=>{K(!1),E&&E(!1),fe(void 0),x&&x(void 0),P&&P(Z)},[Z,E,P,x]),H=v.useCallback(re=>{K(re),E&&E(re),re?(ne(Ga(w?[w]:[],ee=>ee,()=>!0)),U(w?{key:w}:void 0)):(ne({}),U(void 0),fe(void 0),x&&x(void 0))},[w,x,E]),oe=v.useCallback((re,ee)=>{const Q=re===w;return{label:i(ee),description:o?o(ee):void 0,containerClassName:Oe(Va.optionContainer,Q&&Va.active),title:i(ee),className:Va.option,iconClassName:Va.icon}},[w,i,o]),Se=v.useCallback((re,ee)=>{d&&d(Q=>{const Y=Q??[];return Y.find(nt=>n(nt)===re)?Q:[...Y,ee]}),u(re,s,ee)},[u,s,d,n]),se=v.useCallback(()=>{if(!e.nonClearable){const re=e.onChange;re(void 0,s,void 0)}},[s,e.onChange,e.nonClearable]);return g.jsx(sy,{...L,name:s,options:G,optionsPending:p,optionsErrored:y,optionsFiltered:ds(Z)&&Z.length>0,optionKeySelector:n,optionRenderer:hT,optionRendererParams:oe,optionContainerClassName:Va.optionContainer,onOptionClick:Se,valueDisplay:Ce,onClearButtonClick:se,searchText:Z,onSearchTextChange:ue,dropdownShown:O,onDropdownShownChange:H,focused:ce,onFocusedChange:de,focusedKey:I,onFocusedKeyChange:U,hasValue:Mt(w),persistentOptionPopup:!1,onEnterWithoutOption:k})}const yT="_segment-input_bykt7_1",wT="_segment-list_bykt7_4",xT="_segment_bykt7_1",CT="_active_bykt7_18",ST="_secondary-variant_bykt7_24",Qa={segmentInput:yT,segmentList:wT,segment:xT,active:CT,secondaryVariant:ST};function _T(e){const{label:n,name:i,onClick:o,value:s,className:u,variant:d="primary",inputName:f,...p}=e;return g.jsx(Ue,{...p,className:Oe(Qa.segment,s&&Qa.active,d==="secondary"&&Qa.secondaryVariant,u),name:i,onClick:o,variant:"tertiary",children:n})}function bT(e){const{rendererParams:n,listContainerClassName:i,keySelector:o,labelSelector:s,className:u,...d}=e;return g.jsx(w_,{className:Oe(u,Qa.segmentInput),...d,renderer:_T,rendererParams:n,listContainerClassName:Oe(i,Qa.segmentList),keySelector:o,labelSelector:s})}function Wi(e){const{name:n,options:i,nonClearable:o,onChange:s,...u}=e;return e.nonClearable?g.jsx(Og,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:eo,searchOptions:i,selectedOnTop:!1}):g.jsx(Og,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:eo,searchOptions:i,selectedOnTop:!1})}v.createContext({tabs:[],step:0,disabled:!1,activeTab:"",variant:"primary",setActiveTab:()=>{console.warn("setActiveTab called before it was initialized")},registerTab:()=>{console.warn("registerTab called before it was initialized")},unregisterTab:()=>{console.warn("unregisterTab called before it was initialized")}});const Rg="•",ET="Enter";function NT(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:p,label:y,labelClassName:w,readOnly:C,required:m,variant:x,inputSectionClassName:E,withAsterisk:_,onChange:N,name:P,autoBullets:L=!1,rows:$=5,...q}=e,Z=sr.useCallback(O=>{$e(N)||O.target.value===""&&N(`${Rg} `,P)},[N,P]),fe=sr.useCallback(O=>{$e(N)||O.key===ET&&N(`${O.currentTarget.value}${Rg} `,P)},[N,P]);return g.jsx(Tf,{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:E,labelClassName:w,label:y,readOnly:C,required:m,variant:x,withAsterisk:_,input:g.jsx(sT,{...q,readOnly:C,disabled:o,className:p,onChange:N,name:P,onFocus:L?Z:void 0,onKeyUp:L?fe:void 0,rows:$})})}function Tt(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:p,inputSectionClassName:y,label:w,readOnly:C,required:m,variant:x,withAsterisk:E,type:_="text",...N}=e;return g.jsx(Tf,{className:i,actions:n,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:y,label:w,required:m,readOnly:C,variant:x,withAsterisk:E,input:g.jsx(Y0,{...N,required:m,readOnly:C,disabled:o,className:p,type:_})})}const kT="_dropdownContainer_1six7_3",TT="_dropdownMenu_1six7_15",jT="_dropdownContent_1six7_43",Sd={dropdownContainer:kT,dropdownMenu:TT,dropdownContent:jT},PT=[{to:"/upload",label:"Upload",Icon:a0},{to:"/explore",label:"Explore",Icon:AC},{to:"/analytics",label:"Analytics",Icon:o0}];function MT(){const e=Ko(),n=cs(),[i,o]=v.useState(!1),s=v.useRef(null);return v.useEffect(()=>{const u=d=>{s.current&&!s.current.contains(d.target)&&o(!1)};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]),g.jsx("nav",{className:"border-b border-gray-200 bg-white shadow-sm sticky top-0 z-50 backdrop-blur-sm bg-white/95",children:g.jsxs(Gf,{className:"border-b-2 border-ifrcRed",contentClassName:"grid grid-cols-3 items-center py-6",children:[g.jsxs("div",{className:"flex items-center gap-4 min-w-0 cursor-pointer group transition-all duration-200 hover:scale-105",onClick:()=>{if(!(e.pathname==="/upload"||e.pathname==="/")){if(e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/")}},children:[g.jsx("div",{className:"p-2 rounded-lg bg-gradient-to-br from-ifrcRed/10 to-ifrcRed/20 group-hover:from-ifrcRed/20 group-hover:to-ifrcRed/30 transition-all duration-200",children:g.jsx(DC,{className:"h-8 w-8 flex-shrink-0 text-ifrcRed"})}),g.jsx("div",{className:"flex flex-col",children:g.jsx("span",{className:"font-bold text-xl text-gray-900 leading-tight",children:"PromptAid Vision"})})]}),g.jsx("div",{className:"flex justify-center",children:g.jsx("nav",{className:"flex items-center space-x-4 bg-gray-50/80 rounded-xl p-2 backdrop-blur-sm",children:PT.map(({to:u,label:d,Icon:f})=>{const p=e.pathname===u||u==="/upload"&&e.pathname==="/"||u==="/explore"&&e.pathname.startsWith("/map/"),y=e.pathname==="/upload"||e.pathname==="/",w=u==="/upload"||u==="/";return g.jsxs("div",{className:"relative",children:[g.jsx(ar,{withInternalPadding:!0,className:"p-2",children:g.jsxs(Ue,{name:d.toLowerCase(),variant:p?"primary":"tertiary",size:1,className:`transition-all duration-200 ${p?"shadow-lg shadow-ifrcRed/20 transform scale-105":"hover:bg-white hover:shadow-md hover:scale-105"}`,onClick:()=>{if(!(y&&w)){if(e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded(u);return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n(u)}},children:[g.jsx(f,{className:`w-4 h-4 transition-transform duration-200 ${p?"scale-110":"group-hover:scale-110"}`}),g.jsx("span",{className:"inline ml-2 font-semibold",children:d})]})}),p&&g.jsx("div",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-8 h-1 bg-ifrcRed rounded-full animate-pulse"})]},u)})})}),g.jsx("div",{className:"flex justify-end",children:g.jsxs("div",{className:Sd.dropdownContainer,ref:s,children:[g.jsx(ar,{withInternalPadding:!0,className:"p-2",children:g.jsx(Ue,{name:"more-options",variant:i?"primary":"tertiary",size:1,className:"transition-all duration-200",onClick:()=>o(!i),children:g.jsx(OC,{className:"w-4 h-4"})})}),i&&g.jsx("div",{className:Sd.dropdownMenu,children:g.jsxs("div",{className:Sd.dropdownContent,children:[g.jsx(ar,{withInternalPadding:!0,className:"p-2",children:g.jsxs(Ue,{name:"help-support",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(o(!1),e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/help");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/help")},children:[g.jsx(RC,{className:"w-4 h-4"}),g.jsx("span",{className:"ml-2 font-semibold",children:"Help & Support"})]})}),g.jsx(ar,{withInternalPadding:!0,className:"p-2",children:g.jsxs(Ue,{name:"dev",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(o(!1),e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/admin");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/admin")},children:[g.jsx(FC,{className:"w-4 h-4"}),g.jsx("span",{className:"ml-2 font-semibold",children:"Dev"})]})})]})})]})})]})})}function LT(){return g.jsxs(g.Fragment,{children:[g.jsx(MT,{}),g.jsx(lx,{})]})}const DT="_uploadContainer_1w5i1_1",OT="_dropZone_1w5i1_9",RT="_hasFile_1w5i1_30",IT="_dropZoneIcon_1w5i1_37",AT="_dropZoneText_1w5i1_43",FT="_dropZoneSubtext_1w5i1_49",$T="_filePreview_1w5i1_55",zT="_filePreviewImage_1w5i1_64",BT="_fileName_1w5i1_110",UT="_fileInfo_1w5i1_118",HT="_helpLink_1w5i1_125",VT="_loadingContainer_1w5i1_145",qT="_loadingText_1w5i1_153",WT="_generateButtonContainer_1w5i1_157",GT="_uploadedMapContainer_1w5i1_165",ZT="_uploadedMapImage_1w5i1_169",QT="_formGrid_1w5i1_209",KT="_titleField_1w5i1_222",YT="_ratingDescription_1w5i1_230",XT="_ratingSlider_1w5i1_235",JT="_ratingLabel_1w5i1_242",ej="_ratingInput_1w5i1_251",tj="_ratingValue_1w5i1_256",nj="_submitSection_1w5i1_266",rj="_successContainer_1w5i1_275",ij="_successHeading_1w5i1_280",oj="_successText_1w5i1_285",aj="_successButton_1w5i1_291",sj="_viewFullSizeButton_1w5i1_297",lj="_fullSizeModalOverlay_1w5i1_306",uj="_lightModalOverlay_1w5i1_320",cj="_fullSizeModalContent_1w5i1_334",dj="_fullSizeModalHeader_1w5i1_345",fj="_fullSizeModalImage_1w5i1_361",hj="_confirmSection_1w5i1_398",pj="_step2Layout_1w5i1_407",mj="_topRow_1w5i1_413",gj="_ratingHidden_1w5i1_421",vj="_imageSection_1w5i1_425",yj="_ratingContent_1w5i1_435",wj="_mapColumn_1w5i1_453",xj="_contentColumn_1w5i1_458",Cj="_step2bLayout_1w5i1_465",Sj="_metadataSectionCard_1w5i1_562",_j="_droneMetadataSection_1w5i1_571",bj="_droneMetadataHeading_1w5i1_577",Ej="_droneMetadataGrid_1w5i1_585",Nj="_rtkFixContainer_1w5i1_591",kj="_rtkFixLabel_1w5i1_597",Tj="_rtkFixCheckbox_1w5i1_606",jj="_confirmButtonContainer_1w5i1_621",Pj="_ratingWarningContent_1w5i1_629",Mj="_ratingWarningTitle_1w5i1_637",Lj="_ratingWarningText_1w5i1_644",Dj="_ratingWarningButtons_1w5i1_651",Oj="_preprocessingProgress_1w5i1_658",Rj="_carouselContainer_1w5i1_711",Ij="_carouselImageWrapper_1w5i1_716",Aj="_carouselImage_1w5i1_716",Fj="_carouselNavigation_1w5i1_739",$j="_carouselButton_1w5i1_751",zj="_carouselIndicators_1w5i1_775",Bj="_carouselIndicator_1w5i1_775",Uj="_carouselIndicatorActive_1w5i1_804",Hj="_viewImageButtonContainer_1w5i1_840",V={uploadContainer:DT,dropZone:OT,hasFile:RT,dropZoneIcon:IT,dropZoneText:AT,dropZoneSubtext:FT,filePreview:$T,filePreviewImage:zT,fileName:BT,fileInfo:UT,helpLink:HT,loadingContainer:VT,loadingText:qT,generateButtonContainer:WT,uploadedMapContainer:GT,uploadedMapImage:ZT,formGrid:QT,titleField:KT,ratingDescription:YT,ratingSlider:XT,ratingLabel:JT,ratingInput:ej,ratingValue:tj,submitSection:nj,successContainer:rj,successHeading:ij,successText:oj,successButton:aj,viewFullSizeButton:sj,fullSizeModalOverlay:lj,lightModalOverlay:uj,fullSizeModalContent:cj,fullSizeModalHeader:dj,fullSizeModalImage:fj,confirmSection:hj,step2Layout:pj,topRow:mj,ratingHidden:gj,imageSection:vj,ratingContent:yj,mapColumn:wj,contentColumn:xj,step2bLayout:Cj,metadataSectionCard:Sj,droneMetadataSection:_j,droneMetadataHeading:bj,droneMetadataGrid:Ej,rtkFixContainer:Nj,rtkFixLabel:kj,rtkFixCheckbox:Tj,confirmButtonContainer:jj,ratingWarningContent:Pj,ratingWarningTitle:Mj,ratingWarningText:Lj,ratingWarningButtons:Dj,preprocessingProgress:Oj,carouselContainer:Rj,carouselImageWrapper:Ij,carouselImage:Aj,carouselNavigation:Fj,carouselButton:$j,carouselIndicators:zj,carouselIndicator:Bj,carouselIndicatorActive:Uj,viewImageButtonContainer:Hj},ly=v.createContext(void 0),Vj=({children:e})=>{const[n,i]=v.useState(""),[o,s]=v.useState(""),[u,d]=v.useState(""),[f,p]=v.useState(""),[y,w]=v.useState(""),[C,m]=v.useState(""),[x,E]=v.useState(""),[_,N]=v.useState(!1),L={search:n,srcFilter:o,catFilter:u,regionFilter:f,countryFilter:y,imageTypeFilter:C,uploadTypeFilter:x,showReferenceExamples:_,setSearch:i,setSrcFilter:s,setCatFilter:d,setRegionFilter:p,setCountryFilter:w,setImageTypeFilter:m,setUploadTypeFilter:E,setShowReferenceExamples:N,clearAllFilters:()=>{i(""),s(""),d(""),p(""),w(""),m(""),E(""),N(!1)}};return g.jsx(ly.Provider,{value:L,children:e})},qj=()=>{const e=v.useContext(ly);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e};function Ig({files:e,file:n,preview:i,imageType:o,onFileChange:s,onRemoveImage:u,onAddImage:d,onImageTypeChange:f,onChangeFile:p}){const y=w=>{w.preventDefault();const C=w.dataTransfer.files?.[0];C&&s(C)};return g.jsxs("div",{className:"space-y-6",children:[g.jsx("p",{className:"text-gray-700 leading-relaxed max-w-2xl mx-auto",children:"This app evaluates how well multimodal AI models analyze and describe crisis maps and drone imagery. Upload an image and the AI will generate a description. Then you can review and rate the result based on your expertise."}),g.jsx("div",{className:V.helpLink,children:g.jsxs(Mx,{to:"/help",className:V.helpLink,children:["More ",g.jsx(_C,{className:"w-3 h-3"})]})}),g.jsx("div",{className:"flex justify-center",children:g.jsx(ar,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",children:g.jsx(bT,{name:"image-type",value:o,onChange:w=>f(w),options:[{key:"crisis_map",label:"Crisis Maps"},{key:"drone_image",label:"Drone Imagery"}],keySelector:w=>w.key,labelSelector:w=>w.label})})}),g.jsxs("div",{className:`${V.dropZone} ${n?V.hasFile:""}`,onDragOver:w=>w.preventDefault(),onDrop:y,children:[e.length>1?g.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 mb-4",children:e.map((w,C)=>g.jsxs("div",{className:"relative",children:[g.jsx("img",{src:URL.createObjectURL(w),alt:`Image ${C+1}`,className:"w-full h-32 object-cover rounded"}),g.jsx(df,{name:"remove-image",variant:"tertiary",onClick:()=>u(C),title:"Remove image",ariaLabel:"Remove image",className:"absolute top-2 right-2 bg-white/90 hover:bg-white shadow-md hover:shadow-lg border border-gray-200 hover:border-red-300 transition-all duration-200 backdrop-blur-sm",children:g.jsx(uf,{className:"w-4 h-4"})}),g.jsx("div",{className:"text-xs text-center mt-1",children:w.name})]},C))}):n&&i?g.jsxs("div",{className:V.filePreview,children:[g.jsx("div",{className:V.filePreviewImage,children:g.jsx("img",{src:i,alt:"File preview"})}),g.jsx("p",{className:V.fileName,children:n.name}),g.jsxs("p",{className:V.fileInfo,children:[(n.size/1024/1024).toFixed(2)," MB"]})]}):g.jsxs(g.Fragment,{children:[g.jsx(a0,{className:V.dropZoneIcon}),g.jsx("p",{className:V.dropZoneText,children:"Drag & Drop any file here"}),g.jsx("p",{className:V.dropZoneSubtext,children:"or"})]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs("label",{className:"inline-block cursor-pointer",children:[g.jsx("input",{type:"file",className:"sr-only",accept:".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",onChange:w=>{n&&p?p(w.target.files?.[0]):s(w.target.files?.[0])}}),g.jsx(Ue,{name:"upload",variant:"secondary",size:1,onClick:()=>document.querySelector('input[type="file"]')?.click(),children:n?"Change Image":"Browse Files"})]}),n&&e.length<5&&g.jsx(Ue,{name:"add-image",variant:"secondary",size:1,onClick:d,children:"Add Image"})]})]})]})}function Ag({files:e,imageUrl:n,preview:i,onViewFullSize:o,currentImageIndex:s=0,onGoToPrevious:u,onGoToNext:d,onGoToImage:f,showCarousel:p=!1}){return p&&e.length>1?g.jsx(ar,{heading:"Uploaded Images",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:V.carouselContainer,children:[g.jsx("div",{className:V.carouselImageWrapper,children:e[s]?g.jsx("img",{src:URL.createObjectURL(e[s]),alt:`Image ${s+1}`,className:V.carouselImage}):g.jsx("div",{className:V.imagePlaceholder,children:"No image available"})}),g.jsxs("div",{className:V.carouselNavigation,children:[g.jsx(Ue,{name:"previous-image",variant:"tertiary",size:1,onClick:u,className:V.carouselButton,children:g.jsx(PC,{className:"w-4 h-4"})}),g.jsx("div",{className:V.carouselIndicators,children:e.map((y,w)=>g.jsx("button",{onClick:()=>f?.(w),className:`${V.carouselIndicator} ${w===s?V.carouselIndicatorActive:""}`,children:w+1},w))}),g.jsx(Ue,{name:"next-image",variant:"tertiary",size:1,onClick:d,className:V.carouselButton,children:g.jsx(MC,{className:"w-4 h-4"})})]}),g.jsx("div",{className:V.viewImageButtonContainer,children:g.jsx(Ue,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>o({file:e[s],index:s}),disabled:!e[s],children:"View Image"})})]})}):e.length>1?g.jsx("div",{className:"space-y-6",children:e.map((y,w)=>g.jsx(ar,{heading:`Image ${w+1}: ${y.name}`,headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:V.uploadedMapContainer,children:[g.jsx("div",{className:V.uploadedMapImage,children:g.jsx("img",{src:URL.createObjectURL(y),alt:`Image ${w+1}`})}),g.jsx("div",{className:V.viewFullSizeButton,children:g.jsx(Ue,{name:`view-full-size-${w}`,variant:"secondary",size:1,onClick:()=>o({file:y,index:w}),children:"View Image"})})]})},w))}):g.jsx(ar,{heading:"Uploaded Image",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:V.uploadedMapContainer,children:[g.jsx("div",{className:V.uploadedMapImage,children:g.jsx("img",{src:n||i||void 0,alt:"Uploaded image preview"})}),g.jsx("div",{className:V.viewFullSizeButton,children:g.jsx(Ue,{name:"view-full-size",variant:"secondary",size:1,onClick:()=>o(),children:"View Image"})})]})})}function Wj({files:e,imageType:n,title:i,source:o,eventType:s,epsg:u,countries:d,centerLon:f,centerLat:p,amslM:y,aglM:w,headingDeg:C,yawDeg:m,pitchDeg:x,rollDeg:E,rtkFix:_,stdHM:N,stdVM:P,metadataArray:L,sources:$,types:q,spatialReferences:Z,imageTypes:fe,countriesOptions:O,onTitleChange:K,onSourceChange:ce,onEventTypeChange:de,onEpsgChange:I,onCountriesChange:U,onCenterLonChange:W,onCenterLatChange:ne,onAmslMChange:he,onAglMChange:Ce,onHeadingDegChange:be,onYawDegChange:G,onPitchDegChange:ue,onRollDegChange:k,onRtkFixChange:H,onStdHMChange:oe,onStdVMChange:Se,onImageTypeChange:se,updateMetadataForImage:re}){return e.length>1?g.jsxs("div",{children:[g.jsx("div",{className:"mb-4",children:g.jsx(Tt,{label:"Shared Title",name:"title",value:i,onChange:K,placeholder:"Enter a title for all images...",required:!0})}),e.map((ee,Q)=>g.jsx("div",{className:"mb-6",children:g.jsx(ar,{heading:`Image ${Q+1}: ${ee.name}`,headingLevel:4,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:V.formGrid,children:[n!=="drone_image"&&g.jsx(Wi,{label:"Source",name:`source_${Q}`,value:L[Q]?.source||"",onChange:Y=>re(Q,"source",Y),options:$,keySelector:Y=>Y.s_code,labelSelector:Y=>Y.label,required:!0}),g.jsx(Wi,{label:"Event Type",name:`event_type_${Q}`,value:L[Q]?.eventType||"",onChange:Y=>re(Q,"eventType",Y),options:q,keySelector:Y=>Y.t_code,labelSelector:Y=>Y.label,required:n!=="drone_image"}),g.jsx(Wi,{label:"EPSG",name:`epsg_${Q}`,value:L[Q]?.epsg||"",onChange:Y=>re(Q,"epsg",Y),options:Z,keySelector:Y=>Y.epsg,labelSelector:Y=>`${Y.srid} (EPSG:${Y.epsg})`,placeholder:"EPSG",required:n!=="drone_image"}),g.jsx(Mg,{label:"Countries (optional)",name:`countries_${Q}`,value:L[Q]?.countries||[],onChange:Y=>re(Q,"countries",Y),options:O,keySelector:Y=>Y.c_code,labelSelector:Y=>Y.label,placeholder:"Select one or more"}),n==="drone_image"&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:V.droneMetadataSection,children:[g.jsx("h4",{className:V.droneMetadataHeading,children:"Drone Flight Data"}),g.jsxs("div",{className:V.droneMetadataGrid,children:[g.jsx(Tt,{label:"Center Longitude",name:`center_lon_${Q}`,value:L[Q]?.centerLon||"",onChange:Y=>re(Q,"centerLon",Y),placeholder:"e.g., -122.4194",step:"any"}),g.jsx(Tt,{label:"Center Latitude",name:`center_lat_${Q}`,value:L[Q]?.centerLat||"",onChange:Y=>re(Q,"centerLat",Y),placeholder:"e.g., 37.7749",step:"any"}),g.jsx(Tt,{label:"Altitude AMSL (m)",name:`amsl_m_${Q}`,value:L[Q]?.amslM||"",onChange:Y=>re(Q,"amslM",Y),placeholder:"e.g., 100.5",step:"any"}),g.jsx(Tt,{label:"Altitude AGL (m)",name:`agl_m_${Q}`,value:L[Q]?.aglM||"",onChange:Y=>re(Q,"aglM",Y),placeholder:"e.g., 50.2",step:"any"}),g.jsx(Tt,{label:"Heading (degrees)",name:`heading_deg_${Q}`,value:L[Q]?.headingDeg||"",onChange:Y=>re(Q,"headingDeg",Y),placeholder:"e.g., 180.0",step:"any"}),g.jsx(Tt,{label:"Yaw (degrees)",name:`yaw_deg_${Q}`,value:L[Q]?.yawDeg||"",onChange:Y=>re(Q,"yawDeg",Y),placeholder:"e.g., 90.0",step:"any"}),g.jsx(Tt,{label:"Pitch (degrees)",name:`pitch_deg_${Q}`,value:L[Q]?.pitchDeg||"",onChange:Y=>re(Q,"pitchDeg",Y),placeholder:"e.g., 0.0",step:"any"}),g.jsx(Tt,{label:"Roll (degrees)",name:`roll_deg_${Q}`,value:L[Q]?.rollDeg||"",onChange:Y=>re(Q,"rollDeg",Y),placeholder:"e.g., 0.0",step:"any"}),g.jsx("div",{className:V.rtkFixContainer,children:g.jsxs("label",{className:V.rtkFixLabel,children:[g.jsx("input",{type:"checkbox",checked:L[Q]?.rtkFix||!1,onChange:Y=>re(Q,"rtkFix",Y.target.checked),className:V.rtkFixCheckbox}),"RTK Fix Available"]})}),g.jsx(Tt,{label:"Horizontal Std Dev (m)",name:`std_h_m_${Q}`,value:L[Q]?.stdHM||"",onChange:Y=>re(Q,"stdHM",Y),placeholder:"e.g., 0.1",step:"any"}),g.jsx(Tt,{label:"Vertical Std Dev (m)",name:`std_v_m_${Q}`,value:L[Q]?.stdVM||"",onChange:Y=>re(Q,"stdVM",Y),placeholder:"e.g., 0.2",step:"any"})]})]})})]})})},Q))]}):g.jsxs("div",{className:V.formGrid,children:[g.jsx("div",{className:V.titleField,children:g.jsx(Tt,{label:"Title",name:"title",value:i,onChange:K,placeholder:"Enter a title for this map...",required:!0})}),n!=="drone_image"&&g.jsx(Wi,{label:"Source",name:"source",value:o,onChange:ce,options:$,keySelector:ee=>ee.s_code,labelSelector:ee=>ee.label,required:!0}),g.jsx(Wi,{label:"Event Type",name:"event_type",value:s,onChange:de,options:q,keySelector:ee=>ee.t_code,labelSelector:ee=>ee.label,required:n!=="drone_image"}),g.jsx(Wi,{label:"EPSG",name:"epsg",value:u,onChange:I,options:Z,keySelector:ee=>ee.epsg,labelSelector:ee=>`${ee.srid} (EPSG:${ee.epsg})`,placeholder:"EPSG",required:n!=="drone_image"}),g.jsx(Wi,{label:"Image Type",name:"image_type",value:n,onChange:se,options:fe,keySelector:ee=>ee.image_type,labelSelector:ee=>ee.label,required:!0}),g.jsx(Mg,{label:"Countries (optional)",name:"countries",value:d,onChange:U,options:O,keySelector:ee=>ee.c_code,labelSelector:ee=>ee.label,placeholder:"Select one or more"}),n==="drone_image"&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:V.droneMetadataSection,children:[g.jsx("h4",{className:V.droneMetadataHeading,children:"Drone Flight Data"}),g.jsxs("div",{className:V.droneMetadataGrid,children:[g.jsx(Tt,{label:"Center Longitude",name:"center_lon",value:f,onChange:W,placeholder:"e.g., -122.4194",step:"any"}),g.jsx(Tt,{label:"Center Latitude",name:"center_lat",value:p,onChange:ne,placeholder:"e.g., 37.7749",step:"any"}),g.jsx(Tt,{label:"Altitude AMSL (m)",name:"amsl_m",value:y,onChange:he,placeholder:"e.g., 100.5",step:"any"}),g.jsx(Tt,{label:"Altitude AGL (m)",name:"agl_m",value:w,onChange:Ce,placeholder:"e.g., 50.2",step:"any"}),g.jsx(Tt,{label:"Heading (degrees)",name:"heading_deg",value:C,onChange:be,placeholder:"e.g., 180.0",step:"any"}),g.jsx(Tt,{label:"Yaw (degrees)",name:"yaw_deg",value:m,onChange:G,placeholder:"e.g., 90.0",step:"any"}),g.jsx(Tt,{label:"Pitch (degrees)",name:"pitch_deg",value:x,onChange:ue,placeholder:"e.g., 0.0",step:"any"}),g.jsx(Tt,{label:"Roll (degrees)",name:"roll_deg",value:E,onChange:k,placeholder:"e.g., 0.0",step:"any"}),g.jsx("div",{className:V.rtkFixContainer,children:g.jsxs("label",{className:V.rtkFixLabel,children:[g.jsx("input",{type:"checkbox",checked:_,onChange:ee=>H(ee.target.checked),className:V.rtkFixCheckbox}),"RTK Fix Available"]})}),g.jsx(Tt,{label:"Horizontal Std Dev (m)",name:"std_h_m",value:N,onChange:oe,placeholder:"e.g., 0.1",step:"any"}),g.jsx(Tt,{label:"Vertical Std Dev (m)",name:"std_v_m",value:P,onChange:Se,placeholder:"e.g., 0.2",step:"any"})]})]})})]})}function Gj({isPerformanceConfirmed:e,scores:n,onScoreChange:i,onConfirmRatings:o,onEditRatings:s}){return e?null:g.jsx(ar,{heading:"AI Performance Rating",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:V.ratingContent,children:[g.jsx("p",{className:V.ratingDescription,children:"How well did the AI perform on the task?"}),["accuracy","context","usability"].map(u=>g.jsxs("div",{className:V.ratingSlider,children:[g.jsx("label",{className:V.ratingLabel,children:u}),g.jsx("input",{type:"range",min:0,max:100,value:n[u],onChange:d=>i(u,Number(d.target.value)),className:V.ratingInput}),g.jsx("span",{className:V.ratingValue,children:n[u]})]},u)),g.jsx("div",{className:V.confirmButtonContainer,children:g.jsx(Ue,{name:"confirm-ratings",variant:"secondary",onClick:o,children:"Confirm Ratings"})})]})})}function Zj({description:e,analysis:n,recommendedActions:i,onDescriptionChange:o,onAnalysisChange:s,onRecommendedActionsChange:u,onBack:d,onDelete:f,onSubmit:p,onEditRatings:y,isPerformanceConfirmed:w=!1,isSubmitting:C=!1}){const m=x=>{if(x){const E=x.split(` +`),_=E.findIndex(L=>L.startsWith("Description:")),N=E.findIndex(L=>L.startsWith("Analysis:")),P=E.findIndex(L=>L.startsWith("Recommended Actions:"));_!==-1&&N!==-1&&P!==-1&&(o(E.slice(_+1,N).join(` +`).trim()),s(E.slice(N+1,P).join(` +`).trim()),u(E.slice(P+1).join(` +`).trim()))}};return g.jsxs(ar,{heading:"Generated Text",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[g.jsx("div",{className:"text-left space-y-4",children:g.jsx("div",{children:g.jsx(NT,{name:"generatedContent",value:`Description: +${e||"AI-generated description will appear here..."} + +Analysis: +${n||"AI-generated analysis will appear here..."} + +Recommended Actions: +${i||"AI-generated recommended actions will appear here..."}`,onChange:m,rows:12,placeholder:"AI-generated content will appear here..."})})}),g.jsxs("div",{className:V.submitSection,children:[g.jsx(Ue,{name:"back",variant:"secondary",onClick:d,children:"Back"}),w&&y&&g.jsx(Ue,{name:"edit-ratings",variant:"secondary",onClick:y,children:"Edit Ratings"}),g.jsx(df,{name:"delete",variant:"tertiary",onClick:f,title:"Delete",ariaLabel:"Delete uploaded image",children:g.jsx(uf,{})}),g.jsx(Ue,{name:"submit",onClick:p,disabled:C,children:"Submit"})]})]})}function Qj({isOpen:e,imageUrl:n,preview:i,selectedImageData:o,onClose:s,isLoading:u=!1}){if(!e)return null;let d,f;return o?(d=URL.createObjectURL(o.file),f=`Image ${o.index+1}: ${o.file.name}`):(d=n||i||void 0,f="Full size map"),g.jsx("div",{className:V.fullSizeModalOverlay,onClick:s,children:g.jsxs("div",{className:V.fullSizeModalContent,onClick:p=>p.stopPropagation(),children:[g.jsx("div",{className:V.fullSizeModalHeader,children:g.jsx(Ue,{name:"close-modal",variant:"tertiary",size:1,onClick:s,children:"✕"})}),g.jsx("div",{className:V.fullSizeModalImage,children:u?g.jsxs("div",{className:V.loadingContainer,children:[g.jsx($o,{className:"text-ifrcRed"}),g.jsx("p",{className:V.loadingText,children:"Loading image..."})]}):g.jsx("img",{src:d,alt:f})})]})})}function Kj({isOpen:e,onClose:n}){return e?g.jsx("div",{className:V.fullSizeModalOverlay,onClick:n,children:g.jsx("div",{className:V.fullSizeModalContent,onClick:i=>i.stopPropagation(),children:g.jsxs("div",{className:V.ratingWarningContent,children:[g.jsx("h3",{className:V.ratingWarningTitle,children:"Please Confirm Your Ratings"}),g.jsx("p",{className:V.ratingWarningText,children:'You must confirm your performance ratings before submitting. Please go back to the rating section and click "Confirm Ratings".'}),g.jsx("div",{className:V.ratingWarningButtons,children:g.jsx(Ue,{name:"close-warning",variant:"secondary",onClick:n,children:"Close"})})]})})}):null}function Yj({isOpen:e,onConfirm:n,onCancel:i}){return e?g.jsx("div",{className:V.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:V.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:V.ratingWarningContent,children:[g.jsx("h3",{className:V.ratingWarningTitle,children:"Delete Image?"}),g.jsx("p",{className:V.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this uploaded image?"}),g.jsxs("div",{className:V.ratingWarningButtons,children:[g.jsx(Ue,{name:"confirm-delete",variant:"secondary",onClick:n,children:"Delete"}),g.jsx(Ue,{name:"cancel-delete",variant:"tertiary",onClick:i,children:"Cancel"})]})]})})}):null}function Xj({isOpen:e,onConfirm:n,onCancel:i}){return e?g.jsx("div",{className:V.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:V.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:V.ratingWarningContent,children:[g.jsx("h3",{className:V.ratingWarningTitle,children:"Leave Page?"}),g.jsx("p",{className:V.ratingWarningText,children:"Your uploaded image will be deleted if you leave this page. Are you sure you want to continue?"}),g.jsxs("div",{className:V.ratingWarningButtons,children:[g.jsx(Ue,{name:"confirm-navigation",variant:"secondary",onClick:n,children:"Leave Page"}),g.jsx(Ue,{name:"cancel-navigation",variant:"tertiary",onClick:i,children:"Stay"})]})]})})}):null}function Jj({isOpen:e,fallbackInfo:n,onClose:i}){return!e||!n?null:g.jsx("div",{className:V.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:V.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:V.ratingWarningContent,children:[g.jsx("h3",{className:V.ratingWarningTitle,children:"Model Changed"}),g.jsxs("p",{className:V.ratingWarningText,children:[n.originalModel," is currently unavailable. We've automatically switched to ",n.fallbackModel," to complete your request."]}),g.jsx("div",{className:V.ratingWarningButtons,children:g.jsx(Ue,{name:"close-fallback",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function eP({isOpen:e,preprocessingInfo:n,onClose:i}){return!e||!n?null:g.jsx("div",{className:V.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:V.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:V.ratingWarningContent,children:[g.jsx("h3",{className:V.ratingWarningTitle,children:"File Converted"}),g.jsxs("p",{className:V.ratingWarningText,children:["Your file ",g.jsx("strong",{children:n.original_filename})," has been converted from",g.jsxs("strong",{children:[" ",n.original_mime_type]})," to",g.jsxs("strong",{children:[" ",n.processed_mime_type]})," for optimal processing.",g.jsx("br",{}),g.jsx("br",{}),"This conversion ensures your file is in the best format for our AI models to analyze."]}),g.jsx("div",{className:V.ratingWarningButtons,children:g.jsx(Ue,{name:"close-preprocessing",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function tP({isOpen:e,preprocessingFile:n,isPreprocessing:i,preprocessingProgress:o,onConfirm:s,onCancel:u}){return e?g.jsx("div",{className:V.fullSizeModalOverlay,onClick:i?void 0:u,children:g.jsx("div",{className:V.fullSizeModalContent,onClick:d=>d.stopPropagation(),children:g.jsxs("div",{className:V.ratingWarningContent,children:[g.jsx("h3",{className:V.ratingWarningTitle,children:"File Conversion Required"}),g.jsx("p",{className:V.ratingWarningText,children:"The file you selected will be converted to PNG format. This ensures optimal compatibility and processing by our AI models."}),!i&&g.jsxs("div",{className:V.ratingWarningButtons,children:[g.jsx(Ue,{name:"confirm-preprocessing",variant:"secondary",onClick:s,children:"Convert File"}),g.jsx(Ue,{name:"cancel-preprocessing",variant:"tertiary",onClick:u,children:"Cancel"})]}),i&&g.jsxs("div",{className:V.preprocessingProgress,children:[g.jsx("p",{children:o}),g.jsx($o,{className:"text-ifrcRed"})]})]})})}):null}function nP({isOpen:e,unsupportedFile:n,onClose:i}){return!e||!n?null:g.jsx("div",{className:V.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:V.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:V.ratingWarningContent,children:[g.jsx("h3",{className:V.ratingWarningTitle,children:"Unsupported File Format"}),g.jsxs("p",{className:V.ratingWarningText,children:["The file ",g.jsx("strong",{children:n.name})," is not supported for upload.",g.jsx("br",{}),g.jsx("br",{}),g.jsx("strong",{children:"Supported formats:"}),g.jsx("br",{}),"• Images: JPEG, PNG, TIFF, HEIC, WebP, GIF",g.jsx("br",{}),"• Documents: PDF (will be converted to image)",g.jsx("br",{}),g.jsx("br",{}),g.jsx("strong",{children:"Recommendation:"})," Convert your file to JPEG or PNG format for best compatibility."]}),g.jsx("div",{className:V.ratingWarningButtons,children:g.jsx(Ue,{name:"close-unsupported",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function rP({isOpen:e,oversizedFile:n,onClose:i,onCancel:o}){return!e||!n?null:g.jsx("div",{className:V.lightModalOverlay,onClick:o,children:g.jsx("div",{className:V.fullSizeModalContent,onClick:s=>s.stopPropagation(),children:g.jsxs("div",{className:V.ratingWarningContent,children:[g.jsx("h3",{className:V.ratingWarningTitle,children:"File Size Warning"}),g.jsxs("p",{className:V.ratingWarningText,children:["The file ",g.jsx("strong",{children:n.name})," is large (",(n.size/(1024*1024)).toFixed(1),"MB).",g.jsx("br",{}),g.jsx("br",{}),g.jsx("strong",{children:"Warning:"})," This file size might exceed the limits of the AI models we use.",g.jsx("br",{}),g.jsx("br",{}),"You can still proceed, but consider using a smaller file if you encounter issues."]}),g.jsxs("div",{className:V.ratingWarningButtons,children:[g.jsx(Ue,{name:"continue-size-warning",variant:"secondary",onClick:i,children:"Continue"}),g.jsx(Ue,{name:"cancel-size-warning",variant:"tertiary",onClick:o,children:"Cancel"})]})]})})})}const Il="selectedVlmModel";function Fg(){const[e]=Dx(),n=cs(),[i,o]=v.useState(1),[s,u]=v.useState(!1),[d,f]=v.useState(!1),[p,y]=v.useState(!1),w=v.useRef(i),C=v.useRef(null),[m,x]=v.useState(null),[E,_]=v.useState(null),[N,P]=v.useState([]),[L,$]=v.useState(""),[q,Z]=v.useState(""),[fe,O]=v.useState(""),[K,ce]=v.useState("crisis_map"),[de,I]=v.useState([]),[U,W]=v.useState(""),[ne,he]=v.useState(""),[Ce,be]=v.useState(""),[G,ue]=v.useState(""),[k,H]=v.useState(""),[oe,Se]=v.useState(""),[se,re]=v.useState(""),[ee,Q]=v.useState(""),[Y,nt]=v.useState(""),[tn,Wt]=v.useState(!1),[st,St]=v.useState(""),[ut,wt]=v.useState(""),[ht,pt]=v.useState([]),[Nt,nn]=v.useState([]),[jn,un]=v.useState([]),[Pn,Kr]=v.useState([]),[cn,dn]=v.useState([]),[Sr,Qn]=v.useState([]),[ct,Lt]=v.useState(null),[Qt,mt]=v.useState([]),[Kt,fn]=v.useState(null),[Ei,Ni]=v.useState(""),[_r,br]=v.useState(""),[Er,zn]=v.useState(""),[Nr,hn]=v.useState(""),[rn,ki]=v.useState({accuracy:50,context:50,usability:50}),[Ti,Yr]=v.useState(!1),[ji,Kn]=v.useState(null),[pn,kr]=v.useState(!1),[Tr,j]=v.useState(!1),[R,z]=v.useState(!1),[X,le]=v.useState(!1),[Ee,Me]=v.useState(null),[ye,we]=v.useState(!1),[ge,ve]=v.useState(null),[Fe,ze]=v.useState(!1),[jt,Xe]=v.useState(null),[Ze,Je]=v.useState(!1),[Mn,mn]=v.useState(null),[Ln,Ve]=v.useState(!1),[Pi,Rt]=v.useState(""),[Bn,gn]=v.useState(!1),[Xr,He]=v.useState(null),[it,_t]=v.useState(!1),[jr,Qe]=v.useState(null),[ur,Pr]=v.useState(0);w.current=i,C.current=ct;const Xo=T=>$(T||""),oo=T=>Z(T||""),ao=T=>O(T||""),Mr=T=>ce(T||""),so=T=>I(Array.isArray(T)?T:[]),vu=T=>he(T||""),yu=T=>be(T||""),Jo=T=>ue(T||""),ys=T=>H(T||""),ea=T=>Se(T||""),Mi=T=>re(T||""),wu=T=>Q(T||""),ta=T=>nt(T||""),rt=T=>Wt(T||!1),ws=T=>St(T||""),xs=T=>wt(T||""),Jr=T=>o(T),Cs=v.useCallback(()=>{N.length>1&&Pr(T=>T>0?T-1:N.length-1)},[N.length]),Ss=v.useCallback(()=>{N.length>1&&Pr(T=>T{T>=0&&T{if(N.length<5){const T=document.createElement("input");T.type="file",T.accept=".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",T.onchange=Pe=>{const Te=Pe.target;if(Te.files&&Te.files[0]){const je=Te.files[0];Lr(je)}},T.click()}},Li=T=>{P(Pe=>{const Te=Pe.filter((je,pe)=>pe!==T);return Te.length===1?_(Te[0]):Te.length===0&&_(null),Te}),pt(Pe=>Pe.filter((Te,je)=>je!==T))},cr=(T,Pe,Te)=>{pt(je=>{const pe=[...je];return pe[T]||(pe[T]={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}),pe[T]={...pe[T],[Pe]:Te},pe})},Yn=T=>{const Pe=["image/jpeg","image/jpg","image/png"],Te=[".jpg",".jpeg",".png"];let je=!Pe.includes(T.type);if(!je&&T.name){const pe=T.name.toLowerCase().substring(T.name.lastIndexOf("."));je=!Te.includes(pe)}return je},Xn=T=>{const Pe=["text/html","text/css","application/javascript","application/json","text/plain","application/xml","text/xml","application/zip","application/x-zip-compressed","application/x-rar-compressed","application/x-7z-compressed","audio/","video/","text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"];for(const Te of Pe)if(T.type.startsWith(Te))return!0;if(T.name){const Te=T.name.toLowerCase().substring(T.name.lastIndexOf("."));if([".html",".htm",".css",".js",".json",".txt",".xml",".zip",".rar",".7z",".csv",".xlsx",".xls",".pptx",".ppt",".docx",".doc",".mp3",".mp4",".avi",".mov"].includes(Te))return!0}return!1},Lr=T=>{if(T){if(console.log("File selected:",T.name,"Type:",T.type,"Size:",T.size),T.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),Qe(T),_t(!0)),Xn(T)){console.log("File format not supported at all, showing unsupported format modal"),He(T),gn(!0);return}Yn(T)?(console.log("File needs preprocessing, showing modal"),mn(T),Je(!0)):(console.log("File does not need preprocessing, setting directly"),N.length===0?(_(T),P([T])):P(Te=>[...Te,T]))}},ei=T=>{if(T){if(console.log("File changed:",T.name,"Type:",T.type,"Size:",T.size),T.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),Qe(T),_t(!0)),Xn(T)){console.log("File format not supported at all, showing unsupported format modal"),He(T),gn(!0);return}Yn(T)?(console.log("File needs preprocessing, showing modal"),mn(T),Je(!0)):(console.log("File does not need preprocessing, replacing last file"),N.length>1?(P(Te=>{const je=[...Te];return je[je.length-1]=T,je}),N.length===1&&_(T)):(_(T),P([T])))}};async function vn(T){const Pe=await T.text();try{return Pe?JSON.parse(Pe):{}}catch{return{error:Pe}}}function na(T,Pe){const Te=T instanceof Error?T.message:`Failed to ${Pe.toLowerCase()}`;alert(Te)}async function ra(){if(N.length!==0){u(!0);try{N.length===1?await Di():await xu()}catch(T){na(T,"Upload")}finally{u(!1)}}}async function Di(){console.log("DEBUG: Starting single image upload");const T=new FormData;T.append("file",N[0]),T.append("title",U),T.append("image_type",K),L&&T.append("source",L),q&&T.append("event_type",q),fe&&T.append("epsg",fe),de.length>0&&de.forEach(pe=>T.append("countries",pe)),K==="drone_image"&&(ne&&T.append("center_lon",ne),Ce&&T.append("center_lat",Ce),G&&T.append("amsl_m",G),k&&T.append("agl_m",k),oe&&T.append("heading_deg",oe),se&&T.append("yaw_deg",se),ee&&T.append("pitch_deg",ee),Y&&T.append("roll_deg",Y),tn&&T.append("rtk_fix",tn.toString()),st&&T.append("std_h_m",st),ut&&T.append("std_v_m",ut));const Pe=localStorage.getItem(Il);Pe&&T.append("model_name",Pe);const Te=await fetch("/api/images/",{method:"POST",body:T}),je=await vn(Te);if(!Te.ok)throw new Error(je.error||"Upload failed");console.log("DEBUG: Single upload response:",je),await ia(je,!1)}async function xu(){console.log("DEBUG: Starting multi-image upload");const T=new FormData;N.forEach(pe=>T.append("files",pe)),T.append("title",U),T.append("image_type",K),ht.forEach((pe,Re)=>{pe.source&&T.append(`source_${Re}`,pe.source),pe.eventType&&T.append(`event_type_${Re}`,pe.eventType),pe.epsg&&T.append(`epsg_${Re}`,pe.epsg),pe.countries.length>0&&pe.countries.forEach(dt=>T.append(`countries_${Re}`,dt)),K==="drone_image"&&(pe.centerLon&&T.append(`center_lon_${Re}`,pe.centerLon),pe.centerLat&&T.append(`center_lat_${Re}`,pe.centerLat),pe.amslM&&T.append(`amsl_m_${Re}`,pe.amslM),pe.aglM&&T.append(`agl_m_${Re}`,pe.aglM),pe.headingDeg&&T.append(`heading_deg_${Re}`,pe.headingDeg),pe.yawDeg&&T.append(`yaw_deg_${Re}`,pe.yawDeg),pe.pitchDeg&&T.append(`pitch_deg_${Re}`,pe.pitchDeg),pe.rollDeg&&T.append(`roll_deg_${Re}`,pe.rollDeg),pe.rtkFix&&T.append(`rtk_fix_${Re}`,pe.rtkFix.toString()),pe.stdHM&&T.append(`std_h_m_${Re}`,pe.stdHM),pe.stdVM&&T.append(`std_v_m_${Re}`,pe.stdVM))});const Pe=localStorage.getItem(Il);Pe&&T.append("model_name",Pe);const Te=await fetch("/api/images/multi",{method:"POST",body:T}),je=await vn(Te);if(!Te.ok)throw new Error(je.error||"Upload failed");console.log("DEBUG: Multi upload response:",je),await ia(je,!0)}async function ia(T,Pe){fn(T.image_url),T.preprocessing_info&&typeof T.preprocessing_info=="object"&&"was_preprocessed"in T.preprocessing_info&&T.preprocessing_info.was_preprocessed===!0&&(Xe(T.preprocessing_info),ze(!0));const Te=T.image_id;if(!Te)throw new Error("Upload failed: image_id not found");if(Lt(Te),Pe)if(T.image_ids&&Array.isArray(T.image_ids)){const qe=T.image_ids;console.log("DEBUG: Storing image IDs for multi-upload:",qe),mt(qe)}else console.log("DEBUG: Multi-upload but no image_ids found, using single ID"),mt([Te]);else console.log("DEBUG: Storing single image ID:",Te),mt([Te]);const je=T,pe=je.raw_json?.fallback_info;pe&&(ve({originalModel:pe.original_model,fallbackModel:pe.fallback_model,reason:pe.reason}),we(!0));const Re=je.raw_json?.metadata;if(Re){const qe=Re.metadata||Re;if(qe&&typeof qe=="object"){const $t=[];if(Pe){const et=qe.metadata_images;if(et&&typeof et=="object")for(let on=1;on<=N.length;on++){const It=`image${on}`,fr=et[It];if(fr&&typeof fr=="object"){const Dr=fr;$t.push({source:Dr.source||"",eventType:Dr.type||"",epsg:Dr.epsg||"",countries:Array.isArray(Dr.countries)?Dr.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else $t.push({source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else{const on={source:qe.source||"",eventType:qe.type||"",epsg:qe.epsg||"",countries:Array.isArray(qe.countries)?qe.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};for(let It=0;It0){const et=$t[0];if(qe&&typeof qe=="object"){const on=qe.title;on&&W(on||"")}$(et.source||""),Z(et.eventType||""),O(et.epsg||""),I(et.countries||[]),K==="drone_image"&&(he(et.centerLon||""),be(et.centerLat||""),ue(et.amslM||""),H(et.aglM||""),Se(et.headingDeg||""),re(et.yawDeg||""),Q(et.pitchDeg||""),nt(et.rollDeg||""),Wt(et.rtkFix||!1),St(et.stdHM||""),wt(et.stdVM||""))}}}const dt=je.raw_json?.metadata;dt&&(dt.description&&br(dt.description),dt.analysis&&zn(dt.analysis),dt.recommended_actions&&hn(dt.recommended_actions)),je.generated&&Ni(je.generated),Jr("2a")}async function uo(){if(console.log("handleSubmit called with:",{uploadedImageId:ct,title:U,draft:Ei}),!ct)return alert("No image to submit");if(!pn){j(!0);return}y(!0);try{const T=Qt.length>0?Qt:[ct];console.log("DEBUG: Submit - Using image IDs:",T),console.log("DEBUG: Submit - uploadedImageIds:",Qt),console.log("DEBUG: Submit - uploadedImageId:",ct);for(let Re=0;Re{kr(!1),o(1),_(null),P([]),x(null),Lt(null),mt([]),fn(null),W(""),$(""),Z(""),O(""),I([]),he(""),be(""),ue(""),H(""),Se(""),re(""),Q(""),nt(""),Wt(!1),St(""),wt(""),ki({accuracy:50,context:50,usability:50}),Ni(""),br(""),zn(""),hn(""),pt([]),we(!1),ve(null),ze(!1),Xe(null),Je(!1),mn(null),Ve(!1),Rt(""),gn(!1),He(null),_t(!1),Qe(null),n("/upload",{replace:!0})},dr=v.useCallback(T=>{T==="/upload"||T==="/"||(C.current?(Me(T),le(!0)):n(T))},[n]);async function ni(){if(Ee&&C.current)try{await fetch(`/api/images/${C.current}`,{method:"DELETE"}),le(!1),Me(null),n(Ee)}catch(T){console.error("Failed to delete image before navigation:",T),le(!1),Me(null),n(Ee)}}const co=async()=>{if(Mn){Ve(!0),Rt("Starting file conversion...");try{const T=new FormData;T.append("file",Mn),T.append("preprocess_only","true"),Rt("Converting file format...");const Pe=await fetch("/api/images/preprocess",{method:"POST",body:T});if(!Pe.ok)throw new Error("Preprocessing failed");const Te=await Pe.json();Rt("Finalizing conversion...");const je=atob(Te.processed_content),pe=new Uint8Array(je.length);for(let qe=0;qe[...qe,Re]),x(dt),Rt("Conversion complete!"),setTimeout(()=>{Je(!1),mn(null),Ve(!1),Rt("")},1e3)}catch(T){console.error("Preprocessing error:",T),Rt("Conversion failed. Please try again."),setTimeout(()=>{Je(!1),mn(null),Ve(!1),Rt("")},2e3)}}},Su=()=>{Je(!1),mn(null),Ve(!1),Rt("")},_u=async T=>{f(!0);try{const Pe=T.map(async Re=>{const dt=await fetch(`/api/images/${Re}`);if(!dt.ok)throw new Error(`Failed to fetch image ${Re}`);const qe=await dt.json(),$t=await fetch(`/api/images/${Re}/file`);if(!$t.ok)throw new Error(`Failed to fetch image file ${Re}`);const et=await $t.blob(),on=qe.file_key.split("/").pop()||`contributed_${Re}.png`;return{file:new File([et],on,{type:et.type}),imageData:qe}}),Te=await Promise.all(Pe),je=Te.map(Re=>Re.file),pe=Te[0]?.imageData;P(je),mt(T),T.length===1&&Lt(T[0]),je.length>=1&&_(je[0]),pe?.image_type&&ce(pe.image_type)}catch(Pe){console.error("Failed to fetch contributed images:",Pe),alert(`Failed to load contributed images: ${Pe instanceof Error?Pe.message:"Unknown error"}`)}finally{f(!1)}};return v.useEffect(()=>{Promise.all([fetch("/api/sources").then(T=>T.json()),fetch("/api/types").then(T=>T.json()),fetch("/api/spatial-references").then(T=>T.json()),fetch("/api/image-types").then(T=>T.json()),fetch("/api/countries").then(T=>T.json()),fetch("/api/models").then(T=>T.json())]).then(([T,Pe,Te,je,pe,Re])=>{!localStorage.getItem(Il)&&Re?.length&&localStorage.setItem(Il,Re[0].m_code),nn(T),un(Pe),Kr(Te),dn(je),Qn(pe),T.length>0&&$(T[0].s_code),Z("OTHER"),O("OTHER"),je.length>0&&!e.get("imageType")&&!K&&ce(je[0].image_type)})},[e,K]),v.useEffect(()=>(window.confirmNavigationIfNeeded=T=>{dr(T)},()=>{delete window.confirmNavigationIfNeeded}),[dr]),v.useEffect(()=>{const T=je=>{if(C.current){const pe="You have an uploaded image that will be deleted if you leave this page. Are you sure you want to leave?";return je.preventDefault(),je.returnValue=pe,pe}},Pe=()=>{C.current&&fetch(`/api/images/${C.current}`,{method:"DELETE"}).catch(console.error)},Te=je=>{const pe=je.target,Re=pe.closest("a[href]")||pe.closest("[data-navigate]");if(Re&&C.current){const dt=Re.getAttribute("href")||Re.getAttribute("data-navigate");dt&&dt!=="#"&&!dt.startsWith("javascript:")&&!dt.startsWith("mailto:")&&(je.preventDefault(),je.stopPropagation(),dr(dt))}};return window.addEventListener("beforeunload",T),document.addEventListener("click",Te,!0),()=>{window.removeEventListener("beforeunload",T),document.removeEventListener("click",Te,!0),Pe()}},[dr]),v.useEffect(()=>{if(!E){x(null);return}const T=URL.createObjectURL(E);return x(T),()=>URL.revokeObjectURL(T)},[E]),v.useEffect(()=>{const T=e.get("contribute"),Pe=e.get("imageIds");if(T==="true"&&Pe){const Te=Pe.split(",").filter(je=>je.trim());Te.length>0&&_u(Te)}},[e]),v.useEffect(()=>{i==="2b"&&Pr(0)},[i]),g.jsxs(Gf,{children:[i!==3&&g.jsx("div",{className:"max-w-7xl mx-auto",children:g.jsxs("div",{className:V.uploadContainer,"data-step":i,children:[i===1&&!e.get("step")&&!d&&g.jsx(Ig,{files:N,file:E,preview:m,imageType:K,onFileChange:Lr,onRemoveImage:Li,onAddImage:lo,onImageTypeChange:Mr,onChangeFile:ei}),i===1&&e.get("contribute")==="true"&&!d&&N.length>0&&g.jsx(Ig,{files:N,file:E,preview:m,imageType:K,onFileChange:Lr,onRemoveImage:Li,onAddImage:lo,onImageTypeChange:Mr,onChangeFile:ei}),s&&g.jsxs("div",{className:V.loadingContainer,children:[g.jsx($o,{className:"text-ifrcRed"}),g.jsx("p",{className:V.loadingText,children:"Generating..."})]}),d&&g.jsxs("div",{className:V.loadingContainer,children:[g.jsx($o,{className:"text-ifrcRed"}),g.jsx("p",{className:V.loadingText,children:"Loading contribution..."})]}),(i===1&&!s&&!d||i===1&&e.get("contribute")==="true"&&!s&&!d&&N.length>0)&&g.jsx("div",{className:V.generateButtonContainer,children:Kt?g.jsx(Ue,{name:"generate-from-url",onClick:ra,children:"Generate Caption"}):g.jsx(Ue,{name:"generate",disabled:N.length===0,onClick:ra,children:"Generate"})}),i==="2a"&&g.jsxs("div",{className:V.step2Layout,children:[g.jsx("div",{className:V.mapColumn,children:g.jsx(Ag,{files:N,imageUrl:Kt,preview:m,onViewFullSize:T=>{Kn(T||null),Yr(!0)}})}),g.jsx("div",{className:V.contentColumn,children:g.jsxs("div",{className:V.metadataSectionCard,children:[g.jsx(Wj,{files:N,imageType:K,title:U,source:L,eventType:q,epsg:fe,countries:de,centerLon:ne,centerLat:Ce,amslM:G,aglM:k,headingDeg:oe,yawDeg:se,pitchDeg:ee,rollDeg:Y,rtkFix:tn,stdHM:st,stdVM:ut,metadataArray:ht,sources:Nt,types:jn,spatialReferences:Pn,imageTypes:cn,countriesOptions:Sr,onTitleChange:T=>W(T||""),onSourceChange:Xo,onEventTypeChange:oo,onEpsgChange:ao,onCountriesChange:so,onCenterLonChange:vu,onCenterLatChange:yu,onAmslMChange:Jo,onAglMChange:ys,onHeadingDegChange:ea,onYawDegChange:Mi,onPitchDegChange:wu,onRollDegChange:ta,onRtkFixChange:rt,onStdHMChange:ws,onStdVMChange:xs,onImageTypeChange:Mr,updateMetadataForImage:cr}),g.jsxs("div",{className:V.confirmSection,children:[g.jsx(df,{name:"delete",variant:"tertiary",onClick:oa,title:"Delete",ariaLabel:"Delete uploaded image",children:g.jsx(uf,{})}),g.jsx(Ue,{name:"confirm-metadata",onClick:()=>Jr("2b"),children:"Next"})]})]})})]}),i==="2b"&&g.jsxs("div",{className:V.step2bLayout,children:[p&&g.jsxs("div",{className:V.loadingContainer,children:[g.jsx($o,{className:"text-ifrcRed"}),g.jsx("p",{className:V.loadingText,children:"Submitting..."})]}),g.jsxs("div",{className:`${V.topRow} ${pn?V.ratingHidden:""}`,children:[g.jsx("div",{className:V.imageSection,children:g.jsx(Ag,{files:N,imageUrl:Kt,preview:m,onViewFullSize:T=>{Kn(T||null),Yr(!0)},currentImageIndex:ur,onGoToPrevious:Cs,onGoToNext:Ss,onGoToImage:_s,showCarousel:!0})}),!pn&&g.jsx("div",{className:V.metadataSectionCard,children:g.jsx(Gj,{isPerformanceConfirmed:pn,scores:rn,onScoreChange:(T,Pe)=>ki(Te=>({...Te,[T]:Pe})),onConfirmRatings:()=>kr(!0),onEditRatings:()=>kr(!1)})})]}),g.jsx("div",{className:V.metadataSectionCard,children:g.jsx(Zj,{description:_r,analysis:Er,recommendedActions:Nr,onDescriptionChange:T=>br(T||""),onAnalysisChange:T=>zn(T||""),onRecommendedActionsChange:T=>hn(T||""),onBack:()=>Jr("2a"),onDelete:oa,onSubmit:uo,onEditRatings:()=>kr(!1),isPerformanceConfirmed:pn,isSubmitting:p})})]})]})}),i===3&&g.jsxs("div",{className:V.successContainer,children:[g.jsx(Qi,{level:2,className:V.successHeading,children:"Saved!"}),g.jsx("p",{className:V.successText,children:e.get("contribute")==="true"?"Your contribution has been successfully saved.":"Your caption has been successfully saved."}),g.jsx("div",{className:V.successButton,children:g.jsx(Ue,{name:"upload-another",onClick:()=>{ti()},children:"Upload Another"})})]}),g.jsx(Qj,{isOpen:Ti,imageUrl:Kt,preview:m,selectedImageData:ji,onClose:()=>{Yr(!1),Kn(null)}}),g.jsx(Kj,{isOpen:Tr,onClose:()=>j(!1)}),g.jsx(Yj,{isOpen:R,onConfirm:Cu,onCancel:()=>z(!1)}),g.jsx(Xj,{isOpen:X,onConfirm:ni,onCancel:()=>le(!1)}),g.jsx(Jj,{isOpen:ye,fallbackInfo:ge,onClose:()=>we(!1)}),g.jsx(eP,{isOpen:Fe,preprocessingInfo:jt,onClose:()=>ze(!1)}),g.jsx(tP,{isOpen:Ze,preprocessingFile:Mn,isPreprocessing:Ln,preprocessingProgress:Pi,onConfirm:co,onCancel:Su}),g.jsx(nP,{isOpen:Bn,unsupportedFile:Xr,onClose:()=>gn(!1)}),g.jsx(rP,{isOpen:it,oversizedFile:jr,onClose:()=>_t(!1),onCancel:()=>_t(!1)})]})}const iP="_helpContainer_1wavj_1",oP="_helpSection_1wavj_13",aP="_sectionHeader_1wavj_49",sP="_sectionTitle_1wavj_91",lP="_sectionContent_1wavj_105",uP="_guidelinesList_1wavj_119",cP="_buttonContainer_1wavj_181",ft={helpContainer:iP,helpSection:oP,sectionHeader:aP,sectionTitle:sP,sectionContent:lP,guidelinesList:uP,buttonContainer:cP};function dP(){const e=cs(),{setShowReferenceExamples:n}=qj(),i=()=>{e("/upload")},o=()=>{n(!0),e("/explore")},s=()=>{e("/analytics?view=crisis_maps")};return g.jsx(Gf,{className:"py-10",children:g.jsx("div",{className:ft.helpContainer,children:g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:ft.helpSection,children:[g.jsx("div",{className:ft.sectionHeader,children:g.jsx(Qi,{level:3,className:ft.sectionTitle,children:"Introduction"})}),g.jsx("div",{className:ft.sectionContent,children:"In collaboration with the IFRC, PromptAid Vision is a tool that generates textual descriptions of crisis maps/crisis drone images utiliing Visual language models. This prototype is for collecting data for the fine-tuning of our own models. We aim to utilize AI tools to support national societies with rapid decision making during emergencies."}),g.jsx("div",{className:ft.buttonContainer,children:g.jsx(Ue,{name:"upload-now",variant:"secondary",onClick:i,children:"Upload now →"})})]}),g.jsxs("div",{className:ft.helpSection,children:[g.jsx("div",{className:ft.sectionHeader,children:g.jsx(Qi,{level:3,className:ft.sectionTitle,children:"Guidelines"})}),g.jsxs("div",{className:ft.sectionContent,children:["To make the process smoother, please follow the guidelines below:",g.jsxs("ul",{className:ft.guidelinesList,children:[g.jsx("li",{children:"Avoid uploading images that are not crisis maps/crisis drone images."}),g.jsx("li",{children:"Confirm the image details prior to modifying the description."}),g.jsx("li",{children:"Before the modification, please read the description generated and provide a rating via the rating sliders."}),g.jsx("li",{children:'Click the "Submit" button to save the description.'})]})]}),g.jsx("div",{className:ft.buttonContainer,children:g.jsx(Ue,{name:"see-examples",variant:"secondary",onClick:o,children:"See examples →"})})]}),g.jsxs("div",{className:ft.helpSection,children:[g.jsx("div",{className:ft.sectionHeader,children:g.jsx(Qi,{level:3,className:ft.sectionTitle,children:"VLMs"})}),g.jsx("div",{className:ft.sectionContent,children:"PromptAid Vision uses a variety of Visual Language Models (VLMs). A random VLM is selected for each upload. Therefore feel free to delete and reupload. You can view performance details here:"}),g.jsx("div",{className:ft.buttonContainer,children:g.jsx(Ue,{name:"view-vlm-details",variant:"secondary",onClick:s,children:"View VLM details →"})})]}),g.jsxs("div",{className:ft.helpSection,children:[g.jsx("div",{className:ft.sectionHeader,children:g.jsx(Qi,{level:3,className:ft.sectionTitle,children:"Dataset"})}),g.jsx("div",{className:ft.sectionContent,children:"All users are able to export the dataset. You could apply filters when exporting, and it have the option to organize based on model fine-tuning formats."}),g.jsx("div",{className:ft.buttonContainer,children:g.jsx(Ue,{name:"export-dataset",variant:"secondary",onClick:()=>{n(!1),e("/explore"),setTimeout(()=>{const u=document.querySelector('[name="export-dataset"]');u&&u.click()},100)},children:"Export dataset →"})})]}),g.jsxs("div",{className:ft.helpSection,children:[g.jsx("div",{className:ft.sectionHeader,children:g.jsx(Qi,{level:3,className:ft.sectionTitle,children:"Contact us"})}),g.jsx("div",{className:ft.sectionContent,children:"Need help or have questions about PromptAid Vision? Our team is here to support you."}),g.jsx("div",{className:ft.buttonContainer,children:g.jsx(Ue,{name:"contact-support",variant:"secondary",disabled:!0,children:"Get in touch →"})})]})]})})})}const fP=v.createContext(void 0),hP=({children:e})=>{const[n,i]=v.useState(!1),[o,s]=v.useState(!0),u=async()=>{const y=localStorage.getItem("adminToken");if(!y){i(!1),s(!1);return}try{(await fetch("/api/admin/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y}`}})).ok?i(!0):(localStorage.removeItem("adminToken"),i(!1))}catch(w){console.error("Error verifying admin token:",w),localStorage.removeItem("adminToken"),i(!1)}finally{s(!1)}},d=async y=>{try{const w=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:y})});if(w.ok){const C=await w.json();return localStorage.setItem("adminToken",C.access_token),i(!0),!0}else return!1}catch(w){return console.error("Login error:",w),!1}},f=()=>{localStorage.removeItem("adminToken"),i(!1)};v.useEffect(()=>{u()},[]);const p={isAuthenticated:n,isLoading:o,login:d,logout:f,verifyToken:u};return g.jsx(fP.Provider,{value:p,children:e})},pP=v.lazy(()=>Zn(()=>import("./index-4L12dHQs.js"),__vite__mapDeps([0,1]))),mP=v.lazy(()=>Zn(()=>import("./index-Cj53JezQ.js"),__vite__mapDeps([2,3,4,5,6]))),gP=v.lazy(()=>Zn(()=>import("./AdminPage-a1ONalH9.js"),__vite__mapDeps([7,3,8]))),vP=v.lazy(()=>Zn(()=>import("./index-D2ncrm5K.js"),__vite__mapDeps([9,3,4,5,10])));class yP extends v.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n,i){console.error("Error caught by boundary:",n,i)}render(){return this.state.hasError?g.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[g.jsx("h2",{children:"Something went wrong"}),g.jsx("p",{children:"Please refresh the page to try again."}),g.jsx("button",{onClick:()=>window.location.reload(),children:"Refresh Page"})]}):this.props.children}}const wi=e=>{const n=e();return n.catch(()=>{}),n},wP=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{wi(()=>Zn(()=>import("./index-4L12dHQs.js"),__vite__mapDeps([0,1]))),wi(()=>Zn(()=>import("./index-Cj53JezQ.js"),__vite__mapDeps([2,3,4,5,6]))),wi(()=>Zn(()=>import("./AdminPage-a1ONalH9.js"),__vite__mapDeps([7,3,8]))),wi(()=>Zn(()=>import("./index-D2ncrm5K.js"),__vite__mapDeps([9,3,4,5,10])))}):setTimeout(()=>{wi(()=>Zn(()=>import("./index-4L12dHQs.js"),__vite__mapDeps([0,1]))),wi(()=>Zn(()=>import("./index-Cj53JezQ.js"),__vite__mapDeps([2,3,4,5,6]))),wi(()=>Zn(()=>import("./AdminPage-a1ONalH9.js"),__vite__mapDeps([7,3,8]))),wi(()=>Zn(()=>import("./index-D2ncrm5K.js"),__vite__mapDeps([9,3,4,5,10])))},1e3)},xP=vx([{element:g.jsx(LT,{}),children:[{path:"/",element:g.jsx(Fg,{})},{path:"/upload",element:g.jsx(Fg,{})},{path:"/analytics",element:g.jsx(v.Suspense,{fallback:g.jsx("div",{children:"Loading Analytics..."}),children:g.jsx(pP,{})})},{path:"/explore",element:g.jsx(v.Suspense,{fallback:g.jsx("div",{children:"Loading Explore..."}),children:g.jsx(mP,{})})},{path:"/help",element:g.jsx(dP,{})},{path:"/admin",element:g.jsx(v.Suspense,{fallback:g.jsx("div",{children:"Loading Admin..."}),children:g.jsx(gP,{})})},{path:"/map/:mapId",element:g.jsx(v.Suspense,{fallback:g.jsx("div",{children:"Loading Map Details..."}),children:g.jsx(vP,{})})}]}],{basename:"/"});function CP(){const[e,n]=v.useState([]);v.useEffect(()=>{wP()},[]);const i=v.useCallback(f=>{n(p=>Bx([...p,f],y=>y.name)??p)},[n]),o=v.useCallback(f=>{n(p=>{const y=p.findIndex(C=>C.name===f);if(y===-1)return p;const w=[...p];return w.splice(y,1),w})},[n]),s=v.useCallback((f,p)=>{n(y=>{const w=y.findIndex(m=>m.name===f);if(w===-1)return y;const C=[...y];return C[w]={...C[w],...p},C})},[n]),u=v.useMemo(()=>({alerts:e,addAlert:i,removeAlert:o,updateAlert:s}),[e,i,o,s]),d=v.useMemo(()=>({languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{},currentLanguage:"en",setCurrentLanguage:()=>{},strings:{},setStrings:()=>{},registerNamespace:()=>{}}),[]);return g.jsx(yP,{children:g.jsx(Fx.Provider,{value:u,children:g.jsx(i0.Provider,{value:d,children:g.jsx(hP,{children:g.jsx(Vj,{children:g.jsx(Nx,{router:xP})})})})})})}function SP(){return g.jsx(CP,{})}console.log("React version at runtime:",v.version,"createContext exists?",!!v.createContext);V1.createRoot(document.getElementById("root")).render(g.jsx(v.StrictMode,{children:g.jsx(SP,{})}));export{bC as A,Ko as B,EP as C,qj as D,TP as E,uf as F,Zn as G,V as H,Qi as I,Wi as J,bP as K,bT as L,Qj as M,Gf as N,Tt as O,jC as P,PP as Q,u0 as R,TC as S,c0 as T,jP as U,Mg as V,fP as W,_P as X,zg as Y,$o as _,$e as a,Mt as b,DP as c,OP as d,NP as e,SC as f,s0 as g,LP as h,MP as i,g as j,sr as k,qx as l,FE as m,Ue as n,Oe as o,Zx as p,Ga as q,v as r,l0 as s,i0 as t,Dx as u,PC as v,MC as w,cs as x,kP as y,ar as z};