intlayer-editor 5.3.0 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var KL=Object.defineProperty;var $L=(e,t,n)=>t in e?KL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>$L(e,typeof t!="symbol"?t+"":t,n);function YL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in e)){const o=Object.getOwnPropertyDescriptor(r,u);o&&Object.defineProperty(e,u,o.get?o:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=n(u);fetch(u.href,o)}})();function lh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lp={exports:{}},Tl={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var w3;function ZL(){if(w3)return Tl;w3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,u,o){var l=null;if(o!==void 0&&(l=""+o),u.key!==void 0&&(l=""+u.key),"key"in u){o={};for(var d in u)d!=="key"&&(o[d]=u[d])}else o=u;return u=o.ref,{$$typeof:e,type:r,key:l,ref:u!==void 0?u:null,props:o}}return Tl.Fragment=t,Tl.jsx=n,Tl.jsxs=n,Tl}var M3;function WL(){return M3||(M3=1,lp.exports=ZL()),lp.exports}var N=WL(),cp={exports:{}},Xe={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var P3;function qL(){if(P3)return Xe;P3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.iterator;function g(P){return P===null||typeof P!="object"?null:(P=E&&P[E]||P["@@iterator"],typeof P=="function"?P:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function v(P,W,z){this.props=P,this.context=W,this.refs=C,this.updater=z||_}v.prototype.isReactComponent={},v.prototype.setState=function(P,W){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,W,"setState")},v.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function R(){}R.prototype=v.prototype;function T(P,W,z){this.props=P,this.context=W,this.refs=C,this.updater=z||_}var b=T.prototype=new R;b.constructor=T,S(b,v.prototype),b.isPureReactComponent=!0;var L=Array.isArray,x={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function O(P,W,z,re,ne,de){return z=de.ref,{$$typeof:e,type:P,key:W,ref:z!==void 0?z:null,props:de}}function H(P,W){return O(P.type,W,void 0,void 0,void 0,P.props)}function U(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function G(P){var W={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(z){return W[z]})}var fe=/\/+/g;function ae(P,W){return typeof P=="object"&&P!==null&&P.key!=null?G(""+P.key):W.toString(36)}function ce(){}function Z(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(ce,ce):(P.status="pending",P.then(function(W){P.status==="pending"&&(P.status="fulfilled",P.value=W)},function(W){P.status==="pending"&&(P.status="rejected",P.reason=W)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function te(P,W,z,re,ne){var de=typeof P;(de==="undefined"||de==="boolean")&&(P=null);var Ee=!1;if(P===null)Ee=!0;else switch(de){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(P.$$typeof){case e:case t:Ee=!0;break;case m:return Ee=P._init,te(Ee(P._payload),W,z,re,ne)}}if(Ee)return ne=ne(P),Ee=re===""?"."+ae(P,0):re,L(ne)?(z="",Ee!=null&&(z=Ee.replace(fe,"$&/")+"/"),te(ne,W,z,"",function(Ve){return Ve})):ne!=null&&(U(ne)&&(ne=H(ne,z+(ne.key==null||P&&P.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+Ee)),W.push(ne)),1;Ee=0;var pe=re===""?".":re+":";if(L(P))for(var ve=0;ve<P.length;ve++)re=P[ve],de=pe+ae(re,ve),Ee+=te(re,W,z,de,ne);else if(ve=g(P),typeof ve=="function")for(P=ve.call(P),ve=0;!(re=P.next()).done;)re=re.value,de=pe+ae(re,ve++),Ee+=te(re,W,z,de,ne);else if(de==="object"){if(typeof P.then=="function")return te(Z(P),W,z,re,ne);throw W=String(P),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function V(P,W,z){if(P==null)return P;var re=[],ne=0;return te(P,re,"","",function(de){return W.call(z,de,ne++)}),re}function ee(P){if(P._status===-1){var W=P._result;W=W(),W.then(function(z){(P._status===0||P._status===-1)&&(P._status=1,P._result=z)},function(z){(P._status===0||P._status===-1)&&(P._status=2,P._result=z)}),P._status===-1&&(P._status=0,P._result=W)}if(P._status===1)return P._result.default;throw P._result}var Q=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function Ae(){}return Xe.Children={map:V,forEach:function(P,W,z){V(P,function(){W.apply(this,arguments)},z)},count:function(P){var W=0;return V(P,function(){W++}),W},toArray:function(P){return V(P,function(W){return W})||[]},only:function(P){if(!U(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Xe.Component=v,Xe.Fragment=n,Xe.Profiler=u,Xe.PureComponent=T,Xe.StrictMode=r,Xe.Suspense=f,Xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,Xe.act=function(){throw Error("act(...) is not supported in production builds of React.")},Xe.cache=function(P){return function(){return P.apply(null,arguments)}},Xe.cloneElement=function(P,W,z){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var re=S({},P.props),ne=P.key,de=void 0;if(W!=null)for(Ee in W.ref!==void 0&&(de=void 0),W.key!==void 0&&(ne=""+W.key),W)!B.call(W,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&W.ref===void 0||(re[Ee]=W[Ee]);var Ee=arguments.length-2;if(Ee===1)re.children=z;else if(1<Ee){for(var pe=Array(Ee),ve=0;ve<Ee;ve++)pe[ve]=arguments[ve+2];re.children=pe}return O(P.type,ne,void 0,void 0,de,re)},Xe.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},Xe.createElement=function(P,W,z){var re,ne={},de=null;if(W!=null)for(re in W.key!==void 0&&(de=""+W.key),W)B.call(W,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ne[re]=W[re]);var Ee=arguments.length-2;if(Ee===1)ne.children=z;else if(1<Ee){for(var pe=Array(Ee),ve=0;ve<Ee;ve++)pe[ve]=arguments[ve+2];ne.children=pe}if(P&&P.defaultProps)for(re in Ee=P.defaultProps,Ee)ne[re]===void 0&&(ne[re]=Ee[re]);return O(P,de,void 0,void 0,null,ne)},Xe.createRef=function(){return{current:null}},Xe.forwardRef=function(P){return{$$typeof:d,render:P}},Xe.isValidElement=U,Xe.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:ee}},Xe.memo=function(P,W){return{$$typeof:h,type:P,compare:W===void 0?null:W}},Xe.startTransition=function(P){var W=x.T,z={};x.T=z;try{var re=P(),ne=x.S;ne!==null&&ne(z,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(Ae,Q)}catch(de){Q(de)}finally{x.T=W}},Xe.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},Xe.use=function(P){return x.H.use(P)},Xe.useActionState=function(P,W,z){return x.H.useActionState(P,W,z)},Xe.useCallback=function(P,W){return x.H.useCallback(P,W)},Xe.useContext=function(P){return x.H.useContext(P)},Xe.useDebugValue=function(){},Xe.useDeferredValue=function(P,W){return x.H.useDeferredValue(P,W)},Xe.useEffect=function(P,W){return x.H.useEffect(P,W)},Xe.useId=function(){return x.H.useId()},Xe.useImperativeHandle=function(P,W,z){return x.H.useImperativeHandle(P,W,z)},Xe.useInsertionEffect=function(P,W){return x.H.useInsertionEffect(P,W)},Xe.useLayoutEffect=function(P,W){return x.H.useLayoutEffect(P,W)},Xe.useMemo=function(P,W){return x.H.useMemo(P,W)},Xe.useOptimistic=function(P,W){return x.H.useOptimistic(P,W)},Xe.useReducer=function(P,W,z){return x.H.useReducer(P,W,z)},Xe.useRef=function(P){return x.H.useRef(P)},Xe.useState=function(P){return x.H.useState(P)},Xe.useSyncExternalStore=function(P,W,z){return x.H.useSyncExternalStore(P,W,z)},Xe.useTransition=function(){return x.H.useTransition()},Xe.version="19.0.0",Xe}var H3;function kc(){return H3||(H3=1,cp.exports=qL()),cp.exports}var y=kc();const $e=lh(y),XL=YL({__proto__:null,default:$e},[y]);var dp={exports:{}},Dl={},fp={exports:{}},hp={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var U3;function QL(){return U3||(U3=1,function(e){function t(V,ee){var Q=V.length;V.push(ee);e:for(;0<Q;){var Ae=Q-1>>>1,P=V[Ae];if(0<u(P,ee))V[Ae]=ee,V[Q]=P,Q=Ae;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var ee=V[0],Q=V.pop();if(Q!==ee){V[0]=Q;e:for(var Ae=0,P=V.length,W=P>>>1;Ae<W;){var z=2*(Ae+1)-1,re=V[z],ne=z+1,de=V[ne];if(0>u(re,Q))ne<P&&0>u(de,re)?(V[Ae]=de,V[ne]=Q,Ae=ne):(V[Ae]=re,V[z]=Q,Ae=z);else if(ne<P&&0>u(de,Q))V[Ae]=de,V[ne]=Q,Ae=ne;else break e}}return ee}function u(V,ee){var Q=V.sortIndex-ee.sortIndex;return Q!==0?Q:V.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,d=l.now();e.unstable_now=function(){return l.now()-d}}var f=[],h=[],m=1,E=null,g=3,_=!1,S=!1,C=!1,v=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function b(V){for(var ee=n(h);ee!==null;){if(ee.callback===null)r(h);else if(ee.startTime<=V)r(h),ee.sortIndex=ee.expirationTime,t(f,ee);else break;ee=n(h)}}function L(V){if(C=!1,b(V),!S)if(n(f)!==null)S=!0,Z();else{var ee=n(h);ee!==null&&te(L,ee.startTime-V)}}var x=!1,B=-1,O=5,H=-1;function U(){return!(e.unstable_now()-H<O)}function G(){if(x){var V=e.unstable_now();H=V;var ee=!0;try{e:{S=!1,C&&(C=!1,R(B),B=-1),_=!0;var Q=g;try{t:{for(b(V),E=n(f);E!==null&&!(E.expirationTime>V&&U());){var Ae=E.callback;if(typeof Ae=="function"){E.callback=null,g=E.priorityLevel;var P=Ae(E.expirationTime<=V);if(V=e.unstable_now(),typeof P=="function"){E.callback=P,b(V),ee=!0;break t}E===n(f)&&r(f),b(V)}else r(f);E=n(f)}if(E!==null)ee=!0;else{var W=n(h);W!==null&&te(L,W.startTime-V),ee=!1}}break e}finally{E=null,g=Q,_=!1}ee=void 0}}finally{ee?fe():x=!1}}}var fe;if(typeof T=="function")fe=function(){T(G)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ce=ae.port2;ae.port1.onmessage=G,fe=function(){ce.postMessage(null)}}else fe=function(){v(G,0)};function Z(){x||(x=!0,fe())}function te(V,ee){B=v(function(){V(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){S||_||(S=!0,Z())},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(V){switch(g){case 1:case 2:case 3:var ee=3;break;default:ee=g}var Q=g;g=ee;try{return V()}finally{g=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=g;g=V;try{return ee()}finally{g=Q}},e.unstable_scheduleCallback=function(V,ee,Q){var Ae=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?Ae+Q:Ae):Q=Ae,V){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=Q+P,V={id:m++,callback:ee,priorityLevel:V,startTime:Q,expirationTime:P,sortIndex:-1},Q>Ae?(V.sortIndex=Q,t(h,V),n(f)===null&&V===n(h)&&(C?(R(B),B=-1):C=!0,te(L,Q-Ae))):(V.sortIndex=P,t(f,V),S||_||(S=!0,Z())),V},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(V){var ee=g;return function(){var Q=g;g=ee;try{return V.apply(this,arguments)}finally{g=Q}}}}(hp)),hp}var k3;function JL(){return k3||(k3=1,fp.exports=QL()),fp.exports}var Ap={exports:{}},gn={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var G3;function ew(){if(G3)return gn;G3=1;var e=kc();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(f,h,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:f,containerInfo:h,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gn.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},gn.flushSync=function(f){var h=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=h,r.p=m,r.d.f()}},gn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},gn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},gn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,E=d(m,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:E,integrity:g,fetchPriority:_}):m==="script"&&r.d.X(f,{crossOrigin:E,integrity:g,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},gn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},gn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,E=d(m,h.crossOrigin);r.d.L(f,m,{crossOrigin:E,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},gn.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=d(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},gn.requestFormReset=function(f){r.d.r(f)},gn.unstable_batchedUpdates=function(f,h){return f(h)},gn.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},gn.useFormStatus=function(){return l.H.useHostTransitionStatus()},gn.version="19.0.0",gn}var V3;function GR(){if(V3)return Ap.exports;V3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ap.exports=ew(),Ap.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var j3;function tw(){if(j3)return Dl;j3=1;var e=JL(),t=kc(),n=GR();function r(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}var o=Symbol.for("react.element"),l=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),g=Symbol.for("react.consumer"),_=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),L=Symbol.for("react.memo_cache_sentinel"),x=Symbol.iterator;function B(a){return a===null||typeof a!="object"?null:(a=x&&a[x]||a["@@iterator"],typeof a=="function"?a:null)}var O=Symbol.for("react.client.reference");function H(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===O?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case f:return"Fragment";case d:return"Portal";case m:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case v:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case _:return(a.displayName||"Context")+".Provider";case g:return(a._context.displayName||"Context")+".Consumer";case S:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case R:return s=a.displayName||null,s!==null?s:H(a.type)||"Memo";case T:s=a._payload,a=a._init;try{return H(a(s))}catch{}}return null}var U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.assign,fe,ae;function ce(a){if(fe===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);fe=s&&s[1]||"",ae=-1<c.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+fe+a+ae}var Z=!1;function te(a,s){if(!a||Z)return"";Z=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var A={DetermineComponentFrameRoot:function(){try{if(s){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ue){var J=ue}Reflect.construct(a,[],he)}else{try{he.call()}catch(ue){J=ue}a.call(he.prototype)}}else{try{throw Error()}catch(ue){J=ue}(he=a())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ue){if(ue&&J&&typeof ue.stack=="string")return[ue.stack,J.stack]}return[null,null]}};A.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(A.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(A.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=A.DetermineComponentFrameRoot(),D=I[0],F=I[1];if(D&&F){var M=D.split(`
|
|
45
|
+
`),$=F.split(`
|
|
46
|
+
`);for(p=A=0;A<M.length&&!M[A].includes("DetermineComponentFrameRoot");)A++;for(;p<$.length&&!$[p].includes("DetermineComponentFrameRoot");)p++;if(A===M.length||p===$.length)for(A=M.length-1,p=$.length-1;1<=A&&0<=p&&M[A]!==$[p];)p--;for(;1<=A&&0<=p;A--,p--)if(M[A]!==$[p]){if(A!==1||p!==1)do if(A--,p--,0>p||M[A]!==$[p]){var se=`
|
|
47
|
+
`+M[A].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),se}while(1<=A&&0<=p);break}}}finally{Z=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?ce(c):""}function V(a){switch(a.tag){case 26:case 27:case 5:return ce(a.type);case 16:return ce("Lazy");case 13:return ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return a=te(a.type,!1),a;case 11:return a=te(a.type.render,!1),a;case 1:return a=te(a.type,!0),a;default:return""}}function ee(a){try{var s="";do s+=V(a),a=a.return;while(a);return s}catch(c){return`
|
|
48
|
+
Error generating stack: `+c.message+`
|
|
49
|
+
`+c.stack}}function Q(a){var s=a,c=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(c=s.return),a=s.return;while(a)}return s.tag===3?c:null}function Ae(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function P(a){if(Q(a)!==a)throw Error(r(188))}function W(a){var s=a.alternate;if(!s){if(s=Q(a),s===null)throw Error(r(188));return s!==a?null:a}for(var c=a,A=s;;){var p=c.return;if(p===null)break;var I=p.alternate;if(I===null){if(A=p.return,A!==null){c=A;continue}break}if(p.child===I.child){for(I=p.child;I;){if(I===c)return P(p),a;if(I===A)return P(p),s;I=I.sibling}throw Error(r(188))}if(c.return!==A.return)c=p,A=I;else{for(var D=!1,F=p.child;F;){if(F===c){D=!0,c=p,A=I;break}if(F===A){D=!0,A=p,c=I;break}F=F.sibling}if(!D){for(F=I.child;F;){if(F===c){D=!0,c=I,A=p;break}if(F===A){D=!0,A=I,c=p;break}F=F.sibling}if(!D)throw Error(r(189))}}if(c.alternate!==A)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:s}function z(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=z(a),s!==null)return s;a=a.sibling}return null}var re=Array.isArray,ne=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},Ee=[],pe=-1;function ve(a){return{current:a}}function Ve(a){0>pe||(a.current=Ee[pe],Ee[pe]=null,pe--)}function we(a,s){pe++,Ee[pe]=a.current,a.current=s}var Ze=ve(null),at=ve(null),It=ve(null),Jt=ve(null);function yr(a,s){switch(we(It,s),we(at,a),we(Ze,null),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?c3(s):0;break;default:if(a=a===8?s.parentNode:s,s=a.tagName,a=a.namespaceURI)a=c3(a),s=d3(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Ve(Ze),we(Ze,s)}function kn(){Ve(Ze),Ve(at),Ve(It)}function Hr(a){a.memoizedState!==null&&we(Jt,a);var s=Ze.current,c=d3(s,a.type);s!==c&&(we(at,a),we(Ze,c))}function k(a){at.current===a&&(Ve(Ze),Ve(at)),Jt.current===a&&(Ve(Jt),Il._currentValue=de)}var X=Object.prototype.hasOwnProperty,ie=e.unstable_scheduleCallback,Ce=e.unstable_cancelCallback,Ie=e.unstable_shouldYield,Se=e.unstable_requestPaint,Be=e.unstable_now,Je=e.unstable_getCurrentPriorityLevel,Mt=e.unstable_ImmediatePriority,Pt=e.unstable_UserBlockingPriority,Gn=e.unstable_NormalPriority,nA=e.unstable_LowPriority,Ka=e.unstable_IdlePriority,Bo=e.log,rA=e.unstable_setDisableYieldValue,ji=null,Rn=null;function Ad(a){if(Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(ji,a,void 0,(a.current.flags&128)===128)}catch{}}function zi(a){if(typeof Bo=="function"&&rA(a),Rn&&typeof Rn.setStrictMode=="function")try{Rn.setStrictMode(ji,a)}catch{}}var Vn=Math.clz32?Math.clz32:FF,xF=Math.log,BF=Math.LN2;function FF(a){return a>>>=0,a===0?32:31-(xF(a)/BF|0)|0}var md=128,pd=4194304;function ju(a){var s=a&42;if(s!==0)return s;switch(a&-a){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:return 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 a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Ed(a,s){var c=a.pendingLanes;if(c===0)return 0;var A=0,p=a.suspendedLanes,I=a.pingedLanes,D=a.warmLanes;a=a.finishedLanes!==0;var F=c&134217727;return F!==0?(c=F&~p,c!==0?A=ju(c):(I&=F,I!==0?A=ju(I):a||(D=F&~D,D!==0&&(A=ju(D))))):(F=c&~p,F!==0?A=ju(F):I!==0?A=ju(I):a||(D=c&~D,D!==0&&(A=ju(D)))),A===0?0:s!==0&&s!==A&&(s&p)===0&&(p=A&-A,D=s&-s,p>=D||p===32&&(D&4194176)!==0)?s:A}function Fo(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function OF(a,s){switch(a){case 1:case 2:case 4:case 8:return s+250;case 16:case 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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nS(){var a=md;return md<<=1,(md&4194176)===0&&(md=128),a}function rS(){var a=pd;return pd<<=1,(pd&62914560)===0&&(pd=4194304),a}function iA(a){for(var s=[],c=0;31>c;c++)s.push(a);return s}function Oo(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function LF(a,s,c,A,p,I){var D=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var F=a.entanglements,M=a.expirationTimes,$=a.hiddenUpdates;for(c=D&~c;0<c;){var se=31-Vn(c),he=1<<se;F[se]=0,M[se]=-1;var J=$[se];if(J!==null)for($[se]=null,se=0;se<J.length;se++){var ue=J[se];ue!==null&&(ue.lane&=-536870913)}c&=~he}A!==0&&iS(a,A,0),I!==0&&p===0&&a.tag!==0&&(a.suspendedLanes|=I&~(D&~s))}function iS(a,s,c){a.pendingLanes|=s,a.suspendedLanes&=~s;var A=31-Vn(s);a.entangledLanes|=s,a.entanglements[A]=a.entanglements[A]|1073741824|c&4194218}function uS(a,s){var c=a.entangledLanes|=s;for(a=a.entanglements;c;){var A=31-Vn(c),p=1<<A;p&s|a[A]&s&&(a[A]|=s),c&=~p}}function aS(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function sS(){var a=ne.p;return a!==0?a:(a=window.event,a===void 0?32:b3(a.type))}function wF(a,s){var c=ne.p;try{return ne.p=a,s()}finally{ne.p=c}}var Ki=Math.random().toString(36).slice(2),pn="__reactFiber$"+Ki,Fn="__reactProps$"+Ki,$a="__reactContainer$"+Ki,uA="__reactEvents$"+Ki,MF="__reactListeners$"+Ki,PF="__reactHandles$"+Ki,oS="__reactResources$"+Ki,Lo="__reactMarker$"+Ki;function aA(a){delete a[pn],delete a[Fn],delete a[uA],delete a[MF],delete a[PF]}function zu(a){var s=a[pn];if(s)return s;for(var c=a.parentNode;c;){if(s=c[$a]||c[pn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(a=A3(a);a!==null;){if(c=a[pn])return c;a=A3(a)}return s}a=c,c=a.parentNode}return null}function Ya(a){if(a=a[pn]||a[$a]){var s=a.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return a}return null}function wo(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(r(33))}function Za(a){var s=a[oS];return s||(s=a[oS]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function en(a){a[Lo]=!0}var lS=new Set,cS={};function Ku(a,s){Wa(a,s),Wa(a+"Capture",s)}function Wa(a,s){for(cS[a]=s,a=0;a<s.length;a++)lS.add(s[a])}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),HF=RegExp("^[: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]*$"),dS={},fS={};function UF(a){return X.call(fS,a)?!0:X.call(dS,a)?!1:HF.test(a)?fS[a]=!0:(dS[a]=!0,!1)}function gd(a,s,c){if(UF(s))if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var A=s.toLowerCase().slice(0,5);if(A!=="data-"&&A!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+c)}}function _d(a,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+c)}}function ci(a,s,c,A){if(A===null)a.removeAttribute(c);else{switch(typeof A){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(s,c,""+A)}}function nr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function hS(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function kF(a){var s=hS(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),A=""+a[s];if(!a.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,I=c.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return p.call(this)},set:function(D){A=""+D,I.call(this,D)}}),Object.defineProperty(a,s,{enumerable:c.enumerable}),{getValue:function(){return A},setValue:function(D){A=""+D},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Sd(a){a._valueTracker||(a._valueTracker=kF(a))}function AS(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var c=s.getValue(),A="";return a&&(A=hS(a)?a.checked?"true":"false":a.value),a=A,a!==c?(s.setValue(a),!0):!1}function Nd(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var GF=/[\n"\\]/g;function rr(a){return a.replace(GF,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function sA(a,s,c,A,p,I,D,F){a.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.type=D:a.removeAttribute("type"),s!=null?D==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+nr(s)):a.value!==""+nr(s)&&(a.value=""+nr(s)):D!=="submit"&&D!=="reset"||a.removeAttribute("value"),s!=null?oA(a,D,nr(s)):c!=null?oA(a,D,nr(c)):A!=null&&a.removeAttribute("value"),p==null&&I!=null&&(a.defaultChecked=!!I),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?a.name=""+nr(F):a.removeAttribute("name")}function mS(a,s,c,A,p,I,D,F){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(a.type=I),s!=null||c!=null){if(!(I!=="submit"&&I!=="reset"||s!=null))return;c=c!=null?""+nr(c):"",s=s!=null?""+nr(s):c,F||s===a.value||(a.value=s),a.defaultValue=s}A=A??p,A=typeof A!="function"&&typeof A!="symbol"&&!!A,a.checked=F?a.checked:!!A,a.defaultChecked=!!A,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(a.name=D)}function oA(a,s,c){s==="number"&&Nd(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function qa(a,s,c,A){if(a=a.options,s){s={};for(var p=0;p<c.length;p++)s["$"+c[p]]=!0;for(c=0;c<a.length;c++)p=s.hasOwnProperty("$"+a[c].value),a[c].selected!==p&&(a[c].selected=p),p&&A&&(a[c].defaultSelected=!0)}else{for(c=""+nr(c),s=null,p=0;p<a.length;p++){if(a[p].value===c){a[p].selected=!0,A&&(a[p].defaultSelected=!0);return}s!==null||a[p].disabled||(s=a[p])}s!==null&&(s.selected=!0)}}function pS(a,s,c){if(s!=null&&(s=""+nr(s),s!==a.value&&(a.value=s),c==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=c!=null?""+nr(c):""}function ES(a,s,c,A){if(s==null){if(A!=null){if(c!=null)throw Error(r(92));if(re(A)){if(1<A.length)throw Error(r(93));A=A[0]}c=A}c==null&&(c=""),s=c}c=nr(s),a.defaultValue=c,A=a.textContent,A===c&&A!==""&&A!==null&&(a.value=A)}function Xa(a,s){if(s){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=s;return}}a.textContent=s}var VF=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function gS(a,s,c){var A=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?A?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":A?a.setProperty(s,c):typeof c!="number"||c===0||VF.has(s)?s==="float"?a.cssFloat=c:a[s]=(""+c).trim():a[s]=c+"px"}function _S(a,s,c){if(s!=null&&typeof s!="object")throw Error(r(62));if(a=a.style,c!=null){for(var A in c)!c.hasOwnProperty(A)||s!=null&&s.hasOwnProperty(A)||(A.indexOf("--")===0?a.setProperty(A,""):A==="float"?a.cssFloat="":a[A]="");for(var p in s)A=s[p],s.hasOwnProperty(p)&&c[p]!==A&&gS(a,p,A)}else for(var I in s)s.hasOwnProperty(I)&&gS(a,I,s[I])}function lA(a){if(a.indexOf("-")===-1)return!1;switch(a){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 jF=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zF=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Id(a){return zF.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var cA=null;function dA(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Qa=null,Ja=null;function SS(a){var s=Ya(a);if(s&&(a=s.stateNode)){var c=a[Fn]||null;e:switch(a=s.stateNode,s.type){case"input":if(sA(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+rr(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var A=c[s];if(A!==a&&A.form===a.form){var p=A[Fn]||null;if(!p)throw Error(r(90));sA(A,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<c.length;s++)A=c[s],A.form===a.form&&AS(A)}break e;case"textarea":pS(a,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&qa(a,!!c.multiple,s,!1)}}}var fA=!1;function NS(a,s,c){if(fA)return a(s,c);fA=!0;try{var A=a(s);return A}finally{if(fA=!1,(Qa!==null||Ja!==null)&&(u0(),Qa&&(s=Qa,a=Ja,Ja=Qa=null,SS(s),a)))for(s=0;s<a.length;s++)SS(a[s])}}function Mo(a,s){var c=a.stateNode;if(c===null)return null;var A=c[Fn]||null;if(A===null)return null;c=A[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(A=!A.disabled)||(a=a.type,A=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!A;break e;default:a=!1}if(a)return null;if(c&&typeof c!="function")throw Error(r(231,s,typeof c));return c}var hA=!1;if(li)try{var Po={};Object.defineProperty(Po,"passive",{get:function(){hA=!0}}),window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{hA=!1}var $i=null,AA=null,yd=null;function IS(){if(yd)return yd;var a,s=AA,c=s.length,A,p="value"in $i?$i.value:$i.textContent,I=p.length;for(a=0;a<c&&s[a]===p[a];a++);var D=c-a;for(A=1;A<=D&&s[c-A]===p[I-A];A++);return yd=p.slice(a,1<A?1-A:void 0)}function Cd(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function vd(){return!0}function yS(){return!1}function On(a){function s(c,A,p,I,D){this._reactName=c,this._targetInst=p,this.type=A,this.nativeEvent=I,this.target=D,this.currentTarget=null;for(var F in a)a.hasOwnProperty(F)&&(c=a[F],this[F]=c?c(I):I[F]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?vd:yS,this.isPropagationStopped=yS,this}return G(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=vd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=vd)},persist:function(){},isPersistent:vd}),s}var $u={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rd=On($u),Ho=G({},$u,{view:0,detail:0}),KF=On(Ho),mA,pA,Uo,Td=G({},Ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gA,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Uo&&(Uo&&a.type==="mousemove"?(mA=a.screenX-Uo.screenX,pA=a.screenY-Uo.screenY):pA=mA=0,Uo=a),mA)},movementY:function(a){return"movementY"in a?a.movementY:pA}}),CS=On(Td),$F=G({},Td,{dataTransfer:0}),YF=On($F),ZF=G({},Ho,{relatedTarget:0}),EA=On(ZF),WF=G({},$u,{animationName:0,elapsedTime:0,pseudoElement:0}),qF=On(WF),XF=G({},$u,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),QF=On(XF),JF=G({},$u,{data:0}),vS=On(JF),eO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rO(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=nO[a])?!!s[a]:!1}function gA(){return rO}var iO=G({},Ho,{key:function(a){if(a.key){var s=eO[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=Cd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?tO[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gA,charCode:function(a){return a.type==="keypress"?Cd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Cd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),uO=On(iO),aO=G({},Td,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),RS=On(aO),sO=G({},Ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gA}),oO=On(sO),lO=G({},$u,{propertyName:0,elapsedTime:0,pseudoElement:0}),cO=On(lO),dO=G({},Td,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),fO=On(dO),hO=G({},$u,{newState:0,oldState:0}),AO=On(hO),mO=[9,13,27,32],_A=li&&"CompositionEvent"in window,ko=null;li&&"documentMode"in document&&(ko=document.documentMode);var pO=li&&"TextEvent"in window&&!ko,TS=li&&(!_A||ko&&8<ko&&11>=ko),DS=" ",bS=!1;function xS(a,s){switch(a){case"keyup":return mO.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BS(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var es=!1;function EO(a,s){switch(a){case"compositionend":return BS(s);case"keypress":return s.which!==32?null:(bS=!0,DS);case"textInput":return a=s.data,a===DS&&bS?null:a;default:return null}}function gO(a,s){if(es)return a==="compositionend"||!_A&&xS(a,s)?(a=IS(),yd=AA=$i=null,es=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return TS&&s.locale!=="ko"?null:s.data;default:return null}}var _O={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function FS(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!_O[a.type]:s==="textarea"}function OS(a,s,c,A){Qa?Ja?Ja.push(A):Ja=[A]:Qa=A,s=c0(s,"onChange"),0<s.length&&(c=new Rd("onChange","change",null,c,A),a.push({event:c,listeners:s}))}var Go=null,Vo=null;function SO(a){u3(a,0)}function Dd(a){var s=wo(a);if(AS(s))return a}function LS(a,s){if(a==="change")return s}var wS=!1;if(li){var SA;if(li){var NA="oninput"in document;if(!NA){var MS=document.createElement("div");MS.setAttribute("oninput","return;"),NA=typeof MS.oninput=="function"}SA=NA}else SA=!1;wS=SA&&(!document.documentMode||9<document.documentMode)}function PS(){Go&&(Go.detachEvent("onpropertychange",HS),Vo=Go=null)}function HS(a){if(a.propertyName==="value"&&Dd(Vo)){var s=[];OS(s,Vo,a,dA(a)),NS(SO,s)}}function NO(a,s,c){a==="focusin"?(PS(),Go=s,Vo=c,Go.attachEvent("onpropertychange",HS)):a==="focusout"&&PS()}function IO(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Dd(Vo)}function yO(a,s){if(a==="click")return Dd(s)}function CO(a,s){if(a==="input"||a==="change")return Dd(s)}function vO(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var jn=typeof Object.is=="function"?Object.is:vO;function jo(a,s){if(jn(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var c=Object.keys(a),A=Object.keys(s);if(c.length!==A.length)return!1;for(A=0;A<c.length;A++){var p=c[A];if(!X.call(s,p)||!jn(a[p],s[p]))return!1}return!0}function US(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function kS(a,s){var c=US(a);a=0;for(var A;c;){if(c.nodeType===3){if(A=a+c.textContent.length,a<=s&&A>=s)return{node:c,offset:s-a};a=A}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=US(c)}}function GS(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?GS(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function VS(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=Nd(a.document);s instanceof a.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)a=s.contentWindow;else break;s=Nd(a.document)}return s}function IA(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function RO(a,s){var c=VS(s);s=a.focusedElem;var A=a.selectionRange;if(c!==s&&s&&s.ownerDocument&&GS(s.ownerDocument.documentElement,s)){if(A!==null&&IA(s)){if(a=A.start,c=A.end,c===void 0&&(c=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(c,s.value.length);else if(c=(a=s.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var p=s.textContent.length,I=Math.min(A.start,p);A=A.end===void 0?I:Math.min(A.end,p),!c.extend&&I>A&&(p=A,A=I,I=p),p=kS(s,I);var D=kS(s,A);p&&D&&(c.rangeCount!==1||c.anchorNode!==p.node||c.anchorOffset!==p.offset||c.focusNode!==D.node||c.focusOffset!==D.offset)&&(a=a.createRange(),a.setStart(p.node,p.offset),c.removeAllRanges(),I>A?(c.addRange(a),c.extend(D.node,D.offset)):(a.setEnd(D.node,D.offset),c.addRange(a)))}}for(a=[],c=s;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<a.length;s++)c=a[s],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var TO=li&&"documentMode"in document&&11>=document.documentMode,ts=null,yA=null,zo=null,CA=!1;function jS(a,s,c){var A=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;CA||ts==null||ts!==Nd(A)||(A=ts,"selectionStart"in A&&IA(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),zo&&jo(zo,A)||(zo=A,A=c0(yA,"onSelect"),0<A.length&&(s=new Rd("onSelect","select",null,s,c),a.push({event:s,listeners:A}),s.target=ts)))}function Yu(a,s){var c={};return c[a.toLowerCase()]=s.toLowerCase(),c["Webkit"+a]="webkit"+s,c["Moz"+a]="moz"+s,c}var ns={animationend:Yu("Animation","AnimationEnd"),animationiteration:Yu("Animation","AnimationIteration"),animationstart:Yu("Animation","AnimationStart"),transitionrun:Yu("Transition","TransitionRun"),transitionstart:Yu("Transition","TransitionStart"),transitioncancel:Yu("Transition","TransitionCancel"),transitionend:Yu("Transition","TransitionEnd")},vA={},zS={};li&&(zS=document.createElement("div").style,"AnimationEvent"in window||(delete ns.animationend.animation,delete ns.animationiteration.animation,delete ns.animationstart.animation),"TransitionEvent"in window||delete ns.transitionend.transition);function Zu(a){if(vA[a])return vA[a];if(!ns[a])return a;var s=ns[a],c;for(c in s)if(s.hasOwnProperty(c)&&c in zS)return vA[a]=s[c];return a}var KS=Zu("animationend"),$S=Zu("animationiteration"),YS=Zu("animationstart"),DO=Zu("transitionrun"),bO=Zu("transitionstart"),xO=Zu("transitioncancel"),ZS=Zu("transitionend"),WS=new Map,qS="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Cr(a,s){WS.set(a,s),Ku(s,[a])}var ir=[],rs=0,RA=0;function bd(){for(var a=rs,s=RA=rs=0;s<a;){var c=ir[s];ir[s++]=null;var A=ir[s];ir[s++]=null;var p=ir[s];ir[s++]=null;var I=ir[s];if(ir[s++]=null,A!==null&&p!==null){var D=A.pending;D===null?p.next=p:(p.next=D.next,D.next=p),A.pending=p}I!==0&&XS(c,p,I)}}function xd(a,s,c,A){ir[rs++]=a,ir[rs++]=s,ir[rs++]=c,ir[rs++]=A,RA|=A,a.lanes|=A,a=a.alternate,a!==null&&(a.lanes|=A)}function TA(a,s,c,A){return xd(a,s,c,A),Bd(a)}function Yi(a,s){return xd(a,null,null,s),Bd(a)}function XS(a,s,c){a.lanes|=c;var A=a.alternate;A!==null&&(A.lanes|=c);for(var p=!1,I=a.return;I!==null;)I.childLanes|=c,A=I.alternate,A!==null&&(A.childLanes|=c),I.tag===22&&(a=I.stateNode,a===null||a._visibility&1||(p=!0)),a=I,I=I.return;p&&s!==null&&a.tag===3&&(I=a.stateNode,p=31-Vn(c),I=I.hiddenUpdates,a=I[p],a===null?I[p]=[s]:a.push(s),s.lane=c|536870912)}function Bd(a){if(50<ml)throw ml=0,Om=null,Error(r(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var is={},QS=new WeakMap;function ur(a,s){if(typeof a=="object"&&a!==null){var c=QS.get(a);return c!==void 0?c:(s={value:a,source:s,stack:ee(s)},QS.set(a,s),s)}return{value:a,source:s,stack:ee(s)}}var us=[],as=0,Fd=null,Od=0,ar=[],sr=0,Wu=null,di=1,fi="";function qu(a,s){us[as++]=Od,us[as++]=Fd,Fd=a,Od=s}function JS(a,s,c){ar[sr++]=di,ar[sr++]=fi,ar[sr++]=Wu,Wu=a;var A=di;a=fi;var p=32-Vn(A)-1;A&=~(1<<p),c+=1;var I=32-Vn(s)+p;if(30<I){var D=p-p%5;I=(A&(1<<D)-1).toString(32),A>>=D,p-=D,di=1<<32-Vn(s)+p|c<<p|A,fi=I+a}else di=1<<I|c<<p|A,fi=a}function DA(a){a.return!==null&&(qu(a,1),JS(a,1,0))}function bA(a){for(;a===Fd;)Fd=us[--as],us[as]=null,Od=us[--as],us[as]=null;for(;a===Wu;)Wu=ar[--sr],ar[sr]=null,fi=ar[--sr],ar[sr]=null,di=ar[--sr],ar[sr]=null}var Tn=null,on=null,ft=!1,vr=null,Ur=!1,xA=Error(r(519));function Xu(a){var s=Error(r(418,""));throw Yo(ur(s,a)),xA}function eN(a){var s=a.stateNode,c=a.type,A=a.memoizedProps;switch(s[pn]=a,s[Fn]=A,c){case"dialog":ot("cancel",s),ot("close",s);break;case"iframe":case"object":case"embed":ot("load",s);break;case"video":case"audio":for(c=0;c<El.length;c++)ot(El[c],s);break;case"source":ot("error",s);break;case"img":case"image":case"link":ot("error",s),ot("load",s);break;case"details":ot("toggle",s);break;case"input":ot("invalid",s),mS(s,A.value,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name,!0),Sd(s);break;case"select":ot("invalid",s);break;case"textarea":ot("invalid",s),ES(s,A.value,A.defaultValue,A.children),Sd(s)}c=A.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||A.suppressHydrationWarning===!0||l3(s.textContent,c)?(A.popover!=null&&(ot("beforetoggle",s),ot("toggle",s)),A.onScroll!=null&&ot("scroll",s),A.onScrollEnd!=null&&ot("scrollend",s),A.onClick!=null&&(s.onclick=d0),s=!0):s=!1,s||Xu(a)}function tN(a){for(Tn=a.return;Tn;)switch(Tn.tag){case 3:case 27:Ur=!0;return;case 5:case 13:Ur=!1;return;default:Tn=Tn.return}}function Ko(a){if(a!==Tn)return!1;if(!ft)return tN(a),ft=!0,!1;var s=!1,c;if((c=a.tag!==3&&a.tag!==27)&&((c=a.tag===5)&&(c=a.type,c=!(c!=="form"&&c!=="button")||qm(a.type,a.memoizedProps)),c=!c),c&&(s=!0),s&&on&&Xu(a),tN(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,s=0;a;){if(a.nodeType===8)if(c=a.data,c==="/$"){if(s===0){on=Tr(a.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++;a=a.nextSibling}on=null}}else on=Tn?Tr(a.stateNode.nextSibling):null;return!0}function $o(){on=Tn=null,ft=!1}function Yo(a){vr===null?vr=[a]:vr.push(a)}var Zo=Error(r(460)),nN=Error(r(474)),BA={then:function(){}};function rN(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Ld(){}function iN(a,s,c){switch(c=a[c],c===void 0?a.push(s):c!==s&&(s.then(Ld,Ld),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,a===Zo?Error(r(483)):a;default:if(typeof s.status=="string")s.then(Ld,Ld);else{if(a=_t,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=s,a.status="pending",a.then(function(A){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=A}},function(A){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=A}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,a===Zo?Error(r(483)):a}throw Wo=s,Zo}}var Wo=null;function uN(){if(Wo===null)throw Error(r(459));var a=Wo;return Wo=null,a}var ss=null,qo=0;function wd(a){var s=qo;return qo+=1,ss===null&&(ss=[]),iN(ss,a,s)}function Xo(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function Md(a,s){throw s.$$typeof===o?Error(r(525)):(a=Object.prototype.toString.call(s),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function aN(a){var s=a._init;return s(a._payload)}function sN(a){function s(Y,K){if(a){var q=Y.deletions;q===null?(Y.deletions=[K],Y.flags|=16):q.push(K)}}function c(Y,K){if(!a)return null;for(;K!==null;)s(Y,K),K=K.sibling;return null}function A(Y){for(var K=new Map;Y!==null;)Y.key!==null?K.set(Y.key,Y):K.set(Y.index,Y),Y=Y.sibling;return K}function p(Y,K){return Y=uu(Y,K),Y.index=0,Y.sibling=null,Y}function I(Y,K,q){return Y.index=q,a?(q=Y.alternate,q!==null?(q=q.index,q<K?(Y.flags|=33554434,K):q):(Y.flags|=33554434,K)):(Y.flags|=1048576,K)}function D(Y){return a&&Y.alternate===null&&(Y.flags|=33554434),Y}function F(Y,K,q,le){return K===null||K.tag!==6?(K=vm(q,Y.mode,le),K.return=Y,K):(K=p(K,q),K.return=Y,K)}function M(Y,K,q,le){var De=q.type;return De===f?se(Y,K,q.props.children,le,q.key):K!==null&&(K.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===T&&aN(De)===K.type)?(K=p(K,q.props),Xo(K,q),K.return=Y,K):(K=e0(q.type,q.key,q.props,null,Y.mode,le),Xo(K,q),K.return=Y,K)}function $(Y,K,q,le){return K===null||K.tag!==4||K.stateNode.containerInfo!==q.containerInfo||K.stateNode.implementation!==q.implementation?(K=Rm(q,Y.mode,le),K.return=Y,K):(K=p(K,q.children||[]),K.return=Y,K)}function se(Y,K,q,le,De){return K===null||K.tag!==7?(K=sa(q,Y.mode,le,De),K.return=Y,K):(K=p(K,q),K.return=Y,K)}function he(Y,K,q){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=vm(""+K,Y.mode,q),K.return=Y,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case l:return q=e0(K.type,K.key,K.props,null,Y.mode,q),Xo(q,K),q.return=Y,q;case d:return K=Rm(K,Y.mode,q),K.return=Y,K;case T:var le=K._init;return K=le(K._payload),he(Y,K,q)}if(re(K)||B(K))return K=sa(K,Y.mode,q,null),K.return=Y,K;if(typeof K.then=="function")return he(Y,wd(K),q);if(K.$$typeof===_)return he(Y,Xd(Y,K),q);Md(Y,K)}return null}function J(Y,K,q,le){var De=K!==null?K.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return De!==null?null:F(Y,K,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case l:return q.key===De?M(Y,K,q,le):null;case d:return q.key===De?$(Y,K,q,le):null;case T:return De=q._init,q=De(q._payload),J(Y,K,q,le)}if(re(q)||B(q))return De!==null?null:se(Y,K,q,le,null);if(typeof q.then=="function")return J(Y,K,wd(q),le);if(q.$$typeof===_)return J(Y,K,Xd(Y,q),le);Md(Y,q)}return null}function ue(Y,K,q,le,De){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Y=Y.get(q)||null,F(K,Y,""+le,De);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case l:return Y=Y.get(le.key===null?q:le.key)||null,M(K,Y,le,De);case d:return Y=Y.get(le.key===null?q:le.key)||null,$(K,Y,le,De);case T:var rt=le._init;return le=rt(le._payload),ue(Y,K,q,le,De)}if(re(le)||B(le))return Y=Y.get(q)||null,se(K,Y,le,De,null);if(typeof le.then=="function")return ue(Y,K,q,wd(le),De);if(le.$$typeof===_)return ue(Y,K,q,Xd(K,le),De);Md(K,le)}return null}function Le(Y,K,q,le){for(var De=null,rt=null,Me=K,He=K=0,rn=null;Me!==null&&He<q.length;He++){Me.index>He?(rn=Me,Me=null):rn=Me.sibling;var ht=J(Y,Me,q[He],le);if(ht===null){Me===null&&(Me=rn);break}a&&Me&&ht.alternate===null&&s(Y,Me),K=I(ht,K,He),rt===null?De=ht:rt.sibling=ht,rt=ht,Me=rn}if(He===q.length)return c(Y,Me),ft&&qu(Y,He),De;if(Me===null){for(;He<q.length;He++)Me=he(Y,q[He],le),Me!==null&&(K=I(Me,K,He),rt===null?De=Me:rt.sibling=Me,rt=Me);return ft&&qu(Y,He),De}for(Me=A(Me);He<q.length;He++)rn=ue(Me,Y,He,q[He],le),rn!==null&&(a&&rn.alternate!==null&&Me.delete(rn.key===null?He:rn.key),K=I(rn,K,He),rt===null?De=rn:rt.sibling=rn,rt=rn);return a&&Me.forEach(function(fu){return s(Y,fu)}),ft&&qu(Y,He),De}function Ye(Y,K,q,le){if(q==null)throw Error(r(151));for(var De=null,rt=null,Me=K,He=K=0,rn=null,ht=q.next();Me!==null&&!ht.done;He++,ht=q.next()){Me.index>He?(rn=Me,Me=null):rn=Me.sibling;var fu=J(Y,Me,ht.value,le);if(fu===null){Me===null&&(Me=rn);break}a&&Me&&fu.alternate===null&&s(Y,Me),K=I(fu,K,He),rt===null?De=fu:rt.sibling=fu,rt=fu,Me=rn}if(ht.done)return c(Y,Me),ft&&qu(Y,He),De;if(Me===null){for(;!ht.done;He++,ht=q.next())ht=he(Y,ht.value,le),ht!==null&&(K=I(ht,K,He),rt===null?De=ht:rt.sibling=ht,rt=ht);return ft&&qu(Y,He),De}for(Me=A(Me);!ht.done;He++,ht=q.next())ht=ue(Me,Y,He,ht.value,le),ht!==null&&(a&&ht.alternate!==null&&Me.delete(ht.key===null?He:ht.key),K=I(ht,K,He),rt===null?De=ht:rt.sibling=ht,rt=ht);return a&&Me.forEach(function(zL){return s(Y,zL)}),ft&&qu(Y,He),De}function Ot(Y,K,q,le){if(typeof q=="object"&&q!==null&&q.type===f&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case l:e:{for(var De=q.key;K!==null;){if(K.key===De){if(De=q.type,De===f){if(K.tag===7){c(Y,K.sibling),le=p(K,q.props.children),le.return=Y,Y=le;break e}}else if(K.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===T&&aN(De)===K.type){c(Y,K.sibling),le=p(K,q.props),Xo(le,q),le.return=Y,Y=le;break e}c(Y,K);break}else s(Y,K);K=K.sibling}q.type===f?(le=sa(q.props.children,Y.mode,le,q.key),le.return=Y,Y=le):(le=e0(q.type,q.key,q.props,null,Y.mode,le),Xo(le,q),le.return=Y,Y=le)}return D(Y);case d:e:{for(De=q.key;K!==null;){if(K.key===De)if(K.tag===4&&K.stateNode.containerInfo===q.containerInfo&&K.stateNode.implementation===q.implementation){c(Y,K.sibling),le=p(K,q.children||[]),le.return=Y,Y=le;break e}else{c(Y,K);break}else s(Y,K);K=K.sibling}le=Rm(q,Y.mode,le),le.return=Y,Y=le}return D(Y);case T:return De=q._init,q=De(q._payload),Ot(Y,K,q,le)}if(re(q))return Le(Y,K,q,le);if(B(q)){if(De=B(q),typeof De!="function")throw Error(r(150));return q=De.call(q),Ye(Y,K,q,le)}if(typeof q.then=="function")return Ot(Y,K,wd(q),le);if(q.$$typeof===_)return Ot(Y,K,Xd(Y,q),le);Md(Y,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,K!==null&&K.tag===6?(c(Y,K.sibling),le=p(K,q),le.return=Y,Y=le):(c(Y,K),le=vm(q,Y.mode,le),le.return=Y,Y=le),D(Y)):c(Y,K)}return function(Y,K,q,le){try{qo=0;var De=Ot(Y,K,q,le);return ss=null,De}catch(Me){if(Me===Zo)throw Me;var rt=dr(29,Me,null,Y.mode);return rt.lanes=le,rt.return=Y,rt}finally{}}}var Qu=sN(!0),oN=sN(!1),os=ve(null),Pd=ve(0);function lN(a,s){a=yi,we(Pd,a),we(os,s),yi=a|s.baseLanes}function FA(){we(Pd,yi),we(os,os.current)}function OA(){yi=Pd.current,Ve(os),Ve(Pd)}var or=ve(null),kr=null;function Zi(a){var s=a.alternate;we(Yt,Yt.current&1),we(or,a),kr===null&&(s===null||os.current!==null||s.memoizedState!==null)&&(kr=a)}function cN(a){if(a.tag===22){if(we(Yt,Yt.current),we(or,a),kr===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&(kr=a)}}else Wi()}function Wi(){we(Yt,Yt.current),we(or,or.current)}function hi(a){Ve(or),kr===a&&(kr=null),Ve(Yt)}var Yt=ve(0);function Hd(a){for(var s=a;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var BO=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(c,A){a.push(A)}};this.abort=function(){s.aborted=!0,a.forEach(function(c){return c()})}},FO=e.unstable_scheduleCallback,OO=e.unstable_NormalPriority,Zt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function LA(){return{controller:new BO,data:new Map,refCount:0}}function Qo(a){a.refCount--,a.refCount===0&&FO(OO,function(){a.controller.abort()})}var Jo=null,wA=0,ls=0,cs=null;function LO(a,s){if(Jo===null){var c=Jo=[];wA=0,ls=Gm(),cs={status:"pending",value:void 0,then:function(A){c.push(A)}}}return wA++,s.then(dN,dN),s}function dN(){if(--wA===0&&Jo!==null){cs!==null&&(cs.status="fulfilled");var a=Jo;Jo=null,ls=0,cs=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function wO(a,s){var c=[],A={status:"pending",value:null,reason:null,then:function(p){c.push(p)}};return a.then(function(){A.status="fulfilled",A.value=s;for(var p=0;p<c.length;p++)(0,c[p])(s)},function(p){for(A.status="rejected",A.reason=p,p=0;p<c.length;p++)(0,c[p])(void 0)}),A}var fN=U.S;U.S=function(a,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&LO(a,s),fN!==null&&fN(a,s)};var Ju=ve(null);function MA(){var a=Ju.current;return a!==null?a:_t.pooledCache}function Ud(a,s){s===null?we(Ju,Ju.current):we(Ju,s.pool)}function hN(){var a=MA();return a===null?null:{parent:Zt._currentValue,pool:a}}var qi=0,tt=null,pt=null,Vt=null,kd=!1,ds=!1,ea=!1,Gd=0,el=0,fs=null,MO=0;function Ht(){throw Error(r(321))}function PA(a,s){if(s===null)return!1;for(var c=0;c<s.length&&c<a.length;c++)if(!jn(a[c],s[c]))return!1;return!0}function HA(a,s,c,A,p,I){return qi=I,tt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,U.H=a===null||a.memoizedState===null?ta:Xi,ea=!1,I=c(A,p),ea=!1,ds&&(I=mN(s,c,A,p)),AN(a),I}function AN(a){U.H=Gr;var s=pt!==null&&pt.next!==null;if(qi=0,Vt=pt=tt=null,kd=!1,el=0,fs=null,s)throw Error(r(300));a===null||tn||(a=a.dependencies,a!==null&&qd(a)&&(tn=!0))}function mN(a,s,c,A){tt=a;var p=0;do{if(ds&&(fs=null),el=0,ds=!1,25<=p)throw Error(r(301));if(p+=1,Vt=pt=null,a.updateQueue!=null){var I=a.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}U.H=na,I=s(c,A)}while(ds);return I}function PO(){var a=U.H,s=a.useState()[0];return s=typeof s.then=="function"?tl(s):s,a=a.useState()[0],(pt!==null?pt.memoizedState:null)!==a&&(tt.flags|=1024),s}function UA(){var a=Gd!==0;return Gd=0,a}function kA(a,s,c){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~c}function GA(a){if(kd){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}kd=!1}qi=0,Vt=pt=tt=null,ds=!1,el=Gd=0,fs=null}function Ln(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?tt.memoizedState=Vt=a:Vt=Vt.next=a,Vt}function jt(){if(pt===null){var a=tt.alternate;a=a!==null?a.memoizedState:null}else a=pt.next;var s=Vt===null?tt.memoizedState:Vt.next;if(s!==null)Vt=s,pt=a;else{if(a===null)throw tt.alternate===null?Error(r(467)):Error(r(310));pt=a,a={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Vt===null?tt.memoizedState=Vt=a:Vt=Vt.next=a}return Vt}var Vd;Vd=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function tl(a){var s=el;return el+=1,fs===null&&(fs=[]),a=iN(fs,a,s),s=tt,(Vt===null?s.memoizedState:Vt.next)===null&&(s=s.alternate,U.H=s===null||s.memoizedState===null?ta:Xi),a}function jd(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return tl(a);if(a.$$typeof===_)return En(a)}throw Error(r(438,String(a)))}function VA(a){var s=null,c=tt.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var A=tt.alternate;A!==null&&(A=A.updateQueue,A!==null&&(A=A.memoCache,A!=null&&(s={data:A.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Vd(),tt.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(a),A=0;A<a;A++)c[A]=L;return s.index++,c}function Ai(a,s){return typeof s=="function"?s(a):s}function zd(a){var s=jt();return jA(s,pt,a)}function jA(a,s,c){var A=a.queue;if(A===null)throw Error(r(311));A.lastRenderedReducer=c;var p=a.baseQueue,I=A.pending;if(I!==null){if(p!==null){var D=p.next;p.next=I.next,I.next=D}s.baseQueue=p=I,A.pending=null}if(I=a.baseState,p===null)a.memoizedState=I;else{s=p.next;var F=D=null,M=null,$=s,se=!1;do{var he=$.lane&-536870913;if(he!==$.lane?(ct&he)===he:(qi&he)===he){var J=$.revertLane;if(J===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),he===ls&&(se=!0);else if((qi&J)===J){$=$.next,J===ls&&(se=!0);continue}else he={lane:0,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(F=M=he,D=I):M=M.next=he,tt.lanes|=J,au|=J;he=$.action,ea&&c(I,he),I=$.hasEagerState?$.eagerState:c(I,he)}else J={lane:he,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(F=M=J,D=I):M=M.next=J,tt.lanes|=he,au|=he;$=$.next}while($!==null&&$!==s);if(M===null?D=I:M.next=F,!jn(I,a.memoizedState)&&(tn=!0,se&&(c=cs,c!==null)))throw c;a.memoizedState=I,a.baseState=D,a.baseQueue=M,A.lastRenderedState=I}return p===null&&(A.lanes=0),[a.memoizedState,A.dispatch]}function zA(a){var s=jt(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=a;var A=c.dispatch,p=c.pending,I=s.memoizedState;if(p!==null){c.pending=null;var D=p=p.next;do I=a(I,D.action),D=D.next;while(D!==p);jn(I,s.memoizedState)||(tn=!0),s.memoizedState=I,s.baseQueue===null&&(s.baseState=I),c.lastRenderedState=I}return[I,A]}function pN(a,s,c){var A=tt,p=jt(),I=ft;if(I){if(c===void 0)throw Error(r(407));c=c()}else c=s();var D=!jn((pt||p).memoizedState,c);if(D&&(p.memoizedState=c,tn=!0),p=p.queue,YA(_N.bind(null,A,p,a),[a]),p.getSnapshot!==s||D||Vt!==null&&Vt.memoizedState.tag&1){if(A.flags|=2048,hs(9,gN.bind(null,A,p,c,s),{destroy:void 0},null),_t===null)throw Error(r(349));I||(qi&60)!==0||EN(A,s,c)}return c}function EN(a,s,c){a.flags|=16384,a={getSnapshot:s,value:c},s=tt.updateQueue,s===null?(s=Vd(),tt.updateQueue=s,s.stores=[a]):(c=s.stores,c===null?s.stores=[a]:c.push(a))}function gN(a,s,c,A){s.value=c,s.getSnapshot=A,SN(s)&&NN(a)}function _N(a,s,c){return c(function(){SN(s)&&NN(a)})}function SN(a){var s=a.getSnapshot;a=a.value;try{var c=s();return!jn(a,c)}catch{return!0}}function NN(a){var s=Yi(a,2);s!==null&&Dn(s,a,2)}function KA(a){var s=Ln();if(typeof a=="function"){var c=a;if(a=c(),ea){zi(!0);try{c()}finally{zi(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:a},s}function IN(a,s,c,A){return a.baseState=c,jA(a,pt,typeof A=="function"?A:Ai)}function HO(a,s,c,A,p){if(Yd(a))throw Error(r(485));if(a=s.action,a!==null){var I={payload:p,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){I.listeners.push(D)}};U.T!==null?c(!0):I.isTransition=!1,A(I),c=s.pending,c===null?(I.next=s.pending=I,yN(s,I)):(I.next=c.next,s.pending=c.next=I)}}function yN(a,s){var c=s.action,A=s.payload,p=a.state;if(s.isTransition){var I=U.T,D={};U.T=D;try{var F=c(p,A),M=U.S;M!==null&&M(D,F),CN(a,s,F)}catch($){$A(a,s,$)}finally{U.T=I}}else try{I=c(p,A),CN(a,s,I)}catch($){$A(a,s,$)}}function CN(a,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(A){vN(a,s,A)},function(A){return $A(a,s,A)}):vN(a,s,c)}function vN(a,s,c){s.status="fulfilled",s.value=c,RN(s),a.state=c,s=a.pending,s!==null&&(c=s.next,c===s?a.pending=null:(c=c.next,s.next=c,yN(a,c)))}function $A(a,s,c){var A=a.pending;if(a.pending=null,A!==null){A=A.next;do s.status="rejected",s.reason=c,RN(s),s=s.next;while(s!==A)}a.action=null}function RN(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function TN(a,s){return s}function DN(a,s){if(ft){var c=_t.formState;if(c!==null){e:{var A=tt;if(ft){if(on){t:{for(var p=on,I=Ur;p.nodeType!==8;){if(!I){p=null;break t}if(p=Tr(p.nextSibling),p===null){p=null;break t}}I=p.data,p=I==="F!"||I==="F"?p:null}if(p){on=Tr(p.nextSibling),A=p.data==="F!";break e}}Xu(A)}A=!1}A&&(s=c[0])}}return c=Ln(),c.memoizedState=c.baseState=s,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:TN,lastRenderedState:s},c.queue=A,c=$N.bind(null,tt,A),A.dispatch=c,A=KA(!1),I=QA.bind(null,tt,!1,A.queue),A=Ln(),p={state:s,dispatch:null,action:a,pending:null},A.queue=p,c=HO.bind(null,tt,p,I,c),p.dispatch=c,A.memoizedState=a,[s,c,!1]}function bN(a){var s=jt();return xN(s,pt,a)}function xN(a,s,c){s=jA(a,s,TN)[0],a=zd(Ai)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?tl(s):s;var A=jt(),p=A.queue,I=p.dispatch;return c!==A.memoizedState&&(tt.flags|=2048,hs(9,UO.bind(null,p,c),{destroy:void 0},null)),[s,I,a]}function UO(a,s){a.action=s}function BN(a){var s=jt(),c=pt;if(c!==null)return xN(s,c,a);jt(),s=s.memoizedState,c=jt();var A=c.queue.dispatch;return c.memoizedState=a,[s,A,!1]}function hs(a,s,c,A){return a={tag:a,create:s,inst:c,deps:A,next:null},s=tt.updateQueue,s===null&&(s=Vd(),tt.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=a.next=a:(A=c.next,c.next=a,a.next=A,s.lastEffect=a),a}function FN(){return jt().memoizedState}function Kd(a,s,c,A){var p=Ln();tt.flags|=a,p.memoizedState=hs(1|s,c,{destroy:void 0},A===void 0?null:A)}function $d(a,s,c,A){var p=jt();A=A===void 0?null:A;var I=p.memoizedState.inst;pt!==null&&A!==null&&PA(A,pt.memoizedState.deps)?p.memoizedState=hs(s,c,I,A):(tt.flags|=a,p.memoizedState=hs(1|s,c,I,A))}function ON(a,s){Kd(8390656,8,a,s)}function YA(a,s){$d(2048,8,a,s)}function LN(a,s){return $d(4,2,a,s)}function wN(a,s){return $d(4,4,a,s)}function MN(a,s){if(typeof s=="function"){a=a();var c=s(a);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function PN(a,s,c){c=c!=null?c.concat([a]):null,$d(4,4,MN.bind(null,s,a),c)}function ZA(){}function HN(a,s){var c=jt();s=s===void 0?null:s;var A=c.memoizedState;return s!==null&&PA(s,A[1])?A[0]:(c.memoizedState=[a,s],a)}function UN(a,s){var c=jt();s=s===void 0?null:s;var A=c.memoizedState;if(s!==null&&PA(s,A[1]))return A[0];if(A=a(),ea){zi(!0);try{a()}finally{zi(!1)}}return c.memoizedState=[A,s],A}function WA(a,s,c){return c===void 0||(qi&1073741824)!==0?a.memoizedState=s:(a.memoizedState=c,a=GI(),tt.lanes|=a,au|=a,c)}function kN(a,s,c,A){return jn(c,s)?c:os.current!==null?(a=WA(a,c,A),jn(a,s)||(tn=!0),a):(qi&42)===0?(tn=!0,a.memoizedState=c):(a=GI(),tt.lanes|=a,au|=a,s)}function GN(a,s,c,A,p){var I=ne.p;ne.p=I!==0&&8>I?I:8;var D=U.T,F={};U.T=F,QA(a,!1,s,c);try{var M=p(),$=U.S;if($!==null&&$(F,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var se=wO(M,A);nl(a,s,se,Yn(a))}else nl(a,s,A,Yn(a))}catch(he){nl(a,s,{then:function(){},status:"rejected",reason:he},Yn())}finally{ne.p=I,U.T=D}}function kO(){}function qA(a,s,c,A){if(a.tag!==5)throw Error(r(476));var p=VN(a).queue;GN(a,p,s,de,c===null?kO:function(){return jN(a),c(A)})}function VN(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:de},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:c},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function jN(a){var s=VN(a).next.queue;nl(a,s,{},Yn())}function XA(){return En(Il)}function zN(){return jt().memoizedState}function KN(){return jt().memoizedState}function GO(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var c=Yn();a=eu(c);var A=tu(s,a,c);A!==null&&(Dn(A,s,c),ul(A,s,c)),s={cache:LA()},a.payload=s;return}s=s.return}}function VO(a,s,c){var A=Yn();c={lane:A,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Yd(a)?YN(s,c):(c=TA(a,s,c,A),c!==null&&(Dn(c,a,A),ZN(c,s,A)))}function $N(a,s,c){var A=Yn();nl(a,s,c,A)}function nl(a,s,c,A){var p={lane:A,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Yd(a))YN(s,p);else{var I=a.alternate;if(a.lanes===0&&(I===null||I.lanes===0)&&(I=s.lastRenderedReducer,I!==null))try{var D=s.lastRenderedState,F=I(D,c);if(p.hasEagerState=!0,p.eagerState=F,jn(F,D))return xd(a,s,p,0),_t===null&&bd(),!1}catch{}finally{}if(c=TA(a,s,p,A),c!==null)return Dn(c,a,A),ZN(c,s,A),!0}return!1}function QA(a,s,c,A){if(A={lane:2,revertLane:Gm(),action:A,hasEagerState:!1,eagerState:null,next:null},Yd(a)){if(s)throw Error(r(479))}else s=TA(a,c,A,2),s!==null&&Dn(s,a,2)}function Yd(a){var s=a.alternate;return a===tt||s!==null&&s===tt}function YN(a,s){ds=kd=!0;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}function ZN(a,s,c){if((c&4194176)!==0){var A=s.lanes;A&=a.pendingLanes,c|=A,s.lanes=c,uS(a,c)}}var Gr={readContext:En,use:jd,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht};Gr.useCacheRefresh=Ht,Gr.useMemoCache=Ht,Gr.useHostTransitionStatus=Ht,Gr.useFormState=Ht,Gr.useActionState=Ht,Gr.useOptimistic=Ht;var ta={readContext:En,use:jd,useCallback:function(a,s){return Ln().memoizedState=[a,s===void 0?null:s],a},useContext:En,useEffect:ON,useImperativeHandle:function(a,s,c){c=c!=null?c.concat([a]):null,Kd(4194308,4,MN.bind(null,s,a),c)},useLayoutEffect:function(a,s){return Kd(4194308,4,a,s)},useInsertionEffect:function(a,s){Kd(4,2,a,s)},useMemo:function(a,s){var c=Ln();s=s===void 0?null:s;var A=a();if(ea){zi(!0);try{a()}finally{zi(!1)}}return c.memoizedState=[A,s],A},useReducer:function(a,s,c){var A=Ln();if(c!==void 0){var p=c(s);if(ea){zi(!0);try{c(s)}finally{zi(!1)}}}else p=s;return A.memoizedState=A.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},A.queue=a,a=a.dispatch=VO.bind(null,tt,a),[A.memoizedState,a]},useRef:function(a){var s=Ln();return a={current:a},s.memoizedState=a},useState:function(a){a=KA(a);var s=a.queue,c=$N.bind(null,tt,s);return s.dispatch=c,[a.memoizedState,c]},useDebugValue:ZA,useDeferredValue:function(a,s){var c=Ln();return WA(c,a,s)},useTransition:function(){var a=KA(!1);return a=GN.bind(null,tt,a.queue,!0,!1),Ln().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,c){var A=tt,p=Ln();if(ft){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),_t===null)throw Error(r(349));(ct&60)!==0||EN(A,s,c)}p.memoizedState=c;var I={value:c,getSnapshot:s};return p.queue=I,ON(_N.bind(null,A,I,a),[a]),A.flags|=2048,hs(9,gN.bind(null,A,I,c,s),{destroy:void 0},null),c},useId:function(){var a=Ln(),s=_t.identifierPrefix;if(ft){var c=fi,A=di;c=(A&~(1<<32-Vn(A)-1)).toString(32)+c,s=":"+s+"R"+c,c=Gd++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=MO++,s=":"+s+"r"+c.toString(32)+":";return a.memoizedState=s},useCacheRefresh:function(){return Ln().memoizedState=GO.bind(null,tt)}};ta.useMemoCache=VA,ta.useHostTransitionStatus=XA,ta.useFormState=DN,ta.useActionState=DN,ta.useOptimistic=function(a){var s=Ln();s.memoizedState=s.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=QA.bind(null,tt,!0,c),c.dispatch=s,[a,s]};var Xi={readContext:En,use:jd,useCallback:HN,useContext:En,useEffect:YA,useImperativeHandle:PN,useInsertionEffect:LN,useLayoutEffect:wN,useMemo:UN,useReducer:zd,useRef:FN,useState:function(){return zd(Ai)},useDebugValue:ZA,useDeferredValue:function(a,s){var c=jt();return kN(c,pt.memoizedState,a,s)},useTransition:function(){var a=zd(Ai)[0],s=jt().memoizedState;return[typeof a=="boolean"?a:tl(a),s]},useSyncExternalStore:pN,useId:zN};Xi.useCacheRefresh=KN,Xi.useMemoCache=VA,Xi.useHostTransitionStatus=XA,Xi.useFormState=bN,Xi.useActionState=bN,Xi.useOptimistic=function(a,s){var c=jt();return IN(c,pt,a,s)};var na={readContext:En,use:jd,useCallback:HN,useContext:En,useEffect:YA,useImperativeHandle:PN,useInsertionEffect:LN,useLayoutEffect:wN,useMemo:UN,useReducer:zA,useRef:FN,useState:function(){return zA(Ai)},useDebugValue:ZA,useDeferredValue:function(a,s){var c=jt();return pt===null?WA(c,a,s):kN(c,pt.memoizedState,a,s)},useTransition:function(){var a=zA(Ai)[0],s=jt().memoizedState;return[typeof a=="boolean"?a:tl(a),s]},useSyncExternalStore:pN,useId:zN};na.useCacheRefresh=KN,na.useMemoCache=VA,na.useHostTransitionStatus=XA,na.useFormState=BN,na.useActionState=BN,na.useOptimistic=function(a,s){var c=jt();return pt!==null?IN(c,pt,a,s):(c.baseState=a,[a,c.queue.dispatch])};function JA(a,s,c,A){s=a.memoizedState,c=c(A,s),c=c==null?s:G({},s,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}var em={isMounted:function(a){return(a=a._reactInternals)?Q(a)===a:!1},enqueueSetState:function(a,s,c){a=a._reactInternals;var A=Yn(),p=eu(A);p.payload=s,c!=null&&(p.callback=c),s=tu(a,p,A),s!==null&&(Dn(s,a,A),ul(s,a,A))},enqueueReplaceState:function(a,s,c){a=a._reactInternals;var A=Yn(),p=eu(A);p.tag=1,p.payload=s,c!=null&&(p.callback=c),s=tu(a,p,A),s!==null&&(Dn(s,a,A),ul(s,a,A))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var c=Yn(),A=eu(c);A.tag=2,s!=null&&(A.callback=s),s=tu(a,A,c),s!==null&&(Dn(s,a,c),ul(s,a,c))}};function WN(a,s,c,A,p,I,D){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(A,I,D):s.prototype&&s.prototype.isPureReactComponent?!jo(c,A)||!jo(p,I):!0}function qN(a,s,c,A){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,A),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,A),s.state!==a&&em.enqueueReplaceState(s,s.state,null)}function ra(a,s){var c=s;if("ref"in s){c={};for(var A in s)A!=="ref"&&(c[A]=s[A])}if(a=a.defaultProps){c===s&&(c=G({},c));for(var p in a)c[p]===void 0&&(c[p]=a[p])}return c}var Zd=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function XN(a){Zd(a)}function QN(a){console.error(a)}function JN(a){Zd(a)}function Wd(a,s){try{var c=a.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(A){setTimeout(function(){throw A})}}function eI(a,s,c){try{var A=a.onCaughtError;A(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function tm(a,s,c){return c=eu(c),c.tag=3,c.payload={element:null},c.callback=function(){Wd(a,s)},c}function tI(a){return a=eu(a),a.tag=3,a}function nI(a,s,c,A){var p=c.type.getDerivedStateFromError;if(typeof p=="function"){var I=A.value;a.payload=function(){return p(I)},a.callback=function(){eI(s,c,A)}}var D=c.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(a.callback=function(){eI(s,c,A),typeof p!="function"&&(su===null?su=new Set([this]):su.add(this));var F=A.stack;this.componentDidCatch(A.value,{componentStack:F!==null?F:""})})}function jO(a,s,c,A,p){if(c.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){if(s=c.alternate,s!==null&&il(s,c,p,!0),c=or.current,c!==null){switch(c.tag){case 13:return kr===null?Mm():c.alternate===null&&Ft===0&&(Ft=3),c.flags&=-257,c.flags|=65536,c.lanes=p,A===BA?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([A]):s.add(A),Hm(a,A,p)),!1;case 22:return c.flags|=65536,A===BA?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([A])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([A]):c.add(A)),Hm(a,A,p)),!1}throw Error(r(435,c.tag))}return Hm(a,A,p),Mm(),!1}if(ft)return s=or.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,A!==xA&&(a=Error(r(422),{cause:A}),Yo(ur(a,c)))):(A!==xA&&(s=Error(r(423),{cause:A}),Yo(ur(s,c))),a=a.current.alternate,a.flags|=65536,p&=-p,a.lanes|=p,A=ur(A,c),p=tm(a.stateNode,A,p),pm(a,p),Ft!==4&&(Ft=2)),!1;var I=Error(r(520),{cause:A});if(I=ur(I,c),hl===null?hl=[I]:hl.push(I),Ft!==4&&(Ft=2),s===null)return!0;A=ur(A,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,a=p&-p,c.lanes|=a,a=tm(c.stateNode,A,a),pm(c,a),!1;case 1:if(s=c.type,I=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(su===null||!su.has(I))))return c.flags|=65536,p&=-p,c.lanes|=p,p=tI(p),nI(p,a,c,A),pm(c,p),!1}c=c.return}while(c!==null);return!1}var rI=Error(r(461)),tn=!1;function ln(a,s,c,A){s.child=a===null?oN(s,null,c,A):Qu(s,a.child,c,A)}function iI(a,s,c,A,p){c=c.render;var I=s.ref;if("ref"in A){var D={};for(var F in A)F!=="ref"&&(D[F]=A[F])}else D=A;return ua(s),A=HA(a,s,c,D,I,p),F=UA(),a!==null&&!tn?(kA(a,s,p),mi(a,s,p)):(ft&&F&&DA(s),s.flags|=1,ln(a,s,A,p),s.child)}function uI(a,s,c,A,p){if(a===null){var I=c.type;return typeof I=="function"&&!Cm(I)&&I.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=I,aI(a,s,I,A,p)):(a=e0(c.type,null,A,s,s.mode,p),a.ref=s.ref,a.return=s,s.child=a)}if(I=a.child,!cm(a,p)){var D=I.memoizedProps;if(c=c.compare,c=c!==null?c:jo,c(D,A)&&a.ref===s.ref)return mi(a,s,p)}return s.flags|=1,a=uu(I,A),a.ref=s.ref,a.return=s,s.child=a}function aI(a,s,c,A,p){if(a!==null){var I=a.memoizedProps;if(jo(I,A)&&a.ref===s.ref)if(tn=!1,s.pendingProps=A=I,cm(a,p))(a.flags&131072)!==0&&(tn=!0);else return s.lanes=a.lanes,mi(a,s,p)}return nm(a,s,c,A,p)}function sI(a,s,c){var A=s.pendingProps,p=A.children,I=(s.stateNode._pendingVisibility&2)!==0,D=a!==null?a.memoizedState:null;if(rl(a,s),A.mode==="hidden"||I){if((s.flags&128)!==0){if(A=D!==null?D.baseLanes|c:c,a!==null){for(p=s.child=a.child,I=0;p!==null;)I=I|p.lanes|p.childLanes,p=p.sibling;s.childLanes=I&~A}else s.childLanes=0,s.child=null;return oI(a,s,A,c)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&Ud(s,D!==null?D.cachePool:null),D!==null?lN(s,D):FA(),cN(s);else return s.lanes=s.childLanes=536870912,oI(a,s,D!==null?D.baseLanes|c:c,c)}else D!==null?(Ud(s,D.cachePool),lN(s,D),Wi(),s.memoizedState=null):(a!==null&&Ud(s,null),FA(),Wi());return ln(a,s,p,c),s.child}function oI(a,s,c,A){var p=MA();return p=p===null?null:{parent:Zt._currentValue,pool:p},s.memoizedState={baseLanes:c,cachePool:p},a!==null&&Ud(s,null),FA(),cN(s),a!==null&&il(a,s,A,!0),null}function rl(a,s){var c=s.ref;if(c===null)a!==null&&a.ref!==null&&(s.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(a===null||a.ref!==c)&&(s.flags|=2097664)}}function nm(a,s,c,A,p){return ua(s),c=HA(a,s,c,A,void 0,p),A=UA(),a!==null&&!tn?(kA(a,s,p),mi(a,s,p)):(ft&&A&&DA(s),s.flags|=1,ln(a,s,c,p),s.child)}function lI(a,s,c,A,p,I){return ua(s),s.updateQueue=null,c=mN(s,A,c,p),AN(a),A=UA(),a!==null&&!tn?(kA(a,s,I),mi(a,s,I)):(ft&&A&&DA(s),s.flags|=1,ln(a,s,c,I),s.child)}function cI(a,s,c,A,p){if(ua(s),s.stateNode===null){var I=is,D=c.contextType;typeof D=="object"&&D!==null&&(I=En(D)),I=new c(A,I),s.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=em,s.stateNode=I,I._reactInternals=s,I=s.stateNode,I.props=A,I.state=s.memoizedState,I.refs={},Am(s),D=c.contextType,I.context=typeof D=="object"&&D!==null?En(D):is,I.state=s.memoizedState,D=c.getDerivedStateFromProps,typeof D=="function"&&(JA(s,c,D,A),I.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(D=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),D!==I.state&&em.enqueueReplaceState(I,I.state,null),sl(s,A,I,p),al(),I.state=s.memoizedState),typeof I.componentDidMount=="function"&&(s.flags|=4194308),A=!0}else if(a===null){I=s.stateNode;var F=s.memoizedProps,M=ra(c,F);I.props=M;var $=I.context,se=c.contextType;D=is,typeof se=="object"&&se!==null&&(D=En(se));var he=c.getDerivedStateFromProps;se=typeof he=="function"||typeof I.getSnapshotBeforeUpdate=="function",F=s.pendingProps!==F,se||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(F||$!==D)&&qN(s,I,A,D),Ji=!1;var J=s.memoizedState;I.state=J,sl(s,A,I,p),al(),$=s.memoizedState,F||J!==$||Ji?(typeof he=="function"&&(JA(s,c,he,A),$=s.memoizedState),(M=Ji||WN(s,c,M,A,J,$,D))?(se||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(s.flags|=4194308)):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=A,s.memoizedState=$),I.props=A,I.state=$,I.context=D,A=M):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),A=!1)}else{I=s.stateNode,mm(a,s),D=s.memoizedProps,se=ra(c,D),I.props=se,he=s.pendingProps,J=I.context,$=c.contextType,M=is,typeof $=="object"&&$!==null&&(M=En($)),F=c.getDerivedStateFromProps,($=typeof F=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(D!==he||J!==M)&&qN(s,I,A,M),Ji=!1,J=s.memoizedState,I.state=J,sl(s,A,I,p),al();var ue=s.memoizedState;D!==he||J!==ue||Ji||a!==null&&a.dependencies!==null&&qd(a.dependencies)?(typeof F=="function"&&(JA(s,c,F,A),ue=s.memoizedState),(se=Ji||WN(s,c,se,A,J,ue,M)||a!==null&&a.dependencies!==null&&qd(a.dependencies))?($||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(A,ue,M),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(A,ue,M)),typeof I.componentDidUpdate=="function"&&(s.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof I.componentDidUpdate!="function"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=1024),s.memoizedProps=A,s.memoizedState=ue),I.props=A,I.state=ue,I.context=M,A=se):(typeof I.componentDidUpdate!="function"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=1024),A=!1)}return I=A,rl(a,s),A=(s.flags&128)!==0,I||A?(I=s.stateNode,c=A&&typeof c.getDerivedStateFromError!="function"?null:I.render(),s.flags|=1,a!==null&&A?(s.child=Qu(s,a.child,null,p),s.child=Qu(s,null,c,p)):ln(a,s,c,p),s.memoizedState=I.state,a=s.child):a=mi(a,s,p),a}function dI(a,s,c,A){return $o(),s.flags|=256,ln(a,s,c,A),s.child}var rm={dehydrated:null,treeContext:null,retryLane:0};function im(a){return{baseLanes:a,cachePool:hN()}}function um(a,s,c){return a=a!==null?a.childLanes&~c:0,s&&(a|=fr),a}function fI(a,s,c){var A=s.pendingProps,p=!1,I=(s.flags&128)!==0,D;if((D=I)||(D=a!==null&&a.memoizedState===null?!1:(Yt.current&2)!==0),D&&(p=!0,s.flags&=-129),D=(s.flags&32)!==0,s.flags&=-33,a===null){if(ft){if(p?Zi(s):Wi(),ft){var F=on,M;if(M=F){e:{for(M=F,F=Ur;M.nodeType!==8;){if(!F){F=null;break e}if(M=Tr(M.nextSibling),M===null){F=null;break e}}F=M}F!==null?(s.memoizedState={dehydrated:F,treeContext:Wu!==null?{id:di,overflow:fi}:null,retryLane:536870912},M=dr(18,null,null,0),M.stateNode=F,M.return=s,s.child=M,Tn=s,on=null,M=!0):M=!1}M||Xu(s)}if(F=s.memoizedState,F!==null&&(F=F.dehydrated,F!==null))return F.data==="$!"?s.lanes=16:s.lanes=536870912,null;hi(s)}return F=A.children,A=A.fallback,p?(Wi(),p=s.mode,F=sm({mode:"hidden",children:F},p),A=sa(A,p,c,null),F.return=s,A.return=s,F.sibling=A,s.child=F,p=s.child,p.memoizedState=im(c),p.childLanes=um(a,D,c),s.memoizedState=rm,A):(Zi(s),am(s,F))}if(M=a.memoizedState,M!==null&&(F=M.dehydrated,F!==null)){if(I)s.flags&256?(Zi(s),s.flags&=-257,s=om(a,s,c)):s.memoizedState!==null?(Wi(),s.child=a.child,s.flags|=128,s=null):(Wi(),p=A.fallback,F=s.mode,A=sm({mode:"visible",children:A.children},F),p=sa(p,F,c,null),p.flags|=2,A.return=s,p.return=s,A.sibling=p,s.child=A,Qu(s,a.child,null,c),A=s.child,A.memoizedState=im(c),A.childLanes=um(a,D,c),s.memoizedState=rm,s=p);else if(Zi(s),F.data==="$!"){if(D=F.nextSibling&&F.nextSibling.dataset,D)var $=D.dgst;D=$,A=Error(r(419)),A.stack="",A.digest=D,Yo({value:A,source:null,stack:null}),s=om(a,s,c)}else if(tn||il(a,s,c,!1),D=(c&a.childLanes)!==0,tn||D){if(D=_t,D!==null){if(A=c&-c,(A&42)!==0)A=1;else switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:A=64;break;case 268435456:A=134217728;break;default:A=0}if(A=(A&(D.suspendedLanes|c))!==0?0:A,A!==0&&A!==M.retryLane)throw M.retryLane=A,Yi(a,A),Dn(D,a,A),rI}F.data==="$?"||Mm(),s=om(a,s,c)}else F.data==="$?"?(s.flags|=128,s.child=a.child,s=iL.bind(null,a),F._reactRetry=s,s=null):(a=M.treeContext,on=Tr(F.nextSibling),Tn=s,ft=!0,vr=null,Ur=!1,a!==null&&(ar[sr++]=di,ar[sr++]=fi,ar[sr++]=Wu,di=a.id,fi=a.overflow,Wu=s),s=am(s,A.children),s.flags|=4096);return s}return p?(Wi(),p=A.fallback,F=s.mode,M=a.child,$=M.sibling,A=uu(M,{mode:"hidden",children:A.children}),A.subtreeFlags=M.subtreeFlags&31457280,$!==null?p=uu($,p):(p=sa(p,F,c,null),p.flags|=2),p.return=s,A.return=s,A.sibling=p,s.child=A,A=p,p=s.child,F=a.child.memoizedState,F===null?F=im(c):(M=F.cachePool,M!==null?($=Zt._currentValue,M=M.parent!==$?{parent:$,pool:$}:M):M=hN(),F={baseLanes:F.baseLanes|c,cachePool:M}),p.memoizedState=F,p.childLanes=um(a,D,c),s.memoizedState=rm,A):(Zi(s),c=a.child,a=c.sibling,c=uu(c,{mode:"visible",children:A.children}),c.return=s,c.sibling=null,a!==null&&(D=s.deletions,D===null?(s.deletions=[a],s.flags|=16):D.push(a)),s.child=c,s.memoizedState=null,c)}function am(a,s){return s=sm({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function sm(a,s){return HI(a,s,0,null)}function om(a,s,c){return Qu(s,a.child,null,c),a=am(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function hI(a,s,c){a.lanes|=s;var A=a.alternate;A!==null&&(A.lanes|=s),fm(a.return,s,c)}function lm(a,s,c,A,p){var I=a.memoizedState;I===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:A,tail:c,tailMode:p}:(I.isBackwards=s,I.rendering=null,I.renderingStartTime=0,I.last=A,I.tail=c,I.tailMode=p)}function AI(a,s,c){var A=s.pendingProps,p=A.revealOrder,I=A.tail;if(ln(a,s,A.children,c),A=Yt.current,(A&2)!==0)A=A&1|2,s.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&hI(a,c,s);else if(a.tag===19)hI(a,c,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}A&=1}switch(we(Yt,A),p){case"forwards":for(c=s.child,p=null;c!==null;)a=c.alternate,a!==null&&Hd(a)===null&&(p=c),c=c.sibling;c=p,c===null?(p=s.child,s.child=null):(p=c.sibling,c.sibling=null),lm(s,!1,p,c,I);break;case"backwards":for(c=null,p=s.child,s.child=null;p!==null;){if(a=p.alternate,a!==null&&Hd(a)===null){s.child=p;break}a=p.sibling,p.sibling=c,c=p,p=a}lm(s,!0,c,null,I);break;case"together":lm(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function mi(a,s,c){if(a!==null&&(s.dependencies=a.dependencies),au|=s.lanes,(c&s.childLanes)===0)if(a!==null){if(il(a,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(r(153));if(s.child!==null){for(a=s.child,c=uu(a,a.pendingProps),s.child=c,c.return=s;a.sibling!==null;)a=a.sibling,c=c.sibling=uu(a,a.pendingProps),c.return=s;c.sibling=null}return s.child}function cm(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&qd(a)))}function zO(a,s,c){switch(s.tag){case 3:yr(s,s.stateNode.containerInfo),Qi(s,Zt,a.memoizedState.cache),$o();break;case 27:case 5:Hr(s);break;case 4:yr(s,s.stateNode.containerInfo);break;case 10:Qi(s,s.type,s.memoizedProps.value);break;case 13:var A=s.memoizedState;if(A!==null)return A.dehydrated!==null?(Zi(s),s.flags|=128,null):(c&s.child.childLanes)!==0?fI(a,s,c):(Zi(s),a=mi(a,s,c),a!==null?a.sibling:null);Zi(s);break;case 19:var p=(a.flags&128)!==0;if(A=(c&s.childLanes)!==0,A||(il(a,s,c,!1),A=(c&s.childLanes)!==0),p){if(A)return AI(a,s,c);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),we(Yt,Yt.current),A)break;return null;case 22:case 23:return s.lanes=0,sI(a,s,c);case 24:Qi(s,Zt,a.memoizedState.cache)}return mi(a,s,c)}function mI(a,s,c){if(a!==null)if(a.memoizedProps!==s.pendingProps)tn=!0;else{if(!cm(a,c)&&(s.flags&128)===0)return tn=!1,zO(a,s,c);tn=(a.flags&131072)!==0}else tn=!1,ft&&(s.flags&1048576)!==0&&JS(s,Od,s.index);switch(s.lanes=0,s.tag){case 16:e:{a=s.pendingProps;var A=s.elementType,p=A._init;if(A=p(A._payload),s.type=A,typeof A=="function")Cm(A)?(a=ra(A,a),s.tag=1,s=cI(null,s,A,a,c)):(s.tag=0,s=nm(null,s,A,a,c));else{if(A!=null){if(p=A.$$typeof,p===S){s.tag=11,s=iI(null,s,A,a,c);break e}else if(p===R){s.tag=14,s=uI(null,s,A,a,c);break e}}throw s=H(A)||A,Error(r(306,s,""))}}return s;case 0:return nm(a,s,s.type,s.pendingProps,c);case 1:return A=s.type,p=ra(A,s.pendingProps),cI(a,s,A,p,c);case 3:e:{if(yr(s,s.stateNode.containerInfo),a===null)throw Error(r(387));var I=s.pendingProps;p=s.memoizedState,A=p.element,mm(a,s),sl(s,I,null,c);var D=s.memoizedState;if(I=D.cache,Qi(s,Zt,I),I!==p.cache&&hm(s,[Zt],c,!0),al(),I=D.element,p.isDehydrated)if(p={element:I,isDehydrated:!1,cache:D.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=dI(a,s,I,c);break e}else if(I!==A){A=ur(Error(r(424)),s),Yo(A),s=dI(a,s,I,c);break e}else for(on=Tr(s.stateNode.containerInfo.firstChild),Tn=s,ft=!0,vr=null,Ur=!0,c=oN(s,null,I,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if($o(),I===A){s=mi(a,s,c);break e}ln(a,s,I,c)}s=s.child}return s;case 26:return rl(a,s),a===null?(c=g3(s.type,null,s.pendingProps,null))?s.memoizedState=c:ft||(c=s.type,a=s.pendingProps,A=f0(It.current).createElement(c),A[pn]=s,A[Fn]=a,cn(A,c,a),en(A),s.stateNode=A):s.memoizedState=g3(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return Hr(s),a===null&&ft&&(A=s.stateNode=m3(s.type,s.pendingProps,It.current),Tn=s,Ur=!0,on=Tr(A.firstChild)),A=s.pendingProps.children,a!==null||ft?ln(a,s,A,c):s.child=Qu(s,null,A,c),rl(a,s),s.child;case 5:return a===null&&ft&&((p=A=on)&&(A=SL(A,s.type,s.pendingProps,Ur),A!==null?(s.stateNode=A,Tn=s,on=Tr(A.firstChild),Ur=!1,p=!0):p=!1),p||Xu(s)),Hr(s),p=s.type,I=s.pendingProps,D=a!==null?a.memoizedProps:null,A=I.children,qm(p,I)?A=null:D!==null&&qm(p,D)&&(s.flags|=32),s.memoizedState!==null&&(p=HA(a,s,PO,null,null,c),Il._currentValue=p),rl(a,s),ln(a,s,A,c),s.child;case 6:return a===null&&ft&&((a=c=on)&&(c=NL(c,s.pendingProps,Ur),c!==null?(s.stateNode=c,Tn=s,on=null,a=!0):a=!1),a||Xu(s)),null;case 13:return fI(a,s,c);case 4:return yr(s,s.stateNode.containerInfo),A=s.pendingProps,a===null?s.child=Qu(s,null,A,c):ln(a,s,A,c),s.child;case 11:return iI(a,s,s.type,s.pendingProps,c);case 7:return ln(a,s,s.pendingProps,c),s.child;case 8:return ln(a,s,s.pendingProps.children,c),s.child;case 12:return ln(a,s,s.pendingProps.children,c),s.child;case 10:return A=s.pendingProps,Qi(s,s.type,A.value),ln(a,s,A.children,c),s.child;case 9:return p=s.type._context,A=s.pendingProps.children,ua(s),p=En(p),A=A(p),s.flags|=1,ln(a,s,A,c),s.child;case 14:return uI(a,s,s.type,s.pendingProps,c);case 15:return aI(a,s,s.type,s.pendingProps,c);case 19:return AI(a,s,c);case 22:return sI(a,s,c);case 24:return ua(s),A=En(Zt),a===null?(p=MA(),p===null&&(p=_t,I=LA(),p.pooledCache=I,I.refCount++,I!==null&&(p.pooledCacheLanes|=c),p=I),s.memoizedState={parent:A,cache:p},Am(s),Qi(s,Zt,p)):((a.lanes&c)!==0&&(mm(a,s),sl(s,null,null,c),al()),p=a.memoizedState,I=s.memoizedState,p.parent!==A?(p={parent:A,cache:A},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Qi(s,Zt,A)):(A=I.cache,Qi(s,Zt,A),A!==p.cache&&hm(s,[Zt],c,!0))),ln(a,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}var dm=ve(null),ia=null,pi=null;function Qi(a,s,c){we(dm,s._currentValue),s._currentValue=c}function Ei(a){a._currentValue=dm.current,Ve(dm)}function fm(a,s,c){for(;a!==null;){var A=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,A!==null&&(A.childLanes|=s)):A!==null&&(A.childLanes&s)!==s&&(A.childLanes|=s),a===c)break;a=a.return}}function hm(a,s,c,A){var p=a.child;for(p!==null&&(p.return=a);p!==null;){var I=p.dependencies;if(I!==null){var D=p.child;I=I.firstContext;e:for(;I!==null;){var F=I;I=p;for(var M=0;M<s.length;M++)if(F.context===s[M]){I.lanes|=c,F=I.alternate,F!==null&&(F.lanes|=c),fm(I.return,c,a),A||(D=null);break e}I=F.next}}else if(p.tag===18){if(D=p.return,D===null)throw Error(r(341));D.lanes|=c,I=D.alternate,I!==null&&(I.lanes|=c),fm(D,c,a),D=null}else D=p.child;if(D!==null)D.return=p;else for(D=p;D!==null;){if(D===a){D=null;break}if(p=D.sibling,p!==null){p.return=D.return,D=p;break}D=D.return}p=D}}function il(a,s,c,A){a=null;for(var p=s,I=!1;p!==null;){if(!I){if((p.flags&524288)!==0)I=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var D=p.alternate;if(D===null)throw Error(r(387));if(D=D.memoizedProps,D!==null){var F=p.type;jn(p.pendingProps.value,D.value)||(a!==null?a.push(F):a=[F])}}else if(p===Jt.current){if(D=p.alternate,D===null)throw Error(r(387));D.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(a!==null?a.push(Il):a=[Il])}p=p.return}a!==null&&hm(s,a,c,A),s.flags|=262144}function qd(a){for(a=a.firstContext;a!==null;){if(!jn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function ua(a){ia=a,pi=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function En(a){return pI(ia,a)}function Xd(a,s){return ia===null&&ua(a),pI(a,s)}function pI(a,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},pi===null){if(a===null)throw Error(r(308));pi=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else pi=pi.next=s;return c}var Ji=!1;function Am(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mm(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function eu(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function tu(a,s,c){var A=a.updateQueue;if(A===null)return null;if(A=A.shared,(Rt&2)!==0){var p=A.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),A.pending=s,s=Bd(a),XS(a,null,c),s}return xd(a,A,s,c),Bd(a)}function ul(a,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194176)!==0)){var A=s.lanes;A&=a.pendingLanes,c|=A,s.lanes=c,uS(a,c)}}function pm(a,s){var c=a.updateQueue,A=a.alternate;if(A!==null&&(A=A.updateQueue,c===A)){var p=null,I=null;if(c=c.firstBaseUpdate,c!==null){do{var D={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};I===null?p=I=D:I=I.next=D,c=c.next}while(c!==null);I===null?p=I=s:I=I.next=s}else p=I=s;c={baseState:A.baseState,firstBaseUpdate:p,lastBaseUpdate:I,shared:A.shared,callbacks:A.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=s:a.next=s,c.lastBaseUpdate=s}var Em=!1;function al(){if(Em){var a=cs;if(a!==null)throw a}}function sl(a,s,c,A){Em=!1;var p=a.updateQueue;Ji=!1;var I=p.firstBaseUpdate,D=p.lastBaseUpdate,F=p.shared.pending;if(F!==null){p.shared.pending=null;var M=F,$=M.next;M.next=null,D===null?I=$:D.next=$,D=M;var se=a.alternate;se!==null&&(se=se.updateQueue,F=se.lastBaseUpdate,F!==D&&(F===null?se.firstBaseUpdate=$:F.next=$,se.lastBaseUpdate=M))}if(I!==null){var he=p.baseState;D=0,se=$=M=null,F=I;do{var J=F.lane&-536870913,ue=J!==F.lane;if(ue?(ct&J)===J:(A&J)===J){J!==0&&J===ls&&(Em=!0),se!==null&&(se=se.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var Le=a,Ye=F;J=s;var Ot=c;switch(Ye.tag){case 1:if(Le=Ye.payload,typeof Le=="function"){he=Le.call(Ot,he,J);break e}he=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ye.payload,J=typeof Le=="function"?Le.call(Ot,he,J):Le,J==null)break e;he=G({},he,J);break e;case 2:Ji=!0}}J=F.callback,J!==null&&(a.flags|=64,ue&&(a.flags|=8192),ue=p.callbacks,ue===null?p.callbacks=[J]:ue.push(J))}else ue={lane:J,tag:F.tag,payload:F.payload,callback:F.callback,next:null},se===null?($=se=ue,M=he):se=se.next=ue,D|=J;if(F=F.next,F===null){if(F=p.shared.pending,F===null)break;ue=F,F=ue.next,ue.next=null,p.lastBaseUpdate=ue,p.shared.pending=null}}while(!0);se===null&&(M=he),p.baseState=M,p.firstBaseUpdate=$,p.lastBaseUpdate=se,I===null&&(p.shared.lanes=0),au|=D,a.lanes=D,a.memoizedState=he}}function EI(a,s){if(typeof a!="function")throw Error(r(191,a));a.call(s)}function gI(a,s){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)EI(c[a],s)}function ol(a,s){try{var c=s.updateQueue,A=c!==null?c.lastEffect:null;if(A!==null){var p=A.next;c=p;do{if((c.tag&a)===a){A=void 0;var I=c.create,D=c.inst;A=I(),D.destroy=A}c=c.next}while(c!==p)}}catch(F){gt(s,s.return,F)}}function nu(a,s,c){try{var A=s.updateQueue,p=A!==null?A.lastEffect:null;if(p!==null){var I=p.next;A=I;do{if((A.tag&a)===a){var D=A.inst,F=D.destroy;if(F!==void 0){D.destroy=void 0,p=s;var M=c;try{F()}catch($){gt(p,M,$)}}}A=A.next}while(A!==I)}}catch($){gt(s,s.return,$)}}function _I(a){var s=a.updateQueue;if(s!==null){var c=a.stateNode;try{gI(s,c)}catch(A){gt(a,a.return,A)}}}function SI(a,s,c){c.props=ra(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(A){gt(a,s,A)}}function aa(a,s){try{var c=a.ref;if(c!==null){var A=a.stateNode;switch(a.tag){case 26:case 27:case 5:var p=A;break;default:p=A}typeof c=="function"?a.refCleanup=c(p):c.current=p}}catch(I){gt(a,s,I)}}function zn(a,s){var c=a.ref,A=a.refCleanup;if(c!==null)if(typeof A=="function")try{A()}catch(p){gt(a,s,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(p){gt(a,s,p)}else c.current=null}function NI(a){var s=a.type,c=a.memoizedProps,A=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&A.focus();break e;case"img":c.src?A.src=c.src:c.srcSet&&(A.srcset=c.srcSet)}}catch(p){gt(a,a.return,p)}}function II(a,s,c){try{var A=a.stateNode;mL(A,a.type,c,s),A[Fn]=s}catch(p){gt(a,a.return,p)}}function yI(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27||a.tag===4}function gm(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||yI(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==27&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function _m(a,s,c){var A=a.tag;if(A===5||A===6)a=a.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(a,s):c.insertBefore(a,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(a,c)):(s=c,s.appendChild(a)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=d0));else if(A!==4&&A!==27&&(a=a.child,a!==null))for(_m(a,s,c),a=a.sibling;a!==null;)_m(a,s,c),a=a.sibling}function Qd(a,s,c){var A=a.tag;if(A===5||A===6)a=a.stateNode,s?c.insertBefore(a,s):c.appendChild(a);else if(A!==4&&A!==27&&(a=a.child,a!==null))for(Qd(a,s,c),a=a.sibling;a!==null;)Qd(a,s,c),a=a.sibling}var gi=!1,Bt=!1,Sm=!1,CI=typeof WeakSet=="function"?WeakSet:Set,nn=null,vI=!1;function KO(a,s){if(a=a.containerInfo,Zm=g0,a=VS(a),IA(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var A=c.getSelection&&c.getSelection();if(A&&A.rangeCount!==0){c=A.anchorNode;var p=A.anchorOffset,I=A.focusNode;A=A.focusOffset;try{c.nodeType,I.nodeType}catch{c=null;break e}var D=0,F=-1,M=-1,$=0,se=0,he=a,J=null;t:for(;;){for(var ue;he!==c||p!==0&&he.nodeType!==3||(F=D+p),he!==I||A!==0&&he.nodeType!==3||(M=D+A),he.nodeType===3&&(D+=he.nodeValue.length),(ue=he.firstChild)!==null;)J=he,he=ue;for(;;){if(he===a)break t;if(J===c&&++$===p&&(F=D),J===I&&++se===A&&(M=D),(ue=he.nextSibling)!==null)break;he=J,J=he.parentNode}he=ue}c=F===-1||M===-1?null:{start:F,end:M}}else c=null}c=c||{start:0,end:0}}else c=null;for(Wm={focusedElem:a,selectionRange:c},g0=!1,nn=s;nn!==null;)if(s=nn,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,nn=a;else for(;nn!==null;){switch(s=nn,I=s.alternate,a=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&I!==null){a=void 0,c=s,p=I.memoizedProps,I=I.memoizedState,A=c.stateNode;try{var Le=ra(c.type,p,c.elementType===c.type);a=A.getSnapshotBeforeUpdate(Le,I),A.__reactInternalSnapshotBeforeUpdate=a}catch(Ye){gt(c,c.return,Ye)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,c=a.nodeType,c===9)Jm(a);else if(c===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Jm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=s.sibling,a!==null){a.return=s.return,nn=a;break}nn=s.return}return Le=vI,vI=!1,Le}function RI(a,s,c){var A=c.flags;switch(c.tag){case 0:case 11:case 15:Si(a,c),A&4&&ol(5,c);break;case 1:if(Si(a,c),A&4)if(a=c.stateNode,s===null)try{a.componentDidMount()}catch(F){gt(c,c.return,F)}else{var p=ra(c.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(p,s,a.__reactInternalSnapshotBeforeUpdate)}catch(F){gt(c,c.return,F)}}A&64&&_I(c),A&512&&aa(c,c.return);break;case 3:if(Si(a,c),A&64&&(A=c.updateQueue,A!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{gI(A,a)}catch(F){gt(c,c.return,F)}}break;case 26:Si(a,c),A&512&&aa(c,c.return);break;case 27:case 5:Si(a,c),s===null&&A&4&&NI(c),A&512&&aa(c,c.return);break;case 12:Si(a,c);break;case 13:Si(a,c),A&4&&bI(a,c);break;case 22:if(p=c.memoizedState!==null||gi,!p){s=s!==null&&s.memoizedState!==null||Bt;var I=gi,D=Bt;gi=p,(Bt=s)&&!D?ru(a,c,(c.subtreeFlags&8772)!==0):Si(a,c),gi=I,Bt=D}A&512&&(c.memoizedProps.mode==="manual"?aa(c,c.return):zn(c,c.return));break;default:Si(a,c)}}function TI(a){var s=a.alternate;s!==null&&(a.alternate=null,TI(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&aA(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var zt=null,Kn=!1;function _i(a,s,c){for(c=c.child;c!==null;)DI(a,s,c),c=c.sibling}function DI(a,s,c){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(ji,c)}catch{}switch(c.tag){case 26:Bt||zn(c,s),_i(a,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Bt||zn(c,s);var A=zt,p=Kn;for(zt=c.stateNode,_i(a,s,c),c=c.stateNode,s=c.attributes;s.length;)c.removeAttributeNode(s[0]);aA(c),zt=A,Kn=p;break;case 5:Bt||zn(c,s);case 6:p=zt;var I=Kn;if(zt=null,_i(a,s,c),zt=p,Kn=I,zt!==null)if(Kn)try{a=zt,A=c.stateNode,a.nodeType===8?a.parentNode.removeChild(A):a.removeChild(A)}catch(D){gt(c,s,D)}else try{zt.removeChild(c.stateNode)}catch(D){gt(c,s,D)}break;case 18:zt!==null&&(Kn?(s=zt,c=c.stateNode,s.nodeType===8?Qm(s.parentNode,c):s.nodeType===1&&Qm(s,c),Rl(s)):Qm(zt,c.stateNode));break;case 4:A=zt,p=Kn,zt=c.stateNode.containerInfo,Kn=!0,_i(a,s,c),zt=A,Kn=p;break;case 0:case 11:case 14:case 15:Bt||nu(2,c,s),Bt||nu(4,c,s),_i(a,s,c);break;case 1:Bt||(zn(c,s),A=c.stateNode,typeof A.componentWillUnmount=="function"&&SI(c,s,A)),_i(a,s,c);break;case 21:_i(a,s,c);break;case 22:Bt||zn(c,s),Bt=(A=Bt)||c.memoizedState!==null,_i(a,s,c),Bt=A;break;default:_i(a,s,c)}}function bI(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Rl(a)}catch(c){gt(s,s.return,c)}}function $O(a){switch(a.tag){case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new CI),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new CI),s;default:throw Error(r(435,a.tag))}}function Nm(a,s){var c=$O(a);s.forEach(function(A){var p=uL.bind(null,a,A);c.has(A)||(c.add(A),A.then(p,p))})}function lr(a,s){var c=s.deletions;if(c!==null)for(var A=0;A<c.length;A++){var p=c[A],I=a,D=s,F=D;e:for(;F!==null;){switch(F.tag){case 27:case 5:zt=F.stateNode,Kn=!1;break e;case 3:zt=F.stateNode.containerInfo,Kn=!0;break e;case 4:zt=F.stateNode.containerInfo,Kn=!0;break e}F=F.return}if(zt===null)throw Error(r(160));DI(I,D,p),zt=null,Kn=!1,I=p.alternate,I!==null&&(I.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)xI(s,a),s=s.sibling}var Rr=null;function xI(a,s){var c=a.alternate,A=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:lr(s,a),cr(a),A&4&&(nu(3,a,a.return),ol(3,a),nu(5,a,a.return));break;case 1:lr(s,a),cr(a),A&512&&(Bt||c===null||zn(c,c.return)),A&64&&gi&&(a=a.updateQueue,a!==null&&(A=a.callbacks,A!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?A:c.concat(A))));break;case 26:var p=Rr;if(lr(s,a),cr(a),A&512&&(Bt||c===null||zn(c,c.return)),A&4){var I=c!==null?c.memoizedState:null;if(A=a.memoizedState,c===null)if(A===null)if(a.stateNode===null){e:{A=a.type,c=a.memoizedProps,p=p.ownerDocument||p;t:switch(A){case"title":I=p.getElementsByTagName("title")[0],(!I||I[Lo]||I[pn]||I.namespaceURI==="http://www.w3.org/2000/svg"||I.hasAttribute("itemprop"))&&(I=p.createElement(A),p.head.insertBefore(I,p.querySelector("head > title"))),cn(I,A,c),I[pn]=a,en(I),A=I;break e;case"link":var D=N3("link","href",p).get(A+(c.href||""));if(D){for(var F=0;F<D.length;F++)if(I=D[F],I.getAttribute("href")===(c.href==null?null:c.href)&&I.getAttribute("rel")===(c.rel==null?null:c.rel)&&I.getAttribute("title")===(c.title==null?null:c.title)&&I.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){D.splice(F,1);break t}}I=p.createElement(A),cn(I,A,c),p.head.appendChild(I);break;case"meta":if(D=N3("meta","content",p).get(A+(c.content||""))){for(F=0;F<D.length;F++)if(I=D[F],I.getAttribute("content")===(c.content==null?null:""+c.content)&&I.getAttribute("name")===(c.name==null?null:c.name)&&I.getAttribute("property")===(c.property==null?null:c.property)&&I.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&I.getAttribute("charset")===(c.charSet==null?null:c.charSet)){D.splice(F,1);break t}}I=p.createElement(A),cn(I,A,c),p.head.appendChild(I);break;default:throw Error(r(468,A))}I[pn]=a,en(I),A=I}a.stateNode=A}else I3(p,a.type,a.stateNode);else a.stateNode=S3(p,A,a.memoizedProps);else I!==A?(I===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):I.count--,A===null?I3(p,a.type,a.stateNode):S3(p,A,a.memoizedProps)):A===null&&a.stateNode!==null&&II(a,a.memoizedProps,c.memoizedProps)}break;case 27:if(A&4&&a.alternate===null){p=a.stateNode,I=a.memoizedProps;try{for(var M=p.firstChild;M;){var $=M.nextSibling,se=M.nodeName;M[Lo]||se==="HEAD"||se==="BODY"||se==="SCRIPT"||se==="STYLE"||se==="LINK"&&M.rel.toLowerCase()==="stylesheet"||p.removeChild(M),M=$}for(var he=a.type,J=p.attributes;J.length;)p.removeAttributeNode(J[0]);cn(p,he,I),p[pn]=a,p[Fn]=I}catch(Le){gt(a,a.return,Le)}}case 5:if(lr(s,a),cr(a),A&512&&(Bt||c===null||zn(c,c.return)),a.flags&32){p=a.stateNode;try{Xa(p,"")}catch(Le){gt(a,a.return,Le)}}A&4&&a.stateNode!=null&&(p=a.memoizedProps,II(a,p,c!==null?c.memoizedProps:p)),A&1024&&(Sm=!0);break;case 6:if(lr(s,a),cr(a),A&4){if(a.stateNode===null)throw Error(r(162));A=a.memoizedProps,c=a.stateNode;try{c.nodeValue=A}catch(Le){gt(a,a.return,Le)}}break;case 3:if(m0=null,p=Rr,Rr=h0(s.containerInfo),lr(s,a),Rr=p,cr(a),A&4&&c!==null&&c.memoizedState.isDehydrated)try{Rl(s.containerInfo)}catch(Le){gt(a,a.return,Le)}Sm&&(Sm=!1,BI(a));break;case 4:A=Rr,Rr=h0(a.stateNode.containerInfo),lr(s,a),cr(a),Rr=A;break;case 12:lr(s,a),cr(a);break;case 13:lr(s,a),cr(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(xm=Be()),A&4&&(A=a.updateQueue,A!==null&&(a.updateQueue=null,Nm(a,A)));break;case 22:if(A&512&&(Bt||c===null||zn(c,c.return)),M=a.memoizedState!==null,$=c!==null&&c.memoizedState!==null,se=gi,he=Bt,gi=se||M,Bt=he||$,lr(s,a),Bt=he,gi=se,cr(a),s=a.stateNode,s._current=a,s._visibility&=-3,s._visibility|=s._pendingVisibility&2,A&8192&&(s._visibility=M?s._visibility&-2:s._visibility|1,M&&(s=gi||Bt,c===null||$||s||As(a)),a.memoizedProps===null||a.memoizedProps.mode!=="manual"))e:for(c=null,s=a;;){if(s.tag===5||s.tag===26||s.tag===27){if(c===null){$=c=s;try{if(p=$.stateNode,M)I=p.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{D=$.stateNode,F=$.memoizedProps.style;var ue=F!=null&&F.hasOwnProperty("display")?F.display:null;D.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(Le){gt($,$.return,Le)}}}else if(s.tag===6){if(c===null){$=s;try{$.stateNode.nodeValue=M?"":$.memoizedProps}catch(Le){gt($,$.return,Le)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}A&4&&(A=a.updateQueue,A!==null&&(c=A.retryQueue,c!==null&&(A.retryQueue=null,Nm(a,c))));break;case 19:lr(s,a),cr(a),A&4&&(A=a.updateQueue,A!==null&&(a.updateQueue=null,Nm(a,A)));break;case 21:break;default:lr(s,a),cr(a)}}function cr(a){var s=a.flags;if(s&2){try{if(a.tag!==27){e:{for(var c=a.return;c!==null;){if(yI(c)){var A=c;break e}c=c.return}throw Error(r(160))}switch(A.tag){case 27:var p=A.stateNode,I=gm(a);Qd(a,I,p);break;case 5:var D=A.stateNode;A.flags&32&&(Xa(D,""),A.flags&=-33);var F=gm(a);Qd(a,F,D);break;case 3:case 4:var M=A.stateNode.containerInfo,$=gm(a);_m(a,$,M);break;default:throw Error(r(161))}}}catch(se){gt(a,a.return,se)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function BI(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;BI(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function Si(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)RI(a,s.alternate,s),s=s.sibling}function As(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:nu(4,s,s.return),As(s);break;case 1:zn(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&SI(s,s.return,c),As(s);break;case 26:case 27:case 5:zn(s,s.return),As(s);break;case 22:zn(s,s.return),s.memoizedState===null&&As(s);break;default:As(s)}a=a.sibling}}function ru(a,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var A=s.alternate,p=a,I=s,D=I.flags;switch(I.tag){case 0:case 11:case 15:ru(p,I,c),ol(4,I);break;case 1:if(ru(p,I,c),A=I,p=A.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch($){gt(A,A.return,$)}if(A=I,p=A.updateQueue,p!==null){var F=A.stateNode;try{var M=p.shared.hiddenCallbacks;if(M!==null)for(p.shared.hiddenCallbacks=null,p=0;p<M.length;p++)EI(M[p],F)}catch($){gt(A,A.return,$)}}c&&D&64&&_I(I),aa(I,I.return);break;case 26:case 27:case 5:ru(p,I,c),c&&A===null&&D&4&&NI(I),aa(I,I.return);break;case 12:ru(p,I,c);break;case 13:ru(p,I,c),c&&D&4&&bI(p,I);break;case 22:I.memoizedState===null&&ru(p,I,c),aa(I,I.return);break;default:ru(p,I,c)}s=s.sibling}}function Im(a,s){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&Qo(c))}function ym(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Qo(a))}function iu(a,s,c,A){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)FI(a,s,c,A),s=s.sibling}function FI(a,s,c,A){var p=s.flags;switch(s.tag){case 0:case 11:case 15:iu(a,s,c,A),p&2048&&ol(9,s);break;case 3:iu(a,s,c,A),p&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Qo(a)));break;case 12:if(p&2048){iu(a,s,c,A),a=s.stateNode;try{var I=s.memoizedProps,D=I.id,F=I.onPostCommit;typeof F=="function"&&F(D,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(M){gt(s,s.return,M)}}else iu(a,s,c,A);break;case 23:break;case 22:I=s.stateNode,s.memoizedState!==null?I._visibility&4?iu(a,s,c,A):ll(a,s):I._visibility&4?iu(a,s,c,A):(I._visibility|=4,ms(a,s,c,A,(s.subtreeFlags&10256)!==0)),p&2048&&Im(s.alternate,s);break;case 24:iu(a,s,c,A),p&2048&&ym(s.alternate,s);break;default:iu(a,s,c,A)}}function ms(a,s,c,A,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var I=a,D=s,F=c,M=A,$=D.flags;switch(D.tag){case 0:case 11:case 15:ms(I,D,F,M,p),ol(8,D);break;case 23:break;case 22:var se=D.stateNode;D.memoizedState!==null?se._visibility&4?ms(I,D,F,M,p):ll(I,D):(se._visibility|=4,ms(I,D,F,M,p)),p&&$&2048&&Im(D.alternate,D);break;case 24:ms(I,D,F,M,p),p&&$&2048&&ym(D.alternate,D);break;default:ms(I,D,F,M,p)}s=s.sibling}}function ll(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=a,A=s,p=A.flags;switch(A.tag){case 22:ll(c,A),p&2048&&Im(A.alternate,A);break;case 24:ll(c,A),p&2048&&ym(A.alternate,A);break;default:ll(c,A)}s=s.sibling}}var cl=8192;function ps(a){if(a.subtreeFlags&cl)for(a=a.child;a!==null;)OI(a),a=a.sibling}function OI(a){switch(a.tag){case 26:ps(a),a.flags&cl&&a.memoizedState!==null&&LL(Rr,a.memoizedState,a.memoizedProps);break;case 5:ps(a);break;case 3:case 4:var s=Rr;Rr=h0(a.stateNode.containerInfo),ps(a),Rr=s;break;case 22:a.memoizedState===null&&(s=a.alternate,s!==null&&s.memoizedState!==null?(s=cl,cl=16777216,ps(a),cl=s):ps(a));break;default:ps(a)}}function LI(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function dl(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var A=s[c];nn=A,MI(A,a)}LI(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)wI(a),a=a.sibling}function wI(a){switch(a.tag){case 0:case 11:case 15:dl(a),a.flags&2048&&nu(9,a,a.return);break;case 3:dl(a);break;case 12:dl(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&4&&(a.return===null||a.return.tag!==13)?(s._visibility&=-5,Jd(a)):dl(a);break;default:dl(a)}}function Jd(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var A=s[c];nn=A,MI(A,a)}LI(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:nu(8,s,s.return),Jd(s);break;case 22:c=s.stateNode,c._visibility&4&&(c._visibility&=-5,Jd(s));break;default:Jd(s)}a=a.sibling}}function MI(a,s){for(;nn!==null;){var c=nn;switch(c.tag){case 0:case 11:case 15:nu(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var A=c.memoizedState.cachePool.pool;A!=null&&A.refCount++}break;case 24:Qo(c.memoizedState.cache)}if(A=c.child,A!==null)A.return=c,nn=A;else e:for(c=a;nn!==null;){A=nn;var p=A.sibling,I=A.return;if(TI(A),A===c){nn=null;break e}if(p!==null){p.return=I,nn=p;break e}nn=I}}}function YO(a,s,c,A){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(a,s,c,A){return new YO(a,s,c,A)}function Cm(a){return a=a.prototype,!(!a||!a.isReactComponent)}function uu(a,s){var c=a.alternate;return c===null?(c=dr(a.tag,s,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=s,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&31457280,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,s=a.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function PI(a,s){a.flags&=31457282;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,s=c.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function e0(a,s,c,A,p,I){var D=0;if(A=a,typeof a=="function")Cm(a)&&(D=1);else if(typeof a=="string")D=FL(a,c,Ze.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case f:return sa(c.children,p,I,s);case h:D=8,p|=24;break;case m:return a=dr(12,c,s,p|2),a.elementType=m,a.lanes=I,a;case C:return a=dr(13,c,s,p),a.elementType=C,a.lanes=I,a;case v:return a=dr(19,c,s,p),a.elementType=v,a.lanes=I,a;case b:return HI(c,p,I,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case E:case _:D=10;break e;case g:D=9;break e;case S:D=11;break e;case R:D=14;break e;case T:D=16,A=null;break e}D=29,c=Error(r(130,a===null?"null":typeof a,"")),A=null}return s=dr(D,c,s,p),s.elementType=a,s.type=A,s.lanes=I,s}function sa(a,s,c,A){return a=dr(7,a,A,s),a.lanes=c,a}function HI(a,s,c,A){a=dr(22,a,A,s),a.elementType=b,a.lanes=c;var p={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)===0){var D=Yi(I,2);D!==null&&(p._pendingVisibility|=2,Dn(D,I,2))}},attach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var D=Yi(I,2);D!==null&&(p._pendingVisibility&=-3,Dn(D,I,2))}}};return a.stateNode=p,a}function vm(a,s,c){return a=dr(6,a,null,s),a.lanes=c,a}function Rm(a,s,c){return s=dr(4,a.children!==null?a.children:[],a.key,s),s.lanes=c,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}function Ni(a){a.flags|=4}function UI(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!y3(s)){if(s=or.current,s!==null&&((ct&4194176)===ct?kr!==null:(ct&62914560)!==ct&&(ct&536870912)===0||s!==kr))throw Wo=BA,nN;a.flags|=8192}}function t0(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?rS():536870912,a.lanes|=s,gs|=s)}function fl(a,s){if(!ft)switch(a.tailMode){case"hidden":s=a.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var A=null;c!==null;)c.alternate!==null&&(A=c),c=c.sibling;A===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:A.sibling=null}}function vt(a){var s=a.alternate!==null&&a.alternate.child===a.child,c=0,A=0;if(s)for(var p=a.child;p!==null;)c|=p.lanes|p.childLanes,A|=p.subtreeFlags&31457280,A|=p.flags&31457280,p.return=a,p=p.sibling;else for(p=a.child;p!==null;)c|=p.lanes|p.childLanes,A|=p.subtreeFlags,A|=p.flags,p.return=a,p=p.sibling;return a.subtreeFlags|=A,a.childLanes=c,s}function ZO(a,s,c){var A=s.pendingProps;switch(bA(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(s),null;case 1:return vt(s),null;case 3:return c=s.stateNode,A=null,a!==null&&(A=a.memoizedState.cache),s.memoizedState.cache!==A&&(s.flags|=2048),Ei(Zt),kn(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(Ko(s)?Ni(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,vr!==null&&(Lm(vr),vr=null))),vt(s),null;case 26:return c=s.memoizedState,a===null?(Ni(s),c!==null?(vt(s),UI(s,c)):(vt(s),s.flags&=-16777217)):c?c!==a.memoizedState?(Ni(s),vt(s),UI(s,c)):(vt(s),s.flags&=-16777217):(a.memoizedProps!==A&&Ni(s),vt(s),s.flags&=-16777217),null;case 27:k(s),c=It.current;var p=s.type;if(a!==null&&s.stateNode!=null)a.memoizedProps!==A&&Ni(s);else{if(!A){if(s.stateNode===null)throw Error(r(166));return vt(s),null}a=Ze.current,Ko(s)?eN(s):(a=m3(p,A,c),s.stateNode=a,Ni(s))}return vt(s),null;case 5:if(k(s),c=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==A&&Ni(s);else{if(!A){if(s.stateNode===null)throw Error(r(166));return vt(s),null}if(a=Ze.current,Ko(s))eN(s);else{switch(p=f0(It.current),a){case 1:a=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:a=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":a=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":a=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":a=p.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof A.is=="string"?p.createElement("select",{is:A.is}):p.createElement("select"),A.multiple?a.multiple=!0:A.size&&(a.size=A.size);break;default:a=typeof A.is=="string"?p.createElement(c,{is:A.is}):p.createElement(c)}}a[pn]=s,a[Fn]=A;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break e;for(;p.sibling===null;){if(p.return===null||p.return===s)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}s.stateNode=a;e:switch(cn(a,c,A),c){case"button":case"input":case"select":case"textarea":a=!!A.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ni(s)}}return vt(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==A&&Ni(s);else{if(typeof A!="string"&&s.stateNode===null)throw Error(r(166));if(a=It.current,Ko(s)){if(a=s.stateNode,c=s.memoizedProps,A=null,p=Tn,p!==null)switch(p.tag){case 27:case 5:A=p.memoizedProps}a[pn]=s,a=!!(a.nodeValue===c||A!==null&&A.suppressHydrationWarning===!0||l3(a.nodeValue,c)),a||Xu(s)}else a=f0(a).createTextNode(A),a[pn]=s,s.stateNode=a}return vt(s),null;case 13:if(A=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=Ko(s),A!==null&&A.dehydrated!==null){if(a===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[pn]=s}else $o(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vt(s),p=!1}else vr!==null&&(Lm(vr),vr=null),p=!0;if(!p)return s.flags&256?(hi(s),s):(hi(s),null)}if(hi(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=A!==null,a=a!==null&&a.memoizedState!==null,c){A=s.child,p=null,A.alternate!==null&&A.alternate.memoizedState!==null&&A.alternate.memoizedState.cachePool!==null&&(p=A.alternate.memoizedState.cachePool.pool);var I=null;A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(I=A.memoizedState.cachePool.pool),I!==p&&(A.flags|=2048)}return c!==a&&c&&(s.child.flags|=8192),t0(s,s.updateQueue),vt(s),null;case 4:return kn(),a===null&&Km(s.stateNode.containerInfo),vt(s),null;case 10:return Ei(s.type),vt(s),null;case 19:if(Ve(Yt),p=s.memoizedState,p===null)return vt(s),null;if(A=(s.flags&128)!==0,I=p.rendering,I===null)if(A)fl(p,!1);else{if(Ft!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(I=Hd(a),I!==null){for(s.flags|=128,fl(p,!1),a=I.updateQueue,s.updateQueue=a,t0(s,a),s.subtreeFlags=0,a=c,c=s.child;c!==null;)PI(c,a),c=c.sibling;return we(Yt,Yt.current&1|2),s.child}a=a.sibling}p.tail!==null&&Be()>n0&&(s.flags|=128,A=!0,fl(p,!1),s.lanes=4194304)}else{if(!A)if(a=Hd(I),a!==null){if(s.flags|=128,A=!0,a=a.updateQueue,s.updateQueue=a,t0(s,a),fl(p,!0),p.tail===null&&p.tailMode==="hidden"&&!I.alternate&&!ft)return vt(s),null}else 2*Be()-p.renderingStartTime>n0&&c!==536870912&&(s.flags|=128,A=!0,fl(p,!1),s.lanes=4194304);p.isBackwards?(I.sibling=s.child,s.child=I):(a=p.last,a!==null?a.sibling=I:s.child=I,p.last=I)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=Be(),s.sibling=null,a=Yt.current,we(Yt,A?a&1|2:a&1),s):(vt(s),null);case 22:case 23:return hi(s),OA(),A=s.memoizedState!==null,a!==null?a.memoizedState!==null!==A&&(s.flags|=8192):A&&(s.flags|=8192),A?(c&536870912)!==0&&(s.flags&128)===0&&(vt(s),s.subtreeFlags&6&&(s.flags|=8192)):vt(s),c=s.updateQueue,c!==null&&t0(s,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),A=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(A=s.memoizedState.cachePool.pool),A!==c&&(s.flags|=2048),a!==null&&Ve(Ju),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),Ei(Zt),vt(s),null;case 25:return null}throw Error(r(156,s.tag))}function WO(a,s){switch(bA(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return Ei(Zt),kn(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return k(s),null;case 13:if(hi(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));$o()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ve(Yt),null;case 4:return kn(),null;case 10:return Ei(s.type),null;case 22:case 23:return hi(s),OA(),a!==null&&Ve(Ju),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return Ei(Zt),null;case 25:return null;default:return null}}function kI(a,s){switch(bA(s),s.tag){case 3:Ei(Zt),kn();break;case 26:case 27:case 5:k(s);break;case 4:kn();break;case 13:hi(s);break;case 19:Ve(Yt);break;case 10:Ei(s.type);break;case 22:case 23:hi(s),OA(),a!==null&&Ve(Ju);break;case 24:Ei(Zt)}}var qO={getCacheForType:function(a){var s=En(Zt),c=s.data.get(a);return c===void 0&&(c=a(),s.data.set(a,c)),c}},XO=typeof WeakMap=="function"?WeakMap:Map,Rt=0,_t=null,it=null,ct=0,St=0,$n=null,Ii=!1,Es=!1,Tm=!1,yi=0,Ft=0,au=0,oa=0,Dm=0,fr=0,gs=0,hl=null,Vr=null,bm=!1,xm=0,n0=1/0,r0=null,su=null,i0=!1,la=null,Al=0,Bm=0,Fm=null,ml=0,Om=null;function Yn(){if((Rt&2)!==0&&ct!==0)return ct&-ct;if(U.T!==null){var a=ls;return a!==0?a:Gm()}return sS()}function GI(){fr===0&&(fr=(ct&536870912)===0||ft?nS():536870912);var a=or.current;return a!==null&&(a.flags|=32),fr}function Dn(a,s,c){(a===_t&&St===2||a.cancelPendingCommit!==null)&&(_s(a,0),Ci(a,ct,fr,!1)),Oo(a,c),((Rt&2)===0||a!==_t)&&(a===_t&&((Rt&2)===0&&(oa|=c),Ft===4&&Ci(a,ct,fr,!1)),jr(a))}function VI(a,s,c){if((Rt&6)!==0)throw Error(r(327));var A=!c&&(s&60)===0&&(s&a.expiredLanes)===0||Fo(a,s),p=A?eL(a,s):Pm(a,s,!0),I=A;do{if(p===0){Es&&!A&&Ci(a,s,0,!1);break}else if(p===6)Ci(a,s,0,!Ii);else{if(c=a.current.alternate,I&&!QO(c)){p=Pm(a,s,!1),I=!1;continue}if(p===2){if(I=s,a.errorRecoveryDisabledLanes&I)var D=0;else D=a.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){s=D;e:{var F=a;p=hl;var M=F.current.memoizedState.isDehydrated;if(M&&(_s(F,D).flags|=256),D=Pm(F,D,!1),D!==2){if(Tm&&!M){F.errorRecoveryDisabledLanes|=I,oa|=I,p=4;break e}I=Vr,Vr=p,I!==null&&Lm(I)}p=D}if(I=!1,p!==2)continue}}if(p===1){_s(a,0),Ci(a,s,0,!0);break}e:{switch(A=a,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){Ci(A,s,fr,!Ii);break e}break;case 2:Vr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(A.finishedWork=c,A.finishedLanes=s,(s&62914560)===s&&(I=xm+300-Be(),10<I)){if(Ci(A,s,fr,!Ii),Ed(A,0)!==0)break e;A.timeoutHandle=f3(jI.bind(null,A,c,Vr,r0,bm,s,fr,oa,gs,Ii,2,-0,0),I);break e}jI(A,c,Vr,r0,bm,s,fr,oa,gs,Ii,0,-0,0)}}break}while(!0);jr(a)}function Lm(a){Vr===null?Vr=a:Vr.push.apply(Vr,a)}function jI(a,s,c,A,p,I,D,F,M,$,se,he,J){var ue=s.subtreeFlags;if((ue&8192||(ue&16785408)===16785408)&&(Nl={stylesheets:null,count:0,unsuspend:OL},OI(s),s=wL(),s!==null)){a.cancelPendingCommit=s(qI.bind(null,a,c,A,p,D,F,M,1,he,J)),Ci(a,I,D,!$);return}qI(a,c,A,p,D,F,M,se,he,J)}function QO(a){for(var s=a;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var A=0;A<c.length;A++){var p=c[A],I=p.getSnapshot;p=p.value;try{if(!jn(I(),p))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ci(a,s,c,A){s&=~Dm,s&=~oa,a.suspendedLanes|=s,a.pingedLanes&=~s,A&&(a.warmLanes|=s),A=a.expirationTimes;for(var p=s;0<p;){var I=31-Vn(p),D=1<<I;A[I]=-1,p&=~D}c!==0&&iS(a,c,s)}function u0(){return(Rt&6)===0?(pl(0),!1):!0}function wm(){if(it!==null){if(St===0)var a=it.return;else a=it,pi=ia=null,GA(a),ss=null,qo=0,a=it;for(;a!==null;)kI(a.alternate,a),a=a.return;it=null}}function _s(a,s){a.finishedWork=null,a.finishedLanes=0;var c=a.timeoutHandle;c!==-1&&(a.timeoutHandle=-1,EL(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),wm(),_t=a,it=c=uu(a.current,null),ct=s,St=0,$n=null,Ii=!1,Es=Fo(a,s),Tm=!1,gs=fr=Dm=oa=au=Ft=0,Vr=hl=null,bm=!1,(s&8)!==0&&(s|=s&32);var A=a.entangledLanes;if(A!==0)for(a=a.entanglements,A&=s;0<A;){var p=31-Vn(A),I=1<<p;s|=a[p],A&=~I}return yi=s,bd(),c}function zI(a,s){tt=null,U.H=Gr,s===Zo?(s=uN(),St=3):s===nN?(s=uN(),St=4):St=s===rI?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,$n=s,it===null&&(Ft=1,Wd(a,ur(s,a.current)))}function KI(){var a=U.H;return U.H=Gr,a===null?Gr:a}function $I(){var a=U.A;return U.A=qO,a}function Mm(){Ft=4,Ii||(ct&4194176)!==ct&&or.current!==null||(Es=!0),(au&134217727)===0&&(oa&134217727)===0||_t===null||Ci(_t,ct,fr,!1)}function Pm(a,s,c){var A=Rt;Rt|=2;var p=KI(),I=$I();(_t!==a||ct!==s)&&(r0=null,_s(a,s)),s=!1;var D=Ft;e:do try{if(St!==0&&it!==null){var F=it,M=$n;switch(St){case 8:wm(),D=6;break e;case 3:case 2:case 6:or.current===null&&(s=!0);var $=St;if(St=0,$n=null,Ss(a,F,M,$),c&&Es){D=0;break e}break;default:$=St,St=0,$n=null,Ss(a,F,M,$)}}JO(),D=Ft;break}catch(se){zI(a,se)}while(!0);return s&&a.shellSuspendCounter++,pi=ia=null,Rt=A,U.H=p,U.A=I,it===null&&(_t=null,ct=0,bd()),D}function JO(){for(;it!==null;)YI(it)}function eL(a,s){var c=Rt;Rt|=2;var A=KI(),p=$I();_t!==a||ct!==s?(r0=null,n0=Be()+500,_s(a,s)):Es=Fo(a,s);e:do try{if(St!==0&&it!==null){s=it;var I=$n;t:switch(St){case 1:St=0,$n=null,Ss(a,s,I,1);break;case 2:if(rN(I)){St=0,$n=null,ZI(s);break}s=function(){St===2&&_t===a&&(St=7),jr(a)},I.then(s,s);break e;case 3:St=7;break e;case 4:St=5;break e;case 7:rN(I)?(St=0,$n=null,ZI(s)):(St=0,$n=null,Ss(a,s,I,7));break;case 5:var D=null;switch(it.tag){case 26:D=it.memoizedState;case 5:case 27:var F=it;if(!D||y3(D)){St=0,$n=null;var M=F.sibling;if(M!==null)it=M;else{var $=F.return;$!==null?(it=$,a0($)):it=null}break t}}St=0,$n=null,Ss(a,s,I,5);break;case 6:St=0,$n=null,Ss(a,s,I,6);break;case 8:wm(),Ft=6;break e;default:throw Error(r(462))}}tL();break}catch(se){zI(a,se)}while(!0);return pi=ia=null,U.H=A,U.A=p,Rt=c,it!==null?0:(_t=null,ct=0,bd(),Ft)}function tL(){for(;it!==null&&!Ie();)YI(it)}function YI(a){var s=mI(a.alternate,a,yi);a.memoizedProps=a.pendingProps,s===null?a0(a):it=s}function ZI(a){var s=a,c=s.alternate;switch(s.tag){case 15:case 0:s=lI(c,s,s.pendingProps,s.type,void 0,ct);break;case 11:s=lI(c,s,s.pendingProps,s.type.render,s.ref,ct);break;case 5:GA(s);default:kI(c,s),s=it=PI(s,yi),s=mI(c,s,yi)}a.memoizedProps=a.pendingProps,s===null?a0(a):it=s}function Ss(a,s,c,A){pi=ia=null,GA(s),ss=null,qo=0;var p=s.return;try{if(jO(a,p,s,c,ct)){Ft=1,Wd(a,ur(c,a.current)),it=null;return}}catch(I){if(p!==null)throw it=p,I;Ft=1,Wd(a,ur(c,a.current)),it=null;return}s.flags&32768?(ft||A===1?a=!0:Es||(ct&536870912)!==0?a=!1:(Ii=a=!0,(A===2||A===3||A===6)&&(A=or.current,A!==null&&A.tag===13&&(A.flags|=16384))),WI(s,a)):a0(s)}function a0(a){var s=a;do{if((s.flags&32768)!==0){WI(s,Ii);return}a=s.return;var c=ZO(s.alternate,s,yi);if(c!==null){it=c;return}if(s=s.sibling,s!==null){it=s;return}it=s=a}while(s!==null);Ft===0&&(Ft=5)}function WI(a,s){do{var c=WO(a.alternate,a);if(c!==null){c.flags&=32767,it=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(a=a.sibling,a!==null)){it=a;return}it=a=c}while(a!==null);Ft=6,it=null}function qI(a,s,c,A,p,I,D,F,M,$){var se=U.T,he=ne.p;try{ne.p=2,U.T=null,nL(a,s,c,A,he,p,I,D,F,M,$)}finally{U.T=se,ne.p=he}}function nL(a,s,c,A,p,I,D,F){do Ns();while(la!==null);if((Rt&6)!==0)throw Error(r(327));var M=a.finishedWork;if(A=a.finishedLanes,M===null)return null;if(a.finishedWork=null,a.finishedLanes=0,M===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0,a.cancelPendingCommit=null;var $=M.lanes|M.childLanes;if($|=RA,LF(a,A,$,I,D,F),a===_t&&(it=_t=null,ct=0),(M.subtreeFlags&10256)===0&&(M.flags&10256)===0||i0||(i0=!0,Bm=$,Fm=c,aL(Gn,function(){return Ns(),null})),c=(M.flags&15990)!==0,(M.subtreeFlags&15990)!==0||c?(c=U.T,U.T=null,I=ne.p,ne.p=2,D=Rt,Rt|=4,KO(a,M),xI(M,a),RO(Wm,a.containerInfo),g0=!!Zm,Wm=Zm=null,a.current=M,RI(a,M.alternate,M),Se(),Rt=D,ne.p=I,U.T=c):a.current=M,i0?(i0=!1,la=a,Al=A):XI(a,$),$=a.pendingLanes,$===0&&(su=null),Ad(M.stateNode),jr(a),s!==null)for(p=a.onRecoverableError,M=0;M<s.length;M++)$=s[M],p($.value,{componentStack:$.stack});return(Al&3)!==0&&Ns(),$=a.pendingLanes,(A&4194218)!==0&&($&42)!==0?a===Om?ml++:(ml=0,Om=a):ml=0,pl(0),null}function XI(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,Qo(s)))}function Ns(){if(la!==null){var a=la,s=Bm;Bm=0;var c=aS(Al),A=U.T,p=ne.p;try{if(ne.p=32>c?32:c,U.T=null,la===null)var I=!1;else{c=Fm,Fm=null;var D=la,F=Al;if(la=null,Al=0,(Rt&6)!==0)throw Error(r(331));var M=Rt;if(Rt|=4,wI(D.current),FI(D,D.current,F,c),Rt=M,pl(0,!1),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(ji,D)}catch{}I=!0}return I}finally{ne.p=p,U.T=A,XI(a,s)}}return!1}function QI(a,s,c){s=ur(c,s),s=tm(a.stateNode,s,2),a=tu(a,s,2),a!==null&&(Oo(a,2),jr(a))}function gt(a,s,c){if(a.tag===3)QI(a,a,c);else for(;s!==null;){if(s.tag===3){QI(s,a,c);break}else if(s.tag===1){var A=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&(su===null||!su.has(A))){a=ur(c,a),c=tI(2),A=tu(s,c,2),A!==null&&(nI(c,A,s,a),Oo(A,2),jr(A));break}}s=s.return}}function Hm(a,s,c){var A=a.pingCache;if(A===null){A=a.pingCache=new XO;var p=new Set;A.set(s,p)}else p=A.get(s),p===void 0&&(p=new Set,A.set(s,p));p.has(c)||(Tm=!0,p.add(c),a=rL.bind(null,a,s,c),s.then(a,a))}function rL(a,s,c){var A=a.pingCache;A!==null&&A.delete(s),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,_t===a&&(ct&c)===c&&(Ft===4||Ft===3&&(ct&62914560)===ct&&300>Be()-xm?(Rt&2)===0&&_s(a,0):Dm|=c,gs===ct&&(gs=0)),jr(a)}function JI(a,s){s===0&&(s=rS()),a=Yi(a,s),a!==null&&(Oo(a,s),jr(a))}function iL(a){var s=a.memoizedState,c=0;s!==null&&(c=s.retryLane),JI(a,c)}function uL(a,s){var c=0;switch(a.tag){case 13:var A=a.stateNode,p=a.memoizedState;p!==null&&(c=p.retryLane);break;case 19:A=a.stateNode;break;case 22:A=a.stateNode._retryCache;break;default:throw Error(r(314))}A!==null&&A.delete(s),JI(a,c)}function aL(a,s){return ie(a,s)}var s0=null,Is=null,Um=!1,o0=!1,km=!1,ca=0;function jr(a){a!==Is&&a.next===null&&(Is===null?s0=Is=a:Is=Is.next=a),o0=!0,Um||(Um=!0,oL(sL))}function pl(a,s){if(!km&&o0){km=!0;do for(var c=!1,A=s0;A!==null;){if(a!==0){var p=A.pendingLanes;if(p===0)var I=0;else{var D=A.suspendedLanes,F=A.pingedLanes;I=(1<<31-Vn(42|a)+1)-1,I&=p&~(D&~F),I=I&201326677?I&201326677|1:I?I|2:0}I!==0&&(c=!0,n3(A,I))}else I=ct,I=Ed(A,A===_t?I:0),(I&3)===0||Fo(A,I)||(c=!0,n3(A,I));A=A.next}while(c);km=!1}}function sL(){o0=Um=!1;var a=0;ca!==0&&(pL()&&(a=ca),ca=0);for(var s=Be(),c=null,A=s0;A!==null;){var p=A.next,I=e3(A,s);I===0?(A.next=null,c===null?s0=p:c.next=p,p===null&&(Is=c)):(c=A,(a!==0||(I&3)!==0)&&(o0=!0)),A=p}pl(a)}function e3(a,s){for(var c=a.suspendedLanes,A=a.pingedLanes,p=a.expirationTimes,I=a.pendingLanes&-62914561;0<I;){var D=31-Vn(I),F=1<<D,M=p[D];M===-1?((F&c)===0||(F&A)!==0)&&(p[D]=OF(F,s)):M<=s&&(a.expiredLanes|=F),I&=~F}if(s=_t,c=ct,c=Ed(a,a===s?c:0),A=a.callbackNode,c===0||a===s&&St===2||a.cancelPendingCommit!==null)return A!==null&&A!==null&&Ce(A),a.callbackNode=null,a.callbackPriority=0;if((c&3)===0||Fo(a,c)){if(s=c&-c,s===a.callbackPriority)return s;switch(A!==null&&Ce(A),aS(c)){case 2:case 8:c=Pt;break;case 32:c=Gn;break;case 268435456:c=Ka;break;default:c=Gn}return A=t3.bind(null,a),c=ie(c,A),a.callbackPriority=s,a.callbackNode=c,s}return A!==null&&A!==null&&Ce(A),a.callbackPriority=2,a.callbackNode=null,2}function t3(a,s){var c=a.callbackNode;if(Ns()&&a.callbackNode!==c)return null;var A=ct;return A=Ed(a,a===_t?A:0),A===0?null:(VI(a,A,s),e3(a,Be()),a.callbackNode!=null&&a.callbackNode===c?t3.bind(null,a):null)}function n3(a,s){if(Ns())return null;VI(a,s,!0)}function oL(a){gL(function(){(Rt&6)!==0?ie(Mt,a):a()})}function Gm(){return ca===0&&(ca=nS()),ca}function r3(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Id(""+a)}function i3(a,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,a.id&&c.setAttribute("form",a.id),s.parentNode.insertBefore(c,s),a=new FormData(a),c.parentNode.removeChild(c),a}function lL(a,s,c,A,p){if(s==="submit"&&c&&c.stateNode===p){var I=r3((p[Fn]||null).action),D=A.submitter;D&&(s=(s=D[Fn]||null)?r3(s.formAction):D.getAttribute("formAction"),s!==null&&(I=s,D=null));var F=new Rd("action","action",null,A,p);a.push({event:F,listeners:[{instance:null,listener:function(){if(A.defaultPrevented){if(ca!==0){var M=D?i3(p,D):new FormData(p);qA(c,{pending:!0,data:M,method:p.method,action:I},null,M)}}else typeof I=="function"&&(F.preventDefault(),M=D?i3(p,D):new FormData(p),qA(c,{pending:!0,data:M,method:p.method,action:I},I,M))},currentTarget:p}]})}}for(var Vm=0;Vm<qS.length;Vm++){var jm=qS[Vm],cL=jm.toLowerCase(),dL=jm[0].toUpperCase()+jm.slice(1);Cr(cL,"on"+dL)}Cr(KS,"onAnimationEnd"),Cr($S,"onAnimationIteration"),Cr(YS,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(DO,"onTransitionRun"),Cr(bO,"onTransitionStart"),Cr(xO,"onTransitionCancel"),Cr(ZS,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),Ku("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ku("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ku("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ku("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ku("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ku("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var El="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(El));function u3(a,s){s=(s&4)!==0;for(var c=0;c<a.length;c++){var A=a[c],p=A.event;A=A.listeners;e:{var I=void 0;if(s)for(var D=A.length-1;0<=D;D--){var F=A[D],M=F.instance,$=F.currentTarget;if(F=F.listener,M!==I&&p.isPropagationStopped())break e;I=F,p.currentTarget=$;try{I(p)}catch(se){Zd(se)}p.currentTarget=null,I=M}else for(D=0;D<A.length;D++){if(F=A[D],M=F.instance,$=F.currentTarget,F=F.listener,M!==I&&p.isPropagationStopped())break e;I=F,p.currentTarget=$;try{I(p)}catch(se){Zd(se)}p.currentTarget=null,I=M}}}}function ot(a,s){var c=s[uA];c===void 0&&(c=s[uA]=new Set);var A=a+"__bubble";c.has(A)||(a3(s,a,2,!1),c.add(A))}function zm(a,s,c){var A=0;s&&(A|=4),a3(c,a,A,s)}var l0="_reactListening"+Math.random().toString(36).slice(2);function Km(a){if(!a[l0]){a[l0]=!0,lS.forEach(function(c){c!=="selectionchange"&&(fL.has(c)||zm(c,!1,a),zm(c,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[l0]||(s[l0]=!0,zm("selectionchange",!1,s))}}function a3(a,s,c,A){switch(b3(s)){case 2:var p=HL;break;case 8:p=UL;break;default:p=ip}c=p.bind(null,s,c,a),p=void 0,!hA||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),A?p!==void 0?a.addEventListener(s,c,{capture:!0,passive:p}):a.addEventListener(s,c,!0):p!==void 0?a.addEventListener(s,c,{passive:p}):a.addEventListener(s,c,!1)}function $m(a,s,c,A,p){var I=A;if((s&1)===0&&(s&2)===0&&A!==null)e:for(;;){if(A===null)return;var D=A.tag;if(D===3||D===4){var F=A.stateNode.containerInfo;if(F===p||F.nodeType===8&&F.parentNode===p)break;if(D===4)for(D=A.return;D!==null;){var M=D.tag;if((M===3||M===4)&&(M=D.stateNode.containerInfo,M===p||M.nodeType===8&&M.parentNode===p))return;D=D.return}for(;F!==null;){if(D=zu(F),D===null)return;if(M=D.tag,M===5||M===6||M===26||M===27){A=I=D;continue e}F=F.parentNode}}A=A.return}NS(function(){var $=I,se=dA(c),he=[];e:{var J=WS.get(a);if(J!==void 0){var ue=Rd,Le=a;switch(a){case"keypress":if(Cd(c)===0)break e;case"keydown":case"keyup":ue=uO;break;case"focusin":Le="focus",ue=EA;break;case"focusout":Le="blur",ue=EA;break;case"beforeblur":case"afterblur":ue=EA;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=CS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=YF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=oO;break;case KS:case $S:case YS:ue=qF;break;case ZS:ue=cO;break;case"scroll":case"scrollend":ue=KF;break;case"wheel":ue=fO;break;case"copy":case"cut":case"paste":ue=QF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=RS;break;case"toggle":case"beforetoggle":ue=AO}var Ye=(s&4)!==0,Ot=!Ye&&(a==="scroll"||a==="scrollend"),Y=Ye?J!==null?J+"Capture":null:J;Ye=[];for(var K=$,q;K!==null;){var le=K;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||Y===null||(le=Mo(K,Y),le!=null&&Ye.push(gl(K,le,q))),Ot)break;K=K.return}0<Ye.length&&(J=new ue(J,Le,null,c,se),he.push({event:J,listeners:Ye}))}}if((s&7)===0){e:{if(J=a==="mouseover"||a==="pointerover",ue=a==="mouseout"||a==="pointerout",J&&c!==cA&&(Le=c.relatedTarget||c.fromElement)&&(zu(Le)||Le[$a]))break e;if((ue||J)&&(J=se.window===se?se:(J=se.ownerDocument)?J.defaultView||J.parentWindow:window,ue?(Le=c.relatedTarget||c.toElement,ue=$,Le=Le?zu(Le):null,Le!==null&&(Ot=Q(Le),Ye=Le.tag,Le!==Ot||Ye!==5&&Ye!==27&&Ye!==6)&&(Le=null)):(ue=null,Le=$),ue!==Le)){if(Ye=CS,le="onMouseLeave",Y="onMouseEnter",K="mouse",(a==="pointerout"||a==="pointerover")&&(Ye=RS,le="onPointerLeave",Y="onPointerEnter",K="pointer"),Ot=ue==null?J:wo(ue),q=Le==null?J:wo(Le),J=new Ye(le,K+"leave",ue,c,se),J.target=Ot,J.relatedTarget=q,le=null,zu(se)===$&&(Ye=new Ye(Y,K+"enter",Le,c,se),Ye.target=q,Ye.relatedTarget=Ot,le=Ye),Ot=le,ue&&Le)t:{for(Ye=ue,Y=Le,K=0,q=Ye;q;q=ys(q))K++;for(q=0,le=Y;le;le=ys(le))q++;for(;0<K-q;)Ye=ys(Ye),K--;for(;0<q-K;)Y=ys(Y),q--;for(;K--;){if(Ye===Y||Y!==null&&Ye===Y.alternate)break t;Ye=ys(Ye),Y=ys(Y)}Ye=null}else Ye=null;ue!==null&&s3(he,J,ue,Ye,!1),Le!==null&&Ot!==null&&s3(he,Ot,Le,Ye,!0)}}e:{if(J=$?wo($):window,ue=J.nodeName&&J.nodeName.toLowerCase(),ue==="select"||ue==="input"&&J.type==="file")var De=LS;else if(FS(J))if(wS)De=CO;else{De=IO;var rt=NO}else ue=J.nodeName,!ue||ue.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?$&&lA($.elementType)&&(De=LS):De=yO;if(De&&(De=De(a,$))){OS(he,De,c,se);break e}rt&&rt(a,J,$),a==="focusout"&&$&&J.type==="number"&&$.memoizedProps.value!=null&&oA(J,"number",J.value)}switch(rt=$?wo($):window,a){case"focusin":(FS(rt)||rt.contentEditable==="true")&&(ts=rt,yA=$,zo=null);break;case"focusout":zo=yA=ts=null;break;case"mousedown":CA=!0;break;case"contextmenu":case"mouseup":case"dragend":CA=!1,jS(he,c,se);break;case"selectionchange":if(TO)break;case"keydown":case"keyup":jS(he,c,se)}var Me;if(_A)e:{switch(a){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else es?xS(a,c)&&(He="onCompositionEnd"):a==="keydown"&&c.keyCode===229&&(He="onCompositionStart");He&&(TS&&c.locale!=="ko"&&(es||He!=="onCompositionStart"?He==="onCompositionEnd"&&es&&(Me=IS()):($i=se,AA="value"in $i?$i.value:$i.textContent,es=!0)),rt=c0($,He),0<rt.length&&(He=new vS(He,a,null,c,se),he.push({event:He,listeners:rt}),Me?He.data=Me:(Me=BS(c),Me!==null&&(He.data=Me)))),(Me=pO?EO(a,c):gO(a,c))&&(He=c0($,"onBeforeInput"),0<He.length&&(rt=new vS("onBeforeInput","beforeinput",null,c,se),he.push({event:rt,listeners:He}),rt.data=Me)),lL(he,a,$,c,se)}u3(he,s)})}function gl(a,s,c){return{instance:a,listener:s,currentTarget:c}}function c0(a,s){for(var c=s+"Capture",A=[];a!==null;){var p=a,I=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||I===null||(p=Mo(a,c),p!=null&&A.unshift(gl(a,p,I)),p=Mo(a,s),p!=null&&A.push(gl(a,p,I))),a=a.return}return A}function ys(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function s3(a,s,c,A,p){for(var I=s._reactName,D=[];c!==null&&c!==A;){var F=c,M=F.alternate,$=F.stateNode;if(F=F.tag,M!==null&&M===A)break;F!==5&&F!==26&&F!==27||$===null||(M=$,p?($=Mo(c,I),$!=null&&D.unshift(gl(c,$,M))):p||($=Mo(c,I),$!=null&&D.push(gl(c,$,M)))),c=c.return}D.length!==0&&a.push({event:s,listeners:D})}var hL=/\r\n?/g,AL=/\u0000|\uFFFD/g;function o3(a){return(typeof a=="string"?a:""+a).replace(hL,`
|
|
50
|
+
`).replace(AL,"")}function l3(a,s){return s=o3(s),o3(a)===s}function d0(){}function Et(a,s,c,A,p,I){switch(c){case"children":typeof A=="string"?s==="body"||s==="textarea"&&A===""||Xa(a,A):(typeof A=="number"||typeof A=="bigint")&&s!=="body"&&Xa(a,""+A);break;case"className":_d(a,"class",A);break;case"tabIndex":_d(a,"tabindex",A);break;case"dir":case"role":case"viewBox":case"width":case"height":_d(a,c,A);break;case"style":_S(a,A,I);break;case"data":if(s!=="object"){_d(a,"data",A);break}case"src":case"href":if(A===""&&(s!=="a"||c!=="href")){a.removeAttribute(c);break}if(A==null||typeof A=="function"||typeof A=="symbol"||typeof A=="boolean"){a.removeAttribute(c);break}A=Id(""+A),a.setAttribute(c,A);break;case"action":case"formAction":if(typeof A=="function"){a.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof I=="function"&&(c==="formAction"?(s!=="input"&&Et(a,s,"name",p.name,p,null),Et(a,s,"formEncType",p.formEncType,p,null),Et(a,s,"formMethod",p.formMethod,p,null),Et(a,s,"formTarget",p.formTarget,p,null)):(Et(a,s,"encType",p.encType,p,null),Et(a,s,"method",p.method,p,null),Et(a,s,"target",p.target,p,null)));if(A==null||typeof A=="symbol"||typeof A=="boolean"){a.removeAttribute(c);break}A=Id(""+A),a.setAttribute(c,A);break;case"onClick":A!=null&&(a.onclick=d0);break;case"onScroll":A!=null&&ot("scroll",a);break;case"onScrollEnd":A!=null&&ot("scrollend",a);break;case"dangerouslySetInnerHTML":if(A!=null){if(typeof A!="object"||!("__html"in A))throw Error(r(61));if(c=A.__html,c!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"multiple":a.multiple=A&&typeof A!="function"&&typeof A!="symbol";break;case"muted":a.muted=A&&typeof A!="function"&&typeof A!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(A==null||typeof A=="function"||typeof A=="boolean"||typeof A=="symbol"){a.removeAttribute("xlink:href");break}c=Id(""+A),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":A!=null&&typeof A!="function"&&typeof A!="symbol"?a.setAttribute(c,""+A):a.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":A&&typeof A!="function"&&typeof A!="symbol"?a.setAttribute(c,""):a.removeAttribute(c);break;case"capture":case"download":A===!0?a.setAttribute(c,""):A!==!1&&A!=null&&typeof A!="function"&&typeof A!="symbol"?a.setAttribute(c,A):a.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":A!=null&&typeof A!="function"&&typeof A!="symbol"&&!isNaN(A)&&1<=A?a.setAttribute(c,A):a.removeAttribute(c);break;case"rowSpan":case"start":A==null||typeof A=="function"||typeof A=="symbol"||isNaN(A)?a.removeAttribute(c):a.setAttribute(c,A);break;case"popover":ot("beforetoggle",a),ot("toggle",a),gd(a,"popover",A);break;case"xlinkActuate":ci(a,"http://www.w3.org/1999/xlink","xlink:actuate",A);break;case"xlinkArcrole":ci(a,"http://www.w3.org/1999/xlink","xlink:arcrole",A);break;case"xlinkRole":ci(a,"http://www.w3.org/1999/xlink","xlink:role",A);break;case"xlinkShow":ci(a,"http://www.w3.org/1999/xlink","xlink:show",A);break;case"xlinkTitle":ci(a,"http://www.w3.org/1999/xlink","xlink:title",A);break;case"xlinkType":ci(a,"http://www.w3.org/1999/xlink","xlink:type",A);break;case"xmlBase":ci(a,"http://www.w3.org/XML/1998/namespace","xml:base",A);break;case"xmlLang":ci(a,"http://www.w3.org/XML/1998/namespace","xml:lang",A);break;case"xmlSpace":ci(a,"http://www.w3.org/XML/1998/namespace","xml:space",A);break;case"is":gd(a,"is",A);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=jF.get(c)||c,gd(a,c,A))}}function Ym(a,s,c,A,p,I){switch(c){case"style":_S(a,A,I);break;case"dangerouslySetInnerHTML":if(A!=null){if(typeof A!="object"||!("__html"in A))throw Error(r(61));if(c=A.__html,c!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"children":typeof A=="string"?Xa(a,A):(typeof A=="number"||typeof A=="bigint")&&Xa(a,""+A);break;case"onScroll":A!=null&&ot("scroll",a);break;case"onScrollEnd":A!=null&&ot("scrollend",a);break;case"onClick":A!=null&&(a.onclick=d0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cS.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(p=c.endsWith("Capture"),s=c.slice(2,p?c.length-7:void 0),I=a[Fn]||null,I=I!=null?I[c]:null,typeof I=="function"&&a.removeEventListener(s,I,p),typeof A=="function")){typeof I!="function"&&I!==null&&(c in a?a[c]=null:a.hasAttribute(c)&&a.removeAttribute(c)),a.addEventListener(s,A,p);break e}c in a?a[c]=A:A===!0?a.setAttribute(c,""):gd(a,c,A)}}}function cn(a,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ot("error",a),ot("load",a);var A=!1,p=!1,I;for(I in c)if(c.hasOwnProperty(I)){var D=c[I];if(D!=null)switch(I){case"src":A=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Et(a,s,I,D,c,null)}}p&&Et(a,s,"srcSet",c.srcSet,c,null),A&&Et(a,s,"src",c.src,c,null);return;case"input":ot("invalid",a);var F=I=D=p=null,M=null,$=null;for(A in c)if(c.hasOwnProperty(A)){var se=c[A];if(se!=null)switch(A){case"name":p=se;break;case"type":D=se;break;case"checked":M=se;break;case"defaultChecked":$=se;break;case"value":I=se;break;case"defaultValue":F=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,s));break;default:Et(a,s,A,se,c,null)}}mS(a,I,F,M,$,D,p,!1),Sd(a);return;case"select":ot("invalid",a),A=D=I=null;for(p in c)if(c.hasOwnProperty(p)&&(F=c[p],F!=null))switch(p){case"value":I=F;break;case"defaultValue":D=F;break;case"multiple":A=F;default:Et(a,s,p,F,c,null)}s=I,c=D,a.multiple=!!A,s!=null?qa(a,!!A,s,!1):c!=null&&qa(a,!!A,c,!0);return;case"textarea":ot("invalid",a),I=p=A=null;for(D in c)if(c.hasOwnProperty(D)&&(F=c[D],F!=null))switch(D){case"value":A=F;break;case"defaultValue":p=F;break;case"children":I=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(91));break;default:Et(a,s,D,F,c,null)}ES(a,A,p,I),Sd(a);return;case"option":for(M in c)if(c.hasOwnProperty(M)&&(A=c[M],A!=null))switch(M){case"selected":a.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Et(a,s,M,A,c,null)}return;case"dialog":ot("cancel",a),ot("close",a);break;case"iframe":case"object":ot("load",a);break;case"video":case"audio":for(A=0;A<El.length;A++)ot(El[A],a);break;case"image":ot("error",a),ot("load",a);break;case"details":ot("toggle",a);break;case"embed":case"source":case"link":ot("error",a),ot("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in c)if(c.hasOwnProperty($)&&(A=c[$],A!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Et(a,s,$,A,c,null)}return;default:if(lA(s)){for(se in c)c.hasOwnProperty(se)&&(A=c[se],A!==void 0&&Ym(a,s,se,A,c,void 0));return}}for(F in c)c.hasOwnProperty(F)&&(A=c[F],A!=null&&Et(a,s,F,A,c,null))}function mL(a,s,c,A){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,I=null,D=null,F=null,M=null,$=null,se=null;for(ue in c){var he=c[ue];if(c.hasOwnProperty(ue)&&he!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":M=he;default:A.hasOwnProperty(ue)||Et(a,s,ue,null,A,he)}}for(var J in A){var ue=A[J];if(he=c[J],A.hasOwnProperty(J)&&(ue!=null||he!=null))switch(J){case"type":I=ue;break;case"name":p=ue;break;case"checked":$=ue;break;case"defaultChecked":se=ue;break;case"value":D=ue;break;case"defaultValue":F=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(r(137,s));break;default:ue!==he&&Et(a,s,J,ue,A,he)}}sA(a,D,F,M,$,se,I,p);return;case"select":ue=D=F=J=null;for(I in c)if(M=c[I],c.hasOwnProperty(I)&&M!=null)switch(I){case"value":break;case"multiple":ue=M;default:A.hasOwnProperty(I)||Et(a,s,I,null,A,M)}for(p in A)if(I=A[p],M=c[p],A.hasOwnProperty(p)&&(I!=null||M!=null))switch(p){case"value":J=I;break;case"defaultValue":F=I;break;case"multiple":D=I;default:I!==M&&Et(a,s,p,I,A,M)}s=F,c=D,A=ue,J!=null?qa(a,!!c,J,!1):!!A!=!!c&&(s!=null?qa(a,!!c,s,!0):qa(a,!!c,c?[]:"",!1));return;case"textarea":ue=J=null;for(F in c)if(p=c[F],c.hasOwnProperty(F)&&p!=null&&!A.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:Et(a,s,F,null,A,p)}for(D in A)if(p=A[D],I=c[D],A.hasOwnProperty(D)&&(p!=null||I!=null))switch(D){case"value":J=p;break;case"defaultValue":ue=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==I&&Et(a,s,D,p,A,I)}pS(a,J,ue);return;case"option":for(var Le in c)if(J=c[Le],c.hasOwnProperty(Le)&&J!=null&&!A.hasOwnProperty(Le))switch(Le){case"selected":a.selected=!1;break;default:Et(a,s,Le,null,A,J)}for(M in A)if(J=A[M],ue=c[M],A.hasOwnProperty(M)&&J!==ue&&(J!=null||ue!=null))switch(M){case"selected":a.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:Et(a,s,M,J,A,ue)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ye in c)J=c[Ye],c.hasOwnProperty(Ye)&&J!=null&&!A.hasOwnProperty(Ye)&&Et(a,s,Ye,null,A,J);for($ in A)if(J=A[$],ue=c[$],A.hasOwnProperty($)&&J!==ue&&(J!=null||ue!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,s));break;default:Et(a,s,$,J,A,ue)}return;default:if(lA(s)){for(var Ot in c)J=c[Ot],c.hasOwnProperty(Ot)&&J!==void 0&&!A.hasOwnProperty(Ot)&&Ym(a,s,Ot,void 0,A,J);for(se in A)J=A[se],ue=c[se],!A.hasOwnProperty(se)||J===ue||J===void 0&&ue===void 0||Ym(a,s,se,J,A,ue);return}}for(var Y in c)J=c[Y],c.hasOwnProperty(Y)&&J!=null&&!A.hasOwnProperty(Y)&&Et(a,s,Y,null,A,J);for(he in A)J=A[he],ue=c[he],!A.hasOwnProperty(he)||J===ue||J==null&&ue==null||Et(a,s,he,J,A,ue)}var Zm=null,Wm=null;function f0(a){return a.nodeType===9?a:a.ownerDocument}function c3(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d3(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function qm(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Xm=null;function pL(){var a=window.event;return a&&a.type==="popstate"?a===Xm?!1:(Xm=a,!0):(Xm=null,!1)}var f3=typeof setTimeout=="function"?setTimeout:void 0,EL=typeof clearTimeout=="function"?clearTimeout:void 0,h3=typeof Promise=="function"?Promise:void 0,gL=typeof queueMicrotask=="function"?queueMicrotask:typeof h3<"u"?function(a){return h3.resolve(null).then(a).catch(_L)}:f3;function _L(a){setTimeout(function(){throw a})}function Qm(a,s){var c=s,A=0;do{var p=c.nextSibling;if(a.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(A===0){a.removeChild(p),Rl(s);return}A--}else c!=="$"&&c!=="$?"&&c!=="$!"||A++;c=p}while(c);Rl(s)}function Jm(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Jm(c),aA(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}a.removeChild(c)}}function SL(a,s,c,A){for(;a.nodeType===1;){var p=c;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!A&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(A){if(!a[Lo])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(I=a.getAttribute("rel"),I==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(I!==p.rel||a.getAttribute("href")!==(p.href==null?null:p.href)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||a.getAttribute("title")!==(p.title==null?null:p.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(I=a.getAttribute("src"),(I!==(p.src==null?null:p.src)||a.getAttribute("type")!==(p.type==null?null:p.type)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&I&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var I=p.name==null?null:""+p.name;if(p.type==="hidden"&&a.getAttribute("name")===I)return a}else return a;if(a=Tr(a.nextSibling),a===null)break}return null}function NL(a,s,c){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=Tr(a.nextSibling),a===null))return null;return a}function Tr(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return a}function A3(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var c=a.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return a;s--}else c==="/$"&&s++}a=a.previousSibling}return null}function m3(a,s,c){switch(s=f0(c),a){case"html":if(a=s.documentElement,!a)throw Error(r(452));return a;case"head":if(a=s.head,!a)throw Error(r(453));return a;case"body":if(a=s.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}var hr=new Map,p3=new Set;function h0(a){return typeof a.getRootNode=="function"?a.getRootNode():a.ownerDocument}var vi=ne.d;ne.d={f:IL,r:yL,D:CL,C:vL,L:RL,m:TL,X:bL,S:DL,M:xL};function IL(){var a=vi.f(),s=u0();return a||s}function yL(a){var s=Ya(a);s!==null&&s.tag===5&&s.type==="form"?jN(s):vi.r(a)}var Cs=typeof document>"u"?null:document;function E3(a,s,c){var A=Cs;if(A&&typeof s=="string"&&s){var p=rr(s);p='link[rel="'+a+'"][href="'+p+'"]',typeof c=="string"&&(p+='[crossorigin="'+c+'"]'),p3.has(p)||(p3.add(p),a={rel:a,crossOrigin:c,href:s},A.querySelector(p)===null&&(s=A.createElement("link"),cn(s,"link",a),en(s),A.head.appendChild(s)))}}function CL(a){vi.D(a),E3("dns-prefetch",a,null)}function vL(a,s){vi.C(a,s),E3("preconnect",a,s)}function RL(a,s,c){vi.L(a,s,c);var A=Cs;if(A&&a&&s){var p='link[rel="preload"][as="'+rr(s)+'"]';s==="image"&&c&&c.imageSrcSet?(p+='[imagesrcset="'+rr(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(p+='[imagesizes="'+rr(c.imageSizes)+'"]')):p+='[href="'+rr(a)+'"]';var I=p;switch(s){case"style":I=vs(a);break;case"script":I=Rs(a)}hr.has(I)||(a=G({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:a,as:s},c),hr.set(I,a),A.querySelector(p)!==null||s==="style"&&A.querySelector(_l(I))||s==="script"&&A.querySelector(Sl(I))||(s=A.createElement("link"),cn(s,"link",a),en(s),A.head.appendChild(s)))}}function TL(a,s){vi.m(a,s);var c=Cs;if(c&&a){var A=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+rr(A)+'"][href="'+rr(a)+'"]',I=p;switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":I=Rs(a)}if(!hr.has(I)&&(a=G({rel:"modulepreload",href:a},s),hr.set(I,a),c.querySelector(p)===null)){switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Sl(I)))return}A=c.createElement("link"),cn(A,"link",a),en(A),c.head.appendChild(A)}}}function DL(a,s,c){vi.S(a,s,c);var A=Cs;if(A&&a){var p=Za(A).hoistableStyles,I=vs(a);s=s||"default";var D=p.get(I);if(!D){var F={loading:0,preload:null};if(D=A.querySelector(_l(I)))F.loading=5;else{a=G({rel:"stylesheet",href:a,"data-precedence":s},c),(c=hr.get(I))&&ep(a,c);var M=D=A.createElement("link");en(M),cn(M,"link",a),M._p=new Promise(function($,se){M.onload=$,M.onerror=se}),M.addEventListener("load",function(){F.loading|=1}),M.addEventListener("error",function(){F.loading|=2}),F.loading|=4,A0(D,s,A)}D={type:"stylesheet",instance:D,count:1,state:F},p.set(I,D)}}}function bL(a,s){vi.X(a,s);var c=Cs;if(c&&a){var A=Za(c).hoistableScripts,p=Rs(a),I=A.get(p);I||(I=c.querySelector(Sl(p)),I||(a=G({src:a,async:!0},s),(s=hr.get(p))&&tp(a,s),I=c.createElement("script"),en(I),cn(I,"link",a),c.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},A.set(p,I))}}function xL(a,s){vi.M(a,s);var c=Cs;if(c&&a){var A=Za(c).hoistableScripts,p=Rs(a),I=A.get(p);I||(I=c.querySelector(Sl(p)),I||(a=G({src:a,async:!0,type:"module"},s),(s=hr.get(p))&&tp(a,s),I=c.createElement("script"),en(I),cn(I,"link",a),c.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},A.set(p,I))}}function g3(a,s,c,A){var p=(p=It.current)?h0(p):null;if(!p)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=vs(c.href),c=Za(p).hoistableStyles,A=c.get(s),A||(A={type:"style",instance:null,count:0,state:null},c.set(s,A)),A):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=vs(c.href);var I=Za(p).hoistableStyles,D=I.get(a);if(D||(p=p.ownerDocument||p,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},I.set(a,D),(I=p.querySelector(_l(a)))&&!I._p&&(D.instance=I,D.state.loading=5),hr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},hr.set(a,c),I||BL(p,a,c,D.state))),s&&A===null)throw Error(r(528,""));return D}if(s&&A!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Rs(c),c=Za(p).hoistableScripts,A=c.get(s),A||(A={type:"script",instance:null,count:0,state:null},c.set(s,A)),A):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function vs(a){return'href="'+rr(a)+'"'}function _l(a){return'link[rel="stylesheet"]['+a+"]"}function _3(a){return G({},a,{"data-precedence":a.precedence,precedence:null})}function BL(a,s,c,A){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?A.loading=1:(s=a.createElement("link"),A.preload=s,s.addEventListener("load",function(){return A.loading|=1}),s.addEventListener("error",function(){return A.loading|=2}),cn(s,"link",c),en(s),a.head.appendChild(s))}function Rs(a){return'[src="'+rr(a)+'"]'}function Sl(a){return"script[async]"+a}function S3(a,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var A=a.querySelector('style[data-href~="'+rr(c.href)+'"]');if(A)return s.instance=A,en(A),A;var p=G({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return A=(a.ownerDocument||a).createElement("style"),en(A),cn(A,"style",p),A0(A,c.precedence,a),s.instance=A;case"stylesheet":p=vs(c.href);var I=a.querySelector(_l(p));if(I)return s.state.loading|=4,s.instance=I,en(I),I;A=_3(c),(p=hr.get(p))&&ep(A,p),I=(a.ownerDocument||a).createElement("link"),en(I);var D=I;return D._p=new Promise(function(F,M){D.onload=F,D.onerror=M}),cn(I,"link",A),s.state.loading|=4,A0(I,c.precedence,a),s.instance=I;case"script":return I=Rs(c.src),(p=a.querySelector(Sl(I)))?(s.instance=p,en(p),p):(A=c,(p=hr.get(I))&&(A=G({},c),tp(A,p)),a=a.ownerDocument||a,p=a.createElement("script"),en(p),cn(p,"link",A),a.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(A=s.instance,s.state.loading|=4,A0(A,c.precedence,a));return s.instance}function A0(a,s,c){for(var A=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=A.length?A[A.length-1]:null,I=p,D=0;D<A.length;D++){var F=A[D];if(F.dataset.precedence===s)I=F;else if(I!==p)break}I?I.parentNode.insertBefore(a,I.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(a,s.firstChild))}function ep(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function tp(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var m0=null;function N3(a,s,c){if(m0===null){var A=new Map,p=m0=new Map;p.set(c,A)}else p=m0,A=p.get(c),A||(A=new Map,p.set(c,A));if(A.has(a))return A;for(A.set(a,null),c=c.getElementsByTagName(a),p=0;p<c.length;p++){var I=c[p];if(!(I[Lo]||I[pn]||a==="link"&&I.getAttribute("rel")==="stylesheet")&&I.namespaceURI!=="http://www.w3.org/2000/svg"){var D=I.getAttribute(s)||"";D=a+D;var F=A.get(D);F?F.push(I):A.set(D,[I])}}return A}function I3(a,s,c){a=a.ownerDocument||a,a.head.insertBefore(c,s==="title"?a.querySelector("head > title"):null)}function FL(a,s,c){if(c===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function y3(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Nl=null;function OL(){}function LL(a,s,c){if(Nl===null)throw Error(r(475));var A=Nl;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=vs(c.href),I=a.querySelector(_l(p));if(I){a=I._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(A.count++,A=p0.bind(A),a.then(A,A)),s.state.loading|=4,s.instance=I,en(I);return}I=a.ownerDocument||a,c=_3(c),(p=hr.get(p))&&ep(c,p),I=I.createElement("link"),en(I);var D=I;D._p=new Promise(function(F,M){D.onload=F,D.onerror=M}),cn(I,"link",c),s.instance=I}A.stylesheets===null&&(A.stylesheets=new Map),A.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(A.count++,s=p0.bind(A),a.addEventListener("load",s),a.addEventListener("error",s))}}function wL(){if(Nl===null)throw Error(r(475));var a=Nl;return a.stylesheets&&a.count===0&&np(a,a.stylesheets),0<a.count?function(s){var c=setTimeout(function(){if(a.stylesheets&&np(a,a.stylesheets),a.unsuspend){var A=a.unsuspend;a.unsuspend=null,A()}},6e4);return a.unsuspend=s,function(){a.unsuspend=null,clearTimeout(c)}}:null}function p0(){if(this.count--,this.count===0){if(this.stylesheets)np(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var E0=null;function np(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,E0=new Map,s.forEach(ML,a),E0=null,p0.call(a))}function ML(a,s){if(!(s.state.loading&4)){var c=E0.get(a);if(c)var A=c.get(null);else{c=new Map,E0.set(a,c);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),I=0;I<p.length;I++){var D=p[I];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(c.set(D.dataset.precedence,D),A=D)}A&&c.set(null,A)}p=s.instance,D=p.getAttribute("data-precedence"),I=c.get(D)||A,I===A&&c.set(null,p),c.set(D,p),this.count++,A=p0.bind(this),p.addEventListener("load",A),p.addEventListener("error",A),I?I.parentNode.insertBefore(p,I.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(p,a.firstChild)),s.state.loading|=4}}var Il={$$typeof:_,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function PL(a,s,c,A,p,I,D,F){this.tag=1,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=iA(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iA(0),this.hiddenUpdates=iA(null),this.identifierPrefix=A,this.onUncaughtError=p,this.onCaughtError=I,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function C3(a,s,c,A,p,I,D,F,M,$,se,he){return a=new PL(a,s,c,D,F,M,$,he),s=1,I===!0&&(s|=24),I=dr(3,null,null,s),a.current=I,I.stateNode=a,s=LA(),s.refCount++,a.pooledCache=s,s.refCount++,I.memoizedState={element:A,isDehydrated:c,cache:s},Am(I),a}function v3(a){return a?(a=is,a):is}function R3(a,s,c,A,p,I){p=v3(p),A.context===null?A.context=p:A.pendingContext=p,A=eu(s),A.payload={element:c},I=I===void 0?null:I,I!==null&&(A.callback=I),c=tu(a,A,s),c!==null&&(Dn(c,a,s),ul(c,a,s))}function T3(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<s?c:s}}function rp(a,s){T3(a,s),(a=a.alternate)&&T3(a,s)}function D3(a){if(a.tag===13){var s=Yi(a,67108864);s!==null&&Dn(s,a,67108864),rp(a,67108864)}}var g0=!0;function HL(a,s,c,A){var p=U.T;U.T=null;var I=ne.p;try{ne.p=2,ip(a,s,c,A)}finally{ne.p=I,U.T=p}}function UL(a,s,c,A){var p=U.T;U.T=null;var I=ne.p;try{ne.p=8,ip(a,s,c,A)}finally{ne.p=I,U.T=p}}function ip(a,s,c,A){if(g0){var p=up(A);if(p===null)$m(a,s,A,_0,c),x3(a,A);else if(GL(p,a,s,c,A))A.stopPropagation();else if(x3(a,A),s&4&&-1<kL.indexOf(a)){for(;p!==null;){var I=Ya(p);if(I!==null)switch(I.tag){case 3:if(I=I.stateNode,I.current.memoizedState.isDehydrated){var D=ju(I.pendingLanes);if(D!==0){var F=I;for(F.pendingLanes|=2,F.entangledLanes|=2;D;){var M=1<<31-Vn(D);F.entanglements[1]|=M,D&=~M}jr(I),(Rt&6)===0&&(n0=Be()+500,pl(0))}}break;case 13:F=Yi(I,2),F!==null&&Dn(F,I,2),u0(),rp(I,2)}if(I=up(A),I===null&&$m(a,s,A,_0,c),I===p)break;p=I}p!==null&&A.stopPropagation()}else $m(a,s,A,null,c)}}function up(a){return a=dA(a),ap(a)}var _0=null;function ap(a){if(_0=null,a=zu(a),a!==null){var s=Q(a);if(s===null)a=null;else{var c=s.tag;if(c===13){if(a=Ae(s),a!==null)return a;a=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return _0=a,null}function b3(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Je()){case Mt:return 2;case Pt:return 8;case Gn:case nA:return 32;case Ka:return 268435456;default:return 32}default:return 32}}var sp=!1,ou=null,lu=null,cu=null,yl=new Map,Cl=new Map,du=[],kL="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function x3(a,s){switch(a){case"focusin":case"focusout":ou=null;break;case"dragenter":case"dragleave":lu=null;break;case"mouseover":case"mouseout":cu=null;break;case"pointerover":case"pointerout":yl.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(s.pointerId)}}function vl(a,s,c,A,p,I){return a===null||a.nativeEvent!==I?(a={blockedOn:s,domEventName:c,eventSystemFlags:A,nativeEvent:I,targetContainers:[p]},s!==null&&(s=Ya(s),s!==null&&D3(s)),a):(a.eventSystemFlags|=A,s=a.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),a)}function GL(a,s,c,A,p){switch(s){case"focusin":return ou=vl(ou,a,s,c,A,p),!0;case"dragenter":return lu=vl(lu,a,s,c,A,p),!0;case"mouseover":return cu=vl(cu,a,s,c,A,p),!0;case"pointerover":var I=p.pointerId;return yl.set(I,vl(yl.get(I)||null,a,s,c,A,p)),!0;case"gotpointercapture":return I=p.pointerId,Cl.set(I,vl(Cl.get(I)||null,a,s,c,A,p)),!0}return!1}function B3(a){var s=zu(a.target);if(s!==null){var c=Q(s);if(c!==null){if(s=c.tag,s===13){if(s=Ae(c),s!==null){a.blockedOn=s,wF(a.priority,function(){if(c.tag===13){var A=Yn(),p=Yi(c,A);p!==null&&Dn(p,c,A),rp(c,A)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}a.blockedOn=null}function S0(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var c=up(a.nativeEvent);if(c===null){c=a.nativeEvent;var A=new c.constructor(c.type,c);cA=A,c.target.dispatchEvent(A),cA=null}else return s=Ya(c),s!==null&&D3(s),a.blockedOn=c,!1;s.shift()}return!0}function F3(a,s,c){S0(a)&&c.delete(s)}function VL(){sp=!1,ou!==null&&S0(ou)&&(ou=null),lu!==null&&S0(lu)&&(lu=null),cu!==null&&S0(cu)&&(cu=null),yl.forEach(F3),Cl.forEach(F3)}function N0(a,s){a.blockedOn===s&&(a.blockedOn=null,sp||(sp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,VL)))}var I0=null;function O3(a){I0!==a&&(I0=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){I0===a&&(I0=null);for(var s=0;s<a.length;s+=3){var c=a[s],A=a[s+1],p=a[s+2];if(typeof A!="function"){if(ap(A||c)===null)continue;break}var I=Ya(c);I!==null&&(a.splice(s,3),s-=3,qA(I,{pending:!0,data:p,method:c.method,action:A},A,p))}}))}function Rl(a){function s(M){return N0(M,a)}ou!==null&&N0(ou,a),lu!==null&&N0(lu,a),cu!==null&&N0(cu,a),yl.forEach(s),Cl.forEach(s);for(var c=0;c<du.length;c++){var A=du[c];A.blockedOn===a&&(A.blockedOn=null)}for(;0<du.length&&(c=du[0],c.blockedOn===null);)B3(c),c.blockedOn===null&&du.shift();if(c=(a.ownerDocument||a).$$reactFormReplay,c!=null)for(A=0;A<c.length;A+=3){var p=c[A],I=c[A+1],D=p[Fn]||null;if(typeof I=="function")D||O3(c);else if(D){var F=null;if(I&&I.hasAttribute("formAction")){if(p=I,D=I[Fn]||null)F=D.formAction;else if(ap(p)!==null)continue}else F=D.action;typeof F=="function"?c[A+1]=F:(c.splice(A,3),A-=3),O3(c)}}}function op(a){this._internalRoot=a}y0.prototype.render=op.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,A=Yn();R3(c,A,a,s,null,null)},y0.prototype.unmount=op.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;a.tag===0&&Ns(),R3(a.current,2,null,a,null,null),u0(),s[$a]=null}};function y0(a){this._internalRoot=a}y0.prototype.unstable_scheduleHydration=function(a){if(a){var s=sS();a={blockedOn:null,target:a,priority:s};for(var c=0;c<du.length&&s!==0&&s<du[c].priority;c++);du.splice(c,0,a),c===0&&B3(a)}};var L3=t.version;if(L3!=="19.0.0")throw Error(r(527,L3,"19.0.0"));ne.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=W(s),a=a!==null?z(a):null,a=a===null?null:a.stateNode,a};var jL={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:U,findFiberByHostInstance:zu,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var C0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!C0.isDisabled&&C0.supportsFiber)try{ji=C0.inject(jL),Rn=C0}catch{}}return Dl.createRoot=function(a,s){if(!u(a))throw Error(r(299));var c=!1,A="",p=XN,I=QN,D=JN,F=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(A=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(I=s.onCaughtError),s.onRecoverableError!==void 0&&(D=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(F=s.unstable_transitionCallbacks)),s=C3(a,1,!1,null,null,c,A,p,I,D,F,null),a[$a]=s.current,Km(a.nodeType===8?a.parentNode:a),new op(s)},Dl.hydrateRoot=function(a,s,c){if(!u(a))throw Error(r(299));var A=!1,p="",I=XN,D=QN,F=JN,M=null,$=null;return c!=null&&(c.unstable_strictMode===!0&&(A=!0),c.identifierPrefix!==void 0&&(p=c.identifierPrefix),c.onUncaughtError!==void 0&&(I=c.onUncaughtError),c.onCaughtError!==void 0&&(D=c.onCaughtError),c.onRecoverableError!==void 0&&(F=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(M=c.unstable_transitionCallbacks),c.formState!==void 0&&($=c.formState)),s=C3(a,1,!0,s,c??null,A,p,I,D,F,M,$),s.context=v3(null),c=s.current,A=Yn(),p=eu(A),p.callback=null,tu(c,p,A),s.current.lanes=A,Oo(s,A),jr(s),a[$a]=s.current,Km(a),new y0(s)},Dl.version="19.0.0",Dl}var z3;function nw(){if(z3)return dp.exports;z3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),dp.exports=tw(),dp.exports}var rw=nw();const iw={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:[],strictMode:"strict",defaultLocale:"en"},uw={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1},aw={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.mjs",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",contentDirName:"src",resultDirName:".intlayer",moduleAugmentationDirName:".intlayer/types",dictionariesDirName:"dictionary",i18nextResourcesDirName:"i18next_resources",reactIntlMessagesDirName:"intl_messages",typeDirName:"types",mainDirName:"main",configDirName:"config",excludedPath:["node_modules"],watch:!1,contentDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src",resultDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer",moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",dictionaryOutput:["intlayer"],dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",i18nextResourcesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/i18next_resources",reactIntlMessagesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/intl_messages",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.mjs","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},sw={applicationURL:"http://localhost:5173/",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",hotReload:!1,openAiApiKey:"",openAiApiModel:"gpt-4o-2024-11-20",openAiApiTemperature:.1},ow={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},Qe={internationalization:iw,middleware:uw,content:aw,editor:sw,log:ow},fn=[];for(let e=0;e<256;++e)fn.push((e+256).toString(16).slice(1));function lw(e,t=0){return(fn[e[t+0]]+fn[e[t+1]]+fn[e[t+2]]+fn[e[t+3]]+"-"+fn[e[t+4]]+fn[e[t+5]]+"-"+fn[e[t+6]]+fn[e[t+7]]+"-"+fn[e[t+8]]+fn[e[t+9]]+"-"+fn[e[t+10]]+fn[e[t+11]]+fn[e[t+12]]+fn[e[t+13]]+fn[e[t+14]]+fn[e[t+15]]).toLowerCase()}let mp;const cw=new Uint8Array(16);function dw(){if(!mp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mp=crypto.getRandomValues.bind(crypto)}return mp(cw)}const fw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),K3={randomUUID:fw};function hw(e,t,n){var u;if(K3.randomUUID&&!e)return K3.randomUUID();e=e||{};const r=e.random??((u=e.rng)==null?void 0:u.call(e))??dw();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,lw(r)}const{editor:Ri}=Qe,VR=y.createContext({postMessage:()=>null,allowedOrigins:[Ri==null?void 0:Ri.applicationURL,Ri==null?void 0:Ri.editorURL,Ri==null?void 0:Ri.cmsURL],senderId:""}),$3=({children:e,allowedOrigins:t,postMessage:n})=>{const r=y.useRef(hw()),u=y.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return N.jsx(VR.Provider,{value:u,children:e})},jR=()=>y.useContext(VR),Aw=(e,t)=>{try{const n=new URL(e),r=new URL(t);if(n.protocol!==r.protocol||n.hostname!==r.hostname||n.port!==r.port)return!1;const u=n.pathname.replace(/\/$/,""),o=r.pathname.replace(/\/$/,"");return!(u!==""&&o!==""&&u!==o)}catch(n){return console.error("Invalid URL(s)",n),!1}},Xs=(e,t,n)=>{const{allowedOrigins:r,postMessage:u,senderId:o}=jR();return y.useEffect(()=>{if(t){const d=f=>{const{type:h,data:m,senderId:E}=f.data;h===e&&E!==o&&(typeof r>"u"||r!=null&&r.some(g=>Aw(g,f.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",d),()=>window.removeEventListener("message",d)}},[r,u,o,n]),d=>{u({type:e,data:d,senderId:o})}},mw=(e,t)=>typeof e=="function"?e(t):e,ka=(e,t,n)=>{const{postMessage:r,senderId:u}=jR(),{emit:o,receive:l}=n??{emit:!0,receive:!0},d=(_,S)=>{const C=mw(_,S);return o&&typeof r=="function"&&typeof C<"u"&&r({type:`${e}/post`,data:C,senderId:u}),C},f=()=>{typeof r=="function"&&r({type:`${e}/post`,data:h,senderId:u})},[h,m]=y.useState(()=>d(t)),E=_=>m(S=>d(_,S));Xs(`${e}/post`,l?_=>{m(_)}:void 0);const g=(_,S)=>{o&&typeof r=="function"&&S!==u&&(typeof h>"u"||r({type:`${e}/post`,data:h,senderId:u}))};return Xs(`${e}/get`,o?g:void 0,h),y.useEffect(()=>{l&&typeof r=="function"&&typeof h>"u"&&r({type:`${e}/get`,senderId:u})},[]),[h,E,f]},zR=y.createContext(void 0),pw=({children:e,configuration:t})=>N.jsx(zR.Provider,{value:t,children:e}),ui=()=>y.useContext(zR),KR=y.createContext(void 0),$R=y.createContext(void 0),Ew=({children:e})=>{const[t,n]=ka("INTLAYER_LOCALE_DICTIONARIES_CHANGED",void 0),r=y.useMemo(()=>({localeDictionaries:t??{}}),[t]),u=y.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:o=>{n(l=>({...l,[o.key]:o}))}}),[n]);return N.jsx(KR.Provider,{value:r,children:N.jsx($R.Provider,{value:u,children:e})})},Xg=()=>y.useContext($R),YR=()=>{const e=Xg(),t=y.useContext(KR);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}};var j=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Unknown="unknown",e))(j||{});const gw=(e,t,n)=>({...n,nodeType:e,[e]:t}),_e=e=>gw(j.Translation,e),_w=e=>{let t=e.trim().replace(/^\[/,"[").replace(/^\{/,"{").replace(/\]$/,"]").replace(/\}$/,"}").replace(/([\w\d_]+)\s*:/g,'"$1":').replace(/:\s*([a-zA-Z_][\w\d_]*)/g,': "$1"');return t=t.replace(/\[([^\[\]]+?)\]/g,(n,r)=>`[${r.split(",").map(o=>{const l=o.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},ZR=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let u=!1;for(const o of t){if(o.trim()==="---"){if(u)break;u=!0;continue}if(u){const d=o.match(/^([^:]+)\s*:\s*(.*)$/);if(d){const f=d[1].trim(),h=d[2].trim();try{r[f]=_w(h)}catch{r[f]=h}}}}return r}catch{return}},X0=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(u,o)=>X0(u,o));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,u)=>{const o={...t,children:r,keyPath:[...t.keyPath,{type:j.Array,key:u}]};return X0(r,o)});const n={};for(const r in e){const u={...t,children:e[r],keyPath:[...t.keyPath,{type:j.Object,key:r}]};n[r]=X0(e[r],u)}return n},Sw=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},Nw=(e,t)=>{const n=Object.keys(e);for(const r of n){const u=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,o=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),d=r.startsWith("<")&&t<parseFloat(r.slice(1)),f=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(u||o||l||d||f)return r}},Iw=(e,t)=>{const n=Nw(e,t)??"fallback";return e[n]},Y3={},yw=(e,t,n=Qe.internationalization.defaultLocale)=>{const r=[Bw,Dw(n),bw,xw,Fw,...t.plugins??[]];return X0(e,{...t,plugins:r})},WR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return yw(e.content,r,t)},Cw=(e,t,n)=>{const r=Y3[e];if(!r)throw new Error(`Dictionary ${e} not found`,Y3);return WR(r,t,n)},vw=(e,t,n)=>{const r=Cw(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const u=t.split(".");let o=r;for(const l of u)if(o=o==null?void 0:o[l],o===void 0)return r;return o}return r},Rw=(e,t)=>{const{defaultLocale:n}=Qe==null?void 0:Qe.internationalization;return e[t??n]??e[n]},Tw=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>t[r]??""),Dw=e=>({id:"translation-plugin",canHandle:t=>typeof t=="object"&&(t==null?void 0:t.nodeType)===j.Translation,transform:(t,n,r)=>{const u=structuredClone(t[j.Translation]);for(const o in u){const l={...n,children:u[o],keyPath:[...n.keyPath,{type:j.Translation,key:o}]};u[o]=r(u[o],l)}return Rw(u,e)}}),bw={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[j.Enumeration]);for(const u in r){const o=r[u],l={...t,children:o,keyPath:[...t.keyPath,{type:j.Enumeration,key:u}]};r[u]=n(o,l)}return u=>Iw(r,u)}},xw={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Condition,transform:(e,t,n)=>{const r=structuredClone(e[j.Condition]);for(const u in r){const o=r[u],l={...t,children:o,keyPath:[...t.keyPath,{type:j.Condition,key:u}]};r[u]=n(o,l)}return u=>Sw(r,u)}},Bw={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:j.Insertion}],u=e[j.Insertion];return n(u,{...t,children:u,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,d,f)=>{const h=f(l,{...d,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const E=Tw(h,m);return f(E,{...d,plugins:t.plugins,children:E})}}},...t.plugins??[]]})}},Fw={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Nested,transform:(e,t)=>vw(e.nested.dictionaryKey,e.nested.path,t)},Z3={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},Ow=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),v0=e=>e.reduce((t,n)=>{const r=t??{},u=Ow(n??{});return typeof r=="object"&&typeof u=="object"?{...r,...u}:u??r},{}),Fe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",u;const o=t.map(({body:_,params:S,headers:C,...v})=>v),l=v0([Z3,...o]),d=v0([Z3.headers,...t.map(_=>_.headers)]),f=v0(t.map(_=>_.params)),h=l.method;if(h!=="GET"&&h!=="HEAD"){const _=v0(t.map(S=>S.body));(d==null?void 0:d["Content-Type"])==="application/x-www-form-urlencoded"?u=new URLSearchParams(_).toString():u=JSON.stringify(_)}Object.entries(f).length>0&&(r=`?${new URLSearchParams(f).toString()}`);const m={...l,headers:d,body:u,signal:n},E=`${e}${r}`,g=await fetch(E,m);if(!g.ok){const _=await g.json();throw new Error(JSON.stringify(_.error)??"An error occurred")}return await g.json()},Lw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{auditContentDeclaration:async(m,E={})=>await Fe(`${r}/audit/dictionary`,e,E,{method:"POST",body:m}),auditContentDeclarationField:async(m,E={})=>await Fe(`${r}/audit/dictionary/field`,e,E,{method:"POST",body:m}),auditContentDeclarationMetadata:async(m,E={})=>await Fe(`${r}/audit/dictionary/metadata`,e,E,{method:"POST",body:m}),auditTag:async(m,E={})=>await Fe(`${r}/audit/tag`,e,E,{method:"POST",body:m}),askDocQuestion:async(m,E={})=>await Fe(`${r}/ask`,e,E,{method:"POST",body:m}),autocomplete:async(m,E={})=>await Fe(`${r}/autocomplete`,e,E,{method:"POST",body:m})}},ww=(e={},t=Qe)=>{const{backendURL:n,clientId:r,clientSecret:u}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const o=`${n}/api/auth`;return{login:async(B,O={})=>await Fe(`${o}/login`,e,O,{method:"POST",body:B}),getLoginWithGitHubURL:B=>{const O=new URLSearchParams(B);return`${o}/login/github?${O.toString()}`},getLoginWithGoogleURL:B=>{const O=new URLSearchParams(B);return`${o}/login/google?${O.toString()}`},register:async(B,O={},H={})=>await Fe(`${o}/register`,e,H,{method:"POST",body:B,params:O}),logout:async(B={})=>await Fe(`${o}/logout`,e,B,{method:"POST"}),resetPassword:async(B,O={})=>await Fe(`${o}/password/reset`,e,O,{params:B,method:"POST"}),defineNewPassword:async(B,O={})=>await Fe(`${o}/password/define`,e,O,{method:"POST",body:B}),askResetPassword:async(B,O={})=>await Fe(`${o}/password/reset`,e,O,{method:"POST",body:{email:B}}),checkIfUserHasPassword:async(B={})=>await Fe(`${o}/password/has`,e,B,{method:"GET"}),verifyEmail:async({userId:B,secret:O},H={})=>await Fe(`${o}/active/${B}/${O}`,e,H,{method:"PUT"}),getVerifyEmailStatusURL:B=>`${o}/verify-email-status/${String(B)}`,changePassword:async(B,O={})=>await Fe(`${o}/password`,e,O,{method:"PUT",body:B}),createSession:async(B,O={})=>await Fe(`${o}/session`,e,O,{method:"POST",body:B}),getSession:async(B,O={})=>await Fe(`${n}/session`,e,O,{params:{session_token:B}}),getCSRFToken:async(B={})=>await Fe(`${n}/csrf-token`,e,B),getOAuth2AccessToken:async(B={})=>await Fe(`${n}/oauth2/token`,e,B,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:u}})}},Mw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(E,g={})=>await Fe(r,e,g,{params:E}),getDictionariesKeys:async(E={})=>await Fe(`${r}/keys`,e,E),getDictionary:async(E,g,_={})=>await Fe(`${r}/${E}`,e,_,{params:g?{version:g.toString()}:void 0}),pushDictionaries:async(E,g={})=>await Fe(`${r}`,e,g,{method:"PATCH",body:{dictionaries:E}}),addDictionary:async(E,g={})=>await Fe(`${r}`,e,g,{method:"POST",body:E}),updateDictionary:async(E,g,_={})=>await Fe(`${r}/${E}`,e,_,{method:"PUT",body:g}),deleteDictionary:async(E,g={})=>await Fe(`${r}`,e,g,{method:"DELETE",body:{id:E}})}},Pw=(e={},t=Qe)=>{const{editorURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getConfiguration:async(l={})=>(await Fe(`${r}/config`,e,l)).data,writeDictionary:async(l,d={})=>{await Fe(`${r}/dictionary`,e,d,{method:"POST",body:{dictionary:l}})}}},Hw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(_,S={})=>await Fe(r,e,S,{params:_}),getOrganization:async(_,S={})=>await Fe(`${r}/${String(_)}`,e,S),addOrganization:async(_,S={})=>await Fe(r,e,S,{method:"POST",body:_}),addOrganizationMember:async(_,S={})=>Fe(`${r}/member`,e,S,{method:"POST",body:_}),updateOrganization:async(_,S={})=>Fe(r,e,S,{method:"PUT",body:_}),updateOrganizationMembers:async(_,S={})=>Fe(`${r}/members`,e,S,{method:"PUT",body:_}),deleteOrganization:async(_={})=>await Fe(r,e,_,{method:"DELETE"}),selectOrganization:async(_,S={})=>await Fe(`${r}/${String(_)}`,e,S,{method:"PUT"}),unselectOrganization:async(_={})=>await Fe(`${r}/logout`,e,_,{method:"POST"})}},Uw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(C,v={})=>await Fe(r,e,v,{params:C}),addProject:async(C,v={})=>await Fe(`${r}`,e,v,{method:"POST",body:C}),updateProject:async(C,v={})=>await Fe(`${r}`,e,v,{method:"PUT",body:C}),updateProjectMembers:async(C,v={})=>await Fe(`${r}/members`,e,v,{method:"PUT",body:C}),pushProjectConfiguration:async(C,v={})=>await Fe(`${r}/configuration`,e,v,{method:"PUT",body:C}),deleteProject:async(C={})=>await Fe(`${r}`,e,C,{method:"DELETE"}),selectProject:async(C,v={})=>await Fe(`${r}/${String(C)}`,e,v,{method:"PUT"}),unselectProject:async(C={})=>await Fe(`${r}/logout`,e,C,{method:"POST"}),addNewAccessKey:async(C,v={})=>await Fe(`${r}/access_key`,e,v,{method:"POST",body:C}),deleteAccessKey:async(C,v={})=>await Fe(`${r}/access_key`,e,v,{method:"DELETE",body:{clientId:C}}),refreshAccessKey:async(C,v={})=>await Fe(`${r}/access_key`,e,v,{method:"PATCH",body:{clientId:C}})}},kw=(e={},t=Qe)=>{const{backendURL:n}=t.editor;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(d,f={})=>await Fe(`${r}/pricing`,e,f,{method:"POST",body:d}),getSubscription:async(d,f={})=>await Fe(`${r}/create-subscription`,e,f,{method:"POST",body:d}),cancelSubscription:async(d={})=>await Fe(`${r}/cancel-subscription`,e,d,{method:"POST"})}},Gw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(f,h={})=>await Fe(r,e,h,{params:f}),addTag:async(f,h={})=>await Fe(`${r}`,e,h,{method:"POST",body:f}),updateTag:async(f,h,m={})=>await Fe(`${r}/${f}`,e,m,{method:"PUT",body:h}),deleteTag:async(f,h={})=>await Fe(`${r}/${f}`,e,h,{method:"DELETE"})}},Vw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(E,g={})=>await Fe(`${r}/`,e,g,{method:"POST",body:E}),getUsers:async(E,g={})=>await Fe(r,e,g,{params:E}),getUserById:async(E,g={})=>await Fe(`${r}/${E}`,e,g),getUserByAccount:async(E,g,_={})=>await Fe(`${r}/account/${g}/${E}`,e,_),getUserByEmail:async(E,g={})=>await Fe(`${r}/email/${E}`,e,g),updateUser:async(E,g={})=>await Fe(`${r}`,e,g,{method:"PUT",body:E}),deleteUser:async(E,g={})=>await Fe(`${r}/${E}`,e,g,{method:"DELETE"})}},ch=(e={},t)=>({organization:Hw(e,t),project:Uw(e,t),user:Vw(e,t),auth:ww(e,t),dictionary:Mw(e,t),stripe:kw(e,t),ai:Lw(e,t),tag:Gw(e,t),editor:Pw(e,t)}),W3=(e,t,n)=>{let r=e,u=null,o=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const d=t[l];if(u=r,d.type===j.Object?(o=[d.key],(!r[d.key]||typeof r[d.key]!="object")&&(r[d.key]={}),r=r[d.key]):d.type===j.Array?(o=[d.key],(!r[d.key]||typeof r[d.key]!="object")&&(r[d.key]={}),r=r[d.key]):d.type===j.Translation?(o=[j.Translation,d.key],(!r[j.Translation]||typeof r[j.Translation]!="object")&&(r[j.Translation]={}),(!r[j.Translation][d.key]||typeof r[j.Translation][d.key]!="object")&&(r[j.Translation][d.key]={}),r=r[j.Translation][d.key]):d.type===j.Enumeration?(o=[j.Enumeration,d.key],(!r[j.Enumeration]||typeof r[j.Enumeration]!="object")&&(r[j.Enumeration]={}),(!r[j.Enumeration][d.key]||typeof r[j.Enumeration][d.key]!="object")&&(r[j.Enumeration][d.key]={}),r=r[j.Enumeration][d.key]):d.type===j.Condition?(o=[j.Condition,d.key],(!r[j.Condition]||typeof r[j.Condition]!="object")&&(r[j.Condition]={}),(!r[j.Condition][d.key]||typeof r[j.Condition][d.key]!="object")&&(r[j.Condition][d.key]={}),r=r[j.Condition][d.key]):d.type===j.Markdown?(o=[j.Markdown],(!r[j.Markdown]||typeof r[j.Markdown]!="object")&&(r[j.Markdown]=""),r=r[j.Markdown]):d.type===j.Nested&&(o=[j.Nested],(!r[j.Nested]||typeof r[j.Nested]!="object")&&(r[j.Nested]={}),r=r[j.Nested]),l===t.length-1&&u&&o.length>0){let f=u;for(const h of o.slice(0,-1))f=f[h];typeof n>"u"?delete f[o[o.length-1]]:f[o[o.length-1]]=n}}return e},Zr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===j.Object||r.type===j.Array?n=n==null?void 0:n[r.key]:r.type===j.Translation?n=n==null?void 0:n[j.Translation][r.key]:r.type===j.Enumeration?n=n==null?void 0:n[j.Enumeration][r.key]:r.type===j.Condition?n=n==null?void 0:n[j.Condition]:r.type===j.Markdown&&(n=n==null?void 0:n[j.Markdown]);return n},qR=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof(e==null?void 0:e.nodeType)=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===j.Translation||t.nodeType===j.Enumeration||t.nodeType===j.Condition||t.nodeType===j.Insertion||t.nodeType===j.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===j.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},jw=(e,t,n)=>{let r=e,u=null,o=null;for(const l of n)u=r,l.type===j.Object||l.type===j.Array?(o=l.key,r=r[l.key]):l.type===j.Translation?(o=j.Translation,r=r[j.Translation][l.key]):l.type===j.Enumeration?(o=j.Enumeration,r=r[j.Enumeration][l.key]):l.type===j.Condition?(o=j.Condition,r=r[j.Condition]):l.type===j.Markdown?(o=j.Markdown,r=r[j.Markdown]):l.type===j.ReactNode&&(o=j.ReactNode,r=r[j.ReactNode]);if(u&&o!==null)if(Array.isArray(u))u[o]=r;else{const l={};for(const d of Object.keys(u))d===o&&typeof t<"u"?l[t]=r:l[d]=u[d];Object.keys(u).forEach(d=>delete u[d]),Object.assign(u,l)}return e},zw=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Gc=e=>typeof e=="string"?j.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?j.Array:zw(e)?j.ReactNode:typeof e=="number"?j.Number:typeof e=="boolean"?j.Boolean:e&&typeof e=="object"?j.Object:j.Unknown,bl=(e,t,n)=>{switch(e){case j.Translation:return{nodeType:j.Translation,[j.Translation]:Object.assign({},...t.map(r=>({[r]:n??""})))};case j.Enumeration:return{nodeType:j.Enumeration,[j.Enumeration]:{1:n??""}};case j.Condition:return{nodeType:j.Condition,[j.Condition]:{true:n??"",false:n??""}};case j.Nested:return{nodeType:j.Nested,[j.Nested]:{dictionaryKey:""}};case j.Markdown:return{nodeType:j.Markdown,[j.Markdown]:n??""};case j.Object:return{newKey:n??""};case j.Array:return[n??""];case j.Text:return n??"";case j.Number:return n??0;case j.Boolean:return n??!0;default:return n??""}},_r=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof(e==null?void 0:e.nodeType)=="string"){const r=e,u=r[r.nodeType];return r.nodeType===j.Translation||r.nodeType===j.Enumeration||r.nodeType===j.Condition?_r(u):r.nodeType===j.Nested?r:r.nodeType===j.Markdown?_r(r):u}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(_r);const t=Object.entries(e).map(([r,u])=>[r,_r(u)]);return Object.fromEntries(t)},Vc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),XR=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e);var i=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e))(i||{});const dn={[i.ENGLISH]:"",[i.FRENCH]:"",[i.SPANISH]:"",[i.PORTUGUESE]:"",[i.GERMAN]:"",[i.AFRIKAANS]:"",[i.ARABIC]:"",[i.AZERI_LATIN]:"",[i.BELARUSIAN]:"",[i.BULGARIAN]:"",[i.BOSNIAN]:"",[i.CATALAN]:"",[i.CZECH]:"",[i.WELSH]:"",[i.DANISH]:"",[i.DIVEHI]:"",[i.GREEK]:"",[i.ESPERANTO]:"",[i.ESTONIAN]:"",[i.BASQUE]:"",[i.FARSI]:"",[i.FINNISH]:"",[i.FAROESE]:"",[i.GALICIAN]:"",[i.GUJARATI]:"",[i.HEBREW]:"",[i.HINDI]:"",[i.CROATIAN]:"",[i.HUNGARIAN]:"",[i.ARMENIAN]:"",[i.INDONESIAN]:"",[i.ICELANDIC]:"",[i.ITALIAN]:"",[i.JAPANESE]:"",[i.GEORGIAN]:"",[i.KAZAKH]:"",[i.KANNADA]:"",[i.KOREAN]:"",[i.KONKANI]:"",[i.KYRGYZ]:"",[i.LITHUANIAN]:"",[i.LATVIAN]:"",[i.MAORI]:"",[i.FYRO_MACEDONIAN]:"",[i.MONGOLIAN]:"",[i.MARATHI]:"",[i.MALAY]:"",[i.MALTESE]:"",[i.NORWEGIAN_BOKMAL]:"",[i.DUTCH]:"",[i.NORTHERN_SOTHO]:"",[i.PUNJABI]:"",[i.POLISH]:"",[i.PASHTO]:"",[i.QUECHUA]:"",[i.ROMANIAN]:"",[i.RUSSIAN]:"",[i.SANSKRIT]:"",[i.SAMI_NORTHERN]:"",[i.SLOVAK]:"",[i.SLOVENIAN]:"",[i.ALBANIAN]:"",[i.SERBIAN_LATIN]:"",[i.SWEDISH]:"",[i.SWEDISH_FINLAND]:"",[i.SWEDISH_SWEDEN]:"",[i.SWAHILI]:"",[i.SYRIAC]:"",[i.TAMIL]:"",[i.TELUGU]:"",[i.THAI]:"",[i.TAGALOG]:"",[i.TSWANA]:"",[i.TURKISH]:"",[i.TATAR]:"",[i.UKRAINIAN]:"",[i.URDU]:"",[i.UZBEK_LATIN]:"",[i.VIETNAMESE]:"",[i.XHOSA]:"",[i.CHINESE]:"",[i.CHINESE_SIMPLIFIED]:"",[i.CHINESE_SIMPLIFIED_CHINA]:"",[i.CHINESE_TRADITIONAL]:"",[i.ZULU]:"",[i.AFRIKAANS_SOUTH_AFRICA]:"",[i.ARABIC_UNITED_ARAB_EMIRATES]:"",[i.ARABIC_BAHRAIN]:"",[i.ARABIC_ALGERIA]:"",[i.ARABIC_EGYPT]:"",[i.ARABIC_IRAQ]:"",[i.ARABIC_JORDAN]:"",[i.ARABIC_KUWAIT]:"",[i.ARABIC_LEBANON]:"",[i.ARABIC_LIBYA]:"",[i.ARABIC_MOROCCO]:"",[i.ARABIC_OMAN]:"",[i.ARABIC_QATAR]:"",[i.ARABIC_SAUDI_ARABIA]:"",[i.ARABIC_SYRIA]:"",[i.ARABIC_TUNISIA]:"",[i.ARABIC_YEMEN]:"",[i.AZERI_LATIN_AZERBAIJAN]:"",[i.BELARUSIAN_BELARUS]:"",[i.BULGARIAN_BULGARIA]:"",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"",[i.CATALAN_SPAIN]:"",[i.CZECH_CZECH_REPUBLIC]:"",[i.WELSH_UNITED_KINGDOM]:"",[i.DANISH_DENMARK]:"",[i.GERMAN_AUSTRIA]:"",[i.GERMAN_SWITZERLAND]:"",[i.GERMAN_GERMANY]:"",[i.GERMAN_LIECHTENSTEIN]:"",[i.GERMAN_LUXEMBOURG]:"",[i.DIVEHI_MALDIVES]:"",[i.GREEK_GREECE]:"",[i.ENGLISH_AUSTRALIA]:"",[i.ENGLISH_BELIZE]:"",[i.ENGLISH_CANADA]:"",[i.ENGLISH_CARIBBEAN]:"",[i.ENGLISH_UNITED_KINGDOM]:"",[i.ENGLISH_IRELAND]:"",[i.ENGLISH_JAMAICA]:"",[i.ENGLISH_NEW_ZEALAND]:"",[i.ENGLISH_PHILIPPINES]:"",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"",[i.ENGLISH_UNITED_STATES]:"",[i.ENGLISH_SOUTH_AFRICA]:"",[i.ENGLISH_ZIMBABWE]:"",[i.SPANISH_ARGENTINA]:"",[i.SPANISH_BOLIVIA]:"",[i.SPANISH_CHILE]:"",[i.SPANISH_COLOMBIA]:"",[i.SPANISH_COSTA_RICA]:"",[i.SPANISH_DOMINICAN_REPUBLIC]:"",[i.SPANISH_ECUADOR]:"",[i.SPANISH_SPAIN]:"",[i.SPANISH_GUATEMALA]:"",[i.SPANISH_HONDURAS]:"",[i.SPANISH_MEXICO]:"",[i.SPANISH_NICARAGUA]:"",[i.SPANISH_PANAMA]:"",[i.SPANISH_PERU]:"",[i.SPANISH_PUERTO_RICO]:"",[i.SPANISH_PARAGUAY]:"",[i.SPANISH_EL_SALVADOR]:"",[i.SPANISH_URUGUAY]:"",[i.SPANISH_VENEZUELA]:"",[i.ESTONIAN_ESTONIA]:"",[i.BASQUE_SPAIN]:"",[i.FARSI_IRAN]:"",[i.FINNISH_FINLAND]:"",[i.FAROESE_FAROE_ISLANDS]:"",[i.FRENCH_BELGIUM]:"",[i.FRENCH_CANADA]:"",[i.FRENCH_SWITZERLAND]:"",[i.FRENCH_FRANCE]:"",[i.FRENCH_LUXEMBOURG]:"",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"",[i.GALICIAN_SPAIN]:"",[i.GUJARATI_INDIA]:"",[i.HEBREW_ISRAEL]:"",[i.HINDI_INDIA]:"",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"",[i.CROATIAN_CROATIA]:"",[i.HUNGARIAN_HUNGARY]:"",[i.ARMENIAN_ARMENIA]:"",[i.INDONESIAN_INDONESIA]:"",[i.ICELANDIC_ICELAND]:"",[i.ITALIAN_SWITZERLAND]:"",[i.ITALIAN_ITALY]:"",[i.JAPANESE_JAPAN]:"",[i.GEORGIAN_GEORGIA]:"",[i.KAZAKH_KAZAKHSTAN]:"",[i.KANNADA_INDIA]:"",[i.KOREAN_KOREA]:"",[i.KONKANI_INDIA]:"",[i.KYRGYZ_KYRGYZSTAN]:"",[i.LITHUANIAN_LITHUANIA]:"",[i.LATVIAN_LATVIA]:"",[i.MAORI_NEW_ZEALAND]:"",[i.FYRO_MACEDONIAN_MACEDONIA]:"",[i.MONGOLIAN_MONGOLIA]:"",[i.MARATHI_INDIA]:"",[i.MALAY_BRUNEI_DARUSSALAM]:"",[i.MALAY_MALAYSIA]:"",[i.MALTESE_MALTA]:"",[i.NORWEGIAN_BOKMAL_NORWAY]:"",[i.DUTCH_BELGIUM]:"",[i.DUTCH_NETHERLANDS]:"",[i.NORWEGIAN_NYNORSK_NORWAY]:"",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"",[i.PUNJABI_INDIA]:"",[i.POLISH_POLAND]:"",[i.PASHTO_AFGHANISTAN]:"",[i.PORTUGUESE_BRAZIL]:"",[i.PORTUGUESE_PORTUGAL]:"",[i.QUECHUA_BOLIVIA]:"",[i.QUECHUA_ECUADOR]:"",[i.QUECHUA_PERU]:"",[i.ROMANIAN_ROMANIA]:"",[i.RUSSIAN_RUSSIA]:"",[i.SANSKRIT_INDIA]:"",[i.SAMI_NORTHERN_FINLAND]:"",[i.SAMI_NORTHERN_NORWAY]:"",[i.SAMI_NORTHERN_SWEDEN]:"",[i.SLOVAK_SLOVAKIA]:"",[i.SLOVENIAN_SLOVENIA]:"",[i.ALBANIAN_ALBANIA]:"",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"",[i.SWAHILI_KENYA]:"",[i.SYRIAC_SYRIA]:"",[i.TAMIL_INDIA]:"",[i.TELUGU_INDIA]:"",[i.THAI_THAILAND]:"",[i.TAGALOG_PHILIPPINES]:"",[i.TSWANA_SOUTH_AFRICA]:"",[i.TURKISH_TURKEY]:"",[i.TATAR_RUSSIA]:"",[i.TSOGA]:"",[i.UKRAINIAN_UKRAINE]:"",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"",[i.UZBEK_LATIN_UZBEKISTAN]:"",[i.VIETNAMESE_VIET_NAM]:"",[i.XHOSA_SOUTH_AFRICA]:"",[i.CHINESE_HONG_KONG]:"",[i.CHINESE_MACAU]:"",[i.CHINESE_SINGAPORE]:"",[i.ZULU_SOUTH_AFRICA]:""},Ts={[i.ENGLISH]:"Englisch",[i.FRENCH]:"Französisch",[i.SPANISH]:"Spanisch",[i.PORTUGUESE]:"Portugiesisch",[i.GERMAN]:"Deutsch",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabisch",[i.AZERI_LATIN]:"Aserbaidschanisch Latein",[i.BELARUSIAN]:"Weißrussisch",[i.BULGARIAN]:"Bulgarisch",[i.BOSNIAN]:"Bosnisch",[i.CATALAN]:"Katalanisch",[i.CZECH]:"Tschechisch",[i.WELSH]:"Walisisch",[i.DANISH]:"Dänisch",[i.DIVEHI]:"Divehi",[i.GREEK]:"Griechisch",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estnisch",[i.BASQUE]:"Baskisch",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnisch",[i.FAROESE]:"Färöisch",[i.GALICIAN]:"Galicisch",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebräisch",[i.HINDI]:"Hindi",[i.CROATIAN]:"Kroatisch",[i.HUNGARIAN]:"Ungarisch",[i.ARMENIAN]:"Armenisch",[i.INDONESIAN]:"Indonesisch",[i.ICELANDIC]:"Isländisch",[i.ITALIAN]:"Italienisch",[i.JAPANESE]:"Japanisch",[i.GEORGIAN]:"Georgisch",[i.KAZAKH]:"Kasachisch",[i.KANNADA]:"Kannada",[i.KOREAN]:"Koreanisch",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirgisisch",[i.LITHUANIAN]:"Litauisch",[i.LATVIAN]:"Lettisch",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"FYRO Mazedonisch",[i.MONGOLIAN]:"Mongolisch",[i.MARATHI]:"Marathi",[i.MALAY]:"Malaiisch",[i.MALTESE]:"Maltisch",[i.NORWEGIAN_BOKMAL]:"Norwegisch Bokmål",[i.DUTCH]:"Niederländisch",[i.NORTHERN_SOTHO]:"Sotho (Nord)",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polnisch",[i.PASHTO]:"Paschtu",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumänisch",[i.RUSSIAN]:"Russisch",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami (Nord)",[i.SLOVAK]:"Slowakisch",[i.SLOVENIAN]:"Slowenisch",[i.ALBANIAN]:"Albanisch",[i.SERBIAN_LATIN]:"Serbisch Latein",[i.SWEDISH]:"Schwedisch",[i.SWEDISH_FINLAND]:"Schwedisch (Finnland)",[i.SWEDISH_SWEDEN]:"Schwedisch (Schweden)",[i.SWAHILI]:"Suaheli",[i.SYRIAC]:"Syrisch",[i.TAMIL]:"Tamilisch",[i.TELUGU]:"Telugu",[i.THAI]:"Thailändisch",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Türkisch",[i.TATAR]:"Tatarisch",[i.UKRAINIAN]:"Ukrainisch",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Usbekisch Latein",[i.VIETNAMESE]:"Vietnamesisch",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinesisch",[i.CHINESE_SIMPLIFIED]:"Chinesisch (Vereinfacht)",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinesisch (Vereinfacht, China)",[i.CHINESE_TRADITIONAL]:"Chinesisch (Traditionell)",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Südafrika)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabisch (Vereinigte Arabische Emirate)",[i.ARABIC_BAHRAIN]:"Arabisch (Bahrain)",[i.ARABIC_ALGERIA]:"Arabisch (Algerien)",[i.ARABIC_EGYPT]:"Arabisch (Ägypten)",[i.ARABIC_IRAQ]:"Arabisch (Irak)",[i.ARABIC_JORDAN]:"Arabisch (Jordanien)",[i.ARABIC_KUWAIT]:"Arabisch (Kuwait)",[i.ARABIC_LEBANON]:"Arabisch (Libanon)",[i.ARABIC_LIBYA]:"Arabisch (Libyen)",[i.ARABIC_MOROCCO]:"Arabisch (Marokko)",[i.ARABIC_OMAN]:"Arabisch (Oman)",[i.ARABIC_QATAR]:"Arabisch (Katar)",[i.ARABIC_SAUDI_ARABIA]:"Arabisch (Saudi-Arabien)",[i.ARABIC_SYRIA]:"Arabisch (Syrien)",[i.ARABIC_TUNISIA]:"Arabisch (Tunesien)",[i.ARABIC_YEMEN]:"Arabisch (Jemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Aserbaidschanisch Latein (Aserbaidschan)",[i.BELARUSIAN_BELARUS]:"Weißrussisch (Weißrussland)",[i.BULGARIAN_BULGARIA]:"Bulgarisch (Bulgarien)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnisch (Bosnien und Herzegowina)",[i.CATALAN_SPAIN]:"Katalanisch (Spanien)",[i.CZECH_CZECH_REPUBLIC]:"Tschechisch (Tschechische Republik)",[i.WELSH_UNITED_KINGDOM]:"Walisisch (Vereinigtes Königreich)",[i.DANISH_DENMARK]:"Dänisch (Dänemark)",[i.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[i.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[i.GERMAN_GERMANY]:"Deutsch (Deutschland)",[i.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[i.DIVEHI_MALDIVES]:"Divehi (Malediven)",[i.GREEK_GREECE]:"Griechisch (Griechenland)",[i.ENGLISH_AUSTRALIA]:"Englisch (Australien)",[i.ENGLISH_BELIZE]:"Englisch (Belize)",[i.ENGLISH_CANADA]:"Englisch (Kanada)",[i.ENGLISH_CARIBBEAN]:"Englisch (Karibik)",[i.ENGLISH_UNITED_KINGDOM]:"Englisch (Vereinigtes Königreich)",[i.ENGLISH_IRELAND]:"Englisch (Irland)",[i.ENGLISH_JAMAICA]:"Englisch (Jamaika)",[i.ENGLISH_NEW_ZEALAND]:"Englisch (Neuseeland)",[i.ENGLISH_PHILIPPINES]:"Englisch (Philippinen)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Englisch (Trinidad und Tobago)",[i.ENGLISH_UNITED_STATES]:"Englisch (Vereinigte Staaten)",[i.ENGLISH_SOUTH_AFRICA]:"Englisch (Südafrika)",[i.ENGLISH_ZIMBABWE]:"Englisch (Simbabwe)",[i.SPANISH_ARGENTINA]:"Spanisch (Argentinien)",[i.SPANISH_BOLIVIA]:"Spanisch (Bolivien)",[i.SPANISH_CHILE]:"Spanisch (Chile)",[i.SPANISH_COLOMBIA]:"Spanisch (Kolumbien)",[i.SPANISH_COSTA_RICA]:"Spanisch (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spanisch (Dominikanische Republik)",[i.SPANISH_ECUADOR]:"Spanisch (Ecuador)",[i.SPANISH_SPAIN]:"Spanisch (Spanien)",[i.SPANISH_GUATEMALA]:"Spanisch (Guatemala)",[i.SPANISH_HONDURAS]:"Spanisch (Honduras)",[i.SPANISH_MEXICO]:"Spanisch (Mexiko)",[i.SPANISH_NICARAGUA]:"Spanisch (Nicaragua)",[i.SPANISH_PANAMA]:"Spanisch (Panama)",[i.SPANISH_PERU]:"Spanisch (Peru)",[i.SPANISH_PUERTO_RICO]:"Spanisch (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Spanisch (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spanisch (El Salvador)",[i.SPANISH_URUGUAY]:"Spanisch (Uruguay)",[i.SPANISH_VENEZUELA]:"Spanisch (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estnisch (Estland)",[i.BASQUE_SPAIN]:"Baskisch (Spanien)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnisch (Finnland)",[i.FAROESE_FAROE_ISLANDS]:"Färöisch (Färöer)",[i.FRENCH_BELGIUM]:"Französisch (Belgien)",[i.FRENCH_CANADA]:"Französisch (Kanada)",[i.FRENCH_SWITZERLAND]:"Französisch (Schweiz)",[i.FRENCH_FRANCE]:"Französisch (Frankreich)",[i.FRENCH_LUXEMBOURG]:"Französisch (Luxemburg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Französisch (Fürstentum Monaco)",[i.GALICIAN_SPAIN]:"Galicisch (Spanien)",[i.GUJARATI_INDIA]:"Gujarati (Indien)",[i.HEBREW_ISRAEL]:"Hebräisch (Israel)",[i.HINDI_INDIA]:"Hindi (Indien)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Kroatisch (Bosnien und Herzegowina)",[i.CROATIAN_CROATIA]:"Kroatisch (Kroatien)",[i.HUNGARIAN_HUNGARY]:"Ungarisch (Ungarn)",[i.ARMENIAN_ARMENIA]:"Armenisch (Armenien)",[i.INDONESIAN_INDONESIA]:"Indonesisch (Indonesien)",[i.ICELANDIC_ICELAND]:"Isländisch (Island)",[i.ITALIAN_SWITZERLAND]:"Italienisch (Schweiz)",[i.ITALIAN_ITALY]:"Italienisch (Italien)",[i.JAPANESE_JAPAN]:"Japanisch (Japan)",[i.GEORGIAN_GEORGIA]:"Georgisch (Georgien)",[i.KAZAKH_KAZAKHSTAN]:"Kasachisch (Kasachstan)",[i.KANNADA_INDIA]:"Kannada (Indien)",[i.KOREAN_KOREA]:"Koreanisch (Korea)",[i.KONKANI_INDIA]:"Konkani (Indien)",[i.KYRGYZ_KYRGYZSTAN]:"Kirgisisch (Kirgisistan)",[i.LITHUANIAN_LITHUANIA]:"Litauisch (Litauen)",[i.LATVIAN_LATVIA]:"Lettisch (Lettland)",[i.MAORI_NEW_ZEALAND]:"Maori (Neuseeland)",[i.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Mazedonisch (Mazedonien)",[i.MONGOLIAN_MONGOLIA]:"Mongolisch (Mongolei)",[i.MARATHI_INDIA]:"Marathi (Indien)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malaiisch (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malaiisch (Malaysia)",[i.MALTESE_MALTA]:"Maltisch (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norwegisch Bokmål (Norwegen)",[i.DUTCH_BELGIUM]:"Niederländisch (Belgien)",[i.DUTCH_NETHERLANDS]:"Niederländisch (Niederlande)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norwegisch Nynorsk (Norwegen)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho (Nord) (Südafrika)",[i.PUNJABI_INDIA]:"Punjabi (Indien)",[i.POLISH_POLAND]:"Polnisch (Polen)",[i.PASHTO_AFGHANISTAN]:"Paschtu (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portugiesisch (Brasilien)",[i.PORTUGUESE_PORTUGAL]:"Portugiesisch (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivien)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Peru)",[i.ROMANIAN_ROMANIA]:"Rumänisch (Rumänien)",[i.RUSSIAN_RUSSIA]:"Russisch (Russland)",[i.SANSKRIT_INDIA]:"Sanskrit (Indien)",[i.SAMI_NORTHERN_FINLAND]:"Sami (Nord) (Finnland)",[i.SAMI_NORTHERN_NORWAY]:"Sami (Nord) (Norwegen)",[i.SAMI_NORTHERN_SWEDEN]:"Sami (Nord) (Schweden)",[i.SLOVAK_SLOVAKIA]:"Slowakisch (Slowakei)",[i.SLOVENIAN_SLOVENIA]:"Slowenisch (Slowenien)",[i.ALBANIAN_ALBANIA]:"Albanisch (Albanien)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbisch Latein (Bosnien und Herzegowina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbisch Latein (Serbien und Montenegro)",[i.SWAHILI_KENYA]:"Suaheli (Kenia)",[i.SYRIAC_SYRIA]:"Syrisch (Syrien)",[i.TAMIL_INDIA]:"Tamilisch (Indien)",[i.TELUGU_INDIA]:"Telugu (Indien)",[i.THAI_THAILAND]:"Thailändisch (Thailand)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippinen)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Südafrika)",[i.TURKISH_TURKEY]:"Türkisch (Türkei)",[i.TATAR_RUSSIA]:"Tatarisch (Russland)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainisch (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamische Republik Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Usbekisch Latein (Usbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamesisch (Vietnamesisches Reich)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Südafrika)",[i.CHINESE_HONG_KONG]:"Chinesisch (Hongkong)",[i.CHINESE_MACAU]:"Chinesisch (Macao)",[i.CHINESE_SINGAPORE]:"Chinesisch (Singapur)",[i.ZULU_SOUTH_AFRICA]:"Zulu (Südafrika)"},wn={[i.ENGLISH]:"English",[i.FRENCH]:"French",[i.SPANISH]:"Spanish",[i.PORTUGUESE]:"Portuguese",[i.GERMAN]:"German",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabic",[i.AZERI_LATIN]:"Azeri Latin",[i.BELARUSIAN]:"Belarusian",[i.BULGARIAN]:"Bulgarian",[i.BOSNIAN]:"Bosnian",[i.CATALAN]:"Catalan",[i.CZECH]:"Czech",[i.WELSH]:"Welsh",[i.DANISH]:"Danish",[i.DIVEHI]:"Divehi",[i.GREEK]:"Greek",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estonian",[i.BASQUE]:"Basque",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnish",[i.FAROESE]:"Faroese",[i.GALICIAN]:"Galician",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebrew",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croatian",[i.HUNGARIAN]:"Hungarian",[i.ARMENIAN]:"Armenian",[i.INDONESIAN]:"Indonesian",[i.ICELANDIC]:"Icelandic",[i.ITALIAN]:"Italian",[i.JAPANESE]:"Japanese",[i.GEORGIAN]:"Georgian",[i.KAZAKH]:"Kazakh",[i.KANNADA]:"Kannada",[i.KOREAN]:"Korean",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kyrgyz",[i.LITHUANIAN]:"Lithuanian",[i.LATVIAN]:"Latvian",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"FYRO Macedonian",[i.MONGOLIAN]:"Mongolian",[i.MARATHI]:"Marathi",[i.MALAY]:"Malay",[i.MALTESE]:"Maltese",[i.NORWEGIAN_BOKMAL]:"Norwegian Bokmål",[i.DUTCH]:"Dutch",[i.NORTHERN_SOTHO]:"Northern Sotho",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polish",[i.PASHTO]:"Pashto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Romanian",[i.RUSSIAN]:"Russian",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami Northern",[i.SLOVAK]:"Slovak",[i.SLOVENIAN]:"Slovenian",[i.ALBANIAN]:"Albanian",[i.SERBIAN_LATIN]:"Serbian Latin",[i.SWEDISH]:"Swedish",[i.SWEDISH_FINLAND]:"Swedish (Finland)",[i.SWEDISH_SWEDEN]:"Swedish (Sweden)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Syriac",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Thai",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turkish",[i.TATAR]:"Tatar",[i.UKRAINIAN]:"Ukrainian",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbek Latin",[i.VIETNAMESE]:"Vietnamese",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinese",[i.CHINESE_SIMPLIFIED]:"Chinese Simplified",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinese Simplified (China)",[i.CHINESE_TRADITIONAL]:"Chinese Traditional",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (South Africa)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabic (United Arab Emirates)",[i.ARABIC_BAHRAIN]:"Arabic (Bahrain)",[i.ARABIC_ALGERIA]:"Arabic (Algeria)",[i.ARABIC_EGYPT]:"Arabic (Egypt)",[i.ARABIC_IRAQ]:"Arabic (Iraq)",[i.ARABIC_JORDAN]:"Arabic (Jordan)",[i.ARABIC_KUWAIT]:"Arabic (Kuwait)",[i.ARABIC_LEBANON]:"Arabic (Lebanon)",[i.ARABIC_LIBYA]:"Arabic (Libya)",[i.ARABIC_MOROCCO]:"Arabic (Morocco)",[i.ARABIC_OMAN]:"Arabic (Oman)",[i.ARABIC_QATAR]:"Arabic (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabic (Saudi Arabia)",[i.ARABIC_SYRIA]:"Arabic (Syria)",[i.ARABIC_TUNISIA]:"Arabic (Tunisia)",[i.ARABIC_YEMEN]:"Arabic (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azeri Latin (Azerbaijan)",[i.BELARUSIAN_BELARUS]:"Belarusian (Belarus)",[i.BULGARIAN_BULGARIA]:"Bulgarian (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnian (Bosnia and Herzegovina)",[i.CATALAN_SPAIN]:"Catalan (Spain)",[i.CZECH_CZECH_REPUBLIC]:"Czech (Czech Republic)",[i.WELSH_UNITED_KINGDOM]:"Welsh (United Kingdom)",[i.DANISH_DENMARK]:"Danish (Denmark)",[i.GERMAN_AUSTRIA]:"German (Austria)",[i.GERMAN_SWITZERLAND]:"German (Switzerland)",[i.GERMAN_GERMANY]:"German (Germany)",[i.GERMAN_LIECHTENSTEIN]:"German (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"German (Luxembourg)",[i.DIVEHI_MALDIVES]:"Divehi (Maldives)",[i.GREEK_GREECE]:"Greek (Greece)",[i.ENGLISH_AUSTRALIA]:"English (Australia)",[i.ENGLISH_BELIZE]:"English (Belize)",[i.ENGLISH_CANADA]:"English (Canada)",[i.ENGLISH_CARIBBEAN]:"English (Caribbean)",[i.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[i.ENGLISH_IRELAND]:"English (Ireland)",[i.ENGLISH_JAMAICA]:"English (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[i.ENGLISH_PHILIPPINES]:"English (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[i.ENGLISH_UNITED_STATES]:"English (United States)",[i.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[i.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Spanish (Argentina)",[i.SPANISH_BOLIVIA]:"Spanish (Bolivia)",[i.SPANISH_CHILE]:"Spanish (Chile)",[i.SPANISH_COLOMBIA]:"Spanish (Colombia)",[i.SPANISH_COSTA_RICA]:"Spanish (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spanish (Dominican Republic)",[i.SPANISH_ECUADOR]:"Spanish (Ecuador)",[i.SPANISH_SPAIN]:"Spanish (Spain)",[i.SPANISH_GUATEMALA]:"Spanish (Guatemala)",[i.SPANISH_HONDURAS]:"Spanish (Honduras)",[i.SPANISH_MEXICO]:"Spanish (Mexico)",[i.SPANISH_NICARAGUA]:"Spanish (Nicaragua)",[i.SPANISH_PANAMA]:"Spanish (Panama)",[i.SPANISH_PERU]:"Spanish (Peru)",[i.SPANISH_PUERTO_RICO]:"Spanish (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Spanish (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spanish (El Salvador)",[i.SPANISH_URUGUAY]:"Spanish (Uruguay)",[i.SPANISH_VENEZUELA]:"Spanish (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonian (Estonia)",[i.BASQUE_SPAIN]:"Basque (Spain)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnish (Finland)",[i.FAROESE_FAROE_ISLANDS]:"Faroese (Faroe Islands)",[i.FRENCH_BELGIUM]:"French (Belgium)",[i.FRENCH_CANADA]:"French (Canada)",[i.FRENCH_SWITZERLAND]:"French (Switzerland)",[i.FRENCH_FRANCE]:"French (France)",[i.FRENCH_LUXEMBOURG]:"French (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"French (Principality of Monaco)",[i.GALICIAN_SPAIN]:"Galician (Spain)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Hebrew (Israel)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croatian (Bosnia and Herzegovina)",[i.CROATIAN_CROATIA]:"Croatian (Croatia)",[i.HUNGARIAN_HUNGARY]:"Hungarian (Hungary)",[i.ARMENIAN_ARMENIA]:"Armenian (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesian (Indonesia)",[i.ICELANDIC_ICELAND]:"Icelandic (Iceland)",[i.ITALIAN_SWITZERLAND]:"Italian (Switzerland)",[i.ITALIAN_ITALY]:"Italian (Italy)",[i.JAPANESE_JAPAN]:"Japanese (Japan)",[i.GEORGIAN_GEORGIA]:"Georgian (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Korean (Korea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kyrgyz (Kyrgyzstan)",[i.LITHUANIAN_LITHUANIA]:"Lithuanian (Lithuania)",[i.LATVIAN_LATVIA]:"Latvian (Latvia)",[i.MAORI_NEW_ZEALAND]:"Maori (New Zealand)",[i.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Macedonian (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongolian (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malay (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malay (Malaysia)",[i.MALTESE_MALTA]:"Maltese (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norwegian Bokmål (Norway)",[i.DUTCH_BELGIUM]:"Dutch (Belgium)",[i.DUTCH_NETHERLANDS]:"Dutch (Netherlands)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norwegian Nynorsk (Norway)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Northern Sotho (South Africa)",[i.PUNJABI_INDIA]:"Punjabi (India)",[i.POLISH_POLAND]:"Polish (Poland)",[i.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portuguese (Brazil)",[i.PORTUGUESE_PORTUGAL]:"Portuguese (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Peru)",[i.ROMANIAN_ROMANIA]:"Romanian (Romania)",[i.RUSSIAN_RUSSIA]:"Russian (Russia)",[i.SANSKRIT_INDIA]:"Sanskrit (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami Northern (Finland)",[i.SAMI_NORTHERN_NORWAY]:"Sami Northern (Norway)",[i.SAMI_NORTHERN_SWEDEN]:"Sami Northern (Sweden)",[i.SLOVAK_SLOVAKIA]:"Slovak (Slovakia)",[i.SLOVENIAN_SLOVENIA]:"Slovenian (Slovenia)",[i.ALBANIAN_ALBANIA]:"Albanian (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbian Latin (Bosnia and Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbian Latin (Serbia and Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Syriac (Syria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Thai (Thailand)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (South Africa)",[i.TURKISH_TURKEY]:"Turkish (Turkey)",[i.TATAR_RUSSIA]:"Tatar (Russia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainian (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamic Republic of Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbek Latin (Uzbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamese (Viet Nam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (South Africa)",[i.CHINESE_HONG_KONG]:"Chinese (Hong Kong)",[i.CHINESE_MACAU]:"Chinese (Macau)",[i.CHINESE_SINGAPORE]:"Chinese (Singapore)",[i.ZULU_SOUTH_AFRICA]:"Zulu (South Africa)"},Kt={[i.ENGLISH]:"Inglés",[i.FRENCH]:"Francés",[i.SPANISH]:"Español",[i.PORTUGUESE]:"Portugués",[i.GERMAN]:"Alemán",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Árabe",[i.AZERI_LATIN]:"Azerí Latín",[i.BELARUSIAN]:"Bielorruso",[i.BULGARIAN]:"Búlgaro",[i.BOSNIAN]:"Bosnio",[i.CATALAN]:"Catalán",[i.CZECH]:"Checo",[i.WELSH]:"Galés",[i.DANISH]:"Danés",[i.DIVEHI]:"Divehi",[i.GREEK]:"Griego",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estonio",[i.BASQUE]:"Vasco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finés",[i.FAROESE]:"Feroés",[i.GALICIAN]:"Gallego",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebreo",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croata",[i.HUNGARIAN]:"Húngaro",[i.ARMENIAN]:"Armenio",[i.INDONESIAN]:"Indonesio",[i.ICELANDIC]:"Islandés",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Japonés",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Kazajo",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirguís",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Letón",[i.MAORI]:"Maorí",[i.FYRO_MACEDONIAN]:"Macedonio FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malayo",[i.MALTESE]:"Maltés",[i.NORWEGIAN_BOKMAL]:"Noruego Bokmål",[i.DUTCH]:"Neerlandés",[i.NORTHERN_SOTHO]:"Sotho del Norte",[i.PUNJABI]:"Panyabí",[i.POLISH]:"Polaco",[i.PASHTO]:"Pastún",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumano",[i.RUSSIAN]:"Ruso",[i.SANSKRIT]:"Sánscrito",[i.SAMI_NORTHERN]:"Sami del Norte",[i.SLOVAK]:"Eslovaco",[i.SLOVENIAN]:"Esloveno",[i.ALBANIAN]:"Albanés",[i.SERBIAN_LATIN]:"Serbio Latín",[i.SWEDISH]:"Sueco",[i.SWEDISH_FINLAND]:"Sueco (Finlandia)",[i.SWEDISH_SWEDEN]:"Sueco (Suecia)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Siríaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Tailandés",[i.TAGALOG]:"Tagalo",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tártaro",[i.UKRAINIAN]:"Ucraniano",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeco Latín",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chino",[i.CHINESE_SIMPLIFIED]:"Chino Simplificado",[i.CHINESE_SIMPLIFIED_CHINA]:"Chino Simplificado (China)",[i.CHINESE_TRADITIONAL]:"Chino Tradicional",[i.ZULU]:"Zulú",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudáfrica)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emiratos Árabes Unidos)",[i.ARABIC_BAHRAIN]:"Árabe (Baréin)",[i.ARABIC_ALGERIA]:"Árabe (Argelia)",[i.ARABIC_EGYPT]:"Árabe (Egipto)",[i.ARABIC_IRAQ]:"Árabe (Irak)",[i.ARABIC_JORDAN]:"Árabe (Jordania)",[i.ARABIC_KUWAIT]:"Árabe (Kuwait)",[i.ARABIC_LEBANON]:"Árabe (Líbano)",[i.ARABIC_LIBYA]:"Árabe (Libia)",[i.ARABIC_MOROCCO]:"Árabe (Marruecos)",[i.ARABIC_OMAN]:"Árabe (Omán)",[i.ARABIC_QATAR]:"Árabe (Catar)",[i.ARABIC_SAUDI_ARABIA]:"Árabe (Arabia Saudita)",[i.ARABIC_SYRIA]:"Árabe (Siria)",[i.ARABIC_TUNISIA]:"Árabe (Túnez)",[i.ARABIC_YEMEN]:"Árabe (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azerí Latín (Azerbaiyán)",[i.BELARUSIAN_BELARUS]:"Bielorruso (Bielorrusia)",[i.BULGARIAN_BULGARIA]:"Búlgaro (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnio (Bosnia y Herzegovina)",[i.CATALAN_SPAIN]:"Catalán (España)",[i.CZECH_CZECH_REPUBLIC]:"Checo (República Checa)",[i.WELSH_UNITED_KINGDOM]:"Galés (Reino Unido)",[i.DANISH_DENMARK]:"Danés (Dinamarca)",[i.GERMAN_AUSTRIA]:"Alemán (Austria)",[i.GERMAN_SWITZERLAND]:"Alemán (Suiza)",[i.GERMAN_GERMANY]:"Alemán (Alemania)",[i.GERMAN_LIECHTENSTEIN]:"Alemán (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Alemán (Luxemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[i.GREEK_GREECE]:"Griego (Grecia)",[i.ENGLISH_AUSTRALIA]:"Inglés (Australia)",[i.ENGLISH_BELIZE]:"Inglés (Belice)",[i.ENGLISH_CANADA]:"Inglés (Canadá)",[i.ENGLISH_CARIBBEAN]:"Inglés (Caribe)",[i.ENGLISH_UNITED_KINGDOM]:"Inglés (Reino Unido)",[i.ENGLISH_IRELAND]:"Inglés (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglés (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglés (Nueva Zelanda)",[i.ENGLISH_PHILIPPINES]:"Inglés (Filipinas)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglés (Trinidad y Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglés (Estados Unidos)",[i.ENGLISH_SOUTH_AFRICA]:"Inglés (Sudáfrica)",[i.ENGLISH_ZIMBABWE]:"Inglés (Zimbabue)",[i.SPANISH_ARGENTINA]:"Español (Argentina)",[i.SPANISH_BOLIVIA]:"Español (Bolivia)",[i.SPANISH_CHILE]:"Español (Chile)",[i.SPANISH_COLOMBIA]:"Español (Colombia)",[i.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[i.SPANISH_ECUADOR]:"Español (Ecuador)",[i.SPANISH_SPAIN]:"Español (España)",[i.SPANISH_GUATEMALA]:"Español (Guatemala)",[i.SPANISH_HONDURAS]:"Español (Honduras)",[i.SPANISH_MEXICO]:"Español (México)",[i.SPANISH_NICARAGUA]:"Español (Nicaragua)",[i.SPANISH_PANAMA]:"Español (Panamá)",[i.SPANISH_PERU]:"Español (Perú)",[i.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Español (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[i.SPANISH_URUGUAY]:"Español (Uruguay)",[i.SPANISH_VENEZUELA]:"Español (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonio (Estonia)",[i.BASQUE_SPAIN]:"Vasco (España)",[i.FARSI_IRAN]:"Farsi (Irán)",[i.FINNISH_FINLAND]:"Finés (Finlandia)",[i.FAROESE_FAROE_ISLANDS]:"Feroés (Islas Feroe)",[i.FRENCH_BELGIUM]:"Francés (Bélgica)",[i.FRENCH_CANADA]:"Francés (Canadá)",[i.FRENCH_SWITZERLAND]:"Francés (Suiza)",[i.FRENCH_FRANCE]:"Francés (Francia)",[i.FRENCH_LUXEMBOURG]:"Francés (Luxemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francés (Principado de Mónaco)",[i.GALICIAN_SPAIN]:"Gallego (España)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Hebreo (Israel)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bosnia y Herzegovina)",[i.CROATIAN_CROATIA]:"Croata (Croacia)",[i.HUNGARIAN_HUNGARY]:"Húngaro (Hungría)",[i.ARMENIAN_ARMENIA]:"Armenio (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesio (Indonesia)",[i.ICELANDIC_ICELAND]:"Islandés (Islandia)",[i.ITALIAN_SWITZERLAND]:"Italiano (Suiza)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"Japonés (Japón)",[i.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazajo (Kazajistán)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Coreano (Corea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kirguís (Kirguistán)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[i.LATVIAN_LATVIA]:"Letón (Letonia)",[i.MAORI_NEW_ZEALAND]:"Maorí (Nueva Zelanda)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedonio FYRO (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malayo (Brunéi Darussalam)",[i.MALAY_MALAYSIA]:"Malayo (Malasia)",[i.MALTESE_MALTA]:"Maltés (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Noruego Bokmål (Noruega)",[i.DUTCH_BELGIUM]:"Neerlandés (Bélgica)",[i.DUTCH_NETHERLANDS]:"Neerlandés (Países Bajos)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Noruego Nynorsk (Noruega)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Norte (Sudáfrica)",[i.PUNJABI_INDIA]:"Panyabí (India)",[i.POLISH_POLAND]:"Polaco (Polonia)",[i.PASHTO_AFGHANISTAN]:"Pastún (Afganistán)",[i.PORTUGUESE_BRAZIL]:"Portugués (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Portugués (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Perú)",[i.ROMANIAN_ROMANIA]:"Rumano (Rumania)",[i.RUSSIAN_RUSSIA]:"Ruso (Rusia)",[i.SANSKRIT_INDIA]:"Sánscrito (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami del Norte (Finlandia)",[i.SAMI_NORTHERN_NORWAY]:"Sami del Norte (Noruega)",[i.SAMI_NORTHERN_SWEDEN]:"Sami del Norte (Suecia)",[i.SLOVAK_SLOVAKIA]:"Eslovaco (Eslovaquia)",[i.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovenia)",[i.ALBANIAN_ALBANIA]:"Albanés (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbio Latín (Bosnia y Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbio Latín (Serbia y Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenia)",[i.SYRIAC_SYRIA]:"Siríaco (Siria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Tailandés (Tailandia)",[i.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Sudáfrica)",[i.TURKISH_TURKEY]:"Turco (Turquía)",[i.TATAR_RUSSIA]:"Tártaro (Rusia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrania)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islámica de Pakistán)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latín (Uzbekistán)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudáfrica)",[i.CHINESE_HONG_KONG]:"Chino (Hong Kong)",[i.CHINESE_MACAU]:"Chino (Macao)",[i.CHINESE_SINGAPORE]:"Chino (Singapur)",[i.ZULU_SOUTH_AFRICA]:"Zulú (Sudáfrica)"},da={[i.ENGLISH]:"Anglais",[i.FRENCH]:"Français",[i.SPANISH]:"Espagnol",[i.PORTUGUESE]:"Portugais",[i.GERMAN]:"Allemand",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabe",[i.AZERI_LATIN]:"Azéri Latin",[i.BELARUSIAN]:"Biélorusse",[i.BULGARIAN]:"Bulgare",[i.BOSNIAN]:"Bosniaque",[i.CATALAN]:"Catalan",[i.CZECH]:"Tchèque",[i.WELSH]:"Gallois",[i.DANISH]:"Danois",[i.DIVEHI]:"Divehi",[i.GREEK]:"Grec",[i.ESPERANTO]:"Espéranto",[i.ESTONIAN]:"Estonien",[i.BASQUE]:"Basque",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnois",[i.FAROESE]:"Féroïen",[i.GALICIAN]:"Galicien",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hébreu",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croate",[i.HUNGARIAN]:"Hongrois",[i.ARMENIAN]:"Arménien",[i.INDONESIAN]:"Indonésien",[i.ICELANDIC]:"Islandais",[i.ITALIAN]:"Italien",[i.JAPANESE]:"Japonais",[i.GEORGIAN]:"Géorgien",[i.KAZAKH]:"Kazakh",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coréen",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirghize",[i.LITHUANIAN]:"Lituanien",[i.LATVIAN]:"Letton",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macédonien FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malais",[i.MALTESE]:"Maltais",[i.NORWEGIAN_BOKMAL]:"Norvégien Bokmål",[i.DUTCH]:"Néerlandais",[i.NORTHERN_SOTHO]:"Sotho du Nord",[i.PUNJABI]:"Pendjabi",[i.POLISH]:"Polonais",[i.PASHTO]:"Pachto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Roumain",[i.RUSSIAN]:"Russe",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami du Nord",[i.SLOVAK]:"Slovaque",[i.SLOVENIAN]:"Slovène",[i.ALBANIAN]:"Albanais",[i.SERBIAN_LATIN]:"Serbe Latin",[i.SWEDISH]:"Suédois",[i.SWEDISH_FINLAND]:"Suédois (Finlande)",[i.SWEDISH_SWEDEN]:"Suédois (Suède)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Syriaque",[i.TAMIL]:"Tamoul",[i.TELUGU]:"Télougou",[i.THAI]:"Thaï",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turc",[i.TATAR]:"Tatar",[i.UKRAINIAN]:"Ukrainien",[i.URDU]:"Ourdou",[i.UZBEK_LATIN]:"Ouzbek Latin",[i.VIETNAMESE]:"Vietnamien",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinois",[i.CHINESE_SIMPLIFIED]:"Chinois Simplifié",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinois Simplifié (Chine)",[i.CHINESE_TRADITIONAL]:"Chinois Traditionnel",[i.ZULU]:"Zoulou",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Afrique du Sud)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabe (Émirats Arabes Unis)",[i.ARABIC_BAHRAIN]:"Arabe (Bahreïn)",[i.ARABIC_ALGERIA]:"Arabe (Algérie)",[i.ARABIC_EGYPT]:"Arabe (Égypte)",[i.ARABIC_IRAQ]:"Arabe (Irak)",[i.ARABIC_JORDAN]:"Arabe (Jordanie)",[i.ARABIC_KUWAIT]:"Arabe (Koweït)",[i.ARABIC_LEBANON]:"Arabe (Liban)",[i.ARABIC_LIBYA]:"Arabe (Libye)",[i.ARABIC_MOROCCO]:"Arabe (Maroc)",[i.ARABIC_OMAN]:"Arabe (Oman)",[i.ARABIC_QATAR]:"Arabe (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabe (Arabie Saoudite)",[i.ARABIC_SYRIA]:"Arabe (Syrie)",[i.ARABIC_TUNISIA]:"Arabe (Tunisie)",[i.ARABIC_YEMEN]:"Arabe (Yémen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azéri Latin (Azerbaïdjan)",[i.BELARUSIAN_BELARUS]:"Biélorusse (Biélorussie)",[i.BULGARIAN_BULGARIA]:"Bulgare (Bulgarie)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaque (Bosnie-Herzégovine)",[i.CATALAN_SPAIN]:"Catalan (Espagne)",[i.CZECH_CZECH_REPUBLIC]:"Tchèque (République Tchèque)",[i.WELSH_UNITED_KINGDOM]:"Gallois (Royaume-Uni)",[i.DANISH_DENMARK]:"Danois (Danemark)",[i.GERMAN_AUSTRIA]:"Allemand (Autriche)",[i.GERMAN_SWITZERLAND]:"Allemand (Suisse)",[i.GERMAN_GERMANY]:"Allemand (Allemagne)",[i.GERMAN_LIECHTENSTEIN]:"Allemand (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Allemand (Luxembourg)",[i.DIVEHI_MALDIVES]:"Divehi (Maldives)",[i.GREEK_GREECE]:"Grec (Grèce)",[i.ENGLISH_AUSTRALIA]:"Anglais (Australie)",[i.ENGLISH_BELIZE]:"Anglais (Belize)",[i.ENGLISH_CANADA]:"Anglais (Canada)",[i.ENGLISH_CARIBBEAN]:"Anglais (Caraïbes)",[i.ENGLISH_UNITED_KINGDOM]:"Anglais (Royaume-Uni)",[i.ENGLISH_IRELAND]:"Anglais (Irlande)",[i.ENGLISH_JAMAICA]:"Anglais (Jamaïque)",[i.ENGLISH_NEW_ZEALAND]:"Anglais (Nouvelle-Zélande)",[i.ENGLISH_PHILIPPINES]:"Anglais (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Anglais (Trinité-et-Tobago)",[i.ENGLISH_UNITED_STATES]:"Anglais (États-Unis)",[i.ENGLISH_SOUTH_AFRICA]:"Anglais (Afrique du Sud)",[i.ENGLISH_ZIMBABWE]:"Anglais (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Espagnol (Argentine)",[i.SPANISH_BOLIVIA]:"Espagnol (Bolivie)",[i.SPANISH_CHILE]:"Espagnol (Chili)",[i.SPANISH_COLOMBIA]:"Espagnol (Colombie)",[i.SPANISH_COSTA_RICA]:"Espagnol (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Espagnol (République Dominicaine)",[i.SPANISH_ECUADOR]:"Espagnol (Équateur)",[i.SPANISH_SPAIN]:"Espagnol (Espagne)",[i.SPANISH_GUATEMALA]:"Espagnol (Guatemala)",[i.SPANISH_HONDURAS]:"Espagnol (Honduras)",[i.SPANISH_MEXICO]:"Espagnol (Mexique)",[i.SPANISH_NICARAGUA]:"Espagnol (Nicaragua)",[i.SPANISH_PANAMA]:"Espagnol (Panama)",[i.SPANISH_PERU]:"Espagnol (Pérou)",[i.SPANISH_PUERTO_RICO]:"Espagnol (Porto Rico)",[i.SPANISH_PARAGUAY]:"Espagnol (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Espagnol (El Salvador)",[i.SPANISH_URUGUAY]:"Espagnol (Uruguay)",[i.SPANISH_VENEZUELA]:"Espagnol (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonien (Estonie)",[i.BASQUE_SPAIN]:"Basque (Espagne)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnois (Finlande)",[i.FAROESE_FAROE_ISLANDS]:"Féroïen (Îles Féroé)",[i.FRENCH_BELGIUM]:"Français (Belgique)",[i.FRENCH_CANADA]:"Français (Canada)",[i.FRENCH_SWITZERLAND]:"Français (Suisse)",[i.FRENCH_FRANCE]:"Français (France)",[i.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Principauté de Monaco)",[i.GALICIAN_SPAIN]:"Galicien (Espagne)",[i.GUJARATI_INDIA]:"Gujarati (Inde)",[i.HEBREW_ISRAEL]:"Hébreu (Israël)",[i.HINDI_INDIA]:"Hindi (Inde)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croate (Bosnie-Herzégovine)",[i.CROATIAN_CROATIA]:"Croate (Croatie)",[i.HUNGARIAN_HUNGARY]:"Hongrois (Hongrie)",[i.ARMENIAN_ARMENIA]:"Arménien (Arménie)",[i.INDONESIAN_INDONESIA]:"Indonésien (Indonésie)",[i.ICELANDIC_ICELAND]:"Islandais (Islande)",[i.ITALIAN_SWITZERLAND]:"Italien (Suisse)",[i.ITALIAN_ITALY]:"Italien (Italie)",[i.JAPANESE_JAPAN]:"Japonais (Japon)",[i.GEORGIAN_GEORGIA]:"Géorgien (Géorgie)",[i.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[i.KANNADA_INDIA]:"Kannada (Inde)",[i.KOREAN_KOREA]:"Coréen (Corée)",[i.KONKANI_INDIA]:"Konkani (Inde)",[i.KYRGYZ_KYRGYZSTAN]:"Kirghize (Kirghizistan)",[i.LITHUANIAN_LITHUANIA]:"Lituanien (Lituanie)",[i.LATVIAN_LATVIA]:"Letton (Lettonie)",[i.MAORI_NEW_ZEALAND]:"Maori (Nouvelle-Zélande)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macédonien FYRO (Macédoine)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongolie)",[i.MARATHI_INDIA]:"Marathi (Inde)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malais (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malais (Malaisie)",[i.MALTESE_MALTA]:"Maltais (Malte)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norvégien Bokmål (Norvège)",[i.DUTCH_BELGIUM]:"Néerlandais (Belgique)",[i.DUTCH_NETHERLANDS]:"Néerlandais (Pays-Bas)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norvégien Nynorsk (Norvège)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho du Nord (Afrique du Sud)",[i.PUNJABI_INDIA]:"Pendjabi (Inde)",[i.POLISH_POLAND]:"Polonais (Pologne)",[i.PASHTO_AFGHANISTAN]:"Pachto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portugais (Brésil)",[i.PORTUGUESE_PORTUGAL]:"Portugais (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivie)",[i.QUECHUA_ECUADOR]:"Quechua (Équateur)",[i.QUECHUA_PERU]:"Quechua (Pérou)",[i.ROMANIAN_ROMANIA]:"Roumain (Roumanie)",[i.RUSSIAN_RUSSIA]:"Russe (Russie)",[i.SANSKRIT_INDIA]:"Sanskrit (Inde)",[i.SAMI_NORTHERN_FINLAND]:"Sami du Nord (Finlande)",[i.SAMI_NORTHERN_NORWAY]:"Sami du Nord (Norvège)",[i.SAMI_NORTHERN_SWEDEN]:"Sami du Nord (Suède)",[i.SLOVAK_SLOVAKIA]:"Slovaque (Slovaquie)",[i.SLOVENIAN_SLOVENIA]:"Slovène (Slovénie)",[i.ALBANIAN_ALBANIA]:"Albanais (Albanie)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbe Latin (Bosnie-Herzégovine)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbe Latin (Serbie et Monténégro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Syriaque (Syrie)",[i.TAMIL_INDIA]:"Tamoul (Inde)",[i.TELUGU_INDIA]:"Télougou (Inde)",[i.THAI_THAILAND]:"Thaï (Thaïlande)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Afrique du Sud)",[i.TURKISH_TURKEY]:"Turc (Turquie)",[i.TATAR_RUSSIA]:"Tatar (Russie)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainien (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Ourdou (République Islamique du Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Ouzbek Latin (Ouzbékistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamien (Viêt Nam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Afrique du Sud)",[i.CHINESE_HONG_KONG]:"Chinois (Hong Kong)",[i.CHINESE_MACAU]:"Chinois (Macao)",[i.CHINESE_SINGAPORE]:"Chinois (Singapour)",[i.ZULU_SOUTH_AFRICA]:"Zoulou (Afrique du Sud)"},Kw={[i.ENGLISH]:"अंग्रेज़ी",[i.FRENCH]:"फ़्रेंच",[i.SPANISH]:"स्पेनिश",[i.PORTUGUESE]:"पुर्तगाली",[i.GERMAN]:"जर्मन",[i.AFRIKAANS]:"आफ्रिकान्स",[i.ARABIC]:"अरबी",[i.AZERI_LATIN]:"अज़रबैजानी (लैटिन)",[i.BELARUSIAN]:"बेलारूसी",[i.BULGARIAN]:"बुल्गारियाई",[i.BOSNIAN]:"बोस्नियाई",[i.CATALAN]:"कातालान",[i.CZECH]:"चेक",[i.WELSH]:"वेल्श",[i.DANISH]:"डेनिश",[i.DIVEHI]:"डिवेही",[i.GREEK]:"यूनानी",[i.ESPERANTO]:"एस्पेरांतो",[i.ESTONIAN]:"एस्टोनियाई",[i.BASQUE]:"बास्क",[i.FARSI]:"फ़ारसी",[i.FINNISH]:"फिनिश",[i.FAROESE]:"फ़ेरोश",[i.GALICIAN]:"गैलिशियन",[i.GUJARATI]:"गुजराती",[i.HEBREW]:"हिब्रू",[i.HINDI]:"हिंदी",[i.CROATIAN]:"क्रोएशियाई",[i.HUNGARIAN]:"हंगेरियाई",[i.ARMENIAN]:"आर्मेनियाई",[i.INDONESIAN]:"इंडोनेशियाई",[i.ICELANDIC]:"आइसलैंडिक",[i.ITALIAN]:"इटालियन",[i.JAPANESE]:"जापानी",[i.GEORGIAN]:"जॉर्जियाई",[i.KAZAKH]:"कज़ाख",[i.KANNADA]:"कन्नड़",[i.KOREAN]:"कोरियाई",[i.KONKANI]:"कोंकणी",[i.KYRGYZ]:"किरगिज़",[i.LITHUANIAN]:"लिथुआनियाई",[i.LATVIAN]:"लातवियाई",[i.MAORI]:"माओरी",[i.FYRO_MACEDONIAN]:"मैसेडोनियाई (पूर्व यूगोस्लाविया)",[i.MONGOLIAN]:"मंगोलियाई",[i.MARATHI]:"मराठी",[i.MALAY]:"मलय",[i.MALTESE]:"माल्टीज़",[i.NORWEGIAN_BOKMAL]:"नॉर्वेजियन (बोकमाल)",[i.DUTCH]:"डच",[i.NORTHERN_SOTHO]:"नॉर्दर्न सोटो",[i.PUNJABI]:"पंजाबी",[i.POLISH]:"पोलिश",[i.PASHTO]:"पश्तो",[i.QUECHUA]:"क्वेचुआ",[i.ROMANIAN]:"रोमानियाई",[i.RUSSIAN]:"रूसी",[i.SANSKRIT]:"संस्कृत",[i.SAMI_NORTHERN]:"सामी (उत्तर)",[i.SLOVAK]:"स्लोवाक",[i.SLOVENIAN]:"स्लोवेनियाई",[i.ALBANIAN]:"अल्बानियाई",[i.SERBIAN_LATIN]:"सेर्बियाई (लैटिन)",[i.SWEDISH]:"स्वीडिश",[i.SWEDISH_FINLAND]:"स्वीडिश (फिनलैंड)",[i.SWEDISH_SWEDEN]:"स्वीडिश (स्वीडन)",[i.SWAHILI]:"स्वाहिली",[i.SYRIAC]:"सीरियाई",[i.TAMIL]:"तमिल",[i.TELUGU]:"तेलुगू",[i.THAI]:"थाई",[i.TAGALOG]:"तागालोग",[i.TSWANA]:"त्सवाना",[i.TURKISH]:"तुर्की",[i.TATAR]:"तातार",[i.UKRAINIAN]:"यूक्रेनी",[i.URDU]:"उर्दू",[i.UZBEK_LATIN]:"उज़्बेक (लैटिन)",[i.VIETNAMESE]:"वियतनामी",[i.XHOSA]:"कोसा",[i.CHINESE]:"चीनी",[i.CHINESE_SIMPLIFIED]:"चीनी (सरलीकृत)",[i.CHINESE_SIMPLIFIED_CHINA]:"चीनी (सरलीकृत, चीन)",[i.CHINESE_TRADITIONAL]:"चीनी (परंपरागत)",[i.ZULU]:"ज़ुलू",[i.AFRIKAANS_SOUTH_AFRICA]:"आफ्रिकान्स (दक्षिण अफ्रीका)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"अरबी (संयुक्त अरब अमीरात)",[i.ARABIC_BAHRAIN]:"अरबी (बहरीन)",[i.ARABIC_ALGERIA]:"अरबी (अल्जीरिया)",[i.ARABIC_EGYPT]:"अरबी (मिस्र)",[i.ARABIC_IRAQ]:"अरबी (इराक)",[i.ARABIC_JORDAN]:"अरबी (जोर्डन)",[i.ARABIC_KUWAIT]:"अरबी (कुवैत)",[i.ARABIC_LEBANON]:"अरबी (लेबनान)",[i.ARABIC_LIBYA]:"अरबी (लीबिया)",[i.ARABIC_MOROCCO]:"अरबी (मोरक्को)",[i.ARABIC_OMAN]:"अरबी (ओमान)",[i.ARABIC_QATAR]:"अरबी (कतार)",[i.ARABIC_SAUDI_ARABIA]:"अरबी (सऊदी अरब)",[i.ARABIC_SYRIA]:"अरबी (सीरिया)",[i.ARABIC_TUNISIA]:"अरबी (ट्यूनीशिया)",[i.ARABIC_YEMEN]:"अरबी (यमन)",[i.AZERI_LATIN_AZERBAIJAN]:"अज़रबैजानी (लैटिन, अज़रबैजान)",[i.BELARUSIAN_BELARUS]:"बेलारूसी (बेलारूस)",[i.BULGARIAN_BULGARIA]:"बुल्गारियाई (बुल्गारिया)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"बोस्नियाई (बोस्निया और हर्जेगोविना)",[i.CATALAN_SPAIN]:"कातालान (स्पेन)",[i.CZECH_CZECH_REPUBLIC]:"चेक (चेक गणराज्य)",[i.WELSH_UNITED_KINGDOM]:"वेल्श (संयुक्त राज्य)",[i.DANISH_DENMARK]:"डेनिश (डेनमार्क)",[i.GERMAN_AUSTRIA]:"जर्मन (ऑस्ट्रिया)",[i.GERMAN_SWITZERLAND]:"जर्मन (स्विट्जरलैंड)",[i.GERMAN_GERMANY]:"जर्मन (जर्मनी)",[i.GERMAN_LIECHTENSTEIN]:"जर्मन (लिचटेनस्टीन)",[i.GERMAN_LUXEMBOURG]:"जर्मन (लक्समबर्ग)",[i.DIVEHI_MALDIVES]:"डिवेही (मालदीव)",[i.GREEK_GREECE]:"यूनानी (ग्रीस)",[i.ENGLISH_AUSTRALIA]:"अंग्रेज़ी (ऑस्ट्रेलिया)",[i.ENGLISH_BELIZE]:"अंग्रेज़ी (बेलीज)",[i.ENGLISH_CANADA]:"अंग्रेज़ी (कनाडा)",[i.ENGLISH_CARIBBEAN]:"अंग्रेज़ी (कैरेबियन)",[i.ENGLISH_UNITED_KINGDOM]:"अंग्रेज़ी (संयुक्त राज्य)",[i.ENGLISH_IRELAND]:"अंग्रेज़ी (आयरलैंड)",[i.ENGLISH_JAMAICA]:"अंग्रेज़ी (जमैका)",[i.ENGLISH_NEW_ZEALAND]:"अंग्रेज़ी (न्यूज़ीलैंड)",[i.ENGLISH_PHILIPPINES]:"अंग्रेज़ी (फ़िलीपींस)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"अंग्रेज़ी (त्रिनिदाद और टोबैगो)",[i.ENGLISH_UNITED_STATES]:"अंग्रेज़ी (संयुक्त राज्य अमेरिका)",[i.ENGLISH_SOUTH_AFRICA]:"अंग्रेज़ी (दक्षिण अफ्रीका)",[i.ENGLISH_ZIMBABWE]:"अंग्रेज़ी (ज़िम्बाब्वे)",[i.SPANISH_ARGENTINA]:"स्पेनिश (अर्जेंटीना)",[i.SPANISH_BOLIVIA]:"स्पेनिश (बोलीविया)",[i.SPANISH_CHILE]:"स्पेनिश (चिली)",[i.SPANISH_COLOMBIA]:"स्पेनिश (कोलंबिया)",[i.SPANISH_COSTA_RICA]:"स्पेनिश (कोस्टा रिका)",[i.SPANISH_DOMINICAN_REPUBLIC]:"स्पेनिश (डोमिनिकन गणराज्य)",[i.SPANISH_ECUADOR]:"स्पेनिश (एक्वाडोर)",[i.SPANISH_SPAIN]:"स्पेनिश (स्पेन)",[i.SPANISH_GUATEMALA]:"स्पेनिश (ग्वाटेमाला)",[i.SPANISH_HONDURAS]:"स्पेनिश (होंडूरास)",[i.SPANISH_MEXICO]:"स्पेनिश (मैक्सिको)",[i.SPANISH_NICARAGUA]:"स्पेनिश (निकारागुआ)",[i.SPANISH_PANAMA]:"स्पेनिश (पनामा)",[i.SPANISH_PERU]:"स्पेनिश (पेरू)",[i.SPANISH_PUERTO_RICO]:"स्पेनिश (पुएर्टो रिको)",[i.SPANISH_PARAGUAY]:"स्पेनिश (पराग्वे)",[i.SPANISH_EL_SALVADOR]:"स्पेनिश (एल साल्वाडोर)",[i.SPANISH_URUGUAY]:"स्पेनिश (उरुग्वे)",[i.SPANISH_VENEZUELA]:"स्पेनिश (वेनेज़ुएला)",[i.ESTONIAN_ESTONIA]:"एस्टोनियाई (एस्टोनिया)",[i.BASQUE_SPAIN]:"बास्क (स्पेन)",[i.FARSI_IRAN]:"फ़ारसी (ईरान)",[i.FINNISH_FINLAND]:"फिनिश (फिनलैंड)",[i.FAROESE_FAROE_ISLANDS]:"फ़ेरोश (फ़ेरो द्वीप)",[i.FRENCH_BELGIUM]:"फ़्रेंच (बेल्जियम)",[i.FRENCH_CANADA]:"फ़्रेंच (कनाडा)",[i.FRENCH_SWITZERLAND]:"फ़्रेंच (स्विट्जरलैंड)",[i.FRENCH_FRANCE]:"फ़्रेंच (फ्रांस)",[i.FRENCH_LUXEMBOURG]:"फ़्रेंच (लक्समबर्ग)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"फ़्रेंच (मोनाको प्रिंसिपलिटी)",[i.GALICIAN_SPAIN]:"गैलिशियन (स्पेन)",[i.GUJARATI_INDIA]:"गुजराती (भारत)",[i.HEBREW_ISRAEL]:"हिब्रू (इज़राइल)",[i.HINDI_INDIA]:"हिंदी (भारत)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"क्रोएशियाई (बोस्निया और हर्जेगोविना)",[i.CROATIAN_CROATIA]:"क्रोएशियाई (क्रोएशिया)",[i.HUNGARIAN_HUNGARY]:"वेनगरियाई (वेनगेरिया)",[i.ARMENIAN_ARMENIA]:"आर्मेनियाई (आर्मेनिया)",[i.INDONESIAN_INDONESIA]:"इंडोनेशियाई (इंडोनेशिया)",[i.ICELANDIC_ICELAND]:"आइसलैंडिक (आइसलैंड)",[i.ITALIAN_SWITZERLAND]:"इटालियन (स्विट्जरलैंड)",[i.ITALIAN_ITALY]:"इटालियन (इटली)",[i.JAPANESE_JAPAN]:"जापानी (जापान)",[i.GEORGIAN_GEORGIA]:"जॉर्जियाई (जॉर्जिया)",[i.KAZAKH_KAZAKHSTAN]:"कज़ाख (कज़ाकिस्तान)",[i.KANNADA_INDIA]:"कन्नड़ (भारत)",[i.KOREAN_KOREA]:"कोरियाई (कोरिया)",[i.KONKANI_INDIA]:"कोंकणी (भारत)",[i.KYRGYZ_KYRGYZSTAN]:"किरगिज़ (किरगिज़स्तान)",[i.LITHUANIAN_LITHUANIA]:"लिथुआनियाई (लिथुआनिया)",[i.LATVIAN_LATVIA]:"लातवियाई (लातविया)",[i.MAORI_NEW_ZEALAND]:"माओरी (न्यूज़ीलैंड)",[i.FYRO_MACEDONIAN_MACEDONIA]:"मैसेडोनियाई (पूर्व यूगोस्लाविया, मैसेडोनिया)",[i.MONGOLIAN_MONGOLIA]:"मंगोलियाई (मंगोलिया)",[i.MARATHI_INDIA]:"मराठी (भारत)",[i.MALAY_BRUNEI_DARUSSALAM]:"मलय (ब्रुनेई दारूस्सलाम)",[i.MALAY_MALAYSIA]:"मलय (मलेशिया)",[i.MALTESE_MALTA]:"माल्टीज़ (माल्टा)",[i.NORWEGIAN_BOKMAL_NORWAY]:"नॉर्वेजियन (बोकमाल, नॉर्वे)",[i.DUTCH_BELGIUM]:"डच (बेल्जियम)",[i.DUTCH_NETHERLANDS]:"डच (नीदरलैंड्स)",[i.NORWEGIAN_NYNORSK_NORWAY]:"नॉर्वेजियन (न्योनोर्स्क, नॉर्वे)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"नॉर्दर्न सोटो (दक्षिण अफ्रीका)",[i.PUNJABI_INDIA]:"पंजाबी (भारत)",[i.POLISH_POLAND]:"पोलिश (पोलैंड)",[i.PASHTO_AFGHANISTAN]:"पश्तो (अफगानिस्तान)",[i.PORTUGUESE_BRAZIL]:"पुर्तगाली (ब्राजील)",[i.PORTUGUESE_PORTUGAL]:"पुर्तगाली (पुर्तगाल)",[i.QUECHUA_BOLIVIA]:"क्वेचुआ (बोलिविया)",[i.QUECHUA_ECUADOR]:"क्वेचुआ (इक्वाडोर)",[i.QUECHUA_PERU]:"क्वेचुआ (पेरू)",[i.ROMANIAN_ROMANIA]:"रोमानियाई (रूमानिया)",[i.RUSSIAN_RUSSIA]:"रूसी (रूस)",[i.SANSKRIT_INDIA]:"संस्कृत (भारत)",[i.SAMI_NORTHERN_FINLAND]:"सामी (उत्तर, फिनलैंड)",[i.SAMI_NORTHERN_NORWAY]:"सामी (उत्तर, नॉर्वे)",[i.SAMI_NORTHERN_SWEDEN]:"सामी (उत्तर, स्वीडन)",[i.SLOVAK_SLOVAKIA]:"स्लोवाक (स्लोवाकिया)",[i.SLOVENIAN_SLOVENIA]:"स्लोवेनियाई (स्लोवेनिया)",[i.ALBANIAN_ALBANIA]:"अल्बानियाई (अल्बानिया)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"सेर्बियाई (लैटिन, बोस्निया और हर्जेगोविना)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"सेर्बियाई (लैटिन, सेर्बिया और मोंटेनेग्रो)",[i.SWAHILI_KENYA]:"स्वाहिली (केन्या)",[i.SYRIAC_SYRIA]:"सीरियाई (सीरिया)",[i.TAMIL_INDIA]:"तमिल (भारत)",[i.TELUGU_INDIA]:"तेलुगू (भारत)",[i.THAI_THAILAND]:"थाई (थाईलैंड)",[i.TAGALOG_PHILIPPINES]:"तागालोग (फ़िलीपींस)",[i.TSWANA_SOUTH_AFRICA]:"त्सवाना (दक्षिण अफ्रीका)",[i.TURKISH_TURKEY]:"तुर्की (तुर्की)",[i.TATAR_RUSSIA]:"तातार (रूस)",[i.TSOGA]:"त्सोगा",[i.UKRAINIAN_UKRAINE]:"यूक्रेनी (यूक्रेन)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"उर्दू (इस्लामी गणराज्य पाकिस्तान)",[i.UZBEK_LATIN_UZBEKISTAN]:"उज़्बेक (लैटिन, उज़्बेकिस्तान)",[i.VIETNAMESE_VIET_NAM]:"वियतनामी (वियतनाम)",[i.XHOSA_SOUTH_AFRICA]:"कोसा (दक्षिण अफ्रीका)",[i.CHINESE_HONG_KONG]:"चीनी (हांगकांग)",[i.CHINESE_MACAU]:"चीनी (मकाऊ)",[i.CHINESE_SINGAPORE]:"चीनी (सिंगापुर)",[i.ZULU_SOUTH_AFRICA]:"ज़ुलू (दक्षिण अफ्रीका)"},pp={[i.ENGLISH]:"Inglese",[i.FRENCH]:"Francese",[i.SPANISH]:"Spagnolo",[i.PORTUGUESE]:"Portoghese",[i.GERMAN]:"Tedesco",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabo",[i.AZERI_LATIN]:"Azerbaigiano Latino",[i.BELARUSIAN]:"Bielorusso",[i.BULGARIAN]:"Bulgaro",[i.BOSNIAN]:"Bosniaco",[i.CATALAN]:"Catalano",[i.CZECH]:"Ceco",[i.WELSH]:"Gallese",[i.DANISH]:"Danese",[i.DIVEHI]:"Divehi",[i.GREEK]:"Greco",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estone",[i.BASQUE]:"Basco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finlandese",[i.FAROESE]:"Faroese",[i.GALICIAN]:"Galiziano",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Ebraico",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croato",[i.HUNGARIAN]:"Ungherese",[i.ARMENIAN]:"Armeno",[i.INDONESIAN]:"Indonesiano",[i.ICELANDIC]:"Islandese",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Giapponese",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Kazako",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirghiso",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Lettone",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macedone FYRO",[i.MONGOLIAN]:"Mongolo",[i.MARATHI]:"Marathi",[i.MALAY]:"Malese",[i.MALTESE]:"Maltese",[i.NORWEGIAN_BOKMAL]:"Norvegese Bokmål",[i.DUTCH]:"Olandese",[i.NORTHERN_SOTHO]:"Sotho del Nord",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polacco",[i.PASHTO]:"Pashto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumeno",[i.RUSSIAN]:"Russo",[i.SANSKRIT]:"Sanscrito",[i.SAMI_NORTHERN]:"Sami del Nord",[i.SLOVAK]:"Slovacco",[i.SLOVENIAN]:"Sloveno",[i.ALBANIAN]:"Albanese",[i.SERBIAN_LATIN]:"Serbo Latino",[i.SWEDISH]:"Svedese",[i.SWEDISH_FINLAND]:"Svedese (Finlandia)",[i.SWEDISH_SWEDEN]:"Svedese (Svezia)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Siriaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Thai",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tataro",[i.UKRAINIAN]:"Ucraino",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeco Latino",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Cinese",[i.CHINESE_SIMPLIFIED]:"Cinese Semplificato",[i.CHINESE_SIMPLIFIED_CHINA]:"Cinese Semplificato (Cina)",[i.CHINESE_TRADITIONAL]:"Cinese Tradizionale",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudafrica)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabo (Emirati Arabi Uniti)",[i.ARABIC_BAHRAIN]:"Arabo (Bahrein)",[i.ARABIC_ALGERIA]:"Arabo (Algeria)",[i.ARABIC_EGYPT]:"Arabo (Egitto)",[i.ARABIC_IRAQ]:"Arabo (Iraq)",[i.ARABIC_JORDAN]:"Arabo (Giordania)",[i.ARABIC_KUWAIT]:"Arabo (Kuwait)",[i.ARABIC_LEBANON]:"Arabo (Libano)",[i.ARABIC_LIBYA]:"Arabo (Libia)",[i.ARABIC_MOROCCO]:"Arabo (Marocco)",[i.ARABIC_OMAN]:"Arabo (Oman)",[i.ARABIC_QATAR]:"Arabo (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabo (Arabia Saudita)",[i.ARABIC_SYRIA]:"Arabo (Siria)",[i.ARABIC_TUNISIA]:"Arabo (Tunisia)",[i.ARABIC_YEMEN]:"Arabo (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azerbaigiano Latino (Azerbaigian)",[i.BELARUSIAN_BELARUS]:"Bielorusso (Bielorussia)",[i.BULGARIAN_BULGARIA]:"Bulgaro (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaco (Bosnia ed Erzegovina)",[i.CATALAN_SPAIN]:"Catalano (Spagna)",[i.CZECH_CZECH_REPUBLIC]:"Ceco (Repubblica Ceca)",[i.WELSH_UNITED_KINGDOM]:"Gallese (Regno Unito)",[i.DANISH_DENMARK]:"Danese (Danimarca)",[i.GERMAN_AUSTRIA]:"Tedesco (Austria)",[i.GERMAN_SWITZERLAND]:"Tedesco (Svizzera)",[i.GERMAN_GERMANY]:"Tedesco (Germania)",[i.GERMAN_LIECHTENSTEIN]:"Tedesco (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Tedesco (Lussemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldive)",[i.GREEK_GREECE]:"Greco (Grecia)",[i.ENGLISH_AUSTRALIA]:"Inglese (Australia)",[i.ENGLISH_BELIZE]:"Inglese (Belize)",[i.ENGLISH_CANADA]:"Inglese (Canada)",[i.ENGLISH_CARIBBEAN]:"Inglese (Caraibi)",[i.ENGLISH_UNITED_KINGDOM]:"Inglese (Regno Unito)",[i.ENGLISH_IRELAND]:"Inglese (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglese (Giamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglese (Nuova Zelanda)",[i.ENGLISH_PHILIPPINES]:"Inglese (Filippine)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglese (Trinidad e Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglese (Stati Uniti)",[i.ENGLISH_SOUTH_AFRICA]:"Inglese (Sudafrica)",[i.ENGLISH_ZIMBABWE]:"Inglese (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Spagnolo (Argentina)",[i.SPANISH_BOLIVIA]:"Spagnolo (Bolivia)",[i.SPANISH_CHILE]:"Spagnolo (Cile)",[i.SPANISH_COLOMBIA]:"Spagnolo (Colombia)",[i.SPANISH_COSTA_RICA]:"Spagnolo (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spagnolo (Repubblica Dominicana)",[i.SPANISH_ECUADOR]:"Spagnolo (Ecuador)",[i.SPANISH_SPAIN]:"Spagnolo (Spagna)",[i.SPANISH_GUATEMALA]:"Spagnolo (Guatemala)",[i.SPANISH_HONDURAS]:"Spagnolo (Honduras)",[i.SPANISH_MEXICO]:"Spagnolo (Messico)",[i.SPANISH_NICARAGUA]:"Spagnolo (Nicaragua)",[i.SPANISH_PANAMA]:"Spagnolo (Panama)",[i.SPANISH_PERU]:"Spagnolo (Perù)",[i.SPANISH_PUERTO_RICO]:"Spagnolo (Porto Rico)",[i.SPANISH_PARAGUAY]:"Spagnolo (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spagnolo (El Salvador)",[i.SPANISH_URUGUAY]:"Spagnolo (Uruguay)",[i.SPANISH_VENEZUELA]:"Spagnolo (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estone (Estonia)",[i.BASQUE_SPAIN]:"Basco (Spagna)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finlandese (Finlandia)",[i.FAROESE_FAROE_ISLANDS]:"Faroese (Isole Faroe)",[i.FRENCH_BELGIUM]:"Francese (Belgio)",[i.FRENCH_CANADA]:"Francese (Canada)",[i.FRENCH_SWITZERLAND]:"Francese (Svizzera)",[i.FRENCH_FRANCE]:"Francese (Francia)",[i.FRENCH_LUXEMBOURG]:"Francese (Lussemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francese (Principato di Monaco)",[i.GALICIAN_SPAIN]:"Galiziano (Spagna)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Ebraico (Israele)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croato (Bosnia ed Erzegovina)",[i.CROATIAN_CROATIA]:"Croato (Croazia)",[i.HUNGARIAN_HUNGARY]:"Ungherese (Ungheria)",[i.ARMENIAN_ARMENIA]:"Armeno (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesiano (Indonesia)",[i.ICELANDIC_ICELAND]:"Islandese (Islanda)",[i.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"Giapponese (Giappone)",[i.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazako (Kazakistan)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Coreano (Corea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kirghiso (Kirghizistan)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[i.LATVIAN_LATVIA]:"Lettone (Lettonia)",[i.MAORI_NEW_ZEALAND]:"Maori (Nuova Zelanda)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedone FYRO (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongolo (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malese (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malese (Malesia)",[i.MALTESE_MALTA]:"Maltese (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norvegese Bokmål (Norvegia)",[i.DUTCH_BELGIUM]:"Olandese (Belgio)",[i.DUTCH_NETHERLANDS]:"Olandese (Paesi Bassi)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norvegese Nynorsk (Norvegia)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Nord (Sudafrica)",[i.PUNJABI_INDIA]:"Punjabi (India)",[i.POLISH_POLAND]:"Polacco (Polonia)",[i.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portoghese (Brasile)",[i.PORTUGUESE_PORTUGAL]:"Portoghese (Portogallo)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Perù)",[i.ROMANIAN_ROMANIA]:"Rumeno (Romania)",[i.RUSSIAN_RUSSIA]:"Russo (Russia)",[i.SANSKRIT_INDIA]:"Sanscrito (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami del Nord (Finlandia)",[i.SAMI_NORTHERN_NORWAY]:"Sami del Nord (Norvegia)",[i.SAMI_NORTHERN_SWEDEN]:"Sami del Nord (Svezia)",[i.SLOVAK_SLOVAKIA]:"Slovacco (Slovacchia)",[i.SLOVENIAN_SLOVENIA]:"Sloveno (Slovenia)",[i.ALBANIAN_ALBANIA]:"Albanese (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbo Latino (Bosnia ed Erzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbo Latino (Serbia e Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Siriaco (Siria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Thai (Thailandia)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Filippine)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Sudafrica)",[i.TURKISH_TURKEY]:"Turco (Turchia)",[i.TATAR_RUSSIA]:"Tataro (Russia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraino (Ucraina)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Repubblica Islamica del Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latino (Uzbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudafrica)",[i.CHINESE_HONG_KONG]:"Cinese (Hong Kong)",[i.CHINESE_MACAU]:"Cinese (Macao)",[i.CHINESE_SINGAPORE]:"Cinese (Singapore)",[i.ZULU_SOUTH_AFRICA]:"Zulu (Sudafrica)"},q3={[i.ENGLISH]:"英語",[i.FRENCH]:"フランス語",[i.SPANISH]:"スペイン語",[i.PORTUGUESE]:"ポルトガル語",[i.GERMAN]:"ドイツ語",[i.AFRIKAANS]:"アフリカーンス語",[i.ARABIC]:"アラビア語",[i.AZERI_LATIN]:"アゼルバイジャン語(ラテン文字)",[i.BELARUSIAN]:"ベラルーシ語",[i.BULGARIAN]:"ブルガリア語",[i.BOSNIAN]:"ボスニア語",[i.CATALAN]:"カタルーニャ語",[i.CZECH]:"チェコ語",[i.WELSH]:"ウェールズ語",[i.DANISH]:"デンマーク語",[i.DIVEHI]:"ディヴェヒ語",[i.GREEK]:"ギリシャ語",[i.ESPERANTO]:"エスペラント語",[i.ESTONIAN]:"エストニア語",[i.BASQUE]:"バスク語",[i.FARSI]:"ペルシア語",[i.FINNISH]:"フィンランド語",[i.FAROESE]:"フェロー語",[i.GALICIAN]:"ガリシア語",[i.GUJARATI]:"グジャラート語",[i.HEBREW]:"ヘブライ語",[i.HINDI]:"ヒンディー語",[i.CROATIAN]:"クロアチア語",[i.HUNGARIAN]:"ハンガリー語",[i.ARMENIAN]:"アルメニア語",[i.INDONESIAN]:"インドネシア語",[i.ICELANDIC]:"アイスランド語",[i.ITALIAN]:"イタリア語",[i.JAPANESE]:"日本語",[i.GEORGIAN]:"ジョージア語",[i.KAZAKH]:"カザフ語",[i.KANNADA]:"カンナダ語",[i.KOREAN]:"韓国語",[i.KONKANI]:"コンカニ語",[i.KYRGYZ]:"キルギス語",[i.LITHUANIAN]:"リトアニア語",[i.LATVIAN]:"ラトビア語",[i.MAORI]:"マオリ語",[i.FYRO_MACEDONIAN]:"マケドニア語(旧ユーゴスラビア)",[i.MONGOLIAN]:"モンゴル語",[i.MARATHI]:"マラーティー語",[i.MALAY]:"マレー語",[i.MALTESE]:"マルタ語",[i.NORWEGIAN_BOKMAL]:"ノルウェー語(ブークモール)",[i.DUTCH]:"オランダ語",[i.NORTHERN_SOTHO]:"ノーザンソト語",[i.PUNJABI]:"パンジャブ語",[i.POLISH]:"ポーランド語",[i.PASHTO]:"パシュトー語",[i.QUECHUA]:"ケチュア語",[i.ROMANIAN]:"ルーマニア語",[i.RUSSIAN]:"ロシア語",[i.SANSKRIT]:"サンスクリット語",[i.SAMI_NORTHERN]:"サーミ語(北部)",[i.SLOVAK]:"スロバキア語",[i.SLOVENIAN]:"スロベニア語",[i.ALBANIAN]:"アルバニア語",[i.SERBIAN_LATIN]:"セルビア語(ラテン文字)",[i.SWEDISH]:"スウェーデン語",[i.SWEDISH_FINLAND]:"スウェーデン語(フィンランド)",[i.SWEDISH_SWEDEN]:"スウェーデン語(スウェーデン)",[i.SWAHILI]:"スワヒリ語",[i.SYRIAC]:"シリア語",[i.TAMIL]:"タミル語",[i.TELUGU]:"テルグ語",[i.THAI]:"タイ語",[i.TAGALOG]:"タガログ語",[i.TSWANA]:"ツワナ語",[i.TURKISH]:"トルコ語",[i.TATAR]:"タタール語",[i.UKRAINIAN]:"ウクライナ語",[i.URDU]:"ウルドゥー語",[i.UZBEK_LATIN]:"ウズベク語(ラテン文字)",[i.VIETNAMESE]:"ベトナム語",[i.XHOSA]:"コーサ語",[i.CHINESE]:"中国語",[i.CHINESE_SIMPLIFIED]:"中国語(簡体字)",[i.CHINESE_SIMPLIFIED_CHINA]:"中国語(簡体字、中国)",[i.CHINESE_TRADITIONAL]:"中国語(繁体字)",[i.ZULU]:"ズールー語",[i.AFRIKAANS_SOUTH_AFRICA]:"アフリカーンス語(南アフリカ)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"アラビア語(アラブ首長国連邦)",[i.ARABIC_BAHRAIN]:"アラビア語(バーレーン)",[i.ARABIC_ALGERIA]:"アラビア語(アルジェリア)",[i.ARABIC_EGYPT]:"アラビア語(エジプト)",[i.ARABIC_IRAQ]:"アラビア語(イラク)",[i.ARABIC_JORDAN]:"アラビア語(ヨルダン)",[i.ARABIC_KUWAIT]:"アラビア語(クウェート)",[i.ARABIC_LEBANON]:"アラビア語(レバノン)",[i.ARABIC_LIBYA]:"アラビア語(リビア)",[i.ARABIC_MOROCCO]:"アラビア語(モロッコ)",[i.ARABIC_OMAN]:"アラビア語(オマーン)",[i.ARABIC_QATAR]:"アラビア語(カタール)",[i.ARABIC_SAUDI_ARABIA]:"アラビア語(サウジアラビア)",[i.ARABIC_SYRIA]:"アラビア語(シリア)",[i.ARABIC_TUNISIA]:"アラビア語(チュニジア)",[i.ARABIC_YEMEN]:"アラビア語(イエメン)",[i.AZERI_LATIN_AZERBAIJAN]:"アゼルバイジャン語(ラテン文字、アゼルバイジャン)",[i.BELARUSIAN_BELARUS]:"ベラルーシ語(ベラルーシ)",[i.BULGARIAN_BULGARIA]:"ブルガリア語(ブルガリア)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"ボスニア語(ボスニア・ヘルツェゴビナ)",[i.CATALAN_SPAIN]:"カタルーニャ語(スペイン)",[i.CZECH_CZECH_REPUBLIC]:"チェコ語(チェコ共和国)",[i.WELSH_UNITED_KINGDOM]:"ウェールズ語(イギリス)",[i.DANISH_DENMARK]:"デンマーク語(デンマーク)",[i.GERMAN_AUSTRIA]:"ドイツ語(オーストリア)",[i.GERMAN_SWITZERLAND]:"ドイツ語(スイス)",[i.GERMAN_GERMANY]:"ドイツ語(ドイツ)",[i.GERMAN_LIECHTENSTEIN]:"ドイツ語(リヒテンシュタイン)",[i.GERMAN_LUXEMBOURG]:"ドイツ語(ルクセンブルク)",[i.DIVEHI_MALDIVES]:"ディヴェヒ語(モルディブ)",[i.GREEK_GREECE]:"ギリシャ語(ギリシャ)",[i.ENGLISH_AUSTRALIA]:"英語(オーストラリア)",[i.ENGLISH_BELIZE]:"英語(ベリーズ)",[i.ENGLISH_CANADA]:"英語(カナダ)",[i.ENGLISH_CARIBBEAN]:"英語(カリブ)",[i.ENGLISH_UNITED_KINGDOM]:"英語(イギリス)",[i.ENGLISH_IRELAND]:"英語(アイルランド)",[i.ENGLISH_JAMAICA]:"英語(ジャマイカ)",[i.ENGLISH_NEW_ZEALAND]:"英語(ニュージーランド)",[i.ENGLISH_PHILIPPINES]:"英語(フィリピン)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"英語(トリニダード・トバゴ)",[i.ENGLISH_UNITED_STATES]:"英語(アメリカ合衆国)",[i.ENGLISH_SOUTH_AFRICA]:"英語(南アフリカ)",[i.ENGLISH_ZIMBABWE]:"英語(ジンバブエ)",[i.SPANISH_ARGENTINA]:"スペイン語(アルゼンチン)",[i.SPANISH_BOLIVIA]:"スペイン語(ボリビア)",[i.SPANISH_CHILE]:"スペイン語(チリ)",[i.SPANISH_COLOMBIA]:"スペイン語(コロンビア)",[i.SPANISH_COSTA_RICA]:"スペイン語(コスタリカ)",[i.SPANISH_DOMINICAN_REPUBLIC]:"スペイン語(ドミニカ共和国)",[i.SPANISH_ECUADOR]:"スペイン語(エクアドル)",[i.SPANISH_SPAIN]:"スペイン語(スペイン)",[i.SPANISH_GUATEMALA]:"スペイン語(グアテマラ)",[i.SPANISH_HONDURAS]:"スペイン語(ホンジュラス)",[i.SPANISH_MEXICO]:"スペイン語(メキシコ)",[i.SPANISH_NICARAGUA]:"スペイン語(ニカラグア)",[i.SPANISH_PANAMA]:"スペイン語(パナマ)",[i.SPANISH_PERU]:"スペイン語(ペルー)",[i.SPANISH_PUERTO_RICO]:"スペイン語(プエルトリコ)",[i.SPANISH_PARAGUAY]:"スペイン語(パラグアイ)",[i.SPANISH_EL_SALVADOR]:"スペイン語(エルサルバドル)",[i.SPANISH_URUGUAY]:"スペイン語(ウルグアイ)",[i.SPANISH_VENEZUELA]:"スペイン語(ベネズエラ)",[i.ESTONIAN_ESTONIA]:"エストニア語(エストニア)",[i.BASQUE_SPAIN]:"バスク語(スペイン)",[i.FARSI_IRAN]:"ペルシア語(イラン)",[i.FINNISH_FINLAND]:"フィンランド語(フィンランド)",[i.FAROESE_FAROE_ISLANDS]:"フェロー語(フェロー諸島)",[i.FRENCH_BELGIUM]:"フランス語(ベルギー)",[i.FRENCH_CANADA]:"フランス語(カナダ)",[i.FRENCH_SWITZERLAND]:"フランス語(スイス)",[i.FRENCH_FRANCE]:"フランス語(フランス)",[i.FRENCH_LUXEMBOURG]:"フランス語(ルクセンブルク)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"フランス語(モナコ公国)",[i.GALICIAN_SPAIN]:"ガリシア語(スペイン)",[i.GUJARATI_INDIA]:"グジャラート語(インド)",[i.HEBREW_ISRAEL]:"ヘブライ語(イスラエル)",[i.HINDI_INDIA]:"ヒンディー語(インド)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"クロアチア語(ボスニア・ヘルツェゴビナ)",[i.CROATIAN_CROATIA]:"クロアチア語(クロアチア)",[i.HUNGARIAN_HUNGARY]:"ハンガリー語(ハンガリー)",[i.ARMENIAN_ARMENIA]:"アルメニア語(アルメニア)",[i.INDONESIAN_INDONESIA]:"インドネシア語(インドネシア)",[i.ICELANDIC_ICELAND]:"アイスランド語(アイスランド)",[i.ITALIAN_SWITZERLAND]:"イタリア語(スイス)",[i.ITALIAN_ITALY]:"イタリア語(イタリア)",[i.JAPANESE_JAPAN]:"日本語(日本)",[i.GEORGIAN_GEORGIA]:"ジョージア語(ジョージア)",[i.KAZAKH_KAZAKHSTAN]:"カザフ語(カザフスタン)",[i.KANNADA_INDIA]:"カンナダ語(インド)",[i.KOREAN_KOREA]:"韓国語(韓国)",[i.KONKANI_INDIA]:"コンカニ語(インド)",[i.KYRGYZ_KYRGYZSTAN]:"キルギス語(キルギス)",[i.LITHUANIAN_LITHUANIA]:"リトアニア語(リトアニア)",[i.LATVIAN_LATVIA]:"ラトビア語(ラトビア)",[i.MAORI_NEW_ZEALAND]:"マオリ語(ニュージーランド)",[i.FYRO_MACEDONIAN_MACEDONIA]:"マケドニア語(旧ユーゴスラビア、マケドニア)",[i.MONGOLIAN_MONGOLIA]:"モンゴル語(モンゴル)",[i.MARATHI_INDIA]:"マラーティー語(インド)",[i.MALAY_BRUNEI_DARUSSALAM]:"マレー語(ブルネイ・ダルサラーム)",[i.MALAY_MALAYSIA]:"マレー語(マレーシア)",[i.MALTESE_MALTA]:"マルタ語(マルタ)",[i.NORWEGIAN_BOKMAL_NORWAY]:"ノルウェー語(ブークモール、ノルウェー)",[i.DUTCH_BELGIUM]:"オランダ語(ベルギー)",[i.DUTCH_NETHERLANDS]:"オランダ語(オランダ)",[i.NORWEGIAN_NYNORSK_NORWAY]:"ノルウェー語(ニーノルスク、ノルウェー)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"ノーザンソト語(南アフリカ)",[i.PUNJABI_INDIA]:"パンジャブ語(インド)",[i.POLISH_POLAND]:"ポーランド語(ポーランド)",[i.PASHTO_AFGHANISTAN]:"パシュトー語(アフガニスタン)",[i.PORTUGUESE_BRAZIL]:"ポルトガル語(ブラジル)",[i.PORTUGUESE_PORTUGAL]:"ポルトガル語(ポルトガル)",[i.QUECHUA_BOLIVIA]:"ケチュア語(ボリビア)",[i.QUECHUA_ECUADOR]:"ケチュア語(エクアドル)",[i.QUECHUA_PERU]:"ケチュア語(ペルー)",[i.ROMANIAN_ROMANIA]:"ルーマニア語(ルーマニア)",[i.RUSSIAN_RUSSIA]:"ロシア語(ロシア)",[i.SANSKRIT_INDIA]:"サンスクリット語(インド)",[i.SAMI_NORTHERN_FINLAND]:"サーミ語(北部、フィンランド)",[i.SAMI_NORTHERN_NORWAY]:"サーミ語(北部、ノルウェー)",[i.SAMI_NORTHERN_SWEDEN]:"サーミ語(北部、スウェーデン)",[i.SLOVAK_SLOVAKIA]:"スロバキア語(スロバキア)",[i.SLOVENIAN_SLOVENIA]:"スロベニア語(スロベニア)",[i.ALBANIAN_ALBANIA]:"アルバニア語(アルバニア)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"セルビア語(ラテン文字、ボスニア・ヘルツェゴビナ)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"セルビア語(ラテン文字、セルビア・モンテネグロ)",[i.SWAHILI_KENYA]:"スワヒリ語(ケニア)",[i.SYRIAC_SYRIA]:"シリア語(シリア)",[i.TAMIL_INDIA]:"タミル語(インド)",[i.TELUGU_INDIA]:"テルグ語(インド)",[i.THAI_THAILAND]:"タイ語(タイ)",[i.TAGALOG_PHILIPPINES]:"タガログ語(フィリピン)",[i.TSWANA_SOUTH_AFRICA]:"ツワナ語(南アフリカ)",[i.TURKISH_TURKEY]:"トルコ語(トルコ)",[i.TATAR_RUSSIA]:"タタール語(ロシア)",[i.TSOGA]:"ツォガ語",[i.UKRAINIAN_UKRAINE]:"ウクライナ語(ウクライナ)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"ウルドゥー語(パキスタン・イスラム共和国)",[i.UZBEK_LATIN_UZBEKISTAN]:"ウズベク語(ラテン文字、ウズベキスタン)",[i.VIETNAMESE_VIET_NAM]:"ベトナム語(ベトナム)",[i.XHOSA_SOUTH_AFRICA]:"コーサ語(南アフリカ)",[i.CHINESE_HONG_KONG]:"中国語(香港)",[i.CHINESE_MACAU]:"中国語(マカオ)",[i.CHINESE_SINGAPORE]:"中国語(シンガポール)",[i.ZULU_SOUTH_AFRICA]:"ズールー語(南アフリカ)"},X3={[i.ENGLISH]:"영어",[i.FRENCH]:"프랑스어",[i.SPANISH]:"스페인어",[i.PORTUGUESE]:"포르투갈어",[i.GERMAN]:"독일어",[i.AFRIKAANS]:"아프리칸스어",[i.ARABIC]:"아랍어",[i.AZERI_LATIN]:"아제르바이잔어 (라틴 문자)",[i.BELARUSIAN]:"벨라루스어",[i.BULGARIAN]:"불가리아어",[i.BOSNIAN]:"보스니아어",[i.CATALAN]:"카탈루냐어",[i.CZECH]:"체코어",[i.WELSH]:"웨일스어",[i.DANISH]:"덴마크어",[i.DIVEHI]:"디베히어",[i.GREEK]:"그리스어",[i.ESPERANTO]:"에스페란토어",[i.ESTONIAN]:"에스토니아어",[i.BASQUE]:"바스크어",[i.FARSI]:"페르시아어",[i.FINNISH]:"핀란드어",[i.FAROESE]:"페로어",[i.GALICIAN]:"갈리시아어",[i.GUJARATI]:"구자라티어",[i.HEBREW]:"히브리어",[i.HINDI]:"힌디어",[i.CROATIAN]:"크로아티아어",[i.HUNGARIAN]:"헝가리어",[i.ARMENIAN]:"아르메니아어",[i.INDONESIAN]:"인도네시아어",[i.ICELANDIC]:"아이슬란드어",[i.ITALIAN]:"이탈리아어",[i.JAPANESE]:"일본어",[i.GEORGIAN]:"조지아어",[i.KAZAKH]:"카자흐어",[i.KANNADA]:"칸나다어",[i.KOREAN]:"한국어",[i.KONKANI]:"콩카니어",[i.KYRGYZ]:"키르기스어",[i.LITHUANIAN]:"리투아니아어",[i.LATVIAN]:"라트비아어",[i.MAORI]:"마오리어",[i.FYRO_MACEDONIAN]:"마케도니아어 (구 유고슬라비아)",[i.MONGOLIAN]:"몽골어",[i.MARATHI]:"마라티어",[i.MALAY]:"말레이어",[i.MALTESE]:"몰타어",[i.NORWEGIAN_BOKMAL]:"노르웨이어 (보크말)",[i.DUTCH]:"네덜란드어",[i.NORTHERN_SOTHO]:"북 소토어",[i.PUNJABI]:"펀자브어",[i.POLISH]:"폴란드어",[i.PASHTO]:"파슈토어",[i.QUECHUA]:"케추아어",[i.ROMANIAN]:"루마니아어",[i.RUSSIAN]:"러시아어",[i.SANSKRIT]:"산스크리트어",[i.SAMI_NORTHERN]:"사미어 (북부)",[i.SLOVAK]:"슬로바키아어",[i.SLOVENIAN]:"슬로베니아어",[i.ALBANIAN]:"알바니아어",[i.SERBIAN_LATIN]:"세르비아어 (라틴 문자)",[i.SWEDISH]:"스웨덴어",[i.SWEDISH_FINLAND]:"스웨덴어 (핀란드)",[i.SWEDISH_SWEDEN]:"스웨덴어 (스웨덴)",[i.SWAHILI]:"스와힐리어",[i.SYRIAC]:"시리아어",[i.TAMIL]:"타밀어",[i.TELUGU]:"텔루구어",[i.THAI]:"태국어",[i.TAGALOG]:"타갈로그어",[i.TSWANA]:"츠와나어",[i.TURKISH]:"터키어",[i.TATAR]:"타타르어",[i.UKRAINIAN]:"우크라이나어",[i.URDU]:"우르두어",[i.UZBEK_LATIN]:"우즈벡어 (라틴 문자)",[i.VIETNAMESE]:"베트남어",[i.XHOSA]:"코사어",[i.CHINESE]:"중국어",[i.CHINESE_SIMPLIFIED]:"중국어 (간체)",[i.CHINESE_SIMPLIFIED_CHINA]:"중국어 (간체, 중국)",[i.CHINESE_TRADITIONAL]:"중국어 (번체)",[i.ZULU]:"줄루어",[i.AFRIKAANS_SOUTH_AFRICA]:"아프리칸스어 (남아프리카)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"아랍어 (아랍에미리트)",[i.ARABIC_BAHRAIN]:"아랍어 (바레인)",[i.ARABIC_ALGERIA]:"아랍어 (알제리)",[i.ARABIC_EGYPT]:"아랍어 (이집트)",[i.ARABIC_IRAQ]:"아랍어 (이라크)",[i.ARABIC_JORDAN]:"아랍어 (요르단)",[i.ARABIC_KUWAIT]:"아랍어 (쿠웨이트)",[i.ARABIC_LEBANON]:"아랍어 (레바논)",[i.ARABIC_LIBYA]:"아랍어 (리비아)",[i.ARABIC_MOROCCO]:"아랍어 (모로코)",[i.ARABIC_OMAN]:"아랍어 (오만)",[i.ARABIC_QATAR]:"아랍어 (카타르)",[i.ARABIC_SAUDI_ARABIA]:"아랍어 (사우디아라비아)",[i.ARABIC_SYRIA]:"아랍어 (시리아)",[i.ARABIC_TUNISIA]:"아랍어 (튀니지)",[i.ARABIC_YEMEN]:"아랍어 (예멘)",[i.AZERI_LATIN_AZERBAIJAN]:"아제르바이잔어 (라틴 문자, 아제르바이잔)",[i.BELARUSIAN_BELARUS]:"벨라루스어 (벨라루스)",[i.BULGARIAN_BULGARIA]:"불가리아어 (불가리아)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"보스니아어 (보스니아 헤르체고비나)",[i.CATALAN_SPAIN]:"카탈루냐어 (스페인)",[i.CZECH_CZECH_REPUBLIC]:"체코어 (체코 공화국)",[i.WELSH_UNITED_KINGDOM]:"웨일스어 (영국)",[i.DANISH_DENMARK]:"덴마크어 (덴마크)",[i.GERMAN_AUSTRIA]:"독일어 (오스트리아)",[i.GERMAN_SWITZERLAND]:"독일어 (스위스)",[i.GERMAN_GERMANY]:"독일어 (독일)",[i.GERMAN_LIECHTENSTEIN]:"독일어 (리히텐슈타인)",[i.GERMAN_LUXEMBOURG]:"독일어 (룩셈부르크)",[i.DIVEHI_MALDIVES]:"디베히어 (몰디브)",[i.GREEK_GREECE]:"그리스어 (그리스)",[i.ENGLISH_AUSTRALIA]:"영어 (호주)",[i.ENGLISH_BELIZE]:"영어 (벨리즈)",[i.ENGLISH_CANADA]:"영어 (캐나다)",[i.ENGLISH_CARIBBEAN]:"영어 (카리브)",[i.ENGLISH_UNITED_KINGDOM]:"영어 (영국)",[i.ENGLISH_IRELAND]:"영어 (아일랜드)",[i.ENGLISH_JAMAICA]:"영어 (자메이카)",[i.ENGLISH_NEW_ZEALAND]:"영어 (뉴질랜드)",[i.ENGLISH_PHILIPPINES]:"영어 (필리핀)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"영어 (트리니다드 토바고)",[i.ENGLISH_UNITED_STATES]:"영어 (미국)",[i.ENGLISH_SOUTH_AFRICA]:"영어 (남아프리카)",[i.ENGLISH_ZIMBABWE]:"영어 (짐바브웨)",[i.SPANISH_ARGENTINA]:"스페인어 (아르헨티나)",[i.SPANISH_BOLIVIA]:"스페인어 (볼리비아)",[i.SPANISH_CHILE]:"스페인어 (칠레)",[i.SPANISH_COLOMBIA]:"스페인어 (콜롬비아)",[i.SPANISH_COSTA_RICA]:"스페인어 (코스타리카)",[i.SPANISH_DOMINICAN_REPUBLIC]:"스페인어 (도미니카 공화국)",[i.SPANISH_ECUADOR]:"스페인어 (에콰도르)",[i.SPANISH_SPAIN]:"스페인어 (스페인)",[i.SPANISH_GUATEMALA]:"스페인어 (과테말라)",[i.SPANISH_HONDURAS]:"스페인어 (온두라스)",[i.SPANISH_MEXICO]:"스페인어 (멕시코)",[i.SPANISH_NICARAGUA]:"스페인어 (니카라과)",[i.SPANISH_PANAMA]:"스페인어 (파나마)",[i.SPANISH_PERU]:"스페인어 (페루)",[i.SPANISH_PUERTO_RICO]:"스페인어 (푸에르토리코)",[i.SPANISH_PARAGUAY]:"스페인어 (파라과이)",[i.SPANISH_EL_SALVADOR]:"스페인어 (엘살바도르)",[i.SPANISH_URUGUAY]:"스페인어 (우루과이)",[i.SPANISH_VENEZUELA]:"스페인어 (베네수엘라)",[i.ESTONIAN_ESTONIA]:"에스토니아어 (에스토니아)",[i.BASQUE_SPAIN]:"바스크어 (스페인)",[i.FARSI_IRAN]:"페르시아어 (이란)",[i.FINNISH_FINLAND]:"핀란드어 (핀란드)",[i.FAROESE_FAROE_ISLANDS]:"페로어 (페로 제도)",[i.FRENCH_BELGIUM]:"프랑스어 (벨기에)",[i.FRENCH_CANADA]:"프랑스어 (캐나다)",[i.FRENCH_SWITZERLAND]:"프랑스어 (스위스)",[i.FRENCH_FRANCE]:"프랑스어 (프랑스)",[i.FRENCH_LUXEMBOURG]:"프랑스어 (룩셈부르크)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"프랑스어 (모나코 공국)",[i.GALICIAN_SPAIN]:"갈리시아어 (스페인)",[i.GUJARATI_INDIA]:"구자라티어 (인도)",[i.HEBREW_ISRAEL]:"히브리어 (이스라엘)",[i.HINDI_INDIA]:"힌디어 (인도)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"크로아티아어 (보스니아 헤르체고비나)",[i.CROATIAN_CROATIA]:"크로아티아어 (크로아티아)",[i.HUNGARIAN_HUNGARY]:"헝가리어 (헝가리)",[i.ARMENIAN_ARMENIA]:"아르메니아어 (아르메니아)",[i.INDONESIAN_INDONESIA]:"인도네시아어 (인도네시아)",[i.ICELANDIC_ICELAND]:"아이슬란드어 (아이슬란드)",[i.ITALIAN_SWITZERLAND]:"이탈리아어 (스위스)",[i.ITALIAN_ITALY]:"이탈리아어 (이탈리아)",[i.JAPANESE_JAPAN]:"일본어 (일본)",[i.GEORGIAN_GEORGIA]:"조지아어 (조지아)",[i.KAZAKH_KAZAKHSTAN]:"카자흐어 (카자흐스탄)",[i.KANNADA_INDIA]:"칸나다어 (인도)",[i.KOREAN_KOREA]:"한국어 (한국)",[i.KONKANI_INDIA]:"콩카니어 (인도)",[i.KYRGYZ_KYRGYZSTAN]:"키르기스어 (키르기스스탄)",[i.LITHUANIAN_LITHUANIA]:"리투아니아어 (리투아니아)",[i.LATVIAN_LATVIA]:"라트비아어 (라트비아)",[i.MAORI_NEW_ZEALAND]:"마오리어 (뉴질랜드)",[i.FYRO_MACEDONIAN_MACEDONIA]:"마케도니아어 (구 유고슬라비아, 마케도니아)",[i.MONGOLIAN_MONGOLIA]:"몽골어 (몽골)",[i.MARATHI_INDIA]:"마라티어 (인도)",[i.MALAY_BRUNEI_DARUSSALAM]:"말레이어 (브루나이 다루살람)",[i.MALAY_MALAYSIA]:"말레이어 (말레이시아)",[i.MALTESE_MALTA]:"몰타어 (몰타)",[i.NORWEGIAN_BOKMAL_NORWAY]:"노르웨이어 (보크말, 노르웨이)",[i.DUTCH_BELGIUM]:"네덜란드어 (벨기에)",[i.DUTCH_NETHERLANDS]:"네덜란드어 (네덜란드)",[i.NORWEGIAN_NYNORSK_NORWAY]:"노르웨이어 (니노르스크, 노르웨이)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"북 소토어 (남아프리카)",[i.PUNJABI_INDIA]:"펀자브어 (인도)",[i.POLISH_POLAND]:"폴란드어 (폴란드)",[i.PASHTO_AFGHANISTAN]:"파슈토어 (아프가니스탄)",[i.PORTUGUESE_BRAZIL]:"포르투갈어 (브라질)",[i.PORTUGUESE_PORTUGAL]:"포르투갈어 (포르투갈)",[i.QUECHUA_BOLIVIA]:"케추아어 (볼리비아)",[i.QUECHUA_ECUADOR]:"케추아어 (에콰도르)",[i.QUECHUA_PERU]:"케추아어 (페루)",[i.ROMANIAN_ROMANIA]:"루마니아어 (루마니아)",[i.RUSSIAN_RUSSIA]:"러시아어 (러시아)",[i.SANSKRIT_INDIA]:"산스크리트어 (인도)",[i.SAMI_NORTHERN_FINLAND]:"사미어 (북부, 핀란드)",[i.SAMI_NORTHERN_NORWAY]:"사미어 (북부, 노르웨이)",[i.SAMI_NORTHERN_SWEDEN]:"사미어 (북부, 스웨덴)",[i.SLOVAK_SLOVAKIA]:"슬로바키아어 (슬로바키아)",[i.SLOVENIAN_SLOVENIA]:"슬로베니아어 (슬로베니아)",[i.ALBANIAN_ALBANIA]:"알바니아어 (알바니아)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"세르비아어 (라틴 문자, 보스니아 헤르체고비나)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"세르비아어 (라틴 문자, 세르비아 및 몬테네그로)",[i.SWAHILI_KENYA]:"스와힐리어 (케냐)",[i.SYRIAC_SYRIA]:"시리아어 (시리아)",[i.TAMIL_INDIA]:"타밀어 (인도)",[i.TELUGU_INDIA]:"텔루구어 (인도)",[i.THAI_THAILAND]:"태국어 (태국)",[i.TAGALOG_PHILIPPINES]:"타갈로그어 (필리핀)",[i.TSWANA_SOUTH_AFRICA]:"츠와나어 (남아프리카)",[i.TURKISH_TURKEY]:"터키어 (터키)",[i.TATAR_RUSSIA]:"타타르어 (러시아)",[i.TSOGA]:"츠오가어",[i.UKRAINIAN_UKRAINE]:"우크라이나어 (우크라이나)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"우르두어 (파키스탄 이슬람 공화국)",[i.UZBEK_LATIN_UZBEKISTAN]:"우즈벡어 (라틴 문자, 우즈베키스탄)",[i.VIETNAMESE_VIET_NAM]:"베트남어 (베트남)",[i.XHOSA_SOUTH_AFRICA]:"코사어 (남아프리카)",[i.CHINESE_HONG_KONG]:"중국어 (홍콩)",[i.CHINESE_MACAU]:"중국어 (마카오)",[i.CHINESE_SINGAPORE]:"중국어 (싱가포르)",[i.ZULU_SOUTH_AFRICA]:"줄루어 (남아프리카)"},Q3={[i.ENGLISH]:"English",[i.FRENCH]:"Français",[i.SPANISH]:"Español",[i.PORTUGUESE]:"Português",[i.GERMAN]:"Deutsch",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"العربية",[i.AZERI_LATIN]:"Azərbaycan",[i.BELARUSIAN]:"Беларуская",[i.BULGARIAN]:"Български",[i.BOSNIAN]:"Bosanski",[i.CATALAN]:"Català",[i.CZECH]:"Čeština",[i.WELSH]:"Cymraeg",[i.DANISH]:"Dansk",[i.DIVEHI]:"ދިވެހި",[i.GREEK]:"Ελληνικά",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Eesti",[i.BASQUE]:"Euskara",[i.FARSI]:"فارسی",[i.FINNISH]:"Suomi",[i.FAROESE]:"Føroyskt",[i.GALICIAN]:"Galego",[i.GUJARATI]:"ગુજરાતી",[i.HEBREW]:"עברית",[i.HINDI]:"हिन्दी",[i.CROATIAN]:"Hrvatski",[i.HUNGARIAN]:"Magyar",[i.ARMENIAN]:"Հայերեն",[i.INDONESIAN]:"Bahasa Indonesia",[i.ICELANDIC]:"Íslenska",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"日本語",[i.GEORGIAN]:"ქართული",[i.KAZAKH]:"Қазақ",[i.KANNADA]:"ಕನ್ನಡ",[i.KOREAN]:"한국어",[i.KONKANI]:"कोंकणी",[i.KYRGYZ]:"Кыргыз",[i.LITHUANIAN]:"Lietuvių",[i.LATVIAN]:"Latviešu",[i.MAORI]:"Māori",[i.FYRO_MACEDONIAN]:"Македонски",[i.MONGOLIAN]:"Монгол",[i.MARATHI]:"मराठी",[i.MALAY]:"Bahasa Melayu",[i.MALTESE]:"Malti",[i.NORWEGIAN_BOKMAL]:"Norsk Bokmål",[i.DUTCH]:"Nederlands",[i.NORTHERN_SOTHO]:"Sesotho sa Leboa",[i.PUNJABI]:"ਪੰਜਾਬੀ",[i.POLISH]:"Polski",[i.PASHTO]:"پښتو",[i.QUECHUA]:"Runasimi",[i.ROMANIAN]:"Română",[i.RUSSIAN]:"Русский",[i.SANSKRIT]:"संस्कृतम्",[i.SAMI_NORTHERN]:"Davvisámegiella",[i.SLOVAK]:"Slovenčina",[i.SLOVENIAN]:"Slovenščina",[i.ALBANIAN]:"Shqip",[i.SERBIAN_LATIN]:"Srpski",[i.SWEDISH]:"Svenska",[i.SWEDISH_FINLAND]:"Svenska (Finland)",[i.SWEDISH_SWEDEN]:"Svenska (Sverige)",[i.SWAHILI]:"Kiswahili",[i.SYRIAC]:"ܣܘܪܝܝܐ",[i.TAMIL]:"தமிழ்",[i.TELUGU]:"తెలుగు",[i.THAI]:"ไทย",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Setswana",[i.TURKISH]:"Türkçe",[i.TATAR]:"Xitsonga",[i.UKRAINIAN]:"Українська",[i.URDU]:"اردو",[i.UZBEK_LATIN]:"O‘zbekcha",[i.VIETNAMESE]:"Tiếng Việt",[i.XHOSA]:"isiXhosa",[i.CHINESE]:"中文",[i.CHINESE_SIMPLIFIED]:"简体中文",[i.CHINESE_SIMPLIFIED_CHINA]:"简体中文 (中国)",[i.CHINESE_TRADITIONAL]:"繁體中文",[i.ZULU]:"isiZulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Suid-Afrika)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"العربية (الإمارات)",[i.ARABIC_BAHRAIN]:"العربية (البحرين)",[i.ARABIC_ALGERIA]:"العربية (الجزائر)",[i.ARABIC_EGYPT]:"العربية (مصر)",[i.ARABIC_IRAQ]:"العربية (العراق)",[i.ARABIC_JORDAN]:"العربية (الأردن)",[i.ARABIC_KUWAIT]:"العربية (الكويت)",[i.ARABIC_LEBANON]:"العربية (لبنان)",[i.ARABIC_LIBYA]:"العربية (ليبيا)",[i.ARABIC_MOROCCO]:"العربية (المغرب)",[i.ARABIC_OMAN]:"العربية (عمان)",[i.ARABIC_QATAR]:"العربية (قطر)",[i.ARABIC_SAUDI_ARABIA]:"العربية (السعودية)",[i.ARABIC_SYRIA]:"العربية (سوريا)",[i.ARABIC_TUNISIA]:"العربية (تونس)",[i.ARABIC_YEMEN]:"العربية (اليمن)",[i.AZERI_LATIN_AZERBAIJAN]:"Azərbaycan (Azərbaycan)",[i.BELARUSIAN_BELARUS]:"Беларуская (Беларусь)",[i.BULGARIAN_BULGARIA]:"Български (България)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosanski (Bosna i Hercegovina)",[i.CATALAN_SPAIN]:"Català (Espanya)",[i.CZECH_CZECH_REPUBLIC]:"Čeština (Česká republika)",[i.WELSH_UNITED_KINGDOM]:"Cymraeg (Y Deyrnas Unedig)",[i.DANISH_DENMARK]:"Dansk (Danmark)",[i.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[i.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[i.GERMAN_GERMANY]:"Deutsch (Deutschland)",[i.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[i.DIVEHI_MALDIVES]:"ދިވެހި (ދިވެހި ރާއްޖެ)",[i.GREEK_GREECE]:"Ελληνικά (Ελλάδα)",[i.ENGLISH_AUSTRALIA]:"English (Australia)",[i.ENGLISH_BELIZE]:"English (Belize)",[i.ENGLISH_CANADA]:"English (Canada)",[i.ENGLISH_CARIBBEAN]:"English (Caribbean)",[i.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[i.ENGLISH_IRELAND]:"English (Ireland)",[i.ENGLISH_JAMAICA]:"English (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[i.ENGLISH_PHILIPPINES]:"English (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[i.ENGLISH_UNITED_STATES]:"English (United States)",[i.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[i.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Español (Argentina)",[i.SPANISH_BOLIVIA]:"Español (Bolivia)",[i.SPANISH_CHILE]:"Español (Chile)",[i.SPANISH_COLOMBIA]:"Español (Colombia)",[i.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[i.SPANISH_ECUADOR]:"Español (Ecuador)",[i.SPANISH_SPAIN]:"Español (España)",[i.SPANISH_GUATEMALA]:"Español (Guatemala)",[i.SPANISH_HONDURAS]:"Español (Honduras)",[i.SPANISH_MEXICO]:"Español (México)",[i.SPANISH_NICARAGUA]:"Español (Nicaragua)",[i.SPANISH_PANAMA]:"Español (Panamá)",[i.SPANISH_PERU]:"Español (Perú)",[i.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Español (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[i.SPANISH_URUGUAY]:"Español (Uruguay)",[i.SPANISH_VENEZUELA]:"Español (Venezuela)",[i.ESTONIAN_ESTONIA]:"Eesti (Eesti)",[i.BASQUE_SPAIN]:"Euskara (Espainia)",[i.FARSI_IRAN]:"فارسی (ایران)",[i.FINNISH_FINLAND]:"Suomi (Suomi)",[i.FAROESE_FAROE_ISLANDS]:"Føroyskt (Føroyar)",[i.FRENCH_BELGIUM]:"Français (Belgique)",[i.FRENCH_CANADA]:"Français (Canada)",[i.FRENCH_SWITZERLAND]:"Français (Suisse)",[i.FRENCH_FRANCE]:"Français (France)",[i.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Monaco)",[i.GALICIAN_SPAIN]:"Galego (España)",[i.GUJARATI_INDIA]:"ગુજરાતી (ભારત)",[i.HEBREW_ISRAEL]:"עברית (ישראל)",[i.HINDI_INDIA]:"हिन्दी (भारत)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Hrvatski (Bosna i Hercegovina)",[i.CROATIAN_CROATIA]:"Hrvatski (Hrvatska)",[i.HUNGARIAN_HUNGARY]:"Magyar (Magyarország)",[i.ARMENIAN_ARMENIA]:"Հայերեն (Հայաստան)",[i.INDONESIAN_INDONESIA]:"Bahasa Indonesia (Indonesia)",[i.ICELANDIC_ICELAND]:"Íslenska (Ísland)",[i.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"日本語 (日本)",[i.GEORGIAN_GEORGIA]:"ქართული (საქართველო)",[i.KAZAKH_KAZAKHSTAN]:"Қазақ (Қазақстан)",[i.KANNADA_INDIA]:"ಕನ್ನಡ (ಭಾರತ)",[i.KOREAN_KOREA]:"한국어 (대한민국)",[i.KONKANI_INDIA]:"कोंकणी (भारत)",[i.KYRGYZ_KYRGYZSTAN]:"Кыргыз (Кыргызстан)",[i.LITHUANIAN_LITHUANIA]:"Lietuvių (Lietuva)",[i.LATVIAN_LATVIA]:"Latviešu (Latvija)",[i.MAORI_NEW_ZEALAND]:"Māori (Aotearoa)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Македонски (Македонија)",[i.MONGOLIAN_MONGOLIA]:"Монгол (Монгол)",[i.MARATHI_INDIA]:"मराठी (भारत)",[i.MALAY_BRUNEI_DARUSSALAM]:"Bahasa Melayu (Brunei)",[i.MALAY_MALAYSIA]:"Bahasa Melayu (Malaysia)",[i.MALTESE_MALTA]:"Malti (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norsk Bokmål (Norge)",[i.DUTCH_BELGIUM]:"Nederlands (België)",[i.DUTCH_NETHERLANDS]:"Nederlands (Nederland)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norsk Nynorsk (Norge)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sesotho sa Leboa (South Africa)",[i.PUNJABI_INDIA]:"ਪੰਜਾਬੀ (ਭਾਰਤ)",[i.POLISH_POLAND]:"Polski (Polska)",[i.PASHTO_AFGHANISTAN]:"پښتو (افغانستان)",[i.PORTUGUESE_BRAZIL]:"Português (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[i.QUECHUA_BOLIVIA]:"Runasimi (Bolivia)",[i.QUECHUA_ECUADOR]:"Runasimi (Ecuador)",[i.QUECHUA_PERU]:"Runasimi (Perú)",[i.ROMANIAN_ROMANIA]:"Română (România)",[i.RUSSIAN_RUSSIA]:"Русский (Россия)",[i.SANSKRIT_INDIA]:"संस्कृतम् (भारत)",[i.SAMI_NORTHERN_FINLAND]:"Davvisámegiella (Suomi)",[i.SAMI_NORTHERN_NORWAY]:"Davvisámegiella (Norge)",[i.SAMI_NORTHERN_SWEDEN]:"Davvisámegiella (Sverige)",[i.SLOVAK_SLOVAKIA]:"Slovenčina (Slovensko)",[i.SLOVENIAN_SLOVENIA]:"Slovenščina (Slovenija)",[i.ALBANIAN_ALBANIA]:"Shqip (Shqipëria)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Srpski (Bosna i Hercegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Srpski (Srbija i Crna Gora)",[i.SWAHILI_KENYA]:"Kiswahili (Kenya)",[i.SYRIAC_SYRIA]:"ܣܘܪܝܝܐ (ܣܘܪܝܐ)",[i.TAMIL_INDIA]:"தமிழ் (இந்தியா)",[i.TELUGU_INDIA]:"తెలుగు (భారతదేశం)",[i.THAI_THAILAND]:"ไทย (ประเทศไทย)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Pilipinas)",[i.TSWANA_SOUTH_AFRICA]:"Setswana (Aforika Borwa)",[i.TURKISH_TURKEY]:"Türkçe (Türkiye)",[i.TATAR_RUSSIA]:"Татар (Россия)",[i.TSOGA]:"Xitsonga",[i.UKRAINIAN_UKRAINE]:"Українська (Україна)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"اردو (پاکستان)",[i.UZBEK_LATIN_UZBEKISTAN]:"O‘zbekcha (O‘zbekiston)",[i.VIETNAMESE_VIET_NAM]:"Tiếng Việt (Việt Nam)",[i.XHOSA_SOUTH_AFRICA]:"isiXhosa (South Africa)",[i.CHINESE_HONG_KONG]:"中文 (香港)",[i.CHINESE_MACAU]:"中文 (澳門)",[i.CHINESE_SINGAPORE]:"中文 (新加坡)",[i.ZULU_SOUTH_AFRICA]:"isiZulu (South Africa)"},Ep={[i.ENGLISH]:"Inglês",[i.FRENCH]:"Francês",[i.SPANISH]:"Espanhol",[i.PORTUGUESE]:"Português",[i.GERMAN]:"Alemão",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Árabe",[i.AZERI_LATIN]:"Azeri Latim",[i.BELARUSIAN]:"Bielorrusso",[i.BULGARIAN]:"Búlgaro",[i.BOSNIAN]:"Bósnio",[i.CATALAN]:"Catalão",[i.CZECH]:"Tcheco",[i.WELSH]:"Galês",[i.DANISH]:"Dinamarquês",[i.DIVEHI]:"Divehi",[i.GREEK]:"Grego",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estoniano",[i.BASQUE]:"Basco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finlandês",[i.FAROESE]:"Feroês",[i.GALICIAN]:"Galego",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebraico",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croata",[i.HUNGARIAN]:"Húngaro",[i.ARMENIAN]:"Armênio",[i.INDONESIAN]:"Indonésio",[i.ICELANDIC]:"Islandês",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Japonês",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Cazaque",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Quirguiz",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Letão",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macedônio FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malaio",[i.MALTESE]:"Maltês",[i.NORWEGIAN_BOKMAL]:"Norueguês Bokmål",[i.DUTCH]:"Holandês",[i.NORTHERN_SOTHO]:"Sotho do Norte",[i.PUNJABI]:"Panjabi",[i.POLISH]:"Polonês",[i.PASHTO]:"Pastó",[i.QUECHUA]:"Quíchua",[i.ROMANIAN]:"Romeno",[i.RUSSIAN]:"Russo",[i.SANSKRIT]:"Sânscrito",[i.SAMI_NORTHERN]:"Sami do Norte",[i.SLOVAK]:"Eslovaco",[i.SLOVENIAN]:"Esloveno",[i.ALBANIAN]:"Albanês",[i.SERBIAN_LATIN]:"Sérvio Latino",[i.SWEDISH]:"Sueco",[i.SWEDISH_FINLAND]:"Sueco (Finlândia)",[i.SWEDISH_SWEDEN]:"Sueco (Suécia)",[i.SWAHILI]:"Suaíli",[i.SYRIAC]:"Siríaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Tailandês",[i.TAGALOG]:"Tagalo",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tártaro",[i.UKRAINIAN]:"Ucraniano",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeque Latim",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinês",[i.CHINESE_SIMPLIFIED]:"Chinês Simplificado",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinês Simplificado (China)",[i.CHINESE_TRADITIONAL]:"Chinês Tradicional",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (África do Sul)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emirados Árabes Unidos)",[i.ARABIC_BAHRAIN]:"Árabe (Bahrein)",[i.ARABIC_ALGERIA]:"Árabe (Argélia)",[i.ARABIC_EGYPT]:"Árabe (Egito)",[i.ARABIC_IRAQ]:"Árabe (Iraque)",[i.ARABIC_JORDAN]:"Árabe (Jordânia)",[i.ARABIC_KUWAIT]:"Árabe (Cuwait)",[i.ARABIC_LEBANON]:"Árabe (Líbano)",[i.ARABIC_LIBYA]:"Árabe (Líbia)",[i.ARABIC_MOROCCO]:"Árabe (Marrocos)",[i.ARABIC_OMAN]:"Árabe (Omã)",[i.ARABIC_QATAR]:"Árabe (Catar)",[i.ARABIC_SAUDI_ARABIA]:"Árabe (Arábia Saudita)",[i.ARABIC_SYRIA]:"Árabe (Síria)",[i.ARABIC_TUNISIA]:"Árabe (Tunísia)",[i.ARABIC_YEMEN]:"Árabe (Iêmen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azeri Latim (Azerbaijão)",[i.BELARUSIAN_BELARUS]:"Bielorrusso (Bielorrússia)",[i.BULGARIAN_BULGARIA]:"Búlgaro (Bulgária)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bósnio (Bósnia e Herzegovina)",[i.CATALAN_SPAIN]:"Catalão (Espanha)",[i.CZECH_CZECH_REPUBLIC]:"Tcheco (República Tcheca)",[i.WELSH_UNITED_KINGDOM]:"Galês (Reino Unido)",[i.DANISH_DENMARK]:"Dinamarquês (Dinamarca)",[i.GERMAN_AUSTRIA]:"Alemão (Áustria)",[i.GERMAN_SWITZERLAND]:"Alemão (Suíça)",[i.GERMAN_GERMANY]:"Alemão (Alemanha)",[i.GERMAN_LIECHTENSTEIN]:"Alemão (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Alemão (Luxemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[i.GREEK_GREECE]:"Grego (Grécia)",[i.ENGLISH_AUSTRALIA]:"Inglês (Austrália)",[i.ENGLISH_BELIZE]:"Inglês (Belize)",[i.ENGLISH_CANADA]:"Inglês (Canadá)",[i.ENGLISH_CARIBBEAN]:"Inglês (Caribe)",[i.ENGLISH_UNITED_KINGDOM]:"Inglês (Reino Unido)",[i.ENGLISH_IRELAND]:"Inglês (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglês (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglês (Nova Zelândia)",[i.ENGLISH_PHILIPPINES]:"Inglês (Filipinas)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglês (Trinidad e Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglês (Estados Unidos)",[i.ENGLISH_SOUTH_AFRICA]:"Inglês (África do Sul)",[i.ENGLISH_ZIMBABWE]:"Inglês (Zimbábue)",[i.SPANISH_ARGENTINA]:"Espanhol (Argentina)",[i.SPANISH_BOLIVIA]:"Espanhol (Bolívia)",[i.SPANISH_CHILE]:"Espanhol (Chile)",[i.SPANISH_COLOMBIA]:"Espanhol (Colômbia)",[i.SPANISH_COSTA_RICA]:"Espanhol (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Espanhol (República Dominicana)",[i.SPANISH_ECUADOR]:"Espanhol (Equador)",[i.SPANISH_SPAIN]:"Espanhol (Espanha)",[i.SPANISH_GUATEMALA]:"Espanhol (Guatemala)",[i.SPANISH_HONDURAS]:"Espanhol (Honduras)",[i.SPANISH_MEXICO]:"Espanhol (México)",[i.SPANISH_NICARAGUA]:"Espanhol (Nicarágua)",[i.SPANISH_PANAMA]:"Espanhol (Panamá)",[i.SPANISH_PERU]:"Espanhol (Peru)",[i.SPANISH_PUERTO_RICO]:"Espanhol (Porto Rico)",[i.SPANISH_PARAGUAY]:"Espanhol (Paraguai)",[i.SPANISH_EL_SALVADOR]:"Espanhol (El Salvador)",[i.SPANISH_URUGUAY]:"Espanhol (Uruguai)",[i.SPANISH_VENEZUELA]:"Espanhol (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estoniano (Estônia)",[i.BASQUE_SPAIN]:"Basco (Espanha)",[i.FARSI_IRAN]:"Farsi (Irã)",[i.FINNISH_FINLAND]:"Finlandês (Finlândia)",[i.FAROESE_FAROE_ISLANDS]:"Feroês (Ilhas Faroe)",[i.FRENCH_BELGIUM]:"Francês (Bélgica)",[i.FRENCH_CANADA]:"Francês (Canadá)",[i.FRENCH_SWITZERLAND]:"Francês (Suíça)",[i.FRENCH_FRANCE]:"Francês (França)",[i.FRENCH_LUXEMBOURG]:"Francês (Luxemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francês (Principado de Mônaco)",[i.GALICIAN_SPAIN]:"Galego (Espanha)",[i.GUJARATI_INDIA]:"Gujarati (Índia)",[i.HEBREW_ISRAEL]:"Hebraico (Israel)",[i.HINDI_INDIA]:"Hindi (Índia)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bósnia e Herzegovina)",[i.CROATIAN_CROATIA]:"Croata (Croácia)",[i.HUNGARIAN_HUNGARY]:"Húngaro (Hungria)",[i.ARMENIAN_ARMENIA]:"Armênio (Armênia)",[i.INDONESIAN_INDONESIA]:"Indonésio (Indonésia)",[i.ICELANDIC_ICELAND]:"Islandês (Islândia)",[i.ITALIAN_SWITZERLAND]:"Italiano (Suíça)",[i.ITALIAN_ITALY]:"Italiano (Itália)",[i.JAPANESE_JAPAN]:"Japonês (Japão)",[i.GEORGIAN_GEORGIA]:"Georgiano (Geórgia)",[i.KAZAKH_KAZAKHSTAN]:"Cazaque (Cazaquistão)",[i.KANNADA_INDIA]:"Kannada (Índia)",[i.KOREAN_KOREA]:"Coreano (Coreia)",[i.KONKANI_INDIA]:"Konkani (Índia)",[i.KYRGYZ_KYRGYZSTAN]:"Quirguiz (Quirguistão)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituânia)",[i.LATVIAN_LATVIA]:"Letão (Letônia)",[i.MAORI_NEW_ZEALAND]:"Maori (Nova Zelândia)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedônio FYRO (Macedônia)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongólia)",[i.MARATHI_INDIA]:"Marathi (Índia)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malaio (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malaio (Malásia)",[i.MALTESE_MALTA]:"Maltês (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norueguês Bokmål (Noruega)",[i.DUTCH_BELGIUM]:"Holandês (Bélgica)",[i.DUTCH_NETHERLANDS]:"Holandês (Países Baixos)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norueguês Nynorsk (Noruega)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho do Norte (África do Sul)",[i.PUNJABI_INDIA]:"Panjabi (Índia)",[i.POLISH_POLAND]:"Polonês (Polônia)",[i.PASHTO_AFGHANISTAN]:"Pastó (Afeganistão)",[i.PORTUGUESE_BRAZIL]:"Português (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[i.QUECHUA_BOLIVIA]:"Quíchua (Bolívia)",[i.QUECHUA_ECUADOR]:"Quíchua (Equador)",[i.QUECHUA_PERU]:"Quíchua (Peru)",[i.ROMANIAN_ROMANIA]:"Romeno (Romênia)",[i.RUSSIAN_RUSSIA]:"Russo (Rússia)",[i.SANSKRIT_INDIA]:"Sânscrito (Índia)",[i.SAMI_NORTHERN_FINLAND]:"Sami do Norte (Finlândia)",[i.SAMI_NORTHERN_NORWAY]:"Sami do Norte (Noruega)",[i.SAMI_NORTHERN_SWEDEN]:"Sami do Norte (Suécia)",[i.SLOVAK_SLOVAKIA]:"Eslovaco (Eslováquia)",[i.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovênia)",[i.ALBANIAN_ALBANIA]:"Albanês (Albânia)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Sérvio Latino (Bósnia e Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Sérvio Latino (Sérvia e Montenegro)",[i.SWAHILI_KENYA]:"Suaíli (Quênia)",[i.SYRIAC_SYRIA]:"Siríaco (Síria)",[i.TAMIL_INDIA]:"Tamil (Índia)",[i.TELUGU_INDIA]:"Telugu (Índia)",[i.THAI_THAILAND]:"Tailandês (Tailândia)",[i.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (África do Sul)",[i.TURKISH_TURKEY]:"Turco (Turquia)",[i.TATAR_RUSSIA]:"Tártaro (Rússia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrânia)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islâmica do Paquistão)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeque Latim (Uzbequistão)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnã)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (África do Sul)",[i.CHINESE_HONG_KONG]:"Chinês (Hong Kong)",[i.CHINESE_MACAU]:"Chinês (Macau)",[i.CHINESE_SINGAPORE]:"Chinês (Singapura)",[i.ZULU_SOUTH_AFRICA]:"Zulu (África do Sul)"},J3={[i.ENGLISH]:"Английский",[i.FRENCH]:"Французский",[i.SPANISH]:"Испанский",[i.PORTUGUESE]:"Португальский",[i.GERMAN]:"Немецкий",[i.AFRIKAANS]:"Африкаанс",[i.ARABIC]:"Арабский",[i.AZERI_LATIN]:"Азербайджанский (латиница)",[i.BELARUSIAN]:"Белорусский",[i.BULGARIAN]:"Болгарский",[i.BOSNIAN]:"Боснийский",[i.CATALAN]:"Каталанский",[i.CZECH]:"Чешский",[i.WELSH]:"Уэльский",[i.DANISH]:"Датский",[i.DIVEHI]:"Дивехи",[i.GREEK]:"Греческий",[i.ESPERANTO]:"Эсперанто",[i.ESTONIAN]:"Эстонский",[i.BASQUE]:"Баскский",[i.FARSI]:"Персидский",[i.FINNISH]:"Финский",[i.FAROESE]:"Фарерский",[i.GALICIAN]:"Галисийский",[i.GUJARATI]:"Гуджарати",[i.HEBREW]:"Иврит",[i.HINDI]:"Хинди",[i.CROATIAN]:"Хорватский",[i.HUNGARIAN]:"Венгерский",[i.ARMENIAN]:"Армянский",[i.INDONESIAN]:"Индонезийский",[i.ICELANDIC]:"Исландский",[i.ITALIAN]:"Итальянский",[i.JAPANESE]:"Японский",[i.GEORGIAN]:"Грузинский",[i.KAZAKH]:"Казахский",[i.KANNADA]:"Каннада",[i.KOREAN]:"Корейский",[i.KONKANI]:"Конкани",[i.KYRGYZ]:"Кыргызский",[i.LITHUANIAN]:"Литовский",[i.LATVIAN]:"Латвийский",[i.MAORI]:"Маори",[i.FYRO_MACEDONIAN]:"Македонский (бывшая Югославия)",[i.MONGOLIAN]:"Монгольский",[i.MARATHI]:"Марати",[i.MALAY]:"Малайский",[i.MALTESE]:"Мальтийский",[i.NORWEGIAN_BOKMAL]:"Норвежский (букмол)",[i.DUTCH]:"Нидерландский",[i.NORTHERN_SOTHO]:"Сото северный",[i.PUNJABI]:"Панджаби",[i.POLISH]:"Польский",[i.PASHTO]:"Пушту",[i.QUECHUA]:"Кечуа",[i.ROMANIAN]:"Румынский",[i.RUSSIAN]:"Русский",[i.SANSKRIT]:"Санскрит",[i.SAMI_NORTHERN]:"Саамский северный",[i.SLOVAK]:"Словацкий",[i.SLOVENIAN]:"Словенский",[i.ALBANIAN]:"Албанский",[i.SERBIAN_LATIN]:"Сербский (латиница)",[i.SWEDISH]:"Шведский",[i.SWEDISH_FINLAND]:"Шведский (Финляндия)",[i.SWEDISH_SWEDEN]:"Шведский (Швеция)",[i.SWAHILI]:"Свахили",[i.SYRIAC]:"Сирийский",[i.TAMIL]:"Тамильский",[i.TELUGU]:"Телугу",[i.THAI]:"Тайский",[i.TAGALOG]:"Тагальский",[i.TSWANA]:"Цвана",[i.TURKISH]:"Турецкий",[i.TATAR]:"Татарский",[i.UKRAINIAN]:"Украинский",[i.URDU]:"Урду",[i.UZBEK_LATIN]:"Узбекский (латиница)",[i.VIETNAMESE]:"Вьетнамский",[i.XHOSA]:"Коса",[i.CHINESE]:"Китайский",[i.CHINESE_SIMPLIFIED]:"Китайский (упрощенный)",[i.CHINESE_SIMPLIFIED_CHINA]:"Китайский (упрощенный, Китай)",[i.CHINESE_TRADITIONAL]:"Китайский (традиционный)",[i.ZULU]:"Зулу",[i.AFRIKAANS_SOUTH_AFRICA]:"Африкаанс (Южная Африка)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Арабский (Объединенные Арабские Эмираты)",[i.ARABIC_BAHRAIN]:"Арабский (Бахрейн)",[i.ARABIC_ALGERIA]:"Арабский (Алжир)",[i.ARABIC_EGYPT]:"Арабский (Египет)",[i.ARABIC_IRAQ]:"Арабский (Ирак)",[i.ARABIC_JORDAN]:"Арабский (Иордания)",[i.ARABIC_KUWAIT]:"Арабский (Кувейт)",[i.ARABIC_LEBANON]:"Арабский (Ливан)",[i.ARABIC_LIBYA]:"Арабский (Ливия)",[i.ARABIC_MOROCCO]:"Арабский (Марокко)",[i.ARABIC_OMAN]:"Арабский (Оман)",[i.ARABIC_QATAR]:"Арабский (Катар)",[i.ARABIC_SAUDI_ARABIA]:"Арабский (Саудовская Аравия)",[i.ARABIC_SYRIA]:"Арабский (Сирия)",[i.ARABIC_TUNISIA]:"Арабский (Тунис)",[i.ARABIC_YEMEN]:"Арабский (Йемен)",[i.AZERI_LATIN_AZERBAIJAN]:"Азербайджанский (латиница, Азербайджан)",[i.BELARUSIAN_BELARUS]:"Белорусский (Беларусь)",[i.BULGARIAN_BULGARIA]:"Болгарский (Болгария)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Боснийский (Босния и Герцеговина)",[i.CATALAN_SPAIN]:"Каталанский (Испания)",[i.CZECH_CZECH_REPUBLIC]:"Чешский (Чешская Республика)",[i.WELSH_UNITED_KINGDOM]:"Уэльский (Великобритания)",[i.DANISH_DENMARK]:"Датский (Дания)",[i.GERMAN_AUSTRIA]:"Немецкий (Австрия)",[i.GERMAN_SWITZERLAND]:"Немецкий (Швейцария)",[i.GERMAN_GERMANY]:"Немецкий (Германия)",[i.GERMAN_LIECHTENSTEIN]:"Немецкий (Лихтенштейн)",[i.GERMAN_LUXEMBOURG]:"Немецкий (Люксембург)",[i.DIVEHI_MALDIVES]:"Дивехи (Мальдивы)",[i.GREEK_GREECE]:"Греческий (Греция)",[i.ENGLISH_AUSTRALIA]:"Английский (Австралия)",[i.ENGLISH_BELIZE]:"Английский (Белиз)",[i.ENGLISH_CANADA]:"Английский (Канада)",[i.ENGLISH_CARIBBEAN]:"Английский (Карибы)",[i.ENGLISH_UNITED_KINGDOM]:"Английский (Великобритания)",[i.ENGLISH_IRELAND]:"Английский (Ирландия)",[i.ENGLISH_JAMAICA]:"Английский (Ямайка)",[i.ENGLISH_NEW_ZEALAND]:"Английский (Новая Зеландия)",[i.ENGLISH_PHILIPPINES]:"Английский (Филиппины)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Английский (Тринидад и Тобаго)",[i.ENGLISH_UNITED_STATES]:"Английский (Соединенные Штаты)",[i.ENGLISH_SOUTH_AFRICA]:"Английский (Южная Африка)",[i.ENGLISH_ZIMBABWE]:"Английский (Зимбабве)",[i.SPANISH_ARGENTINA]:"Испанский (Аргентина)",[i.SPANISH_BOLIVIA]:"Испанский (Боливия)",[i.SPANISH_CHILE]:"Испанский (Чили)",[i.SPANISH_COLOMBIA]:"Испанский (Колумбия)",[i.SPANISH_COSTA_RICA]:"Испанский (Коста-Рика)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Испанский (Доминиканская Республика)",[i.SPANISH_ECUADOR]:"Испанский (Эквадор)",[i.SPANISH_SPAIN]:"Испанский (Испания)",[i.SPANISH_GUATEMALA]:"Испанский (Гватемала)",[i.SPANISH_HONDURAS]:"Испанский (Гондурас)",[i.SPANISH_MEXICO]:"Испанский (Мексика)",[i.SPANISH_NICARAGUA]:"Испанский (Никарагуа)",[i.SPANISH_PANAMA]:"Испанский (Панама)",[i.SPANISH_PERU]:"Испанский (Перу)",[i.SPANISH_PUERTO_RICO]:"Испанский (Пуэрто-Рико)",[i.SPANISH_PARAGUAY]:"Испанский (Парагвай)",[i.SPANISH_EL_SALVADOR]:"Испанский (Сальвадор)",[i.SPANISH_URUGUAY]:"Испанский (Уругвай)",[i.SPANISH_VENEZUELA]:"Испанский (Венесуэла)",[i.ESTONIAN_ESTONIA]:"Эстонский (Эстония)",[i.BASQUE_SPAIN]:"Баскский (Испания)",[i.FARSI_IRAN]:"Персидский (Иран)",[i.FINNISH_FINLAND]:"Финский (Финляндия)",[i.FAROESE_FAROE_ISLANDS]:"Фарерский (Фарерские острова)",[i.FRENCH_BELGIUM]:"Французский (Бельгия)",[i.FRENCH_CANADA]:"Французский (Канада)",[i.FRENCH_SWITZERLAND]:"Французский (Швейцария)",[i.FRENCH_FRANCE]:"Французский (Франция)",[i.FRENCH_LUXEMBOURG]:"Французский (Люксембург)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Французский (Монако)",[i.GALICIAN_SPAIN]:"Галисийский (Испания)",[i.GUJARATI_INDIA]:"Гуджарати (Индия)",[i.HEBREW_ISRAEL]:"Иврит (Израиль)",[i.HINDI_INDIA]:"Хинди (Индия)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Хорватский (Босния и Герцеговина)",[i.CROATIAN_CROATIA]:"Хорватский (Хорватия)",[i.HUNGARIAN_HUNGARY]:"Венгерский (Венгрия)",[i.ARMENIAN_ARMENIA]:"Армянский (Армения)",[i.INDONESIAN_INDONESIA]:"Индонезийский (Индонезия)",[i.ICELANDIC_ICELAND]:"Исландский (Исландия)",[i.ITALIAN_SWITZERLAND]:"Итальянский (Швейцария)",[i.ITALIAN_ITALY]:"Итальянский (Италия)",[i.JAPANESE_JAPAN]:"Японский (Япония)",[i.GEORGIAN_GEORGIA]:"Грузинский (Грузия)",[i.KAZAKH_KAZAKHSTAN]:"Казахский (Казахстан)",[i.KANNADA_INDIA]:"Каннада (Индия)",[i.KOREAN_KOREA]:"Корейский (Корея)",[i.KONKANI_INDIA]:"Конкани (Индия)",[i.KYRGYZ_KYRGYZSTAN]:"Кыргызский (Кыргызстан)",[i.LITHUANIAN_LITHUANIA]:"Литовский (Литва)",[i.LATVIAN_LATVIA]:"Латвийский (Латвия)",[i.MAORI_NEW_ZEALAND]:"Маори (Новая Зеландия)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Македонский (бывшая Югославия, Македония)",[i.MONGOLIAN_MONGOLIA]:"Монгольский (Монголия)",[i.MARATHI_INDIA]:"Марати (Индия)",[i.MALAY_BRUNEI_DARUSSALAM]:"Малайский (Бруней-Даруссалам)",[i.MALAY_MALAYSIA]:"Малайский (Малайзия)",[i.MALTESE_MALTA]:"Мальтийский (Мальта)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Норвежский (букмол, Норвегия)",[i.DUTCH_BELGIUM]:"Нидерландский (Бельгия)",[i.DUTCH_NETHERLANDS]:"Нидерландский (Нидерланды)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Норвежский (нюнорск, Норвегия)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Сото северный (Южная Африка)",[i.PUNJABI_INDIA]:"Панджаби (Индия)",[i.POLISH_POLAND]:"Польский (Польша)",[i.PASHTO_AFGHANISTAN]:"Пушту (Афганистан)",[i.PORTUGUESE_BRAZIL]:"Португальский (Бразилия)",[i.PORTUGUESE_PORTUGAL]:"Португальский (Португалия)",[i.QUECHUA_BOLIVIA]:"Кечуа (Боливия)",[i.QUECHUA_ECUADOR]:"Кечуа (Эквадор)",[i.QUECHUA_PERU]:"Кечуа (Перу)",[i.ROMANIAN_ROMANIA]:"Румынский (Румыния)",[i.RUSSIAN_RUSSIA]:"Русский (Россия)",[i.SANSKRIT_INDIA]:"Санскрит (Индия)",[i.SAMI_NORTHERN_FINLAND]:"Саамский северный (Финляндия)",[i.SAMI_NORTHERN_NORWAY]:"Саамский северный (Норвегия)",[i.SAMI_NORTHERN_SWEDEN]:"Саамский северный (Швеция)",[i.SLOVAK_SLOVAKIA]:"Словацкий (Словакия)",[i.SLOVENIAN_SLOVENIA]:"Словенский (Словения)",[i.ALBANIAN_ALBANIA]:"Албанский (Албания)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Сербский (латиница, Босния и Герцеговина)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Сербский (латиница, Сербия и Черногория)",[i.SWAHILI_KENYA]:"Свахили (Кения)",[i.SYRIAC_SYRIA]:"Сирийский (Сирия)",[i.TAMIL_INDIA]:"Тамильский (Индия)",[i.TELUGU_INDIA]:"Телугу (Индия)",[i.THAI_THAILAND]:"Тайский (Таиланд)",[i.TAGALOG_PHILIPPINES]:"Тагальский (Филиппины)",[i.TSWANA_SOUTH_AFRICA]:"Цвана (Южная Африка)",[i.TURKISH_TURKEY]:"Турецкий (Турция)",[i.TATAR_RUSSIA]:"Татарский (Россия)",[i.TSOGA]:"Цога",[i.UKRAINIAN_UKRAINE]:"Украинский (Украина)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Урду (Исламская Республика Пакистан)",[i.UZBEK_LATIN_UZBEKISTAN]:"Узбекский (латиница, Узбекистан)",[i.VIETNAMESE_VIET_NAM]:"Вьетнамский (Вьетнам)",[i.XHOSA_SOUTH_AFRICA]:"Коса (Южная Африка)",[i.CHINESE_HONG_KONG]:"Китайский (Гонконг)",[i.CHINESE_MACAU]:"Китайский (Макао)",[i.CHINESE_SINGAPORE]:"Китайский (Сингапур)",[i.ZULU_SOUTH_AFRICA]:"Зулу (Южная Африка)"},fa={[i.ENGLISH]:"英语",[i.FRENCH]:"法语",[i.SPANISH]:"西班牙语",[i.PORTUGUESE]:"葡萄牙语",[i.GERMAN]:"德语",[i.AFRIKAANS]:"南非荷兰语",[i.ARABIC]:"阿拉伯语",[i.AZERI_LATIN]:"阿塞拜疆语(拉丁字母)",[i.BELARUSIAN]:"白俄罗斯语",[i.BULGARIAN]:"保加利亚语",[i.BOSNIAN]:"波斯尼亚语",[i.CATALAN]:"加泰罗尼亚语",[i.CZECH]:"捷克语",[i.WELSH]:"威尔士语",[i.DANISH]:"丹麦语",[i.DIVEHI]:"迪维希语",[i.GREEK]:"希腊语",[i.ESPERANTO]:"世界语",[i.ESTONIAN]:"爱沙尼亚语",[i.BASQUE]:"巴斯克语",[i.FARSI]:"波斯语",[i.FINNISH]:"芬兰语",[i.FAROESE]:"法罗语",[i.GALICIAN]:"加利西亚语",[i.GUJARATI]:"古吉拉特语",[i.HEBREW]:"希伯来语",[i.HINDI]:"印地语",[i.CROATIAN]:"克罗地亚语",[i.HUNGARIAN]:"匈牙利语",[i.ARMENIAN]:"亚美尼亚语",[i.INDONESIAN]:"印尼语",[i.ICELANDIC]:"冰岛语",[i.ITALIAN]:"意大利语",[i.JAPANESE]:"日语",[i.GEORGIAN]:"格鲁吉亚语",[i.KAZAKH]:"哈萨克语",[i.KANNADA]:"卡纳达语",[i.KOREAN]:"韩语",[i.KONKANI]:"孔卡尼语",[i.KYRGYZ]:"吉尔吉斯语",[i.LITHUANIAN]:"立陶宛语",[i.LATVIAN]:"拉脱维亚语",[i.MAORI]:"毛利语",[i.FYRO_MACEDONIAN]:"马其顿语(前南斯拉夫)",[i.MONGOLIAN]:"蒙古语",[i.MARATHI]:"马拉地语",[i.MALAY]:"马来语",[i.MALTESE]:"马耳他语",[i.NORWEGIAN_BOKMAL]:"挪威语博克马尔",[i.DUTCH]:"荷兰语",[i.NORTHERN_SOTHO]:"北索托语",[i.PUNJABI]:"旁遮普语",[i.POLISH]:"波兰语",[i.PASHTO]:"普什图语",[i.QUECHUA]:"克丘亚语",[i.ROMANIAN]:"罗马尼亚语",[i.RUSSIAN]:"俄语",[i.SANSKRIT]:"梵语",[i.SAMI_NORTHERN]:"北萨米语",[i.SLOVAK]:"斯洛伐克语",[i.SLOVENIAN]:"斯洛文尼亚语",[i.ALBANIAN]:"阿尔巴尼亚语",[i.SERBIAN_LATIN]:"塞尔维亚语(拉丁字母)",[i.SWEDISH]:"瑞典语",[i.SWEDISH_FINLAND]:"瑞典语(芬兰)",[i.SWEDISH_SWEDEN]:"瑞典语(瑞典)",[i.SWAHILI]:"斯瓦希里语",[i.SYRIAC]:"叙利亚语",[i.TAMIL]:"泰米尔语",[i.TELUGU]:"泰卢固语",[i.THAI]:"泰语",[i.TAGALOG]:"他加禄语",[i.TSWANA]:"茨瓦纳语",[i.TURKISH]:"土耳其语",[i.TATAR]:"鞑靼语",[i.UKRAINIAN]:"乌克兰语",[i.URDU]:"乌尔都语",[i.UZBEK_LATIN]:"乌兹别克语(拉丁字母)",[i.VIETNAMESE]:"越南语",[i.XHOSA]:"科萨语",[i.CHINESE]:"中文",[i.CHINESE_SIMPLIFIED]:"中文(简体)",[i.CHINESE_SIMPLIFIED_CHINA]:"中文(简体,中国)",[i.CHINESE_TRADITIONAL]:"中文(繁体)",[i.ZULU]:"祖鲁语",[i.AFRIKAANS_SOUTH_AFRICA]:"南非荷兰语(南非)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"阿拉伯语(阿联酋)",[i.ARABIC_BAHRAIN]:"阿拉伯语(巴林)",[i.ARABIC_ALGERIA]:"阿拉伯语(阿尔及利亚)",[i.ARABIC_EGYPT]:"阿拉伯语(埃及)",[i.ARABIC_IRAQ]:"阿拉伯语(伊拉克)",[i.ARABIC_JORDAN]:"阿拉伯语(约旦)",[i.ARABIC_KUWAIT]:"阿拉伯语(科威特)",[i.ARABIC_LEBANON]:"阿拉伯语(黎巴嫩)",[i.ARABIC_LIBYA]:"阿拉伯语(利比亚)",[i.ARABIC_MOROCCO]:"阿拉伯语(摩洛哥)",[i.ARABIC_OMAN]:"阿拉伯语(阿曼)",[i.ARABIC_QATAR]:"阿拉伯语(卡塔尔)",[i.ARABIC_SAUDI_ARABIA]:"阿拉伯语(沙特阿拉伯)",[i.ARABIC_SYRIA]:"阿拉伯语(叙利亚)",[i.ARABIC_TUNISIA]:"阿拉伯语(突尼斯)",[i.ARABIC_YEMEN]:"阿拉伯语(也门)",[i.AZERI_LATIN_AZERBAIJAN]:"阿塞拜疆语(拉丁字母,阿塞拜疆)",[i.BELARUSIAN_BELARUS]:"白俄罗斯语(白俄罗斯)",[i.BULGARIAN_BULGARIA]:"保加利亚语(保加利亚)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"波斯尼亚语(波斯尼亚和黑塞哥维那)",[i.CATALAN_SPAIN]:"加泰罗尼亚语(西班牙)",[i.CZECH_CZECH_REPUBLIC]:"捷克语(捷克共和国)",[i.WELSH_UNITED_KINGDOM]:"威尔士语(英国)",[i.DANISH_DENMARK]:"丹麦语(丹麦)",[i.GERMAN_AUSTRIA]:"德语(奥地利)",[i.GERMAN_SWITZERLAND]:"德语(瑞士)",[i.GERMAN_GERMANY]:"德语(德国)",[i.GERMAN_LIECHTENSTEIN]:"德语(列支敦士登)",[i.GERMAN_LUXEMBOURG]:"德语(卢森堡)",[i.DIVEHI_MALDIVES]:"迪维希语(马尔代夫)",[i.GREEK_GREECE]:"希腊语(希腊)",[i.ENGLISH_AUSTRALIA]:"英语(澳大利亚)",[i.ENGLISH_BELIZE]:"英语(伯利兹)",[i.ENGLISH_CANADA]:"英语(加拿大)",[i.ENGLISH_CARIBBEAN]:"英语(加勒比)",[i.ENGLISH_UNITED_KINGDOM]:"英语(英国)",[i.ENGLISH_IRELAND]:"英语(爱尔兰)",[i.ENGLISH_JAMAICA]:"英语(牙买加)",[i.ENGLISH_NEW_ZEALAND]:"英语(新西兰)",[i.ENGLISH_PHILIPPINES]:"英语(菲律宾)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"英语(特立尼达和多巴哥)",[i.ENGLISH_UNITED_STATES]:"英语(美国)",[i.ENGLISH_SOUTH_AFRICA]:"英语(南非)",[i.ENGLISH_ZIMBABWE]:"英语(津巴布韦)",[i.SPANISH_ARGENTINA]:"西班牙语(阿根廷)",[i.SPANISH_BOLIVIA]:"西班牙语(玻利维亚)",[i.SPANISH_CHILE]:"西班牙语(智利)",[i.SPANISH_COLOMBIA]:"西班牙语(哥伦比亚)",[i.SPANISH_COSTA_RICA]:"西班牙语(哥斯达黎加)",[i.SPANISH_DOMINICAN_REPUBLIC]:"西班牙语(多米尼加共和国)",[i.SPANISH_ECUADOR]:"西班牙语(厄瓜多尔)",[i.SPANISH_SPAIN]:"西班牙语(西班牙)",[i.SPANISH_GUATEMALA]:"西班牙语(危地马拉)",[i.SPANISH_HONDURAS]:"西班牙语(洪都拉斯)",[i.SPANISH_MEXICO]:"西班牙语(墨西哥)",[i.SPANISH_NICARAGUA]:"西班牙语(尼加拉瓜)",[i.SPANISH_PANAMA]:"西班牙语(巴拿马)",[i.SPANISH_PERU]:"西班牙语(秘鲁)",[i.SPANISH_PUERTO_RICO]:"西班牙语(波多黎各)",[i.SPANISH_PARAGUAY]:"西班牙语(巴拉圭)",[i.SPANISH_EL_SALVADOR]:"西班牙语(萨尔瓦多)",[i.SPANISH_URUGUAY]:"西班牙语(乌拉圭)",[i.SPANISH_VENEZUELA]:"西班牙语(委内瑞拉)",[i.ESTONIAN_ESTONIA]:"爱沙尼亚语(爱沙尼亚)",[i.BASQUE_SPAIN]:"巴斯克语(西班牙)",[i.FARSI_IRAN]:"波斯语(伊朗)",[i.FINNISH_FINLAND]:"芬兰语(芬兰)",[i.FAROESE_FAROE_ISLANDS]:"法罗语(法罗群岛)",[i.FRENCH_BELGIUM]:"法语(比利时)",[i.FRENCH_CANADA]:"法语(加拿大)",[i.FRENCH_SWITZERLAND]:"法语(瑞士)",[i.FRENCH_FRANCE]:"法语(法国)",[i.FRENCH_LUXEMBOURG]:"法语(卢森堡)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"法语(摩纳哥公国)",[i.GALICIAN_SPAIN]:"加利西亚语(西班牙)",[i.GUJARATI_INDIA]:"古吉拉特语(印度)",[i.HEBREW_ISRAEL]:"希伯来语(以色列)",[i.HINDI_INDIA]:"印地语(印度)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"克罗地亚语(波斯尼亚和黑塞哥维那)",[i.CROATIAN_CROATIA]:"克罗地亚语(克罗地亚)",[i.HUNGARIAN_HUNGARY]:"匈牙利语(匈牙利)",[i.ARMENIAN_ARMENIA]:"亚美尼亚语(亚美尼亚)",[i.INDONESIAN_INDONESIA]:"印尼语(印度尼西亚)",[i.ICELANDIC_ICELAND]:"冰岛语(冰岛)",[i.ITALIAN_SWITZERLAND]:"意大利语(瑞士)",[i.ITALIAN_ITALY]:"意大利语(意大利)",[i.JAPANESE_JAPAN]:"日语(日本)",[i.GEORGIAN_GEORGIA]:"格鲁吉亚语(格鲁吉亚)",[i.KAZAKH_KAZAKHSTAN]:"哈萨克语(哈萨克斯坦)",[i.KANNADA_INDIA]:"卡纳达语(印度)",[i.KOREAN_KOREA]:"韩语(韩国)",[i.KONKANI_INDIA]:"孔卡尼语(印度)",[i.KYRGYZ_KYRGYZSTAN]:"吉尔吉斯语(吉尔吉斯斯坦)",[i.LITHUANIAN_LITHUANIA]:"立陶宛语(立陶宛)",[i.LATVIAN_LATVIA]:"拉脱维亚语(拉脱维亚)",[i.MAORI_NEW_ZEALAND]:"毛利语(新西兰)",[i.FYRO_MACEDONIAN_MACEDONIA]:"马其顿语(前南斯拉夫,马其顿)",[i.MONGOLIAN_MONGOLIA]:"蒙古语(蒙古)",[i.MARATHI_INDIA]:"马拉地语(印度)",[i.MALAY_BRUNEI_DARUSSALAM]:"马来语(文莱达鲁萨兰)",[i.MALAY_MALAYSIA]:"马来语(马来西亚)",[i.MALTESE_MALTA]:"马耳他语(马耳他)",[i.NORWEGIAN_BOKMAL_NORWAY]:"挪威语博克马尔(挪威)",[i.DUTCH_BELGIUM]:"荷兰语(比利时)",[i.DUTCH_NETHERLANDS]:"荷兰语(荷兰)",[i.NORWEGIAN_NYNORSK_NORWAY]:"挪威语尼诺斯克(挪威)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"北索托语(南非)",[i.PUNJABI_INDIA]:"旁遮普语(印度)",[i.POLISH_POLAND]:"波兰语(波兰)",[i.PASHTO_AFGHANISTAN]:"普什图语(阿富汗)",[i.PORTUGUESE_BRAZIL]:"葡萄牙语(巴西)",[i.PORTUGUESE_PORTUGAL]:"葡萄牙语(葡萄牙)",[i.QUECHUA_BOLIVIA]:"克丘亚语(玻利维亚)",[i.QUECHUA_ECUADOR]:"克丘亚语(厄瓜多尔)",[i.QUECHUA_PERU]:"克丘亚语(秘鲁)",[i.ROMANIAN_ROMANIA]:"罗马尼亚语(罗马尼亚)",[i.RUSSIAN_RUSSIA]:"俄语(俄罗斯)",[i.SANSKRIT_INDIA]:"梵语(印度)",[i.SAMI_NORTHERN_FINLAND]:"北萨米语(芬兰)",[i.SAMI_NORTHERN_NORWAY]:"北萨米语(挪威)",[i.SAMI_NORTHERN_SWEDEN]:"北萨米语(瑞典)",[i.SLOVAK_SLOVAKIA]:"斯洛伐克语(斯洛伐克)",[i.SLOVENIAN_SLOVENIA]:"斯洛文尼亚语(斯洛文尼亚)",[i.ALBANIAN_ALBANIA]:"阿尔巴尼亚语(阿尔巴尼亚)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"塞尔维亚语(拉丁字母,波斯尼亚和黑塞哥维那)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"塞尔维亚语(拉丁字母,塞尔维亚和黑山)",[i.SWAHILI_KENYA]:"斯瓦希里语(肯尼亚)",[i.SYRIAC_SYRIA]:"叙利亚语(叙利亚)",[i.TAMIL_INDIA]:"泰米尔语(印度)",[i.TELUGU_INDIA]:"泰卢固语(印度)",[i.THAI_THAILAND]:"泰语(泰国)",[i.TAGALOG_PHILIPPINES]:"他加禄语(菲律宾)",[i.TSWANA_SOUTH_AFRICA]:"茨瓦纳语(南非)",[i.TURKISH_TURKEY]:"土耳其语(土耳其)",[i.TATAR_RUSSIA]:"鞑靼语(俄罗斯)",[i.TSOGA]:"索加语",[i.UKRAINIAN_UKRAINE]:"乌克兰语(乌克兰)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"乌尔都语(巴基斯坦伊斯兰共和国)",[i.UZBEK_LATIN_UZBEKISTAN]:"乌兹别克语(拉丁字母,乌兹别克斯坦)",[i.VIETNAMESE_VIET_NAM]:"越南语(越南)",[i.XHOSA_SOUTH_AFRICA]:"科萨语(南非)",[i.CHINESE_HONG_KONG]:"中文(香港)",[i.CHINESE_MACAU]:"中文(澳门)",[i.CHINESE_SINGAPORE]:"中文(新加坡)",[i.ZULU_SOUTH_AFRICA]:"祖鲁语(南非)"},$w={[i.ENGLISH]:wn,[i.ENGLISH_AUSTRALIA]:wn,[i.ENGLISH_BELIZE]:wn,[i.ENGLISH_CANADA]:wn,[i.ENGLISH_CARIBBEAN]:wn,[i.ENGLISH_UNITED_KINGDOM]:wn,[i.ENGLISH_IRELAND]:wn,[i.ENGLISH_JAMAICA]:wn,[i.ENGLISH_NEW_ZEALAND]:wn,[i.ENGLISH_PHILIPPINES]:wn,[i.ENGLISH_TRINIDAD_AND_TOBAGO]:wn,[i.ENGLISH_UNITED_STATES]:wn,[i.ENGLISH_SOUTH_AFRICA]:wn,[i.ENGLISH_ZIMBABWE]:wn,[i.FRENCH]:da,[i.FRENCH_BELGIUM]:da,[i.FRENCH_CANADA]:da,[i.FRENCH_SWITZERLAND]:da,[i.FRENCH_FRANCE]:da,[i.FRENCH_LUXEMBOURG]:da,[i.FRENCH_PRINCIPALITY_OF_MONACO]:da,[i.SPANISH]:Kt,[i.SPANISH_ARGENTINA]:Kt,[i.SPANISH_BOLIVIA]:Kt,[i.SPANISH_CHILE]:Kt,[i.SPANISH_COLOMBIA]:Kt,[i.SPANISH_COSTA_RICA]:Kt,[i.SPANISH_DOMINICAN_REPUBLIC]:Kt,[i.SPANISH_ECUADOR]:Kt,[i.SPANISH_SPAIN]:Kt,[i.SPANISH_GUATEMALA]:Kt,[i.SPANISH_HONDURAS]:Kt,[i.SPANISH_MEXICO]:Kt,[i.SPANISH_NICARAGUA]:Kt,[i.SPANISH_PANAMA]:Kt,[i.SPANISH_PERU]:Kt,[i.SPANISH_PUERTO_RICO]:Kt,[i.SPANISH_PARAGUAY]:Kt,[i.SPANISH_EL_SALVADOR]:Kt,[i.SPANISH_URUGUAY]:Kt,[i.SPANISH_VENEZUELA]:Kt,[i.PORTUGUESE]:Ep,[i.PORTUGUESE_BRAZIL]:Ep,[i.PORTUGUESE_PORTUGAL]:Ep,[i.ITALIAN]:pp,[i.ITALIAN_SWITZERLAND]:pp,[i.ITALIAN_ITALY]:pp,[i.GERMAN]:Ts,[i.GERMAN_AUSTRIA]:Ts,[i.GERMAN_SWITZERLAND]:Ts,[i.GERMAN_GERMANY]:Ts,[i.GERMAN_LIECHTENSTEIN]:Ts,[i.GERMAN_LUXEMBOURG]:Ts,[i.CHINESE]:fa,[i.CHINESE_HONG_KONG]:fa,[i.CHINESE_MACAU]:fa,[i.CHINESE_SINGAPORE]:fa,[i.CHINESE_SIMPLIFIED]:fa,[i.CHINESE_SIMPLIFIED_CHINA]:fa,[i.CHINESE_TRADITIONAL]:fa,[i.RUSSIAN]:J3,[i.RUSSIAN_RUSSIA]:J3,[i.ARABIC]:dn,[i.ARABIC_UNITED_ARAB_EMIRATES]:dn,[i.ARABIC_BAHRAIN]:dn,[i.ARABIC_ALGERIA]:dn,[i.ARABIC_EGYPT]:dn,[i.ARABIC_IRAQ]:dn,[i.ARABIC_JORDAN]:dn,[i.ARABIC_KUWAIT]:dn,[i.ARABIC_LEBANON]:dn,[i.ARABIC_LIBYA]:dn,[i.ARABIC_MOROCCO]:dn,[i.ARABIC_OMAN]:dn,[i.ARABIC_QATAR]:dn,[i.ARABIC_SAUDI_ARABIA]:dn,[i.ARABIC_SYRIA]:dn,[i.ARABIC_TUNISIA]:dn,[i.ARABIC_YEMEN]:dn,[i.JAPANESE]:q3,[i.JAPANESE_JAPAN]:q3,[i.KOREAN]:X3,[i.KOREAN_KOREA]:X3,[i.HINDI]:Kw,[i.DUTCH_BELGIUM]:void 0,[i.DUTCH_NETHERLANDS]:void 0,[i.DIVEHI_MALDIVES]:void 0,[i.AFRIKAANS]:void 0,[i.AZERI_LATIN]:void 0,[i.BELARUSIAN]:void 0,[i.BULGARIAN]:void 0,[i.BOSNIAN]:void 0,[i.CATALAN]:void 0,[i.CZECH]:void 0,[i.WELSH]:void 0,[i.DANISH]:void 0,[i.DIVEHI]:void 0,[i.GREEK]:void 0,[i.ESPERANTO]:void 0,[i.ESTONIAN]:void 0,[i.BASQUE]:void 0,[i.FARSI]:void 0,[i.FINNISH]:void 0,[i.FAROESE]:void 0,[i.GALICIAN]:void 0,[i.GUJARATI]:void 0,[i.HEBREW]:void 0,[i.CROATIAN]:void 0,[i.HUNGARIAN]:void 0,[i.ARMENIAN]:void 0,[i.INDONESIAN]:void 0,[i.ICELANDIC]:void 0,[i.GEORGIAN]:void 0,[i.KAZAKH]:void 0,[i.KANNADA]:void 0,[i.KONKANI]:void 0,[i.KYRGYZ]:void 0,[i.LITHUANIAN]:void 0,[i.LATVIAN]:void 0,[i.MAORI]:void 0,[i.FYRO_MACEDONIAN]:void 0,[i.MONGOLIAN]:void 0,[i.MARATHI]:void 0,[i.MALAY]:void 0,[i.MALTESE]:void 0,[i.NORWEGIAN_BOKMAL]:void 0,[i.DUTCH]:void 0,[i.NORTHERN_SOTHO]:void 0,[i.PUNJABI]:void 0,[i.POLISH]:void 0,[i.PASHTO]:void 0,[i.QUECHUA]:void 0,[i.ROMANIAN]:void 0,[i.SANSKRIT]:void 0,[i.SAMI_NORTHERN]:void 0,[i.SLOVAK]:void 0,[i.SLOVENIAN]:void 0,[i.ALBANIAN]:void 0,[i.SERBIAN_LATIN]:void 0,[i.SWEDISH]:void 0,[i.SWEDISH_FINLAND]:void 0,[i.SWEDISH_SWEDEN]:void 0,[i.SWAHILI]:void 0,[i.SYRIAC]:void 0,[i.TAMIL]:void 0,[i.TELUGU]:void 0,[i.THAI]:void 0,[i.TAGALOG]:void 0,[i.TSWANA]:void 0,[i.TURKISH]:void 0,[i.TATAR]:void 0,[i.UKRAINIAN]:void 0,[i.URDU]:void 0,[i.UZBEK_LATIN]:void 0,[i.VIETNAMESE]:void 0,[i.XHOSA]:void 0,[i.ZULU]:void 0,[i.AFRIKAANS_SOUTH_AFRICA]:void 0,[i.AZERI_LATIN_AZERBAIJAN]:void 0,[i.BELARUSIAN_BELARUS]:void 0,[i.BULGARIAN_BULGARIA]:void 0,[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.CATALAN_SPAIN]:void 0,[i.CZECH_CZECH_REPUBLIC]:void 0,[i.WELSH_UNITED_KINGDOM]:void 0,[i.DANISH_DENMARK]:void 0,[i.GREEK_GREECE]:void 0,[i.ESTONIAN_ESTONIA]:void 0,[i.BASQUE_SPAIN]:void 0,[i.FARSI_IRAN]:void 0,[i.FINNISH_FINLAND]:void 0,[i.FAROESE_FAROE_ISLANDS]:void 0,[i.GALICIAN_SPAIN]:void 0,[i.GUJARATI_INDIA]:void 0,[i.HEBREW_ISRAEL]:void 0,[i.HINDI_INDIA]:void 0,[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.CROATIAN_CROATIA]:void 0,[i.HUNGARIAN_HUNGARY]:void 0,[i.ARMENIAN_ARMENIA]:void 0,[i.INDONESIAN_INDONESIA]:void 0,[i.ICELANDIC_ICELAND]:void 0,[i.GEORGIAN_GEORGIA]:void 0,[i.KAZAKH_KAZAKHSTAN]:void 0,[i.KANNADA_INDIA]:void 0,[i.KONKANI_INDIA]:void 0,[i.KYRGYZ_KYRGYZSTAN]:void 0,[i.LITHUANIAN_LITHUANIA]:void 0,[i.LATVIAN_LATVIA]:void 0,[i.MAORI_NEW_ZEALAND]:void 0,[i.FYRO_MACEDONIAN_MACEDONIA]:void 0,[i.MONGOLIAN_MONGOLIA]:void 0,[i.MARATHI_INDIA]:void 0,[i.MALAY_BRUNEI_DARUSSALAM]:void 0,[i.MALAY_MALAYSIA]:void 0,[i.MALTESE_MALTA]:void 0,[i.NORWEGIAN_BOKMAL_NORWAY]:void 0,[i.NORWEGIAN_NYNORSK_NORWAY]:void 0,[i.NORTHERN_SOTHO_SOUTH_AFRICA]:void 0,[i.PUNJABI_INDIA]:void 0,[i.POLISH_POLAND]:void 0,[i.PASHTO_AFGHANISTAN]:void 0,[i.QUECHUA_BOLIVIA]:void 0,[i.QUECHUA_ECUADOR]:void 0,[i.QUECHUA_PERU]:void 0,[i.ROMANIAN_ROMANIA]:void 0,[i.SANSKRIT_INDIA]:void 0,[i.SAMI_NORTHERN_FINLAND]:void 0,[i.SAMI_NORTHERN_NORWAY]:void 0,[i.SAMI_NORTHERN_SWEDEN]:void 0,[i.SLOVAK_SLOVAKIA]:void 0,[i.SLOVENIAN_SLOVENIA]:void 0,[i.ALBANIAN_ALBANIA]:void 0,[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:void 0,[i.SWAHILI_KENYA]:void 0,[i.SYRIAC_SYRIA]:void 0,[i.TAMIL_INDIA]:void 0,[i.TELUGU_INDIA]:void 0,[i.THAI_THAILAND]:void 0,[i.TAGALOG_PHILIPPINES]:void 0,[i.TSWANA_SOUTH_AFRICA]:void 0,[i.TURKISH_TURKEY]:void 0,[i.TATAR_RUSSIA]:void 0,[i.TSOGA]:void 0,[i.UKRAINIAN_UKRAINE]:void 0,[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:void 0,[i.UZBEK_LATIN_UZBEKISTAN]:void 0,[i.VIETNAMESE_VIET_NAM]:void 0,[i.XHOSA_SOUTH_AFRICA]:void 0,[i.ZULU_SOUTH_AFRICA]:void 0},Q0=(e,t)=>{var n;return t?((n=$w[t])==null?void 0:n[e])??Q3[e]??"Unknown locale":Q3[e]},Yw=e=>{switch(e){case i.ENGLISH:case i.FRENCH:case i.SPANISH:case i.PORTUGUESE:case i.GERMAN:case i.AFRIKAANS:case i.AZERI_LATIN:case i.BELARUSIAN:case i.BULGARIAN:case i.BOSNIAN:case i.CATALAN:case i.CZECH:case i.WELSH:case i.DANISH:case i.ESPERANTO:case i.ESTONIAN:case i.BASQUE:case i.FINNISH:case i.FAROESE:case i.GALICIAN:case i.GREEK:case i.CROATIAN:case i.HUNGARIAN:case i.ARMENIAN:case i.INDONESIAN:case i.ICELANDIC:case i.ITALIAN:case i.JAPANESE:case i.GEORGIAN:case i.KAZAKH:case i.KANNADA:case i.KOREAN:case i.KONKANI:case i.KYRGYZ:case i.LITHUANIAN:case i.LATVIAN:case i.MAORI:case i.FYRO_MACEDONIAN:case i.MONGOLIAN:case i.MARATHI:case i.MALAY:case i.MALTESE:case i.NORWEGIAN_BOKMAL:case i.DUTCH:case i.NORTHERN_SOTHO:case i.PUNJABI:case i.POLISH:case i.QUECHUA:case i.ROMANIAN:case i.RUSSIAN:case i.SANSKRIT:case i.SAMI_NORTHERN:case i.SLOVAK:case i.SLOVENIAN:case i.ALBANIAN:case i.SERBIAN_LATIN:case i.SWEDISH:case i.SWAHILI:case i.TAMIL:case i.TELUGU:case i.THAI:case i.TAGALOG:case i.TSWANA:case i.TURKISH:case i.UKRAINIAN:case i.UZBEK_LATIN:case i.VIETNAMESE:case i.XHOSA:case i.CHINESE_SIMPLIFIED:case i.CHINESE_TRADITIONAL:case i.ZULU:case i.AFRIKAANS_SOUTH_AFRICA:case i.AZERI_LATIN_AZERBAIJAN:case i.BELARUSIAN_BELARUS:case i.BULGARIAN_BULGARIA:case i.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case i.CATALAN_SPAIN:case i.CZECH_CZECH_REPUBLIC:case i.WELSH_UNITED_KINGDOM:case i.DANISH_DENMARK:case i.GERMAN_AUSTRIA:case i.GERMAN_SWITZERLAND:case i.GERMAN_GERMANY:case i.GERMAN_LIECHTENSTEIN:case i.GERMAN_LUXEMBOURG:case i.GREEK_GREECE:case i.ENGLISH_AUSTRALIA:case i.ENGLISH_BELIZE:case i.ENGLISH_CANADA:case i.ENGLISH_CARIBBEAN:case i.ENGLISH_UNITED_KINGDOM:case i.ENGLISH_IRELAND:case i.ENGLISH_JAMAICA:case i.ENGLISH_NEW_ZEALAND:case i.ENGLISH_PHILIPPINES:case i.ENGLISH_TRINIDAD_AND_TOBAGO:case i.ENGLISH_UNITED_STATES:case i.ENGLISH_SOUTH_AFRICA:case i.ENGLISH_ZIMBABWE:case i.SPANISH_ARGENTINA:case i.SPANISH_BOLIVIA:case i.SPANISH_CHILE:case i.SPANISH_COLOMBIA:case i.SPANISH_COSTA_RICA:case i.SPANISH_DOMINICAN_REPUBLIC:case i.SPANISH_ECUADOR:case i.SPANISH_SPAIN:case i.SPANISH_GUATEMALA:case i.SPANISH_HONDURAS:case i.SPANISH_MEXICO:case i.SPANISH_NICARAGUA:case i.SPANISH_PANAMA:case i.SPANISH_PERU:case i.SPANISH_PUERTO_RICO:case i.SPANISH_PARAGUAY:case i.SPANISH_EL_SALVADOR:case i.SPANISH_URUGUAY:case i.SPANISH_VENEZUELA:case i.ESTONIAN_ESTONIA:case i.BASQUE_SPAIN:case i.FINNISH_FINLAND:case i.FAROESE_FAROE_ISLANDS:case i.FRENCH_BELGIUM:case i.FRENCH_CANADA:case i.FRENCH_SWITZERLAND:case i.FRENCH_FRANCE:case i.FRENCH_LUXEMBOURG:case i.FRENCH_PRINCIPALITY_OF_MONACO:case i.GALICIAN_SPAIN:case i.GUJARATI_INDIA:case i.HEBREW_ISRAEL:case i.HINDI_INDIA:case i.CROATIAN_BOSNIA_AND_HERZEGOVINA:case i.CROATIAN_CROATIA:case i.HUNGARIAN_HUNGARY:case i.ARMENIAN_ARMENIA:case i.INDONESIAN_INDONESIA:case i.ICELANDIC_ICELAND:case i.ITALIAN_SWITZERLAND:case i.ITALIAN_ITALY:case i.JAPANESE_JAPAN:case i.GEORGIAN_GEORGIA:case i.KAZAKH_KAZAKHSTAN:case i.KANNADA_INDIA:case i.KOREAN_KOREA:case i.KONKANI_INDIA:case i.KYRGYZ_KYRGYZSTAN:case i.LITHUANIAN_LITHUANIA:case i.LATVIAN_LATVIA:case i.MAORI_NEW_ZEALAND:case i.FYRO_MACEDONIAN_MACEDONIA:case i.MONGOLIAN_MONGOLIA:case i.MARATHI_INDIA:case i.MALAY_BRUNEI_DARUSSALAM:case i.MALAY_MALAYSIA:case i.MALTESE_MALTA:case i.NORWEGIAN_BOKMAL_NORWAY:case i.DUTCH_BELGIUM:case i.DUTCH_NETHERLANDS:case i.NORWEGIAN_NYNORSK_NORWAY:case i.NORTHERN_SOTHO_SOUTH_AFRICA:case i.PUNJABI_INDIA:case i.POLISH_POLAND:case i.PORTUGUESE_BRAZIL:case i.PORTUGUESE_PORTUGAL:case i.QUECHUA_BOLIVIA:case i.QUECHUA_ECUADOR:case i.QUECHUA_PERU:case i.ROMANIAN_ROMANIA:case i.RUSSIAN_RUSSIA:case i.SANSKRIT_INDIA:case i.SAMI_NORTHERN_FINLAND:case i.SAMI_NORTHERN_NORWAY:case i.SAMI_NORTHERN_SWEDEN:case i.SLOVAK_SLOVAKIA:case i.SLOVENIAN_SLOVENIA:case i.ALBANIAN_ALBANIA:case i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case i.SWAHILI_KENYA:case i.TAMIL_INDIA:case i.TELUGU_INDIA:case i.THAI_THAILAND:case i.TAGALOG_PHILIPPINES:case i.TSWANA_SOUTH_AFRICA:case i.TURKISH_TURKEY:case i.TATAR_RUSSIA:case i.TSOGA:case i.UKRAINIAN_UKRAINE:case i.UZBEK_LATIN_UZBEKISTAN:case i.VIETNAMESE_VIET_NAM:case i.XHOSA_SOUTH_AFRICA:case i.CHINESE_HONG_KONG:case i.CHINESE_MACAU:case i.CHINESE_SINGAPORE:case i.ZULU_SOUTH_AFRICA:return"ltr";case i.ARABIC:case i.FARSI:case i.URDU:case i.PASHTO:case i.SYRIAC:case i.ARABIC_UNITED_ARAB_EMIRATES:case i.ARABIC_BAHRAIN:case i.ARABIC_ALGERIA:case i.ARABIC_EGYPT:case i.ARABIC_IRAQ:case i.ARABIC_JORDAN:case i.ARABIC_KUWAIT:case i.ARABIC_LEBANON:case i.ARABIC_LIBYA:case i.ARABIC_MOROCCO:case i.ARABIC_OMAN:case i.ARABIC_QATAR:case i.ARABIC_SAUDI_ARABIA:case i.ARABIC_SYRIA:case i.ARABIC_TUNISIA:case i.ARABIC_YEMEN:case i.FARSI_IRAN:case i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case i.PASHTO_AFGHANISTAN:case i.SYRIAC_SYRIA:return"rtl";default:return"auto"}},Zw=[i.AFRIKAANS,i.AFRIKAANS_SOUTH_AFRICA,i.ARABIC,i.ARABIC_UNITED_ARAB_EMIRATES,i.ARABIC_BAHRAIN,i.ARABIC_ALGERIA,i.ARABIC_EGYPT,i.ARABIC_IRAQ,i.ARABIC_JORDAN,i.ARABIC_KUWAIT,i.ARABIC_LEBANON,i.ARABIC_LIBYA,i.ARABIC_MOROCCO,i.ARABIC_OMAN,i.ARABIC_QATAR,i.ARABIC_SAUDI_ARABIA,i.ARABIC_SYRIA,i.ARABIC_TUNISIA,i.ARABIC_YEMEN,i.AZERI_LATIN,i.AZERI_LATIN_AZERBAIJAN,i.BELARUSIAN,i.BELARUSIAN_BELARUS,i.BULGARIAN,i.BULGARIAN_BULGARIA,i.BOSNIAN_BOSNIA_AND_HERZEGOVINA,i.CATALAN,i.CATALAN_SPAIN,i.CZECH,i.CZECH_CZECH_REPUBLIC,i.WELSH,i.WELSH_UNITED_KINGDOM,i.DANISH,i.DANISH_DENMARK,i.GERMAN,i.GERMAN_AUSTRIA,i.GERMAN_SWITZERLAND,i.GERMAN_GERMANY,i.GERMAN_LIECHTENSTEIN,i.GERMAN_LUXEMBOURG,i.DIVEHI,i.DIVEHI_MALDIVES,i.GREEK,i.GREEK_GREECE,i.ENGLISH,i.ENGLISH_AUSTRALIA,i.ENGLISH_BELIZE,i.ENGLISH_CANADA,i.ENGLISH_CARIBBEAN,i.ENGLISH_UNITED_KINGDOM,i.ENGLISH_IRELAND,i.ENGLISH_JAMAICA,i.ENGLISH_NEW_ZEALAND,i.ENGLISH_PHILIPPINES,i.ENGLISH_TRINIDAD_AND_TOBAGO,i.ENGLISH_UNITED_STATES,i.ENGLISH_SOUTH_AFRICA,i.ENGLISH_ZIMBABWE,i.ESPERANTO,i.SPANISH,i.SPANISH_ARGENTINA,i.SPANISH_BOLIVIA,i.SPANISH_CHILE,i.SPANISH_COLOMBIA,i.SPANISH_COSTA_RICA,i.SPANISH_DOMINICAN_REPUBLIC,i.SPANISH_ECUADOR,i.SPANISH_SPAIN,i.SPANISH_GUATEMALA,i.SPANISH_HONDURAS,i.SPANISH_MEXICO,i.SPANISH_NICARAGUA,i.SPANISH_PANAMA,i.SPANISH_PERU,i.SPANISH_PUERTO_RICO,i.SPANISH_PARAGUAY,i.SPANISH_EL_SALVADOR,i.SPANISH_URUGUAY,i.SPANISH_VENEZUELA,i.ESTONIAN,i.ESTONIAN_ESTONIA,i.BASQUE,i.BASQUE_SPAIN,i.FARSI,i.FARSI_IRAN,i.FINNISH,i.FINNISH_FINLAND,i.FAROESE,i.FAROESE_FAROE_ISLANDS,i.FRENCH,i.FRENCH_BELGIUM,i.FRENCH_CANADA,i.FRENCH_SWITZERLAND,i.FRENCH_FRANCE,i.FRENCH_LUXEMBOURG,i.FRENCH_PRINCIPALITY_OF_MONACO,i.GALICIAN,i.GALICIAN_SPAIN,i.GUJARATI,i.GUJARATI_INDIA,i.HEBREW,i.HEBREW_ISRAEL,i.HINDI,i.HINDI_INDIA,i.CROATIAN,i.CROATIAN_BOSNIA_AND_HERZEGOVINA,i.CROATIAN_CROATIA,i.HUNGARIAN,i.HUNGARIAN_HUNGARY,i.ARMENIAN,i.ARMENIAN_ARMENIA,i.INDONESIAN,i.INDONESIAN_INDONESIA,i.ICELANDIC,i.ICELANDIC_ICELAND,i.ITALIAN,i.ITALIAN_SWITZERLAND,i.ITALIAN_ITALY,i.JAPANESE,i.JAPANESE_JAPAN,i.GEORGIAN,i.GEORGIAN_GEORGIA,i.KAZAKH,i.KAZAKH_KAZAKHSTAN,i.KANNADA,i.KANNADA_INDIA,i.KOREAN,i.KOREAN_KOREA,i.KONKANI,i.KONKANI_INDIA,i.KYRGYZ,i.KYRGYZ_KYRGYZSTAN,i.LITHUANIAN,i.LITHUANIAN_LITHUANIA,i.LATVIAN,i.LATVIAN_LATVIA,i.MAORI,i.MAORI_NEW_ZEALAND,i.FYRO_MACEDONIAN,i.FYRO_MACEDONIAN_MACEDONIA,i.MONGOLIAN,i.MONGOLIAN_MONGOLIA,i.MARATHI,i.MARATHI_INDIA,i.MALAY,i.MALAY_BRUNEI_DARUSSALAM,i.MALAY_MALAYSIA,i.MALTESE,i.MALTESE_MALTA,i.NORWEGIAN_BOKMAL,i.NORWEGIAN_BOKMAL_NORWAY,i.DUTCH,i.DUTCH_BELGIUM,i.DUTCH_NETHERLANDS,i.NORWEGIAN_NYNORSK_NORWAY,i.NORTHERN_SOTHO,i.NORTHERN_SOTHO_SOUTH_AFRICA,i.PUNJABI,i.PUNJABI_INDIA,i.POLISH,i.POLISH_POLAND,i.PASHTO,i.PASHTO_AFGHANISTAN,i.PORTUGUESE,i.PORTUGUESE_BRAZIL,i.PORTUGUESE_PORTUGAL,i.QUECHUA,i.QUECHUA_BOLIVIA,i.QUECHUA_ECUADOR,i.QUECHUA_PERU,i.ROMANIAN,i.ROMANIAN_ROMANIA,i.RUSSIAN,i.RUSSIAN_RUSSIA,i.SANSKRIT,i.SANSKRIT_INDIA,i.SAMI_NORTHERN,i.SAMI_NORTHERN_FINLAND,i.SAMI_NORTHERN_NORWAY,i.SAMI_NORTHERN_SWEDEN,i.SLOVAK,i.SLOVAK_SLOVAKIA,i.SLOVENIAN,i.SLOVENIAN_SLOVENIA,i.ALBANIAN,i.ALBANIAN_ALBANIA,i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA,i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO,i.SWEDISH,i.SWEDISH_FINLAND,i.SWEDISH_SWEDEN,i.SWAHILI_KENYA,i.SYRIAC_SYRIA,i.TAMIL,i.TAMIL_INDIA,i.TELUGU,i.TELUGU_INDIA,i.THAI,i.THAI_THAILAND,i.TAGALOG,i.TAGALOG_PHILIPPINES,i.TSWANA,i.TSWANA_SOUTH_AFRICA,i.TURKISH,i.TURKISH_TURKEY,i.TATAR,i.TATAR_RUSSIA,i.TSOGA,i.UKRAINIAN,i.UKRAINIAN_UKRAINE,i.URDU,i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN,i.UZBEK_LATIN,i.UZBEK_LATIN_UZBEKISTAN,i.VIETNAMESE,i.VIETNAMESE_VIET_NAM,i.XHOSA,i.XHOSA_SOUTH_AFRICA,i.CHINESE,i.CHINESE_SIMPLIFIED,i.CHINESE_HONG_KONG,i.CHINESE_MACAU,i.CHINESE_SINGAPORE,i.CHINESE_TRADITIONAL,i.ZULU_SOUTH_AFRICA],Ww=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale)=>{const r=[e].flat(),u=o=>o.trim().toLowerCase();try{for(const o of r){const l=u(o),d=t.find(m=>u(m)===l);if(d)return d;const[f]=l.split("-"),h=t.find(m=>u(m).split("-")[0]===f);if(h)return h}}catch{}return n},qw=(e,t=Qe.internationalization.locales)=>{const n=XR(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const u=n?new URL(r):new URL(r,"http://example.com"),o=u.pathname;o.startsWith("/")||(u.pathname=`/${o}`);const l=o.split("/"),d=l[1];if(t.includes(d)){l.splice(1,1);const f=l.join("/")??"/";u.pathname=f}return n?u.toString():u.toString().replace("http://example.com","")},Xw=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale,r=Qe.middleware.prefixDefault)=>{const u=qw(e,t),o=XR(u),l=o?new URL(u):new URL(u,"http://example.com");let d=l.pathname;d.startsWith("/")||(d=`/${d}`);const f=o?`${l.protocol}//${l.host}`:"";return t.reduce((m,E)=>{const g=E.toString()===n.toString();let S=r||!g?`/${E}${d}`:d;S.length>1&&S.endsWith("/")&&(S=S.slice(0,-1));const C=o?`${f}${S}${l.search}${l.hash}`:`${S}${l.search}${l.hash}`;return m[E]=C,m},{})},Qw=(e,t,n=Qe.internationalization.locales,r=Qe.internationalization.defaultLocale,u=Qe.middleware.prefixDefault)=>Xw(e,n,r,u)[t],QR=y.createContext(void 0),Jw=e=>Xs("INTLAYER_EDITED_CONTENT_CHANGED/get",e),JR=y.createContext(void 0),ey=(e,t)=>typeof e=="function"?e(t):e,e2=({children:e})=>{const{localeDictionaries:t}=YR(),[n,r]=ka("INTLAYER_EDITED_CONTENT_CHANGED"),u=_=>{let S=ey(_);return r(C=>(S=ey(_,C==null?void 0:C[S.key]),{...C,[S.key]:S})),S},o=(_,S)=>{r(C=>({...C,[_]:{...C==null?void 0:C[_],content:S}}))},l=(_,S,C=[],v=!0)=>{r(R=>{var B,O;const T=(B=t[_])==null?void 0:B.content,b=structuredClone(((O=R==null?void 0:R[_])==null?void 0:O.content)??T);let L=C;if(!v){let H=0;const U=C.slice(0,-1),G=C[C.length-1];let fe=G.key;for(;typeof Zr(b,L)<"u";)H++,fe=H===0?G.key:`${G.key} (${H})`,L=[...U,{...G,key:fe}]}const x=W3(b,L,S);return{...R,[_]:{...R==null?void 0:R[_],content:x}}})},d=(_,S,C=[])=>{r(v=>{var L,x;const R=(L=t[_])==null?void 0:L.content,T=structuredClone(((x=v==null?void 0:v[_])==null?void 0:x.content)??R),b=jw(T,S,C);return{...v,[_]:{...v==null?void 0:v[_],content:b}}})},f=(_,S)=>{r(C=>{var L,x;const v=(L=t[_])==null?void 0:L.content,R=structuredClone(((x=C==null?void 0:C[_])==null?void 0:x.content)??v),T=Zr(v,S),b=W3(R,S,T);return{...C,[_]:{...C==null?void 0:C[_],content:b}}})},h=_=>{r(S=>{const C={...S};return delete C[_],C})},m=_=>{r(S=>Object.entries(S).reduce((v,[R,T])=>R===_?v:{...v,[R]:T},{}))},E=()=>{r({})},g=(_,S)=>{var v;const C=((v=n==null?void 0:n[_])==null?void 0:v.content)??{};return Zr(C,S)};return N.jsx(QR.Provider,{value:{editedContent:n},children:N.jsx(JR.Provider,{value:{setEditedContentState:r,setEditedDictionary:u,setEditedContent:o,addEditedContent:l,renameEditedContent:d,removeEditedContent:f,restoreEditedContent:h,clearEditedDictionaryContent:m,clearEditedContent:E,getEditedContentValue:g},children:e})})},oo=()=>y.useContext(JR),Hn=()=>{const e=y.useContext(QR),t=oo();return{...e,...t}},e9=y.createContext(void 0),t9=y.createContext(void 0),t2=({children:e})=>{const[t,n]=ka("INTLAYER_FOCUSED_CONTENT_CHANGED",null),r=u=>{n(o=>o&&{...o,keyPath:u})};return N.jsx(e9.Provider,{value:{focusedContent:t},children:N.jsx(t9.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},Qg=()=>{const e=y.useContext(t9);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},Ou=()=>{const e=Qg(),t=y.useContext(e9);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},n9=y.createContext({enabled:!1}),n2=e=>ka("INTLAYER_EDITOR_ENABLED",!1,e),r2=e=>Xs("INTLAYER_EDITOR_ENABLED/post",e),r9=e=>Xs("INTLAYER_EDITOR_ENABLED/get",e),i2=({children:e})=>{const[t]=n2({emit:!1,receive:!0});return N.jsx(n9.Provider,{value:{enabled:t},children:e})},i9=()=>y.useContext(n9),u2=y.createContext(void 0),a2=y.createContext(void 0),s2=({children:e})=>{const[t,n]=y.useState({}),r=(u,o)=>{n(l=>({...l,[u]:{...l==null?void 0:l[u],content:o}}))};return N.jsx(u2.Provider,{value:{changedContent:t},children:N.jsx(a2.Provider,{value:{setChangedContent:r},children:e})})},ty=({children:e})=>{const t=Jw();return y.useEffect(()=>{t()},[]),N.jsx(Ew,{children:N.jsx(e2,{children:N.jsx(t2,{children:e})})})},o2=({children:e,fallback:t})=>{const n=r9(),{enabled:r}=i9();return y.useEffect(()=>{r||n()},[r]),r?e:t},l2=({children:e,fallback:t})=>{const[n,r]=y.useState(!1);return y.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},c2=({children:e,configuration:t,...n})=>N.jsx(s2,{children:N.jsx(i2,{children:N.jsx(pw,{configuration:t,children:n.mode==="editor"?N.jsx($3,{...n,children:N.jsx(ty,{children:e})}):N.jsx(l2,{fallback:e,children:N.jsx($3,{...n,children:N.jsx(o2,{fallback:e,children:N.jsx(ty,{children:e})})})})})})}),d2=(e,t)=>ka("INTLAYER_URL_CHANGE",e,t),f2=e=>{const t=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}),n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});Object.assign(n,{iframeData:e}),Object.assign(t,{iframeData:e}),window.dispatchEvent(n),window.dispatchEvent(t)},h2=()=>Xs("INTLAYER_IFRAME_CLICKED",f2);/*! js-cookie v3.0.5 | MIT */function R0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var A2={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function bE(e,t){function n(u,o,l){if(!(typeof document>"u")){l=R0({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var f in l)l[f]&&(d+="; "+f,l[f]!==!0&&(d+="="+l[f].split(";")[0]));return document.cookie=u+"="+e.write(o,u)+d}}function r(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var o=document.cookie?document.cookie.split("; "):[],l={},d=0;d<o.length;d++){var f=o[d].split("="),h=f.slice(1).join("=");try{var m=decodeURIComponent(f[0]);if(l[m]=e.read(h,m),u===m)break}catch{}}return u?l[u]:l}}return Object.create({set:n,get:r,remove:function(u,o){n(u,"",R0({},o,{expires:-1}))},withAttributes:function(u){return bE(this.converter,R0({},this.attributes,u))},withConverter:function(u){return bE(R0({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var u9=bE(A2,{path:"/"});const{cookieName:a9}=Qe.middleware,m2={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},Jg=u9.get(a9),s9=e=>{u9.set(a9,e,m2)},p2=()=>({localeCookie:Jg,setLocaleCookie:s9});var kR;const dh=y.createContext({locale:Jg??((kR=Qe==null?void 0:Qe.internationalization)==null?void 0:kR.defaultLocale),setLocale:()=>null,disableEditor:!1}),E2=()=>y.useContext(dh),g2=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:u})=>{const{internationalization:o}=Qe??{},{defaultLocale:l,locales:d}=o??{},f=e??Jg??t??l,[h,m]=ka("INTLAYER_CURRENT_LOCALE",f),g=r??(S=>{if(h.toString()!==S.toString()){if(!(d!=null&&d.map(String).includes(S))){console.error(`Locale ${S} is not available`);return}m(S),s9(S)}}),_=Ww(e??h);return N.jsx(dh.Provider,{value:{locale:_,setLocale:g,disableEditor:u},children:n})},mf=({children:e,value:t,additionalProps:n})=>{const r=y.isValidElement(e)?e:N.jsx(N.Fragment,{children:e});return new Proxy(r,{get(u,o,l){return o==="value"?t:n&&Object.keys(n).includes(o)?n[o]:Reflect.get(u,o,l)}})},e4=({dictionaryKey:e,keyPath:t,children:n})=>{const r=oo();return r?r.getEditedContentValue(e,t)??n:n},_2=e=>e4(e),S2=250,N2=({children:e,onPress:t,onClickOutside:n,pressDuration:r=S2,isSelecting:u,...o})=>{const l=y.useRef(null),[d,f]=y.useState(!1),[h,m]=y.useState(u),E=y.useRef(null),g=typeof e=="string",_=()=>{m(!0),t()},S=()=>{E.current=setTimeout(()=>{_()},r)},C=()=>{E.current&&(clearTimeout(E.current),E.current=null)},v=()=>{C(),S()},R=()=>{f(!0)},T=()=>{f(!1),C()},b=y.useCallback(B=>{l.current&&!l.current.contains(B.target)&&(m(!1),n==null||n())},[n]);y.useEffect(()=>(document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}),[b]);const L=B=>{h&&(B.preventDefault(),B.stopPropagation())},x=()=>{m(!1)};return N.jsx("span",{style:{display:g?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:u||h||d?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:L,onMouseDown:v,onMouseUp:T,onMouseLeave:T,onTouchStart:v,onTouchEnd:T,onTouchCancel:T,onBlur:x,onMouseEnter:R,ref:l,...o,children:e})},I2=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:u}=Ou(),o=y.useCallback(()=>u({dictionaryKey:t,keyPath:n}),[t,n]),l=y.useMemo(()=>{var d;return((r==null?void 0:r.dictionaryKey)===t&&(((d=r==null?void 0:r.keyPath)==null?void 0:d.length)??0)>0&&Vc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return N.jsx(N2,{onPress:o,isSelecting:l,children:e})},pf=({children:e,...t})=>{const{enabled:n}=i9(),{disableEditor:r}=E2();return n&&!r?N.jsx(I2,{...t,children:e}):e},y2=y.createContext({renderMarkdown:e=>e}),C2=()=>y.useContext(y2),v2=({dictionaryKey:e,keyPath:t,children:n})=>{const{renderMarkdown:r}=C2(),u=e4({dictionaryKey:e,keyPath:t,children:n});return r(u)},R2=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const u=e4({dictionaryKey:e,keyPath:t,children:n}),o=ZR(u);return Zr(o,r)},T2={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>mf({...n,value:n.children,children:N.jsx(pf,{...n,children:N.jsx(_2,{...n,children:n.children})})})},D2={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>mf({...n,value:"[[react-element]]",children:N.jsx(pf,{...n,children:"renderReactElement(node)"})})},b2={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...u}=t,o=ZR(e),d=n(o,{plugins:[{id:"markdown-metadata-plugin",canHandle:f=>typeof f=="string"||typeof f=="number"||typeof f=="boolean"||!f,transform:(f,h)=>mf({...h,value:f,children:N.jsx(pf,{...u,children:N.jsx(R2,{...u,metadataKeyPath:h.keyPath,children:f})})})}],dictionaryKey:u.dictionaryKey,keyPath:[]});return mf({...t,value:e,children:N.jsx(pf,{...u,children:N.jsx(v2,{...u,children:e})}),additionalProps:{metadata:d}})}},x2={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:j.Markdown}],u=e[j.Markdown];return n(u,{...t,children:u,keyPath:r,plugins:[b2,...t.plugins??[]]})}},B2=(e,t,n)=>WR(e,t,[T2,D2,x2]),sn=(e,t)=>{const{locale:n}=y.useContext(dh);return B2(e,n)},t4=({onLocaleChange:e}={})=>{const{prefixDefault:t}=(Qe==null?void 0:Qe.middleware)??{},{defaultLocale:n,locales:r}=(Qe==null?void 0:Qe.internationalization)??{},{locale:u,setLocale:o}=y.useContext(dh),{setLocaleCookie:l}=p2();return{locale:u,defaultLocale:n,availableLocales:r,localeList:Zw,setLocale:f=>{if(!(r!=null&&r.map(String).includes(f))){console.error(`Locale ${f} is not available`);return}o(f),l(f),e==null||e(f)}}};var xl={},ny;function F2(){if(ny)return xl;ny=1,Object.defineProperty(xl,"__esModule",{value:!0}),xl.parse=l,xl.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,o=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function l(g,_){const S=new o,C=g.length;if(C<2)return S;const v=(_==null?void 0:_.decode)||m;let R=0;do{const T=g.indexOf("=",R);if(T===-1)break;const b=g.indexOf(";",R),L=b===-1?C:b;if(T>L){R=g.lastIndexOf(";",T-1)+1;continue}const x=d(g,R,T),B=f(g,T,x),O=g.slice(x,B);if(S[O]===void 0){let H=d(g,T+1,L),U=f(g,L,H);const G=v(g.slice(H,U));S[O]=G}R=L+1}while(R<C);return S}function d(g,_,S){do{const C=g.charCodeAt(_);if(C!==32&&C!==9)return _}while(++_<S);return S}function f(g,_,S){for(;_>S;){const C=g.charCodeAt(--_);if(C!==32&&C!==9)return _+1}return S}function h(g,_,S){const C=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const v=C(_);if(!t.test(v))throw new TypeError(`argument val is invalid: ${_}`);let R=g+"="+v;if(!S)return R;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);R+="; Max-Age="+S.maxAge}if(S.domain){if(!n.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);R+="; Domain="+S.domain}if(S.path){if(!r.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);R+="; Path="+S.path}if(S.expires){if(!E(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);R+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(R+="; HttpOnly"),S.secure&&(R+="; Secure"),S.partitioned&&(R+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return R}function m(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function E(g){return u.call(g)==="[object Date]"}return xl}F2();/**
|
|
51
|
+
* react-router v7.3.0
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var ry="popstate";function O2(e={}){function t(r,u){let{pathname:o,search:l,hash:d}=r.location;return xE("",{pathname:o,search:l,hash:d},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function n(r,u){return typeof u=="string"?u:oc(u)}return w2(t,n,null,e)}function bt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ti(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function L2(){return Math.random().toString(36).substring(2,10)}function iy(e,t){return{usr:e.state,key:e.key,idx:t}}function xE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?lo(t):t,state:n,key:t&&t.key||r||L2()}}function oc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function lo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function w2(e,t,n,r={}){let{window:u=document.defaultView,v5Compat:o=!1}=r,l=u.history,d="POP",f=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function E(){d="POP";let v=m(),R=v==null?null:v-h;h=v,f&&f({action:d,location:C.location,delta:R})}function g(v,R){d="PUSH";let T=xE(C.location,v,R);h=m()+1;let b=iy(T,h),L=C.createHref(T);try{l.pushState(b,"",L)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;u.location.assign(L)}o&&f&&f({action:d,location:C.location,delta:1})}function _(v,R){d="REPLACE";let T=xE(C.location,v,R);h=m();let b=iy(T,h),L=C.createHref(T);l.replaceState(b,"",L),o&&f&&f({action:d,location:C.location,delta:0})}function S(v){let R=u.location.origin!=="null"?u.location.origin:u.location.href,T=typeof v=="string"?v:oc(v);return T=T.replace(/ $/,"%20"),bt(R,`No window.location.(origin|href) available to create URL for href: ${T}`),new URL(T,R)}let C={get action(){return d},get location(){return e(u,l)},listen(v){if(f)throw new Error("A history only accepts one active listener");return u.addEventListener(ry,E),f=v,()=>{u.removeEventListener(ry,E),f=null}},createHref(v){return t(u,v)},createURL:S,encodeLocation(v){let R=S(v);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:g,replace:_,go(v){return l.go(v)}};return C}function o9(e,t,n="/"){return M2(e,t,n,!1)}function M2(e,t,n,r){let u=typeof t=="string"?lo(t):t,o=wi(u.pathname||"/",n);if(o==null)return null;let l=l9(e);P2(l);let d=null;for(let f=0;d==null&&f<l.length;++f){let h=Z2(o);d=$2(l[f],h,r)}return d}function l9(e,t=[],n=[],r=""){let u=(o,l,d)=>{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};f.relativePath.startsWith("/")&&(bt(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let h=Oi([r,f.relativePath]),m=n.concat(f);o.children&&o.children.length>0&&(bt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),l9(o.children,t,m,h)),!(o.path==null&&!o.index)&&t.push({path:h,score:z2(h,o.index),routesMeta:m})};return e.forEach((o,l)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))u(o,l);else for(let f of c9(o.path))u(o,l,f)}),t}function c9(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,u=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return u?[o,""]:[o];let l=c9(r.join("/")),d=[];return d.push(...l.map(f=>f===""?o:[o,f].join("/"))),u&&d.push(...l),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function P2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:K2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var H2=/^:[\w-]+$/,U2=3,k2=2,G2=1,V2=10,j2=-2,uy=e=>e==="*";function z2(e,t){let n=e.split("/"),r=n.length;return n.some(uy)&&(r+=j2),t&&(r+=k2),n.filter(u=>!uy(u)).reduce((u,o)=>u+(H2.test(o)?U2:o===""?G2:V2),r)}function K2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,u)=>r===t[u])?e[e.length-1]-t[t.length-1]:0}function $2(e,t,n=!1){let{routesMeta:r}=e,u={},o="/",l=[];for(let d=0;d<r.length;++d){let f=r[d],h=d===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",E=Ef({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),g=f.route;if(!E&&h&&n&&!r[r.length-1].route.index&&(E=Ef({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!E)return null;Object.assign(u,E.params),l.push({params:u,pathname:Oi([o,E.pathname]),pathnameBase:Q2(Oi([o,E.pathnameBase])),route:g}),E.pathnameBase!=="/"&&(o=Oi([o,E.pathnameBase]))}return l}function Ef(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Y2(e.path,e.caseSensitive,e.end),u=t.match(n);if(!u)return null;let o=u[0],l=o.replace(/(.)\/+$/,"$1"),d=u.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:E},g)=>{if(m==="*"){let S=d[g]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const _=d[g];return E&&!_?h[m]=void 0:h[m]=(_||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function Y2(e,t=!1,n=!0){ti(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],u="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,d,f)=>(r.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),u+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?u+="\\/*$":e!==""&&e!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,t?void 0:"i"),r]}function Z2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ti(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function wi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function W2(e,t="/"){let{pathname:n,search:r="",hash:u=""}=typeof e=="string"?lo(e):e;return{pathname:n?n.startsWith("/")?n:q2(n,t):t,search:J2(r),hash:eM(u)}}function q2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(u=>{u===".."?n.length>1&&n.pop():u!=="."&&n.push(u)}),n.length>1?n.join("/"):"/"}function gp(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function X2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function d9(e){let t=X2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function f9(e,t,n,r=!1){let u;typeof e=="string"?u=lo(e):(u={...e},bt(!u.pathname||!u.pathname.includes("?"),gp("?","pathname","search",u)),bt(!u.pathname||!u.pathname.includes("#"),gp("#","pathname","hash",u)),bt(!u.search||!u.search.includes("#"),gp("#","search","hash",u)));let o=e===""||u.pathname==="",l=o?"/":u.pathname,d;if(l==null)d=n;else{let E=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),E-=1;u.pathname=g.join("/")}d=E>=0?t[E]:"/"}let f=W2(u,d),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var Oi=e=>e.join("/").replace(/\/\/+/g,"/"),Q2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var h9=["POST","PUT","PATCH","DELETE"];new Set(h9);var nM=["GET",...h9];new Set(nM);var co=y.createContext(null);co.displayName="DataRouter";var fh=y.createContext(null);fh.displayName="DataRouterState";var A9=y.createContext({isTransitioning:!1});A9.displayName="ViewTransition";var rM=y.createContext(new Map);rM.displayName="Fetchers";var iM=y.createContext(null);iM.displayName="Await";var ai=y.createContext(null);ai.displayName="Navigation";var jc=y.createContext(null);jc.displayName="Location";var Gi=y.createContext({outlet:null,matches:[],isDataRoute:!1});Gi.displayName="Route";var n4=y.createContext(null);n4.displayName="RouteError";function uM(e,{relative:t}={}){bt(zc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=y.useContext(ai),{hash:u,pathname:o,search:l}=Kc(e,{relative:t}),d=o;return n!=="/"&&(d=o==="/"?n:Oi([n,o])),r.createHref({pathname:d,search:l,hash:u})}function zc(){return y.useContext(jc)!=null}function Lu(){return bt(zc(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(jc).location}var m9="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function p9(e){y.useContext(ai).static||y.useLayoutEffect(e)}function aM(){let{isDataRoute:e}=y.useContext(Gi);return e?_M():sM()}function sM(){bt(zc(),"useNavigate() may be used only in the context of a <Router> component.");let e=y.useContext(co),{basename:t,navigator:n}=y.useContext(ai),{matches:r}=y.useContext(Gi),{pathname:u}=Lu(),o=JSON.stringify(d9(r)),l=y.useRef(!1);return p9(()=>{l.current=!0}),y.useCallback((f,h={})=>{if(ti(l.current,m9),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=f9(f,JSON.parse(o),u,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Oi([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,u,e])}y.createContext(null);function Kc(e,{relative:t}={}){let{matches:n}=y.useContext(Gi),{pathname:r}=Lu(),u=JSON.stringify(d9(n));return y.useMemo(()=>f9(e,JSON.parse(u),r,t==="path"),[e,u,r,t])}function oM(e,t){return E9(e,t)}function E9(e,t,n,r){var T;bt(zc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u,static:o}=y.useContext(ai),{matches:l}=y.useContext(Gi),d=l[l.length-1],f=d?d.params:{},h=d?d.pathname:"/",m=d?d.pathnameBase:"/",E=d&&d.route;{let b=E&&E.path||"";g9(h,!E||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let g=Lu(),_;if(t){let b=typeof t=="string"?lo(t):t;bt(m==="/"||((T=b.pathname)==null?void 0:T.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${b.pathname}" was given in the \`location\` prop.`),_=b}else _=g;let S=_.pathname||"/",C=S;if(m!=="/"){let b=m.replace(/^\//,"").split("/");C="/"+S.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=!o&&n&&n.matches&&n.matches.length>0?n.matches:o9(e,{pathname:C});ti(E||v!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),ti(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=hM(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},f,b.params),pathname:Oi([m,u.encodeLocation?u.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?m:Oi([m,u.encodeLocation?u.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),l,n,r);return t&&R?y.createElement(jc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},R):R}function lM(){let e=gM(),t=tM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:o},"ErrorBoundary")," or"," ",y.createElement("code",{style:o},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:u},n):null,l)}var cM=y.createElement(lM,null),dM=class extends y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?y.createElement(Gi.Provider,{value:this.props.routeContext},y.createElement(n4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function fM({routeContext:e,match:t,children:n}){let r=y.useContext(co);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),y.createElement(Gi.Provider,{value:e},n)}function hM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,o=n==null?void 0:n.errors;if(o!=null){let f=u.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);bt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),u=u.slice(0,Math.min(u.length,f+1))}let l=!1,d=-1;if(n)for(let f=0;f<u.length;f++){let h=u[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=f),h.route.id){let{loaderData:m,errors:E}=n,g=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!E||E[h.route.id]===void 0);if(h.route.lazy||g){l=!0,d>=0?u=u.slice(0,d+1):u=[u[0]];break}}}return u.reduceRight((f,h,m)=>{let E,g=!1,_=null,S=null;n&&(E=o&&h.route.id?o[h.route.id]:void 0,_=h.route.errorElement||cM,l&&(d<0&&m===0?(g9("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,S=null):d===m&&(g=!0,S=h.route.hydrateFallbackElement||null)));let C=t.concat(u.slice(0,m+1)),v=()=>{let R;return E?R=_:g?R=S:h.route.Component?R=y.createElement(h.route.Component,null):h.route.element?R=h.route.element:R=f,y.createElement(fM,{match:h,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:R})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?y.createElement(dM,{location:n.location,revalidation:n.revalidation,component:_,error:E,children:v(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):v()},null)}function r4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AM(e){let t=y.useContext(co);return bt(t,r4(e)),t}function mM(e){let t=y.useContext(fh);return bt(t,r4(e)),t}function pM(e){let t=y.useContext(Gi);return bt(t,r4(e)),t}function i4(e){let t=pM(e),n=t.matches[t.matches.length-1];return bt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function EM(){return i4("useRouteId")}function gM(){var r;let e=y.useContext(n4),t=mM("useRouteError"),n=i4("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function _M(){let{router:e}=AM("useNavigate"),t=i4("useNavigate"),n=y.useRef(!1);return p9(()=>{n.current=!0}),y.useCallback(async(u,o={})=>{ti(n.current,m9),n.current&&(typeof u=="number"?e.navigate(u):await e.navigate(u,{fromRouteId:t,...o}))},[e,t])}var ay={};function g9(e,t,n){!t&&!ay[e]&&(ay[e]=!0,ti(!1,n))}y.memo(SM);function SM({routes:e,future:t,state:n}){return E9(e,void 0,n,t)}function _9(e){bt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function NM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:u,static:o=!1}){bt(!zc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),d=y.useMemo(()=>({basename:l,navigator:u,static:o,future:{}}),[l,u,o]);typeof n=="string"&&(n=lo(n));let{pathname:f="/",search:h="",hash:m="",state:E=null,key:g="default"}=n,_=y.useMemo(()=>{let S=wi(f,l);return S==null?null:{location:{pathname:S,search:h,hash:m,state:E,key:g},navigationType:r}},[l,f,h,m,E,g,r]);return ti(_!=null,`<Router basename="${l}"> is not able to match the URL "${f}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:y.createElement(ai.Provider,{value:d},y.createElement(jc.Provider,{children:t,value:_}))}function IM({children:e,location:t}){return oM(BE(e),t)}function BE(e,t=[]){let n=[];return y.Children.forEach(e,(r,u)=>{if(!y.isValidElement(r))return;let o=[...t,u];if(r.type===y.Fragment){n.push.apply(n,BE(r.props.children,o));return}bt(r.type===_9,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),bt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=BE(r.props.children,o)),n.push(l)}),n}var J0="get",ef="application/x-www-form-urlencoded";function hh(e){return e!=null&&typeof e.tagName=="string"}function yM(e){return hh(e)&&e.tagName.toLowerCase()==="button"}function CM(e){return hh(e)&&e.tagName.toLowerCase()==="form"}function vM(e){return hh(e)&&e.tagName.toLowerCase()==="input"}function RM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function TM(e,t){return e.button===0&&(!t||t==="_self")&&!RM(e)}var T0=null;function DM(){if(T0===null)try{new FormData(document.createElement("form"),0),T0=!1}catch{T0=!0}return T0}var bM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _p(e){return e!=null&&!bM.has(e)?(ti(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ef}"`),null):e}function xM(e,t){let n,r,u,o,l;if(CM(e)){let d=e.getAttribute("action");r=d?wi(d,t):null,n=e.getAttribute("method")||J0,u=_p(e.getAttribute("enctype"))||ef,o=new FormData(e)}else if(yM(e)||vM(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(r=f?wi(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||J0,u=_p(e.getAttribute("formenctype"))||_p(d.getAttribute("enctype"))||ef,o=new FormData(d,e),!DM()){let{name:h,type:m,value:E}=e;if(m==="image"){let g=h?`${h}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else h&&o.append(h,E)}}else{if(hh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=J0,r=null,u=ef,l=e}return o&&u==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:u,formData:o,body:l}}function u4(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function BM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function FM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function OM(e,t,n){let r=await Promise.all(e.map(async u=>{let o=t.routes[u.route.id];if(o){let l=await BM(o,n);return l.links?l.links():[]}return[]}));return PM(r.flat(1).filter(FM).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function sy(e,t,n,r,u,o){let l=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,d=(f,h)=>{var m;return n[h].pathname!==f.pathname||((m=n[h].route.path)==null?void 0:m.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,h)=>l(f,h)||d(f,h)):o==="data"?t.filter((f,h)=>{var E;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((E=n[0])==null?void 0:E.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function LM(e,t,{includeHydrateFallback:n}={}){return wM(e.map(r=>{let u=t.routes[r.route.id];if(!u)return[];let o=[u.module];return u.clientActionModule&&(o=o.concat(u.clientActionModule)),u.clientLoaderModule&&(o=o.concat(u.clientLoaderModule)),n&&u.hydrateFallbackModule&&(o=o.concat(u.hydrateFallbackModule)),u.imports&&(o=o.concat(u.imports)),o}).flat(1))}function wM(e){return[...new Set(e)]}function MM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function PM(e,t){let n=new Set;return new Set(t),e.reduce((r,u)=>{let o=JSON.stringify(MM(u));return n.has(o)||(n.add(o),r.push({key:o,link:u})),r},[])}function HM(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&wi(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function S9(){let e=y.useContext(co);return u4(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function UM(){let e=y.useContext(fh);return u4(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var a4=y.createContext(void 0);a4.displayName="FrameworkContext";function N9(){let e=y.useContext(a4);return u4(e,"You must render this element inside a <HydratedRouter> element"),e}function kM(e,t){let n=y.useContext(a4),[r,u]=y.useState(!1),[o,l]=y.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:E}=t,g=y.useRef(null);y.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let C=R=>{R.forEach(T=>{l(T.isIntersecting)})},v=new IntersectionObserver(C,{threshold:.5});return g.current&&v.observe(g.current),()=>{v.disconnect()}}},[e]),y.useEffect(()=>{if(r){let C=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(C)}}},[r]);let _=()=>{u(!0)},S=()=>{u(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Bl(d,_),onBlur:Bl(f,S),onMouseEnter:Bl(h,_),onMouseLeave:Bl(m,S),onTouchStart:Bl(E,_)}]:[!1,g,{}]}function Bl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function GM({page:e,...t}){let{router:n}=S9(),r=y.useMemo(()=>o9(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?y.createElement(jM,{page:e,matches:r,...t}):null}function VM(e){let{manifest:t,routeModules:n}=N9(),[r,u]=y.useState([]);return y.useEffect(()=>{let o=!1;return OM(e,t,n).then(l=>{o||u(l)}),()=>{o=!0}},[e,t,n]),r}function jM({page:e,matches:t,...n}){let r=Lu(),{manifest:u,routeModules:o}=N9(),{basename:l}=S9(),{loaderData:d,matches:f}=UM(),h=y.useMemo(()=>sy(e,t,f,u,r,"data"),[e,t,f,u,r]),m=y.useMemo(()=>sy(e,t,f,u,r,"assets"),[e,t,f,u,r]),E=y.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,C=!1;if(t.forEach(R=>{var b;let T=u.routes[R.route.id];!T||!T.hasLoader||(!h.some(L=>L.route.id===R.route.id)&&R.route.id in d&&((b=o[R.route.id])!=null&&b.shouldRevalidate)||T.hasClientLoader?C=!0:S.add(R.route.id))}),S.size===0)return[];let v=HM(e,l);return C&&S.size>0&&v.searchParams.set("_routes",t.filter(R=>S.has(R.route.id)).map(R=>R.route.id).join(",")),[v.pathname+v.search]},[l,d,r,u,h,t,e,o]),g=y.useMemo(()=>LM(m,u),[m,u]),_=VM(m);return y.createElement(y.Fragment,null,E.map(S=>y.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),g.map(S=>y.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),_.map(({key:S,link:C})=>y.createElement("link",{key:S,...C})))}function zM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var I9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I9&&(window.__reactRouterVersion="7.3.0")}catch{}function KM({basename:e,children:t,window:n}){let r=y.useRef();r.current==null&&(r.current=O2({window:n,v5Compat:!0}));let u=r.current,[o,l]=y.useState({action:u.action,location:u.location}),d=y.useCallback(f=>{y.startTransition(()=>l(f))},[l]);return y.useLayoutEffect(()=>u.listen(d),[u,d]),y.createElement(NM,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:u})}var y9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C9=y.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:u,reloadDocument:o,replace:l,state:d,target:f,to:h,preventScrollReset:m,viewTransition:E,...g},_){let{basename:S}=y.useContext(ai),C=typeof h=="string"&&y9.test(h),v,R=!1;if(typeof h=="string"&&C&&(v=h,I9))try{let U=new URL(window.location.href),G=h.startsWith("//")?new URL(U.protocol+h):new URL(h),fe=wi(G.pathname,S);G.origin===U.origin&&fe!=null?h=fe+G.search+G.hash:R=!0}catch{ti(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=uM(h,{relative:u}),[b,L,x]=kM(r,g),B=WM(h,{replace:l,state:d,target:f,preventScrollReset:m,relative:u,viewTransition:E});function O(U){t&&t(U),U.defaultPrevented||B(U)}let H=y.createElement("a",{...g,...x,href:v||T,onClick:R||o?t:O,ref:zM(_,L),target:f,"data-discover":!C&&n==="render"?"true":void 0});return b&&!C?y.createElement(y.Fragment,null,H,y.createElement(GM,{page:T})):H});C9.displayName="Link";var $M=y.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:u=!1,style:o,to:l,viewTransition:d,children:f,...h},m){let E=Kc(l,{relative:h.relative}),g=Lu(),_=y.useContext(fh),{navigator:S,basename:C}=y.useContext(ai),v=_!=null&&e8(E)&&d===!0,R=S.encodeLocation?S.encodeLocation(E).pathname:E.pathname,T=g.pathname,b=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(T=T.toLowerCase(),b=b?b.toLowerCase():null,R=R.toLowerCase()),b&&C&&(b=wi(b,C)||b);const L=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let x=T===R||!u&&T.startsWith(R)&&T.charAt(L)==="/",B=b!=null&&(b===R||!u&&b.startsWith(R)&&b.charAt(R.length)==="/"),O={isActive:x,isPending:B,isTransitioning:v},H=x?t:void 0,U;typeof r=="function"?U=r(O):U=[r,x?"active":null,B?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let G=typeof o=="function"?o(O):o;return y.createElement(C9,{...h,"aria-current":H,className:U,ref:m,style:G,to:l,viewTransition:d},typeof f=="function"?f(O):f)});$M.displayName="NavLink";var YM=y.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:u,state:o,method:l=J0,action:d,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:E,...g},_)=>{let S=QM(),C=JM(d,{relative:h}),v=l.toLowerCase()==="get"?"get":"post",R=typeof d=="string"&&y9.test(d),T=b=>{if(f&&f(b),b.defaultPrevented)return;b.preventDefault();let L=b.nativeEvent.submitter,x=(L==null?void 0:L.getAttribute("formmethod"))||l;S(L||b.currentTarget,{fetcherKey:t,method:x,navigate:n,replace:u,state:o,relative:h,preventScrollReset:m,viewTransition:E})};return y.createElement("form",{ref:_,method:v,action:C,onSubmit:r?f:T,...g,"data-discover":!R&&e==="render"?"true":void 0})});YM.displayName="Form";function ZM(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v9(e){let t=y.useContext(co);return bt(t,ZM(e)),t}function WM(e,{target:t,replace:n,state:r,preventScrollReset:u,relative:o,viewTransition:l}={}){let d=aM(),f=Lu(),h=Kc(e,{relative:o});return y.useCallback(m=>{if(TM(m,t)){m.preventDefault();let E=n!==void 0?n:oc(f)===oc(h);d(e,{replace:E,state:r,preventScrollReset:u,relative:o,viewTransition:l})}},[f,d,h,n,r,t,e,u,o,l])}var qM=0,XM=()=>`__${String(++qM)}__`;function QM(){let{router:e}=v9("useSubmit"),{basename:t}=y.useContext(ai),n=EM();return y.useCallback(async(r,u={})=>{let{action:o,method:l,encType:d,formData:f,body:h}=xM(r,t);if(u.navigate===!1){let m=u.fetcherKey||XM();await e.fetch(m,n,u.action||o,{preventScrollReset:u.preventScrollReset,formData:f,body:h,formMethod:u.method||l,formEncType:u.encType||d,flushSync:u.flushSync})}else await e.navigate(u.action||o,{preventScrollReset:u.preventScrollReset,formData:f,body:h,formMethod:u.method||l,formEncType:u.encType||d,replace:u.replace,state:u.state,fromRouteId:n,flushSync:u.flushSync,viewTransition:u.viewTransition})},[e,t,n])}function JM(e,{relative:t}={}){let{basename:n}=y.useContext(ai),r=y.useContext(Gi);bt(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),o={...Kc(e||".",{relative:t})},l=Lu();if(e==null){o.search=l.search;let d=new URLSearchParams(o.search),f=d.getAll("index");if(f.some(m=>m==="")){d.delete("index"),f.filter(E=>E).forEach(E=>d.append("index",E));let m=d.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&u.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Oi([n,o.pathname])),oc(o)}function e8(e,t={}){let n=y.useContext(A9);bt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=v9("useViewTransitionState"),u=Kc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=wi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=wi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ef(u.pathname,l)!=null||Ef(u.pathname,o)!=null}new TextEncoder;var Ga=GR();const t8=lh(Ga);function R9(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(t=0;t<u;t++)e[t]&&(n=R9(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ah(){for(var e,t,n=0,r="",u=arguments.length;n<u;n++)(e=arguments[n])&&(t=R9(e))&&(r&&(r+=" "),r+=t);return r}const s4="-",n8=e=>{const t=i8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const d=l.split(s4);return d[0]===""&&d.length!==1&&d.shift(),T9(d,t)||r8(l)},getConflictingClassGroupIds:(l,d)=>{const f=n[l]||[];return d&&r[l]?[...f,...r[l]]:f}}},T9=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),u=r?T9(e.slice(1),r):void 0;if(u)return u;if(t.validators.length===0)return;const o=e.join(s4);return(l=t.validators.find(({validator:d})=>d(o)))==null?void 0:l.classGroupId},oy=/^\[(.+)\]$/,r8=e=>{if(oy.test(e)){const t=oy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},i8=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const u in n)FE(n[u],r,u,t);return r},FE=(e,t,n,r)=>{e.forEach(u=>{if(typeof u=="string"){const o=u===""?t:ly(t,u);o.classGroupId=n;return}if(typeof u=="function"){if(u8(u)){FE(u(r),t,n,r);return}t.validators.push({validator:u,classGroupId:n});return}Object.entries(u).forEach(([o,l])=>{FE(l,ly(t,o),n,r)})})},ly=(e,t)=>{let n=e;return t.split(s4).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},u8=e=>e.isThemeGetter,a8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const u=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return u(o,l),l},set(o,l){n.has(o)?n.set(o,l):u(o,l)}}},OE="!",LE=":",s8=LE.length,o8=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=u=>{const o=[];let l=0,d=0,f=0,h;for(let S=0;S<u.length;S++){let C=u[S];if(l===0&&d===0){if(C===LE){o.push(u.slice(f,S)),f=S+s8;continue}if(C==="/"){h=S;continue}}C==="["?l++:C==="]"?l--:C==="("?d++:C===")"&&d--}const m=o.length===0?u:u.substring(f),E=l8(m),g=E!==m,_=h&&h>f?h-f:void 0;return{modifiers:o,hasImportantModifier:g,baseClassName:E,maybePostfixModifierPosition:_}};if(t){const u=t+LE,o=r;r=l=>l.startsWith(u)?o(l.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const u=r;r=o=>n({className:o,parseClassName:u})}return r},l8=e=>e.endsWith(OE)?e.substring(0,e.length-1):e.startsWith(OE)?e.substring(1):e,c8=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const u=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(u.push(...o.sort(),l),o=[]):o.push(l)}),u.push(...o.sort()),u}},d8=e=>({cache:a8(e.cacheSize),parseClassName:o8(e),sortModifiers:c8(e),...n8(e)}),f8=/\s+/,h8=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:u,sortModifiers:o}=t,l=[],d=e.trim().split(f8);let f="";for(let h=d.length-1;h>=0;h-=1){const m=d[h],{isExternal:E,modifiers:g,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:C}=n(m);if(E){f=m+(f.length>0?" "+f:f);continue}let v=!!C,R=r(v?S.substring(0,C):S);if(!R){if(!v){f=m+(f.length>0?" "+f:f);continue}if(R=r(S),!R){f=m+(f.length>0?" "+f:f);continue}v=!1}const T=o(g).join(":"),b=_?T+OE:T,L=b+R;if(l.includes(L))continue;l.push(L);const x=u(R,v);for(let B=0;B<x.length;++B){const O=x[B];l.push(b+O)}f=m+(f.length>0?" "+f:f)}return f};function A8(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=D9(t))&&(r&&(r+=" "),r+=n);return r}const D9=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=D9(e[r]))&&(n&&(n+=" "),n+=t);return n};function m8(e,...t){let n,r,u,o=l;function l(f){const h=t.reduce((m,E)=>E(m),e());return n=d8(h),r=n.cache.get,u=n.cache.set,o=d,d(f)}function d(f){const h=r(f);if(h)return h;const m=h8(f,n);return u(f,m),m}return function(){return o(A8.apply(null,arguments))}}const un=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},b9=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,p8=/^\d+\/\d+$/,E8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g8=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,S8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ds=e=>p8.test(e),st=e=>!!e&&!Number.isNaN(Number(e)),ha=e=>!!e&&Number.isInteger(Number(e)),cy=e=>e.endsWith("%")&&st(e.slice(0,-1)),hu=e=>E8.test(e),I8=()=>!0,y8=e=>g8.test(e)&&!_8.test(e),o4=()=>!1,C8=e=>S8.test(e),v8=e=>N8.test(e),R8=e=>!be(e)&&!xe(e),T8=e=>fo(e,O9,o4),be=e=>b9.test(e),Aa=e=>fo(e,L9,y8),Sp=e=>fo(e,H8,st),D8=e=>fo(e,B9,o4),b8=e=>fo(e,F9,v8),x8=e=>fo(e,o4,C8),xe=e=>x9.test(e),D0=e=>ho(e,L9),B8=e=>ho(e,U8),F8=e=>ho(e,B9),O8=e=>ho(e,O9),L8=e=>ho(e,F9),w8=e=>ho(e,k8,!0),fo=(e,t,n)=>{const r=b9.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ho=(e,t,n=!1)=>{const r=x9.exec(e);return r?r[1]?t(r[1]):n:!1},B9=e=>e==="position",M8=new Set(["image","url"]),F9=e=>M8.has(e),P8=new Set(["length","size","percentage"]),O9=e=>P8.has(e),L9=e=>e==="length",H8=e=>e==="number",U8=e=>e==="family-name",k8=e=>e==="shadow",G8=()=>{const e=un("color"),t=un("font"),n=un("text"),r=un("font-weight"),u=un("tracking"),o=un("leading"),l=un("breakpoint"),d=un("container"),f=un("spacing"),h=un("radius"),m=un("shadow"),E=un("inset-shadow"),g=un("drop-shadow"),_=un("blur"),S=un("perspective"),C=un("aspect"),v=un("ease"),R=un("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],B=()=>[xe,be,f],O=()=>[Ds,"full","auto",...B()],H=()=>[ha,"none","subgrid",xe,be],U=()=>["auto",{span:["full",ha,xe,be]},xe,be],G=()=>[ha,"auto",xe,be],fe=()=>["auto","min","max","fr",xe,be],ae=()=>["start","end","center","between","around","evenly","stretch","baseline"],ce=()=>["start","end","center","stretch"],Z=()=>["auto",...B()],te=()=>[Ds,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],V=()=>[e,xe,be],ee=()=>[cy,Aa],Q=()=>["","none","full",h,xe,be],Ae=()=>["",st,D0,Aa],P=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["","none",_,xe,be],re=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe,be],ne=()=>["none",st,xe,be],de=()=>["none",st,xe,be],Ee=()=>[st,xe,be],pe=()=>[Ds,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hu],breakpoint:[hu],color:[I8],container:[hu],"drop-shadow":[hu],ease:["in","out","in-out"],font:[R8],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hu],shadow:[hu],spacing:["px",st],text:[hu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ds,be,xe,C]}],container:["container"],columns:[{columns:[st,be,xe,d]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...b(),be,xe]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[ha,"auto",xe,be]}],basis:[{basis:[Ds,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[st,Ds,"auto","initial","none",be]}],grow:[{grow:["",st,xe,be]}],shrink:[{shrink:["",st,xe,be]}],order:[{order:[ha,"first","last","none",xe,be]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ce(),"baseline"]}],"align-self":[{self:["auto",...ce(),"baseline"]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[d,"screen",...te()]}],"min-w":[{"min-w":[d,"screen","none",...te()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[l]},...te()]}],h:[{h:["screen",...te()]}],"min-h":[{"min-h":["screen","none",...te()]}],"max-h":[{"max-h":["screen",...te()]}],"font-size":[{text:["base",n,D0,Aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xe,Sp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cy,be]}],"font-family":[{font:[B8,be,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,xe,be]}],"line-clamp":[{"line-clamp":[st,"none",xe,Sp]}],leading:[{leading:[o,...B()]}],"list-image":[{"list-image":["none",xe,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:[st,"from-font","auto",xe,Aa]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[st,"auto",xe,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...b(),F8,D8]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",O8,T8]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ha,xe,be],radial:["",xe,be],conic:[ha,xe,be]},L8,b8]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:Ae()}],"border-w-x":[{"border-x":Ae()}],"border-w-y":[{"border-y":Ae()}],"border-w-s":[{"border-s":Ae()}],"border-w-e":[{"border-e":Ae()}],"border-w-t":[{"border-t":Ae()}],"border-w-r":[{"border-r":Ae()}],"border-w-b":[{"border-b":Ae()}],"border-w-l":[{"border-l":Ae()}],"divide-x":[{"divide-x":Ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...P(),"hidden","none"]}],"divide-style":[{divide:[...P(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...P(),"none","hidden"]}],"outline-offset":[{"outline-offset":[st,xe,be]}],"outline-w":[{outline:["",st,D0,Aa]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,w8,x8]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",xe,be,E]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[st,Aa]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":Ae()}],"inset-ring-color":[{"inset-ring":V()}],opacity:[{opacity:[st,xe,be]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none",xe,be]}],blur:[{blur:z()}],brightness:[{brightness:[st,xe,be]}],contrast:[{contrast:[st,xe,be]}],"drop-shadow":[{"drop-shadow":["","none",g,xe,be]}],grayscale:[{grayscale:["",st,xe,be]}],"hue-rotate":[{"hue-rotate":[st,xe,be]}],invert:[{invert:["",st,xe,be]}],saturate:[{saturate:[st,xe,be]}],sepia:[{sepia:["",st,xe,be]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,be]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[st,xe,be]}],"backdrop-contrast":[{"backdrop-contrast":[st,xe,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",st,xe,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[st,xe,be]}],"backdrop-invert":[{"backdrop-invert":["",st,xe,be]}],"backdrop-opacity":[{"backdrop-opacity":[st,xe,be]}],"backdrop-saturate":[{"backdrop-saturate":[st,xe,be]}],"backdrop-sepia":[{"backdrop-sepia":["",st,xe,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[st,"initial",xe,be]}],ease:[{ease:["linear","initial",v,xe,be]}],delay:[{delay:[st,xe,be]}],animate:[{animate:["none",R,xe,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,xe,be]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[xe,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,be]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[st,D0,Aa,Sp]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},w9=m8(G8),Re=(...e)=>w9(Ah(e)),M9=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:u=!1,minHeight:o=0,...l})=>N.jsx("div",{"aria-hidden":u?t:void 0,tabIndex:u?0:void 0,role:u?"button":"none",className:Re("group/height-smoother relative grid w-full grid-rows-[0fr] overflow-hidden transition-all duration-700 ease-in-out",typeof t<"u"&&!t&&"grid-rows-[1fr] overflow-x-auto",r&&"hover:grid-rows-[1fr] hover:overflow-x-auto",u&&"focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto",n),...l,children:N.jsx("div",{style:{minHeight:`${o}px`},className:Re(r&&"group-hover/height-smoother:visible",u&&"group-focus/height-smoother:visible",n),children:e})}),V8=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:u,...o})=>N.jsx("div",{className:Re("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",u),"aria-hidden":t,...o,children:N.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:Re(r==="right"&&"ml-auto"),children:e})});/**
|
|
62
|
+
* @license lucide-react v0.475.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const j8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P9=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
67
|
+
* @license lucide-react v0.475.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/var z8={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
72
|
+
* @license lucide-react v0.475.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const K8=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:l,...d},f)=>y.createElement("svg",{ref:f,...z8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:P9("lucide",u),...d},[...l.map(([h,m])=>y.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
|
|
77
|
+
* @license lucide-react v0.475.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const Ct=(e,t)=>{const n=y.forwardRef(({className:r,...u},o)=>y.createElement(K8,{ref:o,iconNode:t,className:P9(`lucide-${j8(e)}`,r),...u}));return n.displayName=`${e}`,n};/**
|
|
82
|
+
* @license lucide-react v0.475.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const $8=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Y8=Ct("ArrowLeft",$8);/**
|
|
87
|
+
* @license lucide-react v0.475.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const Z8=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],W8=Ct("ArrowUpFromLine",Z8);/**
|
|
92
|
+
* @license lucide-react v0.475.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const q8=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ao=Ct("Check",q8);/**
|
|
97
|
+
* @license lucide-react v0.475.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const X8=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],H9=Ct("ChevronDown",X8);/**
|
|
102
|
+
* @license lucide-react v0.475.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Q8=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],J8=Ct("ChevronLeft",Q8);/**
|
|
107
|
+
* @license lucide-react v0.475.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const eP=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ul=Ct("ChevronRight",eP);/**
|
|
112
|
+
* @license lucide-react v0.475.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const tP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],nP=Ct("ChevronUp",tP);/**
|
|
117
|
+
* @license lucide-react v0.475.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const rP=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],iP=Ct("ChevronsUpDown",rP);/**
|
|
122
|
+
* @license lucide-react v0.475.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const uP=[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],aP=Ct("CopyCheck",uP);/**
|
|
127
|
+
* @license lucide-react v0.475.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const sP=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],oP=Ct("Copy",sP);/**
|
|
132
|
+
* @license lucide-react v0.475.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const lP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],cP=Ct("Download",lP);/**
|
|
137
|
+
* @license lucide-react v0.475.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const dP=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],fP=Ct("ExternalLink",dP);/**
|
|
142
|
+
* @license lucide-react v0.475.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const hP=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],AP=Ct("EyeOff",hP);/**
|
|
147
|
+
* @license lucide-react v0.475.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const mP=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pP=Ct("Eye",mP);/**
|
|
152
|
+
* @license lucide-react v0.475.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const EP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],gP=Ct("Globe",EP);/**
|
|
157
|
+
* @license lucide-react v0.475.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const _P=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]],SP=Ct("MoveVertical",_P);/**
|
|
162
|
+
* @license lucide-react v0.475.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const NP=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],IP=Ct("Pencil",NP);/**
|
|
167
|
+
* @license lucide-react v0.475.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const yP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mh=Ct("Plus",yP);/**
|
|
172
|
+
* @license lucide-react v0.475.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const CP=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],vP=Ct("RotateCcw",CP);/**
|
|
177
|
+
* @license lucide-react v0.475.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const RP=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],TP=Ct("Save",RP);/**
|
|
182
|
+
* @license lucide-react v0.475.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const DP=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],bP=Ct("Search",DP);/**
|
|
187
|
+
* @license lucide-react v0.475.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const xP=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],l4=Ct("Trash",xP);/**
|
|
192
|
+
* @license lucide-react v0.475.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const BP=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],U9=Ct("WandSparkles",BP);/**
|
|
197
|
+
* @license lucide-react v0.475.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const FP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Va=Ct("X",FP),k9=e=>{const[t,n]=y.useState(e);return y.useEffect(()=>{n(e??window.document.body)},[e]),t},OP={},dy=e=>{let t;const n=new Set,r=(m,E)=>{const g=typeof m=="function"?m(t):m;if(!Object.is(g,t)){const _=t;t=E??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(S=>S(t,_))}},u=()=>t,f={setState:r,getState:u,getInitialState:()=>h,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(OP?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},h=t=e(r,u,f);return f},LP=e=>e?dy(e):dy;var Np={exports:{}},Ip={},yp={exports:{}},Cp={};/**
|
|
202
|
+
* @license React
|
|
203
|
+
* use-sync-external-store-shim.production.js
|
|
204
|
+
*
|
|
205
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the MIT license found in the
|
|
208
|
+
* LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/var fy;function wP(){if(fy)return Cp;fy=1;var e=kc();function t(E,g){return E===g&&(E!==0||1/E===1/g)||E!==E&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,u=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function d(E,g){var _=g(),S=r({inst:{value:_,getSnapshot:g}}),C=S[0].inst,v=S[1];return o(function(){C.value=_,C.getSnapshot=g,f(C)&&v({inst:C})},[E,_,g]),u(function(){return f(C)&&v({inst:C}),E(function(){f(C)&&v({inst:C})})},[E]),l(_),_}function f(E){var g=E.getSnapshot;E=E.value;try{var _=g();return!n(E,_)}catch{return!0}}function h(E,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return Cp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Cp}var hy;function G9(){return hy||(hy=1,yp.exports=wP()),yp.exports}/**
|
|
210
|
+
* @license React
|
|
211
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
212
|
+
*
|
|
213
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
214
|
+
*
|
|
215
|
+
* This source code is licensed under the MIT license found in the
|
|
216
|
+
* LICENSE file in the root directory of this source tree.
|
|
217
|
+
*/var Ay;function MP(){if(Ay)return Ip;Ay=1;var e=kc(),t=G9();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var r=typeof Object.is=="function"?Object.is:n,u=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Ip.useSyncExternalStoreWithSelector=function(h,m,E,g,_){var S=o(null);if(S.current===null){var C={hasValue:!1,value:null};S.current=C}else C=S.current;S=d(function(){function R(B){if(!T){if(T=!0,b=B,B=g(B),_!==void 0&&C.hasValue){var O=C.value;if(_(O,B))return L=O}return L=B}if(O=L,r(b,B))return O;var H=g(B);return _!==void 0&&_(O,H)?(b=B,O):(b=B,L=H)}var T=!1,b,L,x=E===void 0?null:E;return[function(){return R(m())},x===null?void 0:function(){return R(x())}]},[m,E,g,_]);var v=u(h,S[0],S[1]);return l(function(){C.hasValue=!0,C.value=v},[v]),f(v),v},Ip}var my;function PP(){return my||(my=1,Np.exports=MP()),Np.exports}var HP=PP();const UP=lh(HP),V9={},{useDebugValue:kP}=$e,{useSyncExternalStoreWithSelector:GP}=UP;let py=!1;const VP=e=>e;function jP(e,t=VP,n){(V9?"production":void 0)!=="production"&&n&&!py&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),py=!0);const r=GP(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return kP(r),r}const Ey=e=>{(V9?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?LP(e):e,n=(r,u)=>jP(t,r,u);return Object.assign(n,t),n},j9=e=>e?Ey(e):Ey,zP=j9((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(u=>{const o=u.scrollBlockers,l=o.find(d=>d.element===r);if(l){const f=l.blockers.includes(n)?l.blockers:[...l.blockers,n];return{scrollBlockers:o.map(h=>h.element===r?{...h,blockers:f}:h)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...o,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(u=>{const o=u.scrollBlockers,l=o.find(d=>d.element===r);return l?l.blockers.length>1?{scrollBlockers:o.map(d=>d.element===r?{...d,blockers:d.blockers.filter(f=>f!==n)}:d)}:(r.style.overflowY="auto",{scrollBlockers:o.filter(d=>d.element!==r)}):{scrollBlockers:o}}),isElementScrollBlocked:n=>t().scrollBlockers.some(r=>r.element===n)}));function KP(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,u]of e)if(!Object.is(u,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:$P}=$e;function z9(e){const t=$P();return n=>{const r=e(n);return KP(t.current,r)?t.current:t.current=r}}const K9=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:u,addBlockage:o,removeBlockage:l}=zP(z9(h=>({isElementScrollBlocked:h.isElementScrollBlocked,addBlockage:h.addBlockage,removeBlockage:h.removeBlockage}))),d=k9(n);return y.useEffect(()=>{const h=n??window.document.body;t?o(r,h):l(r,h)},[o,t,n,r,l]),{isScrollBlocked:d?u(d):!1}},YP=e=>{switch(e){case"sm":return 640;case"md":return 768;case"lg":return 1024;case"xl":return 1280;case"2xl":return 1536;default:return e}},ZP=()=>{var t;if(typeof window>"u")return;const e=(t=window.navigator)==null?void 0:t.userAgent;if(!(typeof e>"u"))return/android|bb\d+|meego|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(e)},WP=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},gy=e=>{const t=YP(e),n=ZP(),r=WP(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},qP=(e="md")=>{const[t,n]=y.useState(gy(e));return y.useEffect(()=>{const r=()=>{n(gy(e))};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t},XP=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom;if(n>=0&&r<=window.innerHeight){const o=t.left+t.width/2,l=t.top+10,d=document.elementFromPoint(o,l);return e===d||e.contains(d)}return!1},_y=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Sy=Ah,Ir=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Sy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:u,defaultVariants:o}=t,l=Object.keys(u).map(h=>{const m=n==null?void 0:n[h],E=o==null?void 0:o[h];if(m===null)return null;const g=_y(m)||_y(E);return u[h][g]}),d=n&&Object.entries(n).reduce((h,m)=>{let[E,g]=m;return g===void 0||(h[E]=g),h},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,m)=>{let{class:E,className:g,..._}=m;return Object.entries(_).every(S=>{let[C,v]=S;return Array.isArray(v)?v.includes({...o,...d}[C]):{...o,...d}[C]===v})?[...h,E,g]:h},[]);return Sy(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},QP=({className:e,strokeWidth:t=4})=>N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:Re("size-full",e),children:N.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[N.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[N.jsx("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),N.jsx("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]}),N.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[N.jsx("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),N.jsx("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]})]})}),Qs=({children:e,isLoading:t=!0,className:n,...r})=>N.jsx(N.Fragment,{children:t?N.jsx("div",{className:Re("flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center",n),role:"status","aria-label":"Animated icon, meaning that the website is processing",...r,children:N.jsx(QP,{className:"size-10 max-h-full max-w-full"})}):e??N.jsx(N.Fragment,{})}),vp=Ir("",{variants:{size:{sm:"size-3 absolute top-1/2 -translate-y-1/2",md:"size-4 absolute top-1/2 -translate-y-1/2",lg:"size-5 absolute top-1/2 -translate-y-1/2",xl:"size-6 absolute top-1/2 -translate-y-1/2","icon-sm":"size-3","icon-md":"size-4","icon-lg":"size-5","icon-xl":"size-6"},position:{left:"left-3",right:"right-3"}},defaultVariants:{size:"md"}}),JP=Ir("relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"min-h-7 px-3 max-md:py-1 text-xs",md:"min-h-8 px-6 max-md:py-2 text-sm",lg:"min-h-10 px-8 max-md:py-3 text-lg",xl:"min-h-11 px-10 max-md:py-4 text-xl","icon-sm":"p-1.5","icon-md":"p-1.5","icon-lg":"p-2","icon-xl":"p-3"},color:{primary:"text-primary *:text-text-light",secondary:"text-secondary *:text-text-light",destructive:"text-destructive *:text-text-light",neutral:"text-neutral *:text-text-light",light:"text-white *:text-text-light",dark:"text-neutral-800 *:text-text-light",text:"text-text *:text-text-opposite","text-inverse":"text-text-opposite *:text-text",error:"text-error *:text-text-light",success:"text-success *:text-text-light",custom:""},variant:{default:"rounded-lg bg-current",none:"border-none bg-current/0 text-inherit hover:bg-current/0",outline:"*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30",link:"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline","invisible-link":"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",hoverable:"*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",input:["*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error","disabled:opacity-50"]},textAlign:{left:"text-left",center:"text-center",right:"text-right"},isFullWidth:{true:"w-full",false:""},hasIconLeft:{true:"px-12",false:""},hasIconRight:{true:"pr-8",false:""}},defaultVariants:{variant:"default",size:"md",color:"primary",textAlign:"center",isFullWidth:!1,hasIconRight:!1,hasIconLeft:!1}}),mt=({variant:e,size:t,color:n,children:r,Icon:u,IconRight:o,iconClassName:l,isLoading:d,isActive:f,isFullWidth:h=!1,textAlign:m,disabled:E,label:g,className:_,type:S="button",...C})=>{const v=e==="link"||e==="invisible-link";return N.jsxs("button",{disabled:d||E,"aria-current":f?"page":void 0,"aria-label":g,"aria-busy":d,role:v?"link":void 0,type:S,className:JP({variant:e,size:t,color:n,isFullWidth:h,textAlign:m??(o?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof u<"u"||typeof d<"u"),hasIconRight:typeof r<"u"&&typeof o<"u",className:_}),...C,children:[u&&!d&&N.jsx(u,{className:vp({size:t,className:l,position:"left"})}),N.jsx(Qs,{className:vp({size:t,className:l,position:"left"}),isLoading:d??!1}),N.jsx("span",{children:r}),o&&N.jsx(o,{className:vp({size:t,className:l,position:"right"})})]})},eH=Ir("flex text-text flex-col backdrop-blur",{variants:{roundedSize:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},transparency:{none:"bg-card",sm:"bg-card/90",md:"bg-card/70",lg:"bg-card/40",xl:"bg-card/20",full:""},padding:{none:"p-0",sm:"p-1",md:"p-2",lg:"p-3",xl:"p-4"},separator:{without:"",x:"divide-x divide-dashed divide-text/20",y:"divide-y divide-dashed divide-text/20",both:"divide-x divide-y divide-dashed divide-text/20"},border:{none:"",with:"border-[1.5px]"},borderColor:{primary:"border-primary",secondary:"border-secondary",neutral:"border-neutral",text:"border-text ",error:"border-error",warning:"border-warning",success:"border-success"},background:{none:"bg-inherit",hoverable:"!bg-opacity-5 backdrop-blur-0 hover:!bg-opacity-10 hover:backdrop-blur focus:!bg-opacity-10 focus:backdrop-blur aria-selected:!bg-opacity-15 aria-selected:backdrop-blur",with:""},gap:{none:"gap-0",sm:"gap-1",md:"gap-3",lg:"gap-5",xl:"gap-8","2xl":"gap-10"}},defaultVariants:{roundedSize:"md",border:"none",borderColor:"text",transparency:"md",padding:"none",separator:"without",gap:"none"}}),si=({children:e,roundedSize:t,padding:n,transparency:r,separator:u,className:o,border:l,borderColor:d,background:f,...h})=>N.jsx("div",{className:Re(eH({roundedSize:t,transparency:r,padding:n,separator:u,border:typeof l=="boolean"?l?"with":"none":void 0,background:f,borderColor:d,className:o})),...h,children:e}),ph=j9((e,t)=>({drawers:{},open:n=>e(r=>({drawers:{...r.drawers,[n]:!0}})),close:n=>e(r=>({drawers:{...r.drawers,[n]:!1}})),isOpen:n=>t().drawers[n]??!1})),$9=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:u=!0,backButton:o,isOpen:l,onClose:d})=>{const{isMobile:f}=qP("md"),h=y.useRef(null),m=y.useRef(null),{close:E,open:g,isOpen:_}=ph(z9(C=>({close:()=>C.close(t),open:()=>C.open(t),isOpen:C.isOpen(t)})));K9({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),y.useEffect(()=>{const C=v=>{try{if(!h.current)return;const R=_&&u,T=v.target&&!h.current.contains(v.target),b=XP(h.current);(R&&T&&b||!v.target)&&(E(),d==null||d())}catch{E(),d==null||d()}};return window.addEventListener("mousedown",C),()=>window.removeEventListener("mousedown",C)},[_,E,d,u,t]),y.useEffect(()=>{l!==void 0&&(l?g():(E(),d==null||d()))},[E,g,d,l,t]);const S=C=>{C.target===C.currentTarget&&f&&(E(),d==null||d())};return N.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:N.jsx(V8,{isHidden:!_,align:"right",children:N.jsxs(si,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:h,roundedSize:"none",children:[N.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[N.jsxs("div",{className:"flex justify-between gap-3",children:[N.jsx("div",{children:o&&N.jsx(mt,{variant:"hoverable",color:"text",label:o.text??"Go back",onClick:o.onBack,Icon:J8,children:o==null?void 0:o.text})}),N.jsx("div",{children:N.jsx(mt,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:E,Icon:Va,size:"icon-md"})})]}),e&&N.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),N.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:N.jsx("div",{className:"flex flex-1 flex-col",onClick:S,ref:m,children:n})})]})})})},Os=()=>({isFetched:!1,fetchedDateTime:null,isLoading:!1,isInvalidated:!1,error:null,isSuccess:!1,data:null,errorCount:0,isEnabled:!0}),Rp=(e,t)=>t.filter(n=>e.includes(n.split("/")[0])),tH=(e,t)=>{var n;switch(t.type){case"SET_QUERY_STATE":{const{key:r,value:u}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Os(),...u}}}}case"MAKE_QUERY_IN_ERROR":{const{key:r,error:u}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Os(),error:u,isFetched:!0,isSuccess:!1,errorCount:(((n=e.states[r])==null?void 0:n.errorCount)??0)+1,isLoading:!1,isInvalidated:!1}}}}case"SET_QUERIES_STATE":{const{keys:r,value:u}=t,o=[r].flat(),l=Object.keys(e.states),d=Rp(o,l);if(d.length===0)return e;const f=structuredClone(e.states);return d.forEach(h=>{f[h]={...e.states[h]??Os(),...u}}),{...e,states:f}}case"RESET_KEY_STATE":{const{keys:r}=t,u=[r].flat();if(u.length===0)return e;const o=Object.keys(e.states),l=Rp(u,o);if(l.length===0)return e;const d={...e.states};return l.forEach(f=>{d[f]=Os()}),{...e,states:d}}case"RESET_STATE":{const r=[t.excludeKeys].flat(),u=Object.keys(e.states),o=Rp(r,u),l={};return u.forEach(d=>{l[d]=o.includes(d)?e.states[d]:Os()}),{...e,states:l}}default:return e}},Y9=y.createContext(null),nH=({children:e})=>{const[t,n]=y.useReducer(tH,{states:{}}),r=h=>t.states[h]??Os(),u=(h,m)=>{n({type:"SET_QUERY_STATE",key:h,value:m})},o=(h,m)=>{n({type:"SET_QUERIES_STATE",keys:h,value:m})},l=(h,m)=>{n({type:"MAKE_QUERY_IN_ERROR",key:h,error:m})},d=h=>{n({type:"RESET_KEY_STATE",keys:h})},f=h=>{n({type:"RESET_STATE",excludeKeys:h})};return N.jsx(Y9.Provider,{value:{getStates:r,setQueryState:u,setQueriesState:o,makeQueryInError:l,resetKeyState:d,resetState:f},children:e})},rH=()=>{const e=y.useContext(Y9);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e},b0=new Map,iH=!1,uH=!1,aH=!0,sH=!1,oH=1,lH=!1,cH=5*60*1e3,dH=5*60*1e3,wE=e=>e?Array.isArray(e)?e:[e]:[],Ny=(e,t)=>wE(t).length>0?`${e}/${JSON.stringify(t)}`:e,$c=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??oH,u=(n==null?void 0:n.autoFetch)??sH,o=(n==null?void 0:n.retryTime)??dH,l=(n==null?void 0:n.cache)??iH,d=(n==null?void 0:n.store)??uH,f=(n==null?void 0:n.enable)??aH,h=(n==null?void 0:n.revalidation)??lH,m=(n==null?void 0:n.revalidateTime)??cH,E=(n==null?void 0:n.updateQueries)??[],g=(n==null?void 0:n.invalidateQueries)??[],_=n==null?void 0:n.onSuccess,S=n==null?void 0:n.onError,C=wE((n==null?void 0:n.args)??[]),{getStates:v,setQueryState:R,setQueriesState:T,makeQueryInError:b}=rH(),L=y.useRef(C),x=y.useRef(null),B=Ny(e,L.current),{isFetched:O,fetchedDateTime:H,isLoading:U,isEnabled:G,error:fe,isSuccess:ae,isInvalidated:ce,data:Z,errorCount:te}=v(B),V=async(...W)=>{const z=Ny(e,W);x.current&&x.current.abort();const re=new AbortController;if(x.current=re,b0.has(z))return b0.get(z);const ne=(async()=>{R(z,{isLoading:!0});let de=null;return await t(...W).then(Ee=>{de=Ee,R(z,{data:Ee,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),_==null||_(Ee),g.length>0&&T(g,{isInvalidated:!0}),E.length>0&&T(E,{data:Ee}),d&&localStorage.setItem(z,JSON.stringify(Ee))}).catch(Ee=>{const pe=Ee instanceof Error?Ee.message:String(Ee);b(z,pe),S==null||S(Ee.message)}).finally(()=>{b0.delete(z)}),de})();return b0.set(z,ne),await ne},ee=async(...W)=>{if(!(!G||!f))return W&&(L.current=wE(W)),await V(...L.current)},Q=async(...W)=>!G||!f||U?void 0:!ce&&ae&&l&&Z?Z:await ee(...W);y.useEffect(()=>{f!==G&&R(B,{isEnabled:G})},[f,G,B]),y.useEffect(()=>{if(!G||!f||!d||ce||O||Z)return;const W=localStorage.getItem(B);try{W&&R(B,{data:JSON.parse(W)})}catch(z){console.error(z)}},[d,B,O,ce,G,f,Z]),y.useEffect(()=>{u&&(!G||!f||O&&!ce||U||V(...L.current))},[u,G,f,O,ce,U,V]),y.useEffect(()=>{const W=te>0&&r>0,z=te>r;if(!G||!f||!W||z||!(l||d)||U||ae)return;const re=setTimeout(()=>{V(...L.current)},o);return()=>clearTimeout(re)},[G,te,r,f,o,l,d,ae,U,V]),y.useEffect(()=>{if(!h||m<=0||!G||!f||U||!ae||!H||!(l||d))return;const W=setTimeout(()=>{V(...L.current)},m);return()=>clearTimeout(W)},[h,m,l,d,ae,H,U,G,f,V]);const Ae=W=>{R(B,{data:W})},P={isFetched:O,isInvalidated:ce,error:fe,data:Z,errorCount:te,isSuccess:ae,isEnabled:G,isDisabled:!G,isLoading:U,isWaitingData:U&&!O&&!Z,isRevalidating:U&&O,[e]:Q,revalidate:ee,setData:Ae};return y.useEffect(()=>()=>{x.current&&x.current.abort()},[]),P},fH=e=>{var d;const t=ui(),r=ch(void 0,e??t??Qe),{data:u,isFetched:o}=$c("getCSRFToken",r.auth.getCSRFToken,{cache:!0,autoFetch:!0});return{csrfToken:(d=u==null?void 0:u.data)==null?void 0:d.csrf_token,csrfTokenFetched:o}},hH=e=>{const t=ui(),n=e??t??Qe,r=ch(void 0,n),{data:u}=$c("getOAuth2AccessToken",()=>r.auth.getOAuth2AccessToken(),{cache:!0,autoFetch:!0,enable:!!(n.editor.clientId&&n.editor.clientSecret)});return{oAuth2AccessToken:u==null?void 0:u.data}},AH=(e,t)=>{const n=ui(),u=ch(void 0,t??n??Qe),{getSession:o,revalidate:l,data:d,setData:f,isFetched:h}=$c("getSession",async()=>{try{const E=await u.auth.getSession();if(E.data){const{user:g,organization:_,project:S}=E.data;return{user:g,organization:_,isOrganizationAdmin:(g&&((_==null?void 0:_.adminsIds)??[]).includes(g._id))??!1,project:S,isProjectAdmin:(g&&((S==null?void 0:S.adminsIds)??[]).includes(g._id))??!1}}}catch(E){console.error(E)}return null},{cache:!0,store:!0,autoFetch:!0,enable:!e,invalidateQueries:["getOrganizations","getProjects","getUsers","getDictionaries"]});return{session:y.useMemo(()=>d??(h?null:void 0),[d,h]),fetchSession:o,revalidateSession:l,setSession:f}},Yc=({session:e,intlayerConfiguration:t}={})=>{const{csrfToken:n,csrfTokenFetched:r}=fH(t),{session:u,fetchSession:o,revalidateSession:l,setSession:d}=AH(e,t),{oAuth2AccessToken:f}=hH(t);return{session:u,fetchSession:o,setSession:d,revalidateSession:l,csrfToken:n,csrfTokenFetched:r,oAuth2AccessToken:f,isAuthenticated:!!(u||f),isProjectAdmin:u==null?void 0:u.isProjectAdmin,isOrganizationAdmin:u==null?void 0:u.isOrganizationAdmin}};function lt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(u){if(e==null||e(u),n===!1||!u.defaultPrevented)return t==null?void 0:t(u)}}function Iy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Z9(...e){return t=>{let n=!1;const r=e.map(u=>{const o=Iy(u,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let u=0;u<r.length;u++){const o=r[u];typeof o=="function"?o():Iy(e[u],null)}}}}function xt(...e){return y.useCallback(Z9(...e),e)}function mH(e,t){const n=y.createContext(t),r=o=>{const{children:l,...d}=o,f=y.useMemo(()=>d,Object.values(d));return N.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function u(o){const l=y.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,u]}function Zc(e,t=[]){let n=[];function r(o,l){const d=y.createContext(l),f=n.length;n=[...n,l];const h=E=>{var R;const{scope:g,children:_,...S}=E,C=((R=g==null?void 0:g[e])==null?void 0:R[f])||d,v=y.useMemo(()=>S,Object.values(S));return N.jsx(C.Provider,{value:v,children:_})};h.displayName=o+"Provider";function m(E,g){var C;const _=((C=g==null?void 0:g[e])==null?void 0:C[f])||d,S=y.useContext(_);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${E}\` must be used within \`${o}\``)}return[h,m]}const u=()=>{const o=n.map(l=>y.createContext(l));return function(d){const f=(d==null?void 0:d[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return u.scopeName=e,[r,pH(u,...t)]}function pH(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(o){const l=r.reduce((d,{useScope:f,scopeName:h})=>{const E=f(o)[`__scope${h}`];return{...d,...E}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var xa=y.forwardRef((e,t)=>{const{children:n,...r}=e,u=y.Children.toArray(n),o=u.find(gH);if(o){const l=o.props.children,d=u.map(f=>f===o?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:f);return N.jsx(ME,{...r,ref:t,children:y.isValidElement(l)?y.cloneElement(l,void 0,d):null})}return N.jsx(ME,{...r,ref:t,children:n})});xa.displayName="Slot";var ME=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const u=SH(n),o=_H(r,n.props);return n.type!==y.Fragment&&(o.ref=t?Z9(t,u):u),y.cloneElement(n,o)}return y.Children.count(n)>1?y.Children.only(null):null});ME.displayName="SlotClone";var EH=({children:e})=>N.jsx(N.Fragment,{children:e});function gH(e){return y.isValidElement(e)&&e.type===EH}function _H(e,t){const n={...t};for(const r in t){const u=e[r],o=t[r];/^on[A-Z]/.test(r)?u&&o?n[r]=(...d)=>{o(...d),u(...d)}:u&&(n[r]=u):r==="style"?n[r]={...u,...o}:r==="className"&&(n[r]=[u,o].filter(Boolean).join(" "))}return{...e,...n}}function SH(e){var r,u;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function W9(e){const t=e+"CollectionProvider",[n,r]=Zc(t),[u,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:S,children:C}=_,v=$e.useRef(null),R=$e.useRef(new Map).current;return N.jsx(u,{scope:S,itemMap:R,collectionRef:v,children:C})};l.displayName=t;const d=e+"CollectionSlot",f=$e.forwardRef((_,S)=>{const{scope:C,children:v}=_,R=o(d,C),T=xt(S,R.collectionRef);return N.jsx(xa,{ref:T,children:v})});f.displayName=d;const h=e+"CollectionItemSlot",m="data-radix-collection-item",E=$e.forwardRef((_,S)=>{const{scope:C,children:v,...R}=_,T=$e.useRef(null),b=xt(S,T),L=o(h,C);return $e.useEffect(()=>(L.itemMap.set(T,{ref:T,...R}),()=>void L.itemMap.delete(T))),N.jsx(xa,{[m]:"",ref:b,children:v})});E.displayName=h;function g(_){const S=o(e+"CollectionConsumer",_);return $e.useCallback(()=>{const v=S.collectionRef.current;if(!v)return[];const R=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((L,x)=>R.indexOf(L.ref.current)-R.indexOf(x.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:f,ItemSlot:E},g,r]}var NH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=NH.reduce((e,t)=>{const n=y.forwardRef((r,u)=>{const{asChild:o,...l}=r,d=o?xa:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(d,{...l,ref:u})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function q9(e,t){e&&Ga.flushSync(()=>e.dispatchEvent(t))}function er(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function IH(e,t=globalThis==null?void 0:globalThis.document){const n=er(e);y.useEffect(()=>{const r=u=>{u.key==="Escape"&&n(u)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yH="DismissableLayer",PE="dismissableLayer.update",CH="dismissableLayer.pointerDownOutside",vH="dismissableLayer.focusOutside",yy,X9=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eh=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:u,onFocusOutside:o,onInteractOutside:l,onDismiss:d,...f}=e,h=y.useContext(X9),[m,E]=y.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=y.useState({}),S=xt(t,O=>E(O)),C=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),R=C.indexOf(v),T=m?C.indexOf(m):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,L=T>=R,x=TH(O=>{const H=O.target,U=[...h.branches].some(G=>G.contains(H));!L||U||(u==null||u(O),l==null||l(O),O.defaultPrevented||d==null||d())},g),B=DH(O=>{const H=O.target;[...h.branches].some(G=>G.contains(H))||(o==null||o(O),l==null||l(O),O.defaultPrevented||d==null||d())},g);return IH(O=>{T===h.layers.size-1&&(r==null||r(O),!O.defaultPrevented&&d&&(O.preventDefault(),d()))},g),y.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(yy=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),Cy(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=yy)}},[m,g,n,h]),y.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),Cy())},[m,h]),y.useEffect(()=>{const O=()=>_({});return document.addEventListener(PE,O),()=>document.removeEventListener(PE,O)},[]),N.jsx(nt.div,{...f,ref:S,style:{pointerEvents:b?L?"auto":"none":void 0,...e.style},onFocusCapture:lt(e.onFocusCapture,B.onFocusCapture),onBlurCapture:lt(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:lt(e.onPointerDownCapture,x.onPointerDownCapture)})});Eh.displayName=yH;var RH="DismissableLayerBranch",Q9=y.forwardRef((e,t)=>{const n=y.useContext(X9),r=y.useRef(null),u=xt(t,r);return y.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),N.jsx(nt.div,{...e,ref:u})});Q9.displayName=RH;function TH(e,t=globalThis==null?void 0:globalThis.document){const n=er(e),r=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const o=d=>{if(d.target&&!r.current){let f=function(){J9(CH,n,h,{discrete:!0})};const h={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",u.current),u.current=f,t.addEventListener("click",u.current,{once:!0})):f()}else t.removeEventListener("click",u.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",u.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function DH(e,t=globalThis==null?void 0:globalThis.document){const n=er(e),r=y.useRef(!1);return y.useEffect(()=>{const u=o=>{o.target&&!r.current&&J9(vH,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",u),()=>t.removeEventListener("focusin",u)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Cy(){const e=new CustomEvent(PE);document.dispatchEvent(e)}function J9(e,t,n,{discrete:r}){const u=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),r?q9(u,o):u.dispatchEvent(o)}var bH=Eh,xH=Q9,Cn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},BH="Portal",gh=y.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[u,o]=y.useState(!1);Cn(()=>o(!0),[]);const l=n||u&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return l?t8.createPortal(N.jsx(nt.div,{...r,ref:t}),l):null});gh.displayName=BH;function FH(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Wc=e=>{const{present:t,children:n}=e,r=OH(t),u=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),o=xt(r.ref,LH(u));return typeof n=="function"||r.isPresent?y.cloneElement(u,{ref:o}):null};Wc.displayName="Presence";function OH(e){const[t,n]=y.useState(),r=y.useRef({}),u=y.useRef(e),o=y.useRef("none"),l=e?"mounted":"unmounted",[d,f]=FH(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const h=x0(r.current);o.current=d==="mounted"?h:"none"},[d]),Cn(()=>{const h=r.current,m=u.current;if(m!==e){const g=o.current,_=x0(h);e?f("MOUNT"):_==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&g!==_?"ANIMATION_OUT":"UNMOUNT"),u.current=e}},[e,f]),Cn(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,E=_=>{const C=x0(r.current).includes(_.animationName);if(_.target===t&&C&&(f("ANIMATION_END"),!u.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=_=>{_.target===t&&(o.current=x0(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:y.useCallback(h=>{h&&(r.current=getComputedStyle(h)),n(h)},[])}}function x0(e){return(e==null?void 0:e.animationName)||"none"}function LH(e){var r,u;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gf({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,u]=wH({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,d=er(n),f=y.useCallback(h=>{if(o){const E=typeof h=="function"?h(e):h;E!==e&&d(E)}else u(h)},[o,e,u,d]);return[l,f]}function wH({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,u=y.useRef(r),o=er(t);return y.useEffect(()=>{u.current!==r&&(o(r),u.current=r)},[r,u,o]),n}var MH="VisuallyHidden",_h=y.forwardRef((e,t)=>N.jsx(nt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));_h.displayName=MH;var c4="ToastProvider",[d4,PH,HH]=W9("Toast"),[eT,UH]=Zc("Toast",[HH]),[kH,Sh]=eT(c4),f4=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:u="right",swipeThreshold:o=50,children:l}=e,[d,f]=y.useState(null),[h,m]=y.useState(0),E=y.useRef(!1),g=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${c4}\`. Expected non-empty \`string\`.`),N.jsx(d4.Provider,{scope:t,children:N.jsx(kH,{scope:t,label:n,duration:r,swipeDirection:u,swipeThreshold:o,toastCount:h,viewport:d,onViewportChange:f,onToastAdd:y.useCallback(()=>m(_=>_+1),[]),onToastRemove:y.useCallback(()=>m(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:g,children:l})})};f4.displayName=c4;var tT="ToastViewport",GH=["F8"],HE="toast.viewportPause",UE="toast.viewportResume",h4=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=GH,label:u="Notifications ({hotkey})",...o}=e,l=Sh(tT,n),d=PH(n),f=y.useRef(null),h=y.useRef(null),m=y.useRef(null),E=y.useRef(null),g=xt(t,E,l.onViewportChange),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=l.toastCount>0;y.useEffect(()=>{const v=R=>{var b;r.length!==0&&r.every(L=>R[L]||R.code===L)&&((b=E.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),y.useEffect(()=>{const v=f.current,R=E.current;if(S&&v&&R){const T=()=>{if(!l.isClosePausedRef.current){const B=new CustomEvent(HE);R.dispatchEvent(B),l.isClosePausedRef.current=!0}},b=()=>{if(l.isClosePausedRef.current){const B=new CustomEvent(UE);R.dispatchEvent(B),l.isClosePausedRef.current=!1}},L=B=>{!v.contains(B.relatedTarget)&&b()},x=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",T),v.addEventListener("focusout",L),v.addEventListener("pointermove",T),v.addEventListener("pointerleave",x),window.addEventListener("blur",T),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",T),v.removeEventListener("focusout",L),v.removeEventListener("pointermove",T),v.removeEventListener("pointerleave",x),window.removeEventListener("blur",T),window.removeEventListener("focus",b)}}},[S,l.isClosePausedRef]);const C=y.useCallback(({tabbingDirection:v})=>{const T=d().map(b=>{const L=b.ref.current,x=[L,...eU(L)];return v==="forwards"?x:x.reverse()});return(v==="forwards"?T.reverse():T).flat()},[d]);return y.useEffect(()=>{const v=E.current;if(v){const R=T=>{var x,B,O;const b=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!b){const H=document.activeElement,U=T.shiftKey;if(T.target===v&&U){(x=h.current)==null||x.focus();return}const ae=C({tabbingDirection:U?"backwards":"forwards"}),ce=ae.findIndex(Z=>Z===H);Tp(ae.slice(ce+1))?T.preventDefault():U?(B=h.current)==null||B.focus():(O=m.current)==null||O.focus()}};return v.addEventListener("keydown",R),()=>v.removeEventListener("keydown",R)}},[d,C]),N.jsxs(xH,{ref:f,role:"region","aria-label":u.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&N.jsx(kE,{ref:h,onFocusFromOutsideViewport:()=>{const v=C({tabbingDirection:"forwards"});Tp(v)}}),N.jsx(d4.Slot,{scope:n,children:N.jsx(nt.ol,{tabIndex:-1,...o,ref:g})}),S&&N.jsx(kE,{ref:m,onFocusFromOutsideViewport:()=>{const v=C({tabbingDirection:"backwards"});Tp(v)}})]})});h4.displayName=tT;var nT="ToastFocusProxy",kE=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...u}=e,o=Sh(nT,n);return N.jsx(_h,{"aria-hidden":!0,tabIndex:0,...u,ref:t,style:{position:"fixed"},onFocus:l=>{var h;const d=l.relatedTarget;!((h=o.viewport)!=null&&h.contains(d))&&r()}})});kE.displayName=nT;var Nh="Toast",VH="toast.swipeStart",jH="toast.swipeMove",zH="toast.swipeCancel",KH="toast.swipeEnd",A4=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:u,onOpenChange:o,...l}=e,[d=!0,f]=gf({prop:r,defaultProp:u,onChange:o});return N.jsx(Wc,{present:n||d,children:N.jsx(ZH,{open:d,...l,ref:t,onClose:()=>f(!1),onPause:er(e.onPause),onResume:er(e.onResume),onSwipeStart:lt(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:lt(e.onSwipeMove,h=>{const{x:m,y:E}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:lt(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:lt(e.onSwipeEnd,h=>{const{x:m,y:E}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),f(!1)})})})});A4.displayName=Nh;var[$H,YH]=eT(Nh,{onClose(){}}),ZH=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:u,open:o,onClose:l,onEscapeKeyDown:d,onPause:f,onResume:h,onSwipeStart:m,onSwipeMove:E,onSwipeCancel:g,onSwipeEnd:_,...S}=e,C=Sh(Nh,n),[v,R]=y.useState(null),T=xt(t,Z=>R(Z)),b=y.useRef(null),L=y.useRef(null),x=u||C.duration,B=y.useRef(0),O=y.useRef(x),H=y.useRef(0),{onToastAdd:U,onToastRemove:G}=C,fe=er(()=>{var te;(v==null?void 0:v.contains(document.activeElement))&&((te=C.viewport)==null||te.focus()),l()}),ae=y.useCallback(Z=>{!Z||Z===1/0||(window.clearTimeout(H.current),B.current=new Date().getTime(),H.current=window.setTimeout(fe,Z))},[fe]);y.useEffect(()=>{const Z=C.viewport;if(Z){const te=()=>{ae(O.current),h==null||h()},V=()=>{const ee=new Date().getTime()-B.current;O.current=O.current-ee,window.clearTimeout(H.current),f==null||f()};return Z.addEventListener(HE,V),Z.addEventListener(UE,te),()=>{Z.removeEventListener(HE,V),Z.removeEventListener(UE,te)}}},[C.viewport,x,f,h,ae]),y.useEffect(()=>{o&&!C.isClosePausedRef.current&&ae(x)},[o,x,C.isClosePausedRef,ae]),y.useEffect(()=>(U(),()=>G()),[U,G]);const ce=y.useMemo(()=>v?aT(v):null,[v]);return C.viewport?N.jsxs(N.Fragment,{children:[ce&&N.jsx(WH,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ce}),N.jsx($H,{scope:n,onClose:fe,children:Ga.createPortal(N.jsx(d4.ItemSlot,{scope:n,children:N.jsx(bH,{asChild:!0,onEscapeKeyDown:lt(d,()=>{C.isFocusedToastEscapeKeyDownRef.current||fe(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:N.jsx(nt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":C.swipeDirection,...S,ref:T,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:lt(e.onKeyDown,Z=>{Z.key==="Escape"&&(d==null||d(Z.nativeEvent),Z.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,fe()))}),onPointerDown:lt(e.onPointerDown,Z=>{Z.button===0&&(b.current={x:Z.clientX,y:Z.clientY})}),onPointerMove:lt(e.onPointerMove,Z=>{if(!b.current)return;const te=Z.clientX-b.current.x,V=Z.clientY-b.current.y,ee=!!L.current,Q=["left","right"].includes(C.swipeDirection),Ae=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,P=Q?Ae(0,te):0,W=Q?0:Ae(0,V),z=Z.pointerType==="touch"?10:2,re={x:P,y:W},ne={originalEvent:Z,delta:re};ee?(L.current=re,B0(jH,E,ne,{discrete:!1})):vy(re,C.swipeDirection,z)?(L.current=re,B0(VH,m,ne,{discrete:!1}),Z.target.setPointerCapture(Z.pointerId)):(Math.abs(te)>z||Math.abs(V)>z)&&(b.current=null)}),onPointerUp:lt(e.onPointerUp,Z=>{const te=L.current,V=Z.target;if(V.hasPointerCapture(Z.pointerId)&&V.releasePointerCapture(Z.pointerId),L.current=null,b.current=null,te){const ee=Z.currentTarget,Q={originalEvent:Z,delta:te};vy(te,C.swipeDirection,C.swipeThreshold)?B0(KH,_,Q,{discrete:!0}):B0(zH,g,Q,{discrete:!0}),ee.addEventListener("click",Ae=>Ae.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),WH=e=>{const{__scopeToast:t,children:n,...r}=e,u=Sh(Nh,t),[o,l]=y.useState(!1),[d,f]=y.useState(!1);return QH(()=>l(!0)),y.useEffect(()=>{const h=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(h)},[]),d?null:N.jsx(gh,{asChild:!0,children:N.jsx(_h,{...r,children:o&&N.jsxs(N.Fragment,{children:[u.label," ",n]})})})},qH="ToastTitle",m4=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});m4.displayName=qH;var XH="ToastDescription",p4=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});p4.displayName=XH;var rT="ToastAction",E4=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?N.jsx(uT,{altText:n,asChild:!0,children:N.jsx(Ih,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rT}\`. Expected non-empty \`string\`.`),null)});E4.displayName=rT;var iT="ToastClose",Ih=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,u=YH(iT,n);return N.jsx(uT,{asChild:!0,children:N.jsx(nt.button,{type:"button",...r,ref:t,onClick:lt(e.onClick,u.onClose)})})});Ih.displayName=iT;var uT=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...u}=e;return N.jsx(nt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...u,ref:t})});function aT(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),JH(r)){const u=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!u)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...aT(r))}}),t}function B0(e,t,n,{discrete:r}){const u=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),r?q9(u,o):u.dispatchEvent(o)}var vy=(e,t,n=0)=>{const r=Math.abs(e.x),u=Math.abs(e.y),o=r>u;return t==="left"||t==="right"?o&&r>n:!o&&u>n};function QH(e=()=>{}){const t=er(e);Cn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function JH(e){return e.nodeType===e.ELEMENT_NODE}function eU(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Tp(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var tU=f4,sT=h4,oT=A4,lT=m4,cT=p4,nU=E4,dT=Ih;const rU=Object.freeze(Object.defineProperty({__proto__:null,Action:nU,Close:dT,Description:cT,Provider:tU,Root:oT,Title:lT,Toast:A4,ToastAction:E4,ToastClose:Ih,ToastDescription:p4,ToastProvider:f4,ToastTitle:m4,ToastViewport:h4,Viewport:sT,createToastScope:UH},Symbol.toStringTag,{value:"Module"})),iU=rU,uU=({className:e,...t})=>N.jsx(sT,{className:Re("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}),aU=Ir("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md p-4 pr-6 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{error:"bg-error/40 text-text",success:"bg-success/30 text-text",default:"bg-card/80 text-text"}},defaultVariants:{variant:"default"}}),sU=({className:e,variant:t,...n})=>N.jsx(oT,{className:Re(aU({variant:t}),e),...n}),oU=({className:e,...t})=>N.jsx(dT,{className:Re("text-text/50 hover:text-text/80 focus:outline-hidden absolute right-1 top-1 rounded-md p-1 opacity-0 transition-opacity focus:opacity-100 focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:N.jsx(Va,{className:"size-5"})}),lU=({className:e,...t})=>N.jsx(lT,{className:Re("text-sm font-semibold [&+div]:text-xs",e),...t}),cU=({className:e,...t})=>N.jsx(cT,{className:Re("text-sm opacity-90",e),...t}),dU=1,fU=15*60*1e3;let Dp=0;const hU=()=>(Dp=(Dp+1)%Number.MAX_SAFE_INTEGER,Dp.toString()),bp=new Map,Ry=e=>{if(bp.has(e))return;const t=setTimeout(()=>{bp.delete(e),ql({type:"REMOVE_TOAST",toastId:e})},fU);bp.set(e,t)},AU=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,dU)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ry(n):e.toasts.forEach(r=>{Ry(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},tf=[];let nf={toasts:[]};const ql=e=>{nf=AU(nf,e),tf.forEach(t=>{t(nf)})},mU=({...e})=>{const t=hU(),n=u=>ql({type:"UPDATE_TOAST",toast:{...u,id:t}}),r=()=>ql({type:"DISMISS_TOAST",toastId:t});return ql({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:u=>{u||r()}}}),{id:t,dismiss:r,update:n}},fT=()=>{const[e,t]=y.useState(nf);return y.useEffect(()=>(tf.push(t),()=>{const n=tf.indexOf(t);n>-1&&tf.splice(n,1)}),[e]),{...e,toast:mU,dismiss:n=>ql({type:"DISMISS_TOAST",toastId:n})}},Vi=e=>{const t=ui(),{csrfToken:n,oAuth2AccessToken:r}=Yc(),u=r!=null&&r.accessToken?{Authorization:`Bearer ${r.accessToken}`}:void 0;return ch({headers:u,body:n?{csrf_token:n}:void 0},t)};var pU={};const hT=e=>{const{toast:t}=fT();return{...e,onError:n=>{var u;let r;try{if(typeof n>"u")return;r=JSON.parse(n)}catch{r=n}[r].flatMap(o=>o).forEach(o=>t({title:(pU.NODE_ENV==="production"?o.title:o.code)??"Error",description:o.message??n??"An error occurred",variant:"error"})),(u=e.onError)==null||u.call(e,n)},onSuccess:n=>{var r;n.message&&t({title:n.message,description:n.description,variant:"success"}),(r=e.onSuccess)==null||r.call(e,n)}}},EU=(e,{requireUser:t,requireProject:n,requireOrganization:r}={})=>{const u=ui(),{csrfToken:o,oAuth2AccessToken:l,session:d}=Yc({intlayerConfiguration:u}),f=(e==null?void 0:e.enable)??!0,h=d?d.user:l==null?void 0:l.user,m=d?d.organization:l==null?void 0:l.organization,E=d?d.project:l==null?void 0:l.project;return{...e,enable:f&&(t?!!h:!0)&&(n?!!E:!0)&&(r?!!m:!0)&&(!!o||!d&&!!l)}},wu=(e,t,n,r)=>{const u=EU(n??{},r),o=hT(u);return $c(e,t,o)},gU=(e,t,n)=>{const r=hT({});return $c(e,t,r)},_U=e=>wu("logout",Vi().auth.logout,{invalidateQueries:["getSession"],...e}),SU=e=>wu("getProjects",Vi().project.getProjects,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),NU=e=>wu("getDictionaries",Vi().dictionary.getDictionaries,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0,requireProject:!0}),IU=e=>wu("pushDictionaries",Vi().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),yU=e=>wu("getTags",Vi().tag.getTags,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),CU=e=>wu("auditContentDeclaration",Vi().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),vU=e=>wu("auditContentDeclarationField",Vi().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),RU=e=>wu("autocomplete",Vi().ai.autocomplete,e),TU=e=>gU("writeDictionary",Vi().editor.writeDictionary);var xp,Ty;function DU(){if(Ty)return xp;Ty=1;var e=function(T){return t(T)&&!n(T)};function t(R){return!!R&&typeof R=="object"}function n(R){var T=Object.prototype.toString.call(R);return T==="[object RegExp]"||T==="[object Date]"||o(R)}var r=typeof Symbol=="function"&&Symbol.for,u=r?Symbol.for("react.element"):60103;function o(R){return R.$$typeof===u}function l(R){return Array.isArray(R)?[]:{}}function d(R,T){return T.clone!==!1&&T.isMergeableObject(R)?C(l(R),R,T):R}function f(R,T,b){return R.concat(T).map(function(L){return d(L,b)})}function h(R,T){if(!T.customMerge)return C;var b=T.customMerge(R);return typeof b=="function"?b:C}function m(R){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(R).filter(function(T){return Object.propertyIsEnumerable.call(R,T)}):[]}function E(R){return Object.keys(R).concat(m(R))}function g(R,T){try{return T in R}catch{return!1}}function _(R,T){return g(R,T)&&!(Object.hasOwnProperty.call(R,T)&&Object.propertyIsEnumerable.call(R,T))}function S(R,T,b){var L={};return b.isMergeableObject(R)&&E(R).forEach(function(x){L[x]=d(R[x],b)}),E(T).forEach(function(x){_(R,x)||(g(R,x)&&b.isMergeableObject(T[x])?L[x]=h(x,b)(R[x],T[x],b):L[x]=d(T[x],b))}),L}function C(R,T,b){b=b||{},b.arrayMerge=b.arrayMerge||f,b.isMergeableObject=b.isMergeableObject||e,b.cloneUnlessOtherwiseSpecified=d;var L=Array.isArray(T),x=Array.isArray(R),B=L===x;return B?L?b.arrayMerge(R,T,b):S(R,T,b):d(T,b)}C.all=function(T,b){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce(function(L,x){return C(L,x,b)},{})};var v=C;return xp=v,xp}var bU=DU();const xU=lh(bU);var qc=e=>e.type==="checkbox",Ia=e=>e instanceof Date,bn=e=>e==null;const AT=e=>typeof e=="object";var Gt=e=>!bn(e)&&!Array.isArray(e)&&AT(e)&&!Ia(e),mT=e=>Gt(e)&&e.target?qc(e.target)?e.target.checked:e.target.value:e,BU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pT=(e,t)=>e.has(BU(t)),FU=e=>{const t=e.constructor&&e.constructor.prototype;return Gt(t)&&t.hasOwnProperty("isPrototypeOf")},g4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(g4&&(e instanceof Blob||r))&&(n||Gt(e)))if(t=n?[]:{},!n&&!FU(e))t=e;else for(const u in e)e.hasOwnProperty(u)&&(t[u]=Mn(e[u]));else return e;return t}var yh=e=>Array.isArray(e)?e.filter(Boolean):[],kt=e=>e===void 0,Ne=(e,t,n)=>{if(!t||!Gt(e))return n;const r=yh(t.split(/[,[\].]+?/)).reduce((u,o)=>bn(u)?u:u[o],e);return kt(r)||r===e?kt(e[t])?n:e[t]:r},Er=e=>typeof e=="boolean",_4=e=>/^\w*$/.test(e),ET=e=>yh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),At=(e,t,n)=>{let r=-1;const u=_4(t)?[t]:ET(t),o=u.length,l=o-1;for(;++r<o;){const d=u[r];let f=n;if(r!==l){const h=e[d];f=Gt(h)||Array.isArray(h)?h:isNaN(+u[r+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=f,e=e[d]}return e};const _f={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},xr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ti={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},gT=$e.createContext(null),Mu=()=>$e.useContext(gT),OU=e=>{const{children:t,...n}=e;return $e.createElement(gT.Provider,{value:n},t)};var _T=(e,t,n,r=!0)=>{const u={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(u,o,{get:()=>{const l=o;return t._proxyFormState[l]!==xr.all&&(t._proxyFormState[l]=!r||xr.all),n&&(n[l]=!0),e[l]}});return u},Pn=e=>Gt(e)&&!Object.keys(e).length,ST=(e,t,n,r)=>{n(e);const{name:u,...o}=e;return Pn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||xr.all))},Xl=e=>Array.isArray(e)?e:[e],NT=(e,t,n)=>!e||!t||e===t||Xl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function S4(e){const t=$e.useRef(e);t.current=e,$e.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function LU(e){const t=Mu(),{control:n=t.control,disabled:r,name:u,exact:o}=e||{},[l,d]=$e.useState(n._formState),f=$e.useRef(!0),h=$e.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=$e.useRef(u);return m.current=u,S4({disabled:r,next:E=>f.current&&NT(m.current,E.name,o)&&ST(E,h.current,n._updateFormState)&&d({...n._formState,...E}),subject:n._subjects.state}),$e.useEffect(()=>(f.current=!0,h.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),$e.useMemo(()=>_T(l,n,h.current,!1),[l,n])}var Wr=e=>typeof e=="string",IT=(e,t,n,r,u)=>Wr(e)?(r&&t.watch.add(e),Ne(n,e,u)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ne(n,o))):(r&&(t.watchAll=!0),n);function wU(e){const t=Mu(),{control:n=t.control,name:r,defaultValue:u,disabled:o,exact:l}=e||{},d=$e.useRef(r);d.current=r,S4({disabled:o,subject:n._subjects.values,next:m=>{NT(d.current,m.name,l)&&h(Mn(IT(d.current,n._names,m.values||n._formValues,!1,u)))}});const[f,h]=$e.useState(n._getWatch(r,u));return $e.useEffect(()=>n._removeUnmounted()),f}function MU(e){const t=Mu(),{name:n,disabled:r,control:u=t.control,shouldUnregister:o}=e,l=pT(u._names.array,n),d=wU({control:u,name:n,defaultValue:Ne(u._formValues,n,Ne(u._defaultValues,n,e.defaultValue)),exact:!0}),f=LU({control:u,name:n,exact:!0}),h=$e.useRef(u.register(n,{...e.rules,value:d,...Er(e.disabled)?{disabled:e.disabled}:{}})),m=$e.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ne(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ne(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ne(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ne(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ne(f.errors,n)}}),[f,n]),E=$e.useMemo(()=>({name:n,value:d,...Er(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g=>h.current.onChange({target:{value:mT(g),name:n},type:_f.CHANGE}),onBlur:()=>h.current.onBlur({target:{value:Ne(u._formValues,n),name:n},type:_f.BLUR}),ref:g=>{const _=Ne(u._fields,n);_&&g&&(_._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:S=>g.setCustomValidity(S),reportValidity:()=>g.reportValidity()})}}),[n,u._formValues,r,f.disabled,d,u._fields]);return $e.useEffect(()=>{const g=u._options.shouldUnregister||o,_=(S,C)=>{const v=Ne(u._fields,S);v&&v._f&&(v._f.mount=C)};if(_(n,!0),g){const S=Mn(Ne(u._options.defaultValues,n));At(u._defaultValues,n,S),kt(Ne(u._formValues,n))&&At(u._formValues,n,S)}return!l&&u.register(n),()=>{(l?g&&!u._state.action:g)?u.unregister(n):_(n,!1)}},[n,u,l,o]),$e.useEffect(()=>{u._updateDisabledField({disabled:r,fields:u._fields,name:n})},[r,n,u]),$e.useMemo(()=>({field:E,formState:f,fieldState:m}),[E,f,m])}const PU=e=>e.render(MU(e));var yT=(e,t,n,r,u)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:u||!0}}:{},Dy=e=>({isOnSubmit:!e||e===xr.onSubmit,isOnBlur:e===xr.onBlur,isOnChange:e===xr.onChange,isOnAll:e===xr.all,isOnTouch:e===xr.onTouched}),by=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ql=(e,t,n,r)=>{for(const u of n||Object.keys(e)){const o=Ne(e,u);if(o){const{_f:l,...d}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],u)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Ql(d,t))break}else if(Gt(d)&&Ql(d,t))break}}};var HU=(e,t,n)=>{const r=Xl(Ne(e,n));return At(r,"root",t[n]),At(e,n,r),e},N4=e=>e.type==="file",$r=e=>typeof e=="function",Sf=e=>{if(!g4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rf=e=>Wr(e),I4=e=>e.type==="radio",Nf=e=>e instanceof RegExp;const xy={value:!1,isValid:!1},By={value:!0,isValid:!0};var CT=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!kt(e[0].attributes.value)?kt(e[0].value)||e[0].value===""?By:{value:e[0].value,isValid:!0}:By:xy}return xy};const Fy={isValid:!1,value:null};var vT=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Fy):Fy;function Oy(e,t,n="validate"){if(rf(e)||Array.isArray(e)&&e.every(rf)||Er(e)&&!e)return{type:n,message:rf(e)?e:"",ref:t}}var bs=e=>Gt(e)&&!Nf(e)?e:{value:e,message:""},Ly=async(e,t,n,r,u,o)=>{const{ref:l,refs:d,required:f,maxLength:h,minLength:m,min:E,max:g,pattern:_,validate:S,name:C,valueAsNumber:v,mount:R}=e._f,T=Ne(n,C);if(!R||t.has(C))return{};const b=d?d[0]:l,L=ae=>{u&&b.reportValidity&&(b.setCustomValidity(Er(ae)?"":ae||""),b.reportValidity())},x={},B=I4(l),O=qc(l),H=B||O,U=(v||N4(l))&&kt(l.value)&&kt(T)||Sf(l)&&l.value===""||T===""||Array.isArray(T)&&!T.length,G=yT.bind(null,C,r,x),fe=(ae,ce,Z,te=Ti.maxLength,V=Ti.minLength)=>{const ee=ae?ce:Z;x[C]={type:ae?te:V,message:ee,ref:l,...G(ae?te:V,ee)}};if(o?!Array.isArray(T)||!T.length:f&&(!H&&(U||bn(T))||Er(T)&&!T||O&&!CT(d).isValid||B&&!vT(d).isValid)){const{value:ae,message:ce}=rf(f)?{value:!!f,message:f}:bs(f);if(ae&&(x[C]={type:Ti.required,message:ce,ref:b,...G(Ti.required,ce)},!r))return L(ce),x}if(!U&&(!bn(E)||!bn(g))){let ae,ce;const Z=bs(g),te=bs(E);if(!bn(T)&&!isNaN(T)){const V=l.valueAsNumber||T&&+T;bn(Z.value)||(ae=V>Z.value),bn(te.value)||(ce=V<te.value)}else{const V=l.valueAsDate||new Date(T),ee=P=>new Date(new Date().toDateString()+" "+P),Q=l.type=="time",Ae=l.type=="week";Wr(Z.value)&&T&&(ae=Q?ee(T)>ee(Z.value):Ae?T>Z.value:V>new Date(Z.value)),Wr(te.value)&&T&&(ce=Q?ee(T)<ee(te.value):Ae?T<te.value:V<new Date(te.value))}if((ae||ce)&&(fe(!!ae,Z.message,te.message,Ti.max,Ti.min),!r))return L(x[C].message),x}if((h||m)&&!U&&(Wr(T)||o&&Array.isArray(T))){const ae=bs(h),ce=bs(m),Z=!bn(ae.value)&&T.length>+ae.value,te=!bn(ce.value)&&T.length<+ce.value;if((Z||te)&&(fe(Z,ae.message,ce.message),!r))return L(x[C].message),x}if(_&&!U&&Wr(T)){const{value:ae,message:ce}=bs(_);if(Nf(ae)&&!T.match(ae)&&(x[C]={type:Ti.pattern,message:ce,ref:l,...G(Ti.pattern,ce)},!r))return L(ce),x}if(S){if($r(S)){const ae=await S(T,n),ce=Oy(ae,b);if(ce&&(x[C]={...ce,...G(Ti.validate,ce.message)},!r))return L(ce.message),x}else if(Gt(S)){let ae={};for(const ce in S){if(!Pn(ae)&&!r)break;const Z=Oy(await S[ce](T,n),b,ce);Z&&(ae={...Z,...G(ce,Z.message)},L(Z.message),r&&(x[C]=ae))}if(!Pn(ae)&&(x[C]={ref:b,...ae},!r))return x}}return L(!0),x};function UU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=kt(e)?r++:e[t[r++]];return e}function kU(e){for(const t in e)if(e.hasOwnProperty(t)&&!kt(e[t]))return!1;return!0}function Wt(e,t){const n=Array.isArray(t)?t:_4(t)?[t]:ET(t),r=n.length===1?e:UU(e,n),u=n.length-1,o=n[u];return r&&delete r[o],u!==0&&(Gt(r)&&Pn(r)||Array.isArray(r)&&kU(r))&&Wt(e,n.slice(0,-1)),e}var Bp=()=>{let e=[];return{get observers(){return e},next:u=>{for(const o of e)o.next&&o.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(o=>o!==u)}}),unsubscribe:()=>{e=[]}}},GE=e=>bn(e)||!AT(e);function Su(e,t){if(GE(e)||GE(t))return e===t;if(Ia(e)&&Ia(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const u of n){const o=e[u];if(!r.includes(u))return!1;if(u!=="ref"){const l=t[u];if(Ia(o)&&Ia(l)||Gt(o)&&Gt(l)||Array.isArray(o)&&Array.isArray(l)?!Su(o,l):o!==l)return!1}}return!0}var RT=e=>e.type==="select-multiple",GU=e=>I4(e)||qc(e),Fp=e=>Sf(e)&&e.isConnected,TT=e=>{for(const t in e)if($r(e[t]))return!0;return!1};function If(e,t={}){const n=Array.isArray(e);if(Gt(e)||n)for(const r in e)Array.isArray(e[r])||Gt(e[r])&&!TT(e[r])?(t[r]=Array.isArray(e[r])?[]:{},If(e[r],t[r])):bn(e[r])||(t[r]=!0);return t}function DT(e,t,n){const r=Array.isArray(e);if(Gt(e)||r)for(const u in e)Array.isArray(e[u])||Gt(e[u])&&!TT(e[u])?kt(t)||GE(n[u])?n[u]=Array.isArray(e[u])?If(e[u],[]):{...If(e[u])}:DT(e[u],bn(t)?{}:t[u],n[u]):n[u]=!Su(e[u],t[u]);return n}var Fl=(e,t)=>DT(e,t,If(t)),bT=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>kt(e)?e:t?e===""?NaN:e&&+e:n&&Wr(e)?new Date(e):r?r(e):e;function Op(e){const t=e.ref;return N4(t)?t.files:I4(t)?vT(e.refs).value:RT(t)?[...t.selectedOptions].map(({value:n})=>n):qc(t)?CT(e.refs).value:bT(kt(t.value)?e.ref.value:t.value,e)}var VU=(e,t,n,r)=>{const u={};for(const o of e){const l=Ne(t,o);l&&At(u,o,l._f)}return{criteriaMode:n,names:[...e],fields:u,shouldUseNativeValidation:r}},Ol=e=>kt(e)?e:Nf(e)?e.source:Gt(e)?Nf(e.value)?e.value.source:e.value:e;const wy="AsyncFunction";var jU=e=>!!e&&!!e.validate&&!!($r(e.validate)&&e.validate.constructor.name===wy||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===wy)),zU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function My(e,t,n){const r=Ne(e,n);if(r||_4(n))return{error:r,name:n};const u=n.split(".");for(;u.length;){const o=u.join("."),l=Ne(t,o),d=Ne(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(d&&d.type)return{name:o,error:d};u.pop()}return{name:n}}var KU=(e,t,n,r,u)=>u.isOnAll?!1:!n&&u.isOnTouch?!(t||e):(n?r.isOnBlur:u.isOnBlur)?!e:(n?r.isOnChange:u.isOnChange)?e:!0,$U=(e,t)=>!yh(Ne(e,t)).length&&Wt(e,t);const YU={mode:xr.onSubmit,reValidateMode:xr.onChange,shouldFocusError:!0};function ZU(e={}){let t={...YU,...e},n={submitCount:0,isDirty:!1,isLoading:$r(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},u=Gt(t.defaultValues)||Gt(t.values)?Mn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Mn(u),l={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,h=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:Bp(),array:Bp(),state:Bp()},g=Dy(t.mode),_=Dy(t.reValidateMode),S=t.criteriaMode===xr.all,C=k=>X=>{clearTimeout(h),h=setTimeout(k,X)},v=async k=>{if(!t.disabled&&(m.isValid||k)){const X=t.resolver?Pn((await H()).errors):await G(r,!0);X!==n.isValid&&E.state.next({isValid:X})}},R=(k,X)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((k||Array.from(d.mount)).forEach(ie=>{ie&&(X?At(n.validatingFields,ie,X):Wt(n.validatingFields,ie))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Pn(n.validatingFields)}))},T=(k,X=[],ie,Ce,Ie=!0,Se=!0)=>{if(Ce&&ie&&!t.disabled){if(l.action=!0,Se&&Array.isArray(Ne(r,k))){const Be=ie(Ne(r,k),Ce.argA,Ce.argB);Ie&&At(r,k,Be)}if(Se&&Array.isArray(Ne(n.errors,k))){const Be=ie(Ne(n.errors,k),Ce.argA,Ce.argB);Ie&&At(n.errors,k,Be),$U(n.errors,k)}if(m.touchedFields&&Se&&Array.isArray(Ne(n.touchedFields,k))){const Be=ie(Ne(n.touchedFields,k),Ce.argA,Ce.argB);Ie&&At(n.touchedFields,k,Be)}m.dirtyFields&&(n.dirtyFields=Fl(u,o)),E.state.next({name:k,isDirty:ae(k,X),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else At(o,k,X)},b=(k,X)=>{At(n.errors,k,X),E.state.next({errors:n.errors})},L=k=>{n.errors=k,E.state.next({errors:n.errors,isValid:!1})},x=(k,X,ie,Ce)=>{const Ie=Ne(r,k);if(Ie){const Se=Ne(o,k,kt(ie)?Ne(u,k):ie);kt(Se)||Ce&&Ce.defaultChecked||X?At(o,k,X?Se:Op(Ie._f)):te(k,Se),l.mount&&v()}},B=(k,X,ie,Ce,Ie)=>{let Se=!1,Be=!1;const Je={name:k};if(!t.disabled){const Mt=!!(Ne(r,k)&&Ne(r,k)._f&&Ne(r,k)._f.disabled);if(!ie||Ce){m.isDirty&&(Be=n.isDirty,n.isDirty=Je.isDirty=ae(),Se=Be!==Je.isDirty);const Pt=Mt||Su(Ne(u,k),X);Be=!!(!Mt&&Ne(n.dirtyFields,k)),Pt||Mt?Wt(n.dirtyFields,k):At(n.dirtyFields,k,!0),Je.dirtyFields=n.dirtyFields,Se=Se||m.dirtyFields&&Be!==!Pt}if(ie){const Pt=Ne(n.touchedFields,k);Pt||(At(n.touchedFields,k,ie),Je.touchedFields=n.touchedFields,Se=Se||m.touchedFields&&Pt!==ie)}Se&&Ie&&E.state.next(Je)}return Se?Je:{}},O=(k,X,ie,Ce)=>{const Ie=Ne(n.errors,k),Se=m.isValid&&Er(X)&&n.isValid!==X;if(t.delayError&&ie?(f=C(()=>b(k,ie)),f(t.delayError)):(clearTimeout(h),f=null,ie?At(n.errors,k,ie):Wt(n.errors,k)),(ie?!Su(Ie,ie):Ie)||!Pn(Ce)||Se){const Be={...Ce,...Se&&Er(X)?{isValid:X}:{},errors:n.errors,name:k};n={...n,...Be},E.state.next(Be)}},H=async k=>{R(k,!0);const X=await t.resolver(o,t.context,VU(k||d.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(k),X},U=async k=>{const{errors:X}=await H(k);if(k)for(const ie of k){const Ce=Ne(X,ie);Ce?At(n.errors,ie,Ce):Wt(n.errors,ie)}else n.errors=X;return X},G=async(k,X,ie={valid:!0})=>{for(const Ce in k){const Ie=k[Ce];if(Ie){const{_f:Se,...Be}=Ie;if(Se){const Je=d.array.has(Se.name),Mt=Ie._f&&jU(Ie._f);Mt&&m.validatingFields&&R([Ce],!0);const Pt=await Ly(Ie,d.disabled,o,S,t.shouldUseNativeValidation&&!X,Je);if(Mt&&m.validatingFields&&R([Ce]),Pt[Se.name]&&(ie.valid=!1,X))break;!X&&(Ne(Pt,Se.name)?Je?HU(n.errors,Pt,Se.name):At(n.errors,Se.name,Pt[Se.name]):Wt(n.errors,Se.name))}!Pn(Be)&&await G(Be,X,ie)}}return ie.valid},fe=()=>{for(const k of d.unMount){const X=Ne(r,k);X&&(X._f.refs?X._f.refs.every(ie=>!Fp(ie)):!Fp(X._f.ref))&&Ee(k)}d.unMount=new Set},ae=(k,X)=>!t.disabled&&(k&&X&&At(o,k,X),!Su(W(),u)),ce=(k,X,ie)=>IT(k,d,{...l.mount?o:kt(X)?u:Wr(k)?{[k]:X}:X},ie,X),Z=k=>yh(Ne(l.mount?o:u,k,t.shouldUnregister?Ne(u,k,[]):[])),te=(k,X,ie={})=>{const Ce=Ne(r,k);let Ie=X;if(Ce){const Se=Ce._f;Se&&(!Se.disabled&&At(o,k,bT(X,Se)),Ie=Sf(Se.ref)&&bn(X)?"":X,RT(Se.ref)?[...Se.ref.options].forEach(Be=>Be.selected=Ie.includes(Be.value)):Se.refs?qc(Se.ref)?Se.refs.length>1?Se.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(Ie)?!!Ie.find(Je=>Je===Be.value):Ie===Be.value)):Se.refs[0]&&(Se.refs[0].checked=!!Ie):Se.refs.forEach(Be=>Be.checked=Be.value===Ie):N4(Se.ref)?Se.ref.value="":(Se.ref.value=Ie,Se.ref.type||E.values.next({name:k,values:{...o}})))}(ie.shouldDirty||ie.shouldTouch)&&B(k,Ie,ie.shouldTouch,ie.shouldDirty,!0),ie.shouldValidate&&P(k)},V=(k,X,ie)=>{for(const Ce in X){const Ie=X[Ce],Se=`${k}.${Ce}`,Be=Ne(r,Se);(d.array.has(k)||Gt(Ie)||Be&&!Be._f)&&!Ia(Ie)?V(Se,Ie,ie):te(Se,Ie,ie)}},ee=(k,X,ie={})=>{const Ce=Ne(r,k),Ie=d.array.has(k),Se=Mn(X);At(o,k,Se),Ie?(E.array.next({name:k,values:{...o}}),(m.isDirty||m.dirtyFields)&&ie.shouldDirty&&E.state.next({name:k,dirtyFields:Fl(u,o),isDirty:ae(k,Se)})):Ce&&!Ce._f&&!bn(Se)?V(k,Se,ie):te(k,Se,ie),by(k,d)&&E.state.next({...n}),E.values.next({name:l.mount?k:void 0,values:{...o}})},Q=async k=>{l.mount=!0;const X=k.target;let ie=X.name,Ce=!0;const Ie=Ne(r,ie),Se=()=>X.type?Op(Ie._f):mT(k),Be=Je=>{Ce=Number.isNaN(Je)||Ia(Je)&&isNaN(Je.getTime())||Su(Je,Ne(o,ie,Je))};if(Ie){let Je,Mt;const Pt=Se(),Gn=k.type===_f.BLUR||k.type===_f.FOCUS_OUT,nA=!zU(Ie._f)&&!t.resolver&&!Ne(n.errors,ie)&&!Ie._f.deps||KU(Gn,Ne(n.touchedFields,ie),n.isSubmitted,_,g),Ka=by(ie,d,Gn);At(o,ie,Pt),Gn?(Ie._f.onBlur&&Ie._f.onBlur(k),f&&f(0)):Ie._f.onChange&&Ie._f.onChange(k);const Bo=B(ie,Pt,Gn,!1),rA=!Pn(Bo)||Ka;if(!Gn&&E.values.next({name:ie,type:k.type,values:{...o}}),nA)return m.isValid&&(t.mode==="onBlur"&&Gn?v():Gn||v()),rA&&E.state.next({name:ie,...Ka?{}:Bo});if(!Gn&&Ka&&E.state.next({...n}),t.resolver){const{errors:ji}=await H([ie]);if(Be(Pt),Ce){const Rn=My(n.errors,r,ie),Ad=My(ji,r,Rn.name||ie);Je=Ad.error,ie=Ad.name,Mt=Pn(ji)}}else R([ie],!0),Je=(await Ly(Ie,d.disabled,o,S,t.shouldUseNativeValidation))[ie],R([ie]),Be(Pt),Ce&&(Je?Mt=!1:m.isValid&&(Mt=await G(r,!0)));Ce&&(Ie._f.deps&&P(Ie._f.deps),O(ie,Mt,Je,Bo))}},Ae=(k,X)=>{if(Ne(n.errors,X)&&k.focus)return k.focus(),1},P=async(k,X={})=>{let ie,Ce;const Ie=Xl(k);if(t.resolver){const Se=await U(kt(k)?k:Ie);ie=Pn(Se),Ce=k?!Ie.some(Be=>Ne(Se,Be)):ie}else k?(Ce=(await Promise.all(Ie.map(async Se=>{const Be=Ne(r,Se);return await G(Be&&Be._f?{[Se]:Be}:Be)}))).every(Boolean),!(!Ce&&!n.isValid)&&v()):Ce=ie=await G(r);return E.state.next({...!Wr(k)||m.isValid&&ie!==n.isValid?{}:{name:k},...t.resolver||!k?{isValid:ie}:{},errors:n.errors}),X.shouldFocus&&!Ce&&Ql(r,Ae,k?Ie:d.mount),Ce},W=k=>{const X={...l.mount?o:u};return kt(k)?X:Wr(k)?Ne(X,k):k.map(ie=>Ne(X,ie))},z=(k,X)=>({invalid:!!Ne((X||n).errors,k),isDirty:!!Ne((X||n).dirtyFields,k),error:Ne((X||n).errors,k),isValidating:!!Ne(n.validatingFields,k),isTouched:!!Ne((X||n).touchedFields,k)}),re=k=>{k&&Xl(k).forEach(X=>Wt(n.errors,X)),E.state.next({errors:k?n.errors:{}})},ne=(k,X,ie)=>{const Ce=(Ne(r,k,{_f:{}})._f||{}).ref,Ie=Ne(n.errors,k)||{},{ref:Se,message:Be,type:Je,...Mt}=Ie;At(n.errors,k,{...Mt,...X,ref:Ce}),E.state.next({name:k,errors:n.errors,isValid:!1}),ie&&ie.shouldFocus&&Ce&&Ce.focus&&Ce.focus()},de=(k,X)=>$r(k)?E.values.subscribe({next:ie=>k(ce(void 0,X),ie)}):ce(k,X,!0),Ee=(k,X={})=>{for(const ie of k?Xl(k):d.mount)d.mount.delete(ie),d.array.delete(ie),X.keepValue||(Wt(r,ie),Wt(o,ie)),!X.keepError&&Wt(n.errors,ie),!X.keepDirty&&Wt(n.dirtyFields,ie),!X.keepTouched&&Wt(n.touchedFields,ie),!X.keepIsValidating&&Wt(n.validatingFields,ie),!t.shouldUnregister&&!X.keepDefaultValue&&Wt(u,ie);E.values.next({values:{...o}}),E.state.next({...n,...X.keepDirty?{isDirty:ae()}:{}}),!X.keepIsValid&&v()},pe=({disabled:k,name:X,field:ie,fields:Ce})=>{(Er(k)&&l.mount||k||d.disabled.has(X))&&(k?d.disabled.add(X):d.disabled.delete(X),B(X,Op(ie?ie._f:Ne(Ce,X)._f),!1,!1,!0))},ve=(k,X={})=>{let ie=Ne(r,k);const Ce=Er(X.disabled)||Er(t.disabled);return At(r,k,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:k}},name:k,mount:!0,...X}}),d.mount.add(k),ie?pe({field:ie,disabled:Er(X.disabled)?X.disabled:t.disabled,name:k}):x(k,!0,X.value),{...Ce?{disabled:X.disabled||t.disabled}:{},...t.progressive?{required:!!X.required,min:Ol(X.min),max:Ol(X.max),minLength:Ol(X.minLength),maxLength:Ol(X.maxLength),pattern:Ol(X.pattern)}:{},name:k,onChange:Q,onBlur:Q,ref:Ie=>{if(Ie){ve(k,X),ie=Ne(r,k);const Se=kt(Ie.value)&&Ie.querySelectorAll&&Ie.querySelectorAll("input,select,textarea")[0]||Ie,Be=GU(Se),Je=ie._f.refs||[];if(Be?Je.find(Mt=>Mt===Se):Se===ie._f.ref)return;At(r,k,{_f:{...ie._f,...Be?{refs:[...Je.filter(Fp),Se,...Array.isArray(Ne(u,k))?[{}]:[]],ref:{type:Se.type,name:k}}:{ref:Se}}}),x(k,!1,void 0,Se)}else ie=Ne(r,k,{}),ie._f&&(ie._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(pT(d.array,k)&&l.action)&&d.unMount.add(k)}}},Ve=()=>t.shouldFocusError&&Ql(r,Ae,d.mount),we=k=>{Er(k)&&(E.state.next({disabled:k}),Ql(r,(X,ie)=>{const Ce=Ne(r,ie);Ce&&(X.disabled=Ce._f.disabled||k,Array.isArray(Ce._f.refs)&&Ce._f.refs.forEach(Ie=>{Ie.disabled=Ce._f.disabled||k}))},0,!1))},Ze=(k,X)=>async ie=>{let Ce;ie&&(ie.preventDefault&&ie.preventDefault(),ie.persist&&ie.persist());let Ie=Mn(o);if(d.disabled.size)for(const Se of d.disabled)At(Ie,Se,void 0);if(E.state.next({isSubmitting:!0}),t.resolver){const{errors:Se,values:Be}=await H();n.errors=Se,Ie=Be}else await G(r);if(Wt(n.errors,"root"),Pn(n.errors)){E.state.next({errors:{}});try{await k(Ie,ie)}catch(Se){Ce=Se}}else X&&await X({...n.errors},ie),Ve(),setTimeout(Ve);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Pn(n.errors)&&!Ce,submitCount:n.submitCount+1,errors:n.errors}),Ce)throw Ce},at=(k,X={})=>{Ne(r,k)&&(kt(X.defaultValue)?ee(k,Mn(Ne(u,k))):(ee(k,X.defaultValue),At(u,k,Mn(X.defaultValue))),X.keepTouched||Wt(n.touchedFields,k),X.keepDirty||(Wt(n.dirtyFields,k),n.isDirty=X.defaultValue?ae(k,Mn(Ne(u,k))):ae()),X.keepError||(Wt(n.errors,k),m.isValid&&v()),E.state.next({...n}))},It=(k,X={})=>{const ie=k?Mn(k):u,Ce=Mn(ie),Ie=Pn(k),Se=Ie?u:Ce;if(X.keepDefaultValues||(u=ie),!X.keepValues){if(X.keepDirtyValues){const Be=new Set([...d.mount,...Object.keys(Fl(u,o))]);for(const Je of Array.from(Be))Ne(n.dirtyFields,Je)?At(Se,Je,Ne(o,Je)):ee(Je,Ne(Se,Je))}else{if(g4&&kt(k))for(const Be of d.mount){const Je=Ne(r,Be);if(Je&&Je._f){const Mt=Array.isArray(Je._f.refs)?Je._f.refs[0]:Je._f.ref;if(Sf(Mt)){const Pt=Mt.closest("form");if(Pt){Pt.reset();break}}}}r={}}o=t.shouldUnregister?X.keepDefaultValues?Mn(u):{}:Mn(Se),E.array.next({values:{...Se}}),E.values.next({values:{...Se}})}d={mount:X.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!m.isValid||!!X.keepIsValid||!!X.keepDirtyValues,l.watch=!!t.shouldUnregister,E.state.next({submitCount:X.keepSubmitCount?n.submitCount:0,isDirty:Ie?!1:X.keepDirty?n.isDirty:!!(X.keepDefaultValues&&!Su(k,u)),isSubmitted:X.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ie?{}:X.keepDirtyValues?X.keepDefaultValues&&o?Fl(u,o):n.dirtyFields:X.keepDefaultValues&&k?Fl(u,k):X.keepDirty?n.dirtyFields:{},touchedFields:X.keepTouched?n.touchedFields:{},errors:X.keepErrors?n.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Jt=(k,X)=>It($r(k)?k(o):k,X);return{control:{register:ve,unregister:Ee,getFieldState:z,handleSubmit:Ze,setError:ne,_executeSchema:H,_getWatch:ce,_getDirty:ae,_updateValid:v,_removeUnmounted:fe,_updateFieldArray:T,_updateDisabledField:pe,_getFieldArray:Z,_reset:It,_resetDefaultValues:()=>$r(t.defaultValues)&&t.defaultValues().then(k=>{Jt(k,t.resetOptions),E.state.next({isLoading:!1})}),_updateFormState:k=>{n={...n,...k}},_disableForm:we,_subjects:E,_proxyFormState:m,_setErrors:L,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(k){l=k},get _defaultValues(){return u},get _names(){return d},set _names(k){d=k},get _formState(){return n},set _formState(k){n=k},get _options(){return t},set _options(k){t={...t,...k}}},trigger:P,register:ve,handleSubmit:Ze,watch:de,setValue:ee,getValues:W,reset:Jt,resetField:at,clearErrors:re,unregister:Ee,setError:ne,setFocus:(k,X={})=>{const ie=Ne(r,k),Ce=ie&&ie._f;if(Ce){const Ie=Ce.refs?Ce.refs[0]:Ce.ref;Ie.focus&&(Ie.focus(),X.shouldSelect&&$r(Ie.select)&&Ie.select())}},getFieldState:z}}function WU(e={}){const t=$e.useRef(void 0),n=$e.useRef(void 0),[r,u]=$e.useState({isDirty:!1,isValidating:!1,isLoading:$r(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$r(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ZU(e),formState:r});const o=t.current.control;return o._options=e,S4({subject:o._subjects.state,next:l=>{ST(l,o._proxyFormState,o._updateFormState,!0)&&u({...o._formState})}}),$e.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),$e.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==r.isDirty&&o._subjects.state.next({isDirty:l})}},[o,r.isDirty]),$e.useEffect(()=>{e.values&&!Su(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,u(l=>({...l}))):o._resetDefaultValues()},[e.values,o]),$e.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),$e.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),$e.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=_T(r,o),t.current}const Py=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ne(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},xT=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Py(r.ref,n,e):r.refs&&r.refs.forEach(u=>Py(u,n,e))}},qU=(e,t)=>{t.shouldUseNativeValidation&&xT(e,t);const n={};for(const r in e){const u=Ne(t.fields,r),o=Object.assign(e[r]||{},{ref:u&&u.ref});if(XU(t.names||Object.keys(e),r)){const l=Object.assign({},Ne(n,r));At(l,"root",o),At(n,r,l)}else At(n,r,o)}return n},XU=(e,t)=>e.some(n=>n.startsWith(t+".")),QU=e=>{const t=y.useId(),n=y.useMemo(()=>({id:t}),[t]);return N.jsx(BT,{value:n,children:N.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},BT=y.createContext({}),FT=y.createContext({}),JU=({...e})=>{const t=y.useMemo(()=>({name:e.name}),[e.name]);return N.jsx(FT,{value:t,children:N.jsx(PU,{...e})})},Pu=()=>{const e=y.useContext(FT),t=y.useContext(BT),{getFieldState:n,formState:r}=Mu(),u=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...u}},OT=Ir("",{variants:{variant:{default:["w-full select-text resize-none rounded-xl border-2 bg-input-background text-base md:text-sm text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error","disabled:opacity-50"],invisible:["w-full border-none bg-inherit text-inherit outline-hidden ring-0"]},size:{md:"px-2 md:py-1 py-3",lg:"p-4 md:py-2"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",size:"md",validationStyleEnabled:"disabled"}}),mo=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...u})=>N.jsx("input",{className:OT({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...u}),e5=Ir("",{variants:{variant:{default:["pointer rounded border-2 bg-input-background text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","checked:bg-checkbox-checked checked:border-checkbox-checked-border","disabled:opacity-50"]},size:{sm:"size-4",md:"size-5",lg:"size-6"},color:{primary:"accent-primary",secondary:"accent-secondary",destructive:"accent-destructive",neutral:"accent-neutral",light:"accent-light",text:"accent-text",dark:"accent-dark",error:"accent-error",success:"accent-success",custom:"accent-custom"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",color:"primary",validationStyleEnabled:"disabled",size:"md"}}),t5=({validationStyleEnabled:e=!1,label:t,size:n,color:r,variant:u,className:o,...l})=>{const d=y.useId();return N.jsxs(N.Fragment,{children:[N.jsx("input",{type:"checkbox",className:e5({variant:u,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:o}),id:d,...l}),N.jsx("label",{htmlFor:d,children:t})]})},n5=e=>{const[t,n]=y.useState(!1),r=o=>{o.preventDefault(),o.stopPropagation(),n(l=>!l)},u=t?pP:AP;return N.jsxs("div",{className:"relative",children:[N.jsx(mo,{...e,"aria-label":"password",type:t?"text":"password"}),N.jsx("button",{"data-testid":"eye-icon",className:"absolute right-2 h-full flex-row items-center",onClick:r,"aria-label":t?"Hide password":"Show password",children:N.jsx(u,{className:"text-neutral mr-2 inline-block",size:20})})]})},LT=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>N.jsx("textarea",{className:Re("resize-none",OT({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),wT=({value:e="",onCancel:t,onSave:n,onClick:r,children:u,isDisabled:o,...l})=>{const[d,f]=y.useState(!1),h=y.useRef(null),m=S=>{S.stopPropagation(),f(!1),n()},E=S=>{S.stopPropagation(),f(!1),t()},g=!e||e===""?"-":e,_=y.useCallback(S=>{const C=window.getSelection();C&&C.toString().trim()!==""||h.current&&!h.current.contains(S.target)&&(f(!1),n())},[n]);return y.useEffect(()=>(d?document.addEventListener("click",_):document.removeEventListener("click",_),()=>document.removeEventListener("click",_)),[_,d]),N.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:S=>{f(!0),r==null||r(S)},ref:h,...l,children:[N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"display":"hidden"),children:[u,N.jsx(mt,{label:"Save",variant:"hoverable",size:"icon-sm",color:"text",Icon:Ao,onClick:m,disabled:o,className:"!text-current"}),N.jsx(mt,{label:"Cancel",color:"text",variant:"hoverable",className:"!text-current",size:"icon-sm",Icon:Va,onClick:E,disabled:o})]},String(d)),N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"hidden":"display"),children:[N.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:g}),N.jsx(mt,{label:"Edit",Icon:IP,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:o,onClick:S=>{S.stopPropagation(),f(!0)}})]})]})},MT=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const u=y.useRef(null),o=()=>{var h;e==null||e(((h=u.current)==null?void 0:h.value)??"")},l=()=>{u.current&&(u.current.value=u.current.defaultValue??""),t==null||t()};y.useImperativeHandle(n,()=>u.current);const d=y.useMemo(()=>{var h;return r.value??((h=u.current)==null?void 0:h.value)??r.defaultValue},[r.value,r.defaultValue,(f=u.current)==null?void 0:f.value]);return N.jsx(wT,{value:d,onCancel:l,onSave:o,children:N.jsx(mo,{ref:u,...r})})},Hy=24,Uy=12,y4=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:u,...o})=>{const l=y.useRef(null);y.useImperativeHandle(u,()=>l.current);const d=y.useCallback(()=>{const m=l.current;if(!m||!t)return;const E=m.style;E.height="auto";const g=m.scrollHeight,_=Hy*r+Uy,S=Hy+Uy;E.height=Math.max(Math.min(g,_),S)+"px"},[t,r]);y.useEffect(()=>{d()},[o.value,o.defaultValue,d]);const f=m=>{n==null||n(m),d()},h=y.useCallback(m=>{l.current=m,m&&d()},[d]);return N.jsx(LT,{ref:h,onChange:f,className:Re("overflow-y-scroll",t?"resize-none":"",e),...o})},PT=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const u=y.useRef(null);y.useImperativeHandle(n,()=>u.current);const o=()=>{var h;e==null||e(((h=u.current)==null?void 0:h.value)??"")},l=()=>{u.current&&(u.current.value=u.current.defaultValue??""),t==null||t()},d=r.value??((f=u.current)==null?void 0:f.value)??r.defaultValue??"";return N.jsx(wT,{value:d,onCancel:l,onSave:o,onClick:h=>{h.preventDefault(),h.stopPropagation()},children:N.jsx(y4,{className:"leading-6",ref:u,onClick:h=>{h.preventDefault(),h.stopPropagation()},...r})})},r5=Ir("focus:ring-ring inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-offset-2",{variants:{color:{primary:"border-primary bg-primary text-primary hover:bg-primary-500",secondary:"border-secondary bg-secondary text-secondary hover:bg-secondary-300",destructive:"border-destructive bg-destructive text-destructive hover:bg-destructive-500",neutral:"border-neutral bg-neutral text-neutral hover:bg-neutral-600",light:"border-white bg-white text-white hover:bg-neutral-500",dark:"border-neutral-800 bg-neutral-800 text-neutral-800 hover:bg-neutral-900",text:"border-text bg-text text-text hover:opacity-80",custom:""},variant:{default:"rounded-lg text-text-opposite",none:"border-none bg-opacity-0 text-inherit hover:bg-opacity-0",outline:"rounded-lg border-[1.5px] bg-opacity-0 hover:bg-opacity-30",hoverable:"rounded-lg border-none bg-opacity-0 transition hover:bg-opacity-10"}},defaultVariants:{variant:"default",color:"primary"}}),i5=({className:e,variant:t,color:n,...r})=>N.jsx("div",{className:Re(r5({variant:t,color:n}),e),...r});var u5=XL.useId||(()=>{}),a5=0;function Nr(e){const[t,n]=y.useState(u5());return Cn(()=>{n(r=>r??String(a5++))},[e]),t?`radix-${t}`:""}var Lp="focusScope.autoFocusOnMount",wp="focusScope.autoFocusOnUnmount",ky={bubbles:!1,cancelable:!0},s5="FocusScope",C4=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:o,...l}=e,[d,f]=y.useState(null),h=er(u),m=er(o),E=y.useRef(null),g=xt(t,C=>f(C)),_=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let C=function(b){if(_.paused||!d)return;const L=b.target;d.contains(L)?E.current=L:Eu(E.current,{select:!0})},v=function(b){if(_.paused||!d)return;const L=b.relatedTarget;L!==null&&(d.contains(L)||Eu(E.current,{select:!0}))},R=function(b){if(document.activeElement===document.body)for(const x of b)x.removedNodes.length>0&&Eu(d)};document.addEventListener("focusin",C),document.addEventListener("focusout",v);const T=new MutationObserver(R);return d&&T.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",v),T.disconnect()}}},[r,d,_.paused]),y.useEffect(()=>{if(d){Vy.add(_);const C=document.activeElement;if(!d.contains(C)){const R=new CustomEvent(Lp,ky);d.addEventListener(Lp,h),d.dispatchEvent(R),R.defaultPrevented||(o5(h5(HT(d)),{select:!0}),document.activeElement===C&&Eu(d))}return()=>{d.removeEventListener(Lp,h),setTimeout(()=>{const R=new CustomEvent(wp,ky);d.addEventListener(wp,m),d.dispatchEvent(R),R.defaultPrevented||Eu(C??document.body,{select:!0}),d.removeEventListener(wp,m),Vy.remove(_)},0)}}},[d,h,m,_]);const S=y.useCallback(C=>{if(!n&&!r||_.paused)return;const v=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,R=document.activeElement;if(v&&R){const T=C.currentTarget,[b,L]=l5(T);b&&L?!C.shiftKey&&R===L?(C.preventDefault(),n&&Eu(b,{select:!0})):C.shiftKey&&R===b&&(C.preventDefault(),n&&Eu(L,{select:!0})):R===T&&C.preventDefault()}},[n,r,_.paused]);return N.jsx(nt.div,{tabIndex:-1,...l,ref:g,onKeyDown:S})});C4.displayName=s5;function o5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Eu(r,{select:t}),document.activeElement!==n)return}function l5(e){const t=HT(e),n=Gy(t,e),r=Gy(t.reverse(),e);return[n,r]}function HT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gy(e,t){for(const n of e)if(!c5(n,{upTo:t}))return n}function c5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function d5(e){return e instanceof HTMLInputElement&&"select"in e}function Eu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&d5(e)&&t&&e.select()}}var Vy=f5();function f5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jy(e,t),e.unshift(t)},remove(t){var n;e=jy(e,t),(n=e[0])==null||n.resume()}}}function jy(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function h5(e){return e.filter(t=>t.tagName!=="A")}var Mp=0;function UT(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zy()),document.body.insertAdjacentElement("beforeend",e[1]??zy()),Mp++,()=>{Mp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mp--}},[])}function zy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Yr=function(){return Yr=Object.assign||function(t){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Yr.apply(this,arguments)};function kT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n}function A5(e,t,n){if(n||arguments.length===2)for(var r=0,u=t.length,o;r<u;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var uf="right-scroll-bar-position",af="width-before-scroll-bar",m5="with-scroll-bars-hidden",p5="--removed-body-scroll-bar-size";function Pp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function E5(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var u=n.value;u!==r&&(n.value=r,n.callback(r,u))}}}})[0];return n.callback=t,n.facade}var g5=typeof window<"u"?y.useLayoutEffect:y.useEffect,Ky=new WeakMap;function _5(e,t){var n=E5(null,function(r){return e.forEach(function(u){return Pp(u,r)})});return g5(function(){var r=Ky.get(n);if(r){var u=new Set(r),o=new Set(e),l=n.current;u.forEach(function(d){o.has(d)||Pp(d,null)}),o.forEach(function(d){u.has(d)||Pp(d,l)})}Ky.set(n,e)},[e]),n}function S5(e){return e}function N5(e,t){t===void 0&&(t=S5);var n=[],r=!1,u={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(d){return d!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(d){return o(d)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(o),l=n}var f=function(){var m=l;l=[],m.forEach(o)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(m){l.push(m),h()},filter:function(m){return l=l.filter(m),n}}}};return u}function I5(e){e===void 0&&(e={});var t=N5(null);return t.options=Yr({async:!0,ssr:!1},e),t}var GT=function(e){var t=e.sideCar,n=kT(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,Yr({},n))};GT.isSideCarExport=!0;function y5(e,t){return e.useMedium(t),GT}var VT=I5(),Hp=function(){},Ch=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Hp,onWheelCapture:Hp,onTouchMoveCapture:Hp}),u=r[0],o=r[1],l=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,E=e.shards,g=e.sideCar,_=e.noIsolation,S=e.inert,C=e.allowPinchZoom,v=e.as,R=v===void 0?"div":v,T=e.gapMode,b=kT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=g,x=_5([n,t]),B=Yr(Yr({},b),u);return y.createElement(y.Fragment,null,m&&y.createElement(L,{sideCar:VT,removeScrollBar:h,shards:E,noIsolation:_,inert:S,setCallbacks:o,allowPinchZoom:!!C,lockRef:n,gapMode:T}),l?y.cloneElement(y.Children.only(d),Yr(Yr({},B),{ref:x})):y.createElement(R,Yr({},B,{className:f,ref:x}),d))});Ch.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ch.classNames={fullWidth:af,zeroRight:uf};var C5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=C5();return t&&e.setAttribute("nonce",t),e}function R5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function T5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var D5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=v5())&&(R5(t,n),T5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b5=function(){var e=D5();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jT=function(){var e=b5(),t=function(n){var r=n.styles,u=n.dynamic;return e(r,u),null};return t},x5={left:0,top:0,right:0,gap:0},Up=function(e){return parseInt(e||"",10)||0},B5=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],u=t[e==="padding"?"paddingRight":"marginRight"];return[Up(n),Up(r),Up(u)]},F5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return x5;var t=B5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},O5=jT(),Ks="data-scroll-locked",L5=function(e,t,n,r){var u=e.left,o=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),`
|
|
218
|
+
.`.concat(m5,` {
|
|
219
|
+
overflow: hidden `).concat(r,`;
|
|
220
|
+
padding-right: `).concat(d,"px ").concat(r,`;
|
|
221
|
+
}
|
|
222
|
+
body[`).concat(Ks,`] {
|
|
223
|
+
overflow: hidden `).concat(r,`;
|
|
224
|
+
overscroll-behavior: contain;
|
|
225
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
226
|
+
padding-left: `.concat(u,`px;
|
|
227
|
+
padding-top: `).concat(o,`px;
|
|
228
|
+
padding-right: `).concat(l,`px;
|
|
229
|
+
margin-left:0;
|
|
230
|
+
margin-top:0;
|
|
231
|
+
margin-right: `).concat(d,"px ").concat(r,`;
|
|
232
|
+
`),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.`).concat(uf,` {
|
|
236
|
+
right: `).concat(d,"px ").concat(r,`;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.`).concat(af,` {
|
|
240
|
+
margin-right: `).concat(d,"px ").concat(r,`;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.`).concat(uf," .").concat(uf,` {
|
|
244
|
+
right: 0 `).concat(r,`;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.`).concat(af," .").concat(af,` {
|
|
248
|
+
margin-right: 0 `).concat(r,`;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
body[`).concat(Ks,`] {
|
|
252
|
+
`).concat(p5,": ").concat(d,`px;
|
|
253
|
+
}
|
|
254
|
+
`)},$y=function(){var e=parseInt(document.body.getAttribute(Ks)||"0",10);return isFinite(e)?e:0},w5=function(){y.useEffect(function(){return document.body.setAttribute(Ks,($y()+1).toString()),function(){var e=$y()-1;e<=0?document.body.removeAttribute(Ks):document.body.setAttribute(Ks,e.toString())}},[])},M5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,u=r===void 0?"margin":r;w5();var o=y.useMemo(function(){return F5(u)},[u]);return y.createElement(O5,{styles:L5(o,!t,u,n?"":"!important")})},VE=!1;if(typeof window<"u")try{var F0=Object.defineProperty({},"passive",{get:function(){return VE=!0,!0}});window.addEventListener("test",F0,F0),window.removeEventListener("test",F0,F0)}catch{VE=!1}var xs=VE?{passive:!1}:!1,P5=function(e){return e.tagName==="TEXTAREA"},zT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!P5(e)&&n[t]==="visible")},H5=function(e){return zT(e,"overflowY")},U5=function(e){return zT(e,"overflowX")},Yy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var u=KT(e,r);if(u){var o=$T(e,r),l=o[1],d=o[2];if(l>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},k5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},G5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},KT=function(e,t){return e==="v"?H5(t):U5(t)},$T=function(e,t){return e==="v"?k5(t):G5(t)},V5=function(e,t){return e==="h"&&t==="rtl"?-1:1},j5=function(e,t,n,r,u){var o=V5(e,window.getComputedStyle(t).direction),l=o*r,d=n.target,f=t.contains(d),h=!1,m=l>0,E=0,g=0;do{var _=$T(e,d),S=_[0],C=_[1],v=_[2],R=C-v-o*S;(S||R)&&KT(e,d)&&(E+=R,g+=S),d instanceof ShadowRoot?d=d.host:d=d.parentNode}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(m&&Math.abs(E)<1||!m&&Math.abs(g)<1)&&(h=!0),h},O0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zy=function(e){return[e.deltaX,e.deltaY]},Wy=function(e){return e&&"current"in e?e.current:e},z5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},K5=function(e){return`
|
|
255
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
256
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
257
|
+
`)},$5=0,Bs=[];function Y5(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),u=y.useState($5++)[0],o=y.useState(jT)[0],l=y.useRef(e);y.useEffect(function(){l.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var C=A5([e.lockRef.current],(e.shards||[]).map(Wy),!0).filter(Boolean);return C.forEach(function(v){return v.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),C.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var d=y.useCallback(function(C,v){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!l.current.allowPinchZoom;var R=O0(C),T=n.current,b="deltaX"in C?C.deltaX:T[0]-R[0],L="deltaY"in C?C.deltaY:T[1]-R[1],x,B=C.target,O=Math.abs(b)>Math.abs(L)?"h":"v";if("touches"in C&&O==="h"&&B.type==="range")return!1;var H=Yy(O,B);if(!H)return!0;if(H?x=O:(x=O==="v"?"h":"v",H=Yy(O,B)),!H)return!1;if(!r.current&&"changedTouches"in C&&(b||L)&&(r.current=x),!x)return!0;var U=r.current||x;return j5(U,v,C,U==="h"?b:L)},[]),f=y.useCallback(function(C){var v=C;if(!(!Bs.length||Bs[Bs.length-1]!==o)){var R="deltaY"in v?Zy(v):O0(v),T=t.current.filter(function(x){return x.name===v.type&&(x.target===v.target||v.target===x.shadowParent)&&z5(x.delta,R)})[0];if(T&&T.should){v.cancelable&&v.preventDefault();return}if(!T){var b=(l.current.shards||[]).map(Wy).filter(Boolean).filter(function(x){return x.contains(v.target)}),L=b.length>0?d(v,b[0]):!l.current.noIsolation;L&&v.cancelable&&v.preventDefault()}}},[]),h=y.useCallback(function(C,v,R,T){var b={name:C,delta:v,target:R,should:T,shadowParent:Z5(R)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(L){return L!==b})},1)},[]),m=y.useCallback(function(C){n.current=O0(C),r.current=void 0},[]),E=y.useCallback(function(C){h(C.type,Zy(C),C.target,d(C,e.lockRef.current))},[]),g=y.useCallback(function(C){h(C.type,O0(C),C.target,d(C,e.lockRef.current))},[]);y.useEffect(function(){return Bs.push(o),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:g}),document.addEventListener("wheel",f,xs),document.addEventListener("touchmove",f,xs),document.addEventListener("touchstart",m,xs),function(){Bs=Bs.filter(function(C){return C!==o}),document.removeEventListener("wheel",f,xs),document.removeEventListener("touchmove",f,xs),document.removeEventListener("touchstart",m,xs)}},[]);var _=e.removeScrollBar,S=e.inert;return y.createElement(y.Fragment,null,S?y.createElement(o,{styles:K5(u)}):null,_?y.createElement(M5,{gapMode:e.gapMode}):null)}function Z5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const W5=y5(VT,Y5);var v4=y.forwardRef(function(e,t){return y.createElement(Ch,Yr({},e,{ref:t,sideCar:W5}))});v4.classNames=Ch.classNames;var q5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fs=new WeakMap,L0=new WeakMap,w0={},kp=0,YT=function(e){return e&&(e.host||YT(e.parentNode))},X5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=YT(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Q5=function(e,t,n,r){var u=X5(t,Array.isArray(e)?e:[e]);w0[n]||(w0[n]=new WeakMap);var o=w0[n],l=[],d=new Set,f=new Set(u),h=function(E){!E||d.has(E)||(d.add(E),h(E.parentNode))};u.forEach(h);var m=function(E){!E||f.has(E)||Array.prototype.forEach.call(E.children,function(g){if(d.has(g))m(g);else try{var _=g.getAttribute(r),S=_!==null&&_!=="false",C=(Fs.get(g)||0)+1,v=(o.get(g)||0)+1;Fs.set(g,C),o.set(g,v),l.push(g),C===1&&S&&L0.set(g,!0),v===1&&g.setAttribute(n,"true"),S||g.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",g,R)}})};return m(t),d.clear(),kp++,function(){l.forEach(function(E){var g=Fs.get(E)-1,_=o.get(E)-1;Fs.set(E,g),o.set(E,_),g||(L0.has(E)||E.removeAttribute(r),L0.delete(E)),_||E.removeAttribute(n)}),kp--,kp||(Fs=new WeakMap,Fs=new WeakMap,L0=new WeakMap,w0={})}},ZT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),u=q5(e);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live]"))),Q5(r,u,n,"aria-hidden")):function(){return null}},R4="Dialog",[WT,Aie]=Zc(R4),[J5,Pr]=WT(R4),qT=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:u,onOpenChange:o,modal:l=!0}=e,d=y.useRef(null),f=y.useRef(null),[h=!1,m]=gf({prop:r,defaultProp:u,onChange:o});return N.jsx(J5,{scope:t,triggerRef:d,contentRef:f,contentId:Nr(),titleId:Nr(),descriptionId:Nr(),open:h,onOpenChange:m,onOpenToggle:y.useCallback(()=>m(E=>!E),[m]),modal:l,children:n})};qT.displayName=R4;var XT="DialogTrigger",ek=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(XT,n),o=xt(t,u.triggerRef);return N.jsx(nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":b4(u.open),...r,ref:o,onClick:lt(e.onClick,u.onOpenToggle)})});ek.displayName=XT;var T4="DialogPortal",[tk,QT]=WT(T4,{forceMount:void 0}),JT=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:u}=e,o=Pr(T4,t);return N.jsx(tk,{scope:t,forceMount:n,children:y.Children.map(r,l=>N.jsx(Wc,{present:n||o.open,children:N.jsx(gh,{asChild:!0,container:u,children:l})}))})};JT.displayName=T4;var yf="DialogOverlay",e1=y.forwardRef((e,t)=>{const n=QT(yf,e.__scopeDialog),{forceMount:r=n.forceMount,...u}=e,o=Pr(yf,e.__scopeDialog);return o.modal?N.jsx(Wc,{present:r||o.open,children:N.jsx(nk,{...u,ref:t})}):null});e1.displayName=yf;var nk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(yf,n);return N.jsx(v4,{as:xa,allowPinchZoom:!0,shards:[u.contentRef],children:N.jsx(nt.div,{"data-state":b4(u.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ba="DialogContent",t1=y.forwardRef((e,t)=>{const n=QT(Ba,e.__scopeDialog),{forceMount:r=n.forceMount,...u}=e,o=Pr(Ba,e.__scopeDialog);return N.jsx(Wc,{present:r||o.open,children:o.modal?N.jsx(rk,{...u,ref:t}):N.jsx(ik,{...u,ref:t})})});t1.displayName=Ba;var rk=y.forwardRef((e,t)=>{const n=Pr(Ba,e.__scopeDialog),r=y.useRef(null),u=xt(t,n.contentRef,r);return y.useEffect(()=>{const o=r.current;if(o)return ZT(o)},[]),N.jsx(n1,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lt(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:lt(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0;(l.button===2||d)&&o.preventDefault()}),onFocusOutside:lt(e.onFocusOutside,o=>o.preventDefault())})}),ik=y.forwardRef((e,t)=>{const n=Pr(Ba,e.__scopeDialog),r=y.useRef(!1),u=y.useRef(!1);return N.jsx(n1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,d;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(d=n.triggerRef.current)==null||d.focus(),o.preventDefault()),r.current=!1,u.current=!1},onInteractOutside:o=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const l=o.target;((h=n.triggerRef.current)==null?void 0:h.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&u.current&&o.preventDefault()}})}),n1=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:u,onCloseAutoFocus:o,...l}=e,d=Pr(Ba,n),f=y.useRef(null),h=xt(t,f);return UT(),N.jsxs(N.Fragment,{children:[N.jsx(C4,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:u,onUnmountAutoFocus:o,children:N.jsx(Eh,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":b4(d.open),...l,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(ok,{titleId:d.titleId}),N.jsx(ck,{contentRef:f,descriptionId:d.descriptionId})]})]})}),D4="DialogTitle",uk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(D4,n);return N.jsx(nt.h2,{id:u.titleId,...r,ref:t})});uk.displayName=D4;var r1="DialogDescription",ak=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(r1,n);return N.jsx(nt.p,{id:u.descriptionId,...r,ref:t})});ak.displayName=r1;var i1="DialogClose",sk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(i1,n);return N.jsx(nt.button,{type:"button",...r,ref:t,onClick:lt(e.onClick,()=>u.onOpenChange(!1))})});sk.displayName=i1;function b4(e){return e?"open":"closed"}var u1="DialogTitleWarning",[mie,a1]=mH(u1,{contentName:Ba,titleName:D4,docsSlug:"dialog"}),ok=({titleId:e})=>{const t=a1(u1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
258
|
+
|
|
259
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
260
|
+
|
|
261
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},lk="DialogDescriptionWarning",ck=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${a1(lk).contentName}}.`;return y.useEffect(()=>{var o;const u=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&u&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},dk=qT,fk=JT,hk=e1,Ak=t1,qy=1,mk=.9,pk=.8,Ek=.17,Gp=.1,Vp=.999,gk=.9999,_k=.99,Sk=/[\\\/_+.#"@\[\(\{&]/,Nk=/[\\\/_+.#"@\[\(\{&]/g,Ik=/[\s-]/,s1=/[\s-]/g;function jE(e,t,n,r,u,o,l){if(o===t.length)return u===e.length?qy:_k;var d=`${u},${o}`;if(l[d]!==void 0)return l[d];for(var f=r.charAt(o),h=n.indexOf(f,u),m=0,E,g,_,S;h>=0;)E=jE(e,t,n,r,h+1,o+1,l),E>m&&(h===u?E*=qy:Sk.test(e.charAt(h-1))?(E*=pk,_=e.slice(u,h-1).match(Nk),_&&u>0&&(E*=Math.pow(Vp,_.length))):Ik.test(e.charAt(h-1))?(E*=mk,S=e.slice(u,h-1).match(s1),S&&u>0&&(E*=Math.pow(Vp,S.length))):(E*=Ek,u>0&&(E*=Math.pow(Vp,h-u))),e.charAt(h)!==t.charAt(o)&&(E*=gk)),(E<Gp&&n.charAt(h-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(h-1)!==r.charAt(o))&&(g=jE(e,t,n,r,h+1,o+2,l),g*Gp>E&&(E=g*Gp)),E>m&&(m=E),h=n.indexOf(f,h+1);return l[d]=m,m}function Xy(e){return e.toLowerCase().replace(s1," ")}function yk(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,jE(e,t,Xy(e),Xy(t),0,0,{})}var Ck=G9(),Ll='[cmdk-group=""]',jp='[cmdk-group-items=""]',vk='[cmdk-group-heading=""]',x4='[cmdk-item=""]',Qy=`${x4}:not([aria-disabled="true"])`,zE="cmdk-item-select",_a="data-value",Rk=(e,t,n)=>yk(e,t,n),o1=y.createContext(void 0),Xc=()=>y.useContext(o1),l1=y.createContext(void 0),B4=()=>y.useContext(l1),c1=y.createContext(void 0),d1=y.forwardRef((e,t)=>{let n=Ls(()=>{var z,re;return{search:"",value:(re=(z=e.value)!=null?z:e.defaultValue)!=null?re:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Ls(()=>new Set),u=Ls(()=>new Map),o=Ls(()=>new Map),l=Ls(()=>new Set),d=f1(e),{label:f,children:h,value:m,onValueChange:E,filter:g,shouldFilter:_,loop:S,disablePointerSelection:C=!1,vimBindings:v=!0,...R}=e,T=Nr(),b=Nr(),L=Nr(),x=y.useRef(null),B=Pk();Fa(()=>{if(m!==void 0){let z=m.trim();n.current.value=z,O.emit()}},[m]),Fa(()=>{B(6,ce)},[]);let O=y.useMemo(()=>({subscribe:z=>(l.current.add(z),()=>l.current.delete(z)),snapshot:()=>n.current,setState:(z,re,ne)=>{var de,Ee,pe;if(!Object.is(n.current[z],re)){if(n.current[z]=re,z==="search")ae(),G(),B(1,fe);else if(z==="value"&&(ne||B(5,ce),((de=d.current)==null?void 0:de.value)!==void 0)){let ve=re??"";(pe=(Ee=d.current).onValueChange)==null||pe.call(Ee,ve);return}O.emit()}},emit:()=>{l.current.forEach(z=>z())}}),[]),H=y.useMemo(()=>({value:(z,re,ne)=>{var de;re!==((de=o.current.get(z))==null?void 0:de.value)&&(o.current.set(z,{value:re,keywords:ne}),n.current.filtered.items.set(z,U(re,ne)),B(2,()=>{G(),O.emit()}))},item:(z,re)=>(r.current.add(z),re&&(u.current.has(re)?u.current.get(re).add(z):u.current.set(re,new Set([z]))),B(3,()=>{ae(),G(),n.current.value||fe(),O.emit()}),()=>{o.current.delete(z),r.current.delete(z),n.current.filtered.items.delete(z);let ne=Z();B(4,()=>{ae(),(ne==null?void 0:ne.getAttribute("id"))===z&&fe(),O.emit()})}),group:z=>(u.current.has(z)||u.current.set(z,new Set),()=>{o.current.delete(z),u.current.delete(z)}),filter:()=>d.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:T,inputId:L,labelId:b,listInnerRef:x}),[]);function U(z,re){var ne,de;let Ee=(de=(ne=d.current)==null?void 0:ne.filter)!=null?de:Rk;return z?Ee(z,n.current.search,re):0}function G(){if(!n.current.search||d.current.shouldFilter===!1)return;let z=n.current.filtered.items,re=[];n.current.filtered.groups.forEach(de=>{let Ee=u.current.get(de),pe=0;Ee.forEach(ve=>{let Ve=z.get(ve);pe=Math.max(Ve,pe)}),re.push([de,pe])});let ne=x.current;te().sort((de,Ee)=>{var pe,ve;let Ve=de.getAttribute("id"),we=Ee.getAttribute("id");return((pe=z.get(we))!=null?pe:0)-((ve=z.get(Ve))!=null?ve:0)}).forEach(de=>{let Ee=de.closest(jp);Ee?Ee.appendChild(de.parentElement===Ee?de:de.closest(`${jp} > *`)):ne.appendChild(de.parentElement===ne?de:de.closest(`${jp} > *`))}),re.sort((de,Ee)=>Ee[1]-de[1]).forEach(de=>{var Ee;let pe=(Ee=x.current)==null?void 0:Ee.querySelector(`${Ll}[${_a}="${encodeURIComponent(de[0])}"]`);pe==null||pe.parentElement.appendChild(pe)})}function fe(){let z=te().find(ne=>ne.getAttribute("aria-disabled")!=="true"),re=z==null?void 0:z.getAttribute(_a);O.setState("value",re||void 0)}function ae(){var z,re,ne,de;if(!n.current.search||d.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Ee=0;for(let pe of r.current){let ve=(re=(z=o.current.get(pe))==null?void 0:z.value)!=null?re:"",Ve=(de=(ne=o.current.get(pe))==null?void 0:ne.keywords)!=null?de:[],we=U(ve,Ve);n.current.filtered.items.set(pe,we),we>0&&Ee++}for(let[pe,ve]of u.current)for(let Ve of ve)if(n.current.filtered.items.get(Ve)>0){n.current.filtered.groups.add(pe);break}n.current.filtered.count=Ee}function ce(){var z,re,ne;let de=Z();de&&(((z=de.parentElement)==null?void 0:z.firstChild)===de&&((ne=(re=de.closest(Ll))==null?void 0:re.querySelector(vk))==null||ne.scrollIntoView({block:"nearest"})),de.scrollIntoView({block:"nearest"}))}function Z(){var z;return(z=x.current)==null?void 0:z.querySelector(`${x4}[aria-selected="true"]`)}function te(){var z;return Array.from(((z=x.current)==null?void 0:z.querySelectorAll(Qy))||[])}function V(z){let re=te()[z];re&&O.setState("value",re.getAttribute(_a))}function ee(z){var re;let ne=Z(),de=te(),Ee=de.findIndex(ve=>ve===ne),pe=de[Ee+z];(re=d.current)!=null&&re.loop&&(pe=Ee+z<0?de[de.length-1]:Ee+z===de.length?de[0]:de[Ee+z]),pe&&O.setState("value",pe.getAttribute(_a))}function Q(z){let re=Z(),ne=re==null?void 0:re.closest(Ll),de;for(;ne&&!de;)ne=z>0?wk(ne,Ll):Mk(ne,Ll),de=ne==null?void 0:ne.querySelector(Qy);de?O.setState("value",de.getAttribute(_a)):ee(z)}let Ae=()=>V(te().length-1),P=z=>{z.preventDefault(),z.metaKey?Ae():z.altKey?Q(1):ee(1)},W=z=>{z.preventDefault(),z.metaKey?V(0):z.altKey?Q(-1):ee(-1)};return y.createElement(nt.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:z=>{var re;if((re=R.onKeyDown)==null||re.call(R,z),!z.defaultPrevented)switch(z.key){case"n":case"j":{v&&z.ctrlKey&&P(z);break}case"ArrowDown":{P(z);break}case"p":case"k":{v&&z.ctrlKey&&W(z);break}case"ArrowUp":{W(z);break}case"Home":{z.preventDefault(),V(0);break}case"End":{z.preventDefault(),Ae();break}case"Enter":if(!z.nativeEvent.isComposing&&z.keyCode!==229){z.preventDefault();let ne=Z();if(ne){let de=new Event(zE);ne.dispatchEvent(de)}}}}},y.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:Uk},f),vh(e,z=>y.createElement(l1.Provider,{value:O},y.createElement(o1.Provider,{value:H},z))))}),Tk=y.forwardRef((e,t)=>{var n,r;let u=Nr(),o=y.useRef(null),l=y.useContext(c1),d=Xc(),f=f1(e),h=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Fa(()=>{if(!h)return d.item(u,l==null?void 0:l.id)},[h]);let m=h1(u,o,[e.value,e.children,o],e.keywords),E=B4(),g=Oa(B=>B.value&&B.value===m.current),_=Oa(B=>h||d.filter()===!1?!0:B.search?B.filtered.items.get(u)>0:!0);y.useEffect(()=>{let B=o.current;if(!(!B||e.disabled))return B.addEventListener(zE,S),()=>B.removeEventListener(zE,S)},[_,e.onSelect,e.disabled]);function S(){var B,O;C(),(O=(B=f.current).onSelect)==null||O.call(B,m.current)}function C(){E.setState("value",m.current,!0)}if(!_)return null;let{disabled:v,value:R,onSelect:T,forceMount:b,keywords:L,...x}=e;return y.createElement(nt.div,{ref:lc([o,t]),...x,id:u,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||d.getDisablePointerSelection()?void 0:C,onClick:v?void 0:S},e.children)}),Dk=y.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:u,...o}=e,l=Nr(),d=y.useRef(null),f=y.useRef(null),h=Nr(),m=Xc(),E=Oa(_=>u||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Fa(()=>m.group(l),[]),h1(l,d,[e.value,e.heading,f]);let g=y.useMemo(()=>({id:l,forceMount:u}),[u]);return y.createElement(nt.div,{ref:lc([d,t]),...o,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},n&&y.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),vh(e,_=>y.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},y.createElement(c1.Provider,{value:g},_))))}),bk=y.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,u=y.useRef(null),o=Oa(l=>!l.search);return!n&&!o?null:y.createElement(nt.div,{ref:lc([u,t]),...r,"cmdk-separator":"",role:"separator"})}),xk=y.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,u=e.value!=null,o=B4(),l=Oa(m=>m.search),d=Oa(m=>m.value),f=Xc(),h=y.useMemo(()=>{var m;let E=(m=f.listInnerRef.current)==null?void 0:m.querySelector(`${x4}[${_a}="${encodeURIComponent(d)}"]`);return E==null?void 0:E.getAttribute("id")},[]);return y.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),y.createElement(nt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":h,id:f.inputId,type:"text",value:u?e.value:l,onChange:m=>{u||o.setState("search",m.target.value),n==null||n(m.target.value)}})}),Bk=y.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...u}=e,o=y.useRef(null),l=y.useRef(null),d=Xc();return y.useEffect(()=>{if(l.current&&o.current){let f=l.current,h=o.current,m,E=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=f.offsetHeight;h.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return E.observe(f),()=>{cancelAnimationFrame(m),E.unobserve(f)}}},[]),y.createElement(nt.div,{ref:lc([o,t]),...u,"cmdk-list":"",role:"listbox","aria-label":r,id:d.listId},vh(e,f=>y.createElement("div",{ref:lc([l,d.listInnerRef]),"cmdk-list-sizer":""},f)))}),Fk=y.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:u,contentClassName:o,container:l,...d}=e;return y.createElement(dk,{open:n,onOpenChange:r},y.createElement(fk,{container:l},y.createElement(hk,{"cmdk-overlay":"",className:u}),y.createElement(Ak,{"aria-label":e.label,"cmdk-dialog":"",className:o},y.createElement(d1,{ref:t,...d}))))}),Ok=y.forwardRef((e,t)=>Oa(n=>n.filtered.count===0)?y.createElement(nt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Lk=y.forwardRef((e,t)=>{let{progress:n,children:r,label:u="Loading...",...o}=e;return y.createElement(nt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},vh(e,l=>y.createElement("div",{"aria-hidden":!0},l)))}),Qc=Object.assign(d1,{List:Bk,Item:Tk,Input:xk,Group:Dk,Separator:bk,Dialog:Fk,Empty:Ok,Loading:Lk});function wk(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Mk(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function f1(e){let t=y.useRef(e);return Fa(()=>{t.current=e}),t}var Fa=typeof window>"u"?y.useEffect:y.useLayoutEffect;function Ls(e){let t=y.useRef();return t.current===void 0&&(t.current=e()),t}function lc(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Oa(e){let t=B4(),n=()=>e(t.snapshot());return Ck.useSyncExternalStore(t.subscribe,n,n)}function h1(e,t,n,r=[]){let u=y.useRef(),o=Xc();return Fa(()=>{var l;let d=(()=>{var h;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(h=m.current.textContent)==null?void 0:h.trim():u.current}})(),f=r.map(h=>h.trim());o.value(e,d,f),(l=t.current)==null||l.setAttribute(_a,d),u.current=d}),u}var Pk=()=>{let[e,t]=y.useState(),n=Ls(()=>new Map);return Fa(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,u)=>{n.current.set(r,u),t({})}};function Hk(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function vh({asChild:e,children:t},n){return e&&y.isValidElement(t)?y.cloneElement(Hk(t),{ref:t.ref},n(t.props.children)):n(t)}var Uk={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const A1=({className:e,...t})=>N.jsx(Qc,{className:Re("flex size-full flex-col overflow-hidden rounded-md",e),...t}),kk=({className:e,...t})=>N.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[N.jsx(bP,{className:"mr-2 size-4 shrink-0 opacity-50"}),N.jsx(Qc.Input,{className:Re("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),Gk=({className:e,...t})=>N.jsx(Qc.List,{className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),Vk=e=>N.jsx(Qc.Empty,{className:"py-6 text-center text-sm",...e}),jk=({className:e,...t})=>N.jsx(Qc.Item,{className:Re("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",e),...t}),Cf={...A1,Input:kk,List:Gk,Empty:Vk,Item:jk},m1=y.createContext(null),Rh=()=>{const e=y.useContext(m1);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},zk=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:u,children:o,dir:l,...d})=>{const[f,h]=y.useState(t??[]),[m,E]=y.useState(""),[g,_]=y.useState(!1),[S,C]=y.useState(-1),v=y.useRef(null),[R,T]=y.useState(!1),[b,L]=y.useState("");y.useEffect(()=>{e&&h(e)},[e]);const x=y.useCallback(U=>{if(f.includes(U)){const G=f.filter(fe=>fe!==U);h(G),n==null||n(G)}else{const G=[...f,U];h(G),n==null||n(G)}},[f]),B=y.useCallback(U=>{U.preventDefault();const G=U.currentTarget,fe=G.value.substring(G.selectionStart??0,G.selectionEnd??0);L(fe),T(fe===m)},[m]),O=y.useCallback(U=>{U.stopPropagation();const G=v.current;if(!G)return;const fe=()=>{const Z=S+1;C(Z>f.length-1?r?0:-1:Z)},ae=()=>{const Z=S-1;C(Z<0?f.length-1:Z)},ce=()=>{const Z=S-1<=0?f.length-1===0?-1:0:S-1;C(Z)};switch(U.key){case"ArrowLeft":l==="rtl"?f.length>0&&(S!==-1||r)&&fe():f.length>0&&G.selectionStart===0&&ae();break;case"ArrowRight":l==="rtl"?f.length>0&&G.selectionStart===0&&ae():f.length>0&&(S!==-1||r)&&fe();break;case"Backspace":case"Delete":f.length>0&&(S!==-1&&S<f.length?(x(f[S]),ce()):(G.selectionStart===0&&b===m||R)&&x(f[f.length-1]));break;case"Enter":_(!0);break;case"Escape":S!==-1?C(-1):g&&_(!1);break}},[f,m,S,r]),H=y.useMemo(()=>({value:f,onValueChange:x,open:g,setOpen:_,inputValue:m,setInputValue:E,activeIndex:S,setActiveIndex:C,ref:v,handleSelect:B}),[f,x,g,_,m,E,S,C,v,B]);return N.jsx(m1,{value:H,children:N.jsx(A1,{onKeyDown:O,className:Re("flex w-full flex-col gap-2 overflow-visible bg-transparent",u),dir:l,...d,children:o})})},Kk=({className:e,getBadgeValue:t=o=>o,validationStyleEnabled:n=!1,children:r,...u})=>{const{value:o,onValueChange:l,activeIndex:d}=Rh(),f=y.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]);return N.jsxs("div",{className:Re("flex w-full flex-col gap-3 rounded-lg p-1 py-2","border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring focus:outline-hidden flex w-full items-center justify-between whitespace-nowrap border px-3 py-2 text-sm focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 px-2 py-1 text-sm shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error",n&&"valid:border-success invalid:border-error",e),...u,children:[o.length>0&&N.jsx("div",{className:"flex w-full flex-wrap gap-1",children:o.map((h,m)=>N.jsxs(i5,{className:Re("flex items-center gap-1 rounded-xl px-1",d===m&&"ring-muted-foreground ring-2"),color:"text",children:[N.jsx("span",{className:"text-xs",children:t(h)}),N.jsxs("button",{"aria-label":`Remove ${h} option`,"aria-roledescription":"button to remove option",onMouseDown:f,onClick:()=>l(h),children:[N.jsxs("span",{className:"sr-only",children:["Remove ",h," option"]}),N.jsx(Va,{className:"size-4 cursor-pointer"})]})]},h))}),r]})},$k=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:u,activeIndex:o,setActiveIndex:l,handleSelect:d,ref:f}=Rh();return N.jsx(Cf.Input,{...t,tabIndex:0,ref:f,value:r,onValueChange:o===-1?u:void 0,onSelect:d,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:Re("outline-hidden ml-2 flex-1 cursor-pointer",e,o!==-1&&"caret-transparent")})},Yk=({children:e})=>{const{open:t}=Rh();return N.jsx("div",{className:"relative",children:t&&e})},Zk=({className:e,children:t})=>N.jsxs(Cf.List,{className:Re("border-muted bg-input-background absolute top-0 z-10 flex w-full flex-col gap-2 rounded-lg border p-2 shadow-md transition-colors",e),children:[t,N.jsx(Cf.Empty,{children:N.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),Wk=({className:e,value:t,children:n,...r})=>{const{value:u,onValueChange:o,setInputValue:l}=Rh(),d=y.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]),f=u.includes(t);return N.jsxs(Cf.Item,{...r,onSelect:()=>{o(t),l("")},className:Re("flex cursor-pointer justify-between rounded-lg px-2 py-1 transition-colors","hover:bg-neutral/10",e,f&&"opacity-50",r.disabled&&"cursor-not-allowed opacity-50"),onMouseDown:d,children:[n,f&&N.jsx(Ao,{className:"size-4"})]})},Sn=zk;Sn.Trigger=Kk;Sn.Input=$k;Sn.Content=Yk;Sn.List=Zk;Sn.Item=Wk;const qk=({className:e,children:t,...n})=>N.jsxs("i",{className:Re("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),KE=({htmlFor:e,...t})=>N.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",htmlFor:e,...t}),Xk=({className:e,...t})=>{const{error:n,formItemId:r}=Pu();return N.jsx(KE,{className:Re("mb-2",n&&"text-error",e),htmlFor:r,...t})},Qk=({isRequired:e})=>e?N.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):N.jsx(N.Fragment,{}),p1=({children:e,isRequired:t,info:n,htmlFor:r,className:u})=>N.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&N.jsxs(Xk,{htmlFor:r,className:Ah("font-bold",u),children:[e,N.jsx(Qk,{isRequired:t})]}),n&&N.jsx(qk,{content:n})]});function Jy(e,[t,n]){return Math.min(n,Math.max(t,e))}var Jk=y.createContext(void 0);function eG(e){const t=y.useContext(Jk);return e||t||"ltr"}const tG=["top","right","bottom","left"],yu=Math.min,qn=Math.max,vf=Math.round,M0=Math.floor,Xr=e=>({x:e,y:e}),nG={left:"right",right:"left",bottom:"top",top:"bottom"},rG={start:"end",end:"start"};function $E(e,t,n){return qn(e,yu(t,n))}function Mi(e,t){return typeof e=="function"?e(t):e}function Pi(e){return e.split("-")[0]}function po(e){return e.split("-")[1]}function F4(e){return e==="x"?"y":"x"}function O4(e){return e==="y"?"height":"width"}function Cu(e){return["top","bottom"].includes(Pi(e))?"y":"x"}function L4(e){return F4(Cu(e))}function iG(e,t,n){n===void 0&&(n=!1);const r=po(e),u=L4(e),o=O4(u);let l=u==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Rf(l)),[l,Rf(l)]}function uG(e){const t=Rf(e);return[YE(e),t,YE(t)]}function YE(e){return e.replace(/start|end/g,t=>rG[t])}function aG(e,t,n){const r=["left","right"],u=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?u:r:t?r:u;case"left":case"right":return t?o:l;default:return[]}}function sG(e,t,n,r){const u=po(e);let o=aG(Pi(e),n==="start",r);return u&&(o=o.map(l=>l+"-"+u),t&&(o=o.concat(o.map(YE)))),o}function Rf(e){return e.replace(/left|right|bottom|top/g,t=>nG[t])}function oG(e){return{top:0,right:0,bottom:0,left:0,...e}}function E1(e){return typeof e!="number"?oG(e):{top:e,right:e,bottom:e,left:e}}function Tf(e){const{x:t,y:n,width:r,height:u}=e;return{width:r,height:u,top:n,left:t,right:t+r,bottom:n+u,x:t,y:n}}function eC(e,t,n){let{reference:r,floating:u}=e;const o=Cu(t),l=L4(t),d=O4(l),f=Pi(t),h=o==="y",m=r.x+r.width/2-u.width/2,E=r.y+r.height/2-u.height/2,g=r[d]/2-u[d]/2;let _;switch(f){case"top":_={x:m,y:r.y-u.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:E};break;case"left":_={x:r.x-u.width,y:E};break;default:_={x:r.x,y:r.y}}switch(po(t)){case"start":_[l]-=g*(n&&h?-1:1);break;case"end":_[l]+=g*(n&&h?-1:1);break}return _}const lG=async(e,t,n)=>{const{placement:r="bottom",strategy:u="absolute",middleware:o=[],platform:l}=n,d=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:u}),{x:m,y:E}=eC(h,r,f),g=r,_={},S=0;for(let C=0;C<d.length;C++){const{name:v,fn:R}=d[C],{x:T,y:b,data:L,reset:x}=await R({x:m,y:E,initialPlacement:r,placement:g,strategy:u,middlewareData:_,rects:h,platform:l,elements:{reference:e,floating:t}});m=T??m,E=b??E,_={..._,[v]:{..._[v],...L}},x&&S<=50&&(S++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(h=x.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:u}):x.rects),{x:m,y:E}=eC(h,g,f)),C=-1)}return{x:m,y:E,placement:g,strategy:u,middlewareData:_}};async function cc(e,t){var n;t===void 0&&(t={});const{x:r,y:u,platform:o,rects:l,elements:d,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:E="floating",altBoundary:g=!1,padding:_=0}=Mi(t,e),S=E1(_),v=d[g?E==="floating"?"reference":"floating":E],R=Tf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:h,rootBoundary:m,strategy:f})),T=E==="floating"?{x:r,y:u,width:l.floating.width,height:l.floating.height}:l.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),L=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},x=Tf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:T,offsetParent:b,strategy:f}):T);return{top:(R.top-x.top+S.top)/L.y,bottom:(x.bottom-R.bottom+S.bottom)/L.y,left:(R.left-x.left+S.left)/L.x,right:(x.right-R.right+S.right)/L.x}}const cG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:u,rects:o,platform:l,elements:d,middlewareData:f}=t,{element:h,padding:m=0}=Mi(e,t)||{};if(h==null)return{};const E=E1(m),g={x:n,y:r},_=L4(u),S=O4(_),C=await l.getDimensions(h),v=_==="y",R=v?"top":"left",T=v?"bottom":"right",b=v?"clientHeight":"clientWidth",L=o.reference[S]+o.reference[_]-g[_]-o.floating[S],x=g[_]-o.reference[_],B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let O=B?B[b]:0;(!O||!await(l.isElement==null?void 0:l.isElement(B)))&&(O=d.floating[b]||o.floating[S]);const H=L/2-x/2,U=O/2-C[S]/2-1,G=yu(E[R],U),fe=yu(E[T],U),ae=G,ce=O-C[S]-fe,Z=O/2-C[S]/2+H,te=$E(ae,Z,ce),V=!f.arrow&&po(u)!=null&&Z!==te&&o.reference[S]/2-(Z<ae?G:fe)-C[S]/2<0,ee=V?Z<ae?Z-ae:Z-ce:0;return{[_]:g[_]+ee,data:{[_]:te,centerOffset:Z-te-ee,...V&&{alignmentOffset:ee}},reset:V}}}),dG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:u,middlewareData:o,rects:l,initialPlacement:d,platform:f,elements:h}=t,{mainAxis:m=!0,crossAxis:E=!0,fallbackPlacements:g,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:C=!0,...v}=Mi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const R=Pi(u),T=Cu(d),b=Pi(d)===d,L=await(f.isRTL==null?void 0:f.isRTL(h.floating)),x=g||(b||!C?[Rf(d)]:uG(d)),B=S!=="none";!g&&B&&x.push(...sG(d,C,S,L));const O=[d,...x],H=await cc(t,v),U=[];let G=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&U.push(H[R]),E){const Z=iG(u,l,L);U.push(H[Z[0]],H[Z[1]])}if(G=[...G,{placement:u,overflows:U}],!U.every(Z=>Z<=0)){var fe,ae;const Z=(((fe=o.flip)==null?void 0:fe.index)||0)+1,te=O[Z];if(te)return{data:{index:Z,overflows:G},reset:{placement:te}};let V=(ae=G.filter(ee=>ee.overflows[0]<=0).sort((ee,Q)=>ee.overflows[1]-Q.overflows[1])[0])==null?void 0:ae.placement;if(!V)switch(_){case"bestFit":{var ce;const ee=(ce=G.filter(Q=>{if(B){const Ae=Cu(Q.placement);return Ae===T||Ae==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(Ae=>Ae>0).reduce((Ae,P)=>Ae+P,0)]).sort((Q,Ae)=>Q[1]-Ae[1])[0])==null?void 0:ce[0];ee&&(V=ee);break}case"initialPlacement":V=d;break}if(u!==V)return{reset:{placement:V}}}return{}}}};function tC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nC(e){return tG.some(t=>e[t]>=0)}const fG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...u}=Mi(e,t);switch(r){case"referenceHidden":{const o=await cc(t,{...u,elementContext:"reference"}),l=tC(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:nC(l)}}}case"escaped":{const o=await cc(t,{...u,altBoundary:!0}),l=tC(o,n.floating);return{data:{escapedOffsets:l,escaped:nC(l)}}}default:return{}}}}};async function hG(e,t){const{placement:n,platform:r,elements:u}=e,o=await(r.isRTL==null?void 0:r.isRTL(u.floating)),l=Pi(n),d=po(n),f=Cu(n)==="y",h=["left","top"].includes(l)?-1:1,m=o&&f?-1:1,E=Mi(t,e);let{mainAxis:g,crossAxis:_,alignmentAxis:S}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return d&&typeof S=="number"&&(_=d==="end"?S*-1:S),f?{x:_*m,y:g*h}:{x:g*h,y:_*m}}const AG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:u,y:o,placement:l,middlewareData:d}=t,f=await hG(t,e);return l===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:u+f.x,y:o+f.y,data:{...f,placement:l}}}}},mG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:u}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:v=>{let{x:R,y:T}=v;return{x:R,y:T}}},...f}=Mi(e,t),h={x:n,y:r},m=await cc(t,f),E=Cu(Pi(u)),g=F4(E);let _=h[g],S=h[E];if(o){const v=g==="y"?"top":"left",R=g==="y"?"bottom":"right",T=_+m[v],b=_-m[R];_=$E(T,_,b)}if(l){const v=E==="y"?"top":"left",R=E==="y"?"bottom":"right",T=S+m[v],b=S-m[R];S=$E(T,S,b)}const C=d.fn({...t,[g]:_,[E]:S});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[g]:o,[E]:l}}}}}},pG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:u,rects:o,middlewareData:l}=t,{offset:d=0,mainAxis:f=!0,crossAxis:h=!0}=Mi(e,t),m={x:n,y:r},E=Cu(u),g=F4(E);let _=m[g],S=m[E];const C=Mi(d,t),v=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(f){const b=g==="y"?"height":"width",L=o.reference[g]-o.floating[b]+v.mainAxis,x=o.reference[g]+o.reference[b]-v.mainAxis;_<L?_=L:_>x&&(_=x)}if(h){var R,T;const b=g==="y"?"width":"height",L=["top","left"].includes(Pi(u)),x=o.reference[E]-o.floating[b]+(L&&((R=l.offset)==null?void 0:R[E])||0)+(L?0:v.crossAxis),B=o.reference[E]+o.reference[b]+(L?0:((T=l.offset)==null?void 0:T[E])||0)-(L?v.crossAxis:0);S<x?S=x:S>B&&(S=B)}return{[g]:_,[E]:S}}}},EG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:u,rects:o,platform:l,elements:d}=t,{apply:f=()=>{},...h}=Mi(e,t),m=await cc(t,h),E=Pi(u),g=po(u),_=Cu(u)==="y",{width:S,height:C}=o.floating;let v,R;E==="top"||E==="bottom"?(v=E,R=g===(await(l.isRTL==null?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(R=E,v=g==="end"?"top":"bottom");const T=C-m.top-m.bottom,b=S-m.left-m.right,L=yu(C-m[v],T),x=yu(S-m[R],b),B=!t.middlewareData.shift;let O=L,H=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=T),B&&!g){const G=qn(m.left,0),fe=qn(m.right,0),ae=qn(m.top,0),ce=qn(m.bottom,0);_?H=S-2*(G!==0||fe!==0?G+fe:qn(m.left,m.right)):O=C-2*(ae!==0||ce!==0?ae+ce:qn(m.top,m.bottom))}await f({...t,availableWidth:H,availableHeight:O});const U=await l.getDimensions(d.floating);return S!==U.width||C!==U.height?{reset:{rects:!0}}:{}}}};function Th(){return typeof window<"u"}function Eo(e){return g1(e)?(e.nodeName||"").toLowerCase():"#document"}function Qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oi(e){var t;return(t=(g1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function g1(e){return Th()?e instanceof Node||e instanceof Qn(e).Node:!1}function Or(e){return Th()?e instanceof Element||e instanceof Qn(e).Element:!1}function ni(e){return Th()?e instanceof HTMLElement||e instanceof Qn(e).HTMLElement:!1}function rC(e){return!Th()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qn(e).ShadowRoot}function Jc(e){const{overflow:t,overflowX:n,overflowY:r,display:u}=Lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(u)}function gG(e){return["table","td","th"].includes(Eo(e))}function Dh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function w4(e){const t=M4(),n=Or(e)?Lr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function _G(e){let t=vu(e);for(;ni(t)&&!Js(t);){if(w4(t))return t;if(Dh(t))return null;t=vu(t)}return null}function M4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Js(e){return["html","body","#document"].includes(Eo(e))}function Lr(e){return Qn(e).getComputedStyle(e)}function bh(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vu(e){if(Eo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rC(e)&&e.host||oi(e);return rC(t)?t.host:t}function _1(e){const t=vu(e);return Js(t)?e.ownerDocument?e.ownerDocument.body:e.body:ni(t)&&Jc(t)?t:_1(t)}function dc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const u=_1(e),o=u===((r=e.ownerDocument)==null?void 0:r.body),l=Qn(u);if(o){const d=ZE(l);return t.concat(l,l.visualViewport||[],Jc(u)?u:[],d&&n?dc(d):[])}return t.concat(u,dc(u,[],n))}function ZE(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function S1(e){const t=Lr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const u=ni(e),o=u?e.offsetWidth:n,l=u?e.offsetHeight:r,d=vf(n)!==o||vf(r)!==l;return d&&(n=o,r=l),{width:n,height:r,$:d}}function P4(e){return Or(e)?e:e.contextElement}function $s(e){const t=P4(e);if(!ni(t))return Xr(1);const n=t.getBoundingClientRect(),{width:r,height:u,$:o}=S1(t);let l=(o?vf(n.width):n.width)/r,d=(o?vf(n.height):n.height)/u;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}const SG=Xr(0);function N1(e){const t=Qn(e);return!M4()||!t.visualViewport?SG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function NG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qn(e)?!1:t}function La(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),o=P4(e);let l=Xr(1);t&&(r?Or(r)&&(l=$s(r)):l=$s(e));const d=NG(o,n,r)?N1(o):Xr(0);let f=(u.left+d.x)/l.x,h=(u.top+d.y)/l.y,m=u.width/l.x,E=u.height/l.y;if(o){const g=Qn(o),_=r&&Or(r)?Qn(r):r;let S=g,C=ZE(S);for(;C&&r&&_!==S;){const v=$s(C),R=C.getBoundingClientRect(),T=Lr(C),b=R.left+(C.clientLeft+parseFloat(T.paddingLeft))*v.x,L=R.top+(C.clientTop+parseFloat(T.paddingTop))*v.y;f*=v.x,h*=v.y,m*=v.x,E*=v.y,f+=b,h+=L,S=Qn(C),C=ZE(S)}}return Tf({width:m,height:E,x:f,y:h})}function H4(e,t){const n=bh(e).scrollLeft;return t?t.left+n:La(oi(e)).left+n}function I1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),u=r.left+t.scrollLeft-(n?0:H4(e,r)),o=r.top+t.scrollTop;return{x:u,y:o}}function IG(e){let{elements:t,rect:n,offsetParent:r,strategy:u}=e;const o=u==="fixed",l=oi(r),d=t?Dh(t.floating):!1;if(r===l||d&&o)return n;let f={scrollLeft:0,scrollTop:0},h=Xr(1);const m=Xr(0),E=ni(r);if((E||!E&&!o)&&((Eo(r)!=="body"||Jc(l))&&(f=bh(r)),ni(r))){const _=La(r);h=$s(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const g=l&&!E&&!o?I1(l,f,!0):Xr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+m.x+g.x,y:n.y*h.y-f.scrollTop*h.y+m.y+g.y}}function yG(e){return Array.from(e.getClientRects())}function CG(e){const t=oi(e),n=bh(e),r=e.ownerDocument.body,u=qn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+H4(e);const d=-n.scrollTop;return Lr(r).direction==="rtl"&&(l+=qn(t.clientWidth,r.clientWidth)-u),{width:u,height:o,x:l,y:d}}function vG(e,t){const n=Qn(e),r=oi(e),u=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,d=0,f=0;if(u){o=u.width,l=u.height;const h=M4();(!h||h&&t==="fixed")&&(d=u.offsetLeft,f=u.offsetTop)}return{width:o,height:l,x:d,y:f}}function RG(e,t){const n=La(e,!0,t==="fixed"),r=n.top+e.clientTop,u=n.left+e.clientLeft,o=ni(e)?$s(e):Xr(1),l=e.clientWidth*o.x,d=e.clientHeight*o.y,f=u*o.x,h=r*o.y;return{width:l,height:d,x:f,y:h}}function iC(e,t,n){let r;if(t==="viewport")r=vG(e,n);else if(t==="document")r=CG(oi(e));else if(Or(t))r=RG(t,n);else{const u=N1(e);r={x:t.x-u.x,y:t.y-u.y,width:t.width,height:t.height}}return Tf(r)}function y1(e,t){const n=vu(e);return n===t||!Or(n)||Js(n)?!1:Lr(n).position==="fixed"||y1(n,t)}function TG(e,t){const n=t.get(e);if(n)return n;let r=dc(e,[],!1).filter(d=>Or(d)&&Eo(d)!=="body"),u=null;const o=Lr(e).position==="fixed";let l=o?vu(e):e;for(;Or(l)&&!Js(l);){const d=Lr(l),f=w4(l);!f&&d.position==="fixed"&&(u=null),(o?!f&&!u:!f&&d.position==="static"&&!!u&&["absolute","fixed"].includes(u.position)||Jc(l)&&!f&&y1(e,l))?r=r.filter(m=>m!==l):u=d,l=vu(l)}return t.set(e,r),r}function DG(e){let{element:t,boundary:n,rootBoundary:r,strategy:u}=e;const l=[...n==="clippingAncestors"?Dh(t)?[]:TG(t,this._c):[].concat(n),r],d=l[0],f=l.reduce((h,m)=>{const E=iC(t,m,u);return h.top=qn(E.top,h.top),h.right=yu(E.right,h.right),h.bottom=yu(E.bottom,h.bottom),h.left=qn(E.left,h.left),h},iC(t,d,u));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function bG(e){const{width:t,height:n}=S1(e);return{width:t,height:n}}function xG(e,t,n){const r=ni(t),u=oi(t),o=n==="fixed",l=La(e,!0,o,t);let d={scrollLeft:0,scrollTop:0};const f=Xr(0);if(r||!r&&!o)if((Eo(t)!=="body"||Jc(u))&&(d=bh(t)),r){const g=La(t,!0,o,t);f.x=g.x+t.clientLeft,f.y=g.y+t.clientTop}else u&&(f.x=H4(u));const h=u&&!r&&!o?I1(u,d):Xr(0),m=l.left+d.scrollLeft-f.x-h.x,E=l.top+d.scrollTop-f.y-h.y;return{x:m,y:E,width:l.width,height:l.height}}function zp(e){return Lr(e).position==="static"}function uC(e,t){if(!ni(e)||Lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oi(e)===n&&(n=n.ownerDocument.body),n}function C1(e,t){const n=Qn(e);if(Dh(e))return n;if(!ni(e)){let u=vu(e);for(;u&&!Js(u);){if(Or(u)&&!zp(u))return u;u=vu(u)}return n}let r=uC(e,t);for(;r&&gG(r)&&zp(r);)r=uC(r,t);return r&&Js(r)&&zp(r)&&!w4(r)?n:r||_G(e)||n}const BG=async function(e){const t=this.getOffsetParent||C1,n=this.getDimensions,r=await n(e.floating);return{reference:xG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FG(e){return Lr(e).direction==="rtl"}const OG={convertOffsetParentRelativeRectToViewportRelativeRect:IG,getDocumentElement:oi,getClippingRect:DG,getOffsetParent:C1,getElementRects:BG,getClientRects:yG,getDimensions:bG,getScale:$s,isElement:Or,isRTL:FG};function v1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LG(e,t){let n=null,r;const u=oi(e);function o(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function l(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),o();const h=e.getBoundingClientRect(),{left:m,top:E,width:g,height:_}=h;if(d||t(),!g||!_)return;const S=M0(E),C=M0(u.clientWidth-(m+g)),v=M0(u.clientHeight-(E+_)),R=M0(m),b={rootMargin:-S+"px "+-C+"px "+-v+"px "+-R+"px",threshold:qn(0,yu(1,f))||1};let L=!0;function x(B){const O=B[0].intersectionRatio;if(O!==f){if(!L)return l();O?l(!1,O):r=setTimeout(()=>{l(!1,1e-7)},1e3)}O===1&&!v1(h,e.getBoundingClientRect())&&l(),L=!1}try{n=new IntersectionObserver(x,{...b,root:u.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return l(!0),o}function wG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:u=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,h=P4(e),m=u||o?[...h?dc(h):[],...dc(t)]:[];m.forEach(R=>{u&&R.addEventListener("scroll",n,{passive:!0}),o&&R.addEventListener("resize",n)});const E=h&&d?LG(h,n):null;let g=-1,_=null;l&&(_=new ResizeObserver(R=>{let[T]=R;T&&T.target===h&&_&&(_.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=_)==null||b.observe(t)})),n()}),h&&!f&&_.observe(h),_.observe(t));let S,C=f?La(e):null;f&&v();function v(){const R=La(e);C&&!v1(C,R)&&n(),C=R,S=requestAnimationFrame(v)}return n(),()=>{var R;m.forEach(T=>{u&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),E==null||E(),(R=_)==null||R.disconnect(),_=null,f&&cancelAnimationFrame(S)}}const MG=AG,PG=mG,HG=dG,UG=EG,kG=fG,aC=cG,GG=pG,VG=(e,t,n)=>{const r=new Map,u={platform:OG,...n},o={...u.platform,_c:r};return lG(e,t,{...u,platform:o})};var sf=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Df(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,u;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Df(e[r],t[r]))return!1;return!0}if(u=Object.keys(e),n=u.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,u[r]))return!1;for(r=n;r--!==0;){const o=u[r];if(!(o==="_owner"&&e.$$typeof)&&!Df(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function R1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sC(e,t){const n=R1(e);return Math.round(t*n)/n}function Kp(e){const t=y.useRef(e);return sf(()=>{t.current=e}),t}function jG(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:u,elements:{reference:o,floating:l}={},transform:d=!0,whileElementsMounted:f,open:h}=e,[m,E]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,_]=y.useState(r);Df(g,r)||_(r);const[S,C]=y.useState(null),[v,R]=y.useState(null),T=y.useCallback(Q=>{Q!==B.current&&(B.current=Q,C(Q))},[]),b=y.useCallback(Q=>{Q!==O.current&&(O.current=Q,R(Q))},[]),L=o||S,x=l||v,B=y.useRef(null),O=y.useRef(null),H=y.useRef(m),U=f!=null,G=Kp(f),fe=Kp(u),ae=Kp(h),ce=y.useCallback(()=>{if(!B.current||!O.current)return;const Q={placement:t,strategy:n,middleware:g};fe.current&&(Q.platform=fe.current),VG(B.current,O.current,Q).then(Ae=>{const P={...Ae,isPositioned:ae.current!==!1};Z.current&&!Df(H.current,P)&&(H.current=P,Ga.flushSync(()=>{E(P)}))})},[g,t,n,fe,ae]);sf(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,E(Q=>({...Q,isPositioned:!1})))},[h]);const Z=y.useRef(!1);sf(()=>(Z.current=!0,()=>{Z.current=!1}),[]),sf(()=>{if(L&&(B.current=L),x&&(O.current=x),L&&x){if(G.current)return G.current(L,x,ce);ce()}},[L,x,ce,G,U]);const te=y.useMemo(()=>({reference:B,floating:O,setReference:T,setFloating:b}),[T,b]),V=y.useMemo(()=>({reference:L,floating:x}),[L,x]),ee=y.useMemo(()=>{const Q={position:n,left:0,top:0};if(!V.floating)return Q;const Ae=sC(V.floating,m.x),P=sC(V.floating,m.y);return d?{...Q,transform:"translate("+Ae+"px, "+P+"px)",...R1(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ae,top:P}},[n,d,V.floating,m.x,m.y]);return y.useMemo(()=>({...m,update:ce,refs:te,elements:V,floatingStyles:ee}),[m,ce,te,V,ee])}const zG=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:u}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?aC({element:r.current,padding:u}).fn(n):{}:r?aC({element:r,padding:u}).fn(n):{}}}},KG=(e,t)=>({...MG(e),options:[e,t]}),$G=(e,t)=>({...PG(e),options:[e,t]}),YG=(e,t)=>({...GG(e),options:[e,t]}),ZG=(e,t)=>({...HG(e),options:[e,t]}),WG=(e,t)=>({...UG(e),options:[e,t]}),qG=(e,t)=>({...kG(e),options:[e,t]}),XG=(e,t)=>({...zG(e),options:[e,t]});var QG="Arrow",T1=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:u=5,...o}=e;return N.jsx(nt.svg,{...o,ref:t,width:r,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});T1.displayName=QG;var JG=T1;function eV(e){const[t,n]=y.useState(void 0);return Cn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const o=u[0];let l,d;if("borderBoxSize"in o){const f=o.borderBoxSize,h=Array.isArray(f)?f[0]:f;l=h.inlineSize,d=h.blockSize}else l=e.offsetWidth,d=e.offsetHeight;n({width:l,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var U4="Popper",[D1,b1]=Zc(U4),[tV,x1]=D1(U4),B1=e=>{const{__scopePopper:t,children:n}=e,[r,u]=y.useState(null);return N.jsx(tV,{scope:t,anchor:r,onAnchorChange:u,children:n})};B1.displayName=U4;var F1="PopperAnchor",O1=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...u}=e,o=x1(F1,n),l=y.useRef(null),d=xt(t,l);return y.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:N.jsx(nt.div,{...u,ref:d})});O1.displayName=F1;var k4="PopperContent",[nV,rV]=D1(k4),L1=y.forwardRef((e,t)=>{var pe,ve,Ve,we,Ze,at;const{__scopePopper:n,side:r="bottom",sideOffset:u=0,align:o="center",alignOffset:l=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:g=!1,updatePositionStrategy:_="optimized",onPlaced:S,...C}=e,v=x1(k4,n),[R,T]=y.useState(null),b=xt(t,It=>T(It)),[L,x]=y.useState(null),B=eV(L),O=(B==null?void 0:B.width)??0,H=(B==null?void 0:B.height)??0,U=r+(o!=="center"?"-"+o:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},fe=Array.isArray(h)?h:[h],ae=fe.length>0,ce={padding:G,boundary:fe.filter(uV),altBoundary:ae},{refs:Z,floatingStyles:te,placement:V,isPositioned:ee,middlewareData:Q}=jG({strategy:"fixed",placement:U,whileElementsMounted:(...It)=>wG(...It,{animationFrame:_==="always"}),elements:{reference:v.anchor},middleware:[KG({mainAxis:u+H,alignmentAxis:l}),f&&$G({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?YG():void 0,...ce}),f&&ZG({...ce}),WG({...ce,apply:({elements:It,rects:Jt,availableWidth:yr,availableHeight:kn})=>{const{width:Hr,height:k}=Jt.reference,X=It.floating.style;X.setProperty("--radix-popper-available-width",`${yr}px`),X.setProperty("--radix-popper-available-height",`${kn}px`),X.setProperty("--radix-popper-anchor-width",`${Hr}px`),X.setProperty("--radix-popper-anchor-height",`${k}px`)}}),L&&XG({element:L,padding:d}),aV({arrowWidth:O,arrowHeight:H}),g&&qG({strategy:"referenceHidden",...ce})]}),[Ae,P]=P1(V),W=er(S);Cn(()=>{ee&&(W==null||W())},[ee,W]);const z=(pe=Q.arrow)==null?void 0:pe.x,re=(ve=Q.arrow)==null?void 0:ve.y,ne=((Ve=Q.arrow)==null?void 0:Ve.centerOffset)!==0,[de,Ee]=y.useState();return Cn(()=>{R&&Ee(window.getComputedStyle(R).zIndex)},[R]),N.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:ee?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(we=Q.transformOrigin)==null?void 0:we.x,(Ze=Q.transformOrigin)==null?void 0:Ze.y].join(" "),...((at=Q.hide)==null?void 0:at.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(nV,{scope:n,placedSide:Ae,onArrowChange:x,arrowX:z,arrowY:re,shouldHideArrow:ne,children:N.jsx(nt.div,{"data-side":Ae,"data-align":P,...C,ref:b,style:{...C.style,animation:ee?void 0:"none"}})})})});L1.displayName=k4;var w1="PopperArrow",iV={top:"bottom",right:"left",bottom:"top",left:"right"},M1=y.forwardRef(function(t,n){const{__scopePopper:r,...u}=t,o=rV(w1,r),l=iV[o.placedSide];return N.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:N.jsx(JG,{...u,ref:n,style:{...u.style,display:"block"}})})});M1.displayName=w1;function uV(e){return e!==null}var aV=e=>({name:"transformOrigin",options:e,fn(t){var v,R,T;const{placement:n,rects:r,middlewareData:u}=t,l=((v=u.arrow)==null?void 0:v.centerOffset)!==0,d=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[h,m]=P1(n),E={start:"0%",center:"50%",end:"100%"}[m],g=(((R=u.arrow)==null?void 0:R.x)??0)+d/2,_=(((T=u.arrow)==null?void 0:T.y)??0)+f/2;let S="",C="";return h==="bottom"?(S=l?E:`${g}px`,C=`${-f}px`):h==="top"?(S=l?E:`${g}px`,C=`${r.floating.height+f}px`):h==="right"?(S=`${-f}px`,C=l?E:`${_}px`):h==="left"&&(S=`${r.floating.width+f}px`,C=l?E:`${_}px`),{data:{x:S,y:C}}}});function P1(e){const[t,n="center"]=e.split("-");return[t,n]}var sV=B1,oV=O1,lV=L1,cV=M1;function dV(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var fV=[" ","Enter","ArrowUp","ArrowDown"],hV=[" ","Enter"],ed="Select",[xh,Bh,AV]=W9(ed),[go,pie]=Zc(ed,[AV,b1]),Fh=b1(),[mV,Hu]=go(ed),[pV,EV]=go(ed),H1=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:u,onOpenChange:o,value:l,defaultValue:d,onValueChange:f,dir:h,name:m,autoComplete:E,disabled:g,required:_,form:S}=e,C=Fh(t),[v,R]=y.useState(null),[T,b]=y.useState(null),[L,x]=y.useState(!1),B=eG(h),[O=!1,H]=gf({prop:r,defaultProp:u,onChange:o}),[U,G]=gf({prop:l,defaultProp:d,onChange:f}),fe=y.useRef(null),ae=v?S||!!v.closest("form"):!0,[ce,Z]=y.useState(new Set),te=Array.from(ce).map(V=>V.props.value).join(";");return N.jsx(sV,{...C,children:N.jsxs(mV,{required:_,scope:t,trigger:v,onTriggerChange:R,valueNode:T,onValueNodeChange:b,valueNodeHasChildren:L,onValueNodeHasChildrenChange:x,contentId:Nr(),value:U,onValueChange:G,open:O,onOpenChange:H,dir:B,triggerPointerDownPosRef:fe,disabled:g,children:[N.jsx(xh.Provider,{scope:t,children:N.jsx(pV,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(V=>{Z(ee=>new Set(ee).add(V))},[]),onNativeOptionRemove:y.useCallback(V=>{Z(ee=>{const Q=new Set(ee);return Q.delete(V),Q})},[]),children:n})}),ae?N.jsxs(cD,{"aria-hidden":!0,required:_,tabIndex:-1,name:m,autoComplete:E,value:U,onChange:V=>G(V.target.value),disabled:g,form:S,children:[U===void 0?N.jsx("option",{value:""}):null,Array.from(ce)]},te):null]})})};H1.displayName=ed;var U1="SelectTrigger",k1=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...u}=e,o=Fh(n),l=Hu(U1,n),d=l.disabled||r,f=xt(t,l.onTriggerChange),h=Bh(n),m=y.useRef("touch"),[E,g,_]=dD(C=>{const v=h().filter(b=>!b.disabled),R=v.find(b=>b.value===l.value),T=fD(v,C,R);T!==void 0&&l.onValueChange(T.value)}),S=C=>{d||(l.onOpenChange(!0),_()),C&&(l.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)})};return N.jsx(oV,{asChild:!0,...o,children:N.jsx(nt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":lD(l.value)?"":void 0,...u,ref:f,onClick:lt(u.onClick,C=>{C.currentTarget.focus(),m.current!=="mouse"&&S(C)}),onPointerDown:lt(u.onPointerDown,C=>{m.current=C.pointerType;const v=C.target;v.hasPointerCapture(C.pointerId)&&v.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&C.pointerType==="mouse"&&(S(C),C.preventDefault())}),onKeyDown:lt(u.onKeyDown,C=>{const v=E.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&g(C.key),!(v&&C.key===" ")&&fV.includes(C.key)&&(S(),C.preventDefault())})})})});k1.displayName=U1;var G1="SelectValue",V1=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,children:o,placeholder:l="",...d}=e,f=Hu(G1,n),{onValueNodeHasChildrenChange:h}=f,m=o!==void 0,E=xt(t,f.onValueNodeChange);return Cn(()=>{h(m)},[h,m]),N.jsx(nt.span,{...d,ref:E,style:{pointerEvents:"none"},children:lD(f.value)?N.jsx(N.Fragment,{children:l}):o})});V1.displayName=G1;var gV="SelectIcon",j1=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...u}=e;return N.jsx(nt.span,{"aria-hidden":!0,...u,ref:t,children:r||"▼"})});j1.displayName=gV;var _V="SelectPortal",z1=e=>N.jsx(gh,{asChild:!0,...e});z1.displayName=_V;var wa="SelectContent",K1=y.forwardRef((e,t)=>{const n=Hu(wa,e.__scopeSelect),[r,u]=y.useState();if(Cn(()=>{u(new DocumentFragment)},[]),!n.open){const o=r;return o?Ga.createPortal(N.jsx($1,{scope:e.__scopeSelect,children:N.jsx(xh.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),o):null}return N.jsx(Y1,{...e,ref:t})});K1.displayName=wa;var Dr=10,[$1,Uu]=go(wa),SV="SelectContentImpl",Y1=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:o,onPointerDownOutside:l,side:d,sideOffset:f,align:h,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:C,avoidCollisions:v,...R}=e,T=Hu(wa,n),[b,L]=y.useState(null),[x,B]=y.useState(null),O=xt(t,pe=>L(pe)),[H,U]=y.useState(null),[G,fe]=y.useState(null),ae=Bh(n),[ce,Z]=y.useState(!1),te=y.useRef(!1);y.useEffect(()=>{if(b)return ZT(b)},[b]),UT();const V=y.useCallback(pe=>{const[ve,...Ve]=ae().map(at=>at.ref.current),[we]=Ve.slice(-1),Ze=document.activeElement;for(const at of pe)if(at===Ze||(at==null||at.scrollIntoView({block:"nearest"}),at===ve&&x&&(x.scrollTop=0),at===we&&x&&(x.scrollTop=x.scrollHeight),at==null||at.focus(),document.activeElement!==Ze))return},[ae,x]),ee=y.useCallback(()=>V([H,b]),[V,H,b]);y.useEffect(()=>{ce&&ee()},[ce,ee]);const{onOpenChange:Q,triggerPointerDownPosRef:Ae}=T;y.useEffect(()=>{if(b){let pe={x:0,y:0};const ve=we=>{var Ze,at;pe={x:Math.abs(Math.round(we.pageX)-(((Ze=Ae.current)==null?void 0:Ze.x)??0)),y:Math.abs(Math.round(we.pageY)-(((at=Ae.current)==null?void 0:at.y)??0))}},Ve=we=>{pe.x<=10&&pe.y<=10?we.preventDefault():b.contains(we.target)||Q(!1),document.removeEventListener("pointermove",ve),Ae.current=null};return Ae.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ve,{capture:!0})}}},[b,Q,Ae]),y.useEffect(()=>{const pe=()=>Q(!1);return window.addEventListener("blur",pe),window.addEventListener("resize",pe),()=>{window.removeEventListener("blur",pe),window.removeEventListener("resize",pe)}},[Q]);const[P,W]=dD(pe=>{const ve=ae().filter(Ze=>!Ze.disabled),Ve=ve.find(Ze=>Ze.ref.current===document.activeElement),we=fD(ve,pe,Ve);we&&setTimeout(()=>we.ref.current.focus())}),z=y.useCallback((pe,ve,Ve)=>{const we=!te.current&&!Ve;(T.value!==void 0&&T.value===ve||we)&&(U(pe),we&&(te.current=!0))},[T.value]),re=y.useCallback(()=>b==null?void 0:b.focus(),[b]),ne=y.useCallback((pe,ve,Ve)=>{const we=!te.current&&!Ve;(T.value!==void 0&&T.value===ve||we)&&fe(pe)},[T.value]),de=r==="popper"?WE:Z1,Ee=de===WE?{side:d,sideOffset:f,align:h,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:C,avoidCollisions:v}:{};return N.jsx($1,{scope:n,content:b,viewport:x,onViewportChange:B,itemRefCallback:z,selectedItem:H,onItemLeave:re,itemTextRefCallback:ne,focusSelectedItem:ee,selectedItemText:G,position:r,isPositioned:ce,searchRef:P,children:N.jsx(v4,{as:xa,allowPinchZoom:!0,children:N.jsx(C4,{asChild:!0,trapped:T.open,onMountAutoFocus:pe=>{pe.preventDefault()},onUnmountAutoFocus:lt(u,pe=>{var ve;(ve=T.trigger)==null||ve.focus({preventScroll:!0}),pe.preventDefault()}),children:N.jsx(Eh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:pe=>pe.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:N.jsx(de,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:pe=>pe.preventDefault(),...R,...Ee,onPlaced:()=>Z(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:lt(R.onKeyDown,pe=>{const ve=pe.ctrlKey||pe.altKey||pe.metaKey;if(pe.key==="Tab"&&pe.preventDefault(),!ve&&pe.key.length===1&&W(pe.key),["ArrowUp","ArrowDown","Home","End"].includes(pe.key)){let we=ae().filter(Ze=>!Ze.disabled).map(Ze=>Ze.ref.current);if(["ArrowUp","End"].includes(pe.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(pe.key)){const Ze=pe.target,at=we.indexOf(Ze);we=we.slice(at+1)}setTimeout(()=>V(we)),pe.preventDefault()}})})})})})})});Y1.displayName=SV;var NV="SelectItemAlignedPosition",Z1=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...u}=e,o=Hu(wa,n),l=Uu(wa,n),[d,f]=y.useState(null),[h,m]=y.useState(null),E=xt(t,O=>m(O)),g=Bh(n),_=y.useRef(!1),S=y.useRef(!0),{viewport:C,selectedItem:v,selectedItemText:R,focusSelectedItem:T}=l,b=y.useCallback(()=>{if(o.trigger&&o.valueNode&&d&&h&&C&&v&&R){const O=o.trigger.getBoundingClientRect(),H=h.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),G=R.getBoundingClientRect();if(o.dir!=="rtl"){const Ze=G.left-H.left,at=U.left-Ze,It=O.left-at,Jt=O.width+It,yr=Math.max(Jt,H.width),kn=window.innerWidth-Dr,Hr=Jy(at,[Dr,Math.max(Dr,kn-yr)]);d.style.minWidth=Jt+"px",d.style.left=Hr+"px"}else{const Ze=H.right-G.right,at=window.innerWidth-U.right-Ze,It=window.innerWidth-O.right-at,Jt=O.width+It,yr=Math.max(Jt,H.width),kn=window.innerWidth-Dr,Hr=Jy(at,[Dr,Math.max(Dr,kn-yr)]);d.style.minWidth=Jt+"px",d.style.right=Hr+"px"}const fe=g(),ae=window.innerHeight-Dr*2,ce=C.scrollHeight,Z=window.getComputedStyle(h),te=parseInt(Z.borderTopWidth,10),V=parseInt(Z.paddingTop,10),ee=parseInt(Z.borderBottomWidth,10),Q=parseInt(Z.paddingBottom,10),Ae=te+V+ce+Q+ee,P=Math.min(v.offsetHeight*5,Ae),W=window.getComputedStyle(C),z=parseInt(W.paddingTop,10),re=parseInt(W.paddingBottom,10),ne=O.top+O.height/2-Dr,de=ae-ne,Ee=v.offsetHeight/2,pe=v.offsetTop+Ee,ve=te+V+pe,Ve=Ae-ve;if(ve<=ne){const Ze=fe.length>0&&v===fe[fe.length-1].ref.current;d.style.bottom="0px";const at=h.clientHeight-C.offsetTop-C.offsetHeight,It=Math.max(de,Ee+(Ze?re:0)+at+ee),Jt=ve+It;d.style.height=Jt+"px"}else{const Ze=fe.length>0&&v===fe[0].ref.current;d.style.top="0px";const It=Math.max(ne,te+C.offsetTop+(Ze?z:0)+Ee)+Ve;d.style.height=It+"px",C.scrollTop=ve-ne+C.offsetTop}d.style.margin=`${Dr}px 0`,d.style.minHeight=P+"px",d.style.maxHeight=ae+"px",r==null||r(),requestAnimationFrame(()=>_.current=!0)}},[g,o.trigger,o.valueNode,d,h,C,v,R,o.dir,r]);Cn(()=>b(),[b]);const[L,x]=y.useState();Cn(()=>{h&&x(window.getComputedStyle(h).zIndex)},[h]);const B=y.useCallback(O=>{O&&S.current===!0&&(b(),T==null||T(),S.current=!1)},[b,T]);return N.jsx(yV,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:_,onScrollButtonChange:B,children:N.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:N.jsx(nt.div,{...u,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});Z1.displayName=NV;var IV="SelectPopperPosition",WE=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:u=Dr,...o}=e,l=Fh(n);return N.jsx(lV,{...l,...o,ref:t,align:r,collisionPadding:u,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});WE.displayName=IV;var[yV,G4]=go(wa,{}),qE="SelectViewport",W1=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...u}=e,o=Uu(qE,n),l=G4(qE,n),d=xt(t,o.onViewportChange),f=y.useRef(0);return N.jsxs(N.Fragment,{children:[N.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),N.jsx(xh.Slot,{scope:n,children:N.jsx(nt.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:lt(u.onScroll,h=>{const m=h.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:g}=l;if(g!=null&&g.current&&E){const _=Math.abs(f.current-m.scrollTop);if(_>0){const S=window.innerHeight-Dr*2,C=parseFloat(E.style.minHeight),v=parseFloat(E.style.height),R=Math.max(C,v);if(R<S){const T=R+_,b=Math.min(S,T),L=T-b;E.style.height=b+"px",E.style.bottom==="0px"&&(m.scrollTop=L>0?L:0,E.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});W1.displayName=qE;var q1="SelectGroup",[CV,vV]=go(q1),X1=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Nr();return N.jsx(CV,{scope:n,id:u,children:N.jsx(nt.div,{role:"group","aria-labelledby":u,...r,ref:t})})});X1.displayName=q1;var Q1="SelectLabel",J1=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=vV(Q1,n);return N.jsx(nt.div,{id:u.id,...r,ref:t})});J1.displayName=Q1;var bf="SelectItem",[RV,eD]=go(bf),tD=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:u=!1,textValue:o,...l}=e,d=Hu(bf,n),f=Uu(bf,n),h=d.value===r,[m,E]=y.useState(o??""),[g,_]=y.useState(!1),S=xt(t,T=>{var b;return(b=f.itemRefCallback)==null?void 0:b.call(f,T,r,u)}),C=Nr(),v=y.useRef("touch"),R=()=>{u||(d.onValueChange(r),d.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return N.jsx(RV,{scope:n,value:r,disabled:u,textId:C,isSelected:h,onItemTextChange:y.useCallback(T=>{E(b=>b||((T==null?void 0:T.textContent)??"").trim())},[]),children:N.jsx(xh.ItemSlot,{scope:n,value:r,disabled:u,textValue:m,children:N.jsx(nt.div,{role:"option","aria-labelledby":C,"data-highlighted":g?"":void 0,"aria-selected":h&&g,"data-state":h?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...l,ref:S,onFocus:lt(l.onFocus,()=>_(!0)),onBlur:lt(l.onBlur,()=>_(!1)),onClick:lt(l.onClick,()=>{v.current!=="mouse"&&R()}),onPointerUp:lt(l.onPointerUp,()=>{v.current==="mouse"&&R()}),onPointerDown:lt(l.onPointerDown,T=>{v.current=T.pointerType}),onPointerMove:lt(l.onPointerMove,T=>{var b;v.current=T.pointerType,u?(b=f.onItemLeave)==null||b.call(f):v.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:lt(l.onPointerLeave,T=>{var b;T.currentTarget===document.activeElement&&((b=f.onItemLeave)==null||b.call(f))}),onKeyDown:lt(l.onKeyDown,T=>{var L;((L=f.searchRef)==null?void 0:L.current)!==""&&T.key===" "||(hV.includes(T.key)&&R(),T.key===" "&&T.preventDefault())})})})})});tD.displayName=bf;var kl="SelectItemText",nD=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,...o}=e,l=Hu(kl,n),d=Uu(kl,n),f=eD(kl,n),h=EV(kl,n),[m,E]=y.useState(null),g=xt(t,R=>E(R),f.onItemTextChange,R=>{var T;return(T=d.itemTextRefCallback)==null?void 0:T.call(d,R,f.value,f.disabled)}),_=m==null?void 0:m.textContent,S=y.useMemo(()=>N.jsx("option",{value:f.value,disabled:f.disabled,children:_},f.value),[f.disabled,f.value,_]),{onNativeOptionAdd:C,onNativeOptionRemove:v}=h;return Cn(()=>(C(S),()=>v(S)),[C,v,S]),N.jsxs(N.Fragment,{children:[N.jsx(nt.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Ga.createPortal(o.children,l.valueNode):null]})});nD.displayName=kl;var rD="SelectItemIndicator",iD=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return eD(rD,n).isSelected?N.jsx(nt.span,{"aria-hidden":!0,...r,ref:t}):null});iD.displayName=rD;var XE="SelectScrollUpButton",uD=y.forwardRef((e,t)=>{const n=Uu(XE,e.__scopeSelect),r=G4(XE,e.__scopeSelect),[u,o]=y.useState(!1),l=xt(t,r.onScrollButtonChange);return Cn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const h=f.scrollTop>0;o(h)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),u?N.jsx(sD,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop-f.offsetHeight)}}):null});uD.displayName=XE;var QE="SelectScrollDownButton",aD=y.forwardRef((e,t)=>{const n=Uu(QE,e.__scopeSelect),r=G4(QE,e.__scopeSelect),[u,o]=y.useState(!1),l=xt(t,r.onScrollButtonChange);return Cn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const h=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<h;o(m)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),u?N.jsx(sD,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop+f.offsetHeight)}}):null});aD.displayName=QE;var sD=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...u}=e,o=Uu("SelectScrollButton",n),l=y.useRef(null),d=Bh(n),f=y.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return y.useEffect(()=>()=>f(),[f]),Cn(()=>{var m;const h=d().find(E=>E.ref.current===document.activeElement);(m=h==null?void 0:h.ref.current)==null||m.scrollIntoView({block:"nearest"})},[d]),N.jsx(nt.div,{"aria-hidden":!0,...u,ref:t,style:{flexShrink:0,...u.style},onPointerDown:lt(u.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:lt(u.onPointerMove,()=>{var h;(h=o.onItemLeave)==null||h.call(o),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:lt(u.onPointerLeave,()=>{f()})})}),TV="SelectSeparator",oD=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(nt.div,{"aria-hidden":!0,...r,ref:t})});oD.displayName=TV;var JE="SelectArrow",DV=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Fh(n),o=Hu(JE,n),l=Uu(JE,n);return o.open&&l.position==="popper"?N.jsx(cV,{...u,...r,ref:t}):null});DV.displayName=JE;function lD(e){return e===""||e===void 0}var cD=y.forwardRef((e,t)=>{const{value:n,...r}=e,u=y.useRef(null),o=xt(t,u),l=dV(n);return y.useEffect(()=>{const d=u.current,f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&m){const E=new Event("change",{bubbles:!0});m.call(d,n),d.dispatchEvent(E)}},[l,n]),N.jsx(_h,{asChild:!0,children:N.jsx("select",{...r,ref:o,defaultValue:n})})});cD.displayName="BubbleSelect";function dD(e){const t=er(e),n=y.useRef(""),r=y.useRef(0),u=y.useCallback(l=>{const d=n.current+l;t(d),function f(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(d)},[t]),o=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,u,o]}function fD(e,t,n){const u=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=bV(e,Math.max(o,0));u.length===1&&(l=l.filter(h=>h!==n));const f=l.find(h=>h.textValue.toLowerCase().startsWith(u.toLowerCase()));return f!==n?f:void 0}function bV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var xV=H1,BV=k1,FV=V1,OV=j1,LV=z1,wV=K1,MV=W1,PV=X1,HV=J1,UV=tD,kV=nD,GV=iD,VV=uD,jV=aD,zV=oD;const KV=xV,$V=PV,YV=FV,ZV=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>N.jsxs(BV,{className:Re("border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring focus:outline-hidden flex w-full items-center justify-between whitespace-nowrap rounded-md border px-3 py-2 text-sm focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 px-2 py-1 text-sm shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error",e&&"valid:border-success invalid:border-error",t),...r,children:[n,N.jsx(OV,{asChild:!0,children:N.jsx(iP,{className:"size-4 opacity-50"})})]}),hD=({className:e,...t})=>N.jsx(VV,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(nP,{})}),AD=({className:e,...t})=>N.jsx(jV,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(H9,{})}),WV=({className:e,children:t,position:n="popper",...r})=>N.jsx(LV,{children:N.jsxs(wV,{className:Re("bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 p-1 text-sm shadow-none outline-0 transition-all","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[N.jsx(hD,{}),N.jsx(MV,{className:Re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),N.jsx(AD,{})]})}),qV=({className:e,...t})=>N.jsx(HV,{className:Re("px-1 py-0.5 text-sm font-semibold",e),...t}),XV=({className:e,children:t,...n})=>N.jsxs(UV,{className:Re("focus:bg-neutral/10 outline-hidden relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[N.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:N.jsx(GV,{children:N.jsx(Ao,{className:"size-4"})})}),N.jsx(kV,{children:t})]}),QV=({className:e,...t})=>N.jsx(zV,{className:Re("-mx-1 my-1 h-px bg-red-300",e),...t}),Pe=KV;Pe.Group=$V;Pe.Value=YV;Pe.Trigger=ZV;Pe.ScrollUpButton=hD;Pe.ScrollDownButton=AD;Pe.Content=WV;Pe.Label=qV;Pe.Item=XV;Pe.Separator=QV;const JV=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",ej=(e,t=JV,n=!1)=>{const[r,u]=y.useState(null),[o,l]=y.useState(null),d=e.current.length;return y.useEffect(()=>{const f=()=>{let C=null;if(o?C=o:C=e.current.find(t)??null,!C){u(T=>({left:0,width:0,...T,opacity:0}));return}const v=C.offsetLeft,R=C.offsetWidth;u({left:v,width:R,opacity:1})};f(),window.addEventListener("resize",f),window.addEventListener("DOMContentLoaded",f);const h=[];e.current.forEach(C=>{if(C){const v=new MutationObserver(R=>{for(const T of R)if(T.type==="attributes"&&T.attributeName==="aria-selected"){f();break}});v.observe(C,{attributes:!0,attributeFilter:["aria-selected"]}),h.push(v)}});const m=[],E=C=>{if(!C)return;const v=new ResizeObserver(()=>{f()});v.observe(C),m.push(v)},g=e.current.find(t)??null;g&&E(g),o&&E(o);const _=C=>{l(C.currentTarget)},S=()=>{l(null)};return n&&e.current.forEach(C=>{C==null||C.addEventListener("mouseenter",_),C==null||C.addEventListener("mouseleave",S)}),()=>{window.removeEventListener("resize",f),window.removeEventListener("DOMContentLoaded",f),h.forEach(C=>C.disconnect()),m.forEach(C=>C.disconnect()),e.current.forEach(C=>{C==null||C.removeEventListener("mouseenter",_),C==null||C.removeEventListener("mouseleave",S)})}},[e,t,o,d]),{choiceIndicatorPosition:r}},tj=[{content:"Off",value:!1},{content:"On",value:!0}],nj=Ir("flex flex-row gap-2 rounded-full w-fit border-[1.5px] p-[1.5px]",{variants:{color:{primary:"border-primary text-primary",secondary:"border-secondary text-secondary",destructive:"border-destructive bg-destructive text-destructive",neutral:"border-neutral text-neutral ",light:"border-white text-white",dark:"border-neutral-800 text-neutral-800",text:"border-text text-text"}},defaultVariants:{color:"primary"}}),rj=Ir("z-1 w-full flex-1 text-sm font-medium transition-all duration-300 ease-in-out aria-selected:cursor-default aria-selected:text-text-opposite motion-reduce:transition-none",{variants:{size:{sm:"py-1 px-2 text-xs",md:"p-2 text-sm",lg:"p-4 text-base"}},defaultVariants:{size:"md"}}),ij=Ir("absolute top-0 z-[-1] h-full w-auto rounded-full transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",{variants:{color:{primary:"bg-primary aria-selected:text-text",secondary:"bg-secondary aria-selected:text-text",destructive:"bg-destructive aria-selected:text-text",neutral:"bg-neutral aria-selected:text-white ",light:"bg-white aria-selected:text-black",dark:"bg-neutral-800 aria-selected:text-white",text:"bg-text aria-selected:text-text-opposite"}}}),td=({choices:e=tj,value:t,defaultValue:n,onChange:r,color:u="primary",size:o="md",className:l})=>{const[d,f]=y.useState(t??n??e[0].value),h=y.useRef([]),m=y.useRef(null),{choiceIndicatorPosition:E}=ej(h),g=_=>{f(_),r==null||r(_)};return y.useEffect(()=>{t!==void 0&&f(t)},[t]),N.jsx("div",{className:nj({color:u,className:l}),role:"tablist",children:N.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((_,S)=>{const{content:C,value:v,...R}=_,T=typeof v=="string"||typeof v=="number",b=v===d;return y.createElement("button",{...R,className:Re(rj({size:o})),key:T?v:S,role:"tab",onClick:()=>g(v),"aria-selected":b,disabled:b,ref:L=>{h.current[S]=L}},C)}),E&&N.jsx("div",{className:Re(ij({color:u})),style:E,ref:m})]})})};var uj=function(e,t){for(var n={};e.length;){var r=e[0],u=r.code,o=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var d=r.unionErrors[0].errors[0];n[l]={message:d.message,type:d.code}}else n[l]={message:o,type:u};if("unionErrors"in r&&r.unionErrors.forEach(function(m){return m.errors.forEach(function(E){return e.push(E)})}),t){var f=n[l].types,h=f&&f[r.code];n[l]=yT(l,t,n,u,h?[].concat(h,r.message):r.message)}e.shift()}return n},aj=function(e,t,n){return n===void 0&&(n={}),function(r,u,o){try{return Promise.resolve(function(l,d){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(h){return o.shouldUseNativeValidation&&xT({},o),{errors:{},values:n.raw?r:h}})}catch(h){return d(h)}return f&&f.then?f.then(void 0,d):f}(0,function(l){if(function(d){return Array.isArray(d==null?void 0:d.errors)}(l))return{values:{},errors:qU(uj(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}}};const $p=async e=>e&&typeof e.then=="function"?await e:e,sj=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:u,children:o,autoComplete:l,...d})=>{const f=async h=>{const m=(e==null?void 0:e.safeParse(h))??{success:!0,data:void 0};await $p(t==null?void 0:t(h)),m.success?await $p(n==null?void 0:n(m.data)):await $p(r==null?void 0:r(new Error(m.error.errors.map(E=>E.message).join(", "))))};return N.jsx(OU,{...d,children:N.jsx("form",{className:Re("flex size-full flex-col gap-y-6",u),onSubmit:d.handleSubmit(f),autoComplete:l?"on":"off",children:o})})},oj=(e,t)=>{const n=WU({resolver:aj(e),...t}),r=n.formState.isSubmitting,u=n.formState.isSubmitted,o=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:u,isLoading:o,isValid:l}},lj=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:u}=Pu();return N.jsx(xa,{id:n,"aria-describedby":t?`${r} ${u}`:`${r}`,"aria-invalid":!!t,...e})},cj=e=>{const{formDescriptionId:t}=Pu();return N.jsx("p",{className:"text-neutral text-sm",id:t,...e})},dj=({children:e,...t})=>{const{error:n,formMessageId:r}=Pu(),u=n?String((n==null?void 0:n.message)??""):e;return u?N.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:u}):null},Oh=({label:e,description:t,isRequired:n,info:r,children:u,showErrorMessage:o=!0,htmlFor:l})=>N.jsxs(ut.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&N.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&N.jsx(p1,{isRequired:n,info:r,htmlFor:l,children:e}),t&&N.jsx(ut.Description,{children:t})]}),N.jsx(ut.Control,{children:u}),o&&N.jsx(ut.Message,{"data-testid":"error-message"})]}),fj=({field:e,name:t,label:n,Element:r,isRequired:u=!1,info:o,description:l,showErrorMessage:d=!0,...f})=>{const{error:h}=Pu();return N.jsx(Oh,{htmlFor:t,label:n,description:l,isRequired:u,info:o,showErrorMessage:d,"aria-invalid":!!h,children:N.jsx(r,{"data-testid":"element",id:t,...e,...f,children:f.children})})},ku=e=>{const{control:t}=Mu();return N.jsx(ut.Field,{control:t,name:e.name,render:({field:n})=>N.jsx(fj,{...e,field:n})})},hj=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,Element:mo,...e}),Aj=({autoComplete:e,...t})=>N.jsx(ku,{Element:n5,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),mj=e=>N.jsx(ku,{Element:LT,id:e.name,"data-testid":e.name,...e}),pj=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,Element:MT,...e}),Ej=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,Element:PT,...e}),gj=e=>N.jsx(ku,{Element:y4,id:e.name,"data-testid":e.name,...e}),_j=({inputLabel:e,...t})=>N.jsx(t5,{...t,label:e}),Sj=({autoComplete:e,...t})=>N.jsx(ku,{Element:_j,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Nj=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...d})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Sn,{onValueChange:h.onChange,values:h.value,...d,children:l})})}})},Ij=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...d})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Pe,{onValueChange:h.onChange,defaultValue:h.value,...d,children:l})})}})},yj=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...d})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(td,{...h,...d,children:l})})}})},ut=sj;ut.Description=cj;ut.Control=lj;ut.Field=JU;ut.Item=QU;ut.Label=p1;ut.Message=dj;ut.Element=ku;ut.Input=hj;ut.InputPassword=Aj;ut.Checkbox=Sj;ut.TextArea=mj;ut.AutoSizedTextArea=gj;ut.Button=mt;ut.Select=Ij;ut.MultiSelect=Nj;ut.EditableFieldInput=pj;ut.EditableFieldTextArea=Ej;ut.SwitchSelector=yj;var dt;(function(e){e.assertEqual=u=>u;function t(u){}e.assertIs=t;function n(u){throw new Error}e.assertNever=n,e.arrayToEnum=u=>{const o={};for(const l of u)o[l]=l;return o},e.getValidEnumValues=u=>{const o=e.objectKeys(u).filter(d=>typeof u[u[d]]!="number"),l={};for(const d of o)l[d]=u[d];return e.objectValues(l)},e.objectValues=u=>e.objectKeys(u).map(function(o){return u[o]}),e.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const o=[];for(const l in u)Object.prototype.hasOwnProperty.call(u,l)&&o.push(l);return o},e.find=(u,o)=>{for(const l of u)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&isFinite(u)&&Math.floor(u)===u;function r(u,o=" | "){return u.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(u,o)=>typeof o=="bigint"?o.toString():o})(dt||(dt={}));var eg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(eg||(eg={}));const Te=dt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xi=e=>{switch(typeof e){case"undefined":return Te.undefined;case"string":return Te.string;case"number":return isNaN(e)?Te.nan:Te.number;case"boolean":return Te.boolean;case"function":return Te.function;case"bigint":return Te.bigint;case"symbol":return Te.symbol;case"object":return Array.isArray(e)?Te.array:e===null?Te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Te.promise:typeof Map<"u"&&e instanceof Map?Te.map:typeof Set<"u"&&e instanceof Set?Te.set:typeof Date<"u"&&e instanceof Date?Te.date:Te.object;default:return Te.unknown}},me=dt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Cj=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Jn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},u=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(u);else if(l.code==="invalid_return_type")u(l.returnTypeError);else if(l.code==="invalid_arguments")u(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let d=r,f=0;for(;f<l.path.length;){const h=l.path[f];f===l.path.length-1?(d[h]=d[h]||{_errors:[]},d[h]._errors.push(n(l))):d[h]=d[h]||{_errors:[]},d=d[h],f++}}};return u(this),r}static assert(t){if(!(t instanceof Jn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,dt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const u of this.issues)u.path.length>0?(n[u.path[0]]=n[u.path[0]]||[],n[u.path[0]].push(t(u))):r.push(t(u));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Jn.create=e=>new Jn(e);const eo=(e,t)=>{let n;switch(e.code){case me.invalid_type:e.received===Te.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case me.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,dt.jsonStringifyReplacer)}`;break;case me.unrecognized_keys:n=`Unrecognized key(s) in object: ${dt.joinValues(e.keys,", ")}`;break;case me.invalid_union:n="Invalid input";break;case me.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${dt.joinValues(e.options)}`;break;case me.invalid_enum_value:n=`Invalid enum value. Expected ${dt.joinValues(e.options)}, received '${e.received}'`;break;case me.invalid_arguments:n="Invalid function arguments";break;case me.invalid_return_type:n="Invalid function return type";break;case me.invalid_date:n="Invalid date";break;case me.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:dt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case me.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case me.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case me.custom:n="Invalid input";break;case me.invalid_intersection_types:n="Intersection results could not be merged";break;case me.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case me.not_finite:n="Number must be finite";break;default:n=t.defaultError,dt.assertNever(e)}return{message:n}};let mD=eo;function vj(e){mD=e}function xf(){return mD}const Bf=e=>{const{data:t,path:n,errorMaps:r,issueData:u}=e,o=[...n,...u.path||[]],l={...u,path:o};if(u.message!==void 0)return{...u,path:o,message:u.message};let d="";const f=r.filter(h=>!!h).slice().reverse();for(const h of f)d=h(l,{data:t,defaultError:d}).message;return{...u,path:o,message:d}},Rj=[];function ye(e,t){const n=xf(),r=Bf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===eo?void 0:eo].filter(u=>!!u)});e.common.issues.push(r)}class vn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const u of n){if(u.status==="aborted")return Ke;u.status==="dirty"&&t.dirty(),r.push(u.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const u of n){const o=await u.key,l=await u.value;r.push({key:o,value:l})}return vn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const u of n){const{key:o,value:l}=u;if(o.status==="aborted"||l.status==="aborted")return Ke;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||u.alwaysSet)&&(r[o.value]=l.value)}return{status:t.value,value:r}}}const Ke=Object.freeze({status:"aborted"}),Ms=e=>({status:"dirty",value:e}),Bn=e=>({status:"valid",value:e}),tg=e=>e.status==="aborted",ng=e=>e.status==="dirty",Ma=e=>e.status==="valid",fc=e=>typeof Promise<"u"&&e instanceof Promise;function Ff(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function pD(e,t,n,r,u){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));var Gl,Vl;class ri{constructor(t,n,r,u){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=u}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const oC=(e,t)=>{if(Ma(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Jn(e.common.issues);return this._error=n,this._error}}};function qe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:u}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:u}:{errorMap:(l,d)=>{var f,h;const{message:m}=e;return l.code==="invalid_enum_value"?{message:m??d.defaultError}:typeof d.data>"u"?{message:(f=m??r)!==null&&f!==void 0?f:d.defaultError}:l.code!=="invalid_type"?{message:d.defaultError}:{message:(h=m??n)!==null&&h!==void 0?h:d.defaultError}},description:u}}class et{get description(){return this._def.description}_getType(t){return xi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:xi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new vn,ctx:{common:t.parent.common,data:t.data,parsedType:xi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(fc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const u={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)},o=this._parseSync({data:t,path:u.path,parent:u});return oC(u,o)}"~validate"(t){var n,r;const u={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:u});return Ma(o)?{value:o.value}:{issues:u.common.issues}}catch(o){!((r=(n=o==null?void 0:o.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),u.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:u}).then(o=>Ma(o)?{value:o.value}:{issues:u.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)},u=this._parse({data:t,path:r.path,parent:r}),o=await(fc(u)?u:Promise.resolve(u));return oC(r,o)}refine(t,n){const r=u=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(u):n;return this._refinement((u,o)=>{const l=t(u),d=()=>o.addIssue({code:me.custom,...r(u)});return typeof Promise<"u"&&l instanceof Promise?l.then(f=>f?!0:(d(),!1)):l?!0:(d(),!1)})}refinement(t,n){return this._refinement((r,u)=>t(r)?!0:(u.addIssue(typeof n=="function"?n(r,u):n),!1))}_refinement(t){return new wr({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Qr.create(this,this._def)}nullable(){return bu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Fr.create(this)}promise(){return no.create(this,this._def)}or(t){return pc.create([this,t],this._def)}and(t){return Ec.create(this,t,this._def)}transform(t){return new wr({...qe(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ic({...qe(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new V4({typeName:Ge.ZodBranded,type:this,...qe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new yc({...qe(this._def),innerType:this,catchValue:n,typeName:Ge.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return nd.create(this,t)}readonly(){return Cc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Tj=/^c[^\s-]{8,}$/i,Dj=/^[0-9a-z]+$/,bj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,xj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Bj=/^[a-z0-9_-]{21}$/i,Fj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Oj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Lj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Yp;const Mj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Pj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Hj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Uj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Gj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ED="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Vj=new RegExp(`^${ED}$`);function gD(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function jj(e){return new RegExp(`^${gD(e)}$`)}function _D(e){let t=`${ED}T${gD(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function zj(e,t){return!!((t==="v4"||!t)&&Mj.test(e)||(t==="v6"||!t)&&Hj.test(e))}function Kj(e,t){if(!Fj.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),u=JSON.parse(atob(r));return!(typeof u!="object"||u===null||!u.typ||!u.alg||t&&u.alg!==t)}catch{return!1}}function $j(e,t){return!!((t==="v4"||!t)&&Pj.test(e)||(t==="v6"||!t)&&Uj.test(e))}class Br extends et{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Te.string){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:Te.string,received:o.parsedType}),Ke}const r=new vn;let u;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(u=this._getOrReturnCtx(t,u),ye(u,{code:me.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(u=this._getOrReturnCtx(t,u),ye(u,{code:me.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const l=t.data.length>o.value,d=t.data.length<o.value;(l||d)&&(u=this._getOrReturnCtx(t,u),l?ye(u,{code:me.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):d&&ye(u,{code:me.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Lj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"email",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Yp||(Yp=new RegExp(wj,"u")),Yp.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"emoji",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")xj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"uuid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Bj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"nanoid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Tj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"cuid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Dj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"cuid2",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")bj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"ulid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{u=this._getOrReturnCtx(t,u),ye(u,{validation:"url",code:me.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"regex",code:me.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?_D(o).test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Vj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?jj(o).test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{code:me.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Oj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"duration",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?zj(t.data,o.version)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"ip",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?Kj(t.data,o.alg)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"jwt",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?$j(t.data,o.version)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"cidr",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?kj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"base64",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Gj.test(t.data)||(u=this._getOrReturnCtx(t,u),ye(u,{validation:"base64url",code:me.invalid_string,message:o.message}),r.dirty()):dt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(u=>t.test(u),{validation:n,code:me.invalid_string,...Oe.errToObj(r)})}_addCheck(t){return new Br({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Oe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Oe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Oe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Oe.errToObj(n)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new Br({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Br({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Br({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Br.create=e=>{var t;return new Br({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...qe(e)})};function Yj(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,u=n>r?n:r,o=parseInt(e.toFixed(u).replace(".","")),l=parseInt(t.toFixed(u).replace(".",""));return o%l/Math.pow(10,u)}class Ru extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Te.number){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:Te.number,received:o.parsedType}),Ke}let r;const u=new vn;for(const o of this._def.checks)o.kind==="int"?dt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ye(r,{code:me.invalid_type,expected:"integer",received:"float",message:o.message}),u.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="multipleOf"?Yj(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ye(r,{code:me.not_finite,message:o.message}),u.dirty()):dt.assertNever(o);return{status:u.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,u){return new Ru({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(u)}]})}_addCheck(t){return new Ru({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&dt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ru.create=e=>new Ru({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...qe(e)});class Tu extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Te.bigint)return this._getInvalidInput(t);let r;const u=new vn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ye(r,{code:me.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):dt.assertNever(o);return{status:u.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ye(n,{code:me.invalid_type,expected:Te.bigint,received:n.parsedType}),Ke}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,u){return new Tu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(u)}]})}_addCheck(t){return new Tu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Tu.create=e=>{var t;return new Tu({checks:[],typeName:Ge.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...qe(e)})};class hc extends et{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Te.boolean){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.boolean,received:r.parsedType}),Ke}return Bn(t.data)}}hc.create=e=>new hc({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...qe(e)});class Pa extends et{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Te.date){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_type,expected:Te.date,received:o.parsedType}),Ke}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ye(o,{code:me.invalid_date}),Ke}const r=new vn;let u;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(u=this._getOrReturnCtx(t,u),ye(u,{code:me.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(u=this._getOrReturnCtx(t,u),ye(u,{code:me.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):dt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Pa({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Pa.create=e=>new Pa({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...qe(e)});class Of extends et{_parse(t){if(this._getType(t)!==Te.symbol){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.symbol,received:r.parsedType}),Ke}return Bn(t.data)}}Of.create=e=>new Of({typeName:Ge.ZodSymbol,...qe(e)});class Ac extends et{_parse(t){if(this._getType(t)!==Te.undefined){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.undefined,received:r.parsedType}),Ke}return Bn(t.data)}}Ac.create=e=>new Ac({typeName:Ge.ZodUndefined,...qe(e)});class mc extends et{_parse(t){if(this._getType(t)!==Te.null){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.null,received:r.parsedType}),Ke}return Bn(t.data)}}mc.create=e=>new mc({typeName:Ge.ZodNull,...qe(e)});class to extends et{constructor(){super(...arguments),this._any=!0}_parse(t){return Bn(t.data)}}to.create=e=>new to({typeName:Ge.ZodAny,...qe(e)});class Ta extends et{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Bn(t.data)}}Ta.create=e=>new Ta({typeName:Ge.ZodUnknown,...qe(e)});class Hi extends et{_parse(t){const n=this._getOrReturnCtx(t);return ye(n,{code:me.invalid_type,expected:Te.never,received:n.parsedType}),Ke}}Hi.create=e=>new Hi({typeName:Ge.ZodNever,...qe(e)});class Lf extends et{_parse(t){if(this._getType(t)!==Te.undefined){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.void,received:r.parsedType}),Ke}return Bn(t.data)}}Lf.create=e=>new Lf({typeName:Ge.ZodVoid,...qe(e)});class Fr extends et{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),u=this._def;if(n.parsedType!==Te.array)return ye(n,{code:me.invalid_type,expected:Te.array,received:n.parsedType}),Ke;if(u.exactLength!==null){const l=n.data.length>u.exactLength.value,d=n.data.length<u.exactLength.value;(l||d)&&(ye(n,{code:l?me.too_big:me.too_small,minimum:d?u.exactLength.value:void 0,maximum:l?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),r.dirty())}if(u.minLength!==null&&n.data.length<u.minLength.value&&(ye(n,{code:me.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),r.dirty()),u.maxLength!==null&&n.data.length>u.maxLength.value&&(ye(n,{code:me.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,d)=>u.type._parseAsync(new ri(n,l,n.path,d)))).then(l=>vn.mergeArray(r,l));const o=[...n.data].map((l,d)=>u.type._parseSync(new ri(n,l,n.path,d)));return vn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Fr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Fr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Fr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Fr.create=(e,t)=>new Fr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...qe(t)});function ws(e){if(e instanceof Tt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Qr.create(ws(r))}return new Tt({...e._def,shape:()=>t})}else return e instanceof Fr?new Fr({...e._def,type:ws(e.element)}):e instanceof Qr?Qr.create(ws(e.unwrap())):e instanceof bu?bu.create(ws(e.unwrap())):e instanceof ii?ii.create(e.items.map(t=>ws(t))):e}class Tt extends et{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=dt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Te.object){const h=this._getOrReturnCtx(t);return ye(h,{code:me.invalid_type,expected:Te.object,received:h.parsedType}),Ke}const{status:r,ctx:u}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),d=[];if(!(this._def.catchall instanceof Hi&&this._def.unknownKeys==="strip"))for(const h in u.data)l.includes(h)||d.push(h);const f=[];for(const h of l){const m=o[h],E=u.data[h];f.push({key:{status:"valid",value:h},value:m._parse(new ri(u,E,u.path,h)),alwaysSet:h in u.data})}if(this._def.catchall instanceof Hi){const h=this._def.unknownKeys;if(h==="passthrough")for(const m of d)f.push({key:{status:"valid",value:m},value:{status:"valid",value:u.data[m]}});else if(h==="strict")d.length>0&&(ye(u,{code:me.unrecognized_keys,keys:d}),r.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const m of d){const E=u.data[m];f.push({key:{status:"valid",value:m},value:h._parse(new ri(u,E,u.path,m)),alwaysSet:m in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const h=[];for(const m of f){const E=await m.key,g=await m.value;h.push({key:E,value:g,alwaysSet:m.alwaysSet})}return h}).then(h=>vn.mergeObjectSync(r,h)):vn.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new Tt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var u,o,l,d;const f=(l=(o=(u=this._def).errorMap)===null||o===void 0?void 0:o.call(u,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(d=Oe.errToObj(t).message)!==null&&d!==void 0?d:f}:{message:f}}}:{}})}strip(){return new Tt({...this._def,unknownKeys:"strip"})}passthrough(){return new Tt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Tt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Tt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ge.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Tt({...this._def,catchall:t})}pick(t){const n={};return dt.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Tt({...this._def,shape:()=>n})}omit(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Tt({...this._def,shape:()=>n})}deepPartial(){return ws(this)}partial(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{const u=this.shape[r];t&&!t[r]?n[r]=u:n[r]=u.optional()}),new Tt({...this._def,shape:()=>n})}required(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Qr;)o=o._def.innerType;n[r]=o}}),new Tt({...this._def,shape:()=>n})}keyof(){return SD(dt.objectKeys(this.shape))}}Tt.create=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strip",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});Tt.strictCreate=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strict",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});Tt.lazycreate=(e,t)=>new Tt({shape:e,unknownKeys:"strip",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});class pc extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function u(o){for(const d of o)if(d.result.status==="valid")return d.result;for(const d of o)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const l=o.map(d=>new Jn(d.ctx.common.issues));return ye(n,{code:me.invalid_union,unionErrors:l}),Ke}if(n.common.async)return Promise.all(r.map(async o=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(u);{let o;const l=[];for(const f of r){const h={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:h});if(m.status==="valid")return m;m.status==="dirty"&&!o&&(o={result:m,ctx:h}),h.common.issues.length&&l.push(h.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const d=l.map(f=>new Jn(f));return ye(n,{code:me.invalid_union,unionErrors:d}),Ke}}get options(){return this._def.options}}pc.create=(e,t)=>new pc({options:e,typeName:Ge.ZodUnion,...qe(t)});const bi=e=>e instanceof _c?bi(e.schema):e instanceof wr?bi(e.innerType()):e instanceof Sc?[e.value]:e instanceof Du?e.options:e instanceof Nc?dt.objectValues(e.enum):e instanceof Ic?bi(e._def.innerType):e instanceof Ac?[void 0]:e instanceof mc?[null]:e instanceof Qr?[void 0,...bi(e.unwrap())]:e instanceof bu?[null,...bi(e.unwrap())]:e instanceof V4||e instanceof Cc?bi(e.unwrap()):e instanceof yc?bi(e._def.innerType):[];class Lh extends et{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Te.object)return ye(n,{code:me.invalid_type,expected:Te.object,received:n.parsedType}),Ke;const r=this.discriminator,u=n.data[r],o=this.optionsMap.get(u);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ye(n,{code:me.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ke)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const u=new Map;for(const o of n){const l=bi(o.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of l){if(u.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);u.set(d,o)}}return new Lh({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:u,...qe(r)})}}function rg(e,t){const n=xi(e),r=xi(t);if(e===t)return{valid:!0,data:e};if(n===Te.object&&r===Te.object){const u=dt.objectKeys(t),o=dt.objectKeys(e).filter(d=>u.indexOf(d)!==-1),l={...e,...t};for(const d of o){const f=rg(e[d],t[d]);if(!f.valid)return{valid:!1};l[d]=f.data}return{valid:!0,data:l}}else if(n===Te.array&&r===Te.array){if(e.length!==t.length)return{valid:!1};const u=[];for(let o=0;o<e.length;o++){const l=e[o],d=t[o],f=rg(l,d);if(!f.valid)return{valid:!1};u.push(f.data)}return{valid:!0,data:u}}else return n===Te.date&&r===Te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ec extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),u=(o,l)=>{if(tg(o)||tg(l))return Ke;const d=rg(o.value,l.value);return d.valid?((ng(o)||ng(l))&&n.dirty(),{status:n.value,value:d.data}):(ye(r,{code:me.invalid_intersection_types}),Ke)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,l])=>u(o,l)):u(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ec.create=(e,t,n)=>new Ec({left:e,right:t,typeName:Ge.ZodIntersection,...qe(n)});class ii extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.array)return ye(r,{code:me.invalid_type,expected:Te.array,received:r.parsedType}),Ke;if(r.data.length<this._def.items.length)return ye(r,{code:me.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ke;!this._def.rest&&r.data.length>this._def.items.length&&(ye(r,{code:me.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((l,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new ri(r,l,r.path,d)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>vn.mergeArray(n,l)):vn.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new ii({...this._def,rest:t})}}ii.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ii({items:e,typeName:Ge.ZodTuple,rest:null,...qe(t)})};class gc extends et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.object)return ye(r,{code:me.invalid_type,expected:Te.object,received:r.parsedType}),Ke;const u=[],o=this._def.keyType,l=this._def.valueType;for(const d in r.data)u.push({key:o._parse(new ri(r,d,r.path,d)),value:l._parse(new ri(r,r.data[d],r.path,d)),alwaysSet:d in r.data});return r.common.async?vn.mergeObjectAsync(n,u):vn.mergeObjectSync(n,u)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof et?new gc({keyType:t,valueType:n,typeName:Ge.ZodRecord,...qe(r)}):new gc({keyType:Br.create(),valueType:t,typeName:Ge.ZodRecord,...qe(n)})}}class wf extends et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.map)return ye(r,{code:me.invalid_type,expected:Te.map,received:r.parsedType}),Ke;const u=this._def.keyType,o=this._def.valueType,l=[...r.data.entries()].map(([d,f],h)=>({key:u._parse(new ri(r,d,r.path,[h,"key"])),value:o._parse(new ri(r,f,r.path,[h,"value"]))}));if(r.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of l){const h=await f.key,m=await f.value;if(h.status==="aborted"||m.status==="aborted")return Ke;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(h.value,m.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const f of l){const h=f.key,m=f.value;if(h.status==="aborted"||m.status==="aborted")return Ke;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(h.value,m.value)}return{status:n.value,value:d}}}}wf.create=(e,t,n)=>new wf({valueType:t,keyType:e,typeName:Ge.ZodMap,...qe(n)});class Ha extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.set)return ye(r,{code:me.invalid_type,expected:Te.set,received:r.parsedType}),Ke;const u=this._def;u.minSize!==null&&r.data.size<u.minSize.value&&(ye(r,{code:me.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),n.dirty()),u.maxSize!==null&&r.data.size>u.maxSize.value&&(ye(r,{code:me.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),n.dirty());const o=this._def.valueType;function l(f){const h=new Set;for(const m of f){if(m.status==="aborted")return Ke;m.status==="dirty"&&n.dirty(),h.add(m.value)}return{status:n.value,value:h}}const d=[...r.data.values()].map((f,h)=>o._parse(new ri(r,f,r.path,h)));return r.common.async?Promise.all(d).then(f=>l(f)):l(d)}min(t,n){return new Ha({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new Ha({...this._def,maxSize:{value:t,message:Oe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ha.create=(e,t)=>new Ha({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...qe(t)});class Ys extends et{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Te.function)return ye(n,{code:me.invalid_type,expected:Te.function,received:n.parsedType}),Ke;function r(d,f){return Bf({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xf(),eo].filter(h=>!!h),issueData:{code:me.invalid_arguments,argumentsError:f}})}function u(d,f){return Bf({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xf(),eo].filter(h=>!!h),issueData:{code:me.invalid_return_type,returnTypeError:f}})}const o={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof no){const d=this;return Bn(async function(...f){const h=new Jn([]),m=await d._def.args.parseAsync(f,o).catch(_=>{throw h.addIssue(r(f,_)),h}),E=await Reflect.apply(l,this,m);return await d._def.returns._def.type.parseAsync(E,o).catch(_=>{throw h.addIssue(u(E,_)),h})})}else{const d=this;return Bn(function(...f){const h=d._def.args.safeParse(f,o);if(!h.success)throw new Jn([r(f,h.error)]);const m=Reflect.apply(l,this,h.data),E=d._def.returns.safeParse(m,o);if(!E.success)throw new Jn([u(m,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ys({...this._def,args:ii.create(t).rest(Ta.create())})}returns(t){return new Ys({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ys({args:t||ii.create([]).rest(Ta.create()),returns:n||Ta.create(),typeName:Ge.ZodFunction,...qe(r)})}}class _c extends et{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}_c.create=(e,t)=>new _c({getter:e,typeName:Ge.ZodLazy,...qe(t)});class Sc extends et{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ye(n,{received:n.data,code:me.invalid_literal,expected:this._def.value}),Ke}return{status:"valid",value:t.data}}get value(){return this._def.value}}Sc.create=(e,t)=>new Sc({value:e,typeName:Ge.ZodLiteral,...qe(t)});function SD(e,t){return new Du({values:e,typeName:Ge.ZodEnum,...qe(t)})}class Du extends et{constructor(){super(...arguments),Gl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ye(n,{expected:dt.joinValues(r),received:n.parsedType,code:me.invalid_type}),Ke}if(Ff(this,Gl)||pD(this,Gl,new Set(this._def.values)),!Ff(this,Gl).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ye(n,{received:n.data,code:me.invalid_enum_value,options:r}),Ke}return Bn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Du.create(t,{...this._def,...n})}exclude(t,n=this._def){return Du.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Gl=new WeakMap;Du.create=SD;class Nc extends et{constructor(){super(...arguments),Vl.set(this,void 0)}_parse(t){const n=dt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Te.string&&r.parsedType!==Te.number){const u=dt.objectValues(n);return ye(r,{expected:dt.joinValues(u),received:r.parsedType,code:me.invalid_type}),Ke}if(Ff(this,Vl)||pD(this,Vl,new Set(dt.getValidEnumValues(this._def.values))),!Ff(this,Vl).has(t.data)){const u=dt.objectValues(n);return ye(r,{received:r.data,code:me.invalid_enum_value,options:u}),Ke}return Bn(t.data)}get enum(){return this._def.values}}Vl=new WeakMap;Nc.create=(e,t)=>new Nc({values:e,typeName:Ge.ZodNativeEnum,...qe(t)});class no extends et{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Te.promise&&n.common.async===!1)return ye(n,{code:me.invalid_type,expected:Te.promise,received:n.parsedType}),Ke;const r=n.parsedType===Te.promise?n.data:Promise.resolve(n.data);return Bn(r.then(u=>this._def.type.parseAsync(u,{path:n.path,errorMap:n.common.contextualErrorMap})))}}no.create=(e,t)=>new no({type:e,typeName:Ge.ZodPromise,...qe(t)});class wr extends et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),u=this._def.effect||null,o={addIssue:l=>{ye(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),u.type==="preprocess"){const l=u.transform(r.data,o);if(r.common.async)return Promise.resolve(l).then(async d=>{if(n.value==="aborted")return Ke;const f=await this._def.schema._parseAsync({data:d,path:r.path,parent:r});return f.status==="aborted"?Ke:f.status==="dirty"||n.value==="dirty"?Ms(f.value):f});{if(n.value==="aborted")return Ke;const d=this._def.schema._parseSync({data:l,path:r.path,parent:r});return d.status==="aborted"?Ke:d.status==="dirty"||n.value==="dirty"?Ms(d.value):d}}if(u.type==="refinement"){const l=d=>{const f=u.refinement(d,o);if(r.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return d.status==="aborted"?Ke:(d.status==="dirty"&&n.dirty(),l(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(d=>d.status==="aborted"?Ke:(d.status==="dirty"&&n.dirty(),l(d.value).then(()=>({status:n.value,value:d.value}))))}if(u.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ma(l))return l;const d=u.transform(l.value,o);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Ma(l)?Promise.resolve(u.transform(l.value,o)).then(d=>({status:n.value,value:d})):l);dt.assertNever(u)}}wr.create=(e,t,n)=>new wr({schema:e,typeName:Ge.ZodEffects,effect:t,...qe(n)});wr.createWithPreprocess=(e,t,n)=>new wr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...qe(n)});class Qr extends et{_parse(t){return this._getType(t)===Te.undefined?Bn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qr.create=(e,t)=>new Qr({innerType:e,typeName:Ge.ZodOptional,...qe(t)});class bu extends et{_parse(t){return this._getType(t)===Te.null?Bn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bu.create=(e,t)=>new bu({innerType:e,typeName:Ge.ZodNullable,...qe(t)});class Ic extends et{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Te.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ic.create=(e,t)=>new Ic({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...qe(t)});class yc extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},u=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return fc(u)?u.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Jn(r.common.issues)},input:r.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Jn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}yc.create=(e,t)=>new yc({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...qe(t)});class Mf extends et{_parse(t){if(this._getType(t)!==Te.nan){const r=this._getOrReturnCtx(t);return ye(r,{code:me.invalid_type,expected:Te.nan,received:r.parsedType}),Ke}return{status:"valid",value:t.data}}}Mf.create=e=>new Mf({typeName:Ge.ZodNaN,...qe(e)});const Zj=Symbol("zod_brand");class V4 extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class nd extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ke:o.status==="dirty"?(n.dirty(),Ms(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const u=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Ke:u.status==="dirty"?(n.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:r.path,parent:r})}}static create(t,n){return new nd({in:t,out:n,typeName:Ge.ZodPipeline})}}class Cc extends et{_parse(t){const n=this._def.innerType._parse(t),r=u=>(Ma(u)&&(u.value=Object.freeze(u.value)),u);return fc(n)?n.then(u=>r(u)):r(n)}unwrap(){return this._def.innerType}}Cc.create=(e,t)=>new Cc({innerType:e,typeName:Ge.ZodReadonly,...qe(t)});function lC(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function ND(e,t={},n){return e?to.create().superRefine((r,u)=>{var o,l;const d=e(r);if(d instanceof Promise)return d.then(f=>{var h,m;if(!f){const E=lC(t,r),g=(m=(h=E.fatal)!==null&&h!==void 0?h:n)!==null&&m!==void 0?m:!0;u.addIssue({code:"custom",...E,fatal:g})}});if(!d){const f=lC(t,r),h=(l=(o=f.fatal)!==null&&o!==void 0?o:n)!==null&&l!==void 0?l:!0;u.addIssue({code:"custom",...f,fatal:h})}}):to.create()}const Wj={object:Tt.lazycreate};var Ge;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ge||(Ge={}));const qj=(e,t={message:`Input not instance of ${e.name}`})=>ND(n=>n instanceof e,t),ID=Br.create,yD=Ru.create,Xj=Mf.create,Qj=Tu.create,CD=hc.create,Jj=Pa.create,e7=Of.create,t7=Ac.create,n7=mc.create,r7=to.create,i7=Ta.create,u7=Hi.create,a7=Lf.create,s7=Fr.create,o7=Tt.create,l7=Tt.strictCreate,c7=pc.create,d7=Lh.create,f7=Ec.create,h7=ii.create,A7=gc.create,m7=wf.create,p7=Ha.create,E7=Ys.create,g7=_c.create,_7=Sc.create,S7=Du.create,N7=Nc.create,I7=no.create,cC=wr.create,y7=Qr.create,C7=bu.create,v7=wr.createWithPreprocess,R7=nd.create,T7=()=>ID().optional(),D7=()=>yD().optional(),b7=()=>CD().optional(),x7={string:e=>Br.create({...e,coerce:!0}),number:e=>Ru.create({...e,coerce:!0}),boolean:e=>hc.create({...e,coerce:!0}),bigint:e=>Tu.create({...e,coerce:!0}),date:e=>Pa.create({...e,coerce:!0})},B7=Ke;var Au=Object.freeze({__proto__:null,defaultErrorMap:eo,setErrorMap:vj,getErrorMap:xf,makeIssue:Bf,EMPTY_PATH:Rj,addIssueToContext:ye,ParseStatus:vn,INVALID:Ke,DIRTY:Ms,OK:Bn,isAborted:tg,isDirty:ng,isValid:Ma,isAsync:fc,get util(){return dt},get objectUtil(){return eg},ZodParsedType:Te,getParsedType:xi,ZodType:et,datetimeRegex:_D,ZodString:Br,ZodNumber:Ru,ZodBigInt:Tu,ZodBoolean:hc,ZodDate:Pa,ZodSymbol:Of,ZodUndefined:Ac,ZodNull:mc,ZodAny:to,ZodUnknown:Ta,ZodNever:Hi,ZodVoid:Lf,ZodArray:Fr,ZodObject:Tt,ZodUnion:pc,ZodDiscriminatedUnion:Lh,ZodIntersection:Ec,ZodTuple:ii,ZodRecord:gc,ZodMap:wf,ZodSet:Ha,ZodFunction:Ys,ZodLazy:_c,ZodLiteral:Sc,ZodEnum:Du,ZodNativeEnum:Nc,ZodPromise:no,ZodEffects:wr,ZodTransformer:wr,ZodOptional:Qr,ZodNullable:bu,ZodDefault:Ic,ZodCatch:yc,ZodNaN:Mf,BRAND:Zj,ZodBranded:V4,ZodPipeline:nd,ZodReadonly:Cc,custom:ND,Schema:et,ZodSchema:et,late:Wj,get ZodFirstPartyTypeKind(){return Ge},coerce:x7,any:r7,array:s7,bigint:Qj,boolean:CD,date:Jj,discriminatedUnion:d7,effect:cC,enum:S7,function:E7,instanceof:qj,intersection:f7,lazy:g7,literal:_7,map:m7,nan:Xj,nativeEnum:N7,never:u7,null:n7,nullable:C7,number:yD,object:o7,oboolean:b7,onumber:D7,optional:y7,ostring:T7,pipeline:R7,preprocess:v7,promise:I7,record:A7,set:p7,strictObject:l7,string:ID,symbol:e7,transformer:cC,tuple:h7,undefined:t7,union:c7,unknown:i7,void:a7,NEVER:B7,ZodIssueCode:me,quotelessJson:Cj,ZodError:Jn});const vD=y.createContext({});function F7(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const j4=y.createContext(null),RD=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function O7(e=!0){const t=y.useContext(j4);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:u}=t,o=y.useId();y.useEffect(()=>{e&&u(o)},[e]);const l=y.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const z4=typeof window<"u",L7=z4?y.useLayoutEffect:y.useEffect,Xt=e=>e;let wh=Xt;function Mh(e){let t;return()=>(t===void 0&&(t=e()),t)}const xu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},An=e=>e*1e3,mn=e=>e/1e3,w7={useManualTiming:!1};function M7(e){let t=new Set,n=new Set,r=!1,u=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function d(h){o.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,m=!1,E=!1)=>{const _=E&&r?t:n;return m&&o.add(h),_.has(h)||_.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,r){u=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,u&&(u=!1,f.process(h))}};return f}const P0=["read","resolveKeyframes","update","preRender","render","postRender"],P7=40;function TD(e,t){let n=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=P0.reduce((R,T)=>(R[T]=M7(o),R),{}),{read:d,resolveKeyframes:f,update:h,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,u.delta=r?1e3/60:Math.max(Math.min(R-u.timestamp,P7),1),u.timestamp=R,u.isProcessing=!0,d.process(u),f.process(u),h.process(u),m.process(u),E.process(u),g.process(u),u.isProcessing=!1,n&&t&&(r=!1,e(_))},S=()=>{n=!0,r=!0,u.isProcessing||e(_)};return{schedule:P0.reduce((R,T)=>{const b=l[T];return R[T]=(L,x=!1,B=!1)=>(n||S(),b.schedule(L,x,B)),R},{}),cancel:R=>{for(let T=0;T<P0.length;T++)l[P0[T]].cancel(R)},state:u,steps:l}}const{schedule:yt,cancel:Bu,state:hn,steps:Zp}=TD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0),DD=y.createContext({strict:!1}),dC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ro={};for(const e in dC)ro[e]={isEnabled:t=>dC[e].some(n=>!!t[n])};function H7(e){for(const t in e)ro[t]={...ro[t],...e[t]}}const U7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Pf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||U7.has(e)}let bD=e=>!Pf(e);function k7(e){e&&(bD=t=>t.startsWith("on")?!Pf(t):e(t))}try{k7(require("@emotion/is-prop-valid").default)}catch{}function G7(e,t,n){const r={};for(const u in e)u==="values"&&typeof e.values=="object"||(bD(u)||n===!0&&Pf(u)||!t&&!Pf(u)||e.draggable&&u.startsWith("onDrag"))&&(r[u]=e[u]);return r}function V7(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,u)=>u==="create"?e:(t.has(u)||t.set(u,e(u)),t.get(u))})}const Ph=y.createContext({});function vc(e){return typeof e=="string"||Array.isArray(e)}function Hh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const K4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$4=["initial",...K4];function Uh(e){return Hh(e.animate)||$4.some(t=>vc(e[t]))}function xD(e){return!!(Uh(e)||e.variants)}function j7(e,t){if(Uh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vc(n)?n:void 0,animate:vc(r)?r:void 0}}return e.inherit!==!1?t:{}}function z7(e){const{initial:t,animate:n}=j7(e,y.useContext(Ph));return y.useMemo(()=>({initial:t,animate:n}),[fC(t),fC(n)])}function fC(e){return Array.isArray(e)?e.join(" "):e}const K7=Symbol.for("motionComponentSymbol");function Ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $7(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ps(n)&&(n.current=r))},[t])}const Y4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Y7="framerAppearId",BD="data-"+Y4(Y7),{schedule:Z4}=TD(queueMicrotask,!1),FD=y.createContext({});function Z7(e,t,n,r,u){var o,l;const{visualElement:d}=y.useContext(Ph),f=y.useContext(DD),h=y.useContext(j4),m=y.useContext(RD).reducedMotion,E=y.useRef(null);r=r||f.renderer,!E.current&&r&&(E.current=r(e,{visualState:t,parent:d,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const g=E.current,_=y.useContext(FD);g&&!g.projection&&u&&(g.type==="html"||g.type==="svg")&&W7(E.current,n,u,_);const S=y.useRef(!1);y.useInsertionEffect(()=>{g&&S.current&&g.update(n,h)});const C=n[BD],v=y.useRef(!!C&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,C))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,C)));return L7(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Z4.render(g.render),v.current&&g.animationState&&g.animationState.animateChanges())}),y.useEffect(()=>{g&&(!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,C)}),v.current=!1))}),g}function W7(e,t,n,r){const{layoutId:u,layout:o,drag:l,dragConstraints:d,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:OD(e.parent)),e.projection.setOptions({layoutId:u,layout:o,alwaysMeasureLayout:!!l||d&&Ps(d),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:h})}function OD(e){if(e)return e.options.allowProjection!==!1?e.projection:OD(e.parent)}function q7({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:u}){var o,l;e&&H7(e);function d(h,m){let E;const g={...y.useContext(RD),...h,layoutId:X7(h)},{isStatic:_}=g,S=z7(h),C=r(h,_);if(!_&&z4){Q7();const v=J7(g);E=v.MeasureLayout,S.visualElement=Z7(u,C,g,t,v.ProjectionNode)}return N.jsxs(Ph.Provider,{value:S,children:[E&&S.visualElement?N.jsx(E,{visualElement:S.visualElement,...g}):null,n(u,h,$7(C,S.visualElement,m),C,_,S.visualElement)]})}d.displayName=`motion.${typeof u=="string"?u:`create(${(l=(o=u.displayName)!==null&&o!==void 0?o:u.name)!==null&&l!==void 0?l:""})`}`;const f=y.forwardRef(d);return f[K7]=u,f}function X7({layoutId:e}){const t=y.useContext(vD).id;return t&&e!==void 0?t+"-"+e:e}function Q7(e,t){y.useContext(DD).strict}function J7(e){const{drag:t,layout:n}=ro;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const e6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function W4(e){return typeof e!="string"||e.includes("-")?!1:!!(e6.indexOf(e)>-1||/[A-Z]/u.test(e))}function hC(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function q4(e,t,n,r){if(typeof t=="function"){const[u,o]=hC(r);t=t(n!==void 0?n:e.custom,u,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[u,o]=hC(r);t=t(n!==void 0?n:e.custom,u,o)}return t}const ig=e=>Array.isArray(e),t6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n6=e=>ig(e)?e[e.length-1]||0:e,yn=e=>!!(e&&e.getVelocity);function of(e){const t=yn(e)?e.get():e;return t6(t)?t.toValue():t}function r6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,u,o){const l={latestValues:i6(r,u,o,e),renderState:t()};return n&&(l.onMount=d=>n({props:r,current:d,...l}),l.onUpdate=d=>n(d)),l}const LD=e=>(t,n)=>{const r=y.useContext(Ph),u=y.useContext(j4),o=()=>r6(e,t,r,u);return n?o():F7(o)};function i6(e,t,n,r){const u={},o=r(e,{});for(const g in o)u[g]=of(o[g]);let{initial:l,animate:d}=e;const f=Uh(e),h=xD(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const E=m?d:l;if(E&&typeof E!="boolean"&&!Hh(E)){const g=Array.isArray(E)?E:[E];for(let _=0;_<g.length;_++){const S=q4(e,g[_]);if(S){const{transitionEnd:C,transition:v,...R}=S;for(const T in R){let b=R[T];if(Array.isArray(b)){const L=m?b.length-1:0;b=b[L]}b!==null&&(u[T]=b)}for(const T in C)u[T]=C[T]}}}return u}const _o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ja=new Set(_o),wD=e=>t=>typeof t=="string"&&t.startsWith(e),MD=wD("--"),u6=wD("var(--"),X4=e=>u6(e)?a6.test(e.split("/*")[0].trim()):!1,a6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PD=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ui=(e,t,n)=>n>t?t:n<e?e:n,So={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Rc={...So,transform:e=>Ui(0,1,e)},H0={...So,default:1},rd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gu=rd("deg"),Jr=rd("%"),Ue=rd("px"),s6=rd("vh"),o6=rd("vw"),AC={...Jr,parse:e=>Jr.parse(e)/100,transform:e=>Jr.transform(e*100)},l6={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,backgroundPositionX:Ue,backgroundPositionY:Ue},c6={rotate:gu,rotateX:gu,rotateY:gu,rotateZ:gu,scale:H0,scaleX:H0,scaleY:H0,scaleZ:H0,skew:gu,skewX:gu,skewY:gu,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:Rc,originX:AC,originY:AC,originZ:Ue},mC={...So,transform:Math.round},Q4={...l6,...c6,zIndex:mC,size:Ue,fillOpacity:Rc,strokeOpacity:Rc,numOctaves:mC},d6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},f6=_o.length;function h6(e,t,n){let r="",u=!0;for(let o=0;o<f6;o++){const l=_o[o],d=e[l];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(l.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const h=PD(d,Q4[l]);if(!f){u=!1;const m=d6[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,u?"":r):u&&(r="none"),r}function J4(e,t,n){const{style:r,vars:u,transformOrigin:o}=e;let l=!1,d=!1;for(const f in t){const h=t[f];if(ja.has(f)){l=!0;continue}else if(MD(f)){u[f]=h;continue}else{const m=PD(h,Q4[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=h6(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const A6={offset:"stroke-dashoffset",array:"stroke-dasharray"},m6={offset:"strokeDashoffset",array:"strokeDasharray"};function p6(e,t,n=1,r=0,u=!0){e.pathLength=1;const o=u?A6:m6;e[o.offset]=Ue.transform(-r);const l=Ue.transform(t),d=Ue.transform(n);e[o.array]=`${l} ${d}`}function pC(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function E6(e,t,n){const r=pC(t,e.x,e.width),u=pC(n,e.y,e.height);return`${r} ${u}`}function e_(e,{attrX:t,attrY:n,attrScale:r,originX:u,originY:o,pathLength:l,pathSpacing:d=1,pathOffset:f=0,...h},m,E){if(J4(e,h,E),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:_,dimensions:S}=e;g.transform&&(S&&(_.transform=g.transform),delete g.transform),S&&(u!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=E6(S,u!==void 0?u:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),l!==void 0&&p6(g,l,d,f,!1)}const t_=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),HD=()=>({...t_(),attrs:{}}),n_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function UD(e,{style:t,vars:n},r,u){Object.assign(e.style,t,u&&u.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const kD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function GD(e,t,n,r){UD(e,t,void 0,r);for(const u in t.attrs)e.setAttribute(kD.has(u)?u:Y4(u),t.attrs[u])}const Hf={};function g6(e){Object.assign(Hf,e)}function VD(e,{layout:t,layoutId:n}){return ja.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hf[e]||e==="opacity")}function r_(e,t,n){var r;const{style:u}=e,o={};for(const l in u)(yn(u[l])||t.style&&yn(t.style[l])||VD(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=u[l]);return o}function jD(e,t,n){const r=r_(e,t,n);for(const u in e)if(yn(e[u])||yn(t[u])){const o=_o.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[o]=e[u]}return r}function _6(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const EC=["x","y","width","height","cx","cy","r"],S6={useVisualState:LD({scrapeMotionValuesFromProps:jD,createRenderState:HD,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:u})=>{if(!n)return;let o=!!e.drag;if(!o){for(const d in u)if(ja.has(d)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let d=0;d<EC.length;d++){const f=EC[d];e[f]!==t[f]&&(l=!0)}l&&yt.read(()=>{_6(n,r),yt.render(()=>{e_(r,u,n_(n.tagName),e.transformTemplate),GD(n,r)})})}})},N6={useVisualState:LD({scrapeMotionValuesFromProps:r_,createRenderState:t_})};function zD(e,t,n){for(const r in t)!yn(t[r])&&!VD(r,n)&&(e[r]=t[r])}function I6({transformTemplate:e},t){return y.useMemo(()=>{const n=t_();return J4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function y6(e,t){const n=e.style||{},r={};return zD(r,n,e),Object.assign(r,I6(e,t)),r}function C6(e,t){const n={},r=y6(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function v6(e,t,n,r){const u=y.useMemo(()=>{const o=HD();return e_(o,t,n_(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};zD(o,e.style,e),u.style={...o,...u.style}}return u}function R6(e=!1){return(n,r,u,{latestValues:o},l)=>{const f=(W4(n)?v6:C6)(r,o,l,n),h=G7(r,typeof n=="string",e),m=n!==y.Fragment?{...h,...f,ref:u}:{},{children:E}=r,g=y.useMemo(()=>yn(E)?E.get():E,[E]);return y.createElement(n,{...m,children:g})}}function T6(e,t){return function(r,{forwardMotionProps:u}={forwardMotionProps:!1}){const l={...W4(r)?S6:N6,preloadedFeatures:e,useRender:R6(u),createVisualElement:t,Component:r};return q7(l)}}function KD(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function kh(e,t,n){const r=e.getProps();return q4(r,t,n!==void 0?n:r.custom,e)}const D6=Mh(()=>window.ScrollTimeline!==void 0);class b6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(u=>{if(D6()&&u.attachTimeline)return u.attachTimeline(t);if(typeof n=="function")return n(u)});return()=>{r.forEach((u,o)=>{u&&u(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class $D extends b6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function id(e,t){return e?e[t]||e.default||e:void 0}const Uf=2e4;function Gh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Uf;)t+=n,r=e.next(t);return t>=Uf?1/0:t}function No(e){return typeof e=="function"}function kf(e,t){e.timeline=t,e.onfinish=null}const Vh=e=>Array.isArray(e)&&typeof e[0]=="number",x6={linearEasing:void 0};function B6(e,t){const n=Mh(e);return()=>{var r;return(r=x6[t])!==null&&r!==void 0?r:n()}}const Tc=B6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),i_=(e,t,n=10)=>{let r="";const u=Math.max(Math.round(t/n),2);for(let o=0;o<u;o++)r+=e(xu(0,u-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u_(e){return!!(typeof e=="function"&&Tc()||!e||typeof e=="string"&&(e in ug||Tc())||Vh(e)||Array.isArray(e)&&e.every(u_))}const jl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ug={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jl([0,.65,.55,1]),circOut:jl([.55,0,1,.45]),backIn:jl([.31,.01,.66,-.59]),backOut:jl([.33,1.53,.69,.99])};function a_(e,t){if(e)return typeof e=="function"&&Tc()?i_(e,t):Vh(e)?jl(e):Array.isArray(e)?e.map(n=>a_(n,t)||ug.easeOut):ug[e]}const br={x:!1,y:!1};function YD(){return br.x||br.y}function F6(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let u=document;const o=(r=void 0)!==null&&r!==void 0?r:u.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function ZD(e,t){const n=F6(e),r=new AbortController,u={passive:!0,...t,signal:r.signal};return[n,u,()=>r.abort()]}function gC(e){return t=>{t.pointerType==="touch"||YD()||e(t)}}function WD(e,t,n={}){const[r,u,o]=ZD(e,n),l=gC(d=>{const{target:f}=d,h=t(d);if(typeof h!="function"||!f)return;const m=gC(E=>{h(E),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,u)});return r.forEach(d=>{d.addEventListener("pointerenter",l,u)}),o}const qD=(e,t)=>t?e===t?!0:qD(e,t.parentElement):!1,s_=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,O6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function L6(e){return O6.has(e.tagName)||e.tabIndex!==-1}const zl=new WeakSet;function _C(e){return t=>{t.key==="Enter"&&e(t)}}function Wp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const w6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_C(()=>{if(zl.has(n))return;Wp(n,"down");const u=_C(()=>{Wp(n,"up")}),o=()=>Wp(n,"cancel");n.addEventListener("keyup",u,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function SC(e){return s_(e)&&!YD()}function XD(e,t,n={}){const[r,u,o]=ZD(e,n),l=d=>{const f=d.currentTarget;if(!SC(d)||zl.has(f))return;zl.add(f);const h=t(d),m=(_,S)=>{window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",g),!(!SC(_)||!zl.has(f))&&(zl.delete(f),typeof h=="function"&&h(_,{success:S}))},E=_=>{m(_,n.useGlobalTarget||qD(f,_.target))},g=_=>{m(_,!1)};window.addEventListener("pointerup",E,u),window.addEventListener("pointercancel",g,u)};return r.forEach(d=>{!L6(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",l,u),d.addEventListener("focus",h=>w6(h,u),u)}),o}function M6(e){return e==="x"||e==="y"?br[e]?null:(br[e]=!0,()=>{br[e]=!1}):br.x||br.y?null:(br.x=br.y=!0,()=>{br.x=br.y=!1})}const QD=new Set(["width","height","top","left","right","bottom",..._o]);let lf;function P6(){lf=void 0}const ei={now:()=>(lf===void 0&&ei.set(hn.isProcessing||w7.useManualTiming?hn.timestamp:performance.now()),lf),set:e=>{lf=e,queueMicrotask(P6)}};function o_(e,t){e.indexOf(t)===-1&&e.push(t)}function l_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let c_=class{constructor(){this.subscriptions=[]}add(t){return o_(this.subscriptions,t),()=>l_(this.subscriptions,t)}notify(t,n,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](t,n,r);else for(let o=0;o<u;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function JD(e,t){return t?e*(1e3/t):0}const NC=30,H6=e=>!isNaN(parseFloat(e));let U6=class{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,u=!0)=>{const o=ei.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ei.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=H6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new c_);const r=this.events[t].add(n);return t==="change"?()=>{r(),yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ei.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>NC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,NC);return JD(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Dc(e,t){return new U6(e,t)}function k6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dc(n))}function G6(e,t){const n=kh(e,t);let{transitionEnd:r={},transition:u={},...o}=n||{};o={...o,...r};for(const l in o){const d=n6(o[l]);k6(e,l,d)}}function V6(e){return!!(yn(e)&&e.add)}function ag(e,t){const n=e.getValue("willChange");if(V6(n))return n.add(t)}function eb(e){return e.props[BD]}const tb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,j6=1e-7,z6=12;function K6(e,t,n,r,u){let o,l,d=0;do l=t+(n-t)/2,o=tb(l,r,u)-e,o>0?n=l:t=l;while(Math.abs(o)>j6&&++d<z6);return l}function ud(e,t,n,r){if(e===t&&n===r)return Xt;const u=o=>K6(o,0,1,e,n);return o=>o===0||o===1?o:tb(u(o),t,r)}const nb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rb=e=>t=>1-e(1-t),ib=ud(.33,1.53,.69,.99),d_=rb(ib),ub=nb(d_),ab=e=>(e*=2)<1?.5*d_(e):.5*(2-Math.pow(2,-10*(e-1))),f_=e=>1-Math.sin(Math.acos(e)),sb=rb(f_),ob=nb(f_),lb=e=>/^0[^.\s]+$/u.test(e);function $6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lb(e):!0}const Jl=e=>Math.round(e*1e5)/1e5,h_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Y6(e){return e==null}const Z6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,A_=(e,t)=>n=>!!(typeof n=="string"&&Z6.test(n)&&n.startsWith(e)||t&&!Y6(n)&&Object.prototype.hasOwnProperty.call(n,t)),cb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[u,o,l,d]=r.match(h_);return{[e]:parseFloat(u),[t]:parseFloat(o),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},W6=e=>Ui(0,255,e),qp={...So,transform:e=>Math.round(W6(e))},ya={test:A_("rgb","red"),parse:cb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qp.transform(e)+", "+qp.transform(t)+", "+qp.transform(n)+", "+Jl(Rc.transform(r))+")"};function q6(e){let t="",n="",r="",u="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),u=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),u=e.substring(4,5),t+=t,n+=n,r+=r,u+=u),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const sg={test:A_("#"),parse:q6,transform:ya.transform},Hs={test:A_("hsl","hue"),parse:cb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Jr.transform(Jl(t))+", "+Jr.transform(Jl(n))+", "+Jl(Rc.transform(r))+")"},Nn={test:e=>ya.test(e)||sg.test(e)||Hs.test(e),parse:e=>ya.test(e)?ya.parse(e):Hs.test(e)?Hs.parse(e):sg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ya.transform(e):Hs.transform(e)},X6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Q6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(h_))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(X6))===null||n===void 0?void 0:n.length)||0)>0}const db="number",fb="color",J6="var",ez="var(",IC="${}",tz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function bc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},u=[];let o=0;const d=t.replace(tz,f=>(Nn.test(f)?(r.color.push(o),u.push(fb),n.push(Nn.parse(f))):f.startsWith(ez)?(r.var.push(o),u.push(J6),n.push(f)):(r.number.push(o),u.push(db),n.push(parseFloat(f))),++o,IC)).split(IC);return{values:n,split:d,indexes:r,types:u}}function hb(e){return bc(e).values}function Ab(e){const{split:t,types:n}=bc(e),r=t.length;return u=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],u[l]!==void 0){const d=n[l];d===db?o+=Jl(u[l]):d===fb?o+=Nn.transform(u[l]):o+=u[l]}return o}}const nz=e=>typeof e=="number"?0:e;function rz(e){const t=hb(e);return Ab(e)(t.map(nz))}const Fu={test:Q6,parse:hb,createTransformer:Ab,getAnimatableNone:rz},iz=new Set(["brightness","contrast","saturate","opacity"]);function uz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(h_)||[];if(!r)return e;const u=n.replace(r,"");let o=iz.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+u+")"}const az=/\b([a-z-]*)\(.*?\)/gu,og={...Fu,getAnimatableNone:e=>{const t=e.match(az);return t?t.map(uz).join(" "):e}},sz={...Q4,color:Nn,backgroundColor:Nn,outlineColor:Nn,fill:Nn,stroke:Nn,borderColor:Nn,borderTopColor:Nn,borderRightColor:Nn,borderBottomColor:Nn,borderLeftColor:Nn,filter:og,WebkitFilter:og},m_=e=>sz[e];function mb(e,t){let n=m_(e);return n!==og&&(n=Fu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const oz=new Set(["auto","none","0"]);function lz(e,t,n){let r=0,u;for(;r<e.length&&!u;){const o=e[r];typeof o=="string"&&!oz.has(o)&&bc(o).values.length&&(u=e[r]),r++}if(u&&n)for(const o of t)e[o]=mb(n,u)}const yC=e=>e===So||e===Ue,CC=(e,t)=>parseFloat(e.split(", ")[t]),vC=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const u=r.match(/^matrix3d\((.+)\)$/u);if(u)return CC(u[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?CC(o[1],e):0}},cz=new Set(["x","y","z"]),dz=_o.filter(e=>!cz.has(e));function fz(e){const t=[];return dz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const io={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:vC(4,13),y:vC(5,14)};io.translateX=io.x;io.translateY=io.y;const Da=new Set;let lg=!1,cg=!1;function pb(){if(cg){const e=Array.from(Da).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const u=fz(r);u.length&&(n.set(r,u),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const u=n.get(r);u&&u.forEach(([o,l])=>{var d;(d=r.getValue(o))===null||d===void 0||d.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cg=!1,lg=!1,Da.forEach(e=>e.complete()),Da.clear()}function Eb(){Da.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cg=!0)})}function hz(){Eb(),pb()}let p_=class{constructor(t,n,r,u,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=u,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Da.add(this),lg||(lg=!0,yt.read(Eb),yt.resolveKeyframes(pb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:u}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=u==null?void 0:u.get(),d=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),u&&l===void 0&&u.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Da.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Da.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const gb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Az=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mz(e){const t=Az.exec(e);if(!t)return[,];const[,n,r,u]=t;return[`--${n??r}`,u]}function _b(e,t,n=1){const[r,u]=mz(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return gb(l)?parseFloat(l):l}return X4(u)?_b(u,t,n+1):u}const Sb=e=>t=>t.test(e),pz={test:e=>e==="auto",parse:e=>e},Nb=[So,Ue,Jr,gu,o6,s6,pz],RC=e=>Nb.find(Sb(e));let Ib=class extends p_{constructor(t,n,r,u,o){super(t,n,r,u,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),X4(h))){const m=_b(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!QD.has(r)||t.length!==2)return;const[u,o]=t,l=RC(u),d=RC(o);if(l!==d)if(yC(l)&&yC(d))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let u=0;u<t.length;u++)$6(t[u])&&r.push(u);r.length&&lz(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=io[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const u=n[n.length-1];u!==void 0&&t.getValue(r,u).jump(u,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:u}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=u.length-1,d=u[l];u[l]=io[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}};const TC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fu.test(e)||e==="0")&&!e.startsWith("url("));function Ez(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function gz(e,t,n,r){const u=e[0];if(u===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=TC(u,t),d=TC(o,t);return!l||!d?!1:Ez(e)||(n==="spring"||No(n))&&r}const _z=e=>e!==null;function jh(e,{repeat:t,repeatType:n="loop"},r){const u=e.filter(_z),o=t&&n!=="loop"&&t%2===1?0:u.length-1;return!o||r===void 0?u[o]:r}const Sz=40;let yb=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:u=0,repeatDelay:o=0,repeatType:l="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ei.now(),this.options={autoplay:t,delay:n,type:r,repeat:u,repeatDelay:o,repeatType:l,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Sz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hz(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ei.now(),this.hasAttemptedResolve=!0;const{name:r,type:u,velocity:o,delay:l,onComplete:d,onUpdate:f,isGenerator:h}=this.options;if(!h&&!gz(t,r,u,o))if(l)this.options.duration=0;else{f&&f(jh(t,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Dt=(e,t,n)=>e+(t-e)*n;function Xp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Nz({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let u=0,o=0,l=0;if(!t)u=o=l=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;u=Xp(f,d,e+1/3),o=Xp(f,d,e),l=Xp(f,d,e-1/3)}return{red:Math.round(u*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function Gf(e,t){return n=>n>0?t:e}const Qp=(e,t,n)=>{const r=e*e,u=n*(t*t-r)+r;return u<0?0:Math.sqrt(u)},Iz=[sg,ya,Hs],yz=e=>Iz.find(t=>t.test(e));function DC(e){const t=yz(e);if(!t)return!1;let n=t.parse(e);return t===Hs&&(n=Nz(n)),n}const bC=(e,t)=>{const n=DC(e),r=DC(t);if(!n||!r)return Gf(e,t);const u={...n};return o=>(u.red=Qp(n.red,r.red,o),u.green=Qp(n.green,r.green,o),u.blue=Qp(n.blue,r.blue,o),u.alpha=Dt(n.alpha,r.alpha,o),ya.transform(u))},Cz=(e,t)=>n=>t(e(n)),ad=(...e)=>e.reduce(Cz),dg=new Set(["none","hidden"]);function vz(e,t){return dg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Rz(e,t){return n=>Dt(e,t,n)}function E_(e){return typeof e=="number"?Rz:typeof e=="string"?X4(e)?Gf:Nn.test(e)?bC:bz:Array.isArray(e)?Cb:typeof e=="object"?Nn.test(e)?bC:Tz:Gf}function Cb(e,t){const n=[...e],r=n.length,u=e.map((o,l)=>E_(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=u[l](o);return n}}function Tz(e,t){const n={...e,...t},r={};for(const u in n)e[u]!==void 0&&t[u]!==void 0&&(r[u]=E_(e[u])(e[u],t[u]));return u=>{for(const o in r)n[o]=r[o](u);return n}}function Dz(e,t){var n;const r=[],u={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],d=e.indexes[l][u[l]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[o]=f,u[l]++}return r}const bz=(e,t)=>{const n=Fu.createTransformer(t),r=bc(e),u=bc(t);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?dg.has(e)&&!u.values.length||dg.has(t)&&!r.values.length?vz(e,t):ad(Cb(Dz(r,u),u.values),n):Gf(e,t)};function vb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Dt(e,t,n):E_(e)(e,t)}const xz=5;function Rb(e,t,n){const r=Math.max(t-xz,0);return JD(n-e(r),t-r)}const Lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},xC=.001;function Bz({duration:e=Lt.duration,bounce:t=Lt.bounce,velocity:n=Lt.velocity,mass:r=Lt.mass}){let u,o,l=1-t;l=Ui(Lt.minDamping,Lt.maxDamping,l),e=Ui(Lt.minDuration,Lt.maxDuration,mn(e)),l<1?(u=h=>{const m=h*l,E=m*e,g=m-n,_=fg(h,l),S=Math.exp(-E);return xC-g/_*S},o=h=>{const E=h*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-E),C=fg(Math.pow(h,2),l);return(-u(h)+xC>0?-1:1)*((g-_)*S)/C}):(u=h=>{const m=Math.exp(-h*e),E=(h-n)*e+1;return-.001+m*E},o=h=>{const m=Math.exp(-h*e),E=(n-h)*(e*e);return m*E});const d=5/e,f=Oz(u,o,d);if(e=An(e),isNaN(f))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const Fz=12;function Oz(e,t,n){let r=n;for(let u=1;u<Fz;u++)r=r-e(r)/t(r);return r}function fg(e,t){return e*Math.sqrt(1-t*t)}const Lz=["duration","bounce"],wz=["stiffness","damping","mass"];function BC(e,t){return t.some(n=>e[n]!==void 0)}function Mz(e){let t={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...e};if(!BC(e,wz)&&BC(e,Lz))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),u=r*r,o=2*Ui(.05,1,1-(e.bounce||0))*Math.sqrt(u);t={...t,mass:Lt.mass,stiffness:u,damping:o}}else{const n=Bz(e);t={...t,...n,mass:Lt.mass},t.isResolvedFromDuration=!0}return t}function Tb(e=Lt.visualDuration,t=Lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:u}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=Mz({...n,velocity:-mn(n.velocity||0)}),S=g||0,C=h/(2*Math.sqrt(f*m)),v=l-o,R=mn(Math.sqrt(f/m)),T=Math.abs(v)<5;r||(r=T?Lt.restSpeed.granular:Lt.restSpeed.default),u||(u=T?Lt.restDelta.granular:Lt.restDelta.default);let b;if(C<1){const x=fg(R,C);b=B=>{const O=Math.exp(-C*R*B);return l-O*((S+C*R*v)/x*Math.sin(x*B)+v*Math.cos(x*B))}}else if(C===1)b=x=>l-Math.exp(-R*x)*(v+(S+R*v)*x);else{const x=R*Math.sqrt(C*C-1);b=B=>{const O=Math.exp(-C*R*B),H=Math.min(x*B,300);return l-O*((S+C*R*v)*Math.sinh(H)+x*v*Math.cosh(H))/x}}const L={calculatedDuration:_&&E||null,next:x=>{const B=b(x);if(_)d.done=x>=E;else{let O=0;C<1&&(O=x===0?An(S):Rb(b,x,B));const H=Math.abs(O)<=r,U=Math.abs(l-B)<=u;d.done=H&&U}return d.value=d.done?l:B,d},toString:()=>{const x=Math.min(Gh(L),Uf),B=i_(O=>L.next(x*O).value,x,30);return x+"ms "+B}};return L}function FC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:o=500,modifyTarget:l,min:d,max:f,restDelta:h=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=H=>d!==void 0&&H<d||f!==void 0&&H>f,S=H=>d===void 0?f:f===void 0||Math.abs(d-H)<Math.abs(f-H)?d:f;let C=n*t;const v=E+C,R=l===void 0?v:l(v);R!==v&&(C=R-E);const T=H=>-C*Math.exp(-H/r),b=H=>R+T(H),L=H=>{const U=T(H),G=b(H);g.done=Math.abs(U)<=h,g.value=g.done?R:G};let x,B;const O=H=>{_(g.value)&&(x=H,B=Tb({keyframes:[g.value,S(g.value)],velocity:Rb(b,H,g.value),damping:u,stiffness:o,restDelta:h,restSpeed:m}))};return O(0),{calculatedDuration:null,next:H=>{let U=!1;return!B&&x===void 0&&(U=!0,L(H),O(H)),x!==void 0&&H>=x?B.next(H-x):(!U&&L(H),g)}}}const Pz=ud(.42,0,1,1),Hz=ud(0,0,.58,1),Db=ud(.42,0,.58,1),Uz=e=>Array.isArray(e)&&typeof e[0]!="number",kz={linear:Xt,easeIn:Pz,easeInOut:Db,easeOut:Hz,circIn:f_,circInOut:ob,circOut:sb,backIn:d_,backInOut:ub,backOut:ib,anticipate:ab},OC=e=>{if(Vh(e)){wh(e.length===4);const[t,n,r,u]=e;return ud(t,n,r,u)}else if(typeof e=="string")return kz[e];return e};function Gz(e,t,n){const r=[],u=n||vb,o=e.length-1;for(let l=0;l<o;l++){let d=u(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Xt:t;d=ad(f,d)}r.push(d)}return r}function Vz(e,t,{clamp:n=!0,ease:r,mixer:u}={}){const o=e.length;if(wh(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=Gz(t,r,u),f=d.length,h=m=>{if(l&&m<e[0])return t[0];let E=0;if(f>1)for(;E<e.length-2&&!(m<e[E+1]);E++);const g=xu(e[E],e[E+1],m);return d[E](g)};return n?m=>h(Ui(e[0],e[o-1],m)):h}function jz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const u=xu(0,t,r);e.push(Dt(n,1,u))}}function zz(e){const t=[0];return jz(t,e.length-1),t}function Kz(e,t){return e.map(n=>n*t)}function $z(e,t){return e.map(()=>t||Db).splice(0,e.length-1)}function Vf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const u=Uz(r)?r.map(OC):OC(r),o={done:!1,value:t[0]},l=Kz(n&&n.length===t.length?n:zz(t),e),d=Vz(l,t,{ease:Array.isArray(u)?u:$z(t,u)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const Yz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>yt.update(t,!0),stop:()=>Bu(t),now:()=>hn.isProcessing?hn.timestamp:ei.now()}},Zz={decay:FC,inertia:FC,tween:Vf,keyframes:Vf,spring:Tb},Wz=e=>e/100;let g_=class extends yb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:u,keyframes:o}=this.options,l=(u==null?void 0:u.KeyframeResolver)||p_,d=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new l(o,d,n,r,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:o,velocity:l=0}=this.options,d=No(n)?n:Zz[n]||Vf;let f,h;d!==Vf&&typeof t[0]!="number"&&(f=ad(Wz,vb(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});o==="mirror"&&(h=d({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=Gh(m));const{calculatedDuration:E}=m,g=E+u,_=g*(r+1)-u;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:E,resolvedDuration:g,totalDuration:_}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:u,generator:o,mirroredGenerator:l,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:E}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:_,repeatType:S,repeatDelay:C,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const R=this.currentTime-g*(this.speed>=0?1:-1),T=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let b=this.currentTime,L=o;if(_){const H=Math.min(this.currentTime,m)/E;let U=Math.floor(H),G=H%1;!G&&H>=1&&(G=1),G===1&&U--,U=Math.min(U,_+1),!!(U%2)&&(S==="reverse"?(G=1-G,C&&(G-=C/E)):S==="mirror"&&(L=l)),b=Ui(0,1,G)*E}const x=T?{done:!1,value:f[0]}:L.next(b);d&&(x.value=d(x.value));let{done:B}=x;!T&&h!==null&&(B=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return O&&u!==void 0&&(x.value=jh(f,this.options,u)),v&&v(x.value),O&&this.finish(),x}get duration(){const{resolved:t}=this;return t?mn(t.calculatedDuration):0}get time(){return mn(this.currentTime)}set time(t){t=An(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Yz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const qz=new Set(["opacity","clipPath","filter","transform"]);function Xz(e,t,n,{delay:r=0,duration:u=300,repeat:o=0,repeatType:l="loop",ease:d="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=a_(d,u);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:u,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const Qz=Mh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),jf=10,Jz=2e4;function eK(e){return No(e.type)||e.type==="spring"||!u_(e.ease)}function tK(e,t){const n=new g_({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const u=[];let o=0;for(;!r.done&&o<Jz;)r=n.sample(o),u.push(r.value),o+=jf;return{times:void 0,keyframes:u,duration:o-jf,ease:"linear"}}const bb={anticipate:ab,backInOut:ub,circInOut:ob};function nK(e){return e in bb}let LC=class extends yb{constructor(t){super(t);const{name:n,motionValue:r,element:u,keyframes:o}=this.options;this.resolver=new Ib(o,(l,d)=>this.onKeyframesResolved(l,d),n,r,u),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:u,ease:o,type:l,motionValue:d,name:f,startTime:h}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof o=="string"&&Tc()&&nK(o)&&(o=bb[o]),eK(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...C}=this.options,v=tK(t,C);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,u=v.times,o=v.ease,l="keyframes"}const m=Xz(d.owner.current,f,t,{...this.options,duration:r,times:u,ease:o});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(kf(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;d.set(jh(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:u,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=An(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xt;const{animation:r}=n;kf(r,t)}return Xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:u,type:o,ease:l,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:E,element:g,..._}=this.options,S=new g_({..._,keyframes:r,duration:u,type:o,ease:l,times:d,isGenerator:!0}),C=An(this.time);h.setWithVelocity(S.sample(C-jf).value,S.sample(C).value,jf)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:u,repeatType:o,damping:l,type:d}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return Qz()&&r&&qz.has(r)&&!f&&!h&&!u&&o!=="mirror"&&l!==0&&d!=="inertia"}};const rK={type:"spring",stiffness:500,damping:25,restSpeed:10},iK=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),uK={type:"keyframes",duration:.8},aK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sK=(e,{keyframes:t})=>t.length>2?uK:ja.has(e)?e.startsWith("scale")?iK(t[1]):rK:aK;function oK({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:u,repeat:o,repeatType:l,repeatDelay:d,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const __=(e,t,n,r={},u,o)=>l=>{const d=id(r,e)||{},f=d.delay||r.delay||0;let{elapsed:h=0}=r;h=h-An(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:g=>{t.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{l(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:u};oK(d)||(m={...m,...sK(e,m)}),m.duration&&(m.duration=An(m.duration)),m.repeatDelay&&(m.repeatDelay=An(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let E=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(E=!0)),E&&!o&&t.get()!==void 0){const g=jh(m.keyframes,d);if(g!==void 0)return yt.update(()=>{m.onUpdate(g),m.onComplete()}),new $D([])}return!o&&LC.supports(m)?new LC(m):new g_(m)};function lK({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xb(e,t,{delay:n=0,transitionOverride:r,type:u}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(l=r);const h=[],m=u&&e.animationState&&e.animationState.getState()[u];for(const E in f){const g=e.getValue(E,(o=e.latestValues[E])!==null&&o!==void 0?o:null),_=f[E];if(_===void 0||m&&lK(m,E))continue;const S={delay:n,...id(l||{},E)};let C=!1;if(window.MotionHandoffAnimation){const R=eb(e);if(R){const T=window.MotionHandoffAnimation(R,E,yt);T!==null&&(S.startTime=T,C=!0)}}ag(e,E),g.start(__(E,g,_,e.shouldReduceMotion&&QD.has(E)?{type:!1}:S,e,C));const v=g.animation;v&&h.push(v)}return d&&Promise.all(h).then(()=>{yt.update(()=>{d&&G6(e,d)})}),h}function hg(e,t,n={}){var r;const u=kh(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=u||{};n.transitionOverride&&(o=n.transitionOverride);const l=u?()=>Promise.all(xb(e,u,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return cK(e,t,m+h,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[l,d]:[d,l];return h().then(()=>m())}else return Promise.all([l(),d(n.delay)])}function cK(e,t,n=0,r=0,u=1,o){const l=[],d=(e.variantChildren.size-1)*r,f=u===1?(h=0)=>h*r:(h=0)=>d-h*r;return Array.from(e.variantChildren).sort(dK).forEach((h,m)=>{h.notify("AnimationStart",t),l.push(hg(h,t,{...o,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function dK(e,t){return e.sortNodePosition(t)}function fK(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const u=t.map(o=>hg(e,o,n));r=Promise.all(u)}else if(typeof t=="string")r=hg(e,t,n);else{const u=typeof t=="function"?kh(e,t,n.custom):t;r=Promise.all(xb(e,u,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const hK=$4.length;function Bb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Bb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<hK;n++){const r=$4[n],u=e.props[r];(vc(u)||u===!1)&&(t[r]=u)}return t}const AK=[...K4].reverse(),mK=K4.length;function pK(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fK(e,n,r)))}function EK(e){let t=pK(e),n=wC(),r=!0;const u=f=>(h,m)=>{var E;const g=kh(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:S,...C}=g;h={...h,...C,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=Bb(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<mK;v++){const R=AK[v],T=n[R],b=h[R]!==void 0?h[R]:m[R],L=vc(b),x=R===f?T.isActive:null;x===!1&&(S=v);let B=b===m[R]&&b!==h[R]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),T.protectedKeys={..._},!T.isActive&&x===null||!b&&!T.prevProp||Hh(b)||typeof b=="boolean")continue;const O=gK(T.prevProp,b);let H=O||R===f&&T.isActive&&!B&&L||v>S&&L,U=!1;const G=Array.isArray(b)?b:[b];let fe=G.reduce(u(R),{});x===!1&&(fe={});const{prevResolvedValues:ae={}}=T,ce={...ae,...fe},Z=ee=>{H=!0,g.has(ee)&&(U=!0,g.delete(ee)),T.needsAnimating[ee]=!0;const Q=e.getValue(ee);Q&&(Q.liveStyle=!1)};for(const ee in ce){const Q=fe[ee],Ae=ae[ee];if(_.hasOwnProperty(ee))continue;let P=!1;ig(Q)&&ig(Ae)?P=!KD(Q,Ae):P=Q!==Ae,P?Q!=null?Z(ee):g.add(ee):Q!==void 0&&g.has(ee)?Z(ee):T.protectedKeys[ee]=!0}T.prevProp=b,T.prevResolvedValues=fe,T.isActive&&(_={..._,...fe}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(B&&O)||U)&&E.push(...G.map(ee=>({animation:ee,options:{type:R}})))}if(g.size){const v={};g.forEach(R=>{const T=e.getBaseTarget(R),b=e.getValue(R);b&&(b.liveStyle=!0),v[R]=T??null}),E.push({animation:v})}let C=!!E.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(E):Promise.resolve()}function d(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,h)}),n[f].isActive=h;const E=l(f);for(const g in n)n[g].protectedKeys={};return E}return{animateChanges:l,setActive:d,setAnimateFunction:o,getState:()=>n,reset:()=>{n=wC(),r=!0}}}function gK(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!KD(t,e):!1}function ma(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wC(){return{animate:ma(!0),whileInView:ma(),whileHover:ma(),whileTap:ma(),whileDrag:ma(),whileFocus:ma(),exit:ma()}}let Gu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},_K=class extends Gu{constructor(t){super(t),t.animationState||(t.animationState=EK(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Hh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},SK=0,NK=class extends Gu{constructor(){super(...arguments),this.id=SK++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const u=this.node.animationState.setActive("exit",!t);n&&!t&&u.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const IK={animation:{Feature:_K},exit:{Feature:NK}};function xc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function sd(e){return{point:{x:e.pageX,y:e.pageY}}}const yK=e=>t=>s_(t)&&e(t,sd(t));function ec(e,t,n,r){return xc(e,t,yK(n),r)}const MC=(e,t)=>Math.abs(e-t);function CK(e,t){const n=MC(e.x,t.x),r=MC(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fb{constructor(t,n,{transformPagePoint:r,contextWindow:u,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=eE(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,_=CK(E.offset,{x:0,y:0})>=3;if(!g&&!_)return;const{point:S}=E,{timestamp:C}=hn;this.history.push({...S,timestamp:C});const{onStart:v,onMove:R}=this.handlers;g||(v&&v(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,E)},this.handlePointerMove=(E,g)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=Jp(g,this.transformPagePoint),yt.update(this.updatePoint,!0)},this.handlePointerUp=(E,g)=>{this.end();const{onEnd:_,onSessionEnd:S,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=eE(E.type==="pointercancel"?this.lastMoveEventInfo:Jp(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,v),S&&S(E,v)},!s_(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=u||window;const l=sd(t),d=Jp(l,this.transformPagePoint),{point:f}=d,{timestamp:h}=hn;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,eE(d,this.history)),this.removeListeners=ad(ec(this.contextWindow,"pointermove",this.handlePointerMove),ec(this.contextWindow,"pointerup",this.handlePointerUp),ec(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Bu(this.updatePoint)}}function Jp(e,t){return t?{point:t(e.point)}:e}function PC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eE({point:e},t){return{point:e,delta:PC(e,Ob(t)),offset:PC(e,vK(t)),velocity:RK(t,.1)}}function vK(e){return e[0]}function Ob(e){return e[e.length-1]}function RK(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const u=Ob(e);for(;n>=0&&(r=e[n],!(u.timestamp-r.timestamp>An(t)));)n--;if(!r)return{x:0,y:0};const o=mn(u.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(u.x-r.x)/o,y:(u.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const Lb=1e-4,TK=1-Lb,DK=1+Lb,wb=.01,bK=0-wb,xK=0+wb;function tr(e){return e.max-e.min}function BK(e,t,n){return Math.abs(e-t)<=n}function HC(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=tr(n)/tr(t),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=TK&&e.scale<=DK||isNaN(e.scale))&&(e.scale=1),(e.translate>=bK&&e.translate<=xK||isNaN(e.translate))&&(e.translate=0)}function tc(e,t,n,r){HC(e.x,t.x,n.x,r?r.originX:void 0),HC(e.y,t.y,n.y,r?r.originY:void 0)}function UC(e,t,n){e.min=n.min+t.min,e.max=e.min+tr(t)}function FK(e,t,n){UC(e.x,t.x,n.x),UC(e.y,t.y,n.y)}function kC(e,t,n){e.min=t.min-n.min,e.max=e.min+tr(t)}function nc(e,t,n){kC(e.x,t.x,n.x),kC(e.y,t.y,n.y)}function OK(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Dt(n,e,r.max):Math.min(e,n)),e}function GC(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LK(e,{top:t,left:n,bottom:r,right:u}){return{x:GC(e.x,n,u),y:GC(e.y,t,r)}}function VC(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wK(e,t){return{x:VC(e.x,t.x),y:VC(e.y,t.y)}}function MK(e,t){let n=.5;const r=tr(e),u=tr(t);return u>r?n=xu(t.min,t.max-r,e.min):r>u&&(n=xu(e.min,e.max-u,t.min)),Ui(0,1,n)}function PK(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ag=.35;function HK(e=Ag){return e===!1?e=0:e===!0&&(e=Ag),{x:jC(e,"left","right"),y:jC(e,"top","bottom")}}function jC(e,t,n){return{min:zC(e,t),max:zC(e,n)}}function zC(e,t){return typeof e=="number"?e:e[t]||0}const KC=()=>({translate:0,scale:1,origin:0,originPoint:0}),Us=()=>({x:KC(),y:KC()}),$C=()=>({min:0,max:0}),Ut=()=>({x:$C(),y:$C()});function pr(e){return[e("x"),e("y")]}function Mb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function UK({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kK(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function tE(e){return e===void 0||e===1}function mg({scale:e,scaleX:t,scaleY:n}){return!tE(e)||!tE(t)||!tE(n)}function Ea(e){return mg(e)||Pb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Pb(e){return YC(e.x)||YC(e.y)}function YC(e){return e&&e!=="0%"}function zf(e,t,n){const r=e-n,u=t*r;return n+u}function ZC(e,t,n,r,u){return u!==void 0&&(e=zf(e,u,r)),zf(e,n,r)+t}function pg(e,t=0,n=1,r,u){e.min=ZC(e.min,t,n,r,u),e.max=ZC(e.max,t,n,r,u)}function Hb(e,{x:t,y:n}){pg(e.x,t.translate,t.scale,t.originPoint),pg(e.y,n.translate,n.scale,n.originPoint)}const WC=.999999999999,qC=1.0000000000001;function GK(e,t,n,r=!1){const u=n.length;if(!u)return;t.x=t.y=1;let o,l;for(let d=0;d<u;d++){o=n[d],l=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Gs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Hb(e,l)),r&&Ea(o.latestValues)&&Gs(e,o.latestValues))}t.x<qC&&t.x>WC&&(t.x=1),t.y<qC&&t.y>WC&&(t.y=1)}function ks(e,t){e.min=e.min+t,e.max=e.max+t}function XC(e,t,n,r,u=.5){const o=Dt(e.min,e.max,u);pg(e,t,n,o,r)}function Gs(e,t){XC(e.x,t.x,t.scaleX,t.scale,t.originX),XC(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ub(e,t){return Mb(kK(e.getBoundingClientRect(),t))}function VK(e,t,n){const r=Ub(e,n),{scroll:u}=t;return u&&(ks(r.x,u.offset.x),ks(r.y,u.offset.y)),r}const kb=({current:e})=>e?e.ownerDocument.defaultView:null,jK=new WeakMap;class zK{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ut(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const u=m=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(sd(m).point)},o=(m,E)=>{const{drag:g,dragPropagation:_,onDragStart:S}=this.getProps();if(g&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=M6(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pr(v=>{let R=this.getAxisMotionValue(v).get()||0;if(Jr.test(R)){const{projection:T}=this.visualElement;if(T&&T.layout){const b=T.layout.layoutBox[v];b&&(R=tr(b)*(parseFloat(R)/100))}}this.originPoint[v]=R}),S&&yt.postRender(()=>S(m,E)),ag(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},l=(m,E)=>{const{dragPropagation:g,dragDirectionLock:_,onDirectionLock:S,onDrag:C}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:v}=E;if(_&&this.currentDirection===null){this.currentDirection=KK(v),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",E.point,v),this.updateAxis("y",E.point,v),this.visualElement.render(),C&&C(m,E)},d=(m,E)=>this.stop(m,E),f=()=>pr(m=>{var E;return this.getAnimationState(m)==="paused"&&((E=this.getAxisMotionValue(m).animation)===null||E===void 0?void 0:E.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new Fb(t,{onSessionStart:u,onStart:o,onMove:l,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:kb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:u}=n;this.startAnimation(u);const{onDragEnd:o}=this.getProps();o&&yt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:u}=this.getProps();if(!r||!U0(t,u,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=OK(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&u?this.constraints=LK(u.layoutBox,n):this.constraints=!1,this.elastic=HK(r),o!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&pr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=PK(u.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ps(t))return!1;const r=t.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const o=VK(r,u.root,this.visualElement.getTransformPagePoint());let l=wK(u.layout.layoutBox,o);if(n){const d=n(UK(l));this.hasMutatedConstraints=!!d,d&&(l=Mb(d))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:u,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},h=pr(m=>{if(!U0(m,n,this.currentDirection))return;let E=f&&f[m]||{};l&&(E={min:0,max:0});const g=u?200:1e6,_=u?40:1e7,S={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...o,...E};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ag(this.visualElement,t),r.start(__(t,r,0,n,this.visualElement,!1))}stopAnimation(){pr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){pr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),u=r[n];return u||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){pr(n=>{const{drag:r}=this.getProps();if(!U0(n,r,this.currentDirection))return;const{projection:u}=this.visualElement,o=this.getAxisMotionValue(n);if(u&&u.layout){const{min:l,max:d}=u.layout.layoutBox[n];o.set(t[n]-Dt(l,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ps(n)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};pr(l=>{const d=this.getAxisMotionValue(l);if(d&&this.constraints!==!1){const f=d.get();u[l]=MK({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),pr(l=>{if(!U0(l,t,null))return;const d=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];d.set(Dt(f,h,u[l]))})}addListeners(){if(!this.visualElement.current)return;jK.set(this.visualElement,this);const t=this.visualElement.current,n=ec(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Ps(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,o=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),yt.read(r);const l=xc(window,"resize",()=>this.scalePositionWithinConstraints()),d=u.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(pr(m=>{const E=this.getAxisMotionValue(m);E&&(this.originPoint[m]+=f[m].translate,E.set(E.get()+f[m].translate))}),this.visualElement.render())});return()=>{l(),n(),o(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:o=!1,dragElastic:l=Ag,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:u,dragConstraints:o,dragElastic:l,dragMomentum:d}}}function U0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KK(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $K extends Gu{constructor(t){super(t),this.removeGroupControls=Xt,this.removeListeners=Xt,this.controls=new zK(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const QC=e=>(t,n)=>{e&&yt.postRender(()=>e(t,n))};class YK extends Gu{constructor(){super(...arguments),this.removePointerDownListener=Xt}onPointerDown(t){this.session=new Fb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:QC(t),onStart:QC(n),onMove:r,onEnd:(o,l)=>{delete this.session,u&&yt.postRender(()=>u(o,l))}}}mount(){this.removePointerDownListener=ec(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function JC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const n=JC(e,t.target.x),r=JC(e,t.target.y);return`${n}% ${r}%`}},ZK={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,u=Fu.parse(e);if(u.length>5)return r;const o=Fu.createTransformer(e),l=typeof u[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;u[0+l]/=d,u[1+l]/=f;const h=Dt(d,f,.5);return typeof u[2+l]=="number"&&(u[2+l]/=h),typeof u[3+l]=="number"&&(u[3+l]/=h),o(u)}};class WK extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:u}=this.props,{projection:o}=t;g6(qK),o&&(n.group&&n.group.add(o),r&&r.register&&u&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),cf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:u,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,u||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||yt.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Z4.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:u}=t;u&&(u.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Gb(e){const[t,n]=O7(),r=y.useContext(vD);return N.jsx(WK,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(FD),isPresent:t,safeToRemove:n})}const qK={borderRadius:{...wl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wl,borderTopRightRadius:wl,borderBottomLeftRadius:wl,borderBottomRightRadius:wl,boxShadow:ZK};function XK(e,t,n){const r=yn(e)?e:Dc(e);return r.start(__("",r,t,n)),r.animation}function QK(e){return e instanceof SVGElement&&e.tagName!=="svg"}const JK=(e,t)=>e.depth-t.depth;class e${constructor(){this.children=[],this.isDirty=!1}add(t){o_(this.children,t),this.isDirty=!0}remove(t){l_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(JK),this.isDirty=!1,this.children.forEach(t)}}function t$(e,t){const n=ei.now(),r=({timestamp:u})=>{const o=u-n;o>=t&&(Bu(r),e(o-t))};return yt.read(r,!0),()=>Bu(r)}const Vb=["TopLeft","TopRight","BottomLeft","BottomRight"],n$=Vb.length,ev=e=>typeof e=="string"?parseFloat(e):e,tv=e=>typeof e=="number"||Ue.test(e);function r$(e,t,n,r,u,o){u?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,i$(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,u$(r))):o&&(e.opacity=Dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<n$;l++){const d=`border${Vb[l]}Radius`;let f=nv(t,d),h=nv(n,d);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||tv(f)===tv(h)?(e[d]=Math.max(Dt(ev(f),ev(h),r),0),(Jr.test(h)||Jr.test(f))&&(e[d]+="%")):e[d]=h}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function nv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const i$=jb(0,.5,sb),u$=jb(.5,.95,Xt);function jb(e,t,n){return r=>r<e?0:r>t?1:n(xu(e,t,r))}function rv(e,t){e.min=t.min,e.max=t.max}function Ar(e,t){rv(e.x,t.x),rv(e.y,t.y)}function iv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uv(e,t,n,r,u){return e-=t,e=zf(e,1/n,r),u!==void 0&&(e=zf(e,1/u,r)),e}function a$(e,t=0,n=1,r=.5,u,o=e,l=e){if(Jr.test(t)&&(t=parseFloat(t),t=Dt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let d=Dt(o.min,o.max,r);e===o&&(d-=t),e.min=uv(e.min,t,n,d,u),e.max=uv(e.max,t,n,d,u)}function av(e,t,[n,r,u],o,l){a$(e,t[n],t[r],t[u],t.scale,o,l)}const s$=["x","scaleX","originX"],o$=["y","scaleY","originY"];function sv(e,t,n,r){av(e.x,t,s$,n?n.x:void 0,r?r.x:void 0),av(e.y,t,o$,n?n.y:void 0,r?r.y:void 0)}function ov(e){return e.translate===0&&e.scale===1}function zb(e){return ov(e.x)&&ov(e.y)}function lv(e,t){return e.min===t.min&&e.max===t.max}function l$(e,t){return lv(e.x,t.x)&&lv(e.y,t.y)}function cv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kb(e,t){return cv(e.x,t.x)&&cv(e.y,t.y)}function dv(e){return tr(e.x)/tr(e.y)}function fv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class c${constructor(){this.members=[]}add(t){o_(this.members,t),t.scheduleRender()}remove(t){if(l_(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(u=>t===u);if(n===0)return!1;let r;for(let u=n;u>=0;u--){const o=this.members[u];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:u}=t.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function d$(e,t,n){let r="";const u=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((u||o||l)&&(r=`translate3d(${u}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:E,rotateY:g,skewX:_,skewY:S}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),E&&(r+=`rotateX(${E}deg) `),g&&(r+=`rotateY(${g}deg) `),_&&(r+=`skewX(${_}deg) `),S&&(r+=`skewY(${S}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(r+=`scale(${d}, ${f})`),r||"none"}const ga={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Kl=typeof window<"u"&&window.MotionDebug!==void 0,nE=["","X","Y","Z"],f$={visibility:"hidden"},hv=1e3;let h$=0;function rE(e,t,n,r){const{latestValues:u}=t;u[e]&&(n[e]=u[e],t.setStaticValue(e,0),r&&(r[e]=0))}function $b(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:u,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",yt,!(u||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&$b(r)}function Yb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(l={},d=t==null?void 0:t()){this.id=h$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Kl&&(ga.totalNodes=ga.resolvedTargetDeltas=ga.recalculatedProjection=0),this.nodes.forEach(p$),this.nodes.forEach(N$),this.nodes.forEach(I$),this.nodes.forEach(E$),Kl&&window.MotionDebug.record(ga)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new e$)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new c_),this.eventHandlers.get(l).add(d)}notifyListeners(l,...d){const f=this.eventHandlers.get(l);f&&f.notify(...d)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=QK(l),this.instance=l;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(h||f)&&(this.isLayoutDirty=!0),e){let E;const g=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,E&&E(),E=t$(g,250),cf.hasAnimatedSinceResize&&(cf.hasAnimatedSinceResize=!1,this.nodes.forEach(mv))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:E,hasLayoutChanged:g,hasRelativeTargetChanged:_,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||m.getDefaultTransition()||T$,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=m.getProps(),T=!this.targetLayout||!Kb(this.targetLayout,S)||_,b=!g&&_;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||g&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(E,b);const L={...id(C,"layout"),onPlay:v,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else g||mv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Bu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(y$),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$b(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const E=this.path[m];E.shouldResetTransform=!0,E.updateScroll("snapshot"),E.options.layoutRoot&&E.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Av);return}this.isUpdating||this.nodes.forEach(_$),this.isUpdating=!1,this.nodes.forEach(S$),this.nodes.forEach(A$),this.nodes.forEach(m$),this.clearAllSnapshots();const d=ei.now();hn.delta=Ui(0,1e3/60,d-hn.timestamp),hn.timestamp=d,hn.isProcessing=!0,Zp.update.process(hn),Zp.preRender.process(hn),Zp.render.process(hn),hn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Z4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(g$),this.sharedNodes.forEach(C$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ut(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(d=!1),d){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!u)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!zb(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&(d||Ea(this.latestValues)||m)&&(u(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return l&&(f=this.removeTransform(f)),D$(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:d}=this.options;if(!d)return Ut();const f=d.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(b$))){const{scroll:m}=this.root;m&&(ks(f.x,m.offset.x),ks(f.y,m.offset.y))}return f}removeElementScroll(l){var d;const f=Ut();if(Ar(f,l),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:E,options:g}=m;m!==this.root&&E&&g.layoutScroll&&(E.wasRoot&&Ar(f,l),ks(f.x,E.offset.x),ks(f.y,E.offset.y))}return f}applyTransform(l,d=!1){const f=Ut();Ar(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Gs(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ea(m.latestValues)&&Gs(f,m.latestValues)}return Ea(this.latestValues)&&Gs(f,this.latestValues),f}removeTransform(l){const d=Ut();Ar(d,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Ea(h.latestValues))continue;mg(h.latestValues)&&h.updateSnapshot();const m=Ut(),E=h.measurePageBox();Ar(m,E),sv(d,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Ea(this.latestValues)&&sv(d,this.latestValues),d}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==hn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:E,layoutId:g}=this.options;if(!(!this.layout||!(E||g))){if(this.resolvedRelativeTargetAt=hn.timestamp,!this.targetDelta&&!this.relativeTarget){const _=this.getClosestProjectingParent();_&&_.layout&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ut(),this.relativeTargetOrigin=Ut(),nc(this.relativeTargetOrigin,this.layout.layoutBox,_.layout.layoutBox),Ar(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ut(),this.targetWithTransforms=Ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FK(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ar(this.target,this.layout.layoutBox),Hb(this.target,this.targetDelta)):Ar(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const _=this.getClosestProjectingParent();_&&!!_.resumingFrom==!!this.resumingFrom&&!_.options.layoutScroll&&_.target&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ut(),this.relativeTargetOrigin=Ut(),nc(this.relativeTargetOrigin,this.target,_.target),Ar(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Kl&&ga.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mg(this.parent.latestValues)||Pb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const d=this.getLead(),f=!!this.resumingFrom||this!==d;let h=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===hn.timestamp&&(h=!1),h)return;const{layout:m,layoutId:E}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||E))return;Ar(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,_=this.treeScale.y;GK(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ut());const{target:S}=d;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(iv(this.prevProjectionDelta.x,this.projectionDelta.x),iv(this.prevProjectionDelta.y,this.projectionDelta.y)),tc(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==_||!fv(this.projectionDelta.x,this.prevProjectionDelta.x)||!fv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),Kl&&ga.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Us(),this.projectionDelta=Us(),this.projectionDeltaWithTransform=Us()}setAnimationOrigin(l,d=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},E=Us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const g=Ut(),_=f?f.source:void 0,S=this.layout?this.layout.source:void 0,C=_!==S,v=this.getStack(),R=!v||v.members.length<=1,T=!!(C&&!R&&this.options.crossfade===!0&&!this.path.some(R$));this.animationProgress=0;let b;this.mixTargetDelta=L=>{const x=L/1e3;pv(E.x,l.x,x),pv(E.y,l.y,x),this.setTargetDelta(E),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nc(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),v$(this.relativeTarget,this.relativeTargetOrigin,g,x),b&&l$(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ut()),Ar(b,this.relativeTarget)),C&&(this.animationValues=m,r$(m,h,this.latestValues,x,T,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yt.update(()=>{cf.hasAnimatedSinceResize=!0,this.currentAnimation=XK(0,hv,{...l,onUpdate:d=>{this.mixTargetDelta(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:d,target:f,layout:h,latestValues:m}=l;if(!(!d||!f||!h)){if(this!==l&&this.layout&&h&&Zb(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Ut();const E=tr(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+E;const g=tr(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}Ar(d,f),Gs(d,m),tc(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new c$),this.sharedNodes.get(l).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:d}=this.options;return d?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:d}=this.options;return d?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:d,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let d=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const h={};f.z&&rE("z",l,h,this.animationValues);for(let m=0;m<nE.length;m++)rE(`rotate${nE[m]}`,l,h,this.animationValues),rE(`skew${nE[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}getProjectionStyles(l){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return f$;const h={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=of(l==null?void 0:l.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;const E=this.getLead();if(!this.projectionDelta||!this.layout||!E.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=of(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Ea(this.latestValues)&&(C.transform=m?m({},""):"none",this.hasProjected=!1),C}const g=E.animationValues||E.latestValues;this.applyTransformsToTarget(),h.transform=d$(this.projectionDeltaWithTransform,this.treeScale,g),m&&(h.transform=m(g,h.transform));const{x:_,y:S}=this.projectionDelta;h.transformOrigin=`${_.origin*100}% ${S.origin*100}% 0`,E.animationValues?h.opacity=E===this?(f=(d=g.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:h.opacity=E===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const C in Hf){if(g[C]===void 0)continue;const{correct:v,applyTo:R}=Hf[C],T=h.transform==="none"?g[C]:v(g[C],E);if(R){const b=R.length;for(let L=0;L<b;L++)h[R[L]]=T}else h[C]=T}return this.options.layoutId&&(h.pointerEvents=E===this?of(l==null?void 0:l.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var d;return(d=l.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Av),this.root.sharedNodes.clear()}}}function A$(e){e.updateLayout()}function m$(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=e.layout,{animationType:o}=e.options,l=n.source!==e.layout.source;o==="size"?pr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=tr(g);g.min=r[E].min,g.max=g.min+_}):Zb(o,n.layoutBox,r)&&pr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=tr(r[E]);g.max=g.min+_,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[E].max=e.relativeTarget[E].min+_)});const d=Us();tc(d,r,n.layoutBox);const f=Us();l?tc(f,e.applyTransform(u,!0),n.measuredBox):tc(f,r,n.layoutBox);const h=!zb(d);let m=!1;if(!e.resumeFrom){const E=e.getClosestProjectingParent();if(E&&!E.resumeFrom){const{snapshot:g,layout:_}=E;if(g&&_){const S=Ut();nc(S,n.layoutBox,g.layoutBox);const C=Ut();nc(C,r,_.layoutBox),Kb(S,C)||(m=!0),E.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=S,e.relativeParent=E)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:h,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function p$(e){Kl&&ga.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function E$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function g$(e){e.clearSnapshot()}function Av(e){e.clearMeasurements()}function _$(e){e.isLayoutDirty=!1}function S$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function N$(e){e.resolveTargetDelta()}function I$(e){e.calcProjection()}function y$(e){e.resetSkewAndRotation()}function C$(e){e.removeLeadSnapshot()}function pv(e,t,n){e.translate=Dt(t.translate,0,n),e.scale=Dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ev(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function v$(e,t,n,r){Ev(e.x,t.x,n.x,r),Ev(e.y,t.y,n.y,r)}function R$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const T$={duration:.45,ease:[.4,0,.1,1]},gv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_v=gv("applewebkit/")&&!gv("chrome/")?Math.round:Xt;function Sv(e){e.min=_v(e.min),e.max=_v(e.max)}function D$(e){Sv(e.x),Sv(e.y)}function Zb(e,t,n){return e==="position"||e==="preserve-aspect"&&!BK(dv(t),dv(n),.2)}function b$(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const x$=Yb({attachResizeListener:(e,t)=>xc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iE={current:void 0},Wb=Yb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iE.current){const e=new x$({});e.mount(window),e.setOptions({layoutScroll:!0}),iE.current=e}return iE.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),B$={pan:{Feature:YK},drag:{Feature:$K,ProjectionNode:Wb,MeasureLayout:Gb}};function Nv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const u="onHover"+n,o=r[u];o&&yt.postRender(()=>o(t,sd(t)))}let F$=class extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=WD(t,n=>(Nv(this.node,n,"Start"),r=>Nv(this.node,r,"End"))))}unmount(){}},O$=class extends Gu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ad(xc(this.node.current,"focus",()=>this.onFocus()),xc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Iv(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const u="onTap"+(n==="End"?"":n),o=r[u];o&&yt.postRender(()=>o(t,sd(t)))}let L$=class extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=XD(t,n=>(Iv(this.node,n,"Start"),(r,{success:u})=>Iv(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Eg=new WeakMap,uE=new WeakMap,w$=e=>{const t=Eg.get(e.target);t&&t(e)},M$=e=>{e.forEach(w$)};function P$({root:e,...t}){const n=e||document;uE.has(n)||uE.set(n,{});const r=uE.get(n),u=JSON.stringify(t);return r[u]||(r[u]=new IntersectionObserver(M$,{root:e,...t})),r[u]}function H$(e,t,n){const r=P$(t);return Eg.set(e,n),r.observe(e),()=>{Eg.delete(e),r.unobserve(e)}}const U$={some:0,all:1};let k$=class extends Gu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:u="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:U$[u]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=h?m:E;g&&g(f)};return H$(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(G$(t,n))&&this.startObserver()}unmount(){}};function G$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const V$={inView:{Feature:k$},tap:{Feature:L$},focus:{Feature:O$},hover:{Feature:F$}},j$={layout:{ProjectionNode:Wb,MeasureLayout:Gb}},gg={current:null},qb={current:!1};function z$(){if(qb.current=!0,!!z4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gg.current=e.matches;e.addListener(t),t()}else gg.current=!1}const K$=[...Nb,Nn,Fu],$$=e=>K$.find(Sb(e)),yv=new WeakMap;function Y$(e,t,n){for(const r in t){const u=t[r],o=n[r];if(yn(u))e.addValue(r,u);else if(yn(o))e.addValue(r,Dc(u,{owner:e}));else if(o!==u)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(u):l.hasAnimated||l.set(u)}else{const l=e.getStaticValue(r);e.addValue(r,Dc(l!==void 0?l:u,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Cv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Z$=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:o,visualState:l},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=p_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=ei.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,yt.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=u,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=Uh(n),this.isVariantNode=xD(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:E,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in g){const S=g[_];f[_]!==void 0&&yn(S)&&S.set(f[_],!1)}}mount(t){this.current=t,yv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),qb.current||z$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yv.delete(this.current),this.projection&&this.projection.unmount(),Bu(this.notifyUpdate),Bu(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ja.has(t),u=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{u(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ro){const n=ro[t];if(!n)continue;const{isEnabled:r,Feature:u}=n;if(!this.features[t]&&u&&r(this.props)&&(this.features[t]=new u(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ut()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Cv.length;r++){const u=Cv[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const o="on"+u,l=t[o];l&&(this.propEventSubscriptions[u]=this.on(u,l))}this.prevMotionValues=Y$(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let u=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return u!=null&&(typeof u=="string"&&(gb(u)||lb(u))?u=parseFloat(u):!$$(u)&&Fu.test(n)&&(u=mb(t,n)),this.setBaseTarget(t,yn(u)?u.get():u)),yn(u)?u.get():u}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let u;if(typeof r=="string"||typeof r=="object"){const l=q4(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(u=l[t])}if(r&&u!==void 0)return u;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!yn(o)?o:this.initialValues[t]!==void 0&&u===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new c_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},Xb=class extends Z${constructor(){super(...arguments),this.KeyframeResolver=Ib}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function W$(e){return window.getComputedStyle(e)}let q$=class extends Xb{constructor(){super(...arguments),this.type="html",this.renderInstance=UD}readValueFromInstance(t,n){if(ja.has(n)){const r=m_(n);return r&&r.default||0}else{const r=W$(t),u=(MD(n)?r.getPropertyValue(n):r[n])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ub(t,n)}build(t,n,r){J4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return r_(t,n,r)}},X$=class extends Xb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ut}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ja.has(n)){const r=m_(n);return r&&r.default||0}return n=kD.has(n)?n:Y4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return jD(t,n,r)}build(t,n,r){e_(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,u){GD(t,n,r,u)}mount(t){this.isSVGTag=n_(t.tagName),super.mount(t)}};const Q$=(e,t)=>W4(e)?new X$(t):new q$(t,{allowProjection:e!==y.Fragment}),J$=T6({...IK,...V$,...B$,...j$},Q$),Qb=V7(J$),S_="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",eY="after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-left-12 after:hover:cursor-pointer after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100",tY=({className:e,...t})=>N.jsx("h1",{className:Re("mt-5 text-2xl font-bold",e),...t}),nY=({className:e,...t})=>N.jsx("h2",{className:Re("mt-5 text-2xl font-bold",S_,e),...t}),rY=({className:e,...t})=>N.jsx("h3",{className:Re("mt-3 text-xl font-bold",S_,e),...t}),iY=({className:e,...t})=>N.jsx("h4",{className:Re("mt-3 text-lg font-bold",S_,e),...t}),uY=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),aY=e=>{var u;const t=document.getElementById(e),r=(((u=t==null?void 0:t.getBoundingClientRect())==null?void 0:u.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},sY=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,u=window.getComputedStyle(e,":after"),o=n+parseInt(u.getPropertyValue("left"),10),l=o+parseInt(u.width,10),d=r+parseInt(u.getPropertyValue("top"),10),f=d+parseInt(u.height,10),h=t.clientX,m=t.clientY;return h>=o&&h<=l&&m>=d&&m<=f},N_=({H:e,children:t,className:n,isClickable:r,...u})=>{const o=typeof t=="string"?uY(t):void 0,l=d=>{const{id:f}=d.currentTarget;if(sY(d.currentTarget,d)&&typeof f=="string"){const E=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(E),aY(f)}};return N.jsx(e,{id:o,onClick:r?l:void 0,"aria-label":r?`Click to scroll to section ${o} and copy the link to the clipboard`:void 0,className:Re(r&&eY,n),...u,children:t})},oY=({isClickable:e,...t})=>N.jsx(tY,{...t}),lY=({isClickable:e=!1,...t})=>N.jsx(N_,{H:nY,isClickable:e,...t}),I_=({isClickable:e=!1,...t})=>N.jsx(N_,{H:rY,isClickable:e,...t}),cY=({isClickable:e=!1,...t})=>N.jsx(N_,{H:iY,isClickable:e,...t}),dY=Ir("cursor-default overflow-auto py-3 shadow-sm justify-center",{variants:{size:{sm:"h-auto max-h-[30vh] w-[95vw] max-w-xl",md:"h-auto max-h-[50vh] w-[95vw] max-w-xl",lg:"h-auto max-h-[70vh] w-[95vw] max-w-2xl",xl:"h-auto max-h-[95vh] w-[95vw] max-w-6xl",unset:"h-auto max-h-[95vh] w-[95vw]"}},defaultVariants:{size:"unset"}}),fY=Qb.create(si),hY=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:u,hasCloseButton:o=!1,title:l,size:d="md",className:f,...h})=>{const m=k9(n);if(K9({key:"modal",disableScroll:t&&r}),!m)return N.jsx(N.Fragment,{});const E=typeof l=="string";return Ga.createPortal(N.jsx(Qb.div,{className:"bg-background/40 /40 invisible fixed left-0 top-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-auto backdrop-blur",animate:t?"visible":"invisible",variants:{visible:{opacity:1,visibility:"visible",transition:{duration:.1,when:"beforeChildren"}},invisible:{opacity:0,visibility:"hidden",transition:{duration:.1,when:"afterChildren"}}},onClick:g=>{g.stopPropagation(),u==null||u()},"aria-hidden":!t,children:N.jsx("div",{className:"flex justify-center p-4",children:N.jsxs(fY,{onClick:g=>g.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:dY({size:d,className:f}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...h,children:[N.jsxs("div",{className:Re("cursor-default px-4",o&&E?"flex items-center justify-center":o?"flex items-center justify-end":E?"items-center":"hidden"),children:[E&&N.jsx(I_,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),o&&N.jsx(mt,{variant:"hoverable",color:"text",label:"Close modal",className:"ml-auto",onClick:g=>{g.stopPropagation(),u==null||u()},Icon:Va,size:"icon-md"})]}),N.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),m)},AY={key:"save-dictionary-details",content:{resetButton:{text:_e({en:"Reset all changes","en-GB":"Reset all changes",fr:"Réinitialiser toutes les modifications",es:"Restablecer todas las modificaciones",de:"Alle Änderungen zurücksetzen",ja:"すべての変更をリセット",ko:"모든 변경 사항 초기화",zh:"重置所有更改",it:"Reimposta tutte le modifiche",pt:"Redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करें",ar:"إعادة تعيين جميع التغييرات",ru:"Сбросить все изменения"}),label:_e({en:"Click to reset all the changes","en-GB":"Click to reset all the changes",fr:"Cliquez pour réinitialiser toutes les modifications",es:"Haga clic para restablecer todas las modificaciones",de:"Klicken Sie, um alle Änderungen zurückzusetzen",ja:"すべての変更をリセットするにはクリックしてください",ko:"모든 변경 사항을 초기화하려면 클릭하세요",zh:"单击以重置所有更改",it:"Fai clic per ripristinare tutte le modifiche",pt:"Clique para redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करने के लिए क्लिक करें",ar:"انقر لإعادة تعيين جميع التغييرات",ru:"Нажмите, чтобы сбросить все изменения"})},saveButton:{text:_e({en:"Save changes","en-GB":"Save changes",fr:"Enregistrer les modifications",es:"Guardar cambios",de:"Änderungen speichern",ja:"変更を保存",ko:"변경 사항 저장",zh:"保存更改",it:"Salva le modifiche",pt:"Salvar alterações",hi:"परिवर्तनों को सहेजें",ar:"احفظ التغييرات",ru:"Сохранить изменения"}),label:_e({en:"Click to save changes","en-GB":"Click to save changes",fr:"Cliquez pour enregistrer les modifications",es:"Haga clic para guardar cambios",de:"Klicken Sie, um Änderungen zu speichern",ja:"変更を保存するにはクリックしてください",ko:"변경 사항을 저장하려면 클릭하세요",zh:"单击保存更改",it:"Fai clic per salvare le modifiche",pt:"Clique para salvar alterações",hi:"परिवर्तनों को सहेजने के लिए क्लिक करें",ar:"انقر لحفظ التغييرات",ru:"Нажмите, чтобы сохранить изменения"})},publishButton:{text:_e({en:"Publish dictionary","en-GB":"Publish dictionary",fr:"Publier dictionnaire",es:"Publicar diccionario",de:"Wörterbuch veröffentlichen",ja:"辞書を公開",ko:"사전을 게시합니다",zh:"发布字典",it:"Pubblica dizionario",pt:"Publicar dicionário",hi:"शब्दकोश प्रकाशित करें",ar:"نشر القاموس",ru:"Опубликовать словарь"}),label:_e({en:"Click to publish dictionary","en-GB":"Click to publish dictionary",fr:"Cliquez pour publier dictionnaire",es:"Haga clic para publicar diccionario",de:"Klicken Sie, um das Wörterbuch zu veröffentlichen",ja:"辞書を公開するにはクリックしてください",ko:"사전을 게시하려면 클릭하세요",zh:"单击以发布字典",it:"Fai clic per pubblicare il dizionario",pt:"Clique para publicar dicionário",hi:"शब्दकोश प्रकाशित करने के लिए क्लिक करें",ar:"انقر لنشر القاموس",ru:"Нажмите, чтобы опубликовать словарь"})},downloadButton:{text:_e({en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать"}),label:_e({en:"Click to download","en-GB":"Click to download",fr:"Cliquez pour télécharger",es:"Haga clic para descargar",de:"Klicken Sie, um herunterzuladen",ja:"ダウンロードするにはクリックしてください",ko:"다운로드를 클릭하세요",zh:"单击下载",it:"Fai clic per scaricare",pt:"Clique para baixar",hi:"डाउनलोड करने के लिए क्लिक करें",ar:"انقر لتنزيل",ru:"Нажмите, чтобы скачать"})}}},Jb=({dictionary:e,mode:t,className:n,...r})=>{const{setLocaleDictionary:u}=Xg(),{writeDictionary:o,isLoading:l}=TU(),{pushDictionaries:d,isLoading:f}=IU(),h=l||f,{editedContent:m,restoreEditedContent:E}=Hn(),{resetButton:g,saveButton:_,publishButton:S,downloadButton:C}=sn(AY),{isAuthenticated:v}=Yc(),R=y.useMemo(()=>m==null?void 0:m[e.key],[m,e.key]),T=y.useMemo(()=>R&&JSON.stringify(R)!==JSON.stringify(e),[R,e,t]),b=y.useMemo(()=>typeof(e==null?void 0:e._id)>"u",[e]),L=async()=>{if(!(m!=null&&m[e.key]))return;const B={...e,...m==null?void 0:m[e.key]};await o(B).then(()=>{u(m==null?void 0:m[e.key]),E(e.key)})},x=async()=>{if(!(m!=null&&m[e.key]))return;const B={...e,...m==null?void 0:m[e.key]};await d([B]).then(O=>{O&&(u(m==null?void 0:m[e.key]),E(e.key))})};return N.jsxs("form",{className:Re("flex justify-end gap-2 max-md:flex-col",n),...r,children:[T&&N.jsx(ut.Button,{label:g.label.value,disabled:!T,Icon:vP,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>E(e.key),children:g.text}),t.includes("local")&&N.jsx(ut.Button,{label:C.label.value,disabled:!T||h,Icon:cP,color:"text",variant:v?"outline":"default",className:"max-md:w-full",isLoading:l,onClick:L,children:C.text}),t.includes("remote")&&v&&b&&N.jsx(ut.Button,{label:S.label.value,disabled:h,Icon:W8,color:"text",className:"max-md:w-full",isLoading:f,onClick:x,children:S.text}),t.includes("remote")&&v&&!b&&T&&N.jsx(ut.Button,{label:_.label.value,disabled:!T||h,Icon:TP,color:"text",className:"max-md:w-full",isLoading:f,onClick:x,children:_.text})]})},$l=({children:e,header:t,isOpen:n=!1,onClick:r,...u})=>{const[o,l]=y.useState(n),d=o==null?void 0:!o;return y.useEffect(()=>{n!=null&&l(n)},[n]),N.jsxs("div",{className:"w-full",children:[N.jsx(mt,{variant:"hoverable",color:"text",onClick:f=>{l(h=>!h),r==null||r(f)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:H9,iconClassName:Re("transform transition-transform duration-500 ease-in-out",o?"rotate-0":"-rotate-180"),...u,children:t}),N.jsx(M9,{tabIndex:d!==!1?void 0:-1,isHidden:d,children:e})]})},ex=({level:e,title:t,description:n,children:r,rightParam:u,isSelected:o,...l})=>N.jsx("div",{className:Re("rounded-md p-2 transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",e===2&&"hover:bg-card/30",e>=3&&"",o===!0&&"bg-card/40"),...l,children:N.jsx($l,{isOpen:o,label:t,header:N.jsxs("div",{className:"flex w-full",children:[N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("span",{className:Re(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),u&&N.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:u})]}),n&&N.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),tx=({keyPath:e,section:t,editedContent:n,onContentChange:r,onFocusKeyPath:u})=>{const o=Zr(n,e);if(o&&typeof o!="string")return N.jsx(N.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const l=e.length,d=o??t;return N.jsx("span",{role:"button",tabIndex:0,className:Re("w-full rounded-md p-2 text-left transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",l===2&&"hover:bg-card/30",l>=3&&""),onClick:f=>{f.stopPropagation(),u(e)},children:N.jsx(PT,{defaultValue:String(d),onSave:f=>r({keyPath:e,newValue:f}),onCancel:()=>null})})},mY=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:j.Markdown}],u=n[j.Markdown];return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:N.jsx(tx,{...e,keyPath:r,section:u})})},pY=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:u=[]}=e;return n.map((o,l)=>{const d={key:l,type:j.Array},f=[...t,d];return N.jsx(ex,{level:t.length,title:`${l}`,description:"",isSelected:Vc(f,u),onClick:h=>{h.stopPropagation(),r(f)},children:N.jsx(Io,{...e,keyPath:f,section:o})},JSON.stringify(o))})},EY=e=>{const{keyPath:t,section:n}=e;return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!y_.includes(r)).map(r=>{const u={type:j.Condition,key:r},o=[...t,u],l=n[j.Condition][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),y.createElement(Io,{...e,key:r,keyPath:o,section:l})]})})})},gY=e=>{const{keyPath:t,section:n}=e;return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!y_.includes(r)).map(r=>{const u={type:j.Enumeration,key:r},o=[...t,u],l=n[j.Enumeration][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),y.createElement(Io,{...e,key:r,keyPath:o,section:l})]})})})},_Y=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:u}=e;return Object.keys(n).filter(o=>!y_.includes(o)).map(o=>{const l={key:o,type:j.Object},d=[...t,l];return N.jsx(ex,{level:t.length,title:o,description:"",isSelected:Vc(d,r),onClick:f=>{f.stopPropagation(),u(d)},children:N.jsx(Io,{...e,keyPath:d,section:n[o]})},o)})},SY=e=>{const{keyPath:t,section:n,locale:r}=e,u={type:j.Translation,key:r},o=[...t,u],l=n.translation[r];return N.jsx(Io,{...e,keyPath:o,section:l})},y_=["filePath","id","nodeType"],Io=e=>{const{section:t}=e,n=Gc(t);if(typeof t=="object")return n===j.ReactNode?N.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):n===j.Nested?N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):n===j.Markdown?N.jsx(mY,{...e,section:t}):n===j.Translation?N.jsx(SY,{...e,section:t}):n===j.Enumeration?N.jsx(gY,{...e,section:t}):n===j.Condition?N.jsx(EY,{...e,section:t}):n===j.Array?N.jsx(pY,{...e,section:t}):N.jsx(_Y,{...e,section:t});if(typeof t=="string")return N.jsx(tx,{...e,section:t})},NY=({dictionary:e,mode:t,...n})=>{var f;const{editedContent:r,addEditedContent:u}=Hn(),{focusedContent:o,setFocusedContentKeyPath:l}=Ou(),d=o==null?void 0:o.keyPath;return N.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[N.jsx("div",{children:y.createElement(Io,{...n,keyPath:[],key:JSON.stringify(((r==null?void 0:r[e.key])??e).content),editedContent:(f=r==null?void 0:r[e.key])==null?void 0:f.content,focusedKeyPath:d,section:e.content,onContentChange:h=>{u(e.key,h.newValue,h.keyPath)},onFocusKeyPath:l})}),N.jsx(Jb,{dictionary:e,mode:t,className:"mb-4 flex-col"})]})};function ki(e){return Array.isArray?Array.isArray(e):ix(e)==="[object Array]"}function IY(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function yY(e){return e==null?"":IY(e)}function qr(e){return typeof e=="string"}function nx(e){return typeof e=="number"}function CY(e){return e===!0||e===!1||vY(e)&&ix(e)=="[object Boolean]"}function rx(e){return typeof e=="object"}function vY(e){return rx(e)&&e!==null}function Xn(e){return e!=null}function aE(e){return!e.trim().length}function ix(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const RY="Incorrect 'index' type",TY=e=>`Invalid value for key ${e}`,DY=e=>`Pattern length exceeds max of ${e}.`,bY=e=>`Missing ${e} property in key`,xY=e=>`Property 'weight' in key '${e}' must be a positive integer`,vv=Object.prototype.hasOwnProperty;class BY{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let u=ux(r);this._keys.push(u),this._keyMap[u.id]=u,n+=u.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ux(e){let t=null,n=null,r=null,u=1,o=null;if(qr(e)||ki(e))r=e,t=Rv(e),n=_g(e);else{if(!vv.call(e,"name"))throw new Error(bY("name"));const l=e.name;if(r=l,vv.call(e,"weight")&&(u=e.weight,u<=0))throw new Error(xY(l));t=Rv(l),n=_g(l),o=e.getFn}return{path:t,id:n,weight:u,src:r,getFn:o}}function Rv(e){return ki(e)?e:e.split(".")}function _g(e){return ki(e)?e.join("."):e}function FY(e,t){let n=[],r=!1;const u=(o,l,d)=>{if(Xn(o))if(!l[d])n.push(o);else{let f=l[d];const h=o[f];if(!Xn(h))return;if(d===l.length-1&&(qr(h)||nx(h)||CY(h)))n.push(yY(h));else if(ki(h)){r=!0;for(let m=0,E=h.length;m<E;m+=1)u(h[m],l,d+1)}else l.length&&u(h,l,d+1)}};return u(e,qr(t)?t.split("."):t,0),r?n:n[0]}const OY={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},LY={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},wY={location:0,threshold:.6,distance:100},MY={useExtendedSearch:!1,getFn:FY,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ze={...LY,...OY,...wY,...MY};const PY=/[^ ]+/g;function HY(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(u){const o=u.match(PY).length;if(n.has(o))return n.get(o);const l=1/Math.pow(o,.5*e),d=parseFloat(Math.round(l*r)/r);return n.set(o,d),d},clear(){n.clear()}}}class C_{constructor({getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){this.norm=HY(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,qr(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();qr(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!Xn(t)||aE(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((u,o)=>{let l=u.getFn?u.getFn(t):this.getFn(t,u.path);if(Xn(l)){if(ki(l)){let d=[];const f=[{nestedArrIndex:-1,value:l}];for(;f.length;){const{nestedArrIndex:h,value:m}=f.pop();if(Xn(m))if(qr(m)&&!aE(m)){let E={v:m,i:h,n:this.norm.get(m)};d.push(E)}else ki(m)&&m.forEach((E,g)=>{f.push({nestedArrIndex:g,value:E})})}r.$[o]=d}else if(qr(l)&&!aE(l)){let d={v:l,n:this.norm.get(l)};r.$[o]=d}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function ax(e,t,{getFn:n=ze.getFn,fieldNormWeight:r=ze.fieldNormWeight}={}){const u=new C_({getFn:n,fieldNormWeight:r});return u.setKeys(e.map(ux)),u.setSources(t),u.create(),u}function UY(e,{getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){const{keys:r,records:u}=e,o=new C_({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(u),o}function k0(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:u=ze.distance,ignoreLocation:o=ze.ignoreLocation}={}){const l=t/e.length;if(o)return l;const d=Math.abs(r-n);return u?l+d/u:d?1:l}function kY(e=[],t=ze.minMatchCharLength){let n=[],r=-1,u=-1,o=0;for(let l=e.length;o<l;o+=1){let d=e[o];d&&r===-1?r=o:!d&&r!==-1&&(u=o-1,u-r+1>=t&&n.push([r,u]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}const Sa=32;function GY(e,t,n,{location:r=ze.location,distance:u=ze.distance,threshold:o=ze.threshold,findAllMatches:l=ze.findAllMatches,minMatchCharLength:d=ze.minMatchCharLength,includeMatches:f=ze.includeMatches,ignoreLocation:h=ze.ignoreLocation}={}){if(t.length>Sa)throw new Error(DY(Sa));const m=t.length,E=e.length,g=Math.max(0,Math.min(r,E));let _=o,S=g;const C=d>1||f,v=C?Array(E):[];let R;for(;(R=e.indexOf(t,S))>-1;){let O=k0(t,{currentLocation:R,expectedLocation:g,distance:u,ignoreLocation:h});if(_=Math.min(O,_),S=R+m,C){let H=0;for(;H<m;)v[R+H]=1,H+=1}}S=-1;let T=[],b=1,L=m+E;const x=1<<m-1;for(let O=0;O<m;O+=1){let H=0,U=L;for(;H<U;)k0(t,{errors:O,currentLocation:g+U,expectedLocation:g,distance:u,ignoreLocation:h})<=_?H=U:L=U,U=Math.floor((L-H)/2+H);L=U;let G=Math.max(1,g-U+1),fe=l?E:Math.min(g+U,E)+m,ae=Array(fe+2);ae[fe+1]=(1<<O)-1;for(let Z=fe;Z>=G;Z-=1){let te=Z-1,V=n[e.charAt(te)];if(C&&(v[te]=+!!V),ae[Z]=(ae[Z+1]<<1|1)&V,O&&(ae[Z]|=(T[Z+1]|T[Z])<<1|1|T[Z+1]),ae[Z]&x&&(b=k0(t,{errors:O,currentLocation:te,expectedLocation:g,distance:u,ignoreLocation:h}),b<=_)){if(_=b,S=te,S<=g)break;G=Math.max(1,2*g-S)}}if(k0(t,{errors:O+1,currentLocation:g,expectedLocation:g,distance:u,ignoreLocation:h})>_)break;T=ae}const B={isMatch:S>=0,score:Math.max(.001,b)};if(C){const O=kY(v,d);O.length?f&&(B.indices=O):B.isMatch=!1}return B}function VY(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const u=e.charAt(n);t[u]=(t[u]||0)|1<<r-n-1}return t}const Kf=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class sx{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:u=ze.distance,includeMatches:o=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:d=ze.minMatchCharLength,isCaseSensitive:f=ze.isCaseSensitive,ignoreDiacritics:h=ze.ignoreDiacritics,ignoreLocation:m=ze.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:u,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:h,ignoreLocation:m},t=f?t:t.toLowerCase(),t=h?Kf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const E=(_,S)=>{this.chunks.push({pattern:_,alphabet:VY(_),startIndex:S})},g=this.pattern.length;if(g>Sa){let _=0;const S=g%Sa,C=g-S;for(;_<C;)E(this.pattern.substr(_,Sa),_),_+=Sa;if(S){const v=g-Sa;E(this.pattern.substr(v),v)}}else E(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:u}=this.options;if(t=n?t:t.toLowerCase(),t=r?Kf(t):t,this.pattern===t){let C={isMatch:!0,score:0};return u&&(C.indices=[[0,t.length-1]]),C}const{location:o,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:h,ignoreLocation:m}=this.options;let E=[],g=0,_=!1;this.chunks.forEach(({pattern:C,alphabet:v,startIndex:R})=>{const{isMatch:T,score:b,indices:L}=GY(t,C,v,{location:o+R,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:h,includeMatches:u,ignoreLocation:m});T&&(_=!0),g+=b,T&&L&&(E=[...E,...L])});let S={isMatch:_,score:_?g/this.chunks.length:1};return _&&u&&(S.indices=E),S}}class Vu{constructor(t){this.pattern=t}static isMultiMatch(t){return Tv(t,this.multiRegex)}static isSingleMatch(t){return Tv(t,this.singleRegex)}search(){}}function Tv(e,t){const n=e.match(t);return n?n[1]:null}class jY extends Vu{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class zY extends Vu{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class KY extends Vu{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class $Y extends Vu{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class YY extends Vu{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class ZY extends Vu{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class ox extends Vu{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:u=ze.distance,includeMatches:o=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:d=ze.minMatchCharLength,isCaseSensitive:f=ze.isCaseSensitive,ignoreDiacritics:h=ze.ignoreDiacritics,ignoreLocation:m=ze.ignoreLocation}={}){super(t),this._bitapSearch=new sx(t,{location:n,threshold:r,distance:u,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:h,ignoreLocation:m})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class lx extends Vu{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const u=[],o=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+o,u.push([r,n-1]);const l=!!u.length;return{isMatch:l,score:l?0:1,indices:u}}}const Sg=[jY,lx,KY,$Y,ZY,YY,zY,ox],Dv=Sg.length,WY=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,qY="|";function XY(e,t={}){return e.split(qY).map(n=>{let r=n.trim().split(WY).filter(o=>o&&!!o.trim()),u=[];for(let o=0,l=r.length;o<l;o+=1){const d=r[o];let f=!1,h=-1;for(;!f&&++h<Dv;){const m=Sg[h];let E=m.isMultiMatch(d);E&&(u.push(new m(E,t)),f=!0)}if(!f)for(h=-1;++h<Dv;){const m=Sg[h];let E=m.isSingleMatch(d);if(E){u.push(new m(E,t));break}}}return u})}const QY=new Set([ox.type,lx.type]);class JY{constructor(t,{isCaseSensitive:n=ze.isCaseSensitive,ignoreDiacritics:r=ze.ignoreDiacritics,includeMatches:u=ze.includeMatches,minMatchCharLength:o=ze.minMatchCharLength,ignoreLocation:l=ze.ignoreLocation,findAllMatches:d=ze.findAllMatches,location:f=ze.location,threshold:h=ze.threshold,distance:m=ze.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:u,minMatchCharLength:o,findAllMatches:d,ignoreLocation:l,location:f,threshold:h,distance:m},t=n?t:t.toLowerCase(),t=r?Kf(t):t,this.pattern=t,this.query=XY(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:u,ignoreDiacritics:o}=this.options;t=u?t:t.toLowerCase(),t=o?Kf(t):t;let l=0,d=[],f=0;for(let h=0,m=n.length;h<m;h+=1){const E=n[h];d.length=0,l=0;for(let g=0,_=E.length;g<_;g+=1){const S=E[g],{isMatch:C,indices:v,score:R}=S.search(t);if(C){if(l+=1,f+=R,r){const T=S.constructor.type;QY.has(T)?d=[...d,...v]:d.push(v)}}else{f=0,l=0,d.length=0;break}}if(l){let g={isMatch:!0,score:f/l};return r&&(g.indices=d),g}}return{isMatch:!1,score:1}}}const Ng=[];function eZ(...e){Ng.push(...e)}function Ig(e,t){for(let n=0,r=Ng.length;n<r;n+=1){let u=Ng[n];if(u.condition(e,t))return new u(e,t)}return new sx(e,t)}const $f={AND:"$and",OR:"$or"},yg={PATH:"$path",PATTERN:"$val"},Cg=e=>!!(e[$f.AND]||e[$f.OR]),tZ=e=>!!e[yg.PATH],nZ=e=>!ki(e)&&rx(e)&&!Cg(e),bv=e=>({[$f.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function cx(e,t,{auto:n=!0}={}){const r=u=>{let o=Object.keys(u);const l=tZ(u);if(!l&&o.length>1&&!Cg(u))return r(bv(u));if(nZ(u)){const f=l?u[yg.PATH]:o[0],h=l?u[yg.PATTERN]:u[f];if(!qr(h))throw new Error(TY(f));const m={keyId:_g(f),pattern:h};return n&&(m.searcher=Ig(h,t)),m}let d={children:[],operator:o[0]};return o.forEach(f=>{const h=u[f];ki(h)&&h.forEach(m=>{d.children.push(r(m))})}),d};return Cg(e)||(e=bv(e)),r(e)}function rZ(e,{ignoreFieldNorm:t=ze.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:u,norm:o,score:l})=>{const d=u?u.weight:null;r*=Math.pow(l===0&&d?Number.EPSILON:l,(d||1)*(t?1:o))}),n.score=r})}function iZ(e,t){const n=e.matches;t.matches=[],Xn(n)&&n.forEach(r=>{if(!Xn(r.indices)||!r.indices.length)return;const{indices:u,value:o}=r;let l={indices:u,value:o};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function uZ(e,t){t.score=e.score}function aZ(e,t,{includeMatches:n=ze.includeMatches,includeScore:r=ze.includeScore}={}){const u=[];return n&&u.push(iZ),r&&u.push(uZ),e.map(o=>{const{idx:l}=o,d={item:t[l],refIndex:l};return u.length&&u.forEach(f=>{f(o,d)}),d})}class yo{constructor(t,n={},r){this.options={...ze,...n},this.options.useExtendedSearch,this._keyStore=new BY(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof C_))throw new Error(RY);this._myIndex=n||ax(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Xn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,u=this._docs.length;r<u;r+=1){const o=this._docs[r];t(o,r)&&(this.removeAt(r),r-=1,u-=1,n.push(o))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:u,shouldSort:o,sortFn:l,ignoreFieldNorm:d}=this.options;let f=qr(t)?qr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return rZ(f,{ignoreFieldNorm:d}),o&&f.sort(l),nx(n)&&n>-1&&(f=f.slice(0,n)),aZ(f,this._docs,{includeMatches:r,includeScore:u})}_searchStringList(t){const n=Ig(t,this.options),{records:r}=this._myIndex,u=[];return r.forEach(({v:o,i:l,n:d})=>{if(!Xn(o))return;const{isMatch:f,score:h,indices:m}=n.searchIn(o);f&&u.push({item:o,idx:l,matches:[{score:h,value:o,norm:d,indices:m}]})}),u}_searchLogical(t){const n=cx(t,this.options),r=(d,f,h)=>{if(!d.children){const{keyId:E,searcher:g}=d,_=this._findMatches({key:this._keyStore.get(E),value:this._myIndex.getValueForItemAtKeyId(f,E),searcher:g});return _&&_.length?[{idx:h,item:f,matches:_}]:[]}const m=[];for(let E=0,g=d.children.length;E<g;E+=1){const _=d.children[E],S=r(_,f,h);if(S.length)m.push(...S);else if(d.operator===$f.AND)return[]}return m},u=this._myIndex.records,o={},l=[];return u.forEach(({$:d,i:f})=>{if(Xn(d)){let h=r(n,d,f);h.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},l.push(o[f])),h.forEach(({matches:m})=>{o[f].matches.push(...m)}))}}),l}_searchObjectList(t){const n=Ig(t,this.options),{keys:r,records:u}=this._myIndex,o=[];return u.forEach(({$:l,i:d})=>{if(!Xn(l))return;let f=[];r.forEach((h,m)=>{f.push(...this._findMatches({key:h,value:l[m],searcher:n}))}),f.length&&o.push({idx:d,item:l,matches:f})}),o}_findMatches({key:t,value:n,searcher:r}){if(!Xn(n))return[];let u=[];if(ki(n))n.forEach(({v:o,i:l,n:d})=>{if(!Xn(o))return;const{isMatch:f,score:h,indices:m}=r.searchIn(o);f&&u.push({score:h,key:t,value:o,idx:l,norm:d,indices:m})});else{const{v:o,n:l}=n,{isMatch:d,score:f,indices:h}=r.searchIn(o);d&&u.push({score:f,key:t,value:o,norm:l,indices:h})}return u}}yo.version="7.1.0";yo.createIndex=ax;yo.parseIndex=UY;yo.config=ze;yo.parseQuery=cx;eZ(JY);const rc=({children:e,className:t,identifier:n,...r})=>N.jsx("div",{className:Re("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),sZ=({children:e,identifier:t,className:n,...r})=>N.jsx("button",{className:Re("w-full cursor-pointer",n),"aria-label":`Open panel ${t}`,...r,children:e}),oZ=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:u="start",identifier:o,className:l,...d})=>N.jsx("div",{className:Re("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",u==="start"&&"left-0",u==="end"&&"right-0",l),"aria-hidden":t,role:"region","aria-labelledby":`unrollable-panel-button-${o}`,id:`unrollable-panel-${o}`,children:N.jsx(M9,{isHidden:t,className:Re("overflow-x-visible",t!==!1?"invisible":"visible",n&&"group-hover/dropdown:visible group-hover/dropdown:grid-rows-[1fr]",r&&"group-focus-within/dropdown:visible group-focus-within/dropdown:grid-rows-[1fr]"),...d,children:e})});rc.Trigger=sZ;rc.Panel=oZ;const lZ={key:"locale-switcher-content",content:{localeSwitcherLabel:_e({en:"Language switcher","en-GB":"Language switcher",fr:"Changer de langue",es:"Cambiar idioma",de:"Sprachwechsler",ja:"言語スイッチャー",ko:"언어 스위치",zh:"语言切换器",it:"Cambia lingua",pt:"Mudar idioma",hi:"भाषा स्विचर",ar:"مبدل اللغة",ru:"Переключатель языка"}),languageListLabel:_e({en:"Language list","en-GB":"Language list",fr:"Liste des langues",es:"Lista de idiomas",de:"Sprachliste",ja:"言語リスト",ko:"언어 목록",zh:"语言列表",it:"Elenco lingue",pt:"Lista de idiomas",hi:"भाषा सूची",ar:"قائمة اللغات",ru:"Список языков"}),switchTo:_e({en:"Switch to",fr:"Passer à",es:"Cambiar a","en-GB":"Switch to",de:"Wechseln Sie zu",ja:"に切り替える",ko:"전환",zh:"切换到",it:"Passa a",pt:"Mudar para",hi:"स्विच करें",ar:"التبديل إلى",ru:"Переключиться на"}),searchInput:{text:_e({en:"Search Locale","en-GB":"Search Locale",fr:"Rechercher la locale",es:"Buscar idioma",de:"Sprache durchsuchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca lingua",pt:"Pesquisar idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),placeholder:_e({en:"Search a locale","en-GB":"Search a locale",fr:"Rechercher une locale",es:"Buscar un idioma",de:"Sprache suchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca una lingua",pt:"Pesquisar um idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),ariaLabel:_e({en:"Language search","en-GB":"Language search",fr:"Recherche de langue",es:"Búsqueda de idioma",de:"Sprachsuche",ja:"言語検索",ko:"언어 검색",zh:"语言搜索",it:"Ricerca lingua",pt:"Pesquisa de idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"})},seeAllLocalesSwitch:{true:_e({en:"See all locales","en-GB":"See all locales",fr:"Voir toutes les langues",es:"Ver todos los idiomas",de:"Alle Sprachen anzeigen",ja:"すべての言語を表示",ko:"모든 언어 보기",zh:"查看所有语言",it:"Vedi tutte le lingue",pt:"Ver todos os idiomas",hi:"सभी भाषाओं को देखें",ar:"عرض جميع اللغات",ru:"Показать все языки"}),false:_e({en:"See only selected locales","en-GB":"See only selected locales",fr:"Voir seulement les langues sélectionnées",es:"Ver solo los idiomas seleccionados",de:"Nur ausgewählte Sprachen anzeigen",ja:"選択された言語のみを表示",ko:"선택한 언어만 보기",zh:"仅查看选定的语言",it:"Vedi solo le lingue selezionate",pt:"Ver apenas os idiomas selecionados",hi:"केवल चुने गए भाषाओं को देखें",ar:"عرض اللغات المحددة فقط",ru:"Показать только выбранные языки"})}}},ic=(e,t)=>{const[n,r]=y.useState(()=>{if(t!==void 0){const o=typeof t=="function"?t():t;if(typeof window>"u")return o;const l=localStorage==null?void 0:localStorage.getItem(e);if(l)try{return JSON.parse(l)}catch(d){console.error(d)}return o}});y.useEffect(()=>{const o=localStorage==null?void 0:localStorage.getItem(e);if(o&&n===void 0)try{r(JSON.parse(o))}catch(l){console.error(l)}else t!==void 0&&n===void 0&&r(t)},[e,n]);const u=y.useCallback(o=>{r(l=>{const d=typeof o=="function"?o(l):o;return localStorage==null||localStorage.setItem(e,JSON.stringify(d)),d})},[e,r]);return y.useMemo(()=>[n,u],[n,u])},dx=y.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),fx=()=>y.useContext(dx),cZ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=t4(),[u,o]=ic("locale-content-selector-selected-locales",t??[r]);return N.jsx(dx,{value:{availableLocales:e,selectedLocales:u,setSelectedLocales:o},children:n})},sE="locale-switcher-content",dZ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:u,languageListLabel:o,seeAllLocalesSwitch:l}=sn(lZ),d=y.useRef(null),{locale:f}=t4(),{availableLocales:h,selectedLocales:m,setSelectedLocales:E}=fx(),g=y.useMemo(()=>h.map(x=>{const B=Q0(x,i.ENGLISH),O=Q0(x,f),H=Q0(x);return{locale:x,englishName:B,currentLocaleName:O,ownLocaleName:H}}),[h,f]),[_,S]=y.useState(g),[C,v]=ic("locale-content-selector-see-all-locales",!1),R=y.useMemo(()=>{const x={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new yo(g,x)},[g]),T=y.useCallback(x=>{if(x){const B=R.search(x).map(O=>O.item);S(B)}else S(g)},[R,g]),b=x=>{t?m.includes(x)?m.length>1&&E(B=>B.filter(O=>O!==x)):E(B=>[...B,x]):E([x])},L=x=>{v(x),E(x?h:[f])};return N.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":u.value,children:N.jsxs(rc,{identifier:sE,children:[N.jsx(rc.Trigger,{identifier:sE,children:N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("div",{className:"px-2 py-1",children:N.jsx(gP,{size:18})}),N.jsx(SP,{className:"self-center",size:18})]})}),N.jsx(rc.Panel,{identifier:sE,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:N.jsxs(si,{className:"max-h-[80vh] min-w-28",separator:"y",role:"listbox",transparency:"sm",border:!0,roundedSize:"2xl",borderColor:"text","aria-label":o.value,children:[t&&N.jsx("div",{className:"m-auto p-2",children:N.jsx(td,{defaultValue:!1,onChange:L,color:"text",size:"sm",className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&C)&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"p-3",children:N.jsx(mo,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:x=>T(x.target.value),ref:d})}),N.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:x,currentLocaleName:B,ownLocaleName:O})=>N.jsx("li",{className:"px-1.5 py-1",children:N.jsx(mt,{onClick:()=>b(x),label:`${n} ${B}`,disabled:!(h??h).includes(x),isActive:m.includes(x),variant:"hoverable",color:"text",isFullWidth:!0,textAlign:"left",size:"sm",children:N.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&N.jsx("div",{className:"w-4",children:m.includes(x)&&N.jsx(Ao,{className:"size-full"})}),N.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[N.jsxs("div",{className:"flex flex-col text-nowrap",children:[N.jsx("span",{dir:Yw(x),lang:x,children:O}),N.jsx("span",{className:"text-neutral text-xs",children:B})]}),N.jsx("span",{className:"text-neutral text-sm",children:x.toUpperCase()})]})]})})},x))})]})]})})]})})},fZ=(e,t,n)=>{const r={...e};for(const u of Object.keys(e))u===t?(r[n]=e[t],delete r[t]):r[u]=e[u];return r},vg=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:u,...o})=>{const[l,d]=y.useState(e),[f,h]=y.useState(0),m=l!==e,E=()=>{d(e),h(C=>C+1)},g=()=>{t(l)},_=C=>{d(C.currentTarget.value)};y.useEffect(()=>{d(e)},[e]);const S=(r==null?void 0:r(l))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(mo,{onChange:_,"aria-label":"value",variant:"invisible",className:"size-full",defaultValue:e,...o},f),(m||u)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[m&&N.jsxs(N.Fragment,{children:[N.jsx(mt,{Icon:Ao,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!S,onClick:g}),N.jsx(mt,{Icon:Va,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:E})]}),u]})]},String(e))},hZ=(e,t)=>{const[n,r]=y.useState(e);return y.useEffect(()=>{const u=setTimeout(()=>{r(e)},t);return()=>clearTimeout(u)},[e,t]),n},AZ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:u}=RU(),o=ui(),[l,d]=y.useState(!1),[f,h]=y.useState(r),[m,E]=y.useState(""),g=hZ(f,200);y.useEffect(()=>{typeof n.value>"u"||h(r)},[n.value,n.defaultValue]),y.useEffect(()=>{if(!e||!l)return;const S=async()=>{var C;try{const v=await u({text:g,openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}),R=((C=v==null?void 0:v.data)==null?void 0:C.autocompletion)??"";if(R.startsWith(g)){const T=R.slice(g.length);return E(T)}return E(R)}catch(v){console.error("Autocomplete error:",v)}};g.length>3?(E(""),S()):E("")},[g,e]);const _=()=>{h(S=>S+m),E("")};return N.jsxs("div",{className:"relative w-full",children:[N.jsxs("div",{className:"pointer-events-none absolute inset-0 whitespace-pre-wrap break-words px-1 py-3 text-base leading-[1.45rem] md:py-1 md:text-sm md:leading-[1.23rem]","aria-hidden":"true",children:[N.jsx("span",{className:"align-text-top text-transparent",children:f}),(m||t)&&N.jsx("span",{className:"text-neutral ml-3 align-text-top",children:t??m})]}),N.jsx(y4,{...n,value:f,onChange:S=>{var C;d(!0),h(S.target.value),(C=n.onChange)==null||C.call(n,S)},onKeyDown:S=>{var C;S.key==="Tab"&&m&&(S.preventDefault(),_()),(C=n.onKeyDown)==null||C.call(n,S)}})]})},mZ=()=>{const{session:e,revalidateSession:t,setSession:n}=Yc(),{logout:r}=_U(),u=e!=null&&e.user?"authenticated":"unauthenticated",o=u==="authenticated",l=u==="unauthenticated",d=e==null?void 0:e.user;return{isAuthenticated:o,isUnauthenticated:l,user:d,revalidateSession:t,logout:async()=>{n(null),await r()}}},pZ=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:u,...o})=>{const{isAuthenticated:l}=mZ(),[d,f]=y.useState(e),[h,m]=y.useState(0),E=d!==e,g=()=>{f(e),m(v=>v+1)},_=()=>{t(d)},S=v=>f(v.currentTarget.value??"");y.useEffect(()=>{f(e)},[e]);const C=(r==null?void 0:r(d))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(AZ,{onChange:S,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...o},h),(E||u)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[E&&N.jsxs(N.Fragment,{children:[N.jsx(mt,{Icon:Ao,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!C,onClick:_}),N.jsx(mt,{Icon:Va,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:g})]}),u]})]},e)};function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Na.apply(this,arguments)}const EZ=["children","options"],ke={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var xv;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(xv||(xv={}));const Bv=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Fv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},gZ=["style","script"],_Z=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,SZ=/mailto:/i,NZ=/\n{2,}$/,hx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,IZ=/^ *> ?/gm,yZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,CZ=/^ {2,}\n/,vZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Ax=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mx=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,RZ=/^(`+)((?:\\`|[^`])+)\1/,TZ=/^(?:\n *)*\n/,DZ=/\r\n?/g,bZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,xZ=/^\[\^([^\]]+)]/,BZ=/\f/g,FZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,OZ=/^\s*?\[(x|\s)\]/,px=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ex=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gx=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Rg=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,LZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_x=/^<!--[\s\S]*?(?:-->)/,wZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Tg=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,MZ=/^\{.*\}$/,PZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,HZ=/^<([^ >]+@[^ >]+)>/,UZ=/^<([^ >]+:\/[^ >]+)>/,kZ=/-([a-z])?/gi,Sx=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,GZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,VZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,jZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,zZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,KZ=/\t/g,$Z=/(^ *\||\| *$)/g,YZ=/^ *:-+: *$/,ZZ=/^ *:-+ *$/,WZ=/^ *-+: *$/,zh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",qZ=new RegExp(`^([*_])\\1${zh}\\1\\1(?!\\1)`),XZ=new RegExp(`^([*_])${zh}\\1(?!\\1)`),QZ=new RegExp(`^(==)${zh}\\1`),JZ=new RegExp(`^(~~)${zh}\\1`),eW=/^\\([^0-9A-Za-z\s])/,oE=/\\([^0-9A-Za-z\s])/g,tW=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,nW=/^\n+/,rW=/^([ \t]*)/,iW=/\\([^\\])/g,uW=/(?:^|\n)( *)$/,v_="(?:\\d+\\.)",R_="(?:[*+-])";function Nx(e){return"( *)("+(e===1?v_:R_)+") +"}const Ix=Nx(1),yx=Nx(2);function Cx(e){return new RegExp("^"+(e===1?Ix:yx))}const aW=Cx(1),sW=Cx(2);function vx(e){return new RegExp("^"+(e===1?Ix:yx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?v_:R_)+" )[^\\n]*)*(\\n|$)","gm")}const oW=vx(1),lW=vx(2);function Rx(e){const t=e===1?v_:R_;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Tx=Rx(1),Dx=Rx(2);function Ov(e,t){const n=t===1,r=n?Tx:Dx,u=n?oW:lW,o=n?aW:sW;return{match:uo(function(l,d){const f=uW.exec(d.prevCapture);return f&&(d.list||!d.inline&&!d.simple)?r.exec(l=f[1]+l):null}),order:1,parse(l,d,f){const h=n?+l[2]:void 0,m=l[0].replace(NZ,`
|
|
262
|
+
`).match(u);let E=!1;return{items:m.map(function(g,_){const S=o.exec(g)[0].length,C=new RegExp("^ {1,"+S+"}","gm"),v=g.replace(C,"").replace(o,""),R=_===m.length-1,T=v.indexOf(`
|
|
263
|
+
|
|
264
|
+
`)!==-1||R&&E;E=T;const b=f.inline,L=f.list;let x;f.list=!0,T?(f.inline=!1,x=Bc(v)+`
|
|
265
|
+
|
|
266
|
+
`):(f.inline=!0,x=Bc(v));const B=d(x,f);return f.inline=b,f.list=L,B}),ordered:n,start:h}},render:(l,d,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type===ke.orderedList?l.start:void 0},l.items.map(function(h,m){return e("li",{key:m},d(h,f))}))}}const cW=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),dW=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,bx=[hx,Ax,mx,px,gx,Ex,Sx,Tx,Dx],fW=[...bx,/^[^\n]+(?: \n|\n{2,})/,Rg,_x,Tg];function Bc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Ml(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function hW(e){return WZ.test(e)?"right":YZ.test(e)?"center":ZZ.test(e)?"left":null}function Lv(e,t,n,r){const u=n.inTable;n.inTable=!0;let o=[[]],l="";function d(){if(!l)return;const f=o[o.length-1];f.push.apply(f,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,h,m)=>{f.trim()==="|"&&(d(),r)?h!==0&&h!==m.length-1&&o.push([]):l+=f}),d(),n.inTable=u,o}function AW(e,t,n){n.inline=!0;const r=e[2]?e[2].replace($Z,"").split("|").map(hW):[],u=e[3]?function(l,d,f){return l.trim().split(`
|
|
267
|
+
`).map(function(h){return Lv(h,d,f,!0)})}(e[3],t,n):[],o=Lv(e[1],t,n,!!u.length);return n.inline=!1,u.length?{align:r,cells:u,header:o,type:ke.table}:{children:o,type:ke.paragraph}}function wv(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function uo(e){return e.inline=1,e}function mu(e){return uo(function(t,n){return n.inline?e.exec(t):null})}function pu(e){return uo(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Di(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Pl(e){return uo(function(t){return e.exec(t)})}function mW(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
|
|
268
|
+
`).every(u=>(u+=`
|
|
269
|
+
`,!bx.some(o=>o.test(u))&&(n+=u,!!u.trim())));const r=Bc(n);return r==""?null:[n,,r]}function pW(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Mv(e){return e.replace(iW,"$1")}function df(e,t,n){const r=n.inline||!1,u=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=u,o}function EW(e,t,n){const r=n.inline||!1,u=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=u,o}function gW(e,t,n){const r=n.inline||!1;n.inline=!1;const u=e(t,n);return n.inline=r,u}const lE=(e,t,n)=>({children:df(t,e[2],n)});function cE(){return{}}function dE(){return null}function _W(...e){return e.filter(Boolean).join(" ")}function fE(e,t,n){let r=e;const u=t.split(".");for(;u.length&&(r=r[u[0]],r!==void 0);)u.shift();return r||n}function SW(e="",t={}){function n(g,_,...S){const C=fE(t.overrides,`${g}.props`,{});return t.createElement(function(v,R){const T=fE(R,v);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:fE(R,`${v}.component`,v):v}(g,t.overrides),Na({},_,C,{className:_W(_==null?void 0:_.className,C.className)||void 0}),...S)}function r(g){g=g.replace(FZ,"");let _=!1;t.forceInline?_=!0:t.forceBlock||(_=zZ.test(g)===!1);const S=h(f(_?g:`${Bc(g).replace(nW,"")}
|
|
270
|
+
|
|
271
|
+
`,{inline:_}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const C=t.wrapper||(_?"span":"div");let v;if(S.length>1||t.forceWrapper)v=S;else{if(S.length===1)return v=S[0],typeof v=="string"?n("span",{key:"outer"},v):v;v=null}return t.createElement(C,{key:"outer"},v)}function u(g,_){const S=_.match(_Z);return S?S.reduce(function(C,v){const R=v.indexOf("=");if(R!==-1){const T=function(B){return B.indexOf("-")!==-1&&B.match(wZ)===null&&(B=B.replace(kZ,function(O,H){return H.toUpperCase()})),B}(v.slice(0,R)).trim(),b=function(B){const O=B[0];return(O==='"'||O==="'")&&B.length>=2&&B[B.length-1]===O?B.slice(1,-1):B}(v.slice(R+1).trim()),L=Bv[T]||T;if(L==="ref")return C;const x=C[L]=function(B,O,H,U){return O==="style"?H.split(/;\s?/).reduce(function(G,fe){const ae=fe.slice(0,fe.indexOf(":"));return G[ae.trim().replace(/(-[a-z])/g,ce=>ce[1].toUpperCase())]=fe.slice(ae.length+1).trim(),G},{}):O==="href"||O==="src"?U(H,B,O):(H.match(MZ)&&(H=H.slice(1,H.length-1)),H==="true"||H!=="false"&&H)}(g,T,b,t.sanitizer);typeof x=="string"&&(Rg.test(x)||Tg.test(x))&&(C[L]=r(x.trim()))}else v!=="style"&&(C[Bv[v]||v]=!0);return C},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||pW,t.slugify=t.slugify||Ml,t.namedCodesToUnicode=t.namedCodesToUnicode?Na({},Fv,t.namedCodesToUnicode):Fv,t.createElement=t.createElement||y.createElement;const o=[],l={},d={[ke.blockQuote]:{match:Di(hx),order:1,parse(g,_,S){const[,C,v]=g[0].replace(IZ,"").match(yZ);return{alert:C,children:_(v,S)}},render(g,_,S){const C={key:S.key};return g.alert&&(C.className="markdown-alert-"+t.slugify(g.alert.toLowerCase(),Ml),g.children.unshift({attrs:{},children:[{type:ke.text,text:g.alert}],noInnerParse:!0,type:ke.htmlBlock,tag:"header"})),n("blockquote",C,_(g.children,S))}},[ke.breakLine]:{match:Pl(CZ),order:1,parse:cE,render:(g,_,S)=>n("br",{key:S.key})},[ke.breakThematic]:{match:Di(vZ),order:1,parse:cE,render:(g,_,S)=>n("hr",{key:S.key})},[ke.codeBlock]:{match:Di(mx),order:0,parse:g=>({lang:void 0,text:Bc(g[0].replace(/^ {4}/gm,"")).replace(oE,"$1")}),render:(g,_,S)=>n("pre",{key:S.key},n("code",Na({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[ke.codeFenced]:{match:Di(Ax),order:0,parse:g=>({attrs:u("code",g[3]||""),lang:g[2]||void 0,text:g[4].replace(oE,"$1"),type:ke.codeBlock})},[ke.codeInline]:{match:pu(RZ),order:3,parse:g=>({text:g[2].replace(oE,"$1")}),render:(g,_,S)=>n("code",{key:S.key},g.text)},[ke.footnote]:{match:Di(bZ),order:0,parse:g=>(o.push({footnote:g[2],identifier:g[1]}),{}),render:dE},[ke.footnoteReference]:{match:mu(xZ),order:1,parse:g=>({target:`#${t.slugify(g[1],Ml)}`,text:g[1]}),render:(g,_,S)=>n("a",{key:S.key,href:t.sanitizer(g.target,"a","href")},n("sup",{key:S.key},g.text))},[ke.gfmTask]:{match:mu(OZ),order:1,parse:g=>({completed:g[1].toLowerCase()==="x"}),render:(g,_,S)=>n("input",{checked:g.completed,key:S.key,readOnly:!0,type:"checkbox"})},[ke.heading]:{match:Di(t.enforceAtxHeadings?Ex:px),order:1,parse:(g,_,S)=>({children:df(_,g[2],S),id:t.slugify(g[2],Ml),level:g[1].length}),render:(g,_,S)=>n(`h${g.level}`,{id:g.id,key:S.key},_(g.children,S))},[ke.headingSetext]:{match:Di(gx),order:0,parse:(g,_,S)=>({children:df(_,g[1],S),level:g[2]==="="?1:2,type:ke.heading})},[ke.htmlBlock]:{match:Pl(Rg),order:1,parse(g,_,S){const[,C]=g[3].match(rW),v=new RegExp(`^${C}`,"gm"),R=g[3].replace(v,""),T=(b=R,fW.some(H=>H.test(b))?gW:df);var b;const L=g[1].toLowerCase(),x=gZ.indexOf(L)!==-1,B=(x?L:g[1]).trim(),O={attrs:u(B,g[2]),noInnerParse:x,tag:B};return S.inAnchor=S.inAnchor||L==="a",x?O.text=g[3]:O.children=T(_,R,S),S.inAnchor=!1,O},render:(g,_,S)=>n(g.tag,Na({key:S.key},g.attrs),g.text||(g.children?_(g.children,S):""))},[ke.htmlSelfClosing]:{match:Pl(Tg),order:1,parse(g){const _=g[1].trim();return{attrs:u(_,g[2]||""),tag:_}},render:(g,_,S)=>n(g.tag,Na({},g.attrs,{key:S.key}))},[ke.htmlComment]:{match:Pl(_x),order:1,parse:()=>({}),render:dE},[ke.image]:{match:pu(dW),order:1,parse:g=>({alt:g[1],target:Mv(g[2]),title:g[3]}),render:(g,_,S)=>n("img",{key:S.key,alt:g.alt||void 0,title:g.title||void 0,src:t.sanitizer(g.target,"img","src")})},[ke.link]:{match:mu(cW),order:3,parse:(g,_,S)=>({children:EW(_,g[1],S),target:Mv(g[2]),title:g[3]}),render:(g,_,S)=>n("a",{key:S.key,href:t.sanitizer(g.target,"a","href"),title:g.title},_(g.children,S))},[ke.linkAngleBraceStyleDetector]:{match:mu(UZ),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],type:ke.link})},[ke.linkBareUrlDetector]:{match:uo((g,_)=>_.inAnchor||t.disableAutoLink?null:mu(PZ)(g,_)),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],title:void 0,type:ke.link})},[ke.linkMailtoDetector]:{match:mu(HZ),order:0,parse(g){let _=g[1],S=g[1];return SZ.test(S)||(S="mailto:"+S),{children:[{text:_.replace("mailto:",""),type:ke.text}],target:S,type:ke.link}}},[ke.orderedList]:Ov(n,1),[ke.unorderedList]:Ov(n,2),[ke.newlineCoalescer]:{match:Di(TZ),order:3,parse:cE,render:()=>`
|
|
272
|
+
`},[ke.paragraph]:{match:uo(mW),order:3,parse:lE,render:(g,_,S)=>n("p",{key:S.key},_(g.children,S))},[ke.ref]:{match:mu(GZ),order:0,parse:g=>(l[g[1]]={target:g[2],title:g[4]},{}),render:dE},[ke.refImage]:{match:pu(VZ),order:0,parse:g=>({alt:g[1]||void 0,ref:g[2]}),render:(g,_,S)=>l[g.ref]?n("img",{key:S.key,alt:g.alt,src:t.sanitizer(l[g.ref].target,"img","src"),title:l[g.ref].title}):null},[ke.refLink]:{match:mu(jZ),order:0,parse:(g,_,S)=>({children:_(g[1],S),fallbackChildren:g[0],ref:g[2]}),render:(g,_,S)=>l[g.ref]?n("a",{key:S.key,href:t.sanitizer(l[g.ref].target,"a","href"),title:l[g.ref].title},_(g.children,S)):n("span",{key:S.key},g.fallbackChildren)},[ke.table]:{match:Di(Sx),order:1,parse:AW,render(g,_,S){const C=g;return n("table",{key:S.key},n("thead",null,n("tr",null,C.header.map(function(v,R){return n("th",{key:R,style:wv(C,R)},_(v,S))}))),n("tbody",null,C.cells.map(function(v,R){return n("tr",{key:R},v.map(function(T,b){return n("td",{key:b,style:wv(C,b)},_(T,S))}))})))}},[ke.text]:{match:Pl(tW),order:4,parse:g=>({text:g[0].replace(LZ,(_,S)=>t.namedCodesToUnicode[S]?t.namedCodesToUnicode[S]:_)}),render:g=>g.text},[ke.textBolded]:{match:pu(qZ),order:2,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("strong",{key:S.key},_(g.children,S))},[ke.textEmphasized]:{match:pu(XZ),order:3,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("em",{key:S.key},_(g.children,S))},[ke.textEscaped]:{match:pu(eW),order:1,parse:g=>({text:g[1],type:ke.text})},[ke.textMarked]:{match:pu(QZ),order:3,parse:lE,render:(g,_,S)=>n("mark",{key:S.key},_(g.children,S))},[ke.textStrikethroughed]:{match:pu(JZ),order:3,parse:lE,render:(g,_,S)=>n("del",{key:S.key},_(g.children,S))}};t.disableParsingRawHTML===!0&&(delete d[ke.htmlBlock],delete d[ke.htmlSelfClosing]);const f=function(g){let _=Object.keys(g);function S(C,v){let R,T,b=[],L="",x="";for(v.prevCapture=v.prevCapture||"";C;){let B=0;for(;B<_.length;){if(L=_[B],R=g[L],v.inline&&!R.match.inline){B++;continue}const O=R.match(C,v);if(O){x=O[0],v.prevCapture+=x,C=C.substring(x.length),T=R.parse(O,S,v),T.type==null&&(T.type=L),b.push(T);break}B++}}return v.prevCapture="",b}return _.sort(function(C,v){let R=g[C].order,T=g[v].order;return R!==T?R-T:C<v?-1:1}),function(C,v){return S(function(R){return R.replace(DZ,`
|
|
273
|
+
`).replace(BZ,"").replace(KZ," ")}(C),v)}}(d),h=(m=function(g,_){return function(S,C,v){const R=g[S.type].render;return _?_(()=>R(S,C,v),S,C,v):R(S,C,v)}}(d,t.renderRule),function g(_,S={}){if(Array.isArray(_)){const C=S.key,v=[];let R=!1;for(let T=0;T<_.length;T++){S.key=T;const b=g(_[T],S),L=typeof b=="string";L&&R?v[v.length-1]+=b:b!==null&&v.push(b),R=L}return S.key=C,v}return m(_,g,S)});var m;const E=r(e);return o.length?n("div",null,E,n("footer",{key:"footer"},o.map(function(g){return n("div",{id:t.slugify(g.identifier,Ml),key:g.identifier},g.identifier,h(f(g.footnote,{inline:!0})))}))):E}const NW=e=>{let{children:t="",options:n}=e,r=function(u,o){if(u==null)return{};var l,d,f={},h=Object.keys(u);for(d=0;d<h.length;d++)o.indexOf(l=h[d])>=0||(f[l]=u[l]);return f}(e,EZ);return y.cloneElement(SW(t,n),r)},IW=e=>{var u;const t=document.getElementById(e),r=(((u=t==null?void 0:t.getBoundingClientRect())==null?void 0:u.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},yW=()=>{const[e,t]=y.useState(),n=()=>{t(window.location.hash.slice(1))};return y.useEffect(()=>(t(window.location.hash.slice(1)),window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)),[]),y.useEffect(()=>{e&&IW(e)},[e]),null};let Li=class extends Error{constructor(t){super(t),this.name="ShikiError"}},T_=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function CW(){return 2147483648}function vW(){return typeof performance<"u"?performance.now():Date.now()}const RW=(e,t)=>e+(t-e%t)%t;async function TW(e){let t,n;const r={};function u(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function o(_,S,C){r.HEAPU8.copyWithin(_,S,S+C)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),u(t.buffer),1}catch{}}function d(_){const S=r.HEAPU8.length;_=_>>>0;const C=CW();if(_>C)return!1;for(let v=1;v<=4;v*=2){let R=S*(1+.2/v);R=Math.min(R,_+100663296);const T=Math.min(C,RW(Math.max(_,R),65536));if(l(T))return!0}return!1}const f=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function h(_,S,C=1024){const v=S+C;let R=S;for(;_[R]&&!(R>=v);)++R;if(R-S>16&&_.buffer&&f)return f.decode(_.subarray(S,R));let T="";for(;S<R;){let b=_[S++];if(!(b&128)){T+=String.fromCharCode(b);continue}const L=_[S++]&63;if((b&224)===192){T+=String.fromCharCode((b&31)<<6|L);continue}const x=_[S++]&63;if((b&240)===224?b=(b&15)<<12|L<<6|x:b=(b&7)<<18|L<<12|x<<6|_[S++]&63,b<65536)T+=String.fromCharCode(b);else{const B=b-65536;T+=String.fromCharCode(55296|B>>10,56320|B&1023)}}return T}function m(_,S){return _?h(r.HEAPU8,_,S):""}const E={emscripten_get_now:vW,emscripten_memcpy_big:o,emscripten_resize_heap:d,fd_write:()=>0};async function g(){const S=await e({env:E,wasi_snapshot_preview1:E});t=S.memory,u(t.buffer),Object.assign(r,S),r.UTF8ToString=m}return await g(),r}var DW=Object.defineProperty,bW=(e,t,n)=>t in e?DW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qt=(e,t,n)=>(bW(e,typeof t!="symbol"?t+"":t,n),n);let an=null;function xW(e){throw new T_(e.UTF8ToString(e.getLastOnigError()))}class Kh{constructor(t){qt(this,"utf16Length"),qt(this,"utf8Length"),qt(this,"utf16Value"),qt(this,"utf8Value"),qt(this,"utf16OffsetToUtf8"),qt(this,"utf8OffsetToUtf16");const n=t.length,r=Kh._utf8ByteLength(t),u=r!==n,o=u?new Uint32Array(n+1):null;u&&(o[n]=r);const l=u?new Uint32Array(r+1):null;u&&(l[r]=n);const d=new Uint8Array(r);let f=0;for(let h=0;h<n;h++){const m=t.charCodeAt(h);let E=m,g=!1;if(m>=55296&&m<=56319&&h+1<n){const _=t.charCodeAt(h+1);_>=56320&&_<=57343&&(E=(m-55296<<10)+65536|_-56320,g=!0)}u&&(o[h]=f,g&&(o[h+1]=f),E<=127?l[f+0]=h:E<=2047?(l[f+0]=h,l[f+1]=h):E<=65535?(l[f+0]=h,l[f+1]=h,l[f+2]=h):(l[f+0]=h,l[f+1]=h,l[f+2]=h,l[f+3]=h)),E<=127?d[f++]=E:E<=2047?(d[f++]=192|(E&1984)>>>6,d[f++]=128|(E&63)>>>0):E<=65535?(d[f++]=224|(E&61440)>>>12,d[f++]=128|(E&4032)>>>6,d[f++]=128|(E&63)>>>0):(d[f++]=240|(E&1835008)>>>18,d[f++]=128|(E&258048)>>>12,d[f++]=128|(E&4032)>>>6,d[f++]=128|(E&63)>>>0),g&&h++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=d,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,u=t.length;r<u;r++){const o=t.charCodeAt(r);let l=o,d=!1;if(o>=55296&&o<=56319&&r+1<u){const f=t.charCodeAt(r+1);f>=56320&&f<=57343&&(l=(o-55296<<10)+65536|f-56320,d=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,d&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const zr=class{constructor(e){if(qt(this,"id",++zr.LAST_ID),qt(this,"_onigBinding"),qt(this,"content"),qt(this,"utf16Length"),qt(this,"utf8Length"),qt(this,"utf16OffsetToUtf8"),qt(this,"utf8OffsetToUtf16"),qt(this,"ptr"),!an)throw new T_("Must invoke loadWasm first.");this._onigBinding=an,this.content=e;const t=new Kh(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!zr._sharedPtrInUse?(zr._sharedPtr||(zr._sharedPtr=an.omalloc(1e4)),zr._sharedPtrInUse=!0,an.HEAPU8.set(t.utf8Value,zr._sharedPtr),this.ptr=zr._sharedPtr):this.ptr=t.createString(an)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===zr._sharedPtr?zr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let od=zr;qt(od,"LAST_ID",0);qt(od,"_sharedPtr",0);qt(od,"_sharedPtrInUse",!1);class BW{constructor(t){if(qt(this,"_onigBinding"),qt(this,"_ptr"),!an)throw new T_("Must invoke loadWasm first.");const n=[],r=[];for(let d=0,f=t.length;d<f;d++){const h=new Kh(t[d]);n[d]=h.createString(an),r[d]=h.utf8Length}const u=an.omalloc(4*t.length);an.HEAPU32.set(n,u/4);const o=an.omalloc(4*t.length);an.HEAPU32.set(r,o/4);const l=an.createOnigScanner(u,o,t.length);for(let d=0,f=t.length;d<f;d++)an.ofree(n[d]);an.ofree(o),an.ofree(u),l===0&&xW(an),this._onigBinding=an,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let u=0;if(typeof r=="number"&&(u=r),typeof t=="string"){t=new od(t);const o=this._findNextMatchSync(t,n,!1,u);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,u)}_findNextMatchSync(t,n,r,u){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),u);if(l===0)return null;const d=o.HEAPU32;let f=l/4;const h=d[f++],m=d[f++],E=[];for(let g=0;g<m;g++){const _=t.convertUtf8OffsetToUtf16(d[f++]),S=t.convertUtf8OffsetToUtf16(d[f++]);E[g]={start:_,end:S,length:S-_}}return{index:h,captureIndices:E}}}function FW(e){return typeof e.instantiator=="function"}function OW(e){return typeof e.default=="function"}function LW(e){return typeof e.data<"u"}function wW(e){return typeof Response<"u"&&e instanceof Response}function MW(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let G0;function PW(e){if(G0)return G0;async function t(){an=await TW(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),FW(r)?r=await r.instantiator(n):OW(r)?r=await r.default(n):(LW(r)&&(r=r.data),wW(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await HW(r)(n):r=await UW(r)(n):MW(r)?r=await hE(r)(n):r instanceof WebAssembly.Module?r=await hE(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await hE(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return G0=t(),G0}function hE(e){return t=>WebAssembly.instantiate(e,t)}function HW(e){return t=>WebAssembly.instantiateStreaming(e,t)}function UW(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let kW;function GW(){return kW}async function xx(e){return e&&await PW(e),{createScanner(t){return new BW(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new od(t)}}}function VW(e){return D_(e)}function D_(e){return Array.isArray(e)?jW(e):e instanceof RegExp?e:typeof e=="object"?zW(e):e}function jW(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=D_(e[n]);return t}function zW(e){let t={};for(let n in e)t[n]=D_(e[n]);return t}function Bx(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Fx(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Fx(e.substring(0,e.length-1)):e.substr(~t+1)}var AE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,V0=class{static hasCaptures(e){return e===null?!1:(AE.lastIndex=0,AE.test(e))}static replaceCaptures(e,t,n){return e.replace(AE,(r,u,o,l)=>{let d=n[parseInt(u||o,10)];if(d){let f=t.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(l){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return r})}};function Ox(e,t){return e<t?-1:e>t?1:0}function Lx(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let u=0;u<n;u++){let o=Ox(e[u],t[u]);if(o!==0)return o}return 0}return n-r}function Pv(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function wx(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Mx=class{constructor(e){oe(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Yf=class{constructor(e,t,n){oe(this,"_cachedMatchRoot",new Mx(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(YW(e),t)}static createFromParsedTheme(e,t){return WW(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(u=>KW(e.parent,u.parentScopes));return r?new Px(r.fontStyle,r.foreground,r.background):null}},mE=class ff{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new ff(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new ff(n,t[r]);return n}push(t){return new ff(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function KW(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],u=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],u=!0}for(;e&&!$W(e.scopeName,r);){if(u)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function $W(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Px=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function YW(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let u=0,o=t.length;u<o;u++){let l=t[u];if(!l.settings)continue;let d;if(typeof l.scope=="string"){let E=l.scope;E=E.replace(/^[,]+/,""),E=E.replace(/[,]+$/,""),d=E.split(",")}else Array.isArray(l.scope)?d=l.scope:d=[""];let f=-1;if(typeof l.settings.fontStyle=="string"){f=0;let E=l.settings.fontStyle.split(" ");for(let g=0,_=E.length;g<_;g++)switch(E[g]){case"italic":f=f|1;break;case"bold":f=f|2;break;case"underline":f=f|4;break;case"strikethrough":f=f|8;break}}let h=null;typeof l.settings.foreground=="string"&&Pv(l.settings.foreground)&&(h=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&Pv(l.settings.background)&&(m=l.settings.background);for(let E=0,g=d.length;E<g;E++){let S=d[E].trim().split(" "),C=S[S.length-1],v=null;S.length>1&&(v=S.slice(0,S.length-1),v.reverse()),n[r++]=new ZW(C,v,u,f,h,m)}}return n}var ZW=class{constructor(e,t,n,r,u,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=u,this.background=o}},Fi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Fi||{});function WW(e,t){e.sort((f,h)=>{let m=Ox(f.scope,h.scope);return m!==0||(m=Lx(f.parentScopes,h.parentScopes),m!==0)?m:f.index-h.index});let n=0,r="#000000",u="#ffffff";for(;e.length>=1&&e[0].scope==="";){let f=e.shift();f.fontStyle!==-1&&(n=f.fontStyle),f.foreground!==null&&(r=f.foreground),f.background!==null&&(u=f.background)}let o=new qW(t),l=new Px(n,o.getId(r),o.getId(u)),d=new QW(new Dg(0,null,-1,0,0),[]);for(let f=0,h=e.length;f<h;f++){let m=e[f];d.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new Yf(o,l,d)}var qW=class{constructor(e){oe(this,"_isFrozen");oe(this,"_lastColorId");oe(this,"_id2color");oe(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},XW=Object.freeze([]),Dg=class Hx{constructor(t,n,r,u,o){oe(this,"scopeDepth");oe(this,"parentScopes");oe(this,"fontStyle");oe(this,"foreground");oe(this,"background");this.scopeDepth=t,this.parentScopes=n||XW,this.fontStyle=r,this.foreground=u,this.background=o}clone(){return new Hx(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,u=t.length;r<u;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,u){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),u!==0&&(this.background=u)}},QW=class bg{constructor(t,n=[],r={}){oe(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,u=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[u]===">"&&u++,!(r>=t.parentScopes.length||u>=n.parentScopes.length);){const o=n.parentScopes[u].length-t.parentScopes[r].length;if(o!==0)return o;r++,u++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),u,o;if(r===-1?(u=t,o=""):(u=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(u))return this._children[u].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(bg._cmpBySpecificity),n}insert(t,n,r,u,o,l){if(n===""){this._doInsertHere(t,r,u,o,l);return}let d=n.indexOf("."),f,h;d===-1?(f=n,h=""):(f=n.substring(0,d),h=n.substring(d+1));let m;this._children.hasOwnProperty(f)?m=this._children[f]:(m=new bg(this._mainRule.clone(),Dg.cloneArr(this._rulesWithParentScopes)),this._children[f]=m),m.insert(t+1,h,r,u,o,l)}_doInsertHere(t,n,r,u,o){if(n===null){this._mainRule.acceptOverwrite(t,r,u,o);return}for(let l=0,d=this._rulesWithParentScopes.length;l<d;l++){let f=this._rulesWithParentScopes[l];if(Lx(f.parentScopes,n)===0){f.acceptOverwrite(t,r,u,o);return}}r===-1&&(r=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Dg(t,n,r,u,o))}},ao=class mr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=mr.getLanguageId(t),r=mr.getTokenType(t),u=mr.getFontStyle(t),o=mr.getForeground(t),l=mr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:u,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,u,o,l,d){let f=mr.getLanguageId(t),h=mr.getTokenType(t),m=mr.containsBalancedBrackets(t)?1:0,E=mr.getFontStyle(t),g=mr.getForeground(t),_=mr.getBackground(t);return n!==0&&(f=n),r!==8&&(h=r),u!==null&&(m=u?1:0),o!==-1&&(E=o),l!==0&&(g=l),d!==0&&(_=d),(f<<0|h<<8|m<<10|E<<11|g<<15|_<<24)>>>0}};function Zf(e,t){const n=[],r=JW(e);let u=r.next();for(;u!==null;){let f=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":f=1;break;case"L":f=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=r.next()}let h=l();if(n.push({matcher:h,priority:f}),u!==",")break;u=r.next()}return n;function o(){if(u==="-"){u=r.next();const f=o();return h=>!!f&&!f(h)}if(u==="("){u=r.next();const f=d();return u===")"&&(u=r.next()),f}if(Hv(u)){const f=[];do f.push(u),u=r.next();while(Hv(u));return h=>t(f,h)}return null}function l(){const f=[];let h=o();for(;h;)f.push(h),h=o();return m=>f.every(E=>E(m))}function d(){const f=[];let h=l();for(;h&&(f.push(h),u==="|"||u===",");){do u=r.next();while(u==="|"||u===",");h=l()}return m=>f.some(E=>E(m))}}function Hv(e){return!!e&&!!e.match(/[\w\.:]+/)}function JW(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Ux(e){typeof e.dispose=="function"&&e.dispose()}var Fc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},eq=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},tq=class{constructor(){oe(this,"_references",[]);oe(this,"_seenReferenceKeys",new Set);oe(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},nq=class{constructor(e,t){oe(this,"seenFullScopeRequests",new Set);oe(this,"seenPartialScopeRequests",new Set);oe(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Fc(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new tq;for(const n of e)rq(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Fc){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function rq(e,t,n,r){const u=n.lookup(e.scopeName);if(!u){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Fc?hf({baseGrammar:o,selfGrammar:u},r):xg(e.ruleName,{baseGrammar:o,selfGrammar:u,repository:u.repository},r);const l=n.injections(e.scopeName);if(l)for(const d of l)r.add(new Fc(d))}function xg(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Wf([r],t,n)}}function hf(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Wf(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Wf(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Wf(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const u=r.repository?Bx({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Wf(r.patterns,{...t,repository:u},n);const o=r.include;if(!o)continue;const l=kx(o);switch(l.kind){case 0:hf({...t,selfGrammar:t.baseGrammar},n);break;case 1:hf(t,n);break;case 2:xg(l.ruleName,{...t,repository:u},n);break;case 3:case 4:const d=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(d){const f={baseGrammar:t.baseGrammar,selfGrammar:d,repository:u};l.kind===4?xg(l.ruleName,f,n):hf(f,n)}else l.kind===4?n.add(new eq(l.scopeName,l.ruleName)):n.add(new Fc(l.scopeName));break}}}var iq=class{constructor(){oe(this,"kind",0)}},uq=class{constructor(){oe(this,"kind",1)}},aq=class{constructor(e){oe(this,"kind",2);this.ruleName=e}},sq=class{constructor(e){oe(this,"kind",3);this.scopeName=e}},oq=class{constructor(e,t){oe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function kx(e){if(e==="$base")return new iq;if(e==="$self")return new uq;const t=e.indexOf("#");if(t===-1)return new sq(e);if(t===0)return new aq(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new oq(n,r)}}var lq=/\\(\d+)/,Uv=/\\(\d+)/g,cq=-1,Gx=-2;var ld=class{constructor(e,t,n,r){oe(this,"$location");oe(this,"id");oe(this,"_nameIsCapturing");oe(this,"_name");oe(this,"_contentNameIsCapturing");oe(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=V0.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=V0.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Fx(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:V0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:V0.replaceCaptures(this._contentName,e,t)}},dq=class extends ld{constructor(t,n,r,u,o){super(t,n,r,u);oe(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,u){throw new Error("Not supported!")}},fq=class extends ld{constructor(t,n,r,u,o){super(t,n,r,null);oe(this,"_match");oe(this,"captures");oe(this,"_cachedCompiledPatterns");this._match=new Oc(u,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Lc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kv=class extends ld{constructor(t,n,r,u,o){super(t,n,r,u);oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Lc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Bg=class extends ld{constructor(t,n,r,u,o,l,d,f,h,m){super(t,n,r,u);oe(this,"_begin");oe(this,"beginCaptures");oe(this,"_end");oe(this,"endHasBackReferences");oe(this,"endCaptures");oe(this,"applyEndPatternLast");oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");this._begin=new Oc(o,this.id),this.beginCaptures=l,this._end=new Oc(d||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=f,this.applyEndPatternLast=h||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,u)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Lc;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},qf=class extends ld{constructor(t,n,r,u,o,l,d,f,h){super(t,n,r,u);oe(this,"_begin");oe(this,"beginCaptures");oe(this,"whileCaptures");oe(this,"_while");oe(this,"whileHasBackReferences");oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");oe(this,"_cachedCompiledWhilePatterns");this._begin=new Oc(o,this.id),this.beginCaptures=l,this.whileCaptures=f,this._while=new Oc(d,Gx),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Lc;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,u){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,u)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Lc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Vx=class _n{static createCaptureRule(t,n,r,u,o){return t.registerRule(l=>new dq(n,l,r,u,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(u=>{if(t.id=u,t.match)return new fq(t.$vscodeTextmateLocation,t.id,t.name,t.match,_n._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Bx({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new kv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,_n._compilePatterns(o,n,r))}return t.while?new qf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_n._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,_n._compileCaptures(t.whileCaptures||t.captures,n,r),_n._compilePatterns(t.patterns,n,r)):new Bg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_n._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,_n._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,_n._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let u=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);d>o&&(o=d)}for(let l=0;l<=o;l++)u[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);let f=0;t[l].patterns&&(f=_n.getCompiledRuleId(t[l],n,r)),u[d]=_n.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,f)}}return u}static _compilePatterns(t,n,r){let u=[];if(t)for(let o=0,l=t.length;o<l;o++){const d=t[o];let f=-1;if(d.include){const h=kx(d.include);switch(h.kind){case 0:case 1:f=_n.getCompiledRuleId(r[d.include],n,r);break;case 2:let m=r[h.ruleName];m&&(f=_n.getCompiledRuleId(m,n,r));break;case 3:case 4:const E=h.scopeName,g=h.kind===4?h.ruleName:null,_=n.getExternalGrammar(E,r);if(_)if(g){let S=_.repository[g];S&&(f=_n.getCompiledRuleId(S,n,_.repository))}else f=_n.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else f=_n.getCompiledRuleId(d,n,r);if(f!==-1){const h=n.getRule(f);let m=!1;if((h instanceof kv||h instanceof Bg||h instanceof qf)&&h.hasMissingPatterns&&h.patterns.length===0&&(m=!0),m)continue;u.push(f)}}return{patterns:u,hasMissingPatterns:(t?t.length:0)!==u.length}}},Oc=class jx{constructor(t,n){oe(this,"source");oe(this,"ruleId");oe(this,"hasAnchor");oe(this,"hasBackReferences");oe(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let u=0,o=[],l=!1;for(let d=0;d<r;d++)if(t.charAt(d)==="\\"&&d+1<r){const h=t.charAt(d+1);h==="z"?(o.push(t.substring(u,d)),o.push("$(?!\\n)(?<!\\n)"),u=d+2):(h==="A"||h==="G")&&(l=!0),d++}this.hasAnchor=l,u===0?this.source=t:(o.push(t.substring(u,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=lq.test(this.source):this.hasBackReferences=!1}clone(){return new jx(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(u=>t.substring(u.start,u.end));return Uv.lastIndex=0,this.source.replace(Uv,(u,o)=>wx(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],u=[],o,l,d,f;for(o=0,l=this.source.length;o<l;o++)d=this.source.charAt(o),t[o]=d,n[o]=d,r[o]=d,u[o]=d,d==="\\"&&o+1<l&&(f=this.source.charAt(o+1),f==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",u[o+1]="A"):f==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",u[o+1]="G"):(t[o+1]=f,n[o+1]=f,r[o+1]=f,u[o+1]=f),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:u.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Lc=class{constructor(){oe(this,"_items");oe(this,"_hasAnchors");oe(this,"_cached");oe(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Gv(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(u=>u.resolveAnchors(t,n));return new Gv(e,r,this._items.map(u=>u.ruleId))}},Gv=class{constructor(e,t,n){oe(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
274
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},pE=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Bi,hq=(Bi=class{constructor(t,n){oe(this,"_defaultAttributes");oe(this,"_embeddedLanguagesMatcher");oe(this,"_getBasicScopeAttributes",new Mx(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new pE(n,r)}));this._defaultAttributes=new pE(t,8),this._embeddedLanguagesMatcher=new Aq(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Bi._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Bi.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},oe(Bi,"_NULL_SCOPE_METADATA",new pE(0,0)),oe(Bi,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Bi),Aq=class{constructor(e){oe(this,"values");oe(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>wx(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Vv=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function zx(e,t,n,r,u,o,l,d){const f=t.content.length;let h=!1,m=-1;if(l){const _=mq(e,t,n,r,u,o);u=_.stack,r=_.linePos,n=_.isFirstLine,m=_.anchorPosition}const E=Date.now();for(;!h;){if(d!==0&&Date.now()-E>d)return new Vv(u,!0);g()}return new Vv(u,!1);function g(){const _=pq(e,t,n,r,u,m);if(!_){o.produce(u,f),h=!0;return}const S=_.captureIndices,C=_.matchedRuleId,v=S&&S.length>0?S[0].end>r:!1;if(C===cq){const R=u.getRule(e);o.produce(u,S[0].start),u=u.withContentNameScopesList(u.nameScopesList),Yl(e,t,n,u,o,R.endCaptures,S),o.produce(u,S[0].end);const T=u;if(u=u.parent,m=T.getAnchorPos(),!v&&T.getEnterPos()===r){u=T,o.produce(u,f),h=!0;return}}else{const R=e.getRule(C);o.produce(u,S[0].start);const T=u,b=R.getName(t.content,S),L=u.contentNameScopesList.pushAttributed(b,e);if(u=u.push(C,r,m,S[0].end===f,null,L,L),R instanceof Bg){const x=R;Yl(e,t,n,u,o,x.beginCaptures,S),o.produce(u,S[0].end),m=S[0].end;const B=x.getContentName(t.content,S),O=L.pushAttributed(B,e);if(u=u.withContentNameScopesList(O),x.endHasBackReferences&&(u=u.withEndRule(x.getEndWithResolvedBackReferences(t.content,S))),!v&&T.hasSameRuleAs(u)){u=u.pop(),o.produce(u,f),h=!0;return}}else if(R instanceof qf){const x=R;Yl(e,t,n,u,o,x.beginCaptures,S),o.produce(u,S[0].end),m=S[0].end;const B=x.getContentName(t.content,S),O=L.pushAttributed(B,e);if(u=u.withContentNameScopesList(O),x.whileHasBackReferences&&(u=u.withEndRule(x.getWhileWithResolvedBackReferences(t.content,S))),!v&&T.hasSameRuleAs(u)){u=u.pop(),o.produce(u,f),h=!0;return}}else if(Yl(e,t,n,u,o,R.captures,S),o.produce(u,S[0].end),u=u.pop(),!v){u=u.safePop(),o.produce(u,f),h=!0;return}}S[0].end>r&&(r=S[0].end,n=!1)}}function mq(e,t,n,r,u,o){let l=u.beginRuleCapturedEOL?0:-1;const d=[];for(let f=u;f;f=f.pop()){const h=f.getRule(e);h instanceof qf&&d.push({rule:h,stack:f})}for(let f=d.pop();f;f=d.pop()){const{ruleScanner:h,findOptions:m}=_q(f.rule,e,f.stack.endRule,n,r===l),E=h.findNextMatchSync(t,r,m);if(E){if(E.ruleId!==Gx){u=f.stack.pop();break}E.captureIndices&&E.captureIndices.length&&(o.produce(f.stack,E.captureIndices[0].start),Yl(e,t,n,f.stack,o,f.rule.whileCaptures,E.captureIndices),o.produce(f.stack,E.captureIndices[0].end),l=E.captureIndices[0].end,E.captureIndices[0].end>r&&(r=E.captureIndices[0].end,n=!1))}else{u=f.stack.pop();break}}return{stack:u,linePos:r,anchorPosition:l,isFirstLine:n}}function pq(e,t,n,r,u,o){const l=Eq(e,t,n,r,u,o),d=e.getInjections();if(d.length===0)return l;const f=gq(d,e,t,n,r,u,o);if(!f)return l;if(!l)return f;const h=l.captureIndices[0].start,m=f.captureIndices[0].start;return m<h||f.priorityMatch&&m===h?f:l}function Eq(e,t,n,r,u,o){const l=u.getRule(e),{ruleScanner:d,findOptions:f}=Kx(l,e,u.endRule,n,r===o),h=d.findNextMatchSync(t,r,f);return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}function gq(e,t,n,r,u,o,l){let d=Number.MAX_VALUE,f=null,h,m=0;const E=o.contentNameScopesList.getScopeNames();for(let g=0,_=e.length;g<_;g++){const S=e[g];if(!S.matcher(E))continue;const C=t.getRule(S.ruleId),{ruleScanner:v,findOptions:R}=Kx(C,t,null,r,u===l),T=v.findNextMatchSync(n,u,R);if(!T)continue;const b=T.captureIndices[0].start;if(!(b>=d)&&(d=b,f=T.captureIndices,h=T.ruleId,m=S.priority,d===u))break}return f?{priorityMatch:m===-1,captureIndices:f,matchedRuleId:h}:null}function Kx(e,t,n,r,u){return{ruleScanner:e.compileAG(t,n,r,u),findOptions:0}}function _q(e,t,n,r,u){return{ruleScanner:e.compileWhileAG(t,n,r,u),findOptions:0}}function Yl(e,t,n,r,u,o,l){if(o.length===0)return;const d=t.content,f=Math.min(o.length,l.length),h=[],m=l[0].end;for(let E=0;E<f;E++){const g=o[E];if(g===null)continue;const _=l[E];if(_.length===0)continue;if(_.start>m)break;for(;h.length>0&&h[h.length-1].endPos<=_.start;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?u.produceFromScopes(h[h.length-1].scopes,_.start):u.produce(r,_.start),g.retokenizeCapturedWithRuleId){const C=g.getName(d,l),v=r.contentNameScopesList.pushAttributed(C,e),R=g.getContentName(d,l),T=v.pushAttributed(R,e),b=r.push(g.retokenizeCapturedWithRuleId,_.start,-1,!1,null,v,T),L=e.createOnigString(d.substring(0,_.end));zx(e,L,n&&_.start===0,_.start,b,u,!1,0),Ux(L);continue}const S=g.getName(d,l);if(S!==null){const v=(h.length>0?h[h.length-1].scopes:r.contentNameScopesList).pushAttributed(S,e);h.push(new Sq(v,_.end))}}for(;h.length>0;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var Sq=class{constructor(e,t){oe(this,"scopes");oe(this,"endPos");this.scopes=e,this.endPos=t}};function Nq(e,t,n,r,u,o,l,d){return new yq(e,t,n,r,u,o,l,d)}function jv(e,t,n,r,u){const o=Zf(t,Xf),l=Vx.getCompiledRuleId(n,r,u.repository);for(const d of o)e.push({debugSelector:t,matcher:d.matcher,ruleId:l,grammar:u,priority:d.priority})}function Xf(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let u=n;u<t.length;u++)if(Iq(t[u],r))return n=u+1,!0;return!1})}function Iq(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var yq=class{constructor(e,t,n,r,u,o,l,d){oe(this,"_rootId");oe(this,"_lastRuleId");oe(this,"_ruleId2desc");oe(this,"_includedGrammars");oe(this,"_grammarRepository");oe(this,"_grammar");oe(this,"_injections");oe(this,"_basicScopeAttributesProvider");oe(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=d,this._basicScopeAttributesProvider=new hq(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=zv(t,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const f of Object.keys(u)){const h=Zf(f,Xf);for(const m of h)this._tokenTypeMatchers.push({matcher:m.matcher,type:u[f]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:u=>u===this._rootScopeName?this._grammar:this.getExternalGrammar(u),injections:u=>this._grammarRepository.injections(u)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const u=r.injections;if(u)for(let l in u)jv(t,l,u[l],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(l=>{const d=this.getExternalGrammar(l);if(d){const f=d.injectionSelector;f&&jv(t,f,d,this,d)}})}return t.sort((u,o)=>u.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=zv(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Vx.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let u;if(!t||t===Fg.NULL){u=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),E=ao.set(0,h.languageId,h.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),g=this.getRule(this._rootId).getName(null,null);let _;g?_=uc.createRootAndLookUpScopeName(g,E,this):_=uc.createRoot("unknown",E),t=new Fg(null,this._rootId,-1,-1,!1,null,_,_)}else u=!1,t.reset();e=e+`
|
|
275
|
+
`;const o=this.createOnigString(e),l=o.content.length,d=new vq(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=zx(this,o,u,0,t,d,!0,r);return Ux(o),{lineLength:l,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function zv(e,t){return e=VW(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var uc=class Kr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,u=(t==null?void 0:t.scopePath)??null;for(const o of n)u=mE.push(u,o.scopeNames),r=new Kr(r,u,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Kr(null,new mE(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const u=r.getMetadataForScope(t),o=new mE(null,t),l=r.themeProvider.themeMatch(o),d=Kr.mergeAttributes(n,u,l);return new Kr(null,o,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Kr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let u=-1,o=0,l=0;return r!==null&&(u=r.fontStyle,o=r.foregroundId,l=r.backgroundId),ao.set(t,n.languageId,n.tokenType,null,u,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Kr._pushAttributed(this,t,n);const r=t.split(/ /g);let u=this;for(const o of r)u=Kr._pushAttributed(u,o,n);return u}static _pushAttributed(t,n,r){const u=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),d=Kr.mergeAttributes(t.tokenAttributes,u,l);return new Kr(t,o,d)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var u;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((u=r.parent)==null?void 0:u.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},gr,Fg=(gr=class{constructor(t,n,r,u,o,l,d,f){oe(this,"_stackElementBrand");oe(this,"_enterPos");oe(this,"_anchorPos");oe(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=d,this.contentNameScopesList=f,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=u}equals(t){return t===null?!1:gr._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?uc.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){gr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,u,o,l,d){return new gr(this,t,n,r,u,o,l,d)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,u;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new gr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=uc.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new gr(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,uc.fromExtension(r,n.contentNameScopesList))}},oe(gr,"NULL",new gr(null,0,0,0,!1,null,null,null)),gr),Cq=class{constructor(e,t){oe(this,"balancedBracketScopes");oe(this,"unbalancedBracketScopes");oe(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Zf(n,Xf).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Zf(n,Xf).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},vq=class{constructor(e,t,n,r){oe(this,"_emitBinaryTokens");oe(this,"_lineText");oe(this,"_tokens");oe(this,"_binaryTokens");oe(this,"_lastTokenEndIndex");oe(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let u=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=(e==null?void 0:e.getScopeNames())??[];for(const d of this._tokenTypeOverrides)d.matcher(l)&&(u=ao.set(u,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(u=ao.set(u,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,u=this._binaryTokens.length;r<u;r++)n[r]=this._binaryTokens[r];return n}},Rq=class{constructor(e,t){oe(this,"_grammars",new Map);oe(this,"_rawGrammars",new Map);oe(this,"_injectionGrammars",new Map);oe(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,u){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Nq(e,o,t,n,r,u,this,this._onigLib))}return this._grammars.get(e)}},Tq=class{constructor(t){oe(this,"_options");oe(this,"_syncRegistry");oe(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Rq(Yf.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Yf.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new Cq(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,u,o){const l=new nq(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(d=>this._loadSingleGrammar(d.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,u,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,u=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,u)}_grammarForScopeName(t,n=0,r=null,u=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,u,o)}},Og=Fg.NULL;const Dq=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class cd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}cd.prototype.normal={};cd.prototype.property={};cd.prototype.space=void 0;function $x(e,t){const n={},r={};for(const u of e)Object.assign(n,u.property),Object.assign(r,u.normal);return new cd(n,r,t)}function Lg(e){return e.toLowerCase()}class Un{constructor(t,n){this.attribute=n,this.property=t}}Un.prototype.attribute="";Un.prototype.booleanish=!1;Un.prototype.boolean=!1;Un.prototype.commaOrSpaceSeparated=!1;Un.prototype.commaSeparated=!1;Un.prototype.defined=!1;Un.prototype.mustUseProperty=!1;Un.prototype.number=!1;Un.prototype.overloadedBoolean=!1;Un.prototype.property="";Un.prototype.spaceSeparated=!1;Un.prototype.space=void 0;let bq=0;const We=za(),$t=za(),Yx=za(),ge=za(),Nt=za(),Zs=za(),Zn=za();function za(){return 2**++bq}const wg=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:$t,commaOrSpaceSeparated:Zn,commaSeparated:Zs,number:ge,overloadedBoolean:Yx,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),EE=Object.keys(wg);class b_ extends Un{constructor(t,n,r,u){let o=-1;if(super(t,n),Kv(this,"space",u),typeof r=="number")for(;++o<EE.length;){const l=EE[o];Kv(this,EE[o],(r&wg[l])===wg[l])}}}b_.prototype.defined=!0;function Kv(e,t,n){n&&(e[t]=n)}function Co(e){const t={},n={};for(const[r,u]of Object.entries(e.properties)){const o=new b_(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Lg(r)]=r,n[Lg(o.attribute)]=r}return new cd(t,n,e.space)}const Zx=Co({properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:Nt,ariaCurrent:null,ariaDescribedBy:Nt,ariaDetails:null,ariaDisabled:$t,ariaDropEffect:Nt,ariaErrorMessage:null,ariaExpanded:$t,ariaFlowTo:Nt,ariaGrabbed:$t,ariaHasPopup:null,ariaHidden:$t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nt,ariaLevel:ge,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:Nt,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:$t,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Wx(e,t){return t in e?e[t]:t}function qx(e,t){return Wx(e,t.toLowerCase())}const xq=Co({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zs,acceptCharset:Nt,accessKey:Nt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Nt,autoFocus:We,autoPlay:We,blocking:Nt,capture:null,charSet:null,checked:We,cite:null,className:Nt,cols:ge,colSpan:null,content:null,contentEditable:$t,controls:We,controlsList:Nt,coords:ge|Zs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Yx,draggable:$t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Nt,height:ge,hidden:We,high:ge,href:null,hrefLang:null,htmlFor:Nt,httpEquiv:Nt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Nt,itemRef:Nt,itemScope:We,itemType:Nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:ge,pattern:null,ping:Nt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Nt,required:We,reversed:We,rows:ge,rowSpan:ge,sandbox:Nt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:$t,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:qx}),Bq=Co({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Zn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:Nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Zs,g2:Zs,glyphName:Zs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ge,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zn,rev:Zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zn,requiredFeatures:Zn,requiredFonts:Zn,requiredFormats:Zn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Wx}),Xx=Co({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Qx=Co({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qx}),Jx=Co({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Fq=/[A-Z]/g,$v=/-[a-z]/g,Oq=/^data[-\w.:]+$/i;function Lq(e,t){const n=Lg(t);let r=t,u=Un;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Oq.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace($v,Mq);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!$v.test(o)){let l=o.replace(Fq,wq);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}u=b_}return new u(r,t)}function wq(e){return"-"+e.toLowerCase()}function Mq(e){return e.charAt(1).toUpperCase()}const Pq=$x([Zx,xq,Xx,Qx,Jx],"html"),eB=$x([Zx,Bq,Xx,Qx,Jx],"svg"),Yv={}.hasOwnProperty;function Hq(e,t){const n=t||{};function r(u,...o){let l=r.invalid;const d=r.handlers;if(u&&Yv.call(u,e)){const f=String(u[e]);l=Yv.call(d,f)?d[f]:r.unknown}if(l)return l.call(this,u,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Uq=/["&'<>`]/g,kq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gq=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Vq=/[|\\{}()[\]^$+*?.]/g,Zv=new WeakMap;function jq(e,t){if(e=e.replace(t.subset?zq(t.subset):Uq,r),t.subset||t.escapeOnly)return e;return e.replace(kq,n).replace(Gq,r);function n(u,o,l){return t.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(u,o,l){return t.format(u.charCodeAt(0),l.charCodeAt(o+1),t)}}function zq(e){let t=Zv.get(e);return t||(t=Kq(e),Zv.set(e,t)),t}function Kq(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Vq,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const $q=/[\dA-Fa-f]/;function Yq(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!$q.test(String.fromCharCode(t))?r:r+";"}const Zq=/\d/;function Wq(e,t,n){const r="&#"+String(e);return n&&t&&!Zq.test(String.fromCharCode(t))?r:r+";"}const qq=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],gE={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Xq=["cent","copy","divide","gt","lt","not","para","times"],tB={}.hasOwnProperty,Mg={};let j0;for(j0 in gE)tB.call(gE,j0)&&(Mg[gE[j0]]=j0);const Qq=/[^\dA-Za-z]/;function Jq(e,t,n,r){const u=String.fromCharCode(e);if(tB.call(Mg,u)){const o=Mg[u],l="&"+o;return n&&qq.includes(o)&&!Xq.includes(o)&&(!r||t&&t!==61&&Qq.test(String.fromCharCode(t)))?l:l+";"}return""}function eX(e,t,n){let r=Yq(e,t,n.omitOptionalSemicolons),u;if((n.useNamedReferences||n.useShortestReferences)&&(u=Jq(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!u)&&n.useShortestReferences){const o=Wq(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return u&&(!n.useShortestReferences||u.length<r.length)?u:r}function Ws(e,t){return jq(e,Object.assign({format:eX},t))}const tX=/^>|^->|<!--|-->|--!>|<!-$/g,nX=[">"],rX=["<",">"];function iX(e,t,n,r){return r.settings.bogusComments?"<?"+Ws(e.value,Object.assign({},r.settings.characterReferences,{subset:nX}))+">":"<!--"+e.value.replace(tX,u)+"-->";function u(o){return Ws(o,Object.assign({},r.settings.characterReferences,{subset:rX}))}}function uX(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Wv(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,u=n.indexOf(t);for(;u!==-1;)r++,u=n.indexOf(t,u+t.length);return r}function aX(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function sX(e){return e.join(" ").trim()}const oX=/[ \t\n\f\r]/g;function x_(e){return typeof e=="object"?e.type==="text"?qv(e.value):!1:qv(e)}function qv(e){return e.replace(oX,"")===""}const Qt=rB(1),nB=rB(-1),lX=[];function rB(e){return t;function t(n,r,u){const o=n?n.children:lX;let l=(r||0)+e,d=o[l];if(!u)for(;d&&x_(d);)l+=e,d=o[l];return d}}const cX={}.hasOwnProperty;function iB(e){return t;function t(n,r,u){return cX.call(e,n.tagName)&&e[n.tagName](n,r,u)}}const B_=iB({body:fX,caption:_E,colgroup:_E,dd:pX,dt:mX,head:_E,html:dX,li:AX,optgroup:EX,option:gX,p:hX,rp:Xv,rt:Xv,tbody:SX,td:Qv,tfoot:NX,th:Qv,thead:_X,tr:IX});function _E(e,t,n){const r=Qt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&x_(r.value.charAt(0)))}function dX(e,t,n){const r=Qt(n,t);return!r||r.type!=="comment"}function fX(e,t,n){const r=Qt(n,t);return!r||r.type!=="comment"}function hX(e,t,n){const r=Qt(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function AX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function mX(e,t,n){const r=Qt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function pX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Xv(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function EX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function gX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function _X(e,t,n){const r=Qt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function SX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function NX(e,t,n){return!Qt(n,t)}function IX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Qv(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const yX=iB({body:RX,colgroup:TX,head:vX,html:CX,tbody:DX});function CX(e){const t=Qt(e,-1);return!t||t.type!=="comment"}function vX(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function RX(e){const t=Qt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&x_(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function TX(e,t,n){const r=nB(n,t),u=Qt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&B_(r,n.children.indexOf(r),n)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function DX(e,t,n){const r=nB(n,t),u=Qt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&B_(r,n.children.indexOf(r),n)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const z0={name:[[`
|
|
276
|
+
\f\r &/=>`.split(""),`
|
|
277
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
278
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
279
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
280
|
+
\f\r &>`.split(""),`\0
|
|
281
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
282
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
283
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function bX(e,t,n,r){const u=r.schema,o=u.space==="svg"?!1:r.settings.omitOptionalTags;let l=u.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const d=[];let f;u.space==="html"&&e.tagName==="svg"&&(r.schema=eB);const h=xX(r,e.properties),m=r.all(u.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=u,m&&(l=!1),(h||!o||!yX(e,t,n))&&(d.push("<",e.tagName,h?" "+h:""),l&&(u.space==="svg"||r.settings.closeSelfClosing)&&(f=h.charAt(h.length-1),(!r.settings.tightSelfClosing||f==="/"||f&&f!=='"'&&f!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(m),!l&&(!o||!B_(e,t,n))&&d.push("</"+e.tagName+">"),d.join("")}function xX(e,t){const n=[];let r=-1,u;if(t){for(u in t)if(t[u]!==null&&t[u]!==void 0){const o=BX(e,u,t[u]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function BX(e,t,n){const r=Lq(e.schema,t),u=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,d;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const f=Ws(r.attribute,Object.assign({},e.settings.characterReferences,{subset:z0.name[u][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?aX:sX)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?f:(e.settings.preferUnquoted&&(d=Ws(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:z0.unquoted[u][o]}))),d!==n&&(e.settings.quoteSmart&&Wv(n,l)>Wv(n,e.alternative)&&(l=e.alternative),d=l+Ws(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?z0.single:z0.double)[u][o],attribute:!0}))+l),f+(d&&"="+d))}const FX=["<","&"];function uB(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ws(e.value,Object.assign({},r.settings.characterReferences,{subset:FX}))}function OX(e,t,n,r){return r.settings.allowDangerousHtml?e.value:uB(e,t,n,r)}function LX(e,t,n,r){return r.all(e)}const wX=Hq("type",{invalid:MX,unknown:PX,handlers:{comment:iX,doctype:uX,element:bX,raw:OX,root:LX,text:uB}});function MX(e){throw new Error("Expected node, not `"+e+"`")}function PX(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const HX={},UX={},kX=[];function GX(e,t){const n=HX,r=n.quote||'"',u=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:VX,all:jX,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Dq,characterReferences:n.characterReferences||UX,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?eB:Pq,quote:r,alternative:u}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function VX(e,t,n){return wX(e,t,n,this)}function jX(e){const t=[],n=e&&e.children||kX;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function zX(e){return Array.isArray(e)?e:[e]}function $h(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const u=[];for(let l=0;l<n.length;l+=2){const d=t?n[l]+(n[l+1]||""):n[l];u.push([d,r]),r+=n[l].length,r+=((o=n[l+1])==null?void 0:o.length)||0}return u}function F_(e){return!e||["plaintext","txt","text","plain"].includes(e)}function aB(e){return e==="ansi"||F_(e)}function O_(e){return e==="none"}function sB(e){return O_(e)}function oB(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const u of n)u&&!e.properties.class.includes(u)&&e.properties.class.push(u);return e}function KX(e,t){let n=0;const r=[];for(const u of t)u>n&&r.push({...e,content:e.content.slice(n,u),offset:e.offset+n}),n=u;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function $X(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,u)=>r-u);return n.length?e.map(r=>r.flatMap(u=>{const o=n.filter(l=>u.offset<l&&l<u.offset+u.content.length).map(l=>l-u.offset).sort((l,d)=>l-d);return o.length?KX(u,o):u})):e}async function lB(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Qf(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[u,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[u]=o:u===r&&Object.assign(n,o);return n}function Ca(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function cB(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Fi.Italic&&(t["font-style"]="italic"),e.fontStyle&Fi.Bold&&(t["font-weight"]="bold"),e.fontStyle&Fi.Underline&&(t["text-decoration"]="underline")),t}function YX(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function ZX(e){const t=$h(e,!0).map(([u])=>u);function n(u){if(u===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=u,l=0;for(const d of t){if(o<d.length)break;o-=d.length,l++}return{line:l,character:o}}function r(u,o){let l=0;for(let d=0;d<u;d++)l+=t[d].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}class xn extends Error{constructor(t){super(t),this.name="ShikiError"}}const dB=new WeakMap;function Yh(e,t){dB.set(e,t)}function wc(e){return dB.get(e)}class vo{constructor(...t){oe(this,"_stacks",{});oe(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,u]=t;this.lang=r,this._stacks={[u]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new vo(Object.fromEntries(zX(n).map(r=>[r,Og])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Jv(this._stacks[this.theme])}getScopes(t=this.theme){return Jv(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Jv(e){const t=[],n=new Set;function r(u){var l;if(n.has(u))return;n.add(u);const o=(l=u==null?void 0:u.nameScopesList)==null?void 0:l.scopeName;o&&t.push(o),u.parent&&r(u.parent)}return r(e),t}function WX(e,t){if(!(e instanceof vo))throw new xn("Invalid grammar state");return e.getInternalStack(t)}function qX(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new xn(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...u.indexToPos(l),offset:l}}else{const d=u.lines[l.line];if(d===void 0)throw new xn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${u.lines.length}`);if(l.character<0||l.character>d.length)throw new xn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${d.length}`);return{...l,offset:u.posToIndex(l.line,l.character)}}};const u=ZX(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));XX(o),e.set(n.meta,{decorations:o,converter:u,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var l;if(!((l=this.options.decorations)!=null&&l.length))return;const u=t(this).decorations.flatMap(d=>[d.start.offset,d.end.offset]);return $X(n,u)},code(n){var m;if(!((m=this.options.decorations)!=null&&m.length))return;const r=t(this),u=Array.from(n.children).filter(E=>E.type==="element"&&E.tagName==="span");if(u.length!==r.converter.lines.length)throw new xn(`Number of lines in code element (${u.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(E,g,_,S){const C=u[E];let v="",R=-1,T=-1;if(g===0&&(R=0),_===0&&(T=0),_===Number.POSITIVE_INFINITY&&(T=C.children.length),R===-1||T===-1)for(let L=0;L<C.children.length;L++)v+=fB(C.children[L]),R===-1&&v.length===g&&(R=L+1),T===-1&&v.length===_&&(T=L+1);if(R===-1)throw new xn(`Failed to find start index for decoration ${JSON.stringify(S.start)}`);if(T===-1)throw new xn(`Failed to find end index for decoration ${JSON.stringify(S.end)}`);const b=C.children.slice(R,T);if(!S.alwaysWrap&&b.length===C.children.length)d(C,S,"line");else if(!S.alwaysWrap&&b.length===1&&b[0].type==="element")d(b[0],S,"token");else{const L={type:"element",tagName:"span",properties:{},children:b};d(L,S,"wrapper"),C.children.splice(R,b.length,L)}}function l(E,g){u[E]=d(u[E],g,"line")}function d(E,g,_){var v;const S=g.properties||{},C=g.transform||(R=>R);return E.tagName=g.tagName||"span",E.properties={...E.properties,...S,class:E.properties.class},(v=g.properties)!=null&&v.class&&oB(E,g.properties.class),E=C(E,_)||E,E}const f=[],h=r.decorations.sort((E,g)=>g.start.offset-E.start.offset);for(const E of h){const{start:g,end:_}=E;if(g.line===_.line)o(g.line,g.character,_.character,E);else if(g.line<_.line){o(g.line,g.character,Number.POSITIVE_INFINITY,E);for(let S=g.line+1;S<_.line;S++)f.unshift(()=>l(S,E));o(_.line,0,_.character,E)}}f.forEach(E=>E())}}}function XX(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new xn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const u=e[r],o=n.start.offset<u.start.offset&&u.start.offset<n.end.offset,l=n.start.offset<u.end.offset&&u.end.offset<n.end.offset,d=u.start.offset<n.start.offset&&n.start.offset<u.end.offset,f=u.start.offset<n.end.offset&&n.end.offset<u.end.offset;if(o||l||d||f){if(l&&l||d&&f)continue;throw new xn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(u.start)} intersect.`)}}}}function fB(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(fB).join(""):""}const QX=[qX()];function Jf(e){return[...e.transformers||[],...QX]}var va=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],SE={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function JX(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function eR(e,t){let n=1;const r=e[t+n++];let u;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(l=>Number.parseInt(l));o.length===3&&!o.some(l=>Number.isNaN(l))&&(u={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(u={type:"table",index:Number(o)})}return[n,u]}function eQ(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],u=Number.parseInt(r);if(!Number.isNaN(u))if(u===0)t.push({type:"resetAll"});else if(u<=9)SE[u]&&t.push({type:"setDecoration",value:SE[u]});else if(u<=29){const o=SE[u-20];o&&t.push({type:"resetDecoration",value:o})}else if(u<=37)t.push({type:"setForegroundColor",value:{type:"named",name:va[u-30]}});else if(u===38){const[o,l]=eR(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(u===39)t.push({type:"resetForegroundColor"});else if(u<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:va[u-40]}});else if(u===48){const[o,l]=eR(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else u===49?t.push({type:"resetBackgroundColor"}):u>=90&&u<=97?t.push({type:"setForegroundColor",value:{type:"named",name:va[u-90+8]}}):u>=100&&u<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:va[u-100+8]}})}return t}function tQ(){let e=null,t=null,n=new Set;return{parse(r){const u=[];let o=0;do{const l=JX(r,o),d=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(d.length>0&&u.push({value:d,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const f=eQ(l.sequence);for(const h of f)h.type==="resetAll"?(e=null,t=null,n.clear()):h.type==="resetForegroundColor"?e=null:h.type==="resetBackgroundColor"?t=null:h.type==="resetDecoration"&&n.delete(h.value);for(const h of f)h.type==="setForegroundColor"?e=h.value:h.type==="setBackgroundColor"?t=h.value:h.type==="setDecoration"&&n.add(h.value)}o=l.position}while(o<r.length);return u}}}var nQ={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function rQ(e=nQ){function t(d){return e[d]}function n(d){return`#${d.map(f=>Math.max(0,Math.min(f,255)).toString(16).padStart(2,"0")).join("")}`}let r;function u(){if(r)return r;r=[];for(let h=0;h<va.length;h++)r.push(t(va[h]));let d=[0,95,135,175,215,255];for(let h=0;h<6;h++)for(let m=0;m<6;m++)for(let E=0;E<6;E++)r.push(n([d[h],d[m],d[E]]));let f=8;for(let h=0;h<24;h++,f+=10)r.push(n([f,f,f]));return r}function o(d){return u()[d]}function l(d){switch(d.type){case"named":return t(d.name);case"rgb":return n(d.rgb);case"table":return o(d.index)}}return{value:l}}function iQ(e,t,n){const r=Qf(e,n),u=$h(t),o=rQ(Object.fromEntries(va.map(d=>{var f;return[d,(f=e.colors)==null?void 0:f[`terminal.ansi${d[0].toUpperCase()}${d.substring(1)}`]]}))),l=tQ();return u.map(d=>l.parse(d[0]).map(f=>{let h,m;f.decorations.has("reverse")?(h=f.background?o.value(f.background):e.bg,m=f.foreground?o.value(f.foreground):e.fg):(h=f.foreground?o.value(f.foreground):e.fg,m=f.background?o.value(f.background):void 0),h=Ca(h,r),m=Ca(m,r),f.decorations.has("dim")&&(h=uQ(h));let E=Fi.None;return f.decorations.has("bold")&&(E|=Fi.Bold),f.decorations.has("italic")&&(E|=Fi.Italic),f.decorations.has("underline")&&(E|=Fi.Underline),{content:f.value,offset:d[1],color:h,bgColor:m,fontStyle:E}}))}function uQ(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function L_(e,t,n={}){const{lang:r="text",theme:u=e.getLoadedThemes()[0]}=n;if(F_(r)||O_(u))return $h(t).map(f=>[{content:f[0],offset:f[1]}]);const{theme:o,colorMap:l}=e.setTheme(u);if(r==="ansi")return iQ(o,t,n);const d=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==d.name)throw new Li(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${d.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Li(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return sQ(t,d,o,l,n)}function aQ(...e){if(e.length===2)return wc(e[1]);const[t,n,r={}]=e,{lang:u="text",theme:o=t.getLoadedThemes()[0]}=r;if(F_(u)||O_(o))throw new Li("Plain language does not have grammar state");if(u==="ansi")throw new Li("ANSI language does not have grammar state");const{theme:l,colorMap:d}=t.setTheme(o),f=t.getLanguage(u);return new vo(eh(n,f,l,d,r).stateStack,f.name,l.name)}function sQ(e,t,n,r,u){const o=eh(e,t,n,r,u),l=new vo(eh(e,t,n,r,u).stateStack,t.name,n.name);return Yh(o.tokens,l),o.tokens}function eh(e,t,n,r,u){const o=Qf(n,u),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:d=500}=u,f=$h(e);let h=u.grammarState?WX(u.grammarState,n.name)??Og:u.grammarContextCode!=null?eh(u.grammarContextCode,t,n,r,{...u,grammarState:void 0,grammarContextCode:void 0}).stateStack:Og,m=[];const E=[];for(let g=0,_=f.length;g<_;g++){const[S,C]=f[g];if(S===""){m=[],E.push([]);continue}if(l>0&&S.length>=l){m=[],E.push([{content:S,offset:C,color:"",fontStyle:0}]);continue}let v,R,T;u.includeExplanation&&(v=t.tokenizeLine(S,h),R=v.tokens,T=0);const b=t.tokenizeLine2(S,h,d),L=b.tokens.length/2;for(let x=0;x<L;x++){const B=b.tokens[2*x],O=x+1<L?b.tokens[2*x+2]:S.length;if(B===O)continue;const H=b.tokens[2*x+1],U=Ca(r[ao.getForeground(H)],o),G=ao.getFontStyle(H),fe={content:S.substring(B,O),offset:C+B,color:U,fontStyle:G};if(u.includeExplanation){const ae=[];if(u.includeExplanation!=="scopeName")for(const Z of n.settings){let te;switch(typeof Z.scope){case"string":te=Z.scope.split(/,/).map(V=>V.trim());break;case"object":te=Z.scope;break;default:continue}ae.push({settings:Z,selectors:te.map(V=>V.split(/ /))})}fe.explanation=[];let ce=0;for(;B+ce<O;){const Z=R[T],te=S.substring(Z.startIndex,Z.endIndex);ce+=te.length,fe.explanation.push({content:te,scopes:u.includeExplanation==="scopeName"?oQ(Z.scopes):lQ(ae,Z.scopes)}),T+=1}}m.push(fe)}E.push(m),m=[],h=b.ruleStack}return{tokens:E,stateStack:h}}function oQ(e){return e.map(t=>({scopeName:t}))}function lQ(e,t){const n=[];for(let r=0,u=t.length;r<u;r++){const o=t[r];n[r]={scopeName:o,themeMatches:dQ(e,o,t.slice(0,r))}}return n}function tR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function cQ(e,t,n){if(!tR(e[e.length-1],t))return!1;let r=e.length-2,u=n.length-1;for(;r>=0&&u>=0;)tR(e[r],n[u])&&(r-=1),u-=1;return r===-1}function dQ(e,t,n){const r=[];for(const{selectors:u,settings:o}of e)for(const l of u)if(cQ(l,t,n)){r.push(o);break}return r}function hB(e,t,n){const r=Object.entries(n.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),u=r.map(f=>{const h=L_(e,t,{...n,theme:f.theme}),m=wc(h),E=typeof f.theme=="string"?f.theme:f.theme.name;return{tokens:h,state:m,theme:E}}),o=fQ(...u.map(f=>f.tokens)),l=o[0].map((f,h)=>f.map((m,E)=>{const g={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=m.explanation),o.forEach((_,S)=>{const{content:C,explanation:v,offset:R,...T}=_[h][E];g.variants[r[S].color]=T}),g})),d=u[0].state?new vo(Object.fromEntries(u.map(f=>{var h;return[f.theme,(h=f.state)==null?void 0:h.getInternalStack(f.theme)]})),u[0].state.lang):void 0;return d&&Yh(l,d),l}function fQ(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const u=e.map(f=>f[r]),o=t.map(()=>[]);t.forEach((f,h)=>f.push(o[h]));const l=u.map(()=>0),d=u.map(f=>f[0]);for(;d.every(f=>f);){const f=Math.min(...d.map(h=>h.content.length));for(let h=0;h<n;h++){const m=d[h];m.content.length===f?(o[h].push(m),l[h]+=1,d[h]=u[h][l[h]]):(o[h].push({...m,content:m.content.slice(0,f)}),d[h]={...m,content:m.content.slice(f),offset:m.offset+f})}}}return t}function th(e,t,n){let r,u,o,l,d,f;if("themes"in n){const{defaultColor:h="light",cssVariablePrefix:m="--shiki-"}=n,E=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,R)=>v.color===h?-1:R.color===h?1:0);if(E.length===0)throw new Li("`themes` option must not be empty");const g=hB(e,t,n);if(f=wc(g),h&&!E.find(v=>v.color===h))throw new Li(`\`themes\` option must contain the defaultColor key \`${h}\``);const _=E.map(v=>e.getTheme(v.theme)),S=E.map(v=>v.color);o=g.map(v=>v.map(R=>hQ(R,S,m,h))),f&&Yh(o,f);const C=E.map(v=>Qf(v.theme,n));u=E.map((v,R)=>(R===0&&h?"":`${m+v.color}:`)+(Ca(_[R].fg,C[R])||"inherit")).join(";"),r=E.map((v,R)=>(R===0&&h?"":`${m+v.color}-bg:`)+(Ca(_[R].bg,C[R])||"inherit")).join(";"),l=`shiki-themes ${_.map(v=>v.name).join(" ")}`,d=h?void 0:[u,r].join(";")}else if("theme"in n){const h=Qf(n.theme,n);o=L_(e,t,n);const m=e.getTheme(n.theme);r=Ca(m.bg,h),u=Ca(m.fg,h),l=m.name,f=wc(o)}else throw new Li("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:u,bg:r,themeName:l,rootStyle:d,grammarState:f}}function hQ(e,t,n,r){const u={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(f=>cB(e.variants[f])),l=new Set(o.flatMap(f=>Object.keys(f))),d={};return o.forEach((f,h)=>{for(const m of l){const E=f[m]||"inherit";if(h===0&&r)d[m]=E;else{const g=m==="color"?"":m==="background-color"?"-bg":`-${m}`,_=n+t[h]+(m==="color"?"":g);d[_]=E}}}),u.htmlStyle=d,u}function nh(e,t,n,r={meta:{},options:n,codeToHast:(u,o)=>nh(e,u,o),codeToTokens:(u,o)=>th(e,u,o)}){var _,S;let u=t;for(const C of Jf(n))u=((_=C.preprocess)==null?void 0:_.call(r,u,n))||u;let{tokens:o,fg:l,bg:d,themeName:f,rootStyle:h,grammarState:m}=th(e,u,n);const{mergeWhitespaces:E=!0}=n;E===!0?o=mQ(o):E==="never"&&(o=pQ(o));const g={...r,get source(){return u}};for(const C of Jf(n))o=((S=C.tokens)==null?void 0:S.call(g,o))||o;return AQ(o,{...n,fg:l,bg:d,themeName:f,rootStyle:h},g,m)}function AQ(e,t,n,r=wc(e)){var S,C,v;const u=Jf(t),o=[],l={type:"root",children:[]},{structure:d="classic",tabindex:f="0"}=t;let h={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...f!==!1&&f!=null?{tabindex:f.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([R])=>!R.startsWith("_")))},children:[]},m={type:"element",tagName:"code",properties:{},children:o};const E=[],g={...n,structure:d,addClassToHast:oB,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return h},get code(){return m},get lines(){return E}};if(e.forEach((R,T)=>{var x,B;T&&(d==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&o.push({type:"text",value:`
|
|
284
|
+
`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},L=0;for(const O of R){let H={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};O.htmlStyle;const U=YX(O.htmlStyle||cB(O));U&&(H.properties.style=U);for(const G of u)H=((x=G==null?void 0:G.span)==null?void 0:x.call(g,H,T+1,L,b,O))||H;d==="inline"?l.children.push(H):d==="classic"&&b.children.push(H),L+=O.content.length}if(d==="classic"){for(const O of u)b=((B=O==null?void 0:O.line)==null?void 0:B.call(g,b,T+1))||b;E.push(b),o.push(b)}}),d==="classic"){for(const R of u)m=((S=R==null?void 0:R.code)==null?void 0:S.call(g,m))||m;h.children.push(m);for(const R of u)h=((C=R==null?void 0:R.pre)==null?void 0:C.call(g,h))||h;l.children.push(h)}let _=l;for(const R of u)_=((v=R==null?void 0:R.root)==null?void 0:v.call(g,_))||_;return r&&Yh(_,r),_}function mQ(e){return e.map(t=>{const n=[];let r="",u=0;return t.forEach((o,l)=>{const f=!(o.fontStyle&&o.fontStyle&Fi.Underline);f&&o.content.match(/^\s+$/)&&t[l+1]?(u||(u=o.offset),r+=o.content):r?(f?n.push({...o,offset:u,content:r+o.content}):n.push({content:r,offset:u},o),u=0,r=""):n.push(o)}),n})}function pQ(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,u,o,l]=r;if(!u&&!l)return n;const d=[{...n,offset:n.offset+u.length,content:o}];return u&&d.unshift({content:u,offset:n.offset}),l&&d.push({content:l,offset:n.offset+u.length+o.length}),d}))}function EQ(e,t,n){var o;const r={meta:{},options:n,codeToHast:(l,d)=>nh(e,l,d),codeToTokens:(l,d)=>th(e,l,d)};let u=GX(nh(e,t,n,r));for(const l of Jf(n))u=((o=l.postprocess)==null?void 0:o.call(r,u,n))||u;return u}const nR={light:"#333333",dark:"#bbbbbb"},rR={light:"#fffffe",dark:"#1e1e1e"},iR="__shiki_resolved";function w_(e){var d,f,h,m,E;if(e!=null&&e[iR])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const g=t.settings?t.settings.find(_=>!_.name&&!_.scope):void 0;(d=g==null?void 0:g.settings)!=null&&d.foreground&&(r=g.settings.foreground),(f=g==null?void 0:g.settings)!=null&&f.background&&(n=g.settings.background),!r&&((h=t==null?void 0:t.colors)!=null&&h["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((m=t==null?void 0:t.colors)!=null&&m["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?nR.light:nR.dark),n||(n=t.type==="light"?rR.light:rR.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let u=0;const o=new Map;function l(g){var S;if(o.has(g))return o.get(g);u+=1;const _=`#${u.toString(16).padStart(8,"0").toLowerCase()}`;return(S=t.colorReplacements)!=null&&S[`#${_}`]?l(g):(o.set(g,_),_)}t.settings=t.settings.map(g=>{var v,R;const _=((v=g.settings)==null?void 0:v.foreground)&&!g.settings.foreground.startsWith("#"),S=((R=g.settings)==null?void 0:R.background)&&!g.settings.background.startsWith("#");if(!_&&!S)return g;const C={...g,settings:{...g.settings}};if(_){const T=l(g.settings.foreground);t.colorReplacements[T]=g.settings.foreground,C.settings.foreground=T}if(S){const T=l(g.settings.background);t.colorReplacements[T]=g.settings.background,C.settings.background=T}return C});for(const g of Object.keys(t.colors||{}))if((g==="editor.foreground"||g==="editor.background"||g.startsWith("terminal.ansi"))&&!((E=t.colors[g])!=null&&E.startsWith("#"))){const _=l(t.colors[g]);t.colorReplacements[_]=t.colors[g],t.colors[g]=_}return Object.defineProperty(t,iR,{enumerable:!1,writable:!1,value:!0}),t}async function AB(e){return Array.from(new Set((await Promise.all(e.filter(t=>!aB(t)).map(async t=>await lB(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function mB(e){return(await Promise.all(e.map(async n=>sB(n)?null:w_(await lB(n))))).filter(n=>!!n)}class gQ extends Tq{constructor(n,r,u,o={}){super(n);oe(this,"_resolvedThemes",new Map);oe(this,"_resolvedGrammars",new Map);oe(this,"_langMap",new Map);oe(this,"_langGraph",new Map);oe(this,"_textmateThemeCache",new WeakMap);oe(this,"_loadedThemesCache",null);oe(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=u,this._alias=o,this._themes.map(l=>this.loadTheme(l)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=w_(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=Yf.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new xn(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var l,d,f,h;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(m=>{var E;return(E=m.embeddedLangsLazy)==null?void 0:E.includes(n.name)}));this._resolver.addLanguage(n);const u={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,u);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(m=>{this._alias[m]=n.name}),this._loadedLanguagesCache=null,r.size)for(const m of r)this._resolvedGrammars.delete(m.name),this._loadedLanguagesCache=null,(d=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||d.delete(m.scopeName),(h=(f=this._syncRegistry)==null?void 0:f._grammars)==null||h.delete(m.scopeName),this.loadLanguage(this._langMap.get(m.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),u=r.filter(([o,l])=>!l);if(u.length){const o=r.filter(([l,d])=>{var f;return d&&((f=d.embeddedLangs)==null?void 0:f.some(h=>u.map(([m])=>m).includes(h)))}).filter(l=>!u.includes(l));throw new xn(`Missing languages ${u.map(([l])=>`\`${l}\``).join(", ")}, required by ${o.map(([l])=>`\`${l}\``).join(", ")}`)}for(const[o,l]of r)this._resolver.addLanguage(l);for(const[o,l]of r)this.loadLanguage(l)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class _Q{constructor(t,n){oe(this,"_langs",new Map);oe(this,"_scopeToLang",new Map);oe(this,"_injections",new Map);oe(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let u=1;u<=n.length;u++){const o=n.slice(0,u).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Hl=0;function SQ(e){Hl+=1,e.warnings!==!1&&Hl>=10&&Hl%10===0&&console.warn(`[Shiki] ${Hl} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new xn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(w_),u=new _Q(e.engine,n),o=new gQ(u,r,n,e.langAlias);let l;function d(T){v();const b=o.getGrammar(typeof T=="string"?T:T.name);if(!b)throw new xn(`Language \`${T}\` not found, you may need to load it first`);return b}function f(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const b=o.getTheme(T);if(!b)throw new xn(`Theme \`${T}\` not found, you may need to load it first`);return b}function h(T){v();const b=f(T);l!==T&&(o.setTheme(b),l=T);const L=o.getColorMap();return{theme:b,colorMap:L}}function m(){return v(),o.getLoadedThemes()}function E(){return v(),o.getLoadedLanguages()}function g(...T){v(),o.loadLanguages(T.flat(1))}async function _(...T){return g(await AB(T))}function S(...T){v();for(const b of T.flat(1))o.loadTheme(b)}async function C(...T){return v(),S(await mB(T))}function v(){if(t)throw new xn("Shiki instance has been disposed")}function R(){t||(t=!0,o.dispose(),Hl-=1)}return{setTheme:h,getTheme:f,getLanguage:d,getLoadedThemes:m,getLoadedLanguages:E,loadLanguage:_,loadLanguageSync:g,loadTheme:C,loadThemeSync:S,dispose:R,[Symbol.dispose]:R}}async function NQ(e={}){e.loadWasm;const[t,n,r]=await Promise.all([mB(e.themes||[]),AB(e.langs||[]),e.engine||xx(e.loadWasm||GW())]);return SQ({...e,themes:t,langs:n,engine:r})}async function IQ(e={}){const t=await NQ(e);return{getLastGrammarState:(...n)=>aQ(t,...n),codeToTokensBase:(n,r)=>L_(t,n,r),codeToTokensWithThemes:(n,r)=>hB(t,n,r),codeToTokens:(n,r)=>th(t,n,r),codeToHast:(n,r)=>nh(t,n,r),codeToHtml:(n,r)=>EQ(t,n,r),...t,getInternalContext:()=>t}}function yQ(e,t,n){let r,u,o;{const d=e;r=d.langs,u=d.themes,o=d.engine}async function l(d){function f(_){if(typeof _=="string"){if(aB(_))return[];const S=r[_];if(!S)throw new Li(`Language \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}function h(_){if(sB(_))return"none";if(typeof _=="string"){const S=u[_];if(!S)throw new Li(`Theme \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}const m=(d.themes??[]).map(_=>h(_)),E=(d.langs??[]).map(_=>f(_)),g=await IQ({engine:d.engine??o(),...d,themes:m,langs:E});return{...g,loadLanguage(..._){return g.loadLanguage(..._.map(f))},loadTheme(..._){return g.loadTheme(..._.map(h))}}}return l}function CQ(e){let t;async function n(r={}){if(t){const u=await t;return await Promise.all([u.loadTheme(...r.themes||[]),u.loadLanguage(...r.langs||[])]),u}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function vQ(e){const t=CQ(e);return{getSingletonHighlighter(n){return t(n)},async codeToHtml(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHtml(n,r)},async codeToHast(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHast(n,r)},async codeToTokens(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToTokens(n,r)},async codeToTokensBase(n,r){return(await t({langs:[r.lang],themes:[r.theme]})).codeToTokensBase(n,r)},async codeToTokensWithThemes(n,r){return(await t({langs:[r.lang],themes:Object.values(r.themes).filter(Boolean)})).codeToTokensWithThemes(n,r)},async getLastGrammarState(n,r){return(await t({langs:[r.lang],themes:[r.theme]})).getLastGrammarState(n,r)}}}const RQ=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function TQ(e,t,n){const r=[];for(const u of e){const o=u.children;let l=o.length-1;n==="v1"?l=0:t&&(l=o.length-2);for(let d=Math.max(l,0);d<o.length;d++){const f=o[d];if(f.type!=="element")continue;const h=f.children.at(0);if((h==null?void 0:h.type)!=="text")continue;const m=d===o.length-1,E=DQ(h.value,m);E&&(t&&!m&&d!==0?r.push({info:E,line:u,token:f,isJsxStyle:uR(o[d-1],"{")&&uR(o[d+1],"}")}):r.push({info:E,line:u,token:f,isJsxStyle:!1}))}}return r}function uR(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function DQ(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const u=e.length-n.length-r;for(const[o,l]of RQ){if(l&&!t)continue;const d=o.exec(n);if(d)return[" ".repeat(r)+d[1],d[2],d[3]?d[3]+" ".repeat(u):void 0]}}function bQ(e){const n=/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/.exec(e);return n&&n[1].trim().length===0?e.slice(0,n.index):e}function pB(e,t,n,r="v1"){return{name:e,code(u){const o=u.children.filter(h=>h.type==="element"),l=[];u.data??(u.data={});const d=u.data;d._shiki_notation??(d._shiki_notation=TQ(o,["jsx","tsx"].includes(this.options.lang),r));const f=d._shiki_notation;for(const h of f){if(h.info[1].length===0)continue;const m=h.line.children.length===(h.isJsxStyle?3:1);let E=o.indexOf(h.line);m&&r!=="v1"&&E++;let g=!1;if(h.info[1]=h.info[1].replace(t,(...S)=>n.call(this,S,h.line,h.token,o,E)?(g=!0,""):S[0]),!g)continue;r==="v1"&&(h.info[1]=bQ(h.info[1]));const _=h.info[1].trim().length===0;if(_&&(h.info[1]=""),_&&m)l.push(h.line);else if(_&&h.isJsxStyle)h.line.children.splice(h.line.children.indexOf(h.token)-1,3);else if(_)h.line.children.splice(h.line.children.indexOf(h.token),1);else{const S=h.token.children[0];S.type==="text"&&(S.value=h.info.join(""))}}for(const h of l)u.children.splice(u.children.indexOf(h),1)}}}function xQ(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const u=r.split("-").map(o=>Number.parseInt(o,10));return u.length===1?[u[0]]:Array.from({length:u[1]-u[0]+1},(o,l)=>l+u[0])}):null}const K0=Symbol("highlighted-lines");function BQ(e={}){const{className:t="highlighted"}=e;return{name:"@shikijs/transformers:meta-highlight",line(n,r){var l;if(!((l=this.options.meta)!=null&&l.__raw))return;const u=this.meta;return u[K0]??(u[K0]=xQ(this.options.meta.__raw)),(u[K0]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function FQ(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function OQ(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){var o;if(!((o=this.options.meta)!=null&&o.__raw))return;const u=FQ(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of u){const d=LQ(n,l);for(const f of d)r.decorations.push({start:f,end:f+l.length,properties:{class:t}})}}}}function LQ(e,t){const n=[];let r=-1;for(;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function wQ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M_(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return pB(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(wQ).join("|")})(:\\d+)?\\]`),function([u,o,l=":1"],d,f,h,m){const E=Number.parseInt(l.slice(1),10);for(let g=m;g<Math.min(m+E,h.length);g++)this.addClassToHast(h[g],n[o]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function MQ(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return M_({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function PQ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return M_({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function HQ(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return M_({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function UQ(e,t,n,r){const u=EB(e);let o=u.indexOf(n);for(;o!==-1;)kQ.call(this,e.children,t,o,n.length,r),o=u.indexOf(n,o+1)}function EB(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(EB).join(""):""}function kQ(e,t,n,r,u){let o=0;for(let l=0;l<e.length;l++){const d=e[l];if(d.type!=="element"||d.tagName!=="span"||d===t)continue;const f=d.children[0];if(f.type==="text"){if(GQ([o,o+f.value.length-1],[n,n+r])){const h=Math.max(0,n-o),m=r-Math.max(0,o-n);if(m===0)continue;const E=VQ(d,f,h,m);this.addClassToHast(E[1],u);const g=E.filter(Boolean);e.splice(l,1,...g),l+=g.length-1}o+=f.value.length}}}function GQ(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function VQ(e,t,n,r){const u=t.value,o=l=>jQ(e,{children:[{type:"text",value:l}]});return[n>0?o(u.slice(0,n)):void 0,o(u.slice(n,n+r)),n+r<u.length?o(u.slice(n+r)):void 0]}function jQ(e,t){return{...e,properties:{...e.properties},...t}}function zQ(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return pB("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,u,o],l,d,f,h){const m=o?Number.parseInt(o.slice(1),10):f.length;u=u.replace(/\\(.)/g,"$1");for(let E=h;E<Math.min(h+m,f.length);E++)UQ.call(this,f[E],d,u,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const KQ="modulepreload",$Q=function(e){return"/"+e},aR={},w=function(t,n,r){let u=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),d=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));u=Promise.allSettled(n.map(f=>{if(f=$Q(f),f in aR)return;aR[f]=!0;const h=f.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const E=document.createElement("link");if(E.rel=h?"stylesheet":KQ,h||(E.as="script"),E.crossOrigin="",E.href=f,d&&E.setAttribute("nonce",d),document.head.appendChild(E),h)return new Promise((g,_)=>{E.addEventListener("load",g),E.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=l,window.dispatchEvent(d),!d.defaultPrevented)throw l}return u.then(l=>{for(const d of l||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})},gB=[{id:"abap",name:"ABAP",import:()=>w(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>w(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>w(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>w(()=>import("./angular-html-LfdN0zeE.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>w(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>w(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>w(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>w(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>w(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>w(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>w(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>w(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>w(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>w(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>w(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>w(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>w(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>w(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>w(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>w(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>w(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>w(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>w(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>w(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>w(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>w(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>w(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>w(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>w(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>w(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>w(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>w(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>w(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>w(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>w(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>w(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>w(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>w(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>w(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>w(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>w(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>w(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>w(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>w(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>w(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>w(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>w(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>w(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>w(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>w(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>w(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>w(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>w(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>w(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>w(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>w(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>w(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>w(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>w(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>w(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>w(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>w(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>w(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>w(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>w(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>w(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>w(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>w(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>w(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>w(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>w(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>w(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>w(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>w(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>w(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>w(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>w(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>w(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>w(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>w(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>w(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>w(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>w(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>w(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>w(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>w(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>w(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>w(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>w(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>w(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>w(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>w(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>w(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>w(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>w(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>w(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>w(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>w(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>w(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>w(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>w(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>w(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>w(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>w(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>w(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>w(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>w(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>w(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>w(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>w(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>w(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>w(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>w(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>w(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>w(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>w(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>w(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>w(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>w(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>w(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>w(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>w(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>w(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>w(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>w(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>w(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>w(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>w(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>w(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>w(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>w(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>w(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>w(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>w(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>w(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>w(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>w(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>w(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>w(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>w(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>w(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>w(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>w(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>w(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>w(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>w(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>w(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>w(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>w(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>w(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>w(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>w(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>w(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>w(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>w(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>w(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>w(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>w(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>w(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>w(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>w(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>w(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>w(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>w(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>w(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>w(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>w(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>w(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>w(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>w(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>w(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>w(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>w(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>w(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>w(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>w(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>w(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>w(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>w(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>w(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>w(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>w(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>w(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>w(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>w(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>w(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>w(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>w(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>w(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>w(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>w(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>w(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>w(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>w(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>w(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>w(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>w(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>w(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>w(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>w(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>w(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>w(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>w(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>w(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>w(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>w(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>w(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>w(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>w(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>w(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>w(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>w(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>w(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>w(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>w(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>w(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>w(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>w(()=>import("./zig-BVz_zdnA.js"),[])}],YQ=Object.fromEntries(gB.map(e=>[e.id,e.import])),ZQ=Object.fromEntries(gB.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),WQ={...YQ,...ZQ},qQ=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>w(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>w(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>w(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>w(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>w(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>w(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>w(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>w(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>w(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>w(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>w(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>w(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>w(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>w(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>w(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>w(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>w(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>w(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>w(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>w(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>w(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>w(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>w(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>w(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>w(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>w(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>w(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>w(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>w(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>w(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>w(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>w(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>w(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>w(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>w(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>w(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>w(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>w(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>w(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>w(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>w(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>w(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>w(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>w(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>w(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>w(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>w(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>w(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>w(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>w(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>w(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>w(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>w(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>w(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],XQ=Object.fromEntries(qQ.map(e=>[e.id,e.import])),QQ=yQ({langs:WQ,themes:XQ,engine:()=>xx(w(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:JQ}=vQ(QQ),eJ=({children:e})=>N.jsx("div",{children:N.jsx("pre",{children:N.jsx("code",{children:e.split(`
|
|
285
|
+
`).map((t,n)=>N.jsx("span",{className:"line block w-full",children:t},n))})})}),tJ=({children:e,lang:t,isDarkMode:n,onChange:r,...u})=>{const[o,l]=y.useState(null),d=y.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[MQ(),HQ(),zQ(),PQ(),BQ(),OQ()]}),[t,n]);return y.useEffect(()=>{JQ(e,d).then(f=>l(f)).catch(f=>console.error(f))},[d,e]),o?N.jsx("div",{dangerouslySetInnerHTML:{__html:o},...u,style:{backgroundColor:"transparent"}}):N.jsx(eJ,{children:e})},nJ=({className:e,onChange:t,isEditable:n,...r})=>N.jsx(tJ,{className:Re("flex w-full",e),contentEditable:n,onInput:u=>t==null?void 0:t(u.currentTarget.textContent??""),...r}),_B=y.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Zh=()=>y.useContext(_B),rJ=({children:e})=>{const[t,n]=ic("packageManager","npm"),[r,u]=ic("codeFormat","typescript"),[o,l]=ic("contentDeclarationFormat","typescript");return N.jsx(_B,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:u,contentDeclarationFormat:o,setContentDeclarationFormat:l},children:e})},iJ=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:u}=Zh(),o=typeof t.packageManager>"u",l=n===t.packageManager,d=typeof t.codeFormat>"u",f=r===t.codeFormat,h=typeof t.contentDeclarationFormat>"u",m=u===t.contentDeclarationFormat;return(o||l)&&(d||f)&&(h||m)?e:N.jsx(N.Fragment,{})},uJ=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=Zh();return N.jsxs(Pe,{value:e,onValueChange:r=>{t(r),n(r)},children:[N.jsx(Pe.Trigger,{children:N.jsx(Pe.Value,{placeholder:"Code Format"})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Pe.Item,{value:"esm",children:"ESM"}),N.jsx(Pe.Item,{value:"commonjs",children:"CommonJS"})]})]})},aJ=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=Zh();return N.jsxs(Pe,{value:e,onValueChange:t,children:[N.jsx(Pe.Trigger,{children:N.jsx(Pe.Value,{placeholder:"Dictionary Format"})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Pe.Item,{value:"commonjs",children:"CommonJS"}),N.jsx(Pe.Item,{value:"esm",children:"ESM"}),N.jsx(Pe.Item,{value:"json",children:"JSON"})]})]})},sJ={key:"copy-button",content:{label:_e({en:"Copy content",fr:"Copier le contenu",es:"Copiar contenido","en-GB":"Copy content",de:"Inhalt kopieren",ja:"コンテンツをコピー",ko:"콘텐츠 복사",zh:"复制内容",it:"Copia contenuto",pt:"Copiar conteúdo",hi:"सामग्री कॉपी करें",ar:"نسخ المحتوى",ru:"Копировать содержимое"})}},SB=({content:e})=>{const[t,n]=y.useState(!1),{label:r}=sn(sJ),u=async()=>{try{await navigator.clipboard.writeText(e),n(!0)}catch(o){console.error("Failed to copy text: ",o)}};return y.useEffect(()=>{const o=setTimeout(()=>{n(!1)},1e3);return()=>clearTimeout(o)},[t]),N.jsx(mt,{Icon:t?aP:oP,onClick:u,variant:"hoverable",color:"text",label:r.value,size:"icon-sm"})},oJ=()=>{const{packageManager:e,setPackageManager:t}=Zh();return N.jsxs(Pe,{value:e,onValueChange:t,children:[N.jsx(Pe.Trigger,{children:N.jsx(Pe.Value,{placeholder:"Package Manager"})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:"npm",children:"npm"}),N.jsx(Pe.Item,{value:"pnpm",children:"pnpm"}),N.jsx(Pe.Item,{value:"yarn",children:"yarn"})]})]})},lJ=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:u=!0,className:o,fileName:l,packageManager:d,codeFormat:f,contentDeclarationFormat:h,...m})=>{const E=e.endsWith(`
|
|
286
|
+
`)?e.slice(0,-1):e,g=d||f||h;return N.jsx(iJ,{packageManager:d,codeFormat:f,contentDeclarationFormat:h,children:N.jsxs(si,{className:Re("relative text-sm leading-6",u&&"with-line-number ml-0",o),transparency:"lg",...m,children:[r&&N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"bg-card/50 text-neutral grid w-full grid-cols-[1fr_auto] items-center justify-between rounded-t-xl py-1.5 pl-4 pr-12 text-xs",children:[N.jsx("span",{className:"truncate",children:l??t}),N.jsxs("div",{className:"flex items-center gap-2",children:[d&&N.jsx(oJ,{}),f&&N.jsx(uJ,{}),h&&N.jsx(aJ,{})]})]}),N.jsx("div",{className:"sticky top-28",children:N.jsx("div",{className:Re("absolute bottom-0 right-2 flex h-7 items-center",g&&"h-11"),children:N.jsx(SB,{content:E})})})]}),N.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:N.jsx(nJ,{lang:t,isDarkMode:n,children:E})})]})})},cJ=Ir("gap-3 font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0 hover:underline","invisible-link":"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0",button:"rounded-lg bg-current *:text-text-opposite min-h-8 px-6 max-md:py-2 text-sm flex items-center justify-center gap-2 whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50","button-outlined":"rounded-lg border-[1.5px] hover:bg-current/30 min-h-8 px-6 max-md:py-2 text-sm flex items-center justify-center gap-2 whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",hoverable:"block rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5"},color:{primary:"text-primary",secondary:"text-secondary",destructive:"text-destructive",neutral:"text-neutral",light:"text-white",dark:"text-neutral-800",text:"text-text","text-inverse":"text-text-opposite",error:"text-error",success:"text-success",custom:""},underlined:{default:"",true:"underline",false:"no-underline"}},defaultVariants:{variant:"default",color:"primary",underlined:"default"}}),dJ=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},P_=e=>{const{variant:t="default",color:n="primary",children:r,label:u,className:o,isActive:l,underlined:d,locale:f,isExternalLink:h,href:m,...E}=e,{internationalization:g}=Qe,_=dJ(e),S=typeof r=="string",C=_?"noopener noreferrer nofollow":void 0,v=_?"_blank":"_self",R=f?f===g.defaultLocale?"x-default":f:void 0,T=f&&m&&!_?Qw(m,f):m;return N.jsxs("a",{href:T,hrefLang:R,"aria-label":u,rel:C,target:v,"aria-current":l?"page":void 0,className:Re(cJ({variant:t,color:n,underlined:d,className:o})),...E,children:[t==="button"?N.jsx("span",{children:r}):r,_&&S&&N.jsx(fP,{className:"ml-2 inline-block size-4"})]})},fJ=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:u,...o}=r??{};return N.jsx(rJ,{children:N.jsx(NW,{options:{overrides:{h1:l=>N.jsx(oY,{isClickable:!0,...l}),h2:l=>N.jsx(lY,{isClickable:!0,...l}),h3:l=>N.jsx(I_,{isClickable:!0,...l}),h4:l=>N.jsx(cY,{isClickable:!0,...l}),code:l=>{var d;return typeof l.className>"u"?N.jsx("strong",{className:"bg-card/60 rounded p-1 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",children:l.children}):N.jsx(lJ,{isDarkMode:t,language:(d=l.className)==null?void 0:d.replace("lang-",""),...l})},blockquote:({className:l,...d})=>N.jsx("blockquote",{className:Re("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",l),...d}),ul:({className:l,...d})=>N.jsx("ul",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...d}),ol:({className:l,...d})=>N.jsx("ol",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...d}),li:({className:l,...d})=>N.jsx("li",{className:Re("list-disc",l),...d}),img:({className:l,...d})=>N.jsx("img",{...d,loading:"lazy",className:Re("max-w-full rounded-md",l),src:`${d.src}?raw=true`}),a:l=>{var d;return N.jsx(P_,{color:"neutral",isExternalLink:(d=l.href)==null?void 0:d.startsWith("http"),underlined:!0,locale:n,...l})},pre:l=>l.children,table:({className:l,...d})=>N.jsx("div",{className:"grid w-full max-w-full overflow-scroll rounded",children:N.jsx("table",{className:Re("max-w-full table-auto overflow-hidden text-left",l),...d})}),th:({className:l,...d})=>N.jsx("th",{className:Re("border-neutral bg-neutral/10 border-b p-4",l),...d}),tr:({className:l,...d})=>N.jsx("tr",{className:Re("hover:bg-neutral/10 hover:/10",l),...d}),td:({className:l,...d})=>N.jsx("td",{className:Re("border-b border-neutral-500/50 p-4",l),...d}),...u},wrapper:({className:l,...d})=>N.jsxs(N.Fragment,{children:[N.jsx(yW,{}),N.jsx("div",{className:Re("flex flex-col gap-6 p-10",l),...d})]}),...o},children:e??""})})},hJ=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const u=["<=",">=","<",">","="].find(o=>e.startsWith(o));u&&(t=u,n=e.slice(u.length))}return{comparator:t,numberValue:n}},AJ=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=y.useMemo(()=>hJ(e),[e]),[u,o]=y.useState(n??null),[l,d]=y.useState(r??null);return y.useEffect(()=>{if(u&&l&&(u!==n||l!==r)){const f=`${u}${l}`;t(f)}},[u,n,r,l,t]),N.jsxs("div",{className:"flex gap-1",children:[N.jsxs(Pe,{onValueChange:o,defaultValue:n,children:[N.jsx(Pe.Trigger,{className:"w-20",children:N.jsx(Pe.Value,{placeholder:"Select a comparator"})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:"<",children:"<"}),N.jsx(Pe.Item,{value:"<=",children:"<="}),N.jsx(Pe.Item,{value:"=",children:"="}),N.jsx(Pe.Item,{value:">=",children:">="}),N.jsx(Pe.Item,{value:">",children:">"})]})]}),N.jsx(mo,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:f=>d(f.target.value),className:"min-w-4"})]})},Wh={key:"navigation-view",content:{tsxNotEditable:_e({en:"React node is not editable","en-GB":"React node is not editable",fr:"Node React non éditable",es:"Nodo React no editable",de:"React-Knoten ist nicht bearbeitbar",ja:"編集できないReactノードです",ko:"편집할 수 없는 React 노드입니다",zh:"不可编辑的 React 节点",it:"Node React non modificabile",pt:"Nó React não editável",hi:"सम्पादित न करने योग्य React नोड",ar:"عقدة React غير قابلة للتحرير",ru:"React-узел не редактируемый"}),goToField:{label:_e({en:"Go to field","en-GB":"Go to field",fr:"Aller au champ",es:"Ir al campo",de:"Zum Feld gehen",ja:"フィールドに移動",ko:"필드로 이동",zh:"转到字段",it:"Vai al campo",pt:"Ir para o campo",hi:"फ़ील्ड पर जाएं",ar:"اذهب إلى الحقل",ru:"Перейти к полю"})},goToElement:{label:_e({en:"Go to element","en-GB":"Go to element",fr:"Aller à l'élément",es:"Ir al elemento",de:"Zum Element gehen",ja:"要素に移動",ko:"요소로 이동",zh:"转到元素",it:"Vai all’elemento",pt:"Ir para o elemento",hi:"तत्व पर जाएं",ar:"اذهب إلى العنصر",ru:"Перейти к элементу"})},addNewElement:{label:_e({en:"Click to add element","en-GB":"Click to add element",fr:"Cliquez pour ajouter un élément",es:"Haga clic para agregar un elemento",de:"Klicken Sie, um ein Element hinzuzufügen",ja:"要素を追加するにはクリック",ko:"요소를 추가하려면 클릭하세요",zh:"点击添加元素",it:"Clicca per aggiungere un elemento",pt:"Clique para adicionar um elemento",hi:"तत्व जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عنصر",ru:"Нажмите, чтобы добавить элемент"}),text:_e({en:"Add new element","en-GB":"Add new element",fr:"Ajouter un nouvel élément",es:"Agregar nuevo elemento",de:"Neues Element hinzufügen",ja:"新しい要素を追加",ko:"새 요소 추가",zh:"添加新元素",it:"Aggiungi nuovo elemento",pt:"Adicionar novo elemento",hi:"नया तत्व जोड़ें",ar:"أضف عنصرًا جديدًا",ru:"Добавить новый элемент"})},removeElement:{label:_e({en:"Click to remove element","en-GB":"Click to remove element",fr:"Cliquez pour supprimer un élément",es:"Haga clic para eliminar un elemento",de:"Klicken Sie, um ein Element zu entfernen",ja:"要素を削除するにはクリック",ko:"요소를 제거하려면 클릭하세요",zh:"点击删除元素",it:"Clicca per rimuovere un elemento",pt:"Clique para remover um elemento",hi:"तत्व निकालने के लिए क्लिक करें",ar:"انقر لإزالة عنصر",ru:"Нажмите, чтобы удалить элемент"}),text:_e({en:"Remove element","en-GB":"Remove element",fr:"Supprimer l’élément",es:"Eliminar elemento",de:"Element entfernen",ja:"要素を削除",ko:"요소 제거",zh:"删除元素",it:"Rimuovi elemento",pt:"Remover elemento",hi:"तत्व निकालें",ar:"إزالة عنصر",ru:"Удалить элемент"})},goToTranslation:{label:_e({en:"Go to translation","en-GB":"Go to translation",fr:"Aller à la traduction",es:"Ir a la traducción",de:"Zur Übersetzung gehen",ja:"翻訳に移動",ko:"번역으로 이동",zh:"转到翻译",it:"Vai alla traduzione",pt:"Ir para a tradução",hi:"अनुवाद पर जाएं",ar:"اذهب إلى الترجمة",ru:"Перейти к переводу"})},goToEnumeration:{label:_e({en:"Go to enumeration","en-GB":"Go to enumeration",fr:"Aller à l'énumération",es:"Ir a la enumeración",de:"Zur Aufzählung gehen",ja:"列挙に移動",ko:"열거로 이동",zh:"转到枚举",it:"Vai all ENUMERAZIONE",pt:"Ir para a enumeração",hi:"सूची में जाएं",ar:"اذهب إلى التعداد",ru:"Перейти к перечислению"})},addNewEnumeration:{label:_e({en:"Click to add enumeration","en-GB":"Click to add enumeration",fr:"Cliquez pour ajouter une énumération",es:"Haga clic para agregar una enumeración",de:"Klicken Sie, um eine Aufzählung hinzuzufügen",ja:"列挙を追加するにはクリック",ko:"열거를 추가하려면 클릭하세요",zh:"点击添加枚举",it:"Clicca per aggiungere un enumerazione",pt:"Clique para adicionar uma enumeração",hi:"सूची जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة تعداد",ru:"Нажмите, чтобы добавить перечисление"}),text:_e({en:"Add new enumeration","en-GB":"Add new enumeration",fr:"Ajouter une nouvelle énumération",es:"Agregar nueva enumeración",de:"Neue Aufzählung hinzufügen",ja:"新しい列挙を追加",ko:"새 목록 추가",zh:"添加新枚举",it:"Aggiungi nuova enumerazione",pt:"Adicionar nova enumeração",hi:"नया सूची जोड़ें",ar:"أضف تعدادًا جديدًا",ru:"Добавить новое перечисление"})},removeEnumeration:{label:_e({en:"Click to remove enumeration","en-GB":"Click to remove enumeration",fr:"Cliquez pour supprimer une énumération",es:"Haga clic para eliminar una enumeración",de:"Klicken Sie, um eine Aufzählung zu entfernen",ja:"列挙を削除するにはクリック",ko:"목록을 제거하려면 클릭하세요",zh:"点击删除枚举",it:"Clicca per rimuovere un'enumerazione",pt:"Clique para remover uma enumeração",hi:"सूची निकालने के लिए क्लिक करें",ar:"انقر لإزالة تعداد",ru:"Нажмите, чтобы удалить перечисление"}),text:_e({en:"Remove enumeration","en-GB":"Remove enumeration",fr:"Supprimer l’énumération",es:"Eliminar enumeración",de:"Aufzählung entfernen",ja:"列挙を削除",ko:"목록 제거",zh:"删除枚举",it:"Rimuovi enumerazione",pt:"Remover enumeração",hi:"सूची निकालें",ar:"إزالة تعداد",ru:"Удалить перечисление"})},addNewCondition:{label:_e({en:"Click to add condition","en-GB":"Click to add condition",fr:"Cliquez pour ajouter une condition",es:"Haga clic para agregar una condición",de:"Klicken Sie, um eine Bedingung hinzuzufügen",ja:"条件を追加するにはクリック",ko:"조건을 추가하려면 클릭하세요",zh:"点击添加条件",it:"Clicca per aggiungere una condizione",pt:"Clique para adicionar uma condição",hi:"शर्ते जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة شرط",ru:"Нажмите, чтобы добавить условие"}),text:_e({en:"Add new condition","en-GB":"Add new condition",fr:"Ajouter une nouvelle condition",es:"Agregar nueva condición",de:"Neue Bedingung hinzufügen",ja:"新しい条件を追加",ko:"새 조건 추가",zh:"添加新条件",it:"Aggiungi nuova condizione",pt:"Adicionar nova condição",hi:"नया शर्ते जोड़ें",ar:"أضف شرطًا جديدًا",ru:"Добавить новое условие"})}}},NB=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:u}=Hn(),o=ui(),{auditContentDeclarationField:l,isLoading:d}=vU();return N.jsx(pZ,{variant:"default",onContentChange:f=>u(t.key,f,e),additionalButtons:N.jsx(mt,{Icon:U9,label:"Audit",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",isLoading:d,onClick:()=>{l({fileContent:JSON.stringify({...t,...(r==null?void 0:r[t.key])??{}}),keyPath:e,locales:o.internationalization.locales??[],openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}).then(f=>{if(f!=null&&f.data)try{const h=f.data.fileContent;u(t.key,h,e)}catch(h){console.error(h)}})}}),...n})},mJ=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Hn();return N.jsx(vg,{variant:"default",onContentChange:u=>r(t.key,u,e),...n})},pJ=[{content:"False",value:!1},{content:"True",value:!0}],EJ=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Hn();return N.jsx(td,{choices:pJ,value:!0,onChange:u=>r(e.key,u,t),color:"text",size:"sm",...n})},gJ=({section:e,keyPath:t,dictionary:n})=>{const{locale:r,defaultLocale:u}=t4(),{selectedLocales:o,availableLocales:l}=fx(),d=e[j.Translation],f=Object.keys(d),m=l.length>o.length?o:[...new Set([...l,...f])],E=e[j.Translation];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:m.map(g=>N.jsxs(y.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:Q0(g,r)}),N.jsx("tr",{children:N.jsx(qh,{section:E[g]??_r(E[u]),keyPath:[...t,{type:j.Translation,key:g}],dictionary:n})})]},g))})})},_J=({section:e,keyPath:t,dictionary:n})=>{const{addEditedContent:r}=Hn(),{addNewEnumeration:u,removeEnumeration:o}=sn(Wh),l=e[j.Enumeration],d=Object.keys(l)[0];return N.jsxs("div",{className:"flex flex-col gap-2",children:[N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[j.Enumeration]).map(f=>{const h=[...t,{type:j.Enumeration}];return N.jsxs(y.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full",children:N.jsx("div",{className:"flex flex-1",children:N.jsx(mt,{label:o.label.value,variant:"hoverable",color:"text",Icon:l4,className:"ml-auto",onClick:()=>r(n.key,void 0,h),children:o.text})})}),N.jsx("tr",{className:"w-full p-2",children:N.jsx(AJ,{value:f,onChange:m=>{const E=e[j.Enumeration],g=fZ(E,f,m),_={...e,[j.Enumeration]:g};r(n.key,_,t)}})}),N.jsx("tr",{className:"block w-full",children:N.jsx(H_,{section:l[f]??_r(l[d]),keyPath:h,dictionary:n})})]},f)})})}),N.jsx(mt,{label:u.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>r(n.key,_r(l[d])??"",[...t,{type:j.Enumeration,key:"unknown"}]),Icon:mh,className:"m-2",children:u.text})]})},SJ=({section:e,keyPath:t,dictionary:n})=>{const r=e[j.Condition];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(u=>N.jsxs(y.Fragment,{children:[N.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(u)},u),N.jsx("tr",{className:"block w-full",children:N.jsx(qh,{section:r[u]??_r(r.true),keyPath:[...t,{type:j.Condition,key:u}],dictionary:n})},u)]},u))})})},NJ=({section:e,keyPath:t,dictionary:n})=>{const{addEditedContent:r}=Hn(),{addNewElement:u,removeElement:o}=sn(Wh);return N.jsxs("div",{className:"flex flex-col gap-2",children:[N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((l,d)=>N.jsxs(y.Fragment,{children:[N.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[N.jsx("span",{className:"text-xs",children:String(d)}),N.jsx(mt,{label:o.label.value,variant:"hoverable",color:"neutral",className:"ml-auto",textAlign:"left",onClick:()=>{const f=[...t,{type:j.Array,key:e.length}];r(n.key,void 0,f)},Icon:l4,children:o.text})]}),N.jsx("tr",{className:"block w-full",children:N.jsx(qh,{section:l??_r(e[0]),keyPath:[...t,{type:j.Array,key:d}],dictionary:n})})]},JSON.stringify(l)))})}),N.jsx(mt,{label:u.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>{const l=[...t,{type:j.Array,key:e.length}];r(n.key,_r(e[0])??"",l,!1)},Icon:mh,children:u.text})]})},IJ=({section:e,keyPath:t,dictionary:n})=>N.jsx(N.Fragment,{children:N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(r=>{const u=[...t,{type:j.Object,key:r}],o=e,l=Object.keys(o)[0],d=o[r]??_r(o[l]);return N.jsxs(y.Fragment,{children:[N.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(r)},JSON.stringify(d)),N.jsx("tr",{className:"block w-full",children:N.jsx(H_,{section:d,keyPath:u,dictionary:n})},JSON.stringify(d))]},r)})})})}),yJ=({section:e,keyPath:t,dictionary:n,isDarkMode:r})=>{const[u,o]=y.useState(0),l=[{content:"Edit",value:0},{content:"Preview",value:1}],d=e[j.Markdown];return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsx(td,{choices:l,value:u,onChange:o,color:"text",size:"sm",className:"ml-auto"}),u===0&&N.jsx(NB,{variant:"default","aria-label":"Edit field",keyPath:[...t,{type:j.Markdown}],dictionary:n,children:d}),u===1&&N.jsx(fJ,{isDarkMode:r,children:d})]})},CJ=({keyPath:e,dictionary:t,section:n,...r})=>{const{addEditedContent:u}=Hn(),o=n[j.Nested],l=[...e,{type:j.Nested}];return N.jsxs("div",{className:"w-full p-2",children:[N.jsx(KE,{children:"Dictionary key"}),N.jsx(vg,{"aria-label":"Edit field",type:"text",variant:"default",onContentChange:d=>{u(t.key,{...o,dictionaryKey:String(d)},l)},...r,children:o.dictionaryKey??""}),N.jsx(KE,{children:"Path (optional)"}),N.jsx(vg,{"aria-label":"Edit field",type:"text",variant:"default",onContentChange:d=>{u(t.key,{...o,path:d!==""?d:void 0},l)},...r,children:o.path??""})]})},H_=({section:e,keyPath:t,dictionary:n,isDarkMode:r})=>{const{tsxNotEditable:u}=sn(Wh),o=Gc(e);return o===j.ReactNode?N.jsxs(N.Fragment,{children:[N.jsx("span",{children:"[React Node]"}),N.jsx("span",{className:"text-neutral text-xs",children:u})]}):o===j.Nested?N.jsx(CJ,{dictionary:n,keyPath:t,section:e}):o===j.Translation?N.jsx(gJ,{dictionary:n,keyPath:t,section:e}):o===j.Enumeration?N.jsx(_J,{dictionary:n,keyPath:t,section:e}):o===j.Condition?N.jsx(SJ,{dictionary:n,keyPath:t,section:e}):o===j.Markdown?N.jsx(yJ,{dictionary:n,keyPath:t,section:e,isDarkMode:r}):o===j.Array?N.jsx(NJ,{dictionary:n,keyPath:t,section:e}):o===j.Object?N.jsx(IJ,{dictionary:n,keyPath:t,section:e}):o===j.Number?N.jsx("div",{className:"w-full p-2",children:N.jsx(mJ,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):o===j.Text?N.jsx("div",{className:"w-full p-2",children:N.jsx(NB,{variant:"default","aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):o===j.Boolean?N.jsx("div",{className:"w-full p-2",children:N.jsx(EJ,{dictionary:n,keyPath:t,value:e})}):N.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",o]})},qh=e=>N.jsx(si,{border:!0,background:"none",className:"top-6 flex h-full flex-1 flex-col gap-6 overflow-hidden p-2 md:sticky",roundedSize:"xl",children:N.jsx(H_,{...e})}),Vs=e=>{const t=qR(e);return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||(t==null?void 0:t.nodeType)===j.Markdown},IB={key:"breadcrumb",content:{linkLabel:_e({en:"Go to",fr:"Aller à",es:"Ir a","en-GB":"Go to",de:"Gehe zu",ja:"に移動",ko:"로 이동",zh:"转到",it:"Vai a",pt:"Ir para",hi:"कर जाएं",ar:"اذهب إلى",ru:"Перейти на"})}},vJ=({href:e,lang:t,children:n,onClick:r,color:u,position:o,locale:l,...d})=>{const{linkLabel:f}=sn(IB);return N.jsxs(N.Fragment,{children:[N.jsx(P_,{href:e,locale:l,color:u,onClick:r,itemProp:"item",itemScope:!0,itemType:"https://schema.org/WebPage",...d,label:`${f} ${n}`,itemID:e,children:N.jsx("span",{itemProp:"name",children:n})}),N.jsx("meta",{itemProp:"position",content:o.toString()})]})},RJ=({children:e,onClick:t,color:n,position:r,...u})=>{const{linkLabel:o}=sn(IB);return N.jsxs(N.Fragment,{children:[N.jsx(mt,{onClick:t,variant:"link",label:`${o} ${e}`,color:n,itemProp:"item",...u,children:N.jsx("span",{itemProp:"name",children:e})}),N.jsx("meta",{itemProp:"position",content:r.toString()})]})},TJ=({children:e,position:t,...n})=>N.jsxs("span",{itemProp:"item",children:[N.jsx("span",{itemProp:"name",...n,children:e}),N.jsx("meta",{itemProp:"position",content:t.toString()})]}),DJ=({links:e,className:t,color:n="text",locale:r,elementType:u="page",...o})=>N.jsx("nav",{"aria-label":"breadcrumb",children:N.jsx("ol",{className:Re("flex flex-row flex-wrap items-center gap-2 text-sm",t),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",...o,children:e.map((l,d)=>{const f=d===e.length-1,h=typeof l=="object"&&typeof l.href=="string",m=typeof l=="object"&&typeof l.onClick=="function",g=d===e.length-1?u:void 0,_=l.text??l;let S=N.jsx(TJ,{position:d+1,"aria-current":g,children:_},_);h?S=N.jsx(vJ,{href:l.href,color:n,position:d+1,locale:r,"aria-current":g,children:_},_):m&&(S=N.jsx(RJ,{onClick:l.onClick,color:n,position:d+1,"aria-current":g,children:_},_));const C=N.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:S},_);return f?C:N.jsxs(y.Fragment,{children:[C,N.jsx(Ul,{size:10})]},_)})})}),bJ=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const u=[{text:t,onClick:()=>n([])},...e.map((o,l)=>{var d;return{onClick:()=>n(e.slice(0,l+1)),text:((d=o.key)==null?void 0:d.toString())??""}})];return N.jsx(DJ,{links:u,locale:r,elementType:"location"})},Pg=e=>e.replace(/([A-Z])/g," $1").toLowerCase().trim(),Zl=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=Qe==null?void 0:Qe.internationalization,u=Zr(e,t),{addEditedContent:o}=oo(),{setFocusedContentKeyPath:l,focusedContent:d}=Ou(),{addNewElement:f,goToElement:h,goToField:m,goToEnumeration:E,goToTranslation:g}=sn(Wh),_=Gc(u),S=C=>{var v;return(((v=d==null?void 0:d.keyPath)==null?void 0:v.length)??0)>0&&Vc(C,(d==null?void 0:d.keyPath)??[])};if(!u)return N.jsx(N.Fragment,{});if(typeof u=="object"){if(_===j.ReactNode)return N.jsx(N.Fragment,{children:"React Node"});if(_===j.Translation)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(v=>{const R=[...t,{type:j.Translation,key:v}],T=Zr(e,R);return Vs(T)?N.jsx(mt,{label:`${g.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:Ul,children:v},v):N.jsx($l,{label:`${g.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:v,children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Zl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})});if(_===j.Enumeration||_===j.Condition)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(u[_]).map(v=>{const R=[...t,{type:_,key:v}],T=Zr(e,R);return Vs(T)?N.jsx(mt,{label:`${E.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:Ul,children:v},v):N.jsx($l,{label:`${E.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:v,children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Zl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})});if(_===j.Array)return N.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[u.map((v,R)=>{const T=[...t,{type:j.Array,key:R}];return Vs(v)?N.jsx(mt,{label:`${h.label.value} ${R}`,isActive:S(T),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(T),IconRight:Ul,children:R},`${R}`):N.jsx($l,{label:`${h.label.value} ${R}`,isActive:S(T),onClick:()=>l(T),header:R,children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Zl,{keyPath:T,section:e,dictionaryKey:n})})})},`${R}`)}),N.jsx(mt,{label:f.label.value,variant:"hoverable",color:"neutral",textAlign:"left",onClick:()=>{const v=[...t,{type:j.Array,key:u.length}],R=u,T=_r(R[R.length-1])??"";o(n,T,v,!1),l(v)},Icon:mh,children:f.text})]});const C=Object.keys(u);return N.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:C.map(v=>{const R=[...t,{type:j.Object,key:v}],T=Zr(e,R);return Vs(T)?N.jsx(mt,{label:`${m.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:Ul,children:Pg(v)},v):N.jsx($l,{label:`${m.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:Pg(v),children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Zl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})})}return N.jsxs(N.Fragment,{children:["Error loading section --",_,"--",JSON.stringify(u),"--",JSON.stringify(t)]})},xJ=({dictionary:e,isDarkMode:t})=>{var g,_;const{content:n,key:r}=e,{editedContent:u}=Hn(),{focusedContent:o,setFocusedContentKeyPath:l}=Ou(),d=o==null?void 0:o.keyPath,f=typeof((g=u==null?void 0:u[e.key])==null?void 0:g.content)>"u"?n:(_=u==null?void 0:u[r])==null?void 0:_.content,h=Zr(f,d??[]),m=Vs(f),E=Vs(h);return y.useEffect(()=>{var S;typeof h>"u"&&l(((S=o==null?void 0:o.keyPath)==null?void 0:S.slice(0,-1))??[])},[]),N.jsxs("div",{children:[N.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[N.jsx(bJ,{dictionaryKey:r,keyPath:d??[],onClickKeyPath:l}),N.jsx("div",{className:"flex items-center gap-2",children:N.jsx(dZ,{})})]}),N.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof f=="object"&&f&&!m&&Object.keys(f).length>0&&N.jsx(si,{border:!0,background:"none",className:"top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]",roundedSize:"xl",transparency:"sm",children:N.jsx(Zl,{keyPath:[],section:f,dictionaryKey:r})}),(E||(d??[]).length>0)&&N.jsx(qh,{keyPath:d??[],section:h,dictionary:e,isDarkMode:t})]})]})},BJ={key:"dictionary-details",content:{titleInput:{label:_e({en:"Title","en-GB":"Title",fr:"Titre",es:"Título",de:"Titel",ja:"タイトル",ko:"제목",zh:"标题",it:"Titolo",pt:"Título",hi:"शीर्षक",ar:"العنوان",ru:"Заголовок"}),description:_e({en:"The title of your dictionary allows you to easily identify it","en-GB":"The title of your dictionary allows you to easily identify it",fr:"Le titre de votre dictionnaire permet de l'identifier facilement",es:"El título de su diccionario le permite identificar fácilmente",de:"Der Titel Ihres Wörterbuchs ermöglicht es Ihnen, es leicht zu identifizieren",ja:"辞書のタイトルは、それを簡単に識別することができます",ko:"사전의 제목은 이를 쉽게 식별할 수 있게 해줍니다",zh:"字典的标题使您能够轻松识别它",it:"Il titolo del tuo dizionario ti consente di identificarlo facilmente",pt:"O título do seu dicionário permite que você o identifique facilmente",hi:"आपके शब्दकोश का शीर्षक इसे आसानी से पहचानने में मदद करता है",ar:"يتيح لك عنوان القاموس الخاص بك التعرف عليه بسهولة",ru:"Название вашего словаря позволяет легко его идентифицировать"}),placeholder:_e({en:"Enter the title of your dictionary","en-GB":"Enter the title of your dictionary",fr:"Entrez le titre de votre dictionnaire",es:"Ingrese el título de su diccionario",de:"Geben Sie den Titel Ihres Wörterbuchs ein",ja:"辞書のタイトルを入力してください",ko:"사전의 제목을 입력하세요",zh:"输入字典的标题",it:"Inserisci il titolo del tuo dizionario",pt:"Insira o título do seu dicionário",hi:"आपके शब्दकोश का शीर्षक दर्ज करें",ar:"أدخل عنوان القاموس الخاص بك",ru:"Введите название вашего словаря"})},keyInput:{label:_e({en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"कुंजी",ar:"مفتاح",ru:"Ключ"}),description:_e({en:"The key of your dictionary is used to identify it in the application","en-GB":"The key of your dictionary is used to identify it in the application",fr:"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application",es:"La clave de su diccionario se utiliza para identificarla en la aplicación",de:"Der Schlüssel Ihres Wörterbuchs wird verwendet, um es in der Anwendung zu identifizieren",ja:"辞書のキーは、アプリケーション内でそれを識別するために使用されます",ko:"사전의 키는 애플리케이션에서 이를 식별하는 데 사용됩니다",zh:"字典的键用于在应用程序中识别它",it:"La chiave del tuo dizionario viene utilizzata per identificarlo nell'applicazione",pt:"A chave do seu dicionário é usada para identificá-lo no aplicativo",hi:"आपके शब्दकोश की कुंजी इसे एप्लिकेशन में पहचानने के लिए उपयोग की जाती है",ar:"مفتاح القاموس الخاص بك يُستخدم لتحديده في التطبيق",ru:"Ключ вашего словаря используется для его идентификации в приложении"}),placeholder:_e({en:"Enter the key of your dictionary","en-GB":"Enter the key of your dictionary",fr:"Entrez la clé de votre dictionnaire",es:"Ingrese la clave de su diccionario",de:"Geben Sie den Schlüssel Ihres Wörterbuchs ein",ja:"辞書のキーを入力してください",ko:"사전의 키를 입력하세요",zh:"输入字典的键",it:"Inserisci la chiave del tuo dizionario",pt:"Insira a chave do seu dicionário",hi:"अपने शब्दकोश की कुंजी दर्ज करें",ar:"أدخل مفتاح القاموس الخاص بك",ru:"Введите ключ вашего словаря"})},descriptionInput:{label:_e({en:"Description","en-GB":"Description",fr:"Description",es:"Descripción",de:"Beschreibung",ja:"説明",ko:"설명",zh:"描述",it:"Descrizione",pt:"Descrição",hi:"विवरण",ar:"الوصف",ru:"Описание"}),placeholder:_e({en:"Enter the description of your dictionary","en-GB":"Enter the description of your dictionary",fr:"Entrez la description de votre dictionnaire",es:"Ingrese la descripción de su diccionario",de:"Geben Sie die Beschreibung Ihres Wörterbuchs ein",ja:"辞書の説明を入力してください",ko:"사전의 설명을 입력하세요",zh:"输入字典的描述",it:"Inserisci la descrizione del tuo dizionario",pt:"Insira a descrição do seu dicionário",hi:"अपने शब्दकोश का विवरण दर्ज करें",ar:"أدخل وصف القاموس الخاص بك",ru:"Введите описание вашего словаря"}),description:_e({en:"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.","en-GB":"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.",fr:"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.",es:"La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.",de:"Die Beschreibung Ihres Wörterbuchs ermöglicht es Ihnen, es mit Schlüsselwörtern leicht zu identifizieren. Sie wird auch verwendet, um nach Ihrem Wörterbuch zu suchen und der KI zu helfen, Ihr Wörterbuch zu verstehen.",ja:"辞書の説明は、キーワードを使用して簡単に識別できます。また、辞書を検索するために使用され、AIが辞書を理解するのを助けます。",ko:"사전의 설명은 키워드를 사용하여 쉽게 식별할 수 있습니다. 또한 사전을 검색하고 AI가 사전을 이해하는 데 도움을 줍니다.",zh:"您字典的描述使您能够使用关键字轻松地识别它。它还用于搜索您的字典,以及帮助 AI 理解您的字典。",it:"La descrizione del tuo dizionario ti consente di identificarlo facilmente utilizzando parole chiave. Viene anche utilizzata per cercare il tuo dizionario e per assistere l'IA nella comprensione del tuo dizionario.",pt:"A descrição do seu dicionário permite que você o identifique facilmente usando palavras-chave. Também é usada para pesquisar seu dicionário e para ajudar a IA a entender seu dicionário.",hi:"आपके शब्दकोश का विवरण आपको कुंजीशब्दों का उपयोग करके इसे आसानी से पहचानने की अनुमति देता है। इसका उपयोग आपके शब्दकोश की खोज करने और AI को आपके शब्दकोश को समझने में मदद करने के लिए भी किया जाता है।",ar:"يتيح لك وصف القاموس الخاص بك التعرف عليه بسهولة باستخدام الكلمات الرئيسية. كما أنه يستخدم للبحث عن القاموس الخاص بك ، ولمساعدة الذكاء الاصطناعي على فهم القاموس الخاص بك.",ru:"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря."})},projectInput:{label:_e({en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"परियोजनाएँ",ar:"المشاريع",ru:"Проекты"}),description:_e({en:"A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more projects. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Projekten verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のプロジェクトに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 하나 이상의 프로젝트와 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个项目关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più progetti. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais projetos. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes.",hi:"एक शब्दकोश को एक या अधिक परियोजनाओं से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।",ar:"يمكن ربط قاموس بواحد أو أكثر من المشاريع. وهذا يتيح لك تحميل القاموس على تطبيقات مختلفة ومشاركته عبر فرق مختلفة.",ru:"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами."}),placeholder:_e({en:"Select one or more projects to associate with your dictionary","en-GB":"Select one or more projects to associate with your dictionary",fr:"Sélectionnez un ou plusieurs projets à associer à votre dictionnaire",es:"Seleccione uno o más proyectos para asociar con su diccionario",de:"Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen",ja:"辞書に関連付けるプロジェクトを1つ以上選択してください",ko:"사전과 연결할 하나 이상의 프로젝트를 선택하세요",zh:"选择一个或多个项目以与您的字典关联",it:"Seleziona uno o più progetti da associare al tuo dizionario",pt:"Selecione um ou mais projetos para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए एक या अधिक परियोजनाएँ चुनें",ar:"حدد مشروعًا أو أكثر لربطه بقاموسك",ru:"Выберите один или несколько проектов, чтобы связать их с вашим словарем"})},tagsSelect:{label:_e({en:"Tags","en-GB":"Tags",fr:"Tags",es:"Etiquetas",de:"Tags",ja:"タグ",ko:"태그",zh:"标签",it:"Tag",pt:"Tags",hi:"टैग",ar:"الوسوم",ru:"Теги"}),description:_e({en:"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs tags. Cela permet de charger le dictionnaire dans différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más tags. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Tags verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のタグに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 태그를 하나 이상의 태그로 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个标签关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più tag. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais tags. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes."}),placeholder:_e({en:"Select the tags to associate with your dictionary","en-GB":"Select the tags to associate with your dictionary",fr:"Sélectionnez les tags à associer à votre dictionnaire",es:"Seleccione los tags para asociar con su diccionario",de:"Wählen Sie die Tags, die mit Ihrem Wörterbuch verknüpft werden sollen",ja:"辞書に関連付けるタグを選択してください",ko:"사전과 연결할 태그를 선택하세요",zh:"选择与您的字典相关的标签",it:"Seleziona i tag da associare al tuo dizionario",pt:"Selecione os tags para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए टैग का चयन करें",ar:"حدد الوسوم التي تريد ربطها بقاموسك",ru:"Выберите теги, которые нужно связать с словарем"})},auditButton:{label:_e({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"}),text:_e({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"})}}},FJ={key:"dictionary-detail-schema",content:{titleRequiredError:_e({en:"Please enter a name for your organization.","en-GB":"Please enter a name for your organization.",fr:"Veuillez saisir un nom pour votre organisation.",es:"Por favor, ingrese un nombre para su organización.",de:"Bitte geben Sie einen Namen für Ihre Organisation ein.",ja:"あなたの組織の名前を入力してください。",ko:"조직 이름을 입력하세요.",zh:"请输入您组织的名称。",it:"Si prega di inserire un nome per la propria organizzazione.",pt:"Por favor, insira um nome para sua organização.",hi:"कृपया अपने संगठन का नाम दर्ज करें।",ar:"يرجى إدخال اسم منظمتك.",ru:"Пожалуйста, введите название вашей организации."}),titleInvalidTypeError:_e({en:"The organization name must be a valid string.","en-GB":"The organization name must be a valid string.",fr:"Le nom de votre organisation doit être une chaîne valide.",es:"El nombre de su organización debe ser una cadena válida.",de:"Der Name der Organisation muss eine gültige Zeichenfolge sein.",ja:"組織名は有効な文字列である必要があります。",ko:"조직 이름은 유효한 문자열이어야 합니다.",zh:"组织名称必须是有效的字符串。",it:"Il nome dell'organizzazione deve essere una stringa valida.",pt:"O nome da organização deve ser uma string válida.",hi:"संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون اسم المنظمة سلسلة صحيحة.",ru:"Имя организации должно быть правильной строкой."}),titleMinLengthError:_e({en:"The organization name must be at least 4 characters long.","en-GB":"The organization name must be at least 4 characters long.",fr:"Le nom de votre organisation doit comporter au moins 4 caractères.",es:"El nombre de su organización debe tener al menos 4 caracteres.",de:"Der Name der Organisation muss mindestens 4 Zeichen lang sein.",ja:"組織名は4文字以上でなければなりません。",ko:"조직 이름은 4자 이상이어야 합니다.",zh:"组织名称必须至少4个字符。",it:"Il nome dell'organizzazione deve essere lungo almeno 4 caratteri.",pt:"O nome da organização deve ter pelo menos 4 caracteres.",hi:"संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।",ar:"يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.",ru:"Имя организации должно содержать не менее 4 символов."}),keyRequiredError:_e({en:"Please enter a key for your organization.","en-GB":"Please enter a key for your organization.",fr:"Veuillez saisir une clé pour votre organisation.",es:"Por favor, ingrese una clave para su organización.",de:"Bitte geben Sie einen Schlüssel für Ihre Organisation ein.",ja:"あなたの組織のためにキーを入力してください。",ko:"조직에 대한 키를 입력하세요.",zh:"请输入您组织的键。",it:"Si prega di inserire una chiave per la propria organizzazione.",pt:"Por favor, insira uma chave para sua organização.",hi:"कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।",ar:"يرجى إدخال مفتاح لمنظمتك.",ru:"Пожалуйста, введите ключ для вашей организации."}),keyInvalidTypeError:_e({en:"The key must be a valid string.","en-GB":"The key must be a valid string.",fr:"La clé doit être une chaîne valide.",es:"La clave debe ser una cadena válida.",de:"Der Schlüssel muss eine gültige Zeichenfolge sein.",ja:"キーは有効な文字列である必要があります。",ko:"키는 유효한 문자열이어야 합니다.",zh:"关键字必须是有效的字符串。",it:"La chiave deve essere una stringa valida.",pt:"A chave deve ser uma string válida.",hi:"कुंजी एक वैध स्ट्रिंग होनी चाहिए।",ar:"يجب أن يكون المفتاح سلسلة صحيحة.",ru:"Ключ должен быть правильной строкой."}),keySpaceError:_e({en:"The key cannot contain spaces or special characters.","en-GB":"The key cannot contain spaces or special characters.",fr:"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.",es:"La clave no puede contener espacios o caracteres especiales.",de:"Der Schlüssel darf keine Leerzeichen oder Sonderzeichen enthalten.",ja:"キーにはスペースや特殊文字を含めることはできません。",ko:"키에는 공백이나 특수 문자가 포함될 수 없습니다.",zh:"关键字不能包含空格或特殊字符。",it:"La chiave non può contenere spazi o caratteri speciali.",pt:"A chave não pode conter espaços ou caracteres especiais.",hi:"कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।",ar:"لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.",ru:"Ключ не может содержать пробелы или специальные символы."}),keyMinLengthError:_e({en:"The key must be at least 4 characters long.","en-GB":"The key must be at least 4 characters long.",fr:"La clé doit comporter au moins 4 caractères.",es:"La clave debe tener al menos 4 caracteres.",de:"Der Schlüssel muss mindestens 4 Zeichen lang sein.",ja:"キーは4文字以上でなければなりません。",ko:"키는 4자 이상이어야 합니다.",zh:"键必须至少为4个字符。",it:"La chiave deve essere lunga almeno 4 caratteri.",pt:"A chave deve ter pelo menos 4 caracteres.",hi:"कुंजी में कम से कम 4 वर्ण होने चाहिए।",ar:"يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.",ru:"Ключ должен содержать не менее 4 символов."}),descriptionRequiredError:_e({en:"Please enter a description for your organization.","en-GB":"Please enter a description for your organization.",fr:"Veuillez saisir une description pour votre organisation.",es:"Por favor, ingrese una descripción para su organización.",de:"Bitte geben Sie eine Beschreibung für Ihre Organisation ein.",ja:"あなたの組織の説明を入力してください。",ko:"조직에 대한 설명을 입력하세요.",zh:"请输入您组织的描述。",it:"Si prega di inserire una descrizione per la propria organizzazione.",pt:"Por favor, insira uma descrição para sua organização.",hi:"कृपया अपने संगठन का विवरण दर्ज करें।",ar:"يرجى إدخال وصف لمنظمتك.",ru:"Пожалуйста, введите описание вашей организации."}),descriptionInvalidTypeError:_e({en:"The description must be a valid string.","en-GB":"The description must be a valid string.",fr:"La description doit être une chaîne valide.",es:"La descripción debe ser una cadena válida.",de:"Die Beschreibung muss eine gültige Zeichenfolge sein.",ja:"説明は有効な文字列である必要があります。",ko:"설명은 유효한 문자열이어야 합니다.",zh:"描述必须是有效的字符串。",it:"La descrizione deve essere una stringa valida.",pt:"A descrição deve ser uma string válida.",hi:"विवरण एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون الوصف سلسلة صحيحة.",ru:"Описание должно быть правильной строкой."}),requiredErrorProjectId:_e({en:"Please select a project","en-GB":"Please select a project",fr:"Veuillez sélectionner un projet",es:"Por favor, seleccione un proyecto",de:"Bitte wählen Sie ein Projekt aus",ja:"プロジェクトを選択してください",ko:"프로젝트를 선택하세요",zh:"请选择一个项目",it:"Si prega di selezionare un progetto",pt:"Por favor, selecione um projeto",hi:"कृपया एक प्रोजेक्ट चुनें",ar:"يرجى اختيار مشروع",ru:"Пожалуйста, выберите проект"}),invalidTypeErrorProjectId:_e({en:"Please select a valid project","en-GB":"Please select a valid project",fr:"Veuillez sélectionner un projet valide",es:"Por favor, seleccione un proyecto válido",de:"Bitte wählen Sie ein gültiges Projekt aus",ja:"有効なプロジェクトを選択してください",ko:"유효한 프로젝트를 선택하세요",zh:"请选择有效的项目",it:"Si prega di selezionare un progetto valido",pt:"Por favor, selecione um projeto válido",hi:"कृपया एक वैध परियोजना चुनें",ar:"يرجى اختيار مشروع صالح",ru:"Пожалуйста, выберите действительный проект"}),invalidTypeErrorTags:_e({en:"Please enter a valid tag","en-GB":"Please enter a valid tag",fr:"Veuillez saisir un tag valide",es:"Por favor, ingrese un tag válido",de:"Bitte geben Sie einen gültigen Tag ein",ja:"有効なタグを入力してください",ko:"유효한 태그를 입력하세요",zh:"请输入有效的标签",it:"Si prega di inserire un tag valido",pt:"Por favor, insira um tag válido",hi:"कृपया एक वैध टैग दर्ज करें",ar:"يرجى إدخال وسم صالح",ru:"Пожалуйста, введите действительный тег"})}},OJ=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:u,keyInvalidTypeError:o,keySpaceError:l,keyMinLengthError:d,descriptionRequiredError:f,descriptionInvalidTypeError:h,requiredErrorProjectId:m,invalidTypeErrorProjectId:E,invalidTypeErrorTags:g}=sn(FJ);return Au.object({title:Au.string({required_error:t.value,invalid_type_error:n.value}).refine(_=>_.length===0||_.length>=4,{message:r.value}).optional(),key:Au.string({required_error:u.value,invalid_type_error:o.value}).min(4,{message:d.value}).regex(/^[a-zA-Z0-9-_]+$/,{message:l.value}).default(""),description:Au.string({required_error:f.value,invalid_type_error:h.value}).optional(),projectIds:Au.array(Au.string({required_error:m.value,invalid_type_error:E.value})).default([e]),tags:Au.array(Au.string({invalid_type_error:g.value})).default([])})},LJ=({dictionary:e})=>{var x,B;const{session:t}=Yc(),{project:n}=t??{},{data:r,isLoading:u}=SU(),{data:o}=yU(),l=OJ(String(n==null?void 0:n._id)),{form:d,isSubmitting:f}=oj(l,{defaultValues:e}),{editedContent:h,setEditedDictionary:m}=Hn(),{titleInput:E,keyInput:g,descriptionInput:_,projectInput:S,tagsSelect:C,auditButton:v}=sn(BJ),{auditContentDeclaration:R,isLoading:T}=CU(),b=h==null?void 0:h[e.key];y.useEffect(()=>{d.reset(e)},[e,d==null?void 0:d.reset]),y.useEffect(()=>{typeof b>"u"&&d.reset(e)},[b]);const L=async()=>{const O={...e,...b};await R({fileContent:JSON.stringify(O)}).then(H=>{if(H!=null&&H.data)try{const U=JSON.parse(H.data.fileContent);m(G=>({...G,...O,...U})),d.reset({...O,...U})}catch(U){console.error(U)}})};return N.jsx(si,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:N.jsxs(ut,{className:"flex w-full flex-col gap-8",...d,schema:l,onChange:O=>m(H=>({...H,...O})),children:[N.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[N.jsx(ut.EditableFieldInput,{name:"key",label:g.label,placeholder:g.label.value,description:g.description,disabled:f,isRequired:!0,onSave:O=>{d.setValue("key",O),m(H=>({...e,...H??{},key:O}))}}),N.jsx(ut.EditableFieldInput,{name:"title",label:E.label,placeholder:E.placeholder.value,description:E.description,disabled:f,onSave:O=>{d.setValue("title",O),m(H=>({...e,...H??{},title:O}))}})]}),N.jsx(ut.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:f,onSave:O=>{d.setValue("description",O),m(H=>({...e,...H??{},description:O}))}}),N.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[N.jsxs(ut.MultiSelect,{name:"projectIds",label:S.label.value,description:S.description.value,onValueChange:O=>{const H=[O].flat();d.setValue("projectIds",H),m(U=>({...e,...U??{},projectIds:H}))},children:[N.jsx(Sn.Trigger,{getBadgeValue:O=>{var H,U;return((U=(H=r==null?void 0:r.data)==null?void 0:H.find(G=>String(G._id)===O))==null?void 0:U.name)??O},children:N.jsx(Sn.Input,{placeholder:S.placeholder.value})}),N.jsx(Sn.Content,{children:N.jsx(Qs,{isLoading:u,children:N.jsx(Sn.List,{children:(x=r==null?void 0:r.data)==null?void 0:x.map(O=>N.jsx(Sn.Item,{value:String(O._id),children:O.name},String(O._id)))})})})]}),N.jsxs(ut.MultiSelect,{name:"tags",label:C.label.value,description:C.description.value,onValueChange:O=>{d.setValue("tags",[O].flat()),m(H=>({...e,...H??{},tags:[O].flat()}))},children:[N.jsx(Sn.Trigger,{getBadgeValue:O=>{var H,U;return((U=(H=r==null?void 0:r.data)==null?void 0:H.find(G=>String(G._id)===O))==null?void 0:U.name)??O},children:N.jsx(Sn.Input,{placeholder:C.placeholder.value})}),N.jsx(Sn.Content,{children:N.jsx(Qs,{isLoading:u,children:N.jsx(Sn.List,{children:(B=o==null?void 0:o.data)==null?void 0:B.map(O=>N.jsx(Sn.Item,{value:String(O.key),children:O.name??O.key},String(O.key)))})})})]})]}),N.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:N.jsx(ut.Button,{type:"button",label:v.label.value,Icon:U9,variant:"outline",color:"text",className:"max-md:w-full",onClick:L,disabled:f||T,isLoading:T,children:v.text})})]})})},wJ={key:"dictionary-field-editor",content:{returnToDictionaryList:{label:_e({en:"Return to dictionary list","en-GB":"Return to dictionary list",fr:"Retourner à la liste des dictionnaires",es:"Volver a la lista de diccionarios",de:"Zurück zur Wörterbuchliste",ja:"辞書リストに戻る",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",it:"Torna all'elenco dei dizionari",pt:"Voltar à lista de dicionários",hi:"शब्दकोश सूची में वापस जाएं",ar:"العودة إلى قائمة المعاجم",ru:"Вернуться к списку словарей"}),text:_e({en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",it:"Elenco dei dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة المعاجم",ru:"Список словарей"})}}};function MJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function oR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(n),!0).forEach(function(r){MJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,o;for(o=0;o<r.length;o++)u=r[o],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function HJ(e,t){if(e==null)return{};var n=PJ(e,t),r,u;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u<o.length;u++)r=o[u],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UJ(e,t){return kJ(e)||GJ(e,t)||VJ(e,t)||jJ()}function kJ(e){if(Array.isArray(e))return e}function GJ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,u=!1,o=void 0;try{for(var l=e[Symbol.iterator](),d;!(r=(d=l.next()).done)&&(n.push(d.value),!(t&&n.length===t));r=!0);}catch(f){u=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(u)throw o}}return n}}function VJ(e,t){if(e){if(typeof e=="string")return lR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lR(e,t)}}function lR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
287
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(r){zJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(u,o){return o(u)},r)}}function Wl(e){return function t(){for(var n=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(u,d))}}}function rh(e){return{}.toString.call(e).includes("Object")}function $J(e){return!Object.keys(e).length}function Mc(e){return typeof e=="function"}function YJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ZJ(e,t){return rh(t)||Nu("changeType"),Object.keys(t).some(function(n){return!YJ(e,n)})&&Nu("changeField"),t}function WJ(e){Mc(e)||Nu("selectorType")}function qJ(e){Mc(e)||rh(e)||Nu("handlerType"),rh(e)&&Object.values(e).some(function(t){return!Mc(t)})&&Nu("handlersType")}function XJ(e){e||Nu("initialIsRequired"),rh(e)||Nu("initialType"),$J(e)&&Nu("initialContent")}function QJ(e,t){throw new Error(e[t]||e.default)}var JJ={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Nu=Wl(QJ)(JJ),$0={changes:ZJ,selector:WJ,handler:qJ,initial:XJ};function eee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$0.initial(e),$0.handler(t);var n={current:e},r=Wl(ree)(n,t),u=Wl(nee)(n),o=Wl($0.changes)(e),l=Wl(tee)(n);function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return $0.selector(h),h(n.current)}function f(h){KJ(r,u,o,l)(h)}return[d,f]}function tee(e,t){return Mc(t)?t(e.current):t}function nee(e,t){return e.current=dR(dR({},e.current),t),t}function ree(e,t,n){return Mc(t)?t(e.current):Object.keys(n).forEach(function(r){var u;return(u=t[r])===null||u===void 0?void 0:u.call(t,e.current[r])}),n}var iee={create:eee},uee={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function aee(e){return function t(){for(var n=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(u,d))}}}function see(e){return{}.toString.call(e).includes("Object")}function oee(e){return e||fR("configIsRequired"),see(e)||fR("configType"),e.urls?(lee(),{paths:{vs:e.urls.monacoBase}}):e}function lee(){console.warn(yB.deprecation)}function cee(e,t){throw new Error(e[t]||e.default)}var yB={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
288
|
+
You are using deprecated way of configuration.
|
|
289
|
+
|
|
290
|
+
Instead of using
|
|
291
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
292
|
+
use
|
|
293
|
+
monaco.config({ paths: { vs: '...' } })
|
|
294
|
+
|
|
295
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
296
|
+
`},fR=aee(cee)(yB),dee={config:oee},fee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(u){return n.reduceRight(function(o,l){return l(o)},u)}};function CB(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],CB(e[n],t[n]))}),oR(oR({},e),t)}var hee={type:"cancelation",msg:"operation is manually canceled"};function NE(e){var t=!1,n=new Promise(function(r,u){e.then(function(o){return t?u(hee):r(o)}),e.catch(u)});return n.cancel=function(){return t=!0},n}var Aee=iee.create({config:uee,isInitialized:!1,resolve:null,reject:null,monaco:null}),vB=UJ(Aee,2),dd=vB[0],Xh=vB[1];function mee(e){var t=dee.config(e),n=t.monaco,r=HJ(t,["monaco"]);Xh(function(u){return{config:CB(u.config,r),monaco:n}})}function pee(){var e=dd(function(t){var n=t.monaco,r=t.isInitialized,u=t.resolve;return{monaco:n,isInitialized:r,resolve:u}});if(!e.isInitialized){if(Xh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),NE(IE);if(window.monaco&&window.monaco.editor)return RB(window.monaco),e.resolve(window.monaco),NE(IE);fee(Eee,_ee)(See)}return NE(IE)}function Eee(e){return document.body.appendChild(e)}function gee(e){var t=document.createElement("script");return e&&(t.src=e),t}function _ee(e){var t=dd(function(r){var u=r.config,o=r.reject;return{config:u,reject:o}}),n=gee("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function See(){var e=dd(function(n){var r=n.config,u=n.resolve,o=n.reject;return{config:r,resolve:u,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){RB(n),e.resolve(n)},function(n){e.reject(n)})}function RB(e){dd().monaco||Xh({monaco:e})}function Nee(){return dd(function(e){var t=e.monaco;return t})}var IE=new Promise(function(e,t){return Xh({resolve:e,reject:t})}),TB={config:mee,init:pee,__getMonacoInstance:Nee},Iee={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},yE=Iee,yee={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Cee=yee;function vee({children:e}){return $e.createElement("div",{style:Cee.container},e)}var Ree=vee,Tee=Ree;function Dee({width:e,height:t,isEditorReady:n,loading:r,_ref:u,className:o,wrapperProps:l}){return $e.createElement("section",{style:{...yE.wrapper,width:e,height:t},...l},!n&&$e.createElement(Tee,null,r),$e.createElement("div",{ref:u,style:{...yE.fullWidth,...!n&&yE.hide},className:o}))}var bee=Dee,DB=y.memo(bee);function xee(e){y.useEffect(e,[])}var bB=xee;function Bee(e,t,n=!0){let r=y.useRef(!0);y.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Wn=Bee;function ac(){}function js(e,t,n,r){return Fee(e,r)||Oee(e,t,n,r)}function Fee(e,t){return e.editor.getModel(xB(e,t))}function Oee(e,t,n,r){return e.editor.createModel(t,n,r?xB(e,r):void 0)}function xB(e,t){return e.Uri.parse(t)}function Lee({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:u,originalModelPath:o,modifiedModelPath:l,keepCurrentOriginalModel:d=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:m="Loading...",options:E={},height:g="100%",width:_="100%",className:S,wrapperProps:C={},beforeMount:v=ac,onMount:R=ac}){let[T,b]=y.useState(!1),[L,x]=y.useState(!0),B=y.useRef(null),O=y.useRef(null),H=y.useRef(null),U=y.useRef(R),G=y.useRef(v),fe=y.useRef(!1);bB(()=>{let te=TB.init();return te.then(V=>(O.current=V)&&x(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>B.current?Z():te.cancel()}),Wn(()=>{if(B.current&&O.current){let te=B.current.getOriginalEditor(),V=js(O.current,e||"",r||n||"text",o||"");V!==te.getModel()&&te.setModel(V)}},[o],T),Wn(()=>{if(B.current&&O.current){let te=B.current.getModifiedEditor(),V=js(O.current,t||"",u||n||"text",l||"");V!==te.getModel()&&te.setModel(V)}},[l],T),Wn(()=>{let te=B.current.getModifiedEditor();te.getOption(O.current.editor.EditorOption.readOnly)?te.setValue(t||""):t!==te.getValue()&&(te.executeEdits("",[{range:te.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),te.pushUndoStop())},[t],T),Wn(()=>{var te,V;(V=(te=B.current)==null?void 0:te.getModel())==null||V.original.setValue(e||"")},[e],T),Wn(()=>{let{original:te,modified:V}=B.current.getModel();O.current.editor.setModelLanguage(te,r||n||"text"),O.current.editor.setModelLanguage(V,u||n||"text")},[n,r,u],T),Wn(()=>{var te;(te=O.current)==null||te.editor.setTheme(h)},[h],T),Wn(()=>{var te;(te=B.current)==null||te.updateOptions(E)},[E],T);let ae=y.useCallback(()=>{var ee;if(!O.current)return;G.current(O.current);let te=js(O.current,e||"",r||n||"text",o||""),V=js(O.current,t||"",u||n||"text",l||"");(ee=B.current)==null||ee.setModel({original:te,modified:V})},[n,t,u,e,r,o,l]),ce=y.useCallback(()=>{var te;!fe.current&&H.current&&(B.current=O.current.editor.createDiffEditor(H.current,{automaticLayout:!0,...E}),ae(),(te=O.current)==null||te.editor.setTheme(h),b(!0),fe.current=!0)},[E,h,ae]);y.useEffect(()=>{T&&U.current(B.current,O.current)},[T]),y.useEffect(()=>{!L&&!T&&ce()},[L,T,ce]);function Z(){var V,ee,Q,Ae;let te=(V=B.current)==null?void 0:V.getModel();d||((ee=te==null?void 0:te.original)==null||ee.dispose()),f||((Q=te==null?void 0:te.modified)==null||Q.dispose()),(Ae=B.current)==null||Ae.dispose()}return $e.createElement(DB,{width:_,height:g,isEditorReady:T,loading:m,_ref:H,className:S,wrapperProps:C})}var wee=Lee;y.memo(wee);function Mee(e){let t=y.useRef();return y.useEffect(()=>{t.current=e},[e]),t.current}var Pee=Mee,Y0=new Map;function Hee({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:u,path:o,theme:l="light",line:d,loading:f="Loading...",options:h={},overrideServices:m={},saveViewState:E=!0,keepCurrentModel:g=!1,width:_="100%",height:S="100%",className:C,wrapperProps:v={},beforeMount:R=ac,onMount:T=ac,onChange:b,onValidate:L=ac}){let[x,B]=y.useState(!1),[O,H]=y.useState(!0),U=y.useRef(null),G=y.useRef(null),fe=y.useRef(null),ae=y.useRef(T),ce=y.useRef(R),Z=y.useRef(),te=y.useRef(r),V=Pee(o),ee=y.useRef(!1),Q=y.useRef(!1);bB(()=>{let W=TB.init();return W.then(z=>(U.current=z)&&H(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>G.current?P():W.cancel()}),Wn(()=>{var z,re,ne,de;let W=js(U.current,e||r||"",t||u||"",o||n||"");W!==((z=G.current)==null?void 0:z.getModel())&&(E&&Y0.set(V,(re=G.current)==null?void 0:re.saveViewState()),(ne=G.current)==null||ne.setModel(W),E&&((de=G.current)==null||de.restoreViewState(Y0.get(o))))},[o],x),Wn(()=>{var W;(W=G.current)==null||W.updateOptions(h)},[h],x),Wn(()=>{!G.current||r===void 0||(G.current.getOption(U.current.editor.EditorOption.readOnly)?G.current.setValue(r):r!==G.current.getValue()&&(Q.current=!0,G.current.executeEdits("",[{range:G.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),G.current.pushUndoStop(),Q.current=!1))},[r],x),Wn(()=>{var z,re;let W=(z=G.current)==null?void 0:z.getModel();W&&u&&((re=U.current)==null||re.editor.setModelLanguage(W,u))},[u],x),Wn(()=>{var W;d!==void 0&&((W=G.current)==null||W.revealLine(d))},[d],x),Wn(()=>{var W;(W=U.current)==null||W.editor.setTheme(l)},[l],x);let Ae=y.useCallback(()=>{var W;if(!(!fe.current||!U.current)&&!ee.current){ce.current(U.current);let z=o||n,re=js(U.current,r||e||"",t||u||"",z||"");G.current=(W=U.current)==null?void 0:W.editor.create(fe.current,{model:re,automaticLayout:!0,...h},m),E&&G.current.restoreViewState(Y0.get(z)),U.current.editor.setTheme(l),d!==void 0&&G.current.revealLine(d),B(!0),ee.current=!0}},[e,t,n,r,u,o,h,m,E,l,d]);y.useEffect(()=>{x&&ae.current(G.current,U.current)},[x]),y.useEffect(()=>{!O&&!x&&Ae()},[O,x,Ae]),te.current=r,y.useEffect(()=>{var W,z;x&&b&&((W=Z.current)==null||W.dispose(),Z.current=(z=G.current)==null?void 0:z.onDidChangeModelContent(re=>{Q.current||b(G.current.getValue(),re)}))},[x,b]),y.useEffect(()=>{if(x){let W=U.current.editor.onDidChangeMarkers(z=>{var ne;let re=(ne=G.current.getModel())==null?void 0:ne.uri;if(re&&z.find(de=>de.path===re.path)){let de=U.current.editor.getModelMarkers({resource:re});L==null||L(de)}});return()=>{W==null||W.dispose()}}return()=>{}},[x,L]);function P(){var W,z;(W=Z.current)==null||W.dispose(),g?E&&Y0.set(o,G.current.saveViewState()):(z=G.current.getModel())==null||z.dispose(),G.current.dispose()}return $e.createElement(DB,{width:_,height:S,isEditorReady:x,loading:f,_ref:fe,className:C,wrapperProps:v})}var Uee=Hee,kee=y.memo(Uee);const Gee=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:u=!0,isReadOnly:o=!1,onChange:l})=>{const d=y.useRef(null),f=y.useRef(null),[h,m]=y.useState({height:0,width:0}),E=y.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),g=(S,C)=>{var R;f.current=S;const v=(S.getContentHeight()??0)+25;C.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),C.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),C.editor.setTheme(E),C.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),C.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),C.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),C.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),m({height:v,width:((R=d.current)==null?void 0:R.clientWidth)??0})},_=r??e.split(`
|
|
297
|
+
`).length>1;return N.jsxs("div",{className:Re("relative h-full w-full text-sm",r&&"ml-0"),children:[u&&N.jsx("div",{className:"sticky top-5 z-10",children:N.jsx("div",{className:Re("absolute bottom-0 right-2 flex h-7 items-center"),children:N.jsx(SB,{content:e})})}),N.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:d,children:N.jsx(kee,{...h,defaultLanguage:"typescript",language:t,loading:N.jsx(Qs,{}),defaultValue:String(e).replace(/\n$/,""),onMount:g,onChange:l,options:{readOnly:o,cursorStyle:"line",minimap:{enabled:!1},scrollbar:{vertical:"hidden",verticalScrollbarSize:0,alwaysConsumeMouseWheel:!1},folding:!1,renderValidationDecorations:"off",quickSuggestions:!1,parameterHints:{enabled:!1},suggestOnTriggerCharacters:!1,mouseWheelScrollSensitivity:0,fastScrollSensitivity:0,scrollBeyondLastLine:!1,lineNumbers:_?"on":"off"},theme:E,className:"my-2 rounded-md"})})]})},Vee=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Hn(),u=l=>{try{return JSON.parse(l),!0}catch{return!1}},o=y.useMemo(()=>{var l;return((l=r==null?void 0:r[e.key])==null?void 0:l.content)??(e==null?void 0:e.content)??{}},[e]);return N.jsx(si,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:N.jsx(Gee,{language:"json",onChange:l=>{u(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(o,null,2)})})},jee={key:"node-type-selector",content:{triggerPlaceHolder:_e({en:"Node type","en-GB":"Node type",fr:"Type du Nœud",es:"Tipo del nodo",de:"Knotentyp",ja:"ノードタイプ",ko:"노드 유형",zh:"节点类型",it:"Tipo di nodo",pt:"Tipo de nó",hi:"नोड प्रकार",ar:"نوع العقدة",ru:"Тип узла"}),multilingual:_e({en:"Multilingual content","en-GB":"Multilingual content",fr:"Contenu Multilingue",es:"Contenido multilingüe",de:"Mehrsprachiger Inhalt",ja:"複数言語コンテンツ",ko:"다중 언어 콘텐츠",zh:"多语言内容",it:"Contenuto multilingue",pt:"Conteúdo multilíngue",hi:"बहुभाषी सामग्री",ar:"محتوى متعدد اللغات",ru:"Многоязычный контент"}),text:_e({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:_e({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:_e({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:_e({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:_e({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:_e({en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление"}),nest:_e({en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",nl:"Nest"}),condition:_e({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),markdown:_e({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:_e({en:"React Node","en-GB":"React Node",fr:"Node React",es:"Nodo React",de:"React-Knoten",ja:"リアル・ノード",ko:"리액 노드",zh:"React 节点",it:"Nodo React",pt:"Nó React",hi:"रेड नोड",ar:"عقدة رياكت",ru:"Реакт узел"})}},Z0=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:u,boolean:o,node:l,array:d,enumeration:f,triggerPlaceHolder:h,nest:m,condition:E,markdown:g,reactNode:_}=sn(jee),S=Gc(e),[C,v]=y.useState(S),R=T=>{v(T),t(T)};return y.useEffect(()=>{v(S)},[S]),N.jsxs(Pe,{value:C,onValueChange:R,children:[N.jsx(Pe.Trigger,{children:N.jsx(Pe.Value,{placeholder:h})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:j.Translation,children:n}),N.jsx(Pe.Item,{value:j.Text,children:r}),N.jsx(Pe.Item,{value:j.Number,children:u}),N.jsx(Pe.Item,{value:j.Boolean,children:o}),N.jsx(Pe.Item,{value:j.Object,children:l}),N.jsx(Pe.Item,{value:j.Array,children:d}),N.jsx(Pe.Item,{value:j.Enumeration,children:f}),N.jsx(Pe.Item,{value:j.Markdown,children:g}),N.jsx(Pe.Item,{value:j.Nested,children:m}),N.jsx(Pe.Item,{value:j.Condition,children:E}),N.jsx(Pe.Item,{value:j.ReactNode,disabled:!0,children:_})]})]})},BB={key:"editor-view",content:{titleInput:{placeholder:_e({en:"Enter the key of your node","en-GB":"Enter the key of your node",fr:"Entrez la clé de votre nœud",es:"Ingrese la clave de su nodo",de:"Geben Sie den Schlüssel Ihres Knotens ein",ja:"ノードのキーを入力してください",ko:"노드의 키를 입력하세요",zh:"输入您节点的键",it:"Inserisci la chiave del tuo nodo",pt:"Insira a chave do seu nó",hi:"अपनी नोड की कुंजी दर्ज करें",ar:"أدخل مفتاح العقدة الخاص بك",ru:"Введите ключ вашего узла"})},deleteButton:{label:_e({en:"Remove node from section","en-GB":"Remove node from section",fr:"Supprimer le nœud de la section",es:"Eliminar el nodo de la sección",de:"Knoten aus dem Abschnitt entfernen",ja:"セクションからノードを削除",ko:"섹션에서 노드를 제거",zh:"从部分中移除节点",it:"Rimuovi nodo dalla sezione",pt:"Remover nó da seção",hi:"सेक्शन से नोड हटाएं",ar:"إزالة العقدة من القسم",ru:"Удалить узел из секции"})},addNodeButton:{label:_e({en:"Click to add a new node","en-GB":"Click to add a new node",fr:"Cliquez pour ajouter un nouveau nœud",es:"Haga clic para agregar un nuevo nodo",de:"Klicken, um einen neuen Knoten hinzuzufügen",ja:"新しいノードを追加するにはクリックしてください",ko:"새 노드를 추가하려면 클릭하세요",zh:"点击添加新节点",it:"Fai clic per aggiungere un nuovo nodo",pt:"Clique para adicionar um novo nó",hi:"नया नोड जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عقدة جديدة",ru:"Нажмите, чтобы добавить новый узел"}),text:_e({en:"Add a new node","en-GB":"Add a new node",fr:"Ajouter un nouveau nœud",es:"Agregar un nuevo nodo",de:"Neuen Knoten hinzufügen",ja:"新しいノードを追加",ko:"새 노드 추가",zh:"添加新节点",it:"Aggiungi un nuovo nodo",pt:"Adicionar um novo nó",hi:"नया नोड जोड़ें",ar:"إضافة عقدة جديدة",ru:"Добавить новый узел"})}}},Hg=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var f;const u=((f=ui())==null?void 0:f.internationalization.locales)??[],o=Gc(e),l=qR(e),d=h=>{const m=bl(o,u,h);r(m)};if(o===j.Translation||o===j.Condition||o===j.Enumeration){const h=Object.keys(e[o])[0],m=[...n,{type:o,key:h}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(Z0,{section:e,onValueChange:E=>r(bl(E,u))}),N.jsx(Hg,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:d})]})}if(o===j.Array){const h=[...n,{type:o,key:0}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(Z0,{section:e,onValueChange:m=>r(bl(m,u))}),N.jsx(Hg,{section:l,keyPath:h,dictionaryKey:t,onNodeTypeChange:d})]})}return o===j.Object?N.jsxs(N.Fragment,{children:[N.jsx(Z0,{section:e,onValueChange:h=>r(bl(h,u))}),N.jsx("div",{className:"ml-10 mt-6",children:N.jsx(Kee,{keyPath:n,section:e,dictionaryKey:t})})]}):N.jsx(Z0,{section:e,onValueChange:h=>r(bl(h,u))})},U_=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:u,setFocusedContentKeyPath:o}=Ou(),{renameEditedContent:l,addEditedContent:d}=oo(),{titleInput:f,deleteButton:h}=sn(BB),m=E=>{l(r,E,n);const g=n.slice(0,-1),_=n[n.length-1],S=[...g,{..._,key:E}];o(S)};return N.jsx(si,{transparency:"xl",roundedSize:"xl",className:"w-full min-w-80 gap-2 overflow-auto px-5 py-2",border:!0,borderColor:"text",background:"none","aria-selected":Vc(n,(u==null?void 0:u.keyPath)??[]),onClick:()=>o(n),children:N.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&N.jsxs("div",{className:"w-full",children:[N.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[N.jsx(MT,{name:"key","aria-label":"Key",placeholder:f.placeholder.value,defaultValue:e,onSave:E=>m(E),variant:"invisible"}),N.jsx(mt,{label:h.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:l4,onClick:()=>{d(r,void 0,n);const E=n.slice(0,-1);o(E)}})]}),N.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",Pg(e)," )"]})]}),N.jsx(Hg,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:E=>{d(r,E,n)}})]})})},zee=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=sn(BB),{setFocusedContentKeyPath:u}=Qg(),{addEditedContent:o}=oo();return!e||typeof e!="object"?N.jsx("div",{children:"Not an object"}):N.jsxs("div",{className:"flex flex-col gap-2 overflow-y-scroll",children:[N.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>N.jsx("li",{className:"flex w-full",children:N.jsx(U_,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:j.Object,key:l}],dictionaryKey:n})},l))}),N.jsx(mt,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:mh,className:"flex-1",onClick:()=>{const d=[...t,{type:j.Object,key:"newKey"}];o(n,"",d),u(d)},children:r.text})]})},Kee=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?N.jsx(U_,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):N.jsx(zee,{section:e,keyPath:t,dictionaryKey:n}),$ee=({dictionary:e})=>{var o,l;const{content:t,key:n}=e,{editedContent:r}=Hn(),u=typeof((o=r==null?void 0:r[n])==null?void 0:o.content)>"u"?t:(l=r==null?void 0:r[n])==null?void 0:l.content;return N.jsx(U_,{section:u,keyPath:[],dictionaryKey:e.key})},Yee=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r})=>{const u=ui(),[o,l]=y.useState(1),{returnToDictionaryList:d}=sn(wJ),{setFocusedContent:f}=Qg(),{setLocaleDictionaries:h}=Xg();return y.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key})),h(m=>({...m,[e.key]:e}))},[]),N.jsx(cZ,{availableLocales:(u==null?void 0:u.internationalization.locales)??[],children:N.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[N.jsx(mt,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:Y8,label:d.label.value,children:d.text}),N.jsx(td,{defaultValue:o,onChange:m=>l(m),color:"text",size:"sm",className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:0},{content:"Structure",value:2},{content:"Content",value:1},{content:"JSON",value:3}].filter(({value:m})=>!(!r.includes("remote")&&m===0))}),o===0&&N.jsx(LJ,{dictionary:e}),o===2&&N.jsx($ee,{dictionary:e}),o===1&&N.jsx(xJ,{dictionary:e,isDarkMode:n}),o===3&&N.jsx(Vee,{dictionary:e,isDarkMode:n}),N.jsx(Jb,{dictionary:e,mode:r})]})})},Zee=()=>{const{toasts:e}=fT();return N.jsxs(iU.Provider,{children:[e.map(({id:t,title:n,description:r,action:u,...o})=>N.jsxs(sU,{...o,children:[N.jsxs("div",{className:"grid gap-1",children:[n&&N.jsx(lU,{children:n}),r&&N.jsx(cU,{children:r})]}),u,N.jsx(oU,{})]},t)),N.jsx(uU,{})]})},FB=(...e)=>{const{localeDictionaries:t}=YR(),{data:n,isWaitingData:r}=NU(...e),u=y.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,d)=>(l[d.key]=d,l),{}),[n]),o=y.useMemo(()=>xU(u??{},t),[u,t]);return{online:u,locale:t,all:o,isLoading:r}},Wee=typeof window<"u",qee={useManualTiming:!1};function Xee(e){let t=new Set,n=new Set,r=!1,u=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function d(h){o.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,m=!1,E=!1)=>{const _=E&&r?t:n;return m&&o.add(h),_.has(h)||_.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,r){u=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,u&&(u=!1,f.process(h))}};return f}const W0=["read","resolveKeyframes","update","preRender","render","postRender"],Qee=40;function Jee(e,t){let n=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=W0.reduce((R,T)=>(R[T]=Xee(o),R),{}),{read:d,resolveKeyframes:f,update:h,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,u.delta=r?1e3/60:Math.max(Math.min(R-u.timestamp,Qee),1),u.timestamp=R,u.isProcessing=!0,d.process(u),f.process(u),h.process(u),m.process(u),E.process(u),g.process(u),u.isProcessing=!1,n&&t&&(r=!1,e(_))},S=()=>{n=!0,r=!0,u.isProcessing||e(_)};return{schedule:W0.reduce((R,T)=>{const b=l[T];return R[T]=(L,x=!1,B=!1)=>(n||S(),b.schedule(L,x,B)),R},{}),cancel:R=>{for(let T=0;T<W0.length;T++)l[W0[T]].cancel(R)},state:u,steps:l}}const{schedule:Mr,cancel:Ug,state:ih}=Jee(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0),ete=y.createContext({strict:!1}),hR={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pc={};for(const e in hR)Pc[e]={isEnabled:t=>hR[e].some(n=>!!t[n])};function AR(e){for(const t in e)Pc[t]={...Pc[t],...e[t]}}function tte({children:e,features:t,strict:n=!1}){const[,r]=y.useState(!CE(t)),u=y.useRef(void 0);if(!CE(t)){const{renderer:o,...l}=t;u.current=o,AR(l)}return y.useEffect(()=>{CE(t)&&t().then(({renderer:o,...l})=>{AR(l),u.current=o,r(!0)})},[]),N.jsx(ete.Provider,{value:{renderer:u.current,strict:n},children:e})}function CE(e){return typeof e=="function"}function k_(e){return typeof e=="string"||Array.isArray(e)}function G_(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const V_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],j_=["initial",...V_];function OB(e){return G_(e.animate)||j_.some(t=>k_(e[t]))}function nte(e){return!!(OB(e)||e.variants)}const z_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rte="framerAppearId",ite="data-"+z_(rte),ute=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ate(e){return typeof e!="string"||e.includes("-")?!1:!!(ute.indexOf(e)>-1||/[A-Z]/u.test(e))}function mR(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function LB(e,t,n,r){if(typeof t=="function"){const[u,o]=mR(r);t=t(n!==void 0?n:e.custom,u,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[u,o]=mR(r);t=t(n!==void 0?n:e.custom,u,o)}return t}const kg=e=>Array.isArray(e),ste=e=>kg(e)?e[e.length-1]||0:e,Sr=e=>!!(e&&e.getVelocity),Ro=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(Ro),wB=e=>t=>typeof t=="string"&&t.startsWith(e),MB=wB("--"),ote=wB("var(--"),K_=e=>ote(e)?lte.test(e.split("/*")[0].trim()):!1,lte=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ua=(e,t,n)=>n>t?t:n<e?e:n,Do={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Hc={...Do,transform:e=>Ua(0,1,e)},q0={...Do,default:1},fd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_u=fd("deg"),qs=fd("%"),je=fd("px"),cte=fd("vh"),dte=fd("vw"),pR={...qs,parse:e=>qs.parse(e)/100,transform:e=>qs.transform(e*100)},fte={borderWidth:je,borderTopWidth:je,borderRightWidth:je,borderBottomWidth:je,borderLeftWidth:je,borderRadius:je,radius:je,borderTopLeftRadius:je,borderTopRightRadius:je,borderBottomRightRadius:je,borderBottomLeftRadius:je,width:je,maxWidth:je,height:je,maxHeight:je,top:je,right:je,bottom:je,left:je,padding:je,paddingTop:je,paddingRight:je,paddingBottom:je,paddingLeft:je,margin:je,marginTop:je,marginRight:je,marginBottom:je,marginLeft:je,backgroundPositionX:je,backgroundPositionY:je},hte={rotate:_u,rotateX:_u,rotateY:_u,rotateZ:_u,scale:q0,scaleX:q0,scaleY:q0,scaleZ:q0,skew:_u,skewX:_u,skewY:_u,distance:je,translateX:je,translateY:je,translateZ:je,x:je,y:je,z:je,perspective:je,transformPerspective:je,opacity:Hc,originX:pR,originY:pR,originZ:je},ER={...Do,transform:Math.round},$_={...fte,...hte,zIndex:ER,size:je,fillOpacity:Hc,strokeOpacity:Hc,numOctaves:ER},Ate={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mte=Ro.length;function pte(e,t,n){let r="",u=!0;for(let o=0;o<mte;o++){const l=Ro[o],d=e[l];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(l.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const h=PB(d,$_[l]);if(!f){u=!1;const m=Ate[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,u?"":r):u&&(r="none"),r}function HB(e,t,n){const{style:r,vars:u,transformOrigin:o}=e;let l=!1,d=!1;for(const f in t){const h=t[f];if(To.has(f)){l=!0;continue}else if(MB(f)){u[f]=h;continue}else{const m=PB(h,$_[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=pte(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const Ete={offset:"stroke-dashoffset",array:"stroke-dasharray"},gte={offset:"strokeDashoffset",array:"strokeDasharray"};function _te(e,t,n=1,r=0,u=!0){e.pathLength=1;const o=u?Ete:gte;e[o.offset]=je.transform(-r);const l=je.transform(t),d=je.transform(n);e[o.array]=`${l} ${d}`}function gR(e,t,n){return typeof e=="string"?e:je.transform(t+n*e)}function Ste(e,t,n){const r=gR(t,e.x,e.width),u=gR(n,e.y,e.height);return`${r} ${u}`}function Nte(e,{attrX:t,attrY:n,attrScale:r,originX:u,originY:o,pathLength:l,pathSpacing:d=1,pathOffset:f=0,...h},m,E){if(HB(e,h,E),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:_,dimensions:S}=e;g.transform&&(S&&(_.transform=g.transform),delete g.transform),S&&(u!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=Ste(S,u!==void 0?u:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),l!==void 0&&_te(g,l,d,f,!1)}const Ite=e=>typeof e=="string"&&e.toLowerCase()==="svg";function UB(e,{style:t,vars:n},r,u){Object.assign(e.style,t,u&&u.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const kB=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function yte(e,t,n,r){UB(e,t,void 0,r);for(const u in t.attrs)e.setAttribute(kB.has(u)?u:z_(u),t.attrs[u])}const Cte={};function vte(e,{layout:t,layoutId:n}){return To.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Cte[e]||e==="opacity")}function GB(e,t,n){var r;const{style:u}=e,o={};for(const l in u)(Sr(u[l])||t.style&&Sr(t.style[l])||vte(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=u[l]);return o}function Rte(e,t,n){const r=GB(e,t,n);for(const u in e)if(Sr(e[u])||Sr(t[u])){const o=Ro.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[o]=e[u]}return r}function VB(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Qh(e,t,n){const r=e.getProps();return LB(r,t,n!==void 0?n:r.custom,e)}const jB=new Set(["width","height","top","left","right","bottom",...Ro]);let Af;function Tte(){Af=void 0}const Iu={now:()=>(Af===void 0&&Iu.set(ih.isProcessing||qee.useManualTiming?ih.timestamp:performance.now()),Af),set:e=>{Af=e,queueMicrotask(Tte)}};function Dte(e,t){e.indexOf(t)===-1&&e.push(t)}function bte(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zB{constructor(){this.subscriptions=[]}add(t){return Dte(this.subscriptions,t),()=>bte(this.subscriptions,t)}notify(t,n,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](t,n,r);else for(let o=0;o<u;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function KB(e,t){return t?e*(1e3/t):0}const _R=30,xte=e=>!isNaN(parseFloat(e));class Bte{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,u=!0)=>{const o=Iu.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Iu.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xte(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new zB);const r=this.events[t].add(n);return t==="change"?()=>{r(),Mr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Iu.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_R)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_R);return KB(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uh(e,t){return new Bte(e,t)}function Fte(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uh(n))}function Ote(e,t){const n=Qh(e,t);let{transitionEnd:r={},transition:u={},...o}=n||{};o={...o,...r};for(const l in o){const d=ste(o[l]);Fte(e,l,d)}}function Lte(e){return!!(Sr(e)&&e.add)}function wte(e,t){const n=e.getValue("willChange");if(Lte(n))return n.add(t)}function Mte(e){return e.props[ite]}const $B=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Pte=1e-7,Hte=12;function Ute(e,t,n,r,u){let o,l,d=0;do l=t+(n-t)/2,o=$B(l,r,u)-e,o>0?n=l:t=l;while(Math.abs(o)>Pte&&++d<Hte);return l}function hd(e,t,n,r){if(e===t&&n===r)return Xt;const u=o=>Ute(o,0,1,e,n);return o=>o===0||o===1?o:$B(u(o),t,r)}const YB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ZB=e=>t=>1-e(1-t),WB=hd(.33,1.53,.69,.99),Y_=ZB(WB),qB=YB(Y_),XB=e=>(e*=2)<1?.5*Y_(e):.5*(2-Math.pow(2,-10*(e-1))),Z_=e=>1-Math.sin(Math.acos(e)),kte=ZB(Z_),QB=YB(Z_),JB=e=>/^0[^.\s]+$/u.test(e);function Gte(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||JB(e):!0}const sc=e=>Math.round(e*1e5)/1e5,W_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vte(e){return e==null}const jte=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,q_=(e,t)=>n=>!!(typeof n=="string"&&jte.test(n)&&n.startsWith(e)||t&&!Vte(n)&&Object.prototype.hasOwnProperty.call(n,t)),eF=(e,t,n)=>r=>{if(typeof r!="string")return r;const[u,o,l,d]=r.match(W_);return{[e]:parseFloat(u),[t]:parseFloat(o),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},zte=e=>Ua(0,255,e),vE={...Do,transform:e=>Math.round(zte(e))},Ra={test:q_("rgb","red"),parse:eF("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vE.transform(e)+", "+vE.transform(t)+", "+vE.transform(n)+", "+sc(Hc.transform(r))+")"};function Kte(e){let t="",n="",r="",u="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),u=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),u=e.substring(4,5),t+=t,n+=n,r+=r,u+=u),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const Gg={test:q_("#"),parse:Kte,transform:Ra.transform},zs={test:q_("hsl","hue"),parse:eF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qs.transform(sc(t))+", "+qs.transform(sc(n))+", "+sc(Hc.transform(r))+")"},In={test:e=>Ra.test(e)||Gg.test(e)||zs.test(e),parse:e=>Ra.test(e)?Ra.parse(e):zs.test(e)?zs.parse(e):Gg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ra.transform(e):zs.transform(e)},$te=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Yte(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(W_))===null||t===void 0?void 0:t.length)||0)+(((n=e.match($te))===null||n===void 0?void 0:n.length)||0)>0}const tF="number",nF="color",Zte="var",Wte="var(",SR="${}",qte=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Uc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},u=[];let o=0;const d=t.replace(qte,f=>(In.test(f)?(r.color.push(o),u.push(nF),n.push(In.parse(f))):f.startsWith(Wte)?(r.var.push(o),u.push(Zte),n.push(f)):(r.number.push(o),u.push(tF),n.push(parseFloat(f))),++o,SR)).split(SR);return{values:n,split:d,indexes:r,types:u}}function rF(e){return Uc(e).values}function iF(e){const{split:t,types:n}=Uc(e),r=t.length;return u=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],u[l]!==void 0){const d=n[l];d===tF?o+=sc(u[l]):d===nF?o+=In.transform(u[l]):o+=u[l]}return o}}const Xte=e=>typeof e=="number"?0:e;function Qte(e){const t=rF(e);return iF(e)(t.map(Xte))}const bo={test:Yte,parse:rF,createTransformer:iF,getAnimatableNone:Qte},Jte=new Set(["brightness","contrast","saturate","opacity"]);function ene(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(W_)||[];if(!r)return e;const u=n.replace(r,"");let o=Jte.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+u+")"}const tne=/\b([a-z-]*)\(.*?\)/gu,Vg={...bo,getAnimatableNone:e=>{const t=e.match(tne);return t?t.map(ene).join(" "):e}},nne={...$_,color:In,backgroundColor:In,outlineColor:In,fill:In,stroke:In,borderColor:In,borderTopColor:In,borderRightColor:In,borderBottomColor:In,borderLeftColor:In,filter:Vg,WebkitFilter:Vg},X_=e=>nne[e];function uF(e,t){let n=X_(e);return n!==Vg&&(n=bo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const rne=new Set(["auto","none","0"]);function ine(e,t,n){let r=0,u;for(;r<e.length&&!u;){const o=e[r];typeof o=="string"&&!rne.has(o)&&Uc(o).values.length&&(u=e[r]),r++}if(u&&n)for(const o of t)e[o]=uF(n,u)}const NR=e=>e===Do||e===je,IR=(e,t)=>parseFloat(e.split(", ")[t]),yR=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const u=r.match(/^matrix3d\((.+)\)$/u);if(u)return IR(u[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?IR(o[1],e):0}},une=new Set(["x","y","z"]),ane=Ro.filter(e=>!une.has(e));function sne(e){const t=[];return ane.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const so={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:yR(4,13),y:yR(5,14)};so.translateX=so.x;so.translateY=so.y;const ba=new Set;let jg=!1,zg=!1;function aF(){if(zg){const e=Array.from(ba).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const u=sne(r);u.length&&(n.set(r,u),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const u=n.get(r);u&&u.forEach(([o,l])=>{var d;(d=r.getValue(o))===null||d===void 0||d.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zg=!1,jg=!1,ba.forEach(e=>e.complete()),ba.clear()}function sF(){ba.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zg=!0)})}function one(){sF(),aF()}class Q_{constructor(t,n,r,u,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=u,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ba.add(this),jg||(jg=!0,Mr.read(sF),Mr.resolveKeyframes(aF))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:u}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=u==null?void 0:u.get(),d=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),u&&l===void 0&&u.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ba.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ba.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const oF=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),lne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cne(e){const t=lne.exec(e);if(!t)return[,];const[,n,r,u]=t;return[`--${n??r}`,u]}function lF(e,t,n=1){const[r,u]=cne(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return oF(l)?parseFloat(l):l}return K_(u)?lF(u,t,n+1):u}const cF=e=>t=>t.test(e),dne={test:e=>e==="auto",parse:e=>e},dF=[Do,je,qs,_u,dte,cte,dne],CR=e=>dF.find(cF(e));class fF extends Q_{constructor(t,n,r,u,o){super(t,n,r,u,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),K_(h))){const m=lF(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!jB.has(r)||t.length!==2)return;const[u,o]=t,l=CR(u),d=CR(o);if(l!==d)if(NR(l)&&NR(d))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let u=0;u<t.length;u++)Gte(t[u])&&r.push(u);r.length&&ine(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=so[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const u=n[n.length-1];u!==void 0&&t.getValue(r,u).jump(u,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:u}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=u.length-1,d=u[l];u[l]=so[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const vR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bo.test(e)||e==="0")&&!e.startsWith("url("));function fne(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function hne(e,t,n,r){const u=e[0];if(u===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=vR(u,t),d=vR(o,t);return!l||!d?!1:fne(e)||(n==="spring"||No(n))&&r}const Ane=e=>e!==null;function Jh(e,{repeat:t,repeatType:n="loop"},r){const u=e.filter(Ane),o=t&&n!=="loop"&&t%2===1?0:u.length-1;return!o||r===void 0?u[o]:r}const mne=40;class hF{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:u=0,repeatDelay:o=0,repeatType:l="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Iu.now(),this.options={autoplay:t,delay:n,type:r,repeat:u,repeatDelay:o,repeatType:l,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>mne?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&one(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Iu.now(),this.hasAttemptedResolve=!0;const{name:r,type:u,velocity:o,delay:l,onComplete:d,onUpdate:f,isGenerator:h}=this.options;if(!h&&!hne(t,r,u,o))if(l)this.options.duration=0;else{f&&f(Jh(t,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const eA=(e,t,n)=>e+(t-e)*n;function RE(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pne({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let u=0,o=0,l=0;if(!t)u=o=l=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;u=RE(f,d,e+1/3),o=RE(f,d,e),l=RE(f,d,e-1/3)}return{red:Math.round(u*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function ah(e,t){return n=>n>0?t:e}const TE=(e,t,n)=>{const r=e*e,u=n*(t*t-r)+r;return u<0?0:Math.sqrt(u)},Ene=[Gg,Ra,zs],gne=e=>Ene.find(t=>t.test(e));function RR(e){const t=gne(e);if(!t)return!1;let n=t.parse(e);return t===zs&&(n=pne(n)),n}const TR=(e,t)=>{const n=RR(e),r=RR(t);if(!n||!r)return ah(e,t);const u={...n};return o=>(u.red=TE(n.red,r.red,o),u.green=TE(n.green,r.green,o),u.blue=TE(n.blue,r.blue,o),u.alpha=eA(n.alpha,r.alpha,o),Ra.transform(u))},_ne=(e,t)=>n=>t(e(n)),tA=(...e)=>e.reduce(_ne),Kg=new Set(["none","hidden"]);function Sne(e,t){return Kg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nne(e,t){return n=>eA(e,t,n)}function J_(e){return typeof e=="number"?Nne:typeof e=="string"?K_(e)?ah:In.test(e)?TR:Cne:Array.isArray(e)?AF:typeof e=="object"?In.test(e)?TR:Ine:ah}function AF(e,t){const n=[...e],r=n.length,u=e.map((o,l)=>J_(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=u[l](o);return n}}function Ine(e,t){const n={...e,...t},r={};for(const u in n)e[u]!==void 0&&t[u]!==void 0&&(r[u]=J_(e[u])(e[u],t[u]));return u=>{for(const o in r)n[o]=r[o](u);return n}}function yne(e,t){var n;const r=[],u={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],d=e.indexes[l][u[l]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[o]=f,u[l]++}return r}const Cne=(e,t)=>{const n=bo.createTransformer(t),r=Uc(e),u=Uc(t);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Kg.has(e)&&!u.values.length||Kg.has(t)&&!r.values.length?Sne(e,t):tA(AF(yne(r,u),u.values),n):ah(e,t)};function mF(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?eA(e,t,n):J_(e)(e,t)}const vne=5;function pF(e,t,n){const r=Math.max(t-vne,0);return KB(n-e(r),t-r)}const wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},DR=.001;function Rne({duration:e=wt.duration,bounce:t=wt.bounce,velocity:n=wt.velocity,mass:r=wt.mass}){let u,o,l=1-t;l=Ua(wt.minDamping,wt.maxDamping,l),e=Ua(wt.minDuration,wt.maxDuration,mn(e)),l<1?(u=h=>{const m=h*l,E=m*e,g=m-n,_=$g(h,l),S=Math.exp(-E);return DR-g/_*S},o=h=>{const E=h*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-E),C=$g(Math.pow(h,2),l);return(-u(h)+DR>0?-1:1)*((g-_)*S)/C}):(u=h=>{const m=Math.exp(-h*e),E=(h-n)*e+1;return-.001+m*E},o=h=>{const m=Math.exp(-h*e),E=(n-h)*(e*e);return m*E});const d=5/e,f=Dne(u,o,d);if(e=An(e),isNaN(f))return{stiffness:wt.stiffness,damping:wt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const Tne=12;function Dne(e,t,n){let r=n;for(let u=1;u<Tne;u++)r=r-e(r)/t(r);return r}function $g(e,t){return e*Math.sqrt(1-t*t)}const bne=["duration","bounce"],xne=["stiffness","damping","mass"];function bR(e,t){return t.some(n=>e[n]!==void 0)}function Bne(e){let t={velocity:wt.velocity,stiffness:wt.stiffness,damping:wt.damping,mass:wt.mass,isResolvedFromDuration:!1,...e};if(!bR(e,xne)&&bR(e,bne))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),u=r*r,o=2*Ua(.05,1,1-(e.bounce||0))*Math.sqrt(u);t={...t,mass:wt.mass,stiffness:u,damping:o}}else{const n=Rne(e);t={...t,...n,mass:wt.mass},t.isResolvedFromDuration=!0}return t}function EF(e=wt.visualDuration,t=wt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:u}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=Bne({...n,velocity:-mn(n.velocity||0)}),S=g||0,C=h/(2*Math.sqrt(f*m)),v=l-o,R=mn(Math.sqrt(f/m)),T=Math.abs(v)<5;r||(r=T?wt.restSpeed.granular:wt.restSpeed.default),u||(u=T?wt.restDelta.granular:wt.restDelta.default);let b;if(C<1){const x=$g(R,C);b=B=>{const O=Math.exp(-C*R*B);return l-O*((S+C*R*v)/x*Math.sin(x*B)+v*Math.cos(x*B))}}else if(C===1)b=x=>l-Math.exp(-R*x)*(v+(S+R*v)*x);else{const x=R*Math.sqrt(C*C-1);b=B=>{const O=Math.exp(-C*R*B),H=Math.min(x*B,300);return l-O*((S+C*R*v)*Math.sinh(H)+x*v*Math.cosh(H))/x}}const L={calculatedDuration:_&&E||null,next:x=>{const B=b(x);if(_)d.done=x>=E;else{let O=0;C<1&&(O=x===0?An(S):pF(b,x,B));const H=Math.abs(O)<=r,U=Math.abs(l-B)<=u;d.done=H&&U}return d.value=d.done?l:B,d},toString:()=>{const x=Math.min(Gh(L),Uf),B=i_(O=>L.next(x*O).value,x,30);return x+"ms "+B}};return L}function xR({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:o=500,modifyTarget:l,min:d,max:f,restDelta:h=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=H=>d!==void 0&&H<d||f!==void 0&&H>f,S=H=>d===void 0?f:f===void 0||Math.abs(d-H)<Math.abs(f-H)?d:f;let C=n*t;const v=E+C,R=l===void 0?v:l(v);R!==v&&(C=R-E);const T=H=>-C*Math.exp(-H/r),b=H=>R+T(H),L=H=>{const U=T(H),G=b(H);g.done=Math.abs(U)<=h,g.value=g.done?R:G};let x,B;const O=H=>{_(g.value)&&(x=H,B=EF({keyframes:[g.value,S(g.value)],velocity:pF(b,H,g.value),damping:u,stiffness:o,restDelta:h,restSpeed:m}))};return O(0),{calculatedDuration:null,next:H=>{let U=!1;return!B&&x===void 0&&(U=!0,L(H),O(H)),x!==void 0&&H>=x?B.next(H-x):(!U&&L(H),g)}}}const Fne=hd(.42,0,1,1),One=hd(0,0,.58,1),gF=hd(.42,0,.58,1),Lne=e=>Array.isArray(e)&&typeof e[0]!="number",wne={linear:Xt,easeIn:Fne,easeInOut:gF,easeOut:One,circIn:Z_,circInOut:QB,circOut:kte,backIn:Y_,backInOut:qB,backOut:WB,anticipate:XB},BR=e=>{if(Vh(e)){wh(e.length===4);const[t,n,r,u]=e;return hd(t,n,r,u)}else if(typeof e=="string")return wne[e];return e};function Mne(e,t,n){const r=[],u=n||mF,o=e.length-1;for(let l=0;l<o;l++){let d=u(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Xt:t;d=tA(f,d)}r.push(d)}return r}function Pne(e,t,{clamp:n=!0,ease:r,mixer:u}={}){const o=e.length;if(wh(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=Mne(t,r,u),f=d.length,h=m=>{if(l&&m<e[0])return t[0];let E=0;if(f>1)for(;E<e.length-2&&!(m<e[E+1]);E++);const g=xu(e[E],e[E+1],m);return d[E](g)};return n?m=>h(Ua(e[0],e[o-1],m)):h}function Hne(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const u=xu(0,t,r);e.push(eA(n,1,u))}}function Une(e){const t=[0];return Hne(t,e.length-1),t}function kne(e,t){return e.map(n=>n*t)}function Gne(e,t){return e.map(()=>t||gF).splice(0,e.length-1)}function sh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const u=Lne(r)?r.map(BR):BR(r),o={done:!1,value:t[0]},l=kne(n&&n.length===t.length?n:Une(t),e),d=Pne(l,t,{ease:Array.isArray(u)?u:Gne(t,u)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const Vne=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Mr.update(t,!0),stop:()=>Ug(t),now:()=>ih.isProcessing?ih.timestamp:Iu.now()}},jne={decay:xR,inertia:xR,tween:sh,keyframes:sh,spring:EF},zne=e=>e/100;class eS extends hF{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:u,keyframes:o}=this.options,l=(u==null?void 0:u.KeyframeResolver)||Q_,d=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new l(o,d,n,r,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:o,velocity:l=0}=this.options,d=No(n)?n:jne[n]||sh;let f,h;d!==sh&&typeof t[0]!="number"&&(f=tA(zne,mF(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});o==="mirror"&&(h=d({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=Gh(m));const{calculatedDuration:E}=m,g=E+u,_=g*(r+1)-u;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:E,resolvedDuration:g,totalDuration:_}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:u,generator:o,mirroredGenerator:l,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:E}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:_,repeatType:S,repeatDelay:C,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const R=this.currentTime-g*(this.speed>=0?1:-1),T=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let b=this.currentTime,L=o;if(_){const H=Math.min(this.currentTime,m)/E;let U=Math.floor(H),G=H%1;!G&&H>=1&&(G=1),G===1&&U--,U=Math.min(U,_+1),!!(U%2)&&(S==="reverse"?(G=1-G,C&&(G-=C/E)):S==="mirror"&&(L=l)),b=Ua(0,1,G)*E}const x=T?{done:!1,value:f[0]}:L.next(b);d&&(x.value=d(x.value));let{done:B}=x;!T&&h!==null&&(B=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return O&&u!==void 0&&(x.value=Jh(f,this.options,u)),v&&v(x.value),O&&this.finish(),x}get duration(){const{resolved:t}=this;return t?mn(t.calculatedDuration):0}get time(){return mn(this.currentTime)}set time(t){t=An(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Vne,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Kne=new Set(["opacity","clipPath","filter","transform"]);function $ne(e,t,n,{delay:r=0,duration:u=300,repeat:o=0,repeatType:l="loop",ease:d="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=a_(d,u);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:u,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const Yne=Mh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),oh=10,Zne=2e4;function Wne(e){return No(e.type)||e.type==="spring"||!u_(e.ease)}function qne(e,t){const n=new eS({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const u=[];let o=0;for(;!r.done&&o<Zne;)r=n.sample(o),u.push(r.value),o+=oh;return{times:void 0,keyframes:u,duration:o-oh,ease:"linear"}}const _F={anticipate:XB,backInOut:qB,circInOut:QB};function Xne(e){return e in _F}class FR extends hF{constructor(t){super(t);const{name:n,motionValue:r,element:u,keyframes:o}=this.options;this.resolver=new fF(o,(l,d)=>this.onKeyframesResolved(l,d),n,r,u),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:u,ease:o,type:l,motionValue:d,name:f,startTime:h}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof o=="string"&&Tc()&&Xne(o)&&(o=_F[o]),Wne(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...C}=this.options,v=qne(t,C);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,u=v.times,o=v.ease,l="keyframes"}const m=$ne(d.owner.current,f,t,{...this.options,duration:r,times:u,ease:o});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(kf(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;d.set(Jh(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:u,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=An(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xt;const{animation:r}=n;kf(r,t)}return Xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:u,type:o,ease:l,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:E,element:g,..._}=this.options,S=new eS({..._,keyframes:r,duration:u,type:o,ease:l,times:d,isGenerator:!0}),C=An(this.time);h.setWithVelocity(S.sample(C-oh).value,S.sample(C).value,oh)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:u,repeatType:o,damping:l,type:d}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return Yne()&&r&&Kne.has(r)&&!f&&!h&&!u&&o!=="mirror"&&l!==0&&d!=="inertia"}}const Qne={type:"spring",stiffness:500,damping:25,restSpeed:10},Jne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ere={type:"keyframes",duration:.8},tre={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nre=(e,{keyframes:t})=>t.length>2?ere:To.has(e)?e.startsWith("scale")?Jne(t[1]):Qne:tre;function rre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:u,repeat:o,repeatType:l,repeatDelay:d,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const ire=(e,t,n,r={},u,o)=>l=>{const d=id(r,e)||{},f=d.delay||r.delay||0;let{elapsed:h=0}=r;h=h-An(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:g=>{t.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{l(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:u};rre(d)||(m={...m,...nre(e,m)}),m.duration&&(m.duration=An(m.duration)),m.repeatDelay&&(m.repeatDelay=An(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let E=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(E=!0)),E&&!o&&t.get()!==void 0){const g=Jh(m.keyframes,d);if(g!==void 0)return Mr.update(()=>{m.onUpdate(g),m.onComplete()}),new $D([])}return!o&&FR.supports(m)?new FR(m):new eS(m)};function ure({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function SF(e,t,{delay:n=0,transitionOverride:r,type:u}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(l=r);const h=[],m=u&&e.animationState&&e.animationState.getState()[u];for(const E in f){const g=e.getValue(E,(o=e.latestValues[E])!==null&&o!==void 0?o:null),_=f[E];if(_===void 0||m&&ure(m,E))continue;const S={delay:n,...id(l||{},E)};let C=!1;if(window.MotionHandoffAnimation){const R=Mte(e);if(R){const T=window.MotionHandoffAnimation(R,E,Mr);T!==null&&(S.startTime=T,C=!0)}}wte(e,E),g.start(ire(E,g,_,e.shouldReduceMotion&&jB.has(E)?{type:!1}:S,e,C));const v=g.animation;v&&h.push(v)}return d&&Promise.all(h).then(()=>{Mr.update(()=>{d&&Ote(e,d)})}),h}function Yg(e,t,n={}){var r;const u=Qh(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=u||{};n.transitionOverride&&(o=n.transitionOverride);const l=u?()=>Promise.all(SF(e,u,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return are(e,t,m+h,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[l,d]:[d,l];return h().then(()=>m())}else return Promise.all([l(),d(n.delay)])}function are(e,t,n=0,r=0,u=1,o){const l=[],d=(e.variantChildren.size-1)*r,f=u===1?(h=0)=>h*r:(h=0)=>d-h*r;return Array.from(e.variantChildren).sort(sre).forEach((h,m)=>{h.notify("AnimationStart",t),l.push(Yg(h,t,{...o,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function sre(e,t){return e.sortNodePosition(t)}function ore(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const u=t.map(o=>Yg(e,o,n));r=Promise.all(u)}else if(typeof t=="string")r=Yg(e,t,n);else{const u=typeof t=="function"?Qh(e,t,n.custom):t;r=Promise.all(SF(e,u,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const lre=j_.length;function NF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?NF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<lre;n++){const r=j_[n],u=e.props[r];(k_(u)||u===!1)&&(t[r]=u)}return t}const cre=[...V_].reverse(),dre=V_.length;function fre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ore(e,n,r)))}function hre(e){let t=fre(e),n=OR(),r=!0;const u=f=>(h,m)=>{var E;const g=Qh(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:S,...C}=g;h={...h,...C,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=NF(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<dre;v++){const R=cre[v],T=n[R],b=h[R]!==void 0?h[R]:m[R],L=k_(b),x=R===f?T.isActive:null;x===!1&&(S=v);let B=b===m[R]&&b!==h[R]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),T.protectedKeys={..._},!T.isActive&&x===null||!b&&!T.prevProp||G_(b)||typeof b=="boolean")continue;const O=Are(T.prevProp,b);let H=O||R===f&&T.isActive&&!B&&L||v>S&&L,U=!1;const G=Array.isArray(b)?b:[b];let fe=G.reduce(u(R),{});x===!1&&(fe={});const{prevResolvedValues:ae={}}=T,ce={...ae,...fe},Z=ee=>{H=!0,g.has(ee)&&(U=!0,g.delete(ee)),T.needsAnimating[ee]=!0;const Q=e.getValue(ee);Q&&(Q.liveStyle=!1)};for(const ee in ce){const Q=fe[ee],Ae=ae[ee];if(_.hasOwnProperty(ee))continue;let P=!1;kg(Q)&&kg(Ae)?P=!VB(Q,Ae):P=Q!==Ae,P?Q!=null?Z(ee):g.add(ee):Q!==void 0&&g.has(ee)?Z(ee):T.protectedKeys[ee]=!0}T.prevProp=b,T.prevResolvedValues=fe,T.isActive&&(_={..._,...fe}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(B&&O)||U)&&E.push(...G.map(ee=>({animation:ee,options:{type:R}})))}if(g.size){const v={};g.forEach(R=>{const T=e.getBaseTarget(R),b=e.getValue(R);b&&(b.liveStyle=!0),v[R]=T??null}),E.push({animation:v})}let C=!!E.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(E):Promise.resolve()}function d(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,h)}),n[f].isActive=h;const E=l(f);for(const g in n)n[g].protectedKeys={};return E}return{animateChanges:l,setActive:d,setAnimateFunction:o,getState:()=>n,reset:()=>{n=OR(),r=!0}}}function Are(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!VB(t,e):!1}function pa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OR(){return{animate:pa(!0),whileInView:pa(),whileHover:pa(),whileTap:pa(),whileDrag:pa(),whileFocus:pa(),exit:pa()}}class xo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mre extends xo{constructor(t){super(t),t.animationState||(t.animationState=hre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();G_(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let pre=0;class Ere extends xo{constructor(){super(...arguments),this.id=pre++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const u=this.node.animationState.setActive("exit",!t);n&&!t&&u.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const gre={animation:{Feature:mre},exit:{Feature:Ere}};function LR(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function IF(e){return{point:{x:e.pageX,y:e.pageY}}}const wR=()=>({min:0,max:0}),yF=()=>({x:wR(),y:wR()});function _re({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Sre(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Nre(e,t){return _re(Sre(e.getBoundingClientRect(),t))}function MR(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const u="onHover"+n,o=r[u];o&&Mr.postRender(()=>o(t,IF(t)))}class Ire extends xo{mount(){const{current:t}=this.node;t&&(this.unmount=WD(t,n=>(MR(this.node,n,"Start"),r=>MR(this.node,r,"End"))))}unmount(){}}class yre extends xo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tA(LR(this.node.current,"focus",()=>this.onFocus()),LR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function PR(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const u="onTap"+(n==="End"?"":n),o=r[u];o&&Mr.postRender(()=>o(t,IF(t)))}class Cre extends xo{mount(){const{current:t}=this.node;t&&(this.unmount=XD(t,n=>(PR(this.node,n,"Start"),(r,{success:u})=>PR(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zg=new WeakMap,DE=new WeakMap,vre=e=>{const t=Zg.get(e.target);t&&t(e)},Rre=e=>{e.forEach(vre)};function Tre({root:e,...t}){const n=e||document;DE.has(n)||DE.set(n,{});const r=DE.get(n),u=JSON.stringify(t);return r[u]||(r[u]=new IntersectionObserver(Rre,{root:e,...t})),r[u]}function Dre(e,t,n){const r=Tre(t);return Zg.set(e,n),r.observe(e),()=>{Zg.delete(e),r.unobserve(e)}}const bre={some:0,all:1};class xre extends xo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:u="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:bre[u]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=h?m:E;g&&g(f)};return Dre(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Bre(t,n))&&this.startObserver()}unmount(){}}function Bre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fre={inView:{Feature:xre},tap:{Feature:Cre},focus:{Feature:yre},hover:{Feature:Ire}},Wg={current:null},CF={current:!1};function Ore(){if(CF.current=!0,!!Wee)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Wg.current=e.matches;e.addListener(t),t()}else Wg.current=!1}const Lre=[...dF,In,bo],wre=e=>Lre.find(cF(e)),HR=new WeakMap;function Mre(e,t,n){for(const r in t){const u=t[r],o=n[r];if(Sr(u))e.addValue(r,u);else if(Sr(o))e.addValue(r,uh(u,{owner:e}));else if(o!==u)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(u):l.hasAnimated||l.set(u)}else{const l=e.getStaticValue(r);e.addValue(r,uh(l!==void 0?l:u,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const UR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Pre{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:o,visualState:l},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Q_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=Iu.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,Mr.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=u,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=OB(n),this.isVariantNode=nte(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:E,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in g){const S=g[_];f[_]!==void 0&&Sr(S)&&S.set(f[_],!1)}}mount(t){this.current=t,HR.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),CF.current||Ore(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Wg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){HR.delete(this.current),this.projection&&this.projection.unmount(),Ug(this.notifyUpdate),Ug(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=To.has(t),u=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&Mr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{u(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pc){const n=Pc[t];if(!n)continue;const{isEnabled:r,Feature:u}=n;if(!this.features[t]&&u&&r(this.props)&&(this.features[t]=new u(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yF()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<UR.length;r++){const u=UR[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const o="on"+u,l=t[o];l&&(this.propEventSubscriptions[u]=this.on(u,l))}this.prevMotionValues=Mre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let u=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return u!=null&&(typeof u=="string"&&(oF(u)||JB(u))?u=parseFloat(u):!wre(u)&&bo.test(n)&&(u=uF(t,n)),this.setBaseTarget(t,Sr(u)?u.get():u)),Sr(u)?u.get():u}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let u;if(typeof r=="string"||typeof r=="object"){const l=LB(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(u=l[t])}if(r&&u!==void 0)return u;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Sr(o)?o:this.initialValues[t]!==void 0&&u===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zB),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vF extends Pre{constructor(){super(...arguments),this.KeyframeResolver=fF}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Sr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Hre(e){return window.getComputedStyle(e)}class Ure extends vF{constructor(){super(...arguments),this.type="html",this.renderInstance=UB}readValueFromInstance(t,n){if(To.has(n)){const r=X_(n);return r&&r.default||0}else{const r=Hre(t),u=(MB(n)?r.getPropertyValue(n):r[n])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Nre(t,n)}build(t,n,r){HB(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return GB(t,n,r)}}class kre extends vF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yF}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(To.has(n)){const r=X_(n);return r&&r.default||0}return n=kB.has(n)?n:z_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Rte(t,n,r)}build(t,n,r){Nte(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,u){yte(t,n,r,u)}mount(t){this.isSVGTag=Ite(t.tagName),super.mount(t)}}const Gre=(e,t)=>ate(e)?new kre(t):new Ure(t,{allowProjection:e!==y.Fragment}),Vre={renderer:Gre,...gre,...Fre},jre=({children:e})=>N.jsx(tte,{features:Vre,children:e}),zre=({children:e})=>N.jsx(jre,{children:N.jsxs(nH,{children:[N.jsx(Zee,{}),e]})}),Kre=({children:e})=>N.jsx(KM,{children:N.jsx(IM,{children:N.jsx(_9,{path:"*",element:e})})});/**
|
|
298
|
+
* @license lucide-react v0.475.0 - ISC
|
|
299
|
+
*
|
|
300
|
+
* This source code is licensed under the ISC license.
|
|
301
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
302
|
+
*/const $re=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),RF=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
303
|
+
* @license lucide-react v0.475.0 - ISC
|
|
304
|
+
*
|
|
305
|
+
* This source code is licensed under the ISC license.
|
|
306
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
307
|
+
*/var Yre={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
308
|
+
* @license lucide-react v0.475.0 - ISC
|
|
309
|
+
*
|
|
310
|
+
* This source code is licensed under the ISC license.
|
|
311
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
312
|
+
*/const Zre=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:l,...d},f)=>y.createElement("svg",{ref:f,...Yre,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:RF("lucide",u),...d},[...l.map(([h,m])=>y.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
|
|
313
|
+
* @license lucide-react v0.475.0 - ISC
|
|
314
|
+
*
|
|
315
|
+
* This source code is licensed under the ISC license.
|
|
316
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
317
|
+
*/const TF=(e,t)=>{const n=y.forwardRef(({className:r,...u},o)=>y.createElement(Zre,{ref:o,iconNode:t,className:RF(`lucide-${$re(e)}`,r),...u}));return n.displayName=`${e}`,n};/**
|
|
318
|
+
* @license lucide-react v0.475.0 - ISC
|
|
319
|
+
*
|
|
320
|
+
* This source code is licensed under the ISC license.
|
|
321
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
322
|
+
*/const Wre=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],qre=TF("ChevronRight",Wre);/**
|
|
323
|
+
* @license lucide-react v0.475.0 - ISC
|
|
324
|
+
*
|
|
325
|
+
* This source code is licensed under the ISC license.
|
|
326
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
327
|
+
*/const Xre=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Qre=TF("Pencil",Xre),qg="dictionaryList",DF={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:_e({en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"})},backButtonText:_e({en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}),modalTitle:_e({en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}),noDictionaryFocused:_e({en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"})}},tS=e=>`dictionary_edition_${e}`,bF=e=>{const t=tS(e),{isOpen:n,open:r,close:u}=ph(),{getEditedContentValue:o}=oo(),{focusedContent:l,setFocusedContent:d}=Ou();return y.useEffect(()=>{var f;l&&(((f=l.keyPath)==null?void 0:f.length)??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:o,close:()=>{u(t),d(f=>f!=null&&f.dictionaryKey?{...f,keyPath:[]}:f)}}},Jre=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:u,openDictionaryEditor:o}=sn(DF),[l,d]=y.useState(!1),{all:f}=FB(),{focusedContent:h}=bF(t),m=y.useCallback(()=>{d(!1),n()},[n]),E=h==null?void 0:h.dictionaryKey;if(!E)return N.jsx(N.Fragment,{children:"No dictionary focused"});const g=f[E];return g?N.jsxs(N.Fragment,{children:[N.jsx(hY,{isOpen:l,onClose:()=>d(!1),hasCloseButton:!0,title:u.value,size:"xl",transparency:"lg",children:N.jsx("div",{className:"size-full px-3 pt-5",children:N.jsx(Yee,{dictionary:g,onClickDictionaryList:m,isDarkMode:r,mode:["local","remote"]})})}),N.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[N.jsx("h3",{className:"w-full text-center text-lg",children:g.title?g.title:g.key}),N.jsx(mt,{variant:"hoverable",color:"text",size:"icon-md",IconRight:Qre,label:o.label.value,onClick:()=>d(!0)})]}),N.jsx(NY,{dictionary:g,locale:e,mode:["local","remote"]})]}):N.jsx(N.Fragment,{children:"No dictionary focused"})},eie=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=sn(DF),u=tS(t),{focusedContent:o,close:l}=bF(t),{openDictionaryListDrawer:d}=ph(h=>({openDictionaryListDrawer:()=>h.open(qg)})),f=()=>{l(),d()};return N.jsx($9,{identifier:u,backButton:{onBack:f,text:r.value},onClose:l,children:o&&N.jsx(Jre,{focusedContent:o,locale:e,identifier:u,handleOnBack:f,isDarkMode:n})})},tie=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=Ou(),r=n==null?void 0:n.dictionaryKey;return r?N.jsx(eie,{locale:e,dictionaryKey:r,isDarkMode:t}):N.jsx(N.Fragment,{})},nie=()=>{const{all:e}=FB(),t=y.useMemo(()=>Object.keys(e),[e]),{close:n,open:r}=ph(),{editedContent:u}=Hn(),{setFocusedContent:o}=Ou(),l=f=>{n(qg);const{filePath:h}=e[f];o({dictionaryKey:f,dictionaryPath:h}),r(tS(f))},d=y.useCallback(f=>Object.keys(u??{}).includes(f),[u]);return N.jsx($9,{title:"Dictionary list",identifier:qg,children:t.map(f=>N.jsx("div",{children:N.jsx(mt,{label:`Open dictionary editor ${f}`,onClick:()=>l(f),variant:"hoverable",color:"text",IconRight:qre,size:"md",isFullWidth:!0,children:d(f)?`✎ ${f}`:f})},f))})},rie=({children:e})=>{const[t]=ka("INTLAYER_CURRENT_LOCALE",void 0,{receive:!0,emit:!1});return N.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,N.jsx(tie,{locale:t}),N.jsx(nie,{})]})},iie=()=>{const[e,t]=y.useState();return y.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},uie=({children:e,iframeRef:t})=>{const n=iie(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",u=(n==null?void 0:n.editor.editorURL)??"*";return n?N.jsx(c2,{postMessage:o=>{var l,d;window==null||window.postMessage(o,u),(d=(l=t.current)==null?void 0:l.contentWindow)==null||d.postMessage(o,r)},allowedOrigins:[r,u],mode:"editor",configuration:n,children:e}):N.jsx(Qs,{})},aie=()=>{const{editedContent:e,setEditedContentState:t}=Hn(),n=()=>{const r=localStorage==null?void 0:localStorage.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const u=JSON.parse(r);t(u)}catch(u){console.error(u)}};return y.useEffect(()=>{typeof e>"u"||localStorage==null||localStorage.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),y.useEffect(()=>{typeof e<"u"||n()},[]),n},sie=(...e)=>w9(Ah(e)),oie={key:"no-application-url-view",content:{title:_e({en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}),description:_e({en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}),documentationLink:{label:_e({en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}),text:_e({en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"})}}},lie=()=>{const{title:e,description:t,documentationLink:n}=sn(oie);return N.jsxs("div",{className:"flex flex-col gap-6",children:[N.jsx(I_,{className:"mb-8",children:e}),N.jsx("strong",{className:"text-neutral block",children:t}),N.jsx(P_,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},cie=({iframeRef:e,applicationPath:t})=>{const{editor:n}=ui(),r=()=>u(n.enabled),u=r2();r9(r),aie(),h2();const[o,l]=y.useState(!1),[d]=d2(void 0,{receive:!0,emit:!1});return y.useEffect(()=>{typeof d=="string"&&window.history.replaceState({},"",d)},[d]),n.applicationURL?N.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[N.jsx(Qs,{isLoading:o}),N.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:sie("size-full",o&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):N.jsx("div",{className:"flex size-full items-center justify-center",children:N.jsx(si,{className:"flex max-w-xl flex-col gap-4 p-6",children:N.jsx(lie,{})})})},die=()=>{const e=y.useRef(null),t=Lu();return N.jsx(uie,{iframeRef:e,children:N.jsx(g2,{disableEditor:!0,children:N.jsx(rie,{children:N.jsx(cie,{iframeRef:e,applicationPath:t.pathname})})})})},fie=()=>N.jsx(Kre,{children:N.jsx(zre,{children:N.jsx(die,{})})});rw.createRoot(document.getElementById("root")).render(N.jsx(y.StrictMode,{children:N.jsx(fie,{})}));
|