diff --git "a/py—backend/static/index-oPRJTRcN.js" "b/py—backend/static/index-oPRJTRcN.js" new file mode 100644--- /dev/null +++ "b/py—backend/static/index-oPRJTRcN.js" @@ -0,0 +1,161 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CLLTwnqd.js","assets/index-B1uKTNcW.css","assets/index-B5YX0VGQ.js","assets/useAdmin-DytkUHQc.js","assets/ExportModal-CrJtybXx.js","assets/ExportModal-BoB3JpqO.css","assets/index-BzPMJFRS.css","assets/AdminPage-Ba_QXeaN.js","assets/AdminPage-VgSjQ50W.css","assets/index-B3hZqJuM.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:{}},Oa={},Qc={exports:{}},Ze={};/** + * @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 Ze;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"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.iterator;function m(N){return N===null||typeof N!="object"?null:(N=C&&N[C]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,_={};function T(N,U,oe){this.props=N,this.context=U,this.refs=_,this.updater=oe||x}T.prototype.isReactComponent={},T.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,U,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function M(){}M.prototype=T.prototype;function D(N,U,oe){this.props=N,this.context=U,this.refs=_,this.updater=oe||x}var $=D.prototype=new M;$.constructor=D,b($,T.prototype),$.isPureReactComponent=!0;var V=Array.isArray,Z=Object.prototype.hasOwnProperty,ce={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function te(N,U,oe){var Se,se={},re=null,J=null;if(U!=null)for(Se in U.ref!==void 0&&(J=U.ref),U.key!==void 0&&(re=""+U.key),U)Z.call(U,Se)&&!O.hasOwnProperty(Se)&&(se[Se]=U[Se]);var Q=arguments.length-2;if(Q===1)se.children=oe;else if(1>>1,oe=G[U];if(0>>1;Us(re,N))Js(Q,re)?(G[U]=Q,G[J]=N,U=J):(G[U]=re,G[se]=N,U=se);else if(Js(Q,N))G[U]=Q,G[J]=N,U=J;else break e}}return le}function s(G,le){var N=G.sortIndex-le.sortIndex;return N!==0?N:G.id-le.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=[],v=[],w=1,C=null,m=3,x=!1,b=!1,_=!1,T=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,D=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 le=i(v);le!==null;){if(le.callback===null)o(v);else if(le.startTime<=G)o(v),le.sortIndex=le.expirationTime,n(p,le);else break;le=i(v)}}function V(G){if(_=!1,$(G),!b)if(i(p)!==null)b=!0,xe(Z);else{var le=i(v);le!==null&&be(V,le.startTime-G)}}function Z(G,le){b=!1,_&&(_=!1,M(te),te=-1),x=!0;var N=m;try{for($(le),C=i(p);C!==null&&(!(C.expirationTime>le)||G&&!I());){var U=C.callback;if(typeof U=="function"){C.callback=null,m=C.priorityLevel;var oe=U(C.expirationTime<=le);le=e.unstable_now(),typeof oe=="function"?C.callback=oe:C===i(p)&&o(p),$(le)}else o(p);C=i(p)}if(C!==null)var Se=!0;else{var se=i(v);se!==null&&be(V,se.startTime-le),Se=!1}return Se}finally{C=null,m=N,x=!1}}var ce=!1,O=null,te=-1,de=5,fe=-1;function I(){return!(e.unstable_now()-feG||125U?(G.sortIndex=N,n(v,G),i(p)===null&&G===i(v)&&(_?(M(te),te=-1):_=!0,be(V,N-U))):(G.sortIndex=oe,n(p,G),b||x||(b=!0,xe(Z))),G},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(G){var le=m;return function(){var N=m;m=le;try{return G.apply(this,arguments)}finally{m=N}}}}(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 yn;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,v=/^[: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:v.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 b(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 T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){T[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];T[r]=new _(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){T[t]=new _(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){T[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){T[t]=new _(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){T[t]=new _(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){T[t]=new _(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){T[t]=new _(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){T[t]=new _(t,5,!1,t.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function D(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(M,D);T[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(M,D);T[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(M,D);T[r]=new _(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){T[t]=new _(t,1,!1,t.toLowerCase(),null,!1,!1)}),T.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){T[t]=new _(t,1,!1,t.toLowerCase(),null,!0,!0)});function $(t,r,a,l){var c=T.hasOwnProperty(r)?T[r]:null;(c!==null?c.type!==0:l||!(2E||c[S]!==h[E]){var P=` +`+c[S].replace(" at new "," at ");return t.displayName&&P.includes("")&&(P=P.replace("",t.displayName)),P}while(1<=S&&0<=E);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 J(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 ce:return"Portal";case de:return"Profiler";case te: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 fe:return(t._context.displayName||"Context")+".Provider";case H: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:J(t.type)||"Memo";case xe:r=t._payload,t=t._init;try{return J(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 J(r);case 8:return r===te?"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 tt(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function tn(t){var r=tt(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 lt(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),l="";return t&&(l=tt(t)?t.checked?"true":"false":t.value),t=l,t!==a?(r.setValue(t),!0):!1}function wt(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 ct(t,r){var a=r.checked;return N({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function ht(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 gt(t,r){r=r.checked,r!=null&&$(t,"checked",r,!1)}function xt(t,r){gt(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 _t(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"||wt(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var bn=Array.isArray;function sn(t,r,a,l){if(t=t.options,r){r={};for(var c=0;c"+r.valueOf().toString()+"",r=Lt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function Gt(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var Et={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},Nn=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(t){Nn.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),Et[r]=Et[t]})});function dn(t,r,a){return r==null||typeof r=="boolean"||r===""?"":a||typeof r!="number"||r===0||Et.hasOwnProperty(t)&&Et[t]?(""+r).trim():r+"px"}function Zr(t,r){t=t.style;for(var a in r)if(r.hasOwnProperty(a)){var l=a.indexOf("--")===0,c=dn(a,r[a],l);a==="float"&&(a="cssFloat"),l?t.setProperty(a,c):t[a]=c}}var Qr=N({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 Er(t,r){if(r){if(Qr[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 Nr(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 kr=null;function Fn(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Kn=null,kn=null,$n=null;function Kr(t){if(t=wa(t)){if(typeof Kn!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Ls(r),Kn(t.stateNode,t.type,r))}}function bi(t){kn?$n?$n.push(t):$n=[t]:kn=t}function Yr(){if(kn){var t=kn,r=$n;if($n=kn=null,Kr(t),r)for(t=0;t>>=0,t===0?32:31-(pr(t)/io|0)|0}var Jr=64,oo=4194304;function ki(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 ao(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 E=S&~c;E!==0?l=ki(E):(h&=S,h!==0&&(l=ki(h)))}else S=a&~c,S!==0?l=ki(S):h!==0&&(l=ki(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 Ti(t,r,a){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ge(r),t[r]=a}function xu(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=ca),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 ho=!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(ho)return t==="compositionend"||!Tu&&eh(t,r)?(t=it(),$t=We=rt=null,ho=!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=wt();r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=wt(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,po=null,Lu=null,pa=null,Du=!1;function fh(t,r,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Du||po==null||po!==wt(l)||(l=po,"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}),pa&&ha(pa,l)||(pa=l,l=js(Lu,"onSelect"),0wo||(t.current=qu[wo],qu[wo]=null,wo--)}function ft(t,r){wo++,qu[wo]=t.current,t.current=r}var oi={},Yt=ii(oi),hn=ii(!1),Oi=oi;function xo(t,r){var a=t.type.contextTypes;if(!a)return oi;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 pn(t){return t=t.childContextTypes,t!=null}function Ds(){mt(hn),mt(Yt)}function kh(t,r,a){if(Yt.current!==oi)throw Error(i(168));ft(Yt,r),ft(hn,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 N({},a,l)}function Os(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||oi,Oi=Yt.current,ft(Yt,t),ft(hn,hn.current),!0}function jh(t,r,a){var l=t.stateNode;if(!l)throw Error(i(169));a?(t=Th(t,r,Oi),l.__reactInternalMemoizedMergedChildContext=t,mt(hn),mt(Yt),ft(Yt,t)):mt(hn),ft(hn,a)}var Lr=null,Rs=!1,Wu=!1;function Ph(t){Lr===null?Lr=[t]:Lr.push(t)}function t1(t){Rs=!0,Ph(t)}function ai(){if(!Wu&&Lr!==null){Wu=!0;var t=0,r=nt;try{var a=Lr;for(nt=1;t>=S,c-=S,Dr=1<<32-Ge(r)+c|a<Ie?(Ut=De,De=null):Ut=De.sibling;var et=X(A,De,F[Ie],ae);if(et===null){De===null&&(De=Ut);break}t&&De&&et.alternate===null&&r(A,De),L=h(et,L,Ie),Le===null?ke=et:Le.sibling=et,Le=et,De=Ut}if(Ie===F.length)return a(A,De),vt&&Ii(A,Ie),ke;if(De===null){for(;IeIe?(Ut=De,De=null):Ut=De.sibling;var mi=X(A,De,et.value,ae);if(mi===null){De===null&&(De=Ut);break}t&&De&&mi.alternate===null&&r(A,De),L=h(mi,L,Ie),Le===null?ke=mi:Le.sibling=mi,Le=mi,De=Ut}if(et.done)return a(A,De),vt&&Ii(A,Ie),ke;if(De===null){for(;!et.done;Ie++,et=F.next())et=ie(A,et.value,ae),et!==null&&(L=h(et,L,Ie),Le===null?ke=et:Le.sibling=et,Le=et);return vt&&Ii(A,Ie),ke}for(De=l(A,De);!et.done;Ie++,et=F.next())et=pe(De,A,Ie,et.value,ae),et!==null&&(t&&et.alternate!==null&&De.delete(et.key===null?Ie:et.key),L=h(et,L,Ie),Le===null?ke=et:Le.sibling=et,Le=et);return t&&De.forEach(function(R1){return r(A,R1)}),vt&&Ii(A,Ie),ke}function Pt(A,L,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=L;Le!==null;){if(Le.key===ke){if(ke=F.type,ke===O){if(Le.tag===7){a(A,Le.sibling),L=c(Le,F.props.children),L.return=A,A=L;break e}}else if(Le.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===xe&&Vh(ke)===Le.type){a(A,Le.sibling),L=c(Le,F.props),L.ref=xa(A,Le,F),L.return=A,A=L;break e}a(A,Le);break}else r(A,Le);Le=Le.sibling}F.type===O?(L=Vi(F.props.children,A.mode,ae,F.key),L.return=A,A=L):(ae=ul(F.type,F.key,F.props,null,A.mode,ae),ae.ref=xa(A,L,F),ae.return=A,A=ae)}return S(A);case ce:e:{for(Le=F.key;L!==null;){if(L.key===Le)if(L.tag===4&&L.stateNode.containerInfo===F.containerInfo&&L.stateNode.implementation===F.implementation){a(A,L.sibling),L=c(L,F.children||[]),L.return=A,A=L;break e}else{a(A,L);break}else r(A,L);L=L.sibling}L=Hc(F,A.mode,ae),L.return=A,A=L}return S(A);case xe:return Le=F._init,Pt(A,L,Le(F._payload),ae)}if(bn(F))return _e(A,L,F,ae);if(le(F))return Ee(A,L,F,ae);Vs(A,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,L!==null&&L.tag===6?(a(A,L.sibling),L=c(L,F),L.return=A,A=L):(a(A,L),L=Uc(F,A.mode,ae),L.return=A,A=L),S(A)):a(A,L)}return Pt}var No=qh(!0),Wh=qh(!1),Ca={},vr=ii(Ca),Sa=ii(Ca),_a=ii(Ca);function Fi(t){if(t===Ca)throw Error(i(174));return t}function ac(t,r){switch(ft(_a,r),ft(Sa,t),ft(vr,Ca),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:cn(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=cn(r,t)}mt(vr),ft(vr,r)}function ko(){mt(vr),mt(Sa),mt(_a)}function Gh(t){Fi(_a.current);var r=Fi(vr.current),a=cn(r,t.type);r!==a&&(ft(Sa,t),ft(vr,a))}function sc(t){Sa.current===t&&(mt(vr),mt(Sa))}var Ct=ii(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{nt=a,cc.transition=l}}function dp(){return Wn().memoizedState}function o1(t,r,a){var l=fi(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=on();lr(a,t,l,c),pp(a,r,l)}}function a1(t,r,a){var l=fi(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,E=h(S,a);if(c.hasEagerState=!0,c.eagerState=E,rr(E,S)){var P=r.interleaved;P===null?(c.next=c,nc(r)):(c.next=P.next,P.next=c),r.interleaved=c;return}}catch{}finally{}a=Ih(t,r,c,l),a!==null&&(c=on(),lr(a,t,l,c),pp(a,r,l))}}function fp(t){var r=t.alternate;return t===St||r!==null&&r===St}function hp(t,r){ba=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:qn,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:qn,useCallback:function(t,r){return yr().memoizedState=[t,r===void 0?null:r],t},useContext:qn,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=yr();return r=r===void 0?null:r,t=t(),a.memoizedState=[t,r],t},useReducer:function(t,r,a){var l=yr();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,St,t),[l.memoizedState,t]},useRef:function(t){var r=yr();return t={current:t},r.memoizedState=t},useState:tp,useDebugValue:vc,useDeferredValue:function(t){return yr().memoizedState=t},useTransition:function(){var t=tp(!1),r=t[0];return t=i1.bind(null,t[1]),yr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,a){var l=St,c=yr();if(vt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=r(),Bt===null)throw Error(i(349));($i&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,ka(9,Yh.bind(null,l,h,a,r),void 0,null),a},useId:function(){var t=yr(),r=Bt.identifierPrefix;if(vt){var a=Or,l=Dr;a=(l&~(1<<32-Ge(l)-1)).toString(32)+a,r=":"+r+"R"+a,a=Ea++,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[gr]=r,t[ya]=l,Mp(t,r,!1,!1),r.stateNode=t;e:{switch(S=Nr(a,l),a){case"dialog":pt("cancel",t),pt("close",t),c=l;break;case"iframe":case"object":case"embed":pt("load",t),c=l;break;case"video":case"audio":for(c=0;cMo&&(r.flags|=128,l=!0,Ta(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),Ta(h,!0),h.tail===null&&h.tailMode==="hidden"&&!S.alternate&&!vt)return Jt(r),null}else 2*ze()-h.renderingStartTime>Mo&&a!==1073741824&&(r.flags|=128,l=!0,Ta(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=ze(),r.sibling=null,a=Ct.current,ft(Ct,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?(Dn&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 pn(r.type)&&Ds(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ko(),mt(hn),mt(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(mt(Ct),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));_o()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return mt(Ct),null;case 4:return ko(),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,we=null;function jo(t,r){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(l){Nt(t,r,l)}else a.current=null}function kc(t,r,a){try{a()}catch(l){Nt(t,r,l)}}var Op=!1;function v1(t,r){if($u=uo,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,E=-1,P=-1,B=0,ee=0,ie=t,X=null;t:for(;;){for(var pe;ie!==a||c!==0&&ie.nodeType!==3||(E=S+c),ie!==h||l!==0&&ie.nodeType!==3||(P=S+l),ie.nodeType===3&&(S+=ie.nodeValue.length),(pe=ie.firstChild)!==null;)X=ie,ie=pe;for(;;){if(ie===t)break t;if(X===a&&++B===c&&(E=S),X===h&&++ee===l&&(P=S),(pe=ie.nextSibling)!==null)break;ie=X,X=ie.parentNode}ie=pe}a=E===-1||P===-1?null:{start:E,end:P}}else a=null}a=a||{start:0,end:0}}else a=null;for(zu={focusedElem:t,selectionRange:a},uo=!1,we=r;we!==null;)if(r=we,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,we=t;else for(;we!==null;){r=we;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 Ee=_e.memoizedProps,Pt=_e.memoizedState,A=r.stateNode,L=A.getSnapshotBeforeUpdate(r.elementType===r.type?Ee:or(r.type,Ee),Pt);A.__reactInternalSnapshotBeforeUpdate=L}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){Nt(r,r.return,ae)}if(t=r.sibling,t!==null){t.return=r.return,we=t;break}we=r.return}return _e=Op,Op=!1,_e}function ja(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[gr],delete r[ya],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 Qt=null,ar=!1;function ui(t,r,a){for(a=a.child;a!==null;)Fp(t,r,a),a=a.sibling}function Fp(t,r,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(ot,a)}catch{}switch(a.tag){case 5:en||jo(a,r);case 6:var l=Qt,c=ar;Qt=null,ui(t,r,a),Qt=l,ar=c,Qt!==null&&(ar?(t=Qt,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):Qt.removeChild(a.stateNode));break;case 18:Qt!==null&&(ar?(t=Qt,a=a.stateNode,t.nodeType===8?Hu(t.parentNode,a):t.nodeType===1&&Hu(t,a),Li(t)):Hu(Qt,a.stateNode));break;case 4:l=Qt,c=ar,Qt=a.stateNode.containerInfo,ar=!0,ui(t,r,a),Qt=l,ar=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)}ui(t,r,a);break;case 1:if(!en&&(jo(a,r),l=a.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=a.memoizedProps,l.state=a.memoizedState,l.componentWillUnmount()}catch(E){Nt(a,r,E)}ui(t,r,a);break;case 21:ui(t,r,a);break;case 22:a.mode&1?(en=(l=en)||a.memoizedState!==null,ui(t,r,a),en=l):ui(t,r,a);break;default:ui(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 sr(t,r){var a=r.deletions;if(a!==null)for(var l=0;lc&&(c=S),l&=~h}if(l=c,l=ze()-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,di===null)var l=!1;else{if(t=di,di=null,ol=0,(Xe&6)!==0)throw Error(i(331));var c=Xe;for(Xe|=4,we=t.current;we!==null;){var h=we,S=h.child;if((we.flags&16)!==0){var E=h.deletions;if(E!==null){for(var P=0;Pze()-Dc?Ui(t,0):Lc|=a),vn(t,r)}function Xp(t,r){r===0&&((t.mode&1)===0?r=1:(r=oo,oo<<=1,(oo&130023424)===0&&(oo=4194304)));var a=on();t=Rr(t,r),t!==null&&(Ti(t,r,a),vn(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||hn.current)mn=!0;else{if((t.lanes&a)===0&&(r.flags&128)===0)return mn=!1,h1(t,r,a);mn=(t.flags&131072)!==0}else mn=!1,vt&&(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=xo(r,Yt.current);Eo(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,pn(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,vt&&h&&Gu(r),rn(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=or(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,or(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:or(l,c),xc(t,r,l,c,a);case 1:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:or(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=To(Error(i(423)),r),r=kp(t,r,l,a,c);break e}else if(l!==c){c=To(Error(i(424)),r),r=kp(t,r,l,a,c);break e}else for(Ln=ri(r.stateNode.containerInfo.firstChild),Mn=r,vt=!0,ir=null,a=Wh(r,null,l,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(_o(),l===c){r=Ar(t,r,a);break e}rn(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),rn(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=No(r,null,l,a):rn(t,r,l,a),r.child;case 11:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:or(l,c),xp(t,r,l,c,a);case 7:return rn(t,r,r.pendingProps,a),r.child;case 8:return rn(t,r,r.pendingProps.children,a),r.child;case 12:return rn(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,ft($s,l._currentValue),l._currentValue=S,h!==null)if(rr(h.value,S)){if(h.children===c.children&&!hn.current){r=Ar(t,r,a);break e}}else for(h=r.child,h!==null&&(h.return=r);h!==null;){var E=h.dependencies;if(E!==null){S=h.child;for(var P=E.firstContext;P!==null;){if(P.context===l){if(h.tag===1){P=Ir(-1,a&-a),P.tag=2;var B=h.updateQueue;if(B!==null){B=B.shared;var ee=B.pending;ee===null?P.next=P:(P.next=ee.next,ee.next=P),B.pending=P}}h.lanes|=a,P=h.alternate,P!==null&&(P.lanes|=a),tc(h.return,a,r),E.lanes|=a;break}P=P.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,E=S.alternate,E!==null&&(E.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}rn(t,r,c.children,a),r=r.child}return r;case 9:return c=r.type,l=r.pendingProps.children,Eo(r,a),c=qn(c),l=l(c),r.flags|=1,rn(t,r,l,a),r.child;case 14:return l=r.type,c=or(l,r.pendingProps),c=or(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:or(l,c),Xs(t,r),r.tag=1,pn(l)?(t=!0,Os(r)):t=!1,Eo(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 Zn(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===H)return 11;if(t===he)return 14}return 2}function pi(t,r){var a=t.alternate;return a===null?(a=Zn(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 Vi(a.children,c,h,r);case te:S=8,c|=8;break;case de:return t=Zn(12,a,r,c|2),t.elementType=de,t.lanes=h,t;case W:return t=Zn(13,a,r,c),t.elementType=W,t.lanes=h,t;case ne:return t=Zn(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 fe:S=10;break e;case I:S=9;break e;case H:S=11;break e;case he:S=14;break e;case xe:S=16,l=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Zn(S,a,r,c),r.elementType=t,r.type=l,r.lanes=h,r}function Vi(t,r,a,l){return t=Zn(7,t,l,r),t.lanes=a,t}function cl(t,r,a,l){return t=Zn(22,t,l,r),t.elementType=be,t.lanes=a,t.stateNode={isHidden:!1},t}function Uc(t,r,a){return t=Zn(6,t,null,r),t.lanes=a,t}function Hc(t,r,a){return r=Zn(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,E,P){return t=new j1(t,r,a,E,P),r===1?(r=1,h===!0&&(r|=8)):r=0,h=Zn(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={},Qn=function(n,i,o){let s=Promise.resolve();if(i&&i.length>0){let p=function(v){return Promise.all(v.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(v=>{if(v=W1(v),v in mm)return;mm[v]=!0;const w=v.endsWith(".css"),C=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${C}`))return;const m=document.createElement("link");if(m.rel=w?"stylesheet":q1,w||(m.as="script"),m.crossOrigin="",m.href=v,f&&m.setAttribute("nonce",f),document.head.appendChild(m),w)return new Promise((x,b)=>{m.addEventListener("load",x),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${v}`)))})}))}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 yt(){return yt=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 Xa(e,n,i,o){return i===void 0&&(i=null),yt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?Si(n):n,{state:i,key:n&&n.key||o||K1()})}function Xi(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 Si(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,v=w();v==null&&(v=0,d.replaceState(yt({},d.state,{idx:v}),""));function w(){return(d.state||{idx:null}).idx}function C(){f=Ot.Pop;let T=w(),M=T==null?null:T-v;v=T,p&&p({action:f,location:_.location,delta:M})}function m(T,M){f=Ot.Push;let D=Xa(_.location,T,M);v=w()+1;let $=vm(D,v),V=_.createHref(D);try{d.pushState($,"",V)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;s.location.assign(V)}u&&p&&p({action:f,location:_.location,delta:1})}function x(T,M){f=Ot.Replace;let D=Xa(_.location,T,M);v=w();let $=vm(D,v),V=_.createHref(D);d.replaceState($,"",V),u&&p&&p({action:f,location:_.location,delta:0})}function b(T){let M=s.location.origin!=="null"?s.location.origin:s.location.href,D=typeof T=="string"?T:Xi(T);return D=D.replace(/ $/,"%20"),Ye(M,"No window.location.(origin|href) available to create URL for href: "+D),new URL(D,M)}let _={get action(){return f},get location(){return e(s,d)},listen(T){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(gm,C),p=T,()=>{s.removeEventListener(gm,C),p=null}},createHref(T){return n(s,T)},createURL:b,encodeLocation(T){let M=b(T);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:m,replace:x,go(T){return d.go(T)}};return _}var at;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(at||(at={}));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(Ye(s.index!==!0||!s.children,"Cannot specify children on an index route"),Ye(!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=yt({},s,n(s),{id:f});return o[f]=p,p}else{let p=yt({},s,n(s),{id:f,children:void 0});return o[f]=p,s.children&&(p.children=Vl(s.children,n,d,o)),p}})}function Wi(e,n,i){return i===void 0&&(i="/"),Al(e,n,i,!1)}function Al(e,n,i,o){let s=typeof n=="string"?Si(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("/")&&(Ye(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 v=Hr([o,p.relativePath]),w=i.concat(p);u.children&&u.children.length>0&&(Ye(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),Ug(u.children,n,w,v)),!(u.path==null&&!u.index)&&n.push({path:v,score:lw(v,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 b=f[C];return x&&!b?v[m]=void 0:v[m]=(b||"").replace(/%2F/g,"/"),v},{}),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"?Si(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=Si(e):(s=yt({},e),Ye(!s.pathname||!s.pathname.includes("?"),Jc("?","pathname","search",s)),Ye(!s.pathname||!s.pathname.includes("#"),Jc("#","pathname","hash",s)),Ye(!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),v=d&&d!=="/"&&d.endsWith("/"),w=(u||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(v||w)&&(p.pathname+="/"),p}const Hr=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 Ja(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},Ra={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;Ye(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||"/",v=e.dataStrategy||jw,w=e.patchRoutesOnNavigation,C=yt({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,b=null,_=null,T=null,M=e.hydrationData!=null,D=Wi(d,e.history.location,p),$=!1,V=null;if(D==null&&!w){let j=wn(404,{pathname:e.history.location.pathname}),{matches:R,route:z}=Pm(d);D=R,V={[z.id]:j}}D&&!e.hydrationData&&zn(D,d,e.history.location.pathname).active&&(D=null);let Z;if(D)if(D.some(j=>j.route.lazy))Z=!1;else if(!D.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=D.findIndex(K=>R[K.route.id]!==void 0);Z=D.slice(0,z+1).every(K=>!bd(K.route,j,R))}else Z=D.every(z=>!bd(z.route,j,R))}else Z=e.hydrationData!=null;else if(Z=!1,D=[],C.v7_partialHydration){let j=zn(null,d,e.history.location.pathname);j.active&&j.matches&&($=!0,D=j.matches)}let ce,O={historyAction:e.history.action,location:e.history.location,matches:D,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||V,fetchers:new Map,blockers:new Map},te=Ot.Pop,de=!1,fe,I=!1,H=new Map,W=null,ne=!1,he=!1,xe=[],be=new Set,G=new Map,le=0,N=-1,U=new Map,oe=new Set,Se=new Map,se=new Map,re=new Set,J=new Map,Q=new Map,Y;function tt(){if(m=e.history.listen(j=>{let{action:R,location:z,delta:K}=j;if(Y){Y(),Y=void 0;return}Ho(Q.size===0||K!=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 ue=Kn({currentLocation:O.location,nextLocation:z,historyAction:R});if(ue&&K!=null){let Ne=new Promise(Pe=>{Y=Pe});e.history.go(K*-1),Fn(ue,{state:"blocked",location:z,proceed(){Fn(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),Ne.then(()=>e.history.go(K))},reset(){let Pe=new Map(O.blockers);Pe.set(ue,Ra),lt({blockers:Pe})}});return}return gt(R,z)}),i){Hw(n,H);let j=()=>Vw(n,H);n.addEventListener("pagehide",j),W=()=>n.removeEventListener("pagehide",j)}return O.initialized||gt(Ot.Pop,O.location,{initialHydration:!0}),ce}function tn(){m&&m(),W&&W(),x.clear(),fe&&fe.abort(),O.fetchers.forEach((j,R)=>Et(R)),O.blockers.forEach((j,R)=>kr(R))}function Wt(j){return x.add(j),()=>x.delete(j)}function lt(j,R){R===void 0&&(R={}),O=yt({},O,j);let z=[],K=[];C.v7_fetcherPersist&&O.fetchers.forEach((ue,Ne)=>{ue.state==="idle"&&(re.has(Ne)?K.push(Ne):z.push(Ne))}),re.forEach(ue=>{!O.fetchers.has(ue)&&!G.has(ue)&&K.push(ue)}),[...x].forEach(ue=>ue(O,{deletedFetchers:K,viewTransitionOpts:R.viewTransitionOpts,flushSync:R.flushSync===!0})),C.v7_fetcherPersist?(z.forEach(ue=>O.fetchers.delete(ue)),K.forEach(ue=>Et(ue))):K.forEach(ue=>re.delete(ue))}function wt(j,R,z){var K,ue;let{flushSync:Ne}=z===void 0?{}:z,Pe=O.actionData!=null&&O.navigation.formMethod!=null&&ur(O.navigation.formMethod)&&O.navigation.state==="loading"&&((K=j.state)==null?void 0:K._isRedirect)!==!0,ye;R.actionData?Object.keys(R.actionData).length>0?ye=R.actionData:ye=null:Pe?ye=O.actionData:ye=null;let Ce=R.loaderData?Tm(O.loaderData,R.loaderData,R.matches||[],R.errors):O.loaderData,ve=O.blockers;ve.size>0&&(ve=new Map(ve),ve.forEach((Ve,Tt)=>ve.set(Tt,Ra)));let me=de===!0||O.navigation.formMethod!=null&&ur(O.navigation.formMethod)&&((ue=j.state)==null?void 0:ue._isRedirect)!==!0;f&&(d=f,f=void 0),ne||te===Ot.Pop||(te===Ot.Push?e.history.push(j,j.state):te===Ot.Replace&&e.history.replace(j,j.state));let Fe;if(te===Ot.Pop){let Ve=H.get(O.location.pathname);Ve&&Ve.has(j.pathname)?Fe={currentLocation:O.location,nextLocation:j}:H.has(j.pathname)&&(Fe={currentLocation:j,nextLocation:O.location})}else if(I){let Ve=H.get(O.location.pathname);Ve?Ve.add(j.pathname):(Ve=new Set([j.pathname]),H.set(O.location.pathname,Ve)),Fe={currentLocation:O.location,nextLocation:j}}lt(yt({},R,{actionData:ye,loaderData:Ce,historyAction:te,location:j,initialized:!0,navigation:ed,revalidation:"idle",restoreScrollPosition:Yn(j,R.matches||O.matches),preventScrollReset:me,blockers:ve}),{viewTransitionOpts:Fe,flushSync:Ne===!0}),te=Ot.Pop,de=!1,I=!1,ne=!1,he=!1,xe=[]}async function ct(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:K,submission:ue,error:Ne}=xm(C.v7_normalizeFormMethod,!1,z,R),Pe=O.location,ye=Xa(O.location,K,R&&R.state);ye=yt({},ye,e.history.encodeLocation(ye));let Ce=R&&R.replace!=null?R.replace:void 0,ve=Ot.Push;Ce===!0?ve=Ot.Replace:Ce===!1||ue!=null&&ur(ue.formMethod)&&ue.formAction===O.location.pathname+O.location.search&&(ve=Ot.Replace);let me=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,Fe=(R&&R.flushSync)===!0,Ve=Kn({currentLocation:Pe,nextLocation:ye,historyAction:ve});if(Ve){Fn(Ve,{state:"blocked",location:ye,proceed(){Fn(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),ct(j,R)},reset(){let Tt=new Map(O.blockers);Tt.set(Ve,Ra),lt({blockers:Tt})}});return}return await gt(ve,ye,{submission:ue,pendingError:Ne,preventScrollReset:me,replace:R&&R.replace,enableViewTransition:R&&R.viewTransition,flushSync:Fe})}function ht(){if(cn(),lt({revalidation:"loading"}),O.navigation.state!=="submitting"){if(O.navigation.state==="idle"){gt(O.historyAction,O.location,{startUninterruptedRevalidation:!0});return}gt(te||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:I===!0})}}async function gt(j,R,z){fe&&fe.abort(),fe=null,te=j,ne=(z&&z.startUninterruptedRevalidation)===!0,Yr(O.location,O.matches),de=(z&&z.preventScrollReset)===!0,I=(z&&z.enableViewTransition)===!0;let K=f||d,ue=z&&z.overrideNavigation,Ne=z!=null&&z.initialHydration&&O.matches&&O.matches.length>0&&!$?O.matches:Wi(K,R,p),Pe=(z&&z.flushSync)===!0;if(Ne&&O.initialized&&!he&&Rw(O.location,R)&&!(z&&z.submission&&ur(z.submission.formMethod))){wt(R,{matches:Ne},{flushSync:Pe});return}let ye=zn(Ne,K,R.pathname);if(ye.active&&ye.matches&&(Ne=ye.matches),!Ne){let{error:Ke,notFoundMatches:qe,route:Je}=kn(R.pathname);wt(R,{matches:qe,loaderData:{},errors:{[Je.id]:Ke}},{flushSync:Pe});return}fe=new AbortController;let Ce=Do(e.history,R,fe.signal,z&&z.submission),ve;if(z&&z.pendingError)ve=[Gi(Ne).route.id,{type:at.error,error:z.pendingError}];else if(z&&z.submission&&ur(z.submission.formMethod)){let Ke=await xt(Ce,R,z.submission,Ne,ye.active,{replace:z.replace,flushSync:Pe});if(Ke.shortCircuited)return;if(Ke.pendingActionResult){let[qe,Je]=Ke.pendingActionResult;if(Rn(Je)&&Ja(Je.error)&&Je.error.status===404){fe=null,wt(R,{matches:Ke.matches,loaderData:{},errors:{[qe]:Je.error}});return}}Ne=Ke.matches||Ne,ve=Ke.pendingActionResult,ue=td(R,z.submission),Pe=!1,ye.active=!1,Ce=Do(e.history,Ce.url,Ce.signal)}let{shortCircuited:me,matches:Fe,loaderData:Ve,errors:Tt}=await _t(Ce,R,Ne,ye.active,ue,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,Pe,ve);me||(fe=null,wt(R,yt({matches:Fe||Ne},jm(ve),{loaderData:Ve,errors:Tt})))}async function xt(j,R,z,K,ue,Ne){Ne===void 0&&(Ne={}),cn();let Pe=Bw(R,z);if(lt({navigation:Pe},{flushSync:Ne.flushSync===!0}),ue){let ve=await hr(K,R.pathname,j.signal);if(ve.type==="aborted")return{shortCircuited:!0};if(ve.type==="error"){let me=Gi(ve.partialMatches).route.id;return{matches:ve.partialMatches,pendingActionResult:[me,{type:at.error,error:ve.error}]}}else if(ve.matches)K=ve.matches;else{let{notFoundMatches:me,error:Fe,route:Ve}=kn(R.pathname);return{matches:me,pendingActionResult:[Ve.id,{type:at.error,error:Fe}]}}}let ye,Ce=Ga(K,R);if(!Ce.route.action&&!Ce.route.lazy)ye={type:at.error,error:wn(405,{method:j.method,pathname:R.pathname,routeId:Ce.route.id})};else if(ye=(await un("action",O,j,[Ce],K,null))[Ce.route.id],j.signal.aborted)return{shortCircuited:!0};if(Ki(ye)){let ve;return Ne&&Ne.replace!=null?ve=Ne.replace:ve=Em(ye.response.headers.get("Location"),new URL(j.url),p)===O.location.pathname+O.location.search,await ln(j,ye,!0,{submission:z,replace:ve}),{shortCircuited:!0}}if(xi(ye))throw wn(400,{type:"defer-action"});if(Rn(ye)){let ve=Gi(K,Ce.route.id);return(Ne&&Ne.replace)!==!0&&(te=Ot.Push),{matches:K,pendingActionResult:[ve.route.id,ye]}}return{matches:K,pendingActionResult:[Ce.route.id,ye]}}async function _t(j,R,z,K,ue,Ne,Pe,ye,Ce,ve,me){let Fe=ue||td(R,Ne),Ve=Ne||Pe||Lm(Fe),Tt=!ne&&(!C.v7_partialHydration||!Ce);if(K){if(Tt){let ot=nn(me);lt(yt({navigation:Fe},ot!==void 0?{actionData:ot}:{}),{flushSync:ve})}let Be=await hr(z,R.pathname,j.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let ot=Gi(Be.partialMatches).route.id;return{matches:Be.partialMatches,loaderData:{},errors:{[ot]:Be.error}}}else if(Be.matches)z=Be.matches;else{let{error:ot,notFoundMatches:jt,route:jr}=kn(R.pathname);return{matches:jt,loaderData:{},errors:{[jr.id]:ot}}}}let Ke=f||d,[qe,Je]=Sm(e.history,O,z,Ve,R,C.v7_partialHydration&&Ce===!0,C.v7_skipActionErrorRevalidation,he,xe,be,re,Se,oe,Ke,p,me);if($n(Be=>!(z&&z.some(ot=>ot.route.id===Be))||qe&&qe.some(ot=>ot.route.id===Be)),N=++le,qe.length===0&&Je.length===0){let Be=Qr();return wt(R,yt({matches:z,loaderData:{},errors:me&&Rn(me[1])?{[me[0]]:me[1].error}:null},jm(me),Be?{fetchers:new Map(O.fetchers)}:{}),{flushSync:ve}),{shortCircuited:!0}}if(Tt){let Be={};if(!K){Be.navigation=Fe;let ot=nn(me);ot!==void 0&&(Be.actionData=ot)}Je.length>0&&(Be.fetchers=bn(Je)),lt(Be,{flushSync:ve})}Je.forEach(Be=>{dn(Be.key),Be.controller&&G.set(Be.key,Be.controller)});let Xn=()=>Je.forEach(Be=>dn(Be.key));fe&&fe.signal.addEventListener("abort",Xn);let{loaderResults:Tn,fetcherResults:jn}=await Ft(O,z,qe,Je,j);if(j.signal.aborted)return{shortCircuited:!0};fe&&fe.signal.removeEventListener("abort",Xn),Je.forEach(Be=>G.delete(Be.key));let ze=yl(Tn);if(ze)return await ln(j,ze.result,!0,{replace:ye}),{shortCircuited:!0};if(ze=yl(jn),ze)return oe.add(ze.key),await ln(j,ze.result,!0,{replace:ye}),{shortCircuited:!0};let{loaderData:Ni,errors:fn}=km(O,z,Tn,me,Je,jn,J);J.forEach((Be,ot)=>{Be.subscribe(jt=>{(jt||Be.done)&&J.delete(ot)})}),C.v7_partialHydration&&Ce&&O.errors&&(fn=yt({},O.errors,fn));let Bn=Qr(),Pn=Er(N),Xr=Bn||Pn||Je.length>0;return yt({matches:z,loaderData:Ni,errors:fn},Xr?{fetchers:new Map(O.fetchers)}:{})}function nn(j){if(j&&!Rn(j[1]))return{[j[0]]:j[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function bn(j){return j.forEach(R=>{let z=O.fetchers.get(R.key),K=Ia(void 0,z?z.data:void 0);O.fetchers.set(R.key,K)}),new Map(O.fetchers)}function sn(j,R,z,K){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.");dn(j);let ue=(K&&K.flushSync)===!0,Ne=f||d,Pe=_d(O.location,O.matches,p,C.v7_prependBasename,z,C.v7_relativeSplatPath,R,K?.relative),ye=Wi(Ne,Pe,p),Ce=zn(ye,Ne,Pe);if(Ce.active&&Ce.matches&&(ye=Ce.matches),!ye){bt(j,R,wn(404,{pathname:Pe}),{flushSync:ue});return}let{path:ve,submission:me,error:Fe}=xm(C.v7_normalizeFormMethod,!0,Pe,K);if(Fe){bt(j,R,Fe,{flushSync:ue});return}let Ve=Ga(ye,ve),Tt=(K&&K.preventScrollReset)===!0;if(me&&ur(me.formMethod)){En(j,R,ve,Ve,ye,Ce.active,ue,Tt,me);return}Se.set(j,{routeId:R,path:ve}),Gr(j,R,ve,Ve,ye,Ce.active,ue,Tt,me)}async function En(j,R,z,K,ue,Ne,Pe,ye,Ce){cn(),Se.delete(j);function ve(Ge){if(!Ge.route.action&&!Ge.route.lazy){let pr=wn(405,{method:Ce.formMethod,pathname:z,routeId:R});return bt(j,R,pr,{flushSync:Pe}),!0}return!1}if(!Ne&&ve(K))return;let me=O.fetchers.get(j);Lt(j,Uw(Ce,me),{flushSync:Pe});let Fe=new AbortController,Ve=Do(e.history,z,Fe.signal,Ce);if(Ne){let Ge=await hr(ue,new URL(Ve.url).pathname,Ve.signal,j);if(Ge.type==="aborted")return;if(Ge.type==="error"){bt(j,R,Ge.error,{flushSync:Pe});return}else if(Ge.matches){if(ue=Ge.matches,K=Ga(ue,z),ve(K))return}else{bt(j,R,wn(404,{pathname:z}),{flushSync:Pe});return}}G.set(j,Fe);let Tt=le,qe=(await un("action",O,Ve,[K],ue,j))[K.route.id];if(Ve.signal.aborted){G.get(j)===Fe&&G.delete(j);return}if(C.v7_fetcherPersist&&re.has(j)){if(Ki(qe)||Rn(qe)){Lt(j,wi(void 0));return}}else{if(Ki(qe))if(G.delete(j),N>Tt){Lt(j,wi(void 0));return}else return oe.add(j),Lt(j,Ia(Ce)),ln(Ve,qe,!1,{fetcherSubmission:Ce,preventScrollReset:ye});if(Rn(qe)){bt(j,R,qe.error);return}}if(xi(qe))throw wn(400,{type:"defer-action"});let Je=O.navigation.location||O.location,Xn=Do(e.history,Je,Fe.signal),Tn=f||d,jn=O.navigation.state!=="idle"?Wi(Tn,O.navigation.location,p):O.matches;Ye(jn,"Didn't find any matches after fetcher action");let ze=++le;U.set(j,ze);let Ni=Ia(Ce,qe.data);O.fetchers.set(j,Ni);let[fn,Bn]=Sm(e.history,O,jn,Ce,Je,!1,C.v7_skipActionErrorRevalidation,he,xe,be,re,Se,oe,Tn,p,[K.route.id,qe]);Bn.filter(Ge=>Ge.key!==j).forEach(Ge=>{let pr=Ge.key,io=O.fetchers.get(pr),Xo=Ia(void 0,io?io.data:void 0);O.fetchers.set(pr,Xo),dn(pr),Ge.controller&&G.set(pr,Ge.controller)}),lt({fetchers:new Map(O.fetchers)});let Pn=()=>Bn.forEach(Ge=>dn(Ge.key));Fe.signal.addEventListener("abort",Pn);let{loaderResults:Xr,fetcherResults:Be}=await Ft(O,jn,fn,Bn,Xn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",Pn),U.delete(j),G.delete(j),Bn.forEach(Ge=>G.delete(Ge.key));let ot=yl(Xr);if(ot)return ln(Xn,ot.result,!1,{preventScrollReset:ye});if(ot=yl(Be),ot)return oe.add(ot.key),ln(Xn,ot.result,!1,{preventScrollReset:ye});let{loaderData:jt,errors:jr}=km(O,jn,Xr,void 0,Bn,Be,J);if(O.fetchers.has(j)){let Ge=wi(qe.data);O.fetchers.set(j,Ge)}Er(ze),O.navigation.state==="loading"&&ze>N?(Ye(te,"Expected pending action"),fe&&fe.abort(),wt(O.navigation.location,{matches:jn,loaderData:jt,errors:jr,fetchers:new Map(O.fetchers)})):(lt({errors:jr,loaderData:Tm(O.loaderData,jt,jn,jr),fetchers:new Map(O.fetchers)}),he=!1)}async function Gr(j,R,z,K,ue,Ne,Pe,ye,Ce){let ve=O.fetchers.get(j);Lt(j,Ia(Ce,ve?ve.data:void 0),{flushSync:Pe});let me=new AbortController,Fe=Do(e.history,z,me.signal);if(Ne){let qe=await hr(ue,new URL(Fe.url).pathname,Fe.signal,j);if(qe.type==="aborted")return;if(qe.type==="error"){bt(j,R,qe.error,{flushSync:Pe});return}else if(qe.matches)ue=qe.matches,K=Ga(ue,z);else{bt(j,R,wn(404,{pathname:z}),{flushSync:Pe});return}}G.set(j,me);let Ve=le,Ke=(await un("loader",O,Fe,[K],ue,j))[K.route.id];if(xi(Ke)&&(Ke=await nf(Ke,Fe.signal,!0)||Ke),G.get(j)===me&&G.delete(j),!Fe.signal.aborted){if(re.has(j)){Lt(j,wi(void 0));return}if(Ki(Ke))if(N>Ve){Lt(j,wi(void 0));return}else{oe.add(j),await ln(Fe,Ke,!1,{preventScrollReset:ye});return}if(Rn(Ke)){bt(j,R,Ke.error);return}Ye(!xi(Ke),"Unhandled fetcher deferred data"),Lt(j,wi(Ke.data))}}async function ln(j,R,z,K){let{submission:ue,fetcherSubmission:Ne,preventScrollReset:Pe,replace:ye}=K===void 0?{}:K;R.response.headers.has("X-Remix-Revalidate")&&(he=!0);let Ce=R.response.headers.get("Location");Ye(Ce,"Expected a Location header on the redirect Response"),Ce=Em(Ce,new URL(j.url),p);let ve=Xa(O.location,Ce,{_isRedirect:!0});if(i){let qe=!1;if(R.response.headers.has("X-Remix-Reload-Document"))qe=!0;else if(tf.test(Ce)){const Je=e.history.createURL(Ce);qe=Je.origin!==n.location.origin||Qo(Je.pathname,p)==null}if(qe){ye?n.location.replace(Ce):n.location.assign(Ce);return}}fe=null;let me=ye===!0||R.response.headers.has("X-Remix-Replace")?Ot.Replace:Ot.Push,{formMethod:Fe,formAction:Ve,formEncType:Tt}=O.navigation;!ue&&!Ne&&Fe&&Ve&&Tt&&(ue=Lm(O.navigation));let Ke=ue||Ne;if(Sw.has(R.response.status)&&Ke&&ur(Ke.formMethod))await gt(me,ve,{submission:yt({},Ke,{formAction:Ce}),preventScrollReset:Pe||de,enableViewTransition:z?I:void 0});else{let qe=td(ve,ue);await gt(me,ve,{overrideNavigation:qe,fetcherSubmission:Ne,preventScrollReset:Pe||de,enableViewTransition:z?I:void 0})}}async function un(j,R,z,K,ue,Ne){let Pe,ye={};try{Pe=await Pw(v,j,R,z,K,ue,Ne,u,s)}catch(Ce){return K.forEach(ve=>{ye[ve.route.id]={type:at.error,error:Ce}}),ye}for(let[Ce,ve]of Object.entries(Pe))if(Iw(ve)){let me=ve.result;ye[Ce]={type:at.redirect,response:Dw(me,z,Ce,ue,p,C.v7_relativeSplatPath)}}else ye[Ce]=await Lw(ve);return ye}async function Ft(j,R,z,K,ue){let Ne=j.matches,Pe=un("loader",j,ue,z,R,null),ye=Promise.all(K.map(async me=>{if(me.matches&&me.match&&me.controller){let Ve=(await un("loader",j,Do(e.history,me.path,me.controller.signal),[me.match],me.matches,me.key))[me.match.route.id];return{[me.key]:Ve}}else return Promise.resolve({[me.key]:{type:at.error,error:wn(404,{pathname:me.path})}})})),Ce=await Pe,ve=(await ye).reduce((me,Fe)=>Object.assign(me,Fe),{});return await Promise.all([$w(R,Ce,ue.signal,Ne,j.loaderData),zw(R,ve,K)]),{loaderResults:Ce,fetcherResults:ve}}function cn(){he=!0,xe.push(...$n()),Se.forEach((j,R)=>{G.has(R)&&be.add(R),dn(R)})}function Lt(j,R,z){z===void 0&&(z={}),O.fetchers.set(j,R),lt({fetchers:new Map(O.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function bt(j,R,z,K){K===void 0&&(K={});let ue=Gi(O.matches,R);Et(j),lt({errors:{[ue.route.id]:z},fetchers:new Map(O.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function Gt(j){return se.set(j,(se.get(j)||0)+1),re.has(j)&&re.delete(j),O.fetchers.get(j)||_w}function Et(j){let R=O.fetchers.get(j);G.has(j)&&!(R&&R.state==="loading"&&U.has(j))&&dn(j),Se.delete(j),U.delete(j),oe.delete(j),C.v7_fetcherPersist&&re.delete(j),be.delete(j),O.fetchers.delete(j)}function Nn(j){let R=(se.get(j)||0)-1;R<=0?(se.delete(j),re.add(j),C.v7_fetcherPersist||Et(j)):se.set(j,R),lt({fetchers:new Map(O.fetchers)})}function dn(j){let R=G.get(j);R&&(R.abort(),G.delete(j))}function Zr(j){for(let R of j){let z=Gt(R),K=wi(z.data);O.fetchers.set(R,K)}}function Qr(){let j=[],R=!1;for(let z of oe){let K=O.fetchers.get(z);Ye(K,"Expected fetcher: "+z),K.state==="loading"&&(oe.delete(z),j.push(z),R=!0)}return Zr(j),R}function Er(j){let R=[];for(let[z,K]of U)if(K0}function Nr(j,R){let z=O.blockers.get(j)||Ra;return Q.get(j)!==R&&Q.set(j,R),z}function kr(j){O.blockers.delete(j),Q.delete(j)}function Fn(j,R){let z=O.blockers.get(j)||Ra;Ye(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 K=new Map(O.blockers);K.set(j,R),lt({blockers:K})}function Kn(j){let{currentLocation:R,nextLocation:z,historyAction:K}=j;if(Q.size===0)return;Q.size>1&&Ho(!1,"A router only supports one blocker at a time");let ue=Array.from(Q.entries()),[Ne,Pe]=ue[ue.length-1],ye=O.blockers.get(Ne);if(!(ye&&ye.state==="proceeding")&&Pe({currentLocation:R,nextLocation:z,historyAction:K}))return Ne}function kn(j){let R=wn(404,{pathname:j}),z=f||d,{matches:K,route:ue}=Pm(z);return $n(),{notFoundMatches:K,route:ue,error:R}}function $n(j){let R=[];return J.forEach((z,K)=>{(!j||j(K))&&(z.cancel(),R.push(K),J.delete(K))}),R}function Kr(j,R,z){if(b=j,T=R,_=z||null,!M&&O.navigation===ed){M=!0;let K=Yn(O.location,O.matches);K!=null&<({restoreScrollPosition:K})}return()=>{b=null,T=null,_=null}}function bi(j,R){return _&&_(j,R.map(K=>ew(K,O.loaderData)))||j.key}function Yr(j,R){if(b&&T){let z=bi(j,R);b[z]=T()}}function Yn(j,R){if(b){let z=bi(j,R),K=b[z];if(typeof K=="number")return K}return null}function zn(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 hr(j,R,z,K){if(!w)return{type:"success",matches:j};let ue=j;for(;;){let Ne=f==null,Pe=f||d,ye=u;try{await w({signal:z,path:R,matches:ue,fetcherKey:K,patch:(me,Fe)=>{z.aborted||bm(me,Fe,Pe,ye,s)}})}catch(me){return{type:"error",error:me,partialMatches:ue}}finally{Ne&&!z.aborted&&(d=[...d])}if(z.aborted)return{type:"aborted"};let Ce=Wi(Pe,R,p);if(Ce)return{type:"success",matches:Ce};let ve=Al(Pe,R,p,!0);if(!ve||ue.length===ve.length&&ue.every((me,Fe)=>me.route.id===ve[Fe].route.id))return{type:"success",matches:null};ue=ve}}function Ei(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],lt({}))}return ce={get basename(){return p},get future(){return C},get state(){return O},get routes(){return d},get window(){return n},initialize:tt,subscribe:Wt,enableScrollRestoration:Kr,navigate:ct,fetch:sn,revalidate:ht,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:Gt,deleteFetcher:Nn,dispose:tn,getBlocker:Nr,deleteBlocker:kr,patchRoutes:Tr,_internalFetchControllers:G,_internalActiveDeferreds:J,_internalSetRoutes:Ei},ce}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,v;if(d){p=[];for(let C of n)if(p.push(C),C.route.id===d){v=C;break}}else p=n,v=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===".")&&v){let C=rf(w.search);if(v.route.index&&!C)w.search=w.search?w.search.replace(/^\?/,"?index&"):"?index";else if(!v.route.index&&C){let m=new URLSearchParams(w.search),x=m.getAll("index");m.delete("index"),x.filter(_=>_).forEach(_=>m.append("index",_));let b=m.toString();w.search=b?"?"+b:""}}return o&&i!=="/"&&(w.pathname=w.pathname==="/"?i:Hr([i,w.pathname])),Xi(w)}function xm(e,n,i,o){if(!o||!Nw(o))return{path:i};if(o.formMethod&&!Fw(o.formMethod))return{path:i,error:wn(405,{method:o.formMethod})};let s=()=>({path:i,error:wn(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(!ur(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,b)=>{let[_,T]=b;return""+x+_+"="+T+` +`},""):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(!ur(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()}}}Ye(typeof FormData=="function","FormData is not available in this environment");let p,v;if(o.formData)p=Ed(o.formData),v=o.formData;else if(o.body instanceof FormData)p=Ed(o.body),v=o.body;else if(o.body instanceof URLSearchParams)p=o.body,v=Nm(p);else if(o.body==null)p=new URLSearchParams,v=new FormData;else try{p=new URLSearchParams(o.body),v=Nm(p)}catch{return s()}let w={formMethod:d,formAction:f,formEncType:o&&o.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(ur(w.formMethod))return{path:i,submission:w};let C=Si(i);return n&&C.search&&rf(C.search)&&p.append("index",""),C.search="?"+p,{path:Xi(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,v,w,C,m,x,b,_){let T=_?Rn(_[1])?_[1].error:_[1].data:void 0,M=e.createURL(n.location),D=e.createURL(s),$=i;u&&n.errors?$=Cm(i,Object.keys(n.errors)[0],!0):_&&Rn(_[1])&&($=Cm(i,_[0]));let V=_?_[1].statusCode:void 0,Z=d&&V&&V>=400,ce=$.filter((te,de)=>{let{route:fe}=te;if(fe.lazy)return!0;if(fe.loader==null)return!1;if(u)return bd(fe,n.loaderData,n.errors);if(kw(n.loaderData,n.matches[de],te)||p.some(W=>W===te.route.id))return!0;let I=n.matches[de],H=te;return _m(te,yt({currentUrl:M,currentParams:I.params,nextUrl:D,nextParams:H.params},o,{actionResult:T,actionStatus:V,defaultShouldRevalidate:Z?!1:f||M.pathname+M.search===D.pathname+D.search||M.search!==D.search||Gg(I,H)}))}),O=[];return C.forEach((te,de)=>{if(u||!i.some(ne=>ne.route.id===te.routeId)||w.has(de))return;let fe=Wi(x,te.path,b);if(!fe){O.push({key:de,routeId:te.routeId,path:te.path,matches:null,match:null,controller:null});return}let I=n.fetchers.get(de),H=Ga(fe,te.path),W=!1;m.has(de)?W=!1:v.has(de)?(v.delete(de),W=!0):I&&I.state!=="idle"&&I.data===void 0?W=f:W=_m(H,yt({currentUrl:M,currentParams:n.matches[n.matches.length-1].params,nextUrl:D,nextParams:i[i.length-1].params},o,{actionResult:T,actionStatus:V,defaultShouldRevalidate:Z?!1:f})),W&&O.push({key:de,routeId:te.routeId,path:te.path,matches:fe,match:H,controller:new AbortController})}),[ce,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 v=o[e];Ye(v,"No route found to patch children into: routeId = "+e),v.children||(v.children=[]),d=v.children}else d=i;let f=n.filter(v=>!d.some(w=>Zg(v,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];Ye(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,yt({},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,v){let w=u.map(x=>x.route.lazy?Tw(x.route,p,f):void 0),C=u.map((x,b)=>{let _=w[b],T=s.some(D=>D.route.id===x.route.id);return yt({},x,{shouldLoad:T,resolve:async D=>(D&&o.method==="GET"&&(x.route.lazy||x.route.loader)&&(T=!0),T?Mw(n,o,x,_,D,v):Promise.resolve({type:at.data,result:void 0}))})}),m=await e({matches:C,request:o,params:u[0].params,fetcherKey:d,context:v});try{await Promise.all(w)}catch{}return m}async function Mw(e,n,i,o,s,u){let d,f,p=v=>{let w,C=new Promise((b,_)=>w=_);f=()=>w(),n.signal.addEventListener("abort",f);let m=b=>typeof v!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+i.route.id+"]"))):v({request:n,params:i.params,context:u},...b!==void 0?[b]:[]),x=(async()=>{try{return{type:"data",result:await(s?s(_=>m(_)):m())}}catch(b){return{type:"error",result:b}}})();return Promise.race([x,C])};try{let v=i.route[e];if(o)if(v){let w,[C]=await Promise.all([p(v).catch(m=>{w=m}),o]);if(w!==void 0)throw w;d=C}else if(await o,v=i.route[e],v)d=await p(v);else if(e==="action"){let w=new URL(n.url),C=w.pathname+w.search;throw wn(405,{method:n.method,pathname:C,routeId:i.route.id})}else return{type:at.data,result:void 0};else if(v)d=await p(v);else{let w=new URL(n.url),C=w.pathname+w.search;throw wn(404,{pathname:C})}Ye(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(v){return{type:at.error,result:v}}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:at.error,error:m}}return i===at.error?{type:at.error,error:new ql(n.status,n.statusText,C),statusCode:n.status,headers:n.headers}:{type:at.data,data:C,statusCode:n.status,headers:n.headers}}if(i===at.error){if(Mm(n)){var o,s;if(n.data instanceof Error){var u,d;return{type:at.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:at.error,error:new ql(((o=n.init)==null?void 0:o.status)||500,void 0,n.data),statusCode:Ja(n)?n.status:void 0,headers:(s=n.init)!=null&&s.headers?new Headers(n.init.headers):void 0}}return{type:at.error,error:n,statusCode:Ja(n)?n.status:void 0}}if(Aw(n)){var f,p;return{type:at.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 v,w;return{type:at.data,data:n.data,statusCode:(v=n.init)==null?void 0:v.status,headers:(w=n.init)!=null&&w.headers?new Headers(n.init.headers):void 0}}return{type:at.data,data:n}}function Dw(e,n,i,o,s,u){let d=e.headers.get("Location");if(Ye(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 Do(e,n,i,o){let s=e.createURL(Qg(n)).toString(),u={signal:i};if(o&&ur(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,v={},w=i&&Rn(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(Ye(!Ki(x),"Cannot handle redirect results in processLoaderData"),Rn(x)){let b=x.error;w!==void 0&&(b=w,w=void 0),d=d||{};{let _=Gi(e,m);d[_.route.id]==null&&(d[_.route.id]=b)}u[m]=void 0,p||(p=!0,f=Ja(x.error)?x.error.status:500),x.headers&&(v[m]=x.headers)}else xi(x)?(o.set(m,x.deferredData),u[m]=x.deferredData.data,x.statusCode!=null&&x.statusCode!==200&&!p&&(f=x.statusCode),x.headers&&(v[m]=x.headers)):(u[m]=x.data,x.statusCode&&x.statusCode!==200&&!p&&(f=x.statusCode),x.headers&&(v[m]=x.headers))}),w!==void 0&&i&&(d={[i[0]]:w},u[i[0]]=void 0),{loaderData:u,errors:d,statusCode:f||200,loaderHeaders:v}}function km(e,n,i,o,s,u,d){let{loaderData:f,errors:p}=Ow(n,i,o,d);return s.forEach(v=>{let{key:w,match:C,controller:m}=v,x=u[w];if(Ye(x,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Rn(x)){let b=Gi(e.matches,C?.route.id);p&&p[b.route.id]||(p=yt({},p,{[b.route.id]:x.error})),e.fetchers.delete(w)}else if(Ki(x))Ye(!1,"Unhandled fetcher revalidation redirect");else if(xi(x))Ye(!1,"Unhandled fetcher deferred data");else{let b=wi(x.data);e.fetchers.set(w,b)}}),{loaderData:f,errors:p}}function Tm(e,n,i,o){let s=yt({},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?Rn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Gi(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 wn(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(Ki(s))return{key:o,result:s}}}function Qg(e){let n=typeof e=="string"?Si(e):e;return Xi(yt({},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 xi(e){return e.type===at.deferred}function Rn(e){return e.type===at.error}function Ki(e){return(e&&e.type)===at.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 ur(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(!v)continue;let w=o.find(m=>m.route.id===v.route.id),C=w!=null&&!Gg(w,v)&&(s&&s[v.route.id])!==void 0;xi(p)&&C&&await nf(p,i,!1).then(m=>{m&&(n[f]=m)})}}async function zw(e,n,i){for(let o=0;ov?.route.id===u)&&xi(f)&&(Ye(d,"Expected an AbortController for revalidating fetcher deferred result"),await nf(f,d.signal,!0).then(v=>{v&&(n[s]=v)}))}}async function nf(e,n,i){if(i===void 0&&(i=!1),!await e.deferredData.resolveData(n)){if(i)try{return{type:at.data,data:e.deferredData.unwrappedData}}catch(s){return{type:at.error,error:s}}return{type:at.data,data:e.deferredData.data}}}function rf(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function Ga(e,n){let i=typeof n=="string"?Si(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 Ia(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 wi(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}),y.useCallback(function(v,w){if(w===void 0&&(w={}),!f.current)return;if(typeof v=="number"){o.go(v);return}let C=ef(v,JSON.parse(d),u,w.relative==="path");e==null&&n!=="/"&&(C.pathname=C.pathname==="/"?n:Hr([n,C.pathname])),(w.replace?o.replace:o.push)(C,w.state,w)},[n,o,d,u,e])}const Gw=y.createContext(null);function Zw(e){let n=y.useContext(Wr).outlet;return n&&y.createElement(Gw.Provider,{value:e},n)}function bP(){let{matches:e}=y.useContext(Wr),n=e[e.length-1];return n?n.params:{}}function e0(e,n){let{relative:i}=n===void 0?{}:n,{future:o}=y.useContext(no),{matches:s}=y.useContext(Wr),{pathname:u}=Ko(),d=JSON.stringify(Jd(s,o.v7_relativeSplatPath));return y.useMemo(()=>ef(e,JSON.parse(d),u,i==="path"),[e,d,u,i])}function Qw(e,n,i,o){ds()||Ye(!1);let{navigator:s}=y.useContext(no),{matches:u}=y.useContext(Wr),d=u[u.length-1],f=d?d.params:{};d&&d.pathname;let p=d?d.pathnameBase:"/";d&&d.route;let v=Ko(),w;w=v;let C=w.pathname||"/",m=C;if(p!=="/"){let _=p.replace(/^\//,"").split("/");m="/"+C.replace(/^\//,"").split("/").slice(_.length).join("/")}let x=Wi(e,{pathname:m});return ex(x&&x.map(_=>Object.assign({},_,{params:Object.assign({},f,_.params),pathname:Hr([p,s.encodeLocation?s.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?p:Hr([p,s.encodeLocation?s.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),u,i,o)}function Kw(){let e=ix(),n=Ja(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 y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},n),i?y.createElement("pre",{style:s},i):null,null)}const Yw=y.createElement(Kw,null);class Xw extends y.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?y.createElement(Wr.Provider,{value:this.props.routeContext},y.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=y.useContext(au);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),y.createElement(Wr.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||Ye(!1),d=d.slice(0,Math.min(d.length,w+1))}let p=!1,v=-1;if(i&&o&&o.v7_partialHydration)for(let w=0;w=0?d=d.slice(0,v+1):d=[d[0]];break}}}return d.reduceRight((w,C,m)=>{let x,b=!1,_=null,T=null;i&&(x=f&&C.route.id?f[C.route.id]:void 0,_=C.route.errorElement||Yw,p&&(v<0&&m===0?(ax("route-fallback"),b=!0,T=null):v===m&&(b=!0,T=C.route.hydrateFallbackElement||null)));let M=n.concat(d.slice(0,m+1)),D=()=>{let $;return x?$=_:b?$=T:C.route.Component?$=y.createElement(C.route.Component,null):C.route.element?$=C.route.element:$=w,y.createElement(Jw,{match:C,routeContext:{outlet:w,matches:M,isDataRoute:i!=null},children:$})};return i&&(C.route.ErrorBoundary||C.route.errorElement||m===0)?y.createElement(Xw,{location:i.location,revalidation:i.revalidation,component:_,error:x,children:D(),routeContext:{outlet:null,matches:M,isDataRoute:!0}}):D()},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=y.useContext(au);return n||Ye(!1),n}function nx(e){let n=y.useContext(Yg);return n||Ye(!1),n}function rx(e){let n=y.useContext(Wr);return n||Ye(!1),n}function r0(e){let n=rx(),i=n.matches[n.matches.length-1];return i.route.id||Ye(!1),i.route.id}function ix(){var e;let n=y.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=y.useRef(!1);return Jg(()=>{i.current=!0}),y.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;ds()&&Ye(!1);let p=n.replace(/^\/*/,"/"),v=y.useMemo(()=>({basename:p,navigator:u,static:d,future:Wl({v7_relativeSplatPath:!1},f)}),[p,f,u,d]);typeof o=="string"&&(o=Si(o));let{pathname:w="/",search:C="",hash:m="",state:x=null,key:b="default"}=o,_=y.useMemo(()=>{let T=Qo(w,p);return T==null?null:{location:{pathname:T,search:C,hash:m,state:x,key:b},navigationType:s}},[p,w,C,m,x,b,s]);return _==null?null:y.createElement(no.Provider,{value:v},y.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:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:y.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 es(){return es=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:es({},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=es({},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=y.createContext({isTransitioning:!1}),Cx=y.createContext(new Map),Sx="startTransition",Om=$1[Sx],_x="flushSync",Rm=Z1[_x];function bx(e){Om?Om(e):e()}function Aa(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]=y.useState(i.state),[d,f]=y.useState(),[p,v]=y.useState({isTransitioning:!1}),[w,C]=y.useState(),[m,x]=y.useState(),[b,_]=y.useState(),T=y.useRef(new Map),{v7_startTransition:M}=o||{},D=y.useCallback(te=>{M?bx(te):te()},[M]),$=y.useCallback((te,de)=>{let{deletedFetchers:fe,flushSync:I,viewTransitionOpts:H}=de;te.fetchers.forEach((ne,he)=>{ne.data!==void 0&&T.current.set(he,ne.data)}),fe.forEach(ne=>T.current.delete(ne));let W=i.window==null||i.window.document==null||typeof i.window.document.startViewTransition!="function";if(!H||W){I?Aa(()=>u(te)):D(()=>u(te));return}if(I){Aa(()=>{m&&(w&&w.resolve(),m.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let ne=i.window.document.startViewTransition(()=>{Aa(()=>u(te))});ne.finished.finally(()=>{Aa(()=>{C(void 0),x(void 0),f(void 0),v({isTransitioning:!1})})}),Aa(()=>x(ne));return}m?(w&&w.resolve(),m.skipTransition(),_({state:te,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(f(te),v({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[i.window,m,w,T,D]);y.useLayoutEffect(()=>i.subscribe($),[i,$]),y.useEffect(()=>{p.isTransitioning&&!p.flushSync&&C(new Ex)},[p]),y.useEffect(()=>{if(w&&d&&i.window){let te=d,de=w.promise,fe=i.window.document.startViewTransition(async()=>{D(()=>u(te)),await de});fe.finished.finally(()=>{C(void 0),x(void 0),f(void 0),v({isTransitioning:!1})}),x(fe)}},[D,d,w,i.window]),y.useEffect(()=>{w&&d&&s.location.key===d.location.key&&w.resolve()},[w,m,s.location,d]),y.useEffect(()=>{!p.isTransitioning&&b&&(f(b.state),v({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),_(void 0))},[p.isTransitioning,b]),y.useEffect(()=>{},[]);let V=y.useMemo(()=>({createHref:i.createHref,encodeLocation:i.encodeLocation,go:te=>i.navigate(te),push:(te,de,fe)=>i.navigate(te,{state:de,preventScrollReset:fe?.preventScrollReset}),replace:(te,de,fe)=>i.navigate(te,{replace:!0,state:de,preventScrollReset:fe?.preventScrollReset})}),[i]),Z=i.basename||"/",ce=y.useMemo(()=>({router:i,navigator:V,static:!1,basename:Z}),[i,V,Z]),O=y.useMemo(()=>({v7_relativeSplatPath:i.future.v7_relativeSplatPath}),[i.future.v7_relativeSplatPath]);return y.useEffect(()=>sx(o,i.future),[o,i.future]),y.createElement(y.Fragment,null,y.createElement(au.Provider,{value:ce},y.createElement(Yg.Provider,{value:s},y.createElement(Cx.Provider,{value:T.current},y.createElement(xx.Provider,{value:p},y.createElement(ux,{basename:Z,location:s.location,navigationType:s.historyAction,navigator:V,future:O},s.initialized||i.future.v7_partialHydration?y.createElement(kx,{routes:i.routes,future:i.future,state:s}):n))))),null)}const kx=y.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=y.forwardRef(function(n,i){let{onClick:o,relative:s,reloadDocument:u,replace:d,state:f,target:p,to:v,preventScrollReset:w,viewTransition:C}=n,m=dx(n,mx),{basename:x}=y.useContext(no),b,_=!1;if(typeof v=="string"&&Px.test(v)&&(b=v,jx))try{let $=new URL(window.location.href),V=v.startsWith("//")?new URL($.protocol+v):new URL(v),Z=Qo(V.pathname,x);V.origin===$.origin&&Z!=null?v=Z+V.search+V.hash:_=!0}catch{}let T=qw(v,{relative:s}),M=Lx(v,{replace:d,state:f,target:p,preventScrollReset:w,relative:s,viewTransition:C});function D($){o&&o($),$.defaultPrevented||M($)}return y.createElement("a",es({},m,{href:b||T,onClick:_||u?o:D,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=fs(),v=Ko(),w=e0(e,{relative:d});return y.useCallback(C=>{if(hx(C,i)){C.preventDefault();let m=o!==void 0?o:Xi(v)===Xi(w);p(e,{replace:m,state:s,preventScrollReset:u,relative:d,viewTransition:f})}},[v,p,w,o,s,i,e,u,d,f])}function Dx(e){let n=y.useRef(Nd(e)),i=y.useRef(!1),o=Ko(),s=y.useMemo(()=>px(o.search,i.current?null:n.current),[o.search]),u=fs(),d=y.useCallback((f,p)=>{const v=Nd(typeof f=="function"?f(s):f);i.current=!0,u("?"+v,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 hs(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=y.createContext(Ax),Fx=y.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=y.createContext({setShowDropdown:()=>{console.warn("DropdownMenuContext::setShowDropdown called without a provider")}}),i0=y.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")}});y.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,...v,children:n})}function Fa(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 Sr(e){const[n]=y.useState(()=>`_${qx()}`),{spacing:i,variant:o="md",mode:s="gap",inner:u}=e;return y.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 v;return s==="gap"||s==="grid-gap"?v=`gap: ${f};`:s==="padding-h"?v=`padding-left: ${f}; padding-right: ${f};`:s==="padding-v"&&(v=`padding-top: ${f}; padding-bottom: ${f};`),p.sheet.insertRule(`.${n} { ${v} }`),()=>{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",$a={basicLayout:Qx,withWrap:Kx,iconsContainer:Yx,childrenContainer:Xx,actionsContainer:Jx};function ps(e){const{className:n,icons:i,children:o,actions:s,iconsContainerClassName:u,childrenContainerClassName:d,actionsContainerClassName:f,withoutWrap:p,spacing:v="default",variant:w="md"}=e,C=Sr({spacing:v,variant:w,mode:"gap"}),m=Sr({spacing:v,variant:w,mode:"gap",inner:!0}),x=Oe($a.basicLayout,!p&&$a.withWrap,C,n),b=$e(i)&&$e(o)&&$e(s)?null:g.jsxs(g.Fragment,{children:[i&&g.jsx("div",{className:Oe($a.iconsContainer,m,u),children:i}),g.jsx("div",{className:Oe($a.childrenContainer,m,d),children:o}),s&&g.jsx("div",{className:Oe($a.actionsContainer,m,f),children:s})]});return{containerClassName:x,content:b}}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:v="primary",spacing:w="default",ellipsize:C}=e,m=Oe(Vt.button,yC[v],wC[w],d&&Vt.disabled,C&&Vt.ellipsized,u),x=y.useMemo(()=>C?g.jsx("div",{className:Vt.overflowWrapper,children:o}):o,[C,o]),{content:b,containerClassName:_}=ps({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:b,disabled:d}}function He(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:p,name:v,onClick:w,variant:C,type:m="button",spacing:x,...b}=e,_=y.useCallback((M,D)=>{w&&w(M,D)},[w]),T=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:v,type:m,onClick:_,...b,...T})}const CC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#alert-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"alert-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),o0=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#analysis_svg__a)"},y.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"}),y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"analysis_svg__a"},y.createElement("path",{d:"M0 0h56v56H0z"})))),SC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#arrow-down-small-fill_svg__a)"},y.createElement("path",{d:"m12 16-6-6h12l-6 6Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"arrow-down-small-fill_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),_C=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#arrow-right-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"arrow-right-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),bC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#arrow-up-small-fill_svg__a)"},y.createElement("path",{d:"m12 8 6 6H6l6-6Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"arrow-up-small-fill_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),EC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#check-double-fill_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"check-double-fill_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),NC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#check-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"check-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),kC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#checkbox-blank-circle-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"checkbox-blank-circle-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),TC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#checkbox-blank-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"checkbox-blank-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),jC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#checkbox-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"checkbox-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),PC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#chevron-left-line_svg__a)"},y.createElement("path",{d:"M11.05 12 16 7.05l-1.413-1.414L8.223 12l6.364 6.364L16 16.95 11.05 12Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"chevron-left-line_svg__a"},y.createElement("path",{d:"M0 24h24V0H0z"})))),MC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#chevron-right-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"chevron-right-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),LC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.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})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#delete-bin-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"delete-bin-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),DC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.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"}),y.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})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#menu-line_svg__a)"},y.createElement("path",{d:"M3 4h18v2H3V4Zm0 7h18v2H3v-2Zm0 7h18v2H3v-2Z"})),y.createElement("defs",null,y.createElement("clipPath",{id:"menu-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),RC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#question-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"question-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),IC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#radio-button-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"radio-button-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),AC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#search-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"search-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),FC=({title:e,titleId:n,...i})=>y.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?y.createElement("title",{id:n},e):null,y.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})=>y.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?y.createElement("title",{id:n},e):null,y.createElement("g",{clipPath:"url(#upload-cloud-line_svg__a)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"upload-cloud-line_svg__a"},y.createElement("path",{d:"M0 0h24v24H0z"})))),$C="_spinner_50bgg_1",zC="_spinner-bounce_50bgg_9",wl={spinner:$C,spinnerBounce:zC};function Gl(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",gi={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:v,erroredTitle:w,erroredDescription:C}=e,m=Mt(v?w:u),x=Mt(v?C:d);return g.jsxs("div",{className:Oe(gi.message,o==="error"&&gi.errored,p&&gi.compact,n),children:[(s||i)&&g.jsxs("div",{className:gi.icon,children:[i&&g.jsx(Gl,{className:gi.spinner}),!i&&s]}),m&&g.jsx("div",{className:gi.title,children:v?w:u}),x&&g.jsx("div",{className:gi.description,children:d}),f&&g.jsx("div",{className:gi.actions,children:f})]})}function s0(e){const{strings:n,registerNamespace:i}=y.useContext(i0);return y.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:v,pendingMessage:w,errorMessage:C}=e,m=s0(KC),x=y.useMemo(()=>o?w??m.messageTitleFetching:f?C??m.messageTitleDataFailedToFetch:u?v??m.messageTitleFilteredDataNotAvailable:d?p??m.messageTitleDataNotAvailable:null,[d,o,u,f,p,v,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",Za={filterBar:JC,gridWithActions:eS,grid:tS,actions:nS};function zm(e){const{grid:n,actions:i,spacing:o="default"}=e,s=Sr({spacing:o,mode:"gap"}),u=Sr({spacing:o,mode:"gap",inner:!0}),d=Sr({spacing:o,mode:"grid-gap"});return $e(n)&&$e(i)?null:g.jsxs("div",{className:Oe(Za.gridWithActions,s),children:[g.jsx("div",{className:Oe(Za.grid,d),children:n}),Mt(i)&&g.jsx("div",{className:Oe(Za.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(Za.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:Za.filterPreview,children:d})]})}function iS(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:p,withoutWrap:v}=e,{content:w,containerClassName:C}=ps({actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:p,withoutWrap:v});return g.jsx("div",{className:C,children:w})}function oS(e,n,i){const[o,s]=y.useState(()=>e);return y.useEffect(()=>{const u=setTimeout(()=>{s(e)},300);return()=>{clearTimeout(u)}},[e,n,i]),o}function aS(e,n=!1){const[i,o]=y.useState(()=>{var s;const u=(s=e.current)==null?void 0:s.getBoundingClientRect();return{width:u?.width??0,height:u?.height??0}});return y.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",Br={heading:sS,levelOne:lS,levelTwo:uS,levelThree:cS,levelFour:dS,levelFive:fS,levelSix:hS,ellipsizedText:pS,ellipsized:mS},gS={1:Br.levelOne,2:Br.levelTwo,3:Br.levelThree,4:Br.levelFour,5:Br.levelFive,6:Br.levelSix};function Zi(e){const{className:n,level:i=3,children:o,ellipsize:s}=e,u=`h${i}`,d=y.useRef(null),f=aS(d);return o?g.jsxs(u,{className:Oe(Br.heading,s&&Br.ellipsized,gS[i],n),ref:d,children:[s&&g.jsx("div",{className:Br.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:v,headingLevel:w,headingDescription:C,headingDescriptionContainerClassName:m,icons:x,iconsContainerClassName:b,headingSectionClassName:_,headingContainerClassName:T,wrapHeadingContent:M=!1,spacing:D="default"}=e,$=y.useMemo(()=>$e(p)&&$e(C)?null:g.jsxs(g.Fragment,{children:[g.jsx(Zi,{level:w,className:v,ellipsize:f,children:p}),C&&g.jsx("div",{className:m,children:C})]}),[p,f,C,v,m,w]),{content:V,containerClassName:Z}=ps({actions:n,actionsContainerClassName:i,children:$,childrenContainerClassName:T,className:_,icons:x,iconsContainerClassName:b,withoutWrap:!M,spacing:D,variant:"sm"}),ce=Sr({spacing:D,inner:!0});return!V&&!o?null:g.jsxs("div",{className:Oe(yS.header,ce,u),ref:d,children:[V&&g.jsx("div",{className:Z,children:V}),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 cr(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,containerRef:d,contentViewType:f="default",ellipsizeHeading:p,filters:v,filterActions:w,footerActions:C,footerActionsContainerClassName:m,footerClassName:x,footerContent:b,footerContentClassName:_,footerIcons:T,headerClassName:M,headerDescription:D,withCenteredHeaderDescription:$,headerDescriptionContainerClassName:V,headerElementRef:Z,heading:ce,headingClassName:O,headingContainerClassName:te,headingDescription:de,headingDescriptionContainerClassName:fe,headingLevel:I,headingSectionClassName:H,icons:W,iconsContainerClassName:ne,numPreferredGridContentColumns:he=2,spacing:xe="default",withHeaderBorder:be=!1,withFooterBorder:G=!1,withBorderAndHeaderBackground:le=!1,withOverflowInContent:N=!1,withInternalPadding:U=!1,withoutWrapInHeading:oe=!1,withoutWrapInFooter:Se=!1,pending:se=!1,overlayPending:re=!1,empty:J=!1,errored:Q=!1,filtered:Y=!1,compactMessage:tt=!1,errorMessage:tn,emptyMessage:Wt,pendingMessage:lt,filteredEmptyMessage:wt}=e,ct=T||b||C,ht=ce||n||W||D||de,gt=Sr({spacing:xe}),xt=Sr({spacing:xe,mode:"padding-h"}),_t=Sr({spacing:xe,mode:"padding-v"}),nn=Sr({spacing:xe,mode:"gap",inner:!0}),bn=y.useMemo(()=>$e(D)?null:$?g.jsx("div",{className:Ht.centeredDescription,children:D}):D,[D,$]);return!ht&&!v&&!o&&!ct&&!J&&!se&&!Q&&!Y?null:g.jsxs("div",{ref:d,className:Oe(Ht.container,!le&>,U&&_t,N&&Ht.withOverflowInContent,le&&Ht.withBorderAndHeaderBackground,f==="grid"&&Ht.withGridView,f==="grid"&&AS[he],f==="vertical"&&Ht.withVerticalView,u),children:[ht&&g.jsx(wS,{actions:n,className:Oe(Ht.header,le&&_t,(U||le)&&xt,M),elementRef:Z,actionsContainerClassName:i,ellipsizeHeading:p,heading:ce,headingLevel:I,icons:W,iconsContainerClassName:ne,childrenContainerClassName:Oe($&&Ht.centeredHeaderDescriptionContainer,V),headingSectionClassName:H,headingClassName:O,headingContainerClassName:te,wrapHeadingContent:!oe,headingDescription:de,headingDescriptionContainerClassName:fe,spacing:xe,children:bn}),be&&g.jsx("div",{className:Ht.border}),g.jsx(rS,{filters:v,filterActions:w,spacing:xe,className:Oe(U&&xt)}),(o||J||se||Q||Y)&&g.jsxs("div",{className:Oe(Ht.content,f!=="default"&&nn,(U||le)&&xt,le&&_t,re&&se&&Ht.pendingOverlaid,s),children:[g.jsx(l0,{className:Ht.message,pending:se,filtered:Y,errored:Q,empty:J,compact:tt,overlayPending:re,emptyMessage:Wt,filteredEmptyMessage:wt,pendingMessage:lt,errorMessage:tn}),!J&&!Q&&(!se||re)&&o]}),ct&&G&&g.jsx("div",{className:Ht.border}),ct&&g.jsx(iS,{actions:C,icons:T,childrenContainerClassName:_,className:Oe(Ht.footer,U&&xt,le&&_t,x),actionsContainerClassName:m,spacing:xe,withoutWrap:Se,children:b})]})}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 Qa(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 Ur=function(e){return e.time="time",e.date="date",e}(Ur||{});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:Ur.time,value:d(o,s)},{value:d(s,u)}].filter(f=>f.value!==""):o===void 0?[{value:d(0,n)},{type:Ur.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!==""):nf.value!==""):[{value:d(0,o)},{type:Ur.time,value:d(o,s)},{value:d(s,n)},{type:Ur.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!=="")}function VS(e,n){return e.map(i=>{if(i.type===Ur.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",Fa(s+1,2)).replace("EEE",d).replace("dd",Fa(u,2)),f}if(i.type===Ur.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(),v={...i};return v.value=v.value.replace("hh",Fa(u,2)).replace("mm",Fa(f,2)).replace("ss",Fa(p,2)).replace("aaa",d),v}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 Ji(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 hs(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 Zl=parseFloat(getComputedStyle(document.documentElement).fontSize),WS=16*Zl,nd=.5*Zl,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:v}=u,w=Zl,C=w,m=window.innerWidth-w,x=window.innerWidth-2*w,b=ZS(u),_=d+p/2,T=lf(Mt(n)?n*Zl:p,WS,x);let M=_-T/2,D=_+T/2;if(Mm){const $=D-m-w;D=m,M-=$}o({content:{bottom:b.vertical==="bottom"?`${window.innerHeight-f+nd}px`:"unset",top:b.vertical==="top"?`${f+v+nd}px`:"unset",left:b.horizontal==="left"?`${M}px`:"unset",right:b.horizontal==="right"?`${window.innerWidth-D}px`:"unset"},pointer:{left:`${_}px`,top:b.vertical==="top"?`${f+v}px`:`${f-nd}px`,right:"unset",bottom:"unset"},width:`${D-M}px`,orientation:b})},[e,n]);return y.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",za={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:v,orientation:w}=QS(n,d);return g.jsxs(FS,{children:[g.jsx("div",{ref:i,style:{...f,width:v},className:Oe(za.popup,w.vertical==="bottom"&&za.topOrientation,s),children:o}),g.jsx("div",{className:Oe(za.pointer,w.vertical==="bottom"&&za.topOrientation,u),style:{...p},children:g.jsx("svg",{className:za.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]=y.useState(!1),d=y.useRef(),f=y.useRef(null);return y.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",$r={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:v,actions:w}=e,C=dr.useCallback(()=>{f&&f(n)},[n,f]),{content:m,containerClassName:x}=ps({icons:u?g.jsx(IC,{className:$r.icon}):g.jsx(kC,{className:$r.icon}),actions:w,childrenContainerClassName:$r.content,children:g.jsxs(g.Fragment,{children:[i,o&&g.jsx("div",{className:$r.description,children:o})]}),spacing:"compact",withoutWrap:!0});return g.jsxs("label",{className:Oe($r.radio,u&&$r.active,p&&$r.disabled,v&&$r.readOnly,x,s),children:[g.jsx("input",{className:$r.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:v,labelContainerClassName:w,hint:C,hintContainerClassName:m,listContainerClassName:x,error:b,renderer:_=h_,rendererParams:T,disabled:M,readOnly:D,required:$,onChange:V,withAsterisk:Z}=e,ce=dr.useCallback(de=>{D||(n&&e.onChange(de===u?void 0:de,o),!n&&Mt(de)&&V(de,o))},[u,e,V,n,D,o]),O=dr.useCallback((de,fe)=>{const I={inputName:o,label:f(fe),description:p?p(fe):void 0,name:de,onClick:ce,value:de===u,disabled:M,readOnly:D};return{...T?T(fe):void 0,...I}},[o,f,u,ce,T,M,D,p]),te=Z??$;return g.jsxs("div",{className:Oe(Cl.radioInput,M&&Cl.disabled,i),children:[g.jsx(d0,{className:w,disabled:M,required:te,children:v}),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:b})]})}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 Sn=function(){return Sn=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 br((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?br(o.parentNode.querySelectorAll(wf)).filter(function(f){return f===o}):[])},[])},sb=function(e){var n=e.querySelectorAll("[".concat(R_,"]"));return br(n).map(function(i){return Vo([i])}).reduce(function(i,o){return i.concat(o)},[])},xf=function(e,n){return br(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),br(e).filter(function(i){return j0(n,i)})},Cf=function(e,n,i){return yf(xf(Vo(e,i),n),!0,i)},ns=function(e,n){return yf(xf(Vo(e),n),!1)},lb=function(e,n){return xf(sb(e),n)},Yi=function(e,n){return e.shadowRoot?Yi(e.shadowRoot,n):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,n)?!0:br(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?Yi(s,n):!1}return Yi(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=eo(e);return n.filter(Boolean).reduce(function(i,o){var s=o.getAttribute(kd);return i.push.apply(i,s?ub(br(O0(o).querySelectorAll("[".concat(kd,'="').concat(s,'"]:not([').concat(y0,'="disabled"])')))):[o]),i},[])},cb=function(e){try{return e()}catch{return}},rs=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var n=e.activeElement;return n.shadowRoot?rs(n.shadowRoot):n instanceof HTMLIFrameElement&&cb(function(){return n.contentWindow.document})?rs(n.contentWindow.document):n}},db=function(e,n){return e===n},fb=function(e,n){return!!br(e.querySelectorAll("iframe")).some(function(i){return db(i,n)})},R0=function(e,n){return n===void 0&&(n=rs(E0(e).ownerDocument)),!n||n.dataset&&n.dataset.focusGuard?!1:Sf(e).some(function(i){return Yi(i,n)||fb(i,n)})},hb=function(e){e===void 0&&(e=document);var n=rs(e);return n?br(e.querySelectorAll("[".concat(O_,"]"))).some(function(i){return Yi(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 v=o!==void 0?i.indexOf(o):-1,w=s?i.indexOf(s):v,C=s?e.indexOf(s):-1;if(v===-1)return C!==-1?C:Pd;if(C===-1)return Pd;var m=v-w,x=i.indexOf(d),b=i.indexOf(f),_=mb(i),T=o!==void 0?_.indexOf(o):-1,M=T-(s?_.indexOf(s):v);if(!m&&C>=0||n.length===0)return C;var D=Qm(e,n[0]),$=Qm(e,n[n.length-1]);if(v<=x&&p&&Math.abs(m)>1)return $;if(v>=b&&p&&Math.abs(m)>1)return D;if(m&&Math.abs(M)>1)return C;if(v<=x)return $;if(v>b)return D;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=eo(e),s=eo(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 v=cd(u,p);v&&(!d||Yi(v,d)?d=v:d=cd(v,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=rs(eo(e).length>0?document:E0(e).ownerDocument),o=Sf(e).filter(jd),s=I0(i||e,e,o),u=new Map,d=ns(o,u),f=d.filter(function(b){var _=b.node;return jd(_)});if(f[0]){var p=ns([s],u).map(function(b){var _=b.node;return _}),v=yb(p,f),w=v.map(function(b){var _=b.node;return _}),C=v.filter(function(b){var _=b.tabIndex;return _>=0}).map(function(b){var _=b.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:v[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 Ba(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:Ba(i),parent:Ba(i.parentElement),left:Ba(i.previousElementSibling),right:Ba(i.nextElementSibling)}),i=i.parentElement;return{element:Ba(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,v=0,w=d;v-1&&(_.filter(function(M){var D=M.guard,$=M.node;return D&&$.dataset.focusAutoGuard}).forEach(function(M){var D=M.node;return D.removeAttribute("tabIndex")}),Jm(T,_.length,1,_),Jm(T,-1,-1,_))}}}return e},H0=function(e){Yl()&&e&&(e.stopPropagation(),e.preventDefault())},Nf=function(){return gf(Yl)},$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,is="just",gf(function(){is="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?(On=null,(!o||i.observed!==n.observed)&&n.onActivation(W0),Yl(),gf(Yl)):(Ub(),On=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){y.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(){y.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=y.useMemo(function(){return eE(s)},[s]);return y.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 Oo=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),v=!1,w=d>0,C=0,m=0;do{var x=Q0(e,f),b=x[0],_=x[1],T=x[2],M=_-T-u*b;(b||M)&&Z0(e,f)&&(C+=M,m+=b),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)&&(v=!0),v},_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,Ro=[];function mE(e){var n=y.useRef([]),i=y.useRef([0,0]),o=y.useRef(),s=y.useState(pE++)[0],u=y.useState(kf)[0],d=y.useRef(e);y.useEffect(function(){d.current=e},[e]),y.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(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),_.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=y.useCallback(function(_,T){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!d.current.allowPinchZoom;var M=_l(_),D=i.current,$="deltaX"in _?_.deltaX:D[0]-M[0],V="deltaY"in _?_.deltaY:D[1]-M[1],Z,ce=_.target,O=Math.abs($)>Math.abs(V)?"h":"v";if("touches"in _&&O==="h"&&ce.type==="range")return!1;var te=tg(O,ce);if(!te)return!0;if(te?Z=O:(Z=O==="v"?"h":"v",te=tg(O,ce)),!te)return!1;if(!o.current&&"changedTouches"in _&&($||V)&&(o.current=Z),!Z)return!0;var de=o.current||Z;return dE(de,T,_,de==="h"?$:V)},[]),p=y.useCallback(function(_){var T=_;if(!(!Ro.length||Ro[Ro.length-1]!==u)){var M="deltaY"in T?ng(T):_l(T),D=n.current.filter(function(Z){return Z.name===T.type&&(Z.target===T.target||T.target===Z.shadowParent)&&fE(Z.delta,M)})[0];if(D&&D.should){T.cancelable&&T.preventDefault();return}if(!D){var $=(d.current.shards||[]).map(rg).filter(Boolean).filter(function(Z){return Z.contains(T.target)}),V=$.length>0?f(T,$[0]):!d.current.noIsolation;V&&T.cancelable&&T.preventDefault()}}},[]),v=y.useCallback(function(_,T,M,D){var $={name:_,delta:T,target:M,should:D,shadowParent:gE(M)};n.current.push($),setTimeout(function(){n.current=n.current.filter(function(V){return V!==$})},1)},[]),w=y.useCallback(function(_){i.current=_l(_),o.current=void 0},[]),C=y.useCallback(function(_){v(_.type,ng(_),_.target,f(_,e.lockRef.current))},[]),m=y.useCallback(function(_){v(_.type,_l(_),_.target,f(_,e.lockRef.current))},[]);y.useEffect(function(){return Ro.push(u),e.setCallbacks({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:m}),document.addEventListener("wheel",p,Oo),document.addEventListener("touchmove",p,Oo),document.addEventListener("touchstart",w,Oo),function(){Ro=Ro.filter(function(_){return _!==u}),document.removeEventListener("wheel",p,Oo),document.removeEventListener("touchmove",p,Oo),document.removeEventListener("touchstart",w,Oo)}},[]);var x=e.removeScrollBar,b=e.inert;return y.createElement(y.Fragment,null,b?y.createElement(u,{styles:hE(s)}):null,x?y.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},Io=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),v=function(C){!C||f.has(C)||(f.add(C),v(C.parentNode))};s.forEach(v);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),b=x!==null&&x!=="false",_=(Io.get(m)||0)+1,T=(u.get(m)||0)+1;Io.set(m,_),u.set(m,T),d.push(m),_===1&&b&&bl.set(m,!0),T===1&&m.setAttribute(i,"true"),b||m.setAttribute(o,"true")}catch(M){console.error("aria-hidden: cannot operate on ",m,M)}})};return w(n),f.clear(),pd++,function(){d.forEach(function(C){var m=Io.get(C)-1,x=u.get(C)-1;Io.set(C,m),u.set(C,x),m||(bl.has(C)||C.removeAttribute(o),bl.delete(C)),x||C.removeAttribute(i)}),pd--,pd||(Io=new WeakMap,Io=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 y.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=y.useState(void 0),v=p[0],w=p[1],C=y.useRef(null),m=y.useRef(0);return y.useEffect(function(){var x=function(M){M.defaultPrevented||(M.code==="Escape"||M.key==="Escape"||M.keyCode===27)&&i&&i(M)},b=function(M){M.defaultPrevented||M.target===C.current||M instanceof MouseEvent&&M.button!==0||s&&s.map(ig).some(function(D){return D&&D.contains(M.target)||D===M.target})||o&&o(M)},_=function(M){b(M),m.current=M.touches.length},T=function(M){m.current=M.touches.length};if(v)return document.addEventListener("keydown",x),document.addEventListener("mousedown",b),document.addEventListener("touchstart",_),document.addEventListener("touchend",T),function(){document.removeEventListener("keydown",x),document.removeEventListener("mousedown",b),document.removeEventListener("touchstart",_),document.removeEventListener("touchend",T)}},[v,o,i]),y.useEffect(function(){if(v)return u&&u(v),function(){d&&d()}},[!!v]),y.useEffect(function(){var x=function(){return null},b=!1,_=function(M){f||(x=xE(N_([M],(s||[]).map(ig)),document.body,b0)),w(function(){return M})},T=function(){x(),b||w(null)};return n({onMouseDown:function(M){C.current=M.target},onTouchStart:function(M){C.current=M.target},onActivation:_,onDeactivation:T}),function(){b=!0,n(!1)}},[]),y.createElement(_E,null)}const EE=pf(_0,bE);var NE=function(e){return y.createElement(EE,Sn({},e))};y.forwardRef(function(e,n){return y.createElement(U_,Sn({},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",xr={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:v,input:w,inputSectionClassName:C,label:m,labelClassName:x,readOnly:b,required:_,variant:T="form",withAsterisk:M,actionsContainerClassName:D,errorContainerClassName:$,hintContainerClassName:V,iconsContainerClassName:Z,spacing:ce}=e,O=M??_,{content:te,containerClassName:de}=ps({className:Oe(xr.inputSection,C),icons:v,iconsContainerClassName:Z,actions:o,actionsContainerClassName:D,children:w,childrenContainerClassName:xr.input,spacing:ce,withoutWrap:!0,variant:"xs"});return g.jsxs("div",{ref:n,className:Oe(xr.inputContainer,!!d&&xr.errored,b&&xr.readOnly,T==="form"&&xr.form,T==="general"&&xr.general,u&&xr.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:de,children:te}),p&&g.jsx("div",{className:Oe(xr.inputHint,V),children:p}),!f&&g.jsx(c0,{disabled:u,className:Oe(xr.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=dr.useCallback(p=>{const v=p.currentTarget.value;i&&i(v===""?void 0:v,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){dr.useEffect(()=>{if(!e)return;const s=u=>{const{current:d}=i,{current:f}=o,p=u.target,v=u&&d?d===u.target||d.contains(p):!1,w=f?f===u.target||f.contains(p):!1;n(v,w,u)};return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[e,n,i,o])}var og={},$E={},os={},jf={},as={},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,H,W,ne){ne===void 0&&(ne=W);var he=Object.getOwnPropertyDescriptor(H,W);(!he||("get"in he?!H.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return H[W]}}),Object.defineProperty(I,ne,he)}:function(I,H,W,ne){ne===void 0&&(ne=W),I[ne]=H[W]}),i=Ae&&Ae.__setModuleDefault||(Object.create?function(I,H){Object.defineProperty(I,"default",{enumerable:!0,value:H})}:function(I,H){I.default=H}),o=Ae&&Ae.__importStar||function(I){if(I&&I.__esModule)return I;var H={};if(I!=null)for(var W in I)W!=="default"&&Object.prototype.hasOwnProperty.call(I,W)&&n(H,I,W);return i(H,I),H},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 v;(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"})(v||(v={}));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>=v.ZERO&&I<=v.NINE}function x(I){return I>=v.UPPER_A&&I<=v.UPPER_F||I>=v.LOWER_A&&I<=v.LOWER_F}function b(I){return I>=v.UPPER_A&&I<=v.UPPER_Z||I>=v.LOWER_A&&I<=v.LOWER_Z||m(I)}function _(I){return I===v.EQUALS||b(I)}var T;(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"})(T||(T={}));var M;(function(I){I[I.Legacy=0]="Legacy",I[I.Strict=1]="Strict",I[I.Attribute=2]="Attribute"})(M=e.DecodingMode||(e.DecodingMode={}));var D=function(){function I(H,W,ne){this.decodeTree=H,this.emitCodePoint=W,this.errors=ne,this.state=T.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=M.Strict}return I.prototype.startEntity=function(H){this.decodeMode=H,this.state=T.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},I.prototype.write=function(H,W){switch(this.state){case T.EntityStart:return H.charCodeAt(W)===v.NUM?(this.state=T.NumericStart,this.consumed+=1,this.stateNumericStart(H,W+1)):(this.state=T.NamedEntity,this.stateNamedEntity(H,W));case T.NumericStart:return this.stateNumericStart(H,W);case T.NumericDecimal:return this.stateNumericDecimal(H,W);case T.NumericHex:return this.stateNumericHex(H,W);case T.NamedEntity:return this.stateNamedEntity(H,W)}},I.prototype.stateNumericStart=function(H,W){return W>=H.length?-1:(H.charCodeAt(W)|w)===v.LOWER_X?(this.state=T.NumericHex,this.consumed+=1,this.stateNumericHex(H,W+1)):(this.state=T.NumericDecimal,this.stateNumericDecimal(H,W))},I.prototype.addToNumericResult=function(H,W,ne,he){if(W!==ne){var xe=ne-W;this.result=this.result*Math.pow(he,xe)+parseInt(H.substr(W,xe),he),this.consumed+=xe}},I.prototype.stateNumericHex=function(H,W){for(var ne=W;W>14;W>14,xe!==0){if(be===v.SEMI)return this.emitNamedEntityData(this.treeIndex,xe,this.consumed+this.excess);this.decodeMode!==M.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},I.prototype.emitNotTerminatedNamedEntity=function(){var H,W=this,ne=W.result,he=W.decodeTree,xe=(he[ne]&C.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ne,xe,this.consumed),(H=this.errors)===null||H===void 0||H.missingSemicolonAfterCharacterReference(),this.consumed},I.prototype.emitNamedEntityData=function(H,W,ne){var he=this.decodeTree;return this.emitCodePoint(W===1?he[H]&~C.VALUE_LENGTH:he[H+1],ne),W===3&&this.emitCodePoint(he[H+2],ne),ne},I.prototype.end=function(){var H;switch(this.state){case T.NamedEntity:return this.result!==0&&(this.decodeMode!==M.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case T.NumericDecimal:return this.emitNumericEntity(0,2);case T.NumericHex:return this.emitNumericEntity(0,3);case T.NumericStart:return(H=this.errors)===null||H===void 0||H.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case T.EntityStart:return 0}},I}();e.EntityDecoder=D;function $(I){var H="",W=new D(I,function(ne){return H+=(0,f.fromCodePoint)(ne)});return function(ne,he){for(var xe=0,be=0;(be=ne.indexOf("&",be))>=0;){H+=ne.slice(xe,be),W.startEntity(he);var G=W.write(ne,be+1);if(G<0){xe=be+W.end();break}xe=be+G,be=G===0?xe+1:xe}var le=H+ne.slice(xe);return H="",le}}function V(I,H,W,ne){var he=(H&C.BRANCH_LENGTH)>>7,xe=H&C.JUMP_TABLE;if(he===0)return xe!==0&&ne===xe?W:-1;if(xe){var be=ne-xe;return be<0||be>=he?-1:I[W+be]-1}for(var G=W,le=G+he-1;G<=le;){var N=G+le>>>1,U=I[N];if(Une)le=N-1;else return I[N+he]}return-1}e.determineBranch=V;var Z=$(u.default),ce=$(d.default);function O(I,H){return H===void 0&&(H=M.Legacy),Z(I,H)}e.decodeHTML=O;function te(I){return Z(I,M.Attribute)}e.decodeHTMLAttribute=te;function de(I){return Z(I,M.Strict)}e.decodeHTMLStrict=de;function fe(I){return ce(I,M.Strict)}e.decodeXML=fe})(as);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var n=as,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 v;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(v=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,b){var _=x.xmlMode,T=_===void 0?!1:_,M=x.decodeEntities,D=M===void 0?!0:M;this.cbs=b,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=T,this.decodeEntities=D,this.entityTrie=T?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 b=this.sequenceIndex===this.currentSequence.length,_=b?u(x):(x|32)===this.currentSequence[this.sequenceIndex];if(!_)this.isSpecial=!1;else if(!b){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 b=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&x!==i.Semi)this.trieIndex+=_;else{var T=this.index-this.entityExcess+1;T>this.sectionStart&&this.emitPartial(this.sectionStart,T),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 b=this.index-this.entityExcess-1,_=b+2+ +(this.state===o.InHexEntity);_!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),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 v=this.getSlice(n,i);if(this.lowerCaseTagNames&&(v=v.toLowerCase()),(cg.has(v)||dg.has(v))&&this.foreignContext.pop(),this.isVoidElement(v))!this.options.xmlMode&&v==="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(v);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&&v==="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,v,w,C,m,x;this.endIndex=i;var b=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,b),(v=(p=this.cbs).oncdataend)===null||v===void 0||v.call(p)):((C=(w=this.cbs).oncomment)===null||C===void 0||C.call(w,"[CDATA[".concat(b,"]]")),(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);Qe.NodeWithChildren=lu;var tv=function(e){_i(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=_n.ElementType.CDATA,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),n}(lu);Qe.CDATA=tv;var nv=function(e){_i(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=_n.ElementType.Root,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),n}(lu);Qe.Document=nv;var rv=function(e){_i(n,e);function n(i,o,s,u){s===void 0&&(s=[]),u===void 0&&(u=i==="script"?_n.ElementType.Script:i==="style"?_n.ElementType.Style:_n.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}(lu);Qe.Element=rv;function iv(e){return(0,_n.isTag)(e)}Qe.isTag=iv;function ov(e){return e.type===_n.ElementType.CDATA}Qe.isCDATA=ov;function av(e){return e.type===_n.ElementType.Text}Qe.isText=av;function sv(e){return e.type===_n.ElementType.Comment}Qe.isComment=sv;function lv(e){return e.type===_n.ElementType.Directive}Qe.isDirective=lv;function uv(e){return e.type===_n.ElementType.Root}Qe.isDocument=uv;function GE(e){return Object.prototype.hasOwnProperty.call(e,"children")}Qe.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,Ka({},e.attribs),o);o.forEach(function(p){return p.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Ka({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Ka({},e["x-attribsPrefix"])),i=s}else if(ov(e)){var o=n?md(e.children):[],u=new tv(o);o.forEach(function(v){return v.parent=u}),i=u}else if(uv(e)){var o=n?md(e.children):[],d=new nv(o);o.forEach(function(v){return v.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}Qe.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,v=s.charCodeAt(p),w=n.get(v);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+=+((v&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,v="";f=s.exec(d);)p!==f.index&&(v+=d.substring(p,f.index)),v+=u.get(f[0].charCodeAt(0)),p=f.index+1;return v+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," "]]))})(Xl);var ZE=Ae&&Ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.encodeNonAsciiHTML=to.encodeHTML=void 0;var QE=ZE(Of),dv=Xl,KE=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function YE(e){return fv(KE,e)}to.encodeHTML=YE;function XE(e){return fv(dv.xmlReplacer,e)}to.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+=uu(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,Jl.encodeXML)(o):(0,Jl.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(In,"__esModule",{value:!0});In.innerText=In.textContent=In.getText=In.getInnerHTML=In.getOuterHTML=void 0;var _r=Vr,pN=hN(ms),mN=Yo;function pv(e,n){return(0,pN.default)(e,n)}In.getOuterHTML=pv;function gN(e,n){return(0,_r.hasChildren)(e)?e.children.map(function(i){return pv(i,n)}).join(""):""}In.getInnerHTML=gN;function Bl(e){return Array.isArray(e)?e.map(Bl).join(""):(0,_r.isTag)(e)?e.name==="br"?` +`:Bl(e.children):(0,_r.isCDATA)(e)?Bl(e.children):(0,_r.isText)(e)?e.data:""}In.getText=Bl;function Od(e){return Array.isArray(e)?e.map(Od).join(""):(0,_r.hasChildren)(e)&&!(0,_r.isComment)(e)?Od(e.children):(0,_r.isText)(e)?e.data:""}In.textContent=Od;function Rd(e){return Array.isArray(e)?e.map(Rd).join(""):(0,_r.hasChildren)(e)&&(e.type===mN.ElementType.Tag||(0,_r.isCDATA)(e))?Rd(e.children):(0,_r.isText)(e)?e.data:""}In.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=Vr;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 Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.prepend=Cn.prependChild=Cn.append=Cn.appendChild=Cn.replaceElement=Cn.removeElement=void 0;function gs(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}Cn.removeElement=gs;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}}Cn.replaceElement=_N;function bN(e,n){if(gs(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}Cn.appendChild=bN;function EN(e,n){gs(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)}Cn.append=EN;function NN(e,n){if(gs(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}Cn.prependChild=NN;function kN(e,n){gs(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}Cn.prepend=kN;var an={};Object.defineProperty(an,"__esModule",{value:!0});an.findAll=an.existsOne=an.findOne=an.findOneChild=an.find=an.filter=void 0;var cu=Vr;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)}an.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,cu.hasChildren)(f)&&f.children.length>0&&(d.unshift(0),u.unshift(f.children))}}an.find=vv;function jN(e,n){return n.find(e)}an.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}an.findOne=yv;function wv(e,n){return n.some(function(i){return(0,cu.isTag)(i)&&(e(i)||wv(e,i.children))})}an.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,cu.isTag)(u)&&(e(u)&&i.push(u),u.children.length>0&&(s.unshift(0),o.unshift(u.children)))}}an.findAll=PN;var An={};Object.defineProperty(An,"__esModule",{value:!0});An.getElementsByTagType=An.getElementsByTagName=An.getElementById=An.getElements=An.testElement=void 0;var Qi=Vr,du=an,eu={tag_name:function(e){return typeof e=="function"?function(n){return(0,Qi.isTag)(n)&&e(n.name)}:e==="*"?Qi.isTag:function(n){return(0,Qi.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,Qi.isText)(n)&&e(n.data)}:function(n){return(0,Qi.isText)(n)&&n.data===e}}};function xv(e,n){return typeof n=="function"?function(i){return(0,Qi.isTag)(i)&&n(i.attribs[e])}:function(i){return(0,Qi.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(eu,i)?eu[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}An.testElement=LN;function DN(e,n,i,o){o===void 0&&(o=1/0);var s=Cv(e);return s?(0,du.filter)(s,n,i,o):[]}An.getElements=DN;function ON(e,n,i){return i===void 0&&(i=!0),Array.isArray(n)||(n=[n]),(0,du.findOne)(xv("id",e),n,i)}An.getElementById=ON;function RN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,du.filter)(eu.tag_name(e),n,i,o)}An.getElementsByTagName=RN;function IN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,du.filter)(eu.tag_type(e),n,i,o)}An.getElementsByTagType=IN;var Sv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var n=Vr;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 v=p.parent;v;v=v.parent)if(d.includes(v)){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=[],v=[];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;)v.unshift(w),w=w.parent;for(var C=Math.min(p.length,v.length),m=0;mb.indexOf(T)?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,v){return!v.includes(f,p+1)}),d.sort(function(f,p){var v=s(f,p);return v&o.PRECEDING?-1:v&o.FOLLOWING?1:0}),d}e.uniqueSort=u})(Sv);var fu={};Object.defineProperty(fu,"__esModule",{value:!0});fu.getFeed=void 0;var AN=In,vs=An;function FN(e){var n=tu(HN,e);return n?n.name==="feed"?$N(n):zN(n):null}fu.getFeed=FN;function $N(e){var n,i=e.children,o={type:"atom",items:(0,vs.getElementsByTagName)("entry",i).map(function(d){var f,p=d.children,v={media:_v(p)};xn(v,"id","id",p),xn(v,"title","title",p);var w=(f=tu("link",p))===null||f===void 0?void 0:f.attribs.href;w&&(v.link=w);var C=Ci("summary",p)||Ci("content",p);C&&(v.description=C);var m=Ci("updated",p);return m&&(v.pubDate=new Date(m)),v})};xn(o,"id","id",i),xn(o,"title","title",i);var s=(n=tu("link",i))===null||n===void 0?void 0:n.attribs.href;s&&(o.link=s),xn(o,"description","subtitle",i);var u=Ci("updated",i);return u&&(o.updated=new Date(u)),xn(o,"author","email",i,!0),o}function zN(e){var n,i,o=(i=(n=tu("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,vs.getElementsByTagName)("item",e.children).map(function(d){var f=d.children,p={media:_v(f)};xn(p,"id","guid",f),xn(p,"title","title",f),xn(p,"link","link",f),xn(p,"description","description",f);var v=Ci("pubDate",f)||Ci("dc:date",f);return v&&(p.pubDate=new Date(v)),p})};xn(s,"title","title",o),xn(s,"link","link",o),xn(s,"description","description",o);var u=Ci("lastBuildDate",o);return u&&(s.updated=new Date(u)),xn(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,vs.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(V){return V===" "||V===" "||V===` +`||V==="\f"||V==="\r"}function o(V){var Z,ce=V.exec(n.substring(T));if(ce)return Z=ce[0],T+=Z.length,Z}for(var s=n.length,u=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,v=/^\d+$/,w=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,C,m,x,b,_,T=0,M=[];;){if(o(d),T>=s)return M;C=o(f),m=[],C.slice(-1)===","?(C=C.replace(p,""),$()):D()}function D(){for(o(u),x="",b="in descriptor";;){if(_=n.charAt(T),b==="in descriptor")if(i(_))x&&(m.push(x),x="",b="after descriptor");else if(_===","){T+=1,x&&m.push(x),$();return}else if(_==="(")x=x+_,b="in parens";else if(_===""){x&&m.push(x),$();return}else x=x+_;else if(b==="in parens")if(_===")")x=x+_,b="in descriptor";else if(_===""){m.push(x),$();return}else x=x+_;else if(b==="after descriptor"&&!i(_))if(_===""){$();return}else b="in descriptor",T-=1;T+=1}}function $(){var V=!1,Z,ce,O,te,de={},fe,I,H,W,ne;for(te=0;te",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),v=String(p).length;return d.slice(f,p).map((w,C)=>{let m=f+1+C,x=" "+(" "+m).slice(-v)+" | ";if(m===this.line){if(w.length>160){let _=20,T=Math.max(0,this.column-_),M=Math.max(this.column+_,this.endColumn+_),D=w.slice(T,M),$=o(x.replace(/\d/g," "))+w.slice(0,Math.min(this.column-1,_-1)).replace(/[^\t]/g," ");return s(">")+o(x)+u(D)+` + `+$+s("^")}let b=o(x.replace(/\d/g," "))+w.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+o(x)+u(w)+` + `+b+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 hu=Fd;Fd.default=Fd;var ys={};ys.isClean=Symbol("isClean");ys.my=Symbol("my");let YN=Ff,XN=Nv,JN=hu,{isClean:Ua,my:ek}=ys;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[Ua]=!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[Ua]=!0}markDirty(){if(this[Ua]){this[Ua]=!1;let e=this;for(;e=e.parent;)e[Ua]=!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 pu=zd;zd.default=zd;let tk=pu,Bd=class extends tk{constructor(e){super(e),this.type="comment"}};var mu=Bd;Bd.default=Bd;let nk=pu,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 gu=Ud;Ud.default=Ud;let kv=mu,Tv=gu,rk=pu,{isClean:jv,my:Pv}=ys,$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 qr=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]}};qr.registerParse=e=>{Mv=e};qr.registerRule=e=>{zf=e};qr.registerAtRule=e=>{$f=e};qr.registerRoot=e=>{Lv=e};var ro=qr;qr.default=qr;qr.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=>{qr.rebuild(n)})};let Iv=ro,nu=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=nu;nu.default=nu;Iv.registerAtRule(nu);let ik=ro,Av,Fv,ss=class extends ik{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Av(new Fv,this,e).stringify()}};ss.registerLazyResult=e=>{Av=e};ss.registerProcessor=e=>{Fv=e};var Uf=ss;ss.default=ss;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}=fr,{dirname:gd,join:ck}=fr,{SourceMapConsumer:vg,SourceMapGenerator:yg}=fr;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}=fr,{SourceMapConsumer:hk,SourceMapGenerator:pk}=fr,{fileURLToPath:wg,pathToFileURL:Tl}=fr,xg=Ff,mk=$v,vd=fr,yd=Symbol("fromOffsetCache"),gk=!!(hk&&pk),Cg=!!(qd&&Vd),ru=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,v=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 v.offset=="number"){let w=this.fromOffset(v.offset);u=w.line,s=w.col}else u=v.line,s=v.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 v=s.sourceContentFor(u.source);return v&&(p.source=v),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 vu=ru;ru.default=ru;vd&&vd.registerInput&&vd.registerInput(ru);let zv=ro,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 ws=Wo;Wo.default=Wo;zv.registerRoot(Wo);let ls={comma(e){return ls.split(e,[","],!0)},space(e){let n=[" ",` +`," "];return ls.split(e,n)},split(e,n,i){let o=[],s="",u=!1,d=0,f=!1,p="",v=!1;for(let w of e)v?v=!1:w==="\\"?v=!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=ls;ls.default=ls;let Vv=ro,vk=Hv,iu=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=iu;iu.default=iu;Vv.registerRule(iu);let yk=Bf,wk=mu,xk=gu,Ck=vu,Sk=$v,_k=ws,bk=Hf;function us(e,n){if(Array.isArray(e))return e.map(s=>us(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=>us(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=us;us.default=us;let{dirname:Ul,relative:qv,resolve:Wv,sep:Gv}=fr,{SourceMapConsumer:Zv,SourceMapGenerator:Hl}=fr,{pathToFileURL:Sg}=fr,Nk=vu,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 v=f.parent||{raws:{}};(!(f.type==="decl"||f.type==="atrule"&&!f.nodes)||f!==v.last||v.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,Ha=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,v,w,C,m,x,b=i.length,_=0,T=[],M=[];function D(){return _}function $(O){throw e.error("Unclosed "+O,_)}function V(){return M.length===0&&_>=b}function Z(O){if(M.length)return M.pop();if(_>=b)return;let te=O?O.ignoreUnclosed:!1;switch(s=i.charCodeAt(_),s){case Pl:case Ha:case Ll:case Dl:case Ml:{f=_;do f+=1,s=i.charCodeAt(f);while(s===Ha||s===Pl||s===Ll||s===Dl||s===Ml);v=["space",i.slice(_,f)],_=f-1;break}case Pk:case Mk:case Ok:case Rk:case Fk:case Ik:case Dk:{let de=String.fromCharCode(s);v=[de,de,_];break}case Lk:{if(x=T.length?T.pop()[1]:"",m=i.charCodeAt(_+1),x==="url"&&m!==wd&&m!==_g&&m!==Ha&&m!==Pl&&m!==Ll&&m!==Ml&&m!==Dl){f=_;do{if(w=!1,f=i.indexOf(")",f+1),f===-1)if(o||te){f=_;break}else $("bracket");for(C=f;i.charCodeAt(C-1)===jl;)C-=1,w=!w}while(w);v=["brackets",i.slice(_,f+1),_,f],_=f}else f=i.indexOf(")",_+1),u=i.slice(_,f+1),f===-1||zk.test(u)?v=["(","(",_]:(v=["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||te){f=_+1;break}else $("string");for(C=f;i.charCodeAt(C-1)===jl;)C-=1,w=!w}while(w);v=["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,v=["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!==Ha&&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)===Ha&&(f+=1)}v=["word",i.slice(_,f+1),_,f],_=f;break}default:{s===bg&&i.charCodeAt(_+1)===Ak?(f=i.indexOf("*/",_+2)+1,f===0&&(o||te?f=i.length:$("comment")),v=["comment",i.slice(_,f+1),_,f],_=f):(Rl.lastIndex=_+1,Rl.test(i),Rl.lastIndex===0?f=i.length-1:f=Rl.lastIndex-2,v=["word",i.slice(_,f+1),_,f],T.push(v),_=f);break}}return _++,v}function ce(O){M.push(O)}return{back:ce,endOfFile:V,nextToken:Z,position:D}};let Uk=Bf,Hk=mu,Vk=gu,qk=ws,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),v="";for(let w=f;w>0;w--){let C=p[w][0];if(v.trim().startsWith("!")&&C!=="space")break;v=p.pop()[1]+v}v.trim().startsWith("!")&&(i.important=!0,i.raws.important=v,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,v,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=ro,t2=Uf,n2=Qv,r2=Vf,Tg=qf,i2=ws,o2=hu,{isClean:Cr,my:a2}=ys;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 Va(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[Cr]=!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(Va(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 Va(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(Va(i))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let n=this.result.root;for(;!n[Cr];)n[Cr]=!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(Va(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[Cr]||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=hu,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=ws,cs=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=cs;cs.default=cs;y2.registerProcessor(cs);m2.registerProcessor(cs);let ey=Bf,ty=mu,x2=ro,C2=Ff,ny=gu,ry=Uf,S2=Ek,_2=vu,b2=Jv,E2=Hv,N2=pu,k2=Vf,Wf=w2,T2=qf,iy=ws,oy=Hf,j2=hu,P2=Kv;function st(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Wf(e)}st.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 st([o(f)]).process(u,d)},o};st.stringify=j2;st.parse=k2;st.fromJSON=S2;st.list=E2;st.comment=e=>new ty(e);st.atRule=e=>new ey(e);st.decl=e=>new ny(e);st.rule=e=>new oy(e);st.root=e=>new iy(e);st.document=e=>new ry(e);st.CssSyntaxError=C2;st.Declaration=ny;st.Container=x2;st.Processor=Wf;st.Document=ry;st.Comment=ty;st.Warning=P2;st.AtRule=ey;st.Result=T2;st.Input=_2;st.Rule=oy;st.Root=iy;st.Node=N2;b2.registerPostcss(st);var M2=st;st.default=st;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:v,emptyMessage:w,pendingMessage:C,filteredEmptyMessage:m,compact:x,withoutMessage:b=!1,messageClassName:_}=e,T=$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}),!b&&g.jsx(l0,{className:_,pending:d,filtered:p,empty:T,errored:f,compact:x,emptyMessage:w,filteredEmptyMessage:m,pendingMessage:C,errorMessage:v,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 y.useCallback(v=>{const{keyCode:w}=v,C=e?.key;if(o&&(w===9||w===27))u();else if(!o&&I2.includes(w))v.stopPropagation(),v.preventDefault(),d();else if(w===13)if(Mt(C)){v.stopPropagation(),v.preventDefault();const m=i.find((x,b)=>n(x,b)===C);m&&f(C,m)}else v.stopPropagation(),v.preventDefault(),p&&p();else if(w===40){v.stopPropagation(),v.preventDefault();const m=Pg(C,1,i,n);s(m?{key:m}:void 0)}else if(w===38){v.stopPropagation(),v.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:v,title:w,...C}=p,m=f?.key===d,x=y.useRef(null);y.useEffect(()=>{f&&f.key===d&&!f.mouse&&x.current&&x.current.scrollIntoView({behavior:"smooth",block:"center"})},[d,f]);const b=y.useCallback(()=>{u(d,s)},[d,s,u]);return g.jsx(sf,{elementRef:x,className:Oe(z2.genericOption,n,v),onClick:b,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",vi={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:v,iconsContainerClassName:w,inputSectionClassName:C,label:m,labelClassName:x,name:b,onOptionClick:_,searchText:T,onSearchTextChange:M,optionContainerClassName:D,optionKeySelector:$,optionRenderer:V,optionRendererParams:Z,options:ce,optionsPopupClassName:O,persistentOptionPopup:te,readOnly:de,placeholder:fe,valueDisplay:I="",nonClearable:H,onClearButtonClick:W,onSelectAllButtonClick:ne,optionsPending:he=!1,optionsFiltered:xe=!1,optionsErrored:be=!1,focused:G,focusedKey:le,onFocusedKeyChange:N,onFocusedChange:U,dropdownShown:oe,onDropdownShownChange:Se,totalOptionsCount:se=0,hasValue:re,autoFocus:J,onEnterWithoutOption:Q,withAsterisk:Y,required:tt,variant:tn,errorOnTooltip:Wt,dropdownHidden:lt}=e,wt=ce??K2,ct=s0(V2),ht=y.useRef(null),gt=y.useRef(null),xt=y.useRef(null),_t=y.useRef(null),nn=y.useCallback(Et=>{oe||Se(!0),M(Et)},[oe,Se,M]),bn=y.useCallback((Et,Nn)=>{Nn.stopPropagation(),Se(!oe)},[oe,Se]),sn=y.useCallback(()=>{oe||Se(!0)},[oe,Se]),En=y.useCallback(()=>{Se(!1)},[Se]),Gr=y.useCallback(()=>{de||sn()},[de,sn]),ln=y.useCallback((Et,Nn)=>{Et||Nn?te&&xt.current&&xt.current.focus():En()},[En,te]),un=y.useCallback((Et,Nn)=>{_(Et,Nn,b),te||En()},[_,En,te,b]),Ft=y.useCallback((Et,Nn)=>({contentRendererParam:Z,option:Nn,optionKey:Et,focusedKey:le,contentRenderer:V,onClick:un,onFocus:N,optionContainerClassName:Oe(D,vi.listItem)}),[le,un,N,D,V,Z]);FE(oe,ln,_t,ht);const cn=F2(le,$,wt,oe,N,En,sn,un,Q),Lt=wt.length,bt=se-Lt>0?`${ct.infoMessageAnd} ${se-Lt} ${ct.infoMessageMore}`:void 0,Gt=oe&&!lt;return g.jsxs(g.Fragment,{children:[g.jsx(Tf,{actionsContainerClassName:i,className:o,containerRef:ht,disabled:s,errorContainerClassName:d,error:u,errorOnTooltip:Wt,hintContainerClassName:p,hint:f,iconsContainerClassName:w,icons:v,inputSectionClassName:C,inputSectionRef:gt,labelClassName:x,label:m,readOnly:de,required:tt,variant:tn,withAsterisk:Y,actions:g.jsxs(g.Fragment,{children:[n,!de&&ne&&g.jsx(He,{onClick:ne,disabled:s,variant:"tertiary",name:void 0,title:ct.buttonTitleSelect,children:g.jsx(EC,{className:vi.icon})}),!de&&!H&&re&&g.jsx(He,{onClick:W,disabled:s,variant:"tertiary",name:void 0,title:ct.buttonTitleClear,children:g.jsx(LC,{className:vi.icon})}),!de&&g.jsx(He,{onClick:bn,variant:"tertiary",name:void 0,title:Gt?ct.buttonTitleClose:ct.buttonTitleOpen,children:Gt?g.jsx(bC,{className:vi.icon}):g.jsx(SC,{className:vi.icon})})]}),input:g.jsx(Y0,{name:b,elementRef:xt,readOnly:de,disabled:s,value:oe||G?T:I,onChange:nn,onClick:Gr,onFocus:()=>U(!0),onBlur:()=>U(!1),placeholder:hs(I)?I:fe,autoComplete:"off",onKeyDown:cn,autoFocus:J})}),Gt&&g.jsxs(u0,{elementRef:_t,parentRef:gt,className:Oe(O,vi.popup),children:[g.jsx(R2,{className:vi.list,data:wt,keySelector:$,renderer:B2,rendererParams:Ft,errored:be,filtered:xe,pending:he,pendingMessage:ct.selectInputPendingMessage,emptyMessage:ct.selectInputEmptyMessage,filteredEmptyMessage:ct.selectInputFilteredMessage,errorMessage:ct.selectInputErrorMessage,compact:!0}),!he&&!be&&!!bt&&g.jsx("div",{className:vi.infoMessage,children:bt})]})]})}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",qa={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:v,sortFunction:w,searchOptions:C,onSearchValueChange:m,onShowDropdownChange:x,hideOptionFilter:b,selectedOnTop:_,...T}=e,M=d??Cd,D=C??Cd,$=v??Cd,[V,Z]=y.useState(),[ce,O]=y.useState(!1),[te,de]=y.useState(!1),[fe,I]=y.useState(),[H,W]=y.useState({}),ne=y.useMemo(()=>Qa(M,n,se=>se),[M,n]),he=y.useMemo(()=>Qa(M,n,i),[M,n,i]),xe=y.useMemo(()=>$.map(se=>he[se]??"?").join(", "),[$,he]),be=y.useMemo(()=>$.map(se=>ne[se]).filter(Mt),[$,ne]),G=y.useMemo(()=>{const se=ay([...D,...be],n);if(!_)return w?w(se,V,i):se;const re=se.filter(Q=>H[n(Q)]),J=se.filter(Q=>!H[n(Q)]&&($e(b)||b(Q)));return w?[...Ji(re,V,i),...w(J,V,i)]:[...Ji(re,V,i),...J]},[_,n,i,V,D,H,be,w,b]),le=y.useCallback(se=>{Z(se),m&&m(se)},[m]),N=y.useCallback(se=>{O(se),x&&x(se),se?(W(Qa($,re=>re,()=>!0)),I(void 0)):(W({}),I(void 0),Z(void 0),m&&m(void 0))},[$,m,x]),U=y.useCallback((se,re)=>{const J=$.findIndex(Q=>Q===se)!==-1;return{children:i(re),containerClassName:Oe(qa.option,J&&qa.active),title:i(re),isActive:J,labelClassName:qa.label,iconClassName:qa.icon}},[i,$]),oe=y.useCallback((se,re)=>{const J=[...$],Q=$.findIndex(Y=>Y===se);Q!==-1?J.splice(Q,1):(J.push(se),u&&u(Y=>{const tt=Y??[];return tt.find(tn=>n(tn)===se)?Y:[...tt,re]})),s(J,o)},[$,s,o,u,n]),Se=y.useCallback(()=>{s([],o)},[o,s]);return g.jsx(sy,{...T,name:o,options:G,optionsPending:f,optionsFiltered:hs(V)&&V.length>0,optionsErrored:p,optionKeySelector:n,optionRenderer:Y2,optionRendererParams:U,optionContainerClassName:qa.optionContainer,onOptionClick:oe,valueDisplay:xe,onClearButtonClick:Se,searchText:V,onSearchTextChange:le,dropdownShown:ce,onDropdownShownChange:N,focused:te,onFocusedChange:de,focusedKey:fe,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=y.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:Ji,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=dr.useCallback(p=>{var v;const w=(v=p?.target)==null?void 0:v.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",Fo={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(Fo.option,n),children:[g.jsx("div",{className:Oe(Fo.icon,s),children:g.jsx(NC,{})}),g.jsxs("div",{className:Oe(Fo.label,u),children:[g.jsx("div",{className:Fo.overflowContainer,children:i}),g.jsx("div",{className:Oe(Fo.overflowContainer,Fo.description),children:o})]})]})}const pT="_option-container_2k92q_1",mT="_option_2k92q_1",gT="_active_2k92q_9",vT="_icon_2k92q_12",Wa={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:v,value:w,sortFunction:C,searchOptions:m,onSearchValueChange:x,onShowDropdownChange:b,hideOptionFilter:_,selectedOnTop:T,onEnterWithoutOption:M,...D}=e,$=f??Dg,V=m??Dg,[Z,ce]=y.useState(),[O,te]=y.useState(!1),[de,fe]=y.useState(!1),[I,H]=y.useState(),[W,ne]=y.useState({}),he=y.useMemo(()=>Qa($,n,i),[$,n,i]),xe=Mt(w)?he[w]??"?":"",be=y.useMemo(()=>{const re=$?.find(J=>n(J)===w);return $e(re)?[]:[re]},[w,$,n]),G=y.useMemo(()=>{const re=ay([...V,...be],n);if(!T)return C?C(re,Z,i):re;const J=re.filter(Y=>W[n(Y)]),Q=re.filter(Y=>!W[n(Y)]&&($e(_)||_(Y)));return C?[...Ji(J,Z,i),...C(Q,Z,i)]:[...Ji(J,Z,i),...Q]},[T,n,i,Z,V,W,be,C,_]),le=y.useCallback(re=>{ce(re),x&&x(re)},[x]),N=y.useCallback(()=>{te(!1),b&&b(!1),ce(void 0),x&&x(void 0),M&&M(Z)},[Z,b,M,x]),U=y.useCallback(re=>{te(re),b&&b(re),re?(ne(Qa(w?[w]:[],J=>J,()=>!0)),H(w?{key:w}:void 0)):(ne({}),H(void 0),ce(void 0),x&&x(void 0))},[w,x,b]),oe=y.useCallback((re,J)=>{const Q=re===w;return{label:i(J),description:o?o(J):void 0,containerClassName:Oe(Wa.optionContainer,Q&&Wa.active),title:i(J),className:Wa.option,iconClassName:Wa.icon}},[w,i,o]),Se=y.useCallback((re,J)=>{d&&d(Q=>{const Y=Q??[];return Y.find(tt=>n(tt)===re)?Q:[...Y,J]}),u(re,s,J)},[u,s,d,n]),se=y.useCallback(()=>{if(!e.nonClearable){const re=e.onChange;re(void 0,s,void 0)}},[s,e.onChange,e.nonClearable]);return g.jsx(sy,{...D,name:s,options:G,optionsPending:p,optionsErrored:v,optionsFiltered:hs(Z)&&Z.length>0,optionKeySelector:n,optionRenderer:hT,optionRendererParams:oe,optionContainerClassName:Wa.optionContainer,onOptionClick:Se,valueDisplay:xe,onClearButtonClick:se,searchText:Z,onSearchTextChange:le,dropdownShown:O,onDropdownShownChange:U,focused:de,onFocusedChange:fe,focusedKey:I,onFocusedKeyChange:H,hasValue:Mt(w),persistentOptionPopup:!1,onEnterWithoutOption:N})}const yT="_segment-input_bykt7_1",wT="_segment-list_bykt7_4",xT="_segment_bykt7_1",CT="_active_bykt7_18",ST="_secondary-variant_bykt7_24",Ya={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(He,{...p,className:Oe(Ya.segment,s&&Ya.active,d==="secondary"&&Ya.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,Ya.segmentInput),...d,renderer:_T,rendererParams:n,listContainerClassName:Oe(i,Ya.segmentList),keySelector:o,labelSelector:s})}function qi(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:Ji,searchOptions:i,selectedOnTop:!1}):g.jsx(Og,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:Ji,searchOptions:i,selectedOnTop:!1})}y.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:v,labelClassName:w,readOnly:C,required:m,variant:x,inputSectionClassName:b,withAsterisk:_,onChange:T,name:M,autoBullets:D=!1,rows:$=5,...V}=e,Z=dr.useCallback(O=>{$e(T)||O.target.value===""&&T(`${Rg} `,M)},[T,M]),ce=dr.useCallback(O=>{$e(T)||O.key===ET&&T(`${O.currentTarget.value}${Rg} `,M)},[T,M]);return g.jsx(Tf,{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:b,labelClassName:w,label:v,readOnly:C,required:m,variant:x,withAsterisk:_,input:g.jsx(sT,{...V,readOnly:C,disabled:o,className:p,onChange:T,name:M,onFocus:D?Z:void 0,onKeyUp:D?ce:void 0,rows:$})})}function kt(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:p,inputSectionClassName:v,label:w,readOnly:C,required:m,variant:x,withAsterisk:b,type:_="text",...T}=e;return g.jsx(Tf,{className:i,actions:n,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:v,label:w,required:m,readOnly:C,variant:x,withAsterisk:b,input:g.jsx(Y0,{...T,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=fs(),[i,o]=y.useState(!1),s=y.useRef(null);return y.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/"),v=e.pathname==="/upload"||e.pathname==="/",w=u==="/upload"||u==="/";return g.jsxs("div",{className:"relative",children:[g.jsx(cr,{withInternalPadding:!0,className:"p-2",children:g.jsxs(He,{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(!(v&&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(cr,{withInternalPadding:!0,className:"p-2",children:g.jsx(He,{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(cr,{withInternalPadding:!0,className:"p-2",children:g.jsxs(He,{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(cr,{withInternalPadding:!0,className:"p-2",children:g.jsxs(He,{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",q={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=y.createContext(void 0),Vj=({children:e})=>{const[n,i]=y.useState(""),[o,s]=y.useState(""),[u,d]=y.useState(""),[f,p]=y.useState(""),[v,w]=y.useState(""),[C,m]=y.useState(""),[x,b]=y.useState(""),[_,T]=y.useState(!1),D={search:n,srcFilter:o,catFilter:u,regionFilter:f,countryFilter:v,imageTypeFilter:C,uploadTypeFilter:x,showReferenceExamples:_,setSearch:i,setSrcFilter:s,setCatFilter:d,setRegionFilter:p,setCountryFilter:w,setImageTypeFilter:m,setUploadTypeFilter:b,setShowReferenceExamples:T,clearAllFilters:()=>{i(""),s(""),d(""),p(""),w(""),m(""),b(""),T(!1)}};return g.jsx(ly.Provider,{value:D,children:e})},qj=()=>{const e=y.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 v=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:q.helpLink,children:g.jsxs(Mx,{to:"/help",className:q.helpLink,children:["More ",g.jsx(_C,{className:"w-3 h-3"})]})}),g.jsx("div",{className:"flex justify-center",children:g.jsx(cr,{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:`${q.dropZone} ${n?q.hasFile:""}`,onDragOver:w=>w.preventDefault(),onDrop:v,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:q.filePreview,children:[g.jsx("div",{className:q.filePreviewImage,children:g.jsx("img",{src:i,alt:"File preview"})}),g.jsx("p",{className:q.fileName,children:n.name}),g.jsxs("p",{className:q.fileInfo,children:[(n.size/1024/1024).toFixed(2)," MB"]})]}):g.jsxs(g.Fragment,{children:[g.jsx(a0,{className:q.dropZoneIcon}),g.jsx("p",{className:q.dropZoneText,children:"Drag & Drop any file here"}),g.jsx("p",{className:q.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(He,{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(He,{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(cr,{heading:"Uploaded Images",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.carouselContainer,children:[g.jsx("div",{className:q.carouselImageWrapper,children:e[s]?g.jsx("img",{src:URL.createObjectURL(e[s]),alt:`Image ${s+1}`,className:q.carouselImage}):g.jsx("div",{className:q.imagePlaceholder,children:"No image available"})}),g.jsxs("div",{className:q.carouselNavigation,children:[g.jsx(He,{name:"previous-image",variant:"tertiary",size:1,onClick:u,className:q.carouselButton,children:g.jsx(PC,{className:"w-4 h-4"})}),g.jsx("div",{className:q.carouselIndicators,children:e.map((v,w)=>g.jsx("button",{onClick:()=>f?.(w),className:`${q.carouselIndicator} ${w===s?q.carouselIndicatorActive:""}`,children:w+1},w))}),g.jsx(He,{name:"next-image",variant:"tertiary",size:1,onClick:d,className:q.carouselButton,children:g.jsx(MC,{className:"w-4 h-4"})})]}),g.jsx("div",{className:q.viewImageButtonContainer,children:g.jsx(He,{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((v,w)=>g.jsx(cr,{heading:`Image ${w+1}: ${v.name}`,headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.uploadedMapContainer,children:[g.jsx("div",{className:q.uploadedMapImage,children:g.jsx("img",{src:URL.createObjectURL(v),alt:`Image ${w+1}`})}),g.jsx("div",{className:q.viewFullSizeButton,children:g.jsx(He,{name:`view-full-size-${w}`,variant:"secondary",size:1,onClick:()=>o({file:v,index:w}),children:"View Image"})})]})},w))}):g.jsx(cr,{heading:"Uploaded Image",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.uploadedMapContainer,children:[g.jsx("div",{className:q.uploadedMapImage,children:g.jsx("img",{src:n||i||void 0,alt:"Uploaded image preview"})}),g.jsx("div",{className:q.viewFullSizeButton,children:g.jsx(He,{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:v,aglM:w,headingDeg:C,yawDeg:m,pitchDeg:x,rollDeg:b,rtkFix:_,stdHM:T,stdVM:M,metadataArray:D,sources:$,types:V,spatialReferences:Z,imageTypes:ce,countriesOptions:O,onTitleChange:te,onSourceChange:de,onEventTypeChange:fe,onEpsgChange:I,onCountriesChange:H,onCenterLonChange:W,onCenterLatChange:ne,onAmslMChange:he,onAglMChange:xe,onHeadingDegChange:be,onYawDegChange:G,onPitchDegChange:le,onRollDegChange:N,onRtkFixChange:U,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(kt,{label:"Shared Title",name:"title",value:i,onChange:te,placeholder:"Enter a title for all images...",required:!0})}),e.map((J,Q)=>g.jsx("div",{className:"mb-6",children:g.jsx(cr,{heading:`Image ${Q+1}: ${J.name}`,headingLevel:4,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.formGrid,children:[n!=="drone_image"&&g.jsx(qi,{label:"Source",name:`source_${Q}`,value:D[Q]?.source||"",onChange:Y=>re(Q,"source",Y),options:$,keySelector:Y=>Y.s_code,labelSelector:Y=>Y.label,required:!0}),g.jsx(qi,{label:"Event Type",name:`event_type_${Q}`,value:D[Q]?.eventType||"",onChange:Y=>re(Q,"eventType",Y),options:V,keySelector:Y=>Y.t_code,labelSelector:Y=>Y.label,required:n!=="drone_image"}),g.jsx(qi,{label:"EPSG",name:`epsg_${Q}`,value:D[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:D[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:q.droneMetadataSection,children:[g.jsx("h4",{className:q.droneMetadataHeading,children:"Drone Flight Data"}),g.jsxs("div",{className:q.droneMetadataGrid,children:[g.jsx(kt,{label:"Center Longitude",name:`center_lon_${Q}`,value:D[Q]?.centerLon||"",onChange:Y=>re(Q,"centerLon",Y),placeholder:"e.g., -122.4194",step:"any"}),g.jsx(kt,{label:"Center Latitude",name:`center_lat_${Q}`,value:D[Q]?.centerLat||"",onChange:Y=>re(Q,"centerLat",Y),placeholder:"e.g., 37.7749",step:"any"}),g.jsx(kt,{label:"Altitude AMSL (m)",name:`amsl_m_${Q}`,value:D[Q]?.amslM||"",onChange:Y=>re(Q,"amslM",Y),placeholder:"e.g., 100.5",step:"any"}),g.jsx(kt,{label:"Altitude AGL (m)",name:`agl_m_${Q}`,value:D[Q]?.aglM||"",onChange:Y=>re(Q,"aglM",Y),placeholder:"e.g., 50.2",step:"any"}),g.jsx(kt,{label:"Heading (degrees)",name:`heading_deg_${Q}`,value:D[Q]?.headingDeg||"",onChange:Y=>re(Q,"headingDeg",Y),placeholder:"e.g., 180.0",step:"any"}),g.jsx(kt,{label:"Yaw (degrees)",name:`yaw_deg_${Q}`,value:D[Q]?.yawDeg||"",onChange:Y=>re(Q,"yawDeg",Y),placeholder:"e.g., 90.0",step:"any"}),g.jsx(kt,{label:"Pitch (degrees)",name:`pitch_deg_${Q}`,value:D[Q]?.pitchDeg||"",onChange:Y=>re(Q,"pitchDeg",Y),placeholder:"e.g., 0.0",step:"any"}),g.jsx(kt,{label:"Roll (degrees)",name:`roll_deg_${Q}`,value:D[Q]?.rollDeg||"",onChange:Y=>re(Q,"rollDeg",Y),placeholder:"e.g., 0.0",step:"any"}),g.jsx("div",{className:q.rtkFixContainer,children:g.jsxs("label",{className:q.rtkFixLabel,children:[g.jsx("input",{type:"checkbox",checked:D[Q]?.rtkFix||!1,onChange:Y=>re(Q,"rtkFix",Y.target.checked),className:q.rtkFixCheckbox}),"RTK Fix Available"]})}),g.jsx(kt,{label:"Horizontal Std Dev (m)",name:`std_h_m_${Q}`,value:D[Q]?.stdHM||"",onChange:Y=>re(Q,"stdHM",Y),placeholder:"e.g., 0.1",step:"any"}),g.jsx(kt,{label:"Vertical Std Dev (m)",name:`std_v_m_${Q}`,value:D[Q]?.stdVM||"",onChange:Y=>re(Q,"stdVM",Y),placeholder:"e.g., 0.2",step:"any"})]})]})})]})})},Q))]}):g.jsxs("div",{className:q.formGrid,children:[g.jsx("div",{className:q.titleField,children:g.jsx(kt,{label:"Title",name:"title",value:i,onChange:te,placeholder:"Enter a title for this map...",required:!0})}),n!=="drone_image"&&g.jsx(qi,{label:"Source",name:"source",value:o,onChange:de,options:$,keySelector:J=>J.s_code,labelSelector:J=>J.label,required:!0}),g.jsx(qi,{label:"Event Type",name:"event_type",value:s,onChange:fe,options:V,keySelector:J=>J.t_code,labelSelector:J=>J.label,required:n!=="drone_image"}),g.jsx(qi,{label:"EPSG",name:"epsg",value:u,onChange:I,options:Z,keySelector:J=>J.epsg,labelSelector:J=>`${J.srid} (EPSG:${J.epsg})`,placeholder:"EPSG",required:n!=="drone_image"}),g.jsx(qi,{label:"Image Type",name:"image_type",value:n,onChange:se,options:ce,keySelector:J=>J.image_type,labelSelector:J=>J.label,required:!0}),g.jsx(Mg,{label:"Countries (optional)",name:"countries",value:d,onChange:H,options:O,keySelector:J=>J.c_code,labelSelector:J=>J.label,placeholder:"Select one or more"}),n==="drone_image"&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:q.droneMetadataSection,children:[g.jsx("h4",{className:q.droneMetadataHeading,children:"Drone Flight Data"}),g.jsxs("div",{className:q.droneMetadataGrid,children:[g.jsx(kt,{label:"Center Longitude",name:"center_lon",value:f,onChange:W,placeholder:"e.g., -122.4194",step:"any"}),g.jsx(kt,{label:"Center Latitude",name:"center_lat",value:p,onChange:ne,placeholder:"e.g., 37.7749",step:"any"}),g.jsx(kt,{label:"Altitude AMSL (m)",name:"amsl_m",value:v,onChange:he,placeholder:"e.g., 100.5",step:"any"}),g.jsx(kt,{label:"Altitude AGL (m)",name:"agl_m",value:w,onChange:xe,placeholder:"e.g., 50.2",step:"any"}),g.jsx(kt,{label:"Heading (degrees)",name:"heading_deg",value:C,onChange:be,placeholder:"e.g., 180.0",step:"any"}),g.jsx(kt,{label:"Yaw (degrees)",name:"yaw_deg",value:m,onChange:G,placeholder:"e.g., 90.0",step:"any"}),g.jsx(kt,{label:"Pitch (degrees)",name:"pitch_deg",value:x,onChange:le,placeholder:"e.g., 0.0",step:"any"}),g.jsx(kt,{label:"Roll (degrees)",name:"roll_deg",value:b,onChange:N,placeholder:"e.g., 0.0",step:"any"}),g.jsx("div",{className:q.rtkFixContainer,children:g.jsxs("label",{className:q.rtkFixLabel,children:[g.jsx("input",{type:"checkbox",checked:_,onChange:J=>U(J.target.checked),className:q.rtkFixCheckbox}),"RTK Fix Available"]})}),g.jsx(kt,{label:"Horizontal Std Dev (m)",name:"std_h_m",value:T,onChange:oe,placeholder:"e.g., 0.1",step:"any"}),g.jsx(kt,{label:"Vertical Std Dev (m)",name:"std_v_m",value:M,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(cr,{heading:"AI Performance Rating",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:g.jsxs("div",{className:q.ratingContent,children:[g.jsx("p",{className:q.ratingDescription,children:"How well did the AI perform on the task?"}),["accuracy","context","usability"].map(u=>g.jsxs("div",{className:q.ratingSlider,children:[g.jsx("label",{className:q.ratingLabel,children:u}),g.jsx("input",{type:"range",min:0,max:100,value:n[u],onChange:d=>i(u,Number(d.target.value)),className:q.ratingInput}),g.jsx("span",{className:q.ratingValue,children:n[u]})]},u)),g.jsx("div",{className:q.confirmButtonContainer,children:g.jsx(He,{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:v,isPerformanceConfirmed:w=!1}){const C=m=>{if(m){const x=m.split(` +`),b=x.findIndex(M=>M.startsWith("Description:")),_=x.findIndex(M=>M.startsWith("Analysis:")),T=x.findIndex(M=>M.startsWith("Recommended Actions:"));b!==-1&&_!==-1&&T!==-1&&(o(x.slice(b+1,_).join(` +`).trim()),s(x.slice(_+1,T).join(` +`).trim()),u(x.slice(T+1).join(` +`).trim()))}};return g.jsxs(cr,{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:C,rows:12,placeholder:"AI-generated content will appear here..."})})}),g.jsxs("div",{className:q.submitSection,children:[g.jsx(He,{name:"back",variant:"secondary",onClick:d,children:"Back"}),w&&v&&g.jsx(He,{name:"edit-ratings",variant:"secondary",onClick:v,children:"Edit Ratings"}),g.jsx(df,{name:"delete",variant:"tertiary",onClick:f,title:"Delete",ariaLabel:"Delete uploaded image",children:g.jsx(uf,{})}),g.jsx(He,{name:"submit",onClick:p,children:"Submit"})]})]})}function Qj({isOpen:e,imageUrl:n,preview:i,selectedImageData:o,onClose:s}){if(!e)return null;let u,d;return o?(u=URL.createObjectURL(o.file),d=`Image ${o.index+1}: ${o.file.name}`):(u=n||i||void 0,d="Full size map"),g.jsx("div",{className:q.fullSizeModalOverlay,onClick:s,children:g.jsxs("div",{className:q.fullSizeModalContent,onClick:f=>f.stopPropagation(),children:[g.jsx("div",{className:q.fullSizeModalHeader,children:g.jsx(He,{name:"close-modal",variant:"tertiary",size:1,onClick:s,children:"✕"})}),g.jsx("div",{className:q.fullSizeModalImage,children:g.jsx("img",{src:u,alt:d})})]})})}function Kj({isOpen:e,onClose:n}){return e?g.jsx("div",{className:q.fullSizeModalOverlay,onClick:n,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:i=>i.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Please Confirm Your Ratings"}),g.jsx("p",{className:q.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:q.ratingWarningButtons,children:g.jsx(He,{name:"close-warning",variant:"secondary",onClick:n,children:"Close"})})]})})}):null}function Yj({isOpen:e,onConfirm:n,onCancel:i}){return e?g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Delete Image?"}),g.jsx("p",{className:q.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this uploaded image?"}),g.jsxs("div",{className:q.ratingWarningButtons,children:[g.jsx(He,{name:"confirm-delete",variant:"secondary",onClick:n,children:"Delete"}),g.jsx(He,{name:"cancel-delete",variant:"tertiary",onClick:i,children:"Cancel"})]})]})})}):null}function Xj({isOpen:e,onConfirm:n,onCancel:i}){return e?g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Leave Page?"}),g.jsx("p",{className:q.ratingWarningText,children:"Your uploaded image will be deleted if you leave this page. Are you sure you want to continue?"}),g.jsxs("div",{className:q.ratingWarningButtons,children:[g.jsx(He,{name:"confirm-navigation",variant:"secondary",onClick:n,children:"Leave Page"}),g.jsx(He,{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:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Model Changed"}),g.jsxs("p",{className:q.ratingWarningText,children:[n.originalModel," is currently unavailable. We've automatically switched to ",n.fallbackModel," to complete your request."]}),g.jsx("div",{className:q.ratingWarningButtons,children:g.jsx(He,{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:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"File Converted"}),g.jsxs("p",{className:q.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:q.ratingWarningButtons,children:g.jsx(He,{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:q.fullSizeModalOverlay,onClick:i?void 0:u,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:d=>d.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"File Conversion Required"}),g.jsx("p",{className:q.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:q.ratingWarningButtons,children:[g.jsx(He,{name:"confirm-preprocessing",variant:"secondary",onClick:s,children:"Convert File"}),g.jsx(He,{name:"cancel-preprocessing",variant:"tertiary",onClick:u,children:"Cancel"})]}),i&&g.jsxs("div",{className:q.preprocessingProgress,children:[g.jsx("p",{children:o}),g.jsx(Gl,{className:"text-ifrcRed"})]})]})})}):null}function nP({isOpen:e,unsupportedFile:n,onClose:i}){return!e||!n?null:g.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"Unsupported File Format"}),g.jsxs("p",{className:q.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:q.ratingWarningButtons,children:g.jsx(He,{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:q.lightModalOverlay,onClick:o,children:g.jsx("div",{className:q.fullSizeModalContent,onClick:s=>s.stopPropagation(),children:g.jsxs("div",{className:q.ratingWarningContent,children:[g.jsx("h3",{className:q.ratingWarningTitle,children:"File Size Warning"}),g.jsxs("p",{className:q.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:q.ratingWarningButtons,children:[g.jsx(He,{name:"continue-size-warning",variant:"secondary",onClick:i,children:"Continue"}),g.jsx(He,{name:"cancel-size-warning",variant:"tertiary",onClick:o,children:"Cancel"})]})]})})})}const Il="selectedVlmModel";function Fg(){const[e]=Dx(),n=fs(),[i,o]=y.useState(1),[s,u]=y.useState(!1),[d,f]=y.useState(!1),p=y.useRef(i),v=y.useRef(null),[w,C]=y.useState(null),[m,x]=y.useState(null),[b,_]=y.useState([]),[T,M]=y.useState(""),[D,$]=y.useState(""),[V,Z]=y.useState(""),[ce,O]=y.useState("crisis_map"),[te,de]=y.useState([]),[fe,I]=y.useState(""),[H,W]=y.useState(""),[ne,he]=y.useState(""),[xe,be]=y.useState(""),[G,le]=y.useState(""),[N,U]=y.useState(""),[oe,Se]=y.useState(""),[se,re]=y.useState(""),[J,Q]=y.useState(""),[Y,tt]=y.useState(!1),[tn,Wt]=y.useState(""),[lt,wt]=y.useState(""),[ct,ht]=y.useState([]),[gt,xt]=y.useState([]),[_t,nn]=y.useState([]),[bn,sn]=y.useState([]),[En,Gr]=y.useState([]),[ln,un]=y.useState([]),[Ft,cn]=y.useState(null),[Lt,bt]=y.useState([]),[Gt,Et]=y.useState(null),[Nn,dn]=y.useState(""),[Zr,Qr]=y.useState(""),[Er,Nr]=y.useState(""),[kr,Fn]=y.useState(""),[Kn,kn]=y.useState({accuracy:50,context:50,usability:50}),[$n,Kr]=y.useState(!1),[bi,Yr]=y.useState(null),[Yn,zn]=y.useState(!1),[hr,Ei]=y.useState(!1),[Tr,j]=y.useState(!1),[R,z]=y.useState(!1),[K,ue]=y.useState(null),[Ne,Pe]=y.useState(!1),[ye,Ce]=y.useState(null),[ve,me]=y.useState(!1),[Fe,Ve]=y.useState(null),[Tt,Ke]=y.useState(!1),[qe,Je]=y.useState(null),[Xn,Tn]=y.useState(!1),[jn,ze]=y.useState(""),[Ni,fn]=y.useState(!1),[Bn,Pn]=y.useState(null),[Xr,Be]=y.useState(!1),[ot,jt]=y.useState(null),[jr,Ge]=y.useState(0);p.current=i,v.current=Ft;const pr=k=>M(k||""),io=k=>$(k||""),Xo=k=>Z(k||""),Jr=k=>O(k||""),oo=k=>de(Array.isArray(k)?k:[]),ki=k=>W(k||""),ao=k=>he(k||""),yu=k=>be(k||""),wu=k=>le(k||""),Jo=k=>U(k||""),xs=k=>Se(k||""),ea=k=>re(k||""),Ti=k=>Q(k||""),xu=k=>tt(k||!1),ta=k=>Wt(k||""),nt=k=>wt(k||""),ji=k=>o(k),Cs=y.useCallback(()=>{b.length>1&&Ge(k=>k>0?k-1:b.length-1)},[b.length]),na=y.useCallback(()=>{b.length>1&&Ge(k=>k{k>=0&&k{if(b.length<5){const k=document.createElement("input");k.type="file",k.accept=".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",k.onchange=Me=>{const Te=Me.target;if(Te.files&&Te.files[0]){const je=Te.files[0];Un(je)}},k.click()}},ia=k=>{_(Me=>{const Te=Me.filter((je,ge)=>ge!==k);return Te.length===1?x(Te[0]):Te.length===0&&x(null),Te}),ht(Me=>Me.filter((Te,je)=>je!==k))},oa=(k,Me,Te)=>{ht(je=>{const ge=[...je];return ge[k]||(ge[k]={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}),ge[k]={...ge[k],[Me]:Te},ge})},Pi=k=>{const Me=["image/jpeg","image/jpg","image/png"],Te=[".jpg",".jpeg",".png"];let je=!Me.includes(k.type);if(!je&&k.name){const ge=k.name.toLowerCase().substring(k.name.lastIndexOf("."));je=!Te.includes(ge)}return je},Jn=k=>{const Me=["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 Me)if(k.type.startsWith(Te))return!0;if(k.name){const Te=k.name.toLowerCase().substring(k.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},Un=k=>{if(k){if(console.log("File selected:",k.name,"Type:",k.type,"Size:",k.size),k.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),jt(k),Be(!0)),Jn(k)){console.log("File format not supported at all, showing unsupported format modal"),Pn(k),fn(!0);return}Pi(k)?(console.log("File needs preprocessing, showing modal"),Je(k),Ke(!0)):(console.log("File does not need preprocessing, setting directly"),b.length===0?(x(k),_([k])):_(Te=>[...Te,k]))}},er=k=>{if(k){if(console.log("File changed:",k.name,"Type:",k.type,"Size:",k.size),k.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),jt(k),Be(!0)),Jn(k)){console.log("File format not supported at all, showing unsupported format modal"),Pn(k),fn(!0);return}Pi(k)?(console.log("File needs preprocessing, showing modal"),Je(k),Ke(!0)):(console.log("File does not need preprocessing, replacing last file"),b.length>1?(_(Te=>{const je=[...Te];return je[je.length-1]=k,je}),b.length===1&&x(k)):(x(k),_([k])))}};async function tr(k){const Me=await k.text();try{return Me?JSON.parse(Me):{}}catch{return{error:Me}}}function Pr(k,Me){const Te=k instanceof Error?k.message:`Failed to ${Me.toLowerCase()}`;alert(Te)}async function nr(){if(b.length!==0){u(!0);try{b.length===1?await Cu():await _s()}catch(k){Pr(k,"Upload")}finally{u(!1)}}}async function Cu(){console.log("DEBUG: Starting single image upload");const k=new FormData;k.append("file",b[0]),k.append("title",fe),k.append("image_type",ce),T&&k.append("source",T),D&&k.append("event_type",D),V&&k.append("epsg",V),te.length>0&&te.forEach(ge=>k.append("countries",ge)),ce==="drone_image"&&(H&&k.append("center_lon",H),ne&&k.append("center_lat",ne),xe&&k.append("amsl_m",xe),G&&k.append("agl_m",G),N&&k.append("heading_deg",N),oe&&k.append("yaw_deg",oe),se&&k.append("pitch_deg",se),J&&k.append("roll_deg",J),Y&&k.append("rtk_fix",Y.toString()),tn&&k.append("std_h_m",tn),lt&&k.append("std_v_m",lt));const Me=localStorage.getItem(Il);Me&&k.append("model_name",Me);const Te=await fetch("/api/images/",{method:"POST",body:k}),je=await tr(Te);if(!Te.ok)throw new Error(je.error||"Upload failed");console.log("DEBUG: Single upload response:",je),await ei(je,!1)}async function _s(){console.log("DEBUG: Starting multi-image upload");const k=new FormData;b.forEach(ge=>k.append("files",ge)),k.append("title",fe),k.append("image_type",ce),ct.forEach((ge,Re)=>{ge.source&&k.append(`source_${Re}`,ge.source),ge.eventType&&k.append(`event_type_${Re}`,ge.eventType),ge.epsg&&k.append(`epsg_${Re}`,ge.epsg),ge.countries.length>0&&ge.countries.forEach(rt=>k.append(`countries_${Re}`,rt)),ce==="drone_image"&&(ge.centerLon&&k.append(`center_lon_${Re}`,ge.centerLon),ge.centerLat&&k.append(`center_lat_${Re}`,ge.centerLat),ge.amslM&&k.append(`amsl_m_${Re}`,ge.amslM),ge.aglM&&k.append(`agl_m_${Re}`,ge.aglM),ge.headingDeg&&k.append(`heading_deg_${Re}`,ge.headingDeg),ge.yawDeg&&k.append(`yaw_deg_${Re}`,ge.yawDeg),ge.pitchDeg&&k.append(`pitch_deg_${Re}`,ge.pitchDeg),ge.rollDeg&&k.append(`roll_deg_${Re}`,ge.rollDeg),ge.rtkFix&&k.append(`rtk_fix_${Re}`,ge.rtkFix.toString()),ge.stdHM&&k.append(`std_h_m_${Re}`,ge.stdHM),ge.stdVM&&k.append(`std_v_m_${Re}`,ge.stdVM))});const Me=localStorage.getItem(Il);Me&&k.append("model_name",Me);const Te=await fetch("/api/images/multi",{method:"POST",body:k}),je=await tr(Te);if(!Te.ok)throw new Error(je.error||"Upload failed");console.log("DEBUG: Multi upload response:",je),await ei(je,!0)}async function ei(k,Me){Et(k.image_url),k.preprocessing_info&&typeof k.preprocessing_info=="object"&&"was_preprocessed"in k.preprocessing_info&&k.preprocessing_info.was_preprocessed===!0&&(Ve(k.preprocessing_info),me(!0));const Te=k.image_id;if(!Te)throw new Error("Upload failed: image_id not found");if(cn(Te),Me)if(k.image_ids&&Array.isArray(k.image_ids)){const We=k.image_ids;console.log("DEBUG: Storing image IDs for multi-upload:",We),bt(We)}else console.log("DEBUG: Multi-upload but no image_ids found, using single ID"),bt([Te]);else console.log("DEBUG: Storing single image ID:",Te),bt([Te]);const je=k,ge=je.raw_json?.fallback_info;ge&&(Ce({originalModel:ge.original_model,fallbackModel:ge.fallback_model,reason:ge.reason}),Pe(!0));const Re=je.raw_json?.metadata;if(Re){const We=Re.metadata||Re;if(We&&typeof We=="object"){const $t=[];if(Me){const it=We.metadata_images;if(it&&typeof it=="object")for(let Zt=1;Zt<=b.length;Zt++){const mr=`image${Zt}`,co=it[mr];if(co&&typeof co=="object"){const Rt=co;$t.push({source:Rt.source||"",eventType:Rt.type||"",epsg:Rt.epsg||"",countries:Array.isArray(Rt.countries)?Rt.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 Zt={source:We.source||"",eventType:We.type||"",epsg:We.epsg||"",countries:Array.isArray(We.countries)?We.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};for(let mr=0;mr0){const it=$t[0];if(We&&typeof We=="object"){const Zt=We.title;Zt&&I(Zt||"")}M(it.source||""),$(it.eventType||""),Z(it.epsg||""),de(it.countries||[]),ce==="drone_image"&&(W(it.centerLon||""),he(it.centerLat||""),be(it.amslM||""),le(it.aglM||""),U(it.headingDeg||""),Se(it.yawDeg||""),re(it.pitchDeg||""),Q(it.rollDeg||""),tt(it.rtkFix||!1),Wt(it.stdHM||""),wt(it.stdVM||""))}}}const rt=je.raw_json?.metadata;rt&&(rt.description&&Qr(rt.description),rt.analysis&&Nr(rt.analysis),rt.recommended_actions&&Fn(rt.recommended_actions)),je.generated&&dn(je.generated),ji("2a")}async function Su(){if(console.log("handleSubmit called with:",{uploadedImageId:Ft,title:fe,draft:Nn}),!Ft)return alert("No image to submit");if(!Yn){Ei(!0);return}try{const k=Lt.length>0?Lt:[Ft];console.log("DEBUG: Submit - Using image IDs:",k),console.log("DEBUG: Submit - uploadedImageIds:",Lt),console.log("DEBUG: Submit - uploadedImageId:",Ft);for(let Re=0;Re{zn(!1),o(1),x(null),_([]),C(null),cn(null),bt([]),Et(null),I(""),M(""),$(""),Z(""),de([]),W(""),he(""),be(""),le(""),U(""),Se(""),re(""),Q(""),tt(!1),Wt(""),wt(""),kn({accuracy:50,context:50,usability:50}),dn(""),Qr(""),Nr(""),Fn(""),ht([]),Pe(!1),Ce(null),me(!1),Ve(null),Ke(!1),Je(null),Tn(!1),ze(""),fn(!1),Pn(null),Be(!1),jt(null),n("/upload",{replace:!0})},lo=y.useCallback(k=>{k==="/upload"||k==="/"||(v.current?(ue(k),z(!0)):n(k))},[n]);async function Mi(){if(K&&v.current)try{await fetch(`/api/images/${v.current}`,{method:"DELETE"}),z(!1),ue(null),n(K)}catch(k){console.error("Failed to delete image before navigation:",k),z(!1),ue(null),n(K)}}const Li=async()=>{if(qe){Tn(!0),ze("Starting file conversion...");try{const k=new FormData;k.append("file",qe),k.append("preprocess_only","true"),ze("Converting file format...");const Me=await fetch("/api/images/preprocess",{method:"POST",body:k});if(!Me.ok)throw new Error("Preprocessing failed");const Te=await Me.json();ze("Finalizing conversion...");const je=atob(Te.processed_content),ge=new Uint8Array(je.length);for(let We=0;We[...We,Re]),C(rt),ze("Conversion complete!"),setTimeout(()=>{Ke(!1),Je(null),Tn(!1),ze("")},1e3)}catch(k){console.error("Preprocessing error:",k),ze("Conversion failed. Please try again."),setTimeout(()=>{Ke(!1),Je(null),Tn(!1),ze("")},2e3)}}},ti=()=>{Ke(!1),Je(null),Tn(!1),ze("")},uo=async k=>{f(!0);try{const Me=k.map(async Re=>{const rt=await fetch(`/api/images/${Re}`);if(!rt.ok)throw new Error(`Failed to fetch image ${Re}`);const We=await rt.json(),$t=await fetch(`/api/images/${Re}/file`);if(!$t.ok)throw new Error(`Failed to fetch image file ${Re}`);const it=await $t.blob(),Zt=We.file_key.split("/").pop()||`contributed_${Re}.png`;return{file:new File([it],Zt,{type:it.type}),imageData:We}}),Te=await Promise.all(Me),je=Te.map(Re=>Re.file),ge=Te[0]?.imageData;_(je),bt(k),k.length===1&&cn(k[0]),je.length>=1&&x(je[0]),ge?.image_type&&O(ge.image_type)}catch(Me){console.error("Failed to fetch contributed images:",Me),alert(`Failed to load contributed images: ${Me instanceof Error?Me.message:"Unknown error"}`)}finally{f(!1)}};return y.useEffect(()=>{Promise.all([fetch("/api/sources").then(k=>k.json()),fetch("/api/types").then(k=>k.json()),fetch("/api/spatial-references").then(k=>k.json()),fetch("/api/image-types").then(k=>k.json()),fetch("/api/countries").then(k=>k.json()),fetch("/api/models").then(k=>k.json())]).then(([k,Me,Te,je,ge,Re])=>{!localStorage.getItem(Il)&&Re?.length&&localStorage.setItem(Il,Re[0].m_code),xt(k),nn(Me),sn(Te),Gr(je),un(ge),k.length>0&&M(k[0].s_code),$("OTHER"),Z("OTHER"),je.length>0&&!e.get("imageType")&&!ce&&O(je[0].image_type)})},[e,ce]),y.useEffect(()=>(window.confirmNavigationIfNeeded=k=>{lo(k)},()=>{delete window.confirmNavigationIfNeeded}),[lo]),y.useEffect(()=>{const k=je=>{if(v.current){const ge="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=ge,ge}},Me=()=>{v.current&&fetch(`/api/images/${v.current}`,{method:"DELETE"}).catch(console.error)},Te=je=>{const ge=je.target,Re=ge.closest("a[href]")||ge.closest("[data-navigate]");if(Re&&v.current){const rt=Re.getAttribute("href")||Re.getAttribute("data-navigate");rt&&rt!=="#"&&!rt.startsWith("javascript:")&&!rt.startsWith("mailto:")&&(je.preventDefault(),je.stopPropagation(),lo(rt))}};return window.addEventListener("beforeunload",k),document.addEventListener("click",Te,!0),()=>{window.removeEventListener("beforeunload",k),document.removeEventListener("click",Te,!0),Me()}},[lo]),y.useEffect(()=>{if(!m){C(null);return}const k=URL.createObjectURL(m);return C(k),()=>URL.revokeObjectURL(k)},[m]),y.useEffect(()=>{const k=e.get("contribute"),Me=e.get("imageIds");if(k==="true"&&Me){const Te=Me.split(",").filter(je=>je.trim());Te.length>0&&uo(Te)}},[e]),y.useEffect(()=>{i==="2b"&&Ge(0)},[i]),g.jsxs(Gf,{children:[i!==3&&g.jsx("div",{className:"max-w-7xl mx-auto",children:g.jsxs("div",{className:q.uploadContainer,"data-step":i,children:[i===1&&!e.get("step")&&!d&&g.jsx(Ig,{files:b,file:m,preview:w,imageType:ce,onFileChange:Un,onRemoveImage:ia,onAddImage:ra,onImageTypeChange:Jr,onChangeFile:er}),i===1&&e.get("contribute")==="true"&&!d&&b.length>0&&g.jsx(Ig,{files:b,file:m,preview:w,imageType:ce,onFileChange:Un,onRemoveImage:ia,onAddImage:ra,onImageTypeChange:Jr,onChangeFile:er}),s&&g.jsxs("div",{className:q.loadingContainer,children:[g.jsx(Gl,{className:"text-ifrcRed"}),g.jsx("p",{className:q.loadingText,children:"Generating..."})]}),d&&g.jsxs("div",{className:q.loadingContainer,children:[g.jsx(Gl,{className:"text-ifrcRed"}),g.jsx("p",{className:q.loadingText,children:"Loading contribution..."})]}),(i===1&&!s&&!d||i===1&&e.get("contribute")==="true"&&!s&&!d&&b.length>0)&&g.jsx("div",{className:q.generateButtonContainer,children:Gt?g.jsx(He,{name:"generate-from-url",onClick:nr,children:"Generate Caption"}):g.jsx(He,{name:"generate",disabled:b.length===0,onClick:nr,children:"Generate"})}),i==="2a"&&g.jsxs("div",{className:q.step2Layout,children:[g.jsx("div",{className:q.mapColumn,children:g.jsx(Ag,{files:b,imageUrl:Gt,preview:w,onViewFullSize:k=>{Yr(k||null),Kr(!0)}})}),g.jsx("div",{className:q.contentColumn,children:g.jsxs("div",{className:q.metadataSectionCard,children:[g.jsx(Wj,{files:b,imageType:ce,title:fe,source:T,eventType:D,epsg:V,countries:te,centerLon:H,centerLat:ne,amslM:xe,aglM:G,headingDeg:N,yawDeg:oe,pitchDeg:se,rollDeg:J,rtkFix:Y,stdHM:tn,stdVM:lt,metadataArray:ct,sources:gt,types:_t,spatialReferences:bn,imageTypes:En,countriesOptions:ln,onTitleChange:k=>I(k||""),onSourceChange:pr,onEventTypeChange:io,onEpsgChange:Xo,onCountriesChange:oo,onCenterLonChange:ki,onCenterLatChange:ao,onAmslMChange:yu,onAglMChange:wu,onHeadingDegChange:Jo,onYawDegChange:xs,onPitchDegChange:ea,onRollDegChange:Ti,onRtkFixChange:xu,onStdHMChange:ta,onStdVMChange:nt,onImageTypeChange:Jr,updateMetadataForImage:oa}),g.jsxs("div",{className:q.confirmSection,children:[g.jsx(df,{name:"delete",variant:"tertiary",onClick:aa,title:"Delete",ariaLabel:"Delete uploaded image",children:g.jsx(uf,{})}),g.jsx(He,{name:"confirm-metadata",onClick:()=>ji("2b"),children:"Next"})]})]})})]}),i==="2b"&&g.jsxs("div",{className:q.step2bLayout,children:[g.jsxs("div",{className:`${q.topRow} ${Yn?q.ratingHidden:""}`,children:[g.jsx("div",{className:q.imageSection,children:g.jsx(Ag,{files:b,imageUrl:Gt,preview:w,onViewFullSize:k=>{Yr(k||null),Kr(!0)},currentImageIndex:jr,onGoToPrevious:Cs,onGoToNext:na,onGoToImage:Ss,showCarousel:!0})}),!Yn&&g.jsx("div",{className:q.metadataSectionCard,children:g.jsx(Gj,{isPerformanceConfirmed:Yn,scores:Kn,onScoreChange:(k,Me)=>kn(Te=>({...Te,[k]:Me})),onConfirmRatings:()=>zn(!0),onEditRatings:()=>zn(!1)})})]}),g.jsx("div",{className:q.metadataSectionCard,children:g.jsx(Zj,{description:Zr,analysis:Er,recommendedActions:kr,onDescriptionChange:k=>Qr(k||""),onAnalysisChange:k=>Nr(k||""),onRecommendedActionsChange:k=>Fn(k||""),onBack:()=>ji("2a"),onDelete:aa,onSubmit:Su,onEditRatings:()=>zn(!1),isPerformanceConfirmed:Yn})})]})]})}),i===3&&g.jsxs("div",{className:q.successContainer,children:[g.jsx(Zi,{level:2,className:q.successHeading,children:"Saved!"}),g.jsx("p",{className:q.successText,children:e.get("contribute")==="true"?"Your contribution has been successfully saved.":"Your caption has been successfully saved."}),g.jsx("div",{className:q.successButton,children:g.jsx(He,{name:"upload-another",onClick:()=>{sa()},children:"Upload Another"})})]}),g.jsx(Qj,{isOpen:$n,imageUrl:Gt,preview:w,selectedImageData:bi,onClose:()=>{Kr(!1),Yr(null)}}),g.jsx(Kj,{isOpen:hr,onClose:()=>Ei(!1)}),g.jsx(Yj,{isOpen:Tr,onConfirm:so,onCancel:()=>j(!1)}),g.jsx(Xj,{isOpen:R,onConfirm:Mi,onCancel:()=>z(!1)}),g.jsx(Jj,{isOpen:Ne,fallbackInfo:ye,onClose:()=>Pe(!1)}),g.jsx(eP,{isOpen:ve,preprocessingInfo:Fe,onClose:()=>me(!1)}),g.jsx(tP,{isOpen:Tt,preprocessingFile:qe,isPreprocessing:Xn,preprocessingProgress:jn,onConfirm:Li,onCancel:ti}),g.jsx(nP,{isOpen:Ni,unsupportedFile:Bn,onClose:()=>fn(!1)}),g.jsx(rP,{isOpen:Xr,oversizedFile:ot,onClose:()=>Be(!1),onCancel:()=>Be(!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",dt={helpContainer:iP,helpSection:oP,sectionHeader:aP,sectionTitle:sP,sectionContent:lP,guidelinesList:uP,buttonContainer:cP};function dP(){const e=fs(),{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:dt.helpContainer,children:g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"Introduction"})}),g.jsx("div",{className:dt.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:dt.buttonContainer,children:g.jsx(He,{name:"upload-now",variant:"secondary",onClick:i,children:"Upload now →"})})]}),g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"Guidelines"})}),g.jsxs("div",{className:dt.sectionContent,children:["To make the process smoother, please follow the guidelines below:",g.jsxs("ul",{className:dt.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:dt.buttonContainer,children:g.jsx(He,{name:"see-examples",variant:"secondary",onClick:o,children:"See examples →"})})]}),g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"VLMs"})}),g.jsx("div",{className:dt.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:dt.buttonContainer,children:g.jsx(He,{name:"view-vlm-details",variant:"secondary",onClick:s,children:"View VLM details →"})})]}),g.jsxs("div",{className:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"Dataset"})}),g.jsx("div",{className:dt.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:dt.buttonContainer,children:g.jsx(He,{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:dt.helpSection,children:[g.jsx("div",{className:dt.sectionHeader,children:g.jsx(Zi,{level:3,className:dt.sectionTitle,children:"Contact us"})}),g.jsx("div",{className:dt.sectionContent,children:"Need help or have questions about PromptAid Vision? Our team is here to support you."}),g.jsx("div",{className:dt.buttonContainer,children:g.jsx(He,{name:"contact-support",variant:"secondary",disabled:!0,children:"Get in touch →"})})]})]})})})}const fP=y.createContext(void 0),hP=({children:e})=>{const[n,i]=y.useState(!1),[o,s]=y.useState(!0),u=async()=>{const v=localStorage.getItem("adminToken");if(!v){i(!1),s(!1);return}try{(await fetch("/api/admin/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${v}`}})).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 v=>{try{const w=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:v})});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)};y.useEffect(()=>{u()},[]);const p={isAuthenticated:n,isLoading:o,login:d,logout:f,verifyToken:u};return g.jsx(fP.Provider,{value:p,children:e})},pP=y.lazy(()=>Qn(()=>import("./index-CLLTwnqd.js"),__vite__mapDeps([0,1]))),mP=y.lazy(()=>Qn(()=>import("./index-B5YX0VGQ.js"),__vite__mapDeps([2,3,4,5,6]))),gP=y.lazy(()=>Qn(()=>import("./AdminPage-Ba_QXeaN.js"),__vite__mapDeps([7,3,8]))),vP=y.lazy(()=>Qn(()=>import("./index-B3hZqJuM.js"),__vite__mapDeps([9,3,4,5,10])));class yP extends y.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 yi=e=>{const n=e();return n.catch(()=>{}),n},wP=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{yi(()=>Qn(()=>import("./index-CLLTwnqd.js"),__vite__mapDeps([0,1]))),yi(()=>Qn(()=>import("./index-B5YX0VGQ.js"),__vite__mapDeps([2,3,4,5,6]))),yi(()=>Qn(()=>import("./AdminPage-Ba_QXeaN.js"),__vite__mapDeps([7,3,8]))),yi(()=>Qn(()=>import("./index-B3hZqJuM.js"),__vite__mapDeps([9,3,4,5,10])))}):setTimeout(()=>{yi(()=>Qn(()=>import("./index-CLLTwnqd.js"),__vite__mapDeps([0,1]))),yi(()=>Qn(()=>import("./index-B5YX0VGQ.js"),__vite__mapDeps([2,3,4,5,6]))),yi(()=>Qn(()=>import("./AdminPage-Ba_QXeaN.js"),__vite__mapDeps([7,3,8]))),yi(()=>Qn(()=>import("./index-B3hZqJuM.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(y.Suspense,{fallback:g.jsx("div",{children:"Loading Analytics..."}),children:g.jsx(pP,{})})},{path:"/explore",element:g.jsx(y.Suspense,{fallback:g.jsx("div",{children:"Loading Explore..."}),children:g.jsx(mP,{})})},{path:"/help",element:g.jsx(dP,{})},{path:"/admin",element:g.jsx(y.Suspense,{fallback:g.jsx("div",{children:"Loading Admin..."}),children:g.jsx(gP,{})})},{path:"/map/:mapId",element:g.jsx(y.Suspense,{fallback:g.jsx("div",{children:"Loading Map Details..."}),children:g.jsx(vP,{})})}]}],{basename:"/"});function CP(){const[e,n]=y.useState([]);y.useEffect(()=>{wP()},[]);const i=y.useCallback(f=>{n(p=>Bx([...p,f],v=>v.name)??p)},[n]),o=y.useCallback(f=>{n(p=>{const v=p.findIndex(C=>C.name===f);if(v===-1)return p;const w=[...p];return w.splice(v,1),w})},[n]),s=y.useCallback((f,p)=>{n(v=>{const w=v.findIndex(m=>m.name===f);if(w===-1)return v;const C=[...v];return C[w]={...C[w],...p},C})},[n]),u=y.useMemo(()=>({alerts:e,addAlert:i,removeAlert:o,updateAlert:s}),[e,i,o,s]),d=y.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:",y.version,"createContext exists?",!!y.createContext);V1.createRoot(document.getElementById("root")).render(g.jsx(y.StrictMode,{children:g.jsx(SP,{})}));export{bC as A,Qn as B,EP as C,uf as D,TP as E,Zi as F,qi as G,bP as H,PC as I,MC as J,Qj as K,bT as L,jC as M,Gf as N,kt as O,TC as P,PP as Q,u0 as R,c0 as S,Mg as T,jP as U,fP as V,_P as W,zg as X,Gl 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,dr as k,qx as l,FE as m,He as n,Oe as o,Zx as p,Qa as q,y as r,l0 as s,i0 as t,Dx as u,fs as v,Ko as w,qj as x,kP as y,cr as z};