intlayer-editor 6.0.2-canary.0 → 6.1.0
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.
- package/bin/intlayer-editor.mjs +22 -2
- package/client/dist/assets/index-h-OFRgcC.js +338 -0
- package/client/dist/assets/luau-CXu1NL6O.js +1 -0
- package/client/dist/assets/move-DNEoBllO.js +1 -0
- package/client/dist/assets/nushell-ChH_ziBE.js +1 -0
- package/client/dist/assets/swift-Dg5xB15N.js +1 -0
- package/client/dist/index.html +1 -1
- package/package.json +45 -45
- package/client/dist/assets/index-Dg-ukSXj.js +0 -338
- package/client/dist/assets/luau-irsrSlf-.js +0 -1
- package/client/dist/assets/move-BkPM1oy1.js +0 -1
- package/client/dist/assets/nushell-I3RK9BU8.js +0 -1
- package/client/dist/assets/swift-Ccdh7vHB.js +0 -1
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-Bbf3ZyxA.js","assets/html-B8pBdPMQ.js","assets/javascript-BMMyXqK5.js","assets/css-DPfMkruS.js","assets/angular-ts-C26w9mnW.js","assets/scss-OYdSNvt2.js","assets/apl-e980N3t4.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CjFzhNUq.js","assets/typescript-DlfHMoPT.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-B2ZbN0F_.js","assets/html-derivative-ZQ8onl8Z.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-DwXMNnPA.js","assets/coffee-JUOWOZUj.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-DVs0tusA.js","assets/shellscript-Yzrsuije.js","assets/edge-CKszZCnI.js","assets/elixir-Cc7HHYVZ.js","assets/elm-DbKCFpqz.js","assets/erb-C7QrGF_t.js","assets/ruby-W1VRIm2Q.js","assets/haml-AZXGPtNI.js","assets/graphql-Caa12_AY.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CufqaIoK.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Dz9X99Cm.js","assets/glimmer-ts-aQ3p29eY.js","assets/hack-D_o3P2UH.js","assets/handlebars-YebKLiTq.js","assets/http-C38VWM-o.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-BJmZiE_F.js","assets/jison-BCRtk9Os.js","assets/julia-353pQ8cl.js","assets/r-DiinP2Uv.js","assets/latex-CPEt12BK.js","assets/tex-B5i3u9ba.js","assets/liquid-DFk8BABL.js","assets/marko-BM38lbjI.js","assets/less-B1dDrJ26.js","assets/mdc-DvHMhoCT.js","assets/nginx-DknmC5AR.js","assets/nim-BZI_8mFl.js","assets/perl-g0D2lH3a.js","assets/php-Gk5eUrPQ.js","assets/pug-Ch9lOoSd.js","assets/qml-CHzV51_b.js","assets/razor-CNXmhs1n.js","assets/csharp-CHadp7IV.js","assets/rst-DKdxLoXm.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-B_7ge1HE.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-Dt5jNKfG.js","assets/templ-0CNLO7il.js","assets/go-Dn2_MT6a.js","assets/ts-tags-B9XN6NYQ.js","assets/twig-B_ULif71.js","assets/vue-BEetzCYT.js","assets/vue-html-BsD9fJC1.js","assets/vue-vine-CCdTUzyM.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function fM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function ib(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ug={exports:{}},Kl={};/**
|
|
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 oA;function hM(){if(oA)return Kl;oA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return Kl.Fragment=t,Kl.jsx=n,Kl.jsxs=n,Kl}var sA;function pM(){return sA||(sA=1,ug.exports=hM()),ug.exports}var v=pM(),dg={exports:{}},Ue={};/**
|
|
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 lA;function mM(){if(lA)return Ue;lA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function y(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,A={};function C(P,ie,F){this.props=P,this.context=ie,this.refs=A,this.updater=F||_}C.prototype.isReactComponent={},C.prototype.setState=function(P,ie){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,ie,"setState")},C.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function w(){}w.prototype=C.prototype;function S(P,ie,F){this.props=P,this.context=ie,this.refs=A,this.updater=F||_}var T=S.prototype=new w;T.constructor=S,x(T,C.prototype),T.isPureReactComponent=!0;var N=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function D(P,ie,F,J,oe,he){return F=he.ref,{$$typeof:e,type:P,key:ie,ref:F!==void 0?F:null,props:he}}function j(P,ie){return D(P.type,ie,void 0,void 0,void 0,P.props)}function H(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function Z(P){var ie={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(F){return ie[F]})}var q=/\/+/g;function te(P,ie){return typeof P=="object"&&P!==null&&P.key!=null?Z(""+P.key):ie.toString(36)}function ce(){}function W(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(ie){P.status==="pending"&&(P.status="fulfilled",P.value=ie)},function(ie){P.status==="pending"&&(P.status="rejected",P.reason=ie)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function ae(P,ie,F,J,oe){var he=typeof P;(he==="undefined"||he==="boolean")&&(P=null);var ye=!1;if(P===null)ye=!0;else switch(he){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(P.$$typeof){case e:case t:ye=!0;break;case p:return ye=P._init,ae(ye(P._payload),ie,F,J,oe)}}if(ye)return oe=oe(P),ye=J===""?"."+te(P,0):J,N(oe)?(F="",ye!=null&&(F=ye.replace(q,"$&/")+"/"),ae(oe,ie,F,"",function(Le){return Le})):oe!=null&&(H(oe)&&(oe=j(oe,F+(oe.key==null||P&&P.key===oe.key?"":(""+oe.key).replace(q,"$&/")+"/")+ye)),ie.push(oe)),1;ye=0;var fe=J===""?".":J+":";if(N(P))for(var xe=0;xe<P.length;xe++)J=P[xe],he=fe+te(J,xe),ye+=ae(J,ie,F,he,oe);else if(xe=y(P),typeof xe=="function")for(P=xe.call(P),xe=0;!(J=P.next()).done;)J=J.value,he=fe+te(J,xe++),ye+=ae(J,ie,F,he,oe);else if(he==="object"){if(typeof P.then=="function")return ae(W(P),ie,F,J,oe);throw ie=String(P),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.")}return ye}function M(P,ie,F){if(P==null)return P;var J=[],oe=0;return ae(P,J,"","",function(he){return ie.call(F,he,oe++)}),J}function X(P){if(P._status===-1){var ie=P._result;ie=ie(),ie.then(function(F){(P._status===0||P._status===-1)&&(P._status=1,P._result=F)},function(F){(P._status===0||P._status===-1)&&(P._status=2,P._result=F)}),P._status===-1&&(P._status=0,P._result=ie)}if(P._status===1)return P._result.default;throw P._result}var G=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ie=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(ie))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function ge(){}return Ue.Children={map:M,forEach:function(P,ie,F){M(P,function(){ie.apply(this,arguments)},F)},count:function(P){var ie=0;return M(P,function(){ie++}),ie},toArray:function(P){return M(P,function(ie){return ie})||[]},only:function(P){if(!H(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ue.Component=C,Ue.Fragment=n,Ue.Profiler=a,Ue.PureComponent=S,Ue.StrictMode=r,Ue.Suspense=d,Ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Ue.__COMPILER_RUNTIME={__proto__:null,c:function(P){return R.H.useMemoCache(P)}},Ue.cache=function(P){return function(){return P.apply(null,arguments)}},Ue.cloneElement=function(P,ie,F){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var J=x({},P.props),oe=P.key,he=void 0;if(ie!=null)for(ye in ie.ref!==void 0&&(he=void 0),ie.key!==void 0&&(oe=""+ie.key),ie)!O.call(ie,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&ie.ref===void 0||(J[ye]=ie[ye]);var ye=arguments.length-2;if(ye===1)J.children=F;else if(1<ye){for(var fe=Array(ye),xe=0;xe<ye;xe++)fe[xe]=arguments[xe+2];J.children=fe}return D(P.type,oe,void 0,void 0,he,J)},Ue.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:s,_context:P},P},Ue.createElement=function(P,ie,F){var J,oe={},he=null;if(ie!=null)for(J in ie.key!==void 0&&(he=""+ie.key),ie)O.call(ie,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(oe[J]=ie[J]);var ye=arguments.length-2;if(ye===1)oe.children=F;else if(1<ye){for(var fe=Array(ye),xe=0;xe<ye;xe++)fe[xe]=arguments[xe+2];oe.children=fe}if(P&&P.defaultProps)for(J in ye=P.defaultProps,ye)oe[J]===void 0&&(oe[J]=ye[J]);return D(P,he,void 0,void 0,null,oe)},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(P){return{$$typeof:u,render:P}},Ue.isValidElement=H,Ue.lazy=function(P){return{$$typeof:p,_payload:{_status:-1,_result:P},_init:X}},Ue.memo=function(P,ie){return{$$typeof:f,type:P,compare:ie===void 0?null:ie}},Ue.startTransition=function(P){var ie=R.T,F={};R.T=F;try{var J=P(),oe=R.S;oe!==null&&oe(F,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ge,G)}catch(he){G(he)}finally{R.T=ie}},Ue.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Ue.use=function(P){return R.H.use(P)},Ue.useActionState=function(P,ie,F){return R.H.useActionState(P,ie,F)},Ue.useCallback=function(P,ie){return R.H.useCallback(P,ie)},Ue.useContext=function(P){return R.H.useContext(P)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(P,ie){return R.H.useDeferredValue(P,ie)},Ue.useEffect=function(P,ie,F){var J=R.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(P,ie)},Ue.useId=function(){return R.H.useId()},Ue.useImperativeHandle=function(P,ie,F){return R.H.useImperativeHandle(P,ie,F)},Ue.useInsertionEffect=function(P,ie){return R.H.useInsertionEffect(P,ie)},Ue.useLayoutEffect=function(P,ie){return R.H.useLayoutEffect(P,ie)},Ue.useMemo=function(P,ie){return R.H.useMemo(P,ie)},Ue.useOptimistic=function(P,ie){return R.H.useOptimistic(P,ie)},Ue.useReducer=function(P,ie,F){return R.H.useReducer(P,ie,F)},Ue.useRef=function(P){return R.H.useRef(P)},Ue.useState=function(P){return R.H.useState(P)},Ue.useSyncExternalStore=function(P,ie,F){return R.H.useSyncExternalStore(P,ie,F)},Ue.useTransition=function(){return R.H.useTransition()},Ue.version="19.1.1",Ue}var cA;function qc(){return cA||(cA=1,dg.exports=mM()),dg.exports}var E=qc();const Ie=ib(E),LR=fM({__proto__:null,default:Ie},[E]);var fg={exports:{}},ql={},hg={exports:{}},pg={};/**
|
|
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 uA;function gM(){return uA||(uA=1,(function(e){function t(M,X){var G=M.length;M.push(X);e:for(;0<G;){var ge=G-1>>>1,P=M[ge];if(0<a(P,X))M[ge]=X,M[G]=P,G=ge;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var X=M[0],G=M.pop();if(G!==X){M[0]=G;e:for(var ge=0,P=M.length,ie=P>>>1;ge<ie;){var F=2*(ge+1)-1,J=M[F],oe=F+1,he=M[oe];if(0>a(J,G))oe<P&&0>a(he,J)?(M[ge]=he,M[oe]=G,ge=oe):(M[ge]=J,M[F]=G,ge=F);else if(oe<P&&0>a(he,G))M[ge]=he,M[oe]=G,ge=oe;else break e}}return X}function a(M,X){var G=M.sortIndex-X.sortIndex;return G!==0?G:M.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],f=[],p=1,g=null,y=3,_=!1,x=!1,A=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function N(M){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=M)r(f),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(f)}}function R(M){if(A=!1,N(M),!x)if(n(d)!==null)x=!0,O||(O=!0,te());else{var X=n(f);X!==null&&ae(R,X.startTime-M)}}var O=!1,D=-1,j=5,H=-1;function Z(){return C?!0:!(e.unstable_now()-H<j)}function q(){if(C=!1,O){var M=e.unstable_now();H=M;var X=!0;try{e:{x=!1,A&&(A=!1,S(D),D=-1),_=!0;var G=y;try{t:{for(N(M),g=n(d);g!==null&&!(g.expirationTime>M&&Z());){var ge=g.callback;if(typeof ge=="function"){g.callback=null,y=g.priorityLevel;var P=ge(g.expirationTime<=M);if(M=e.unstable_now(),typeof P=="function"){g.callback=P,N(M),X=!0;break t}g===n(d)&&r(d),N(M)}else r(d);g=n(d)}if(g!==null)X=!0;else{var ie=n(f);ie!==null&&ae(R,ie.startTime-M),X=!1}}break e}finally{g=null,y=G,_=!1}X=void 0}}finally{X?te():O=!1}}}var te;if(typeof T=="function")te=function(){T(q)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,W=ce.port2;ce.port1.onmessage=q,te=function(){W.postMessage(null)}}else te=function(){w(q,0)};function ae(M,X){D=w(function(){M(e.unstable_now())},X)}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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(M){switch(y){case 1:case 2:case 3:var X=3;break;default:X=y}var G=y;y=X;try{return M()}finally{y=G}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(M,X){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var G=y;y=M;try{return X()}finally{y=G}},e.unstable_scheduleCallback=function(M,X,G){var ge=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ge+G:ge):G=ge,M){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=G+P,M={id:p++,callback:X,priorityLevel:M,startTime:G,expirationTime:P,sortIndex:-1},G>ge?(M.sortIndex=G,t(f,M),n(d)===null&&M===n(f)&&(A?(S(D),D=-1):A=!0,ae(R,G-ge))):(M.sortIndex=P,t(d,M),x||_||(x=!0,O||(O=!0,te()))),M},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(M){var X=y;return function(){var G=y;y=X;try{return M.apply(this,arguments)}finally{y=G}}}})(pg)),pg}var dA;function yM(){return dA||(dA=1,hg.exports=gM()),hg.exports}var mg={exports:{}},hn={};/**
|
|
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 fA;function vM(){if(fA)return hn;fA=1;var e=qc();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+f+" 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},a=Symbol.for("react.portal");function s(d,f,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:d,containerInfo:f,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,hn.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,p)},hn.flushSync=function(d){var f=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=p,r.d.f()}},hn.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},hn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},hn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,g=u(p,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,_=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:_}):p==="script"&&r.d.X(d,{crossOrigin:g,integrity:y,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},hn.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},hn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,g=u(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},hn.preloadModule=function(d,f){if(typeof d=="string")if(f){var p=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},hn.requestFormReset=function(d){r.d.r(d)},hn.unstable_batchedUpdates=function(d,f){return d(f)},hn.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},hn.useFormStatus=function(){return l.H.useHostTransitionStatus()},hn.version="19.1.1",hn}var hA;function jR(){if(hA)return mg.exports;hA=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(),mg.exports=vM(),mg.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 pA;function bM(){if(pA)return ql;pA=1;var e=yM(),t=qc(),n=jR();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var o=i,c=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(c=o.return),i=o.return;while(i)}return o.tag===3?c:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function u(i){if(s(i)!==i)throw Error(r(188))}function d(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var c=i,h=o;;){var m=c.return;if(m===null)break;var b=m.alternate;if(b===null){if(h=m.return,h!==null){c=h;continue}break}if(m.child===b.child){for(b=m.child;b;){if(b===c)return u(m),i;if(b===h)return u(m),o;b=b.sibling}throw Error(r(188))}if(c.return!==h.return)c=m,h=b;else{for(var k=!1,I=m.child;I;){if(I===c){k=!0,c=m,h=b;break}if(I===h){k=!0,h=m,c=b;break}I=I.sibling}if(!k){for(I=b.child;I;){if(I===c){k=!0,c=b,h=m;break}if(I===h){k=!0,h=b,c=m;break}I=I.sibling}if(!k)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?i:o}function f(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=f(i),o!==null)return o;i=i.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),T=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function te(i){return i===null||typeof i!="object"?null:(i=q&&i[q]||i["@@iterator"],typeof i=="function"?i:null)}var ce=Symbol.for("react.client.reference");function W(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===ce?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case x:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList";case H:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case _:return"Portal";case T:return(i.displayName||"Context")+".Provider";case S:return(i._context.displayName||"Context")+".Consumer";case N:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case D:return o=i.displayName||null,o!==null?o:W(i.type)||"Memo";case j:o=i._payload,i=i._init;try{return W(i(o))}catch{}}return null}var ae=Array.isArray,M=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ge=[],P=-1;function ie(i){return{current:i}}function F(i){0>P||(i.current=ge[P],ge[P]=null,P--)}function J(i,o){P++,ge[P]=i.current,i.current=o}var oe=ie(null),he=ie(null),ye=ie(null),fe=ie(null);function xe(i,o){switch(J(ye,o),J(he,i),J(oe,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?Lx(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=Lx(o),i=jx(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}F(oe),J(oe,i)}function Le(){F(oe),F(he),F(ye)}function Be(i){i.memoizedState!==null&&J(fe,i);var o=oe.current,c=jx(o,i.type);o!==c&&(J(he,i),J(oe,c))}function Ye(i){he.current===i&&(F(oe),F(he)),fe.current===i&&(F(fe),Ul._currentValue=G)}var et=Object.prototype.hasOwnProperty,Zt=e.unstable_scheduleCallback,An=e.unstable_cancelCallback,Ai=e.unstable_shouldYield,Sa=e.unstable_requestPaint,un=e.unstable_now,g_=e.unstable_getCurrentPriorityLevel,Ys=e.unstable_ImmediatePriority,V=e.unstable_UserBlockingPriority,ee=e.unstable_NormalPriority,le=e.unstable_LowPriority,Se=e.unstable_IdlePriority,be=e.log,ve=e.unstable_setDisableYieldValue,Ce=null,Ve=null;function Xe(i){if(typeof be=="function"&&ve(i),Ve&&typeof Ve.setStrictMode=="function")try{Ve.setStrictMode(Ce,i)}catch{}}var pt=Math.clz32?Math.clz32:Qh,yo=Math.log,wr=Math.LN2;function Qh(i){return i>>>=0,i===0?32:31-(yo(i)/wr|0)|0}var wi=256,Ti=4194304;function Zr(i){var o=i&42;if(o!==0)return o;switch(i&-i){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:return 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 i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function xa(i,o,c){var h=i.pendingLanes;if(h===0)return 0;var m=0,b=i.suspendedLanes,k=i.pingedLanes;i=i.warmLanes;var I=h&134217727;return I!==0?(h=I&~b,h!==0?m=Zr(h):(k&=I,k!==0?m=Zr(k):c||(c=I&~i,c!==0&&(m=Zr(c))))):(I=h&~b,I!==0?m=Zr(I):k!==0?m=Zr(k):c||(c=h&~i,c!==0&&(m=Zr(c)))),m===0?0:o!==0&&o!==m&&(o&b)===0&&(b=m&-m,c=o&-o,b>=c||b===32&&(c&4194048)!==0)?o:m}function Aa(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function bu(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+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 y_(){var i=wi;return wi<<=1,(wi&4194048)===0&&(wi=256),i}function v_(){var i=Ti;return Ti<<=1,(Ti&62914560)===0&&(Ti=4194304),i}function Jh(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function Xs(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ej(i,o,c,h,m,b){var k=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var I=i.entanglements,z=i.expirationTimes,Q=i.hiddenUpdates;for(c=k&~c;0<c;){var se=31-pt(c),de=1<<se;I[se]=0,z[se]=-1;var ne=Q[se];if(ne!==null)for(Q[se]=null,se=0;se<ne.length;se++){var re=ne[se];re!==null&&(re.lane&=-536870913)}c&=~de}h!==0&&b_(i,h,0),b!==0&&m===0&&i.tag!==0&&(i.suspendedLanes|=b&~(k&~o))}function b_(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-pt(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194090}function __(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var h=31-pt(c),m=1<<h;m&o|i[h]&o&&(i[h]|=o),c&=~m}}function ep(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function tp(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function E_(){var i=X.p;return i!==0?i:(i=window.event,i===void 0?32:eA(i.type))}function tj(i,o){var c=X.p;try{return X.p=i,o()}finally{X.p=c}}var Ci=Math.random().toString(36).slice(2),dn="__reactFiber$"+Ci,wn="__reactProps$"+Ci,vo="__reactContainer$"+Ci,np="__reactEvents$"+Ci,nj="__reactListeners$"+Ci,rj="__reactHandles$"+Ci,S_="__reactResources$"+Ci,Qs="__reactMarker$"+Ci;function rp(i){delete i[dn],delete i[wn],delete i[np],delete i[nj],delete i[rj]}function bo(i){var o=i[dn];if(o)return o;for(var c=i.parentNode;c;){if(o=c[vo]||c[dn]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=Bx(i);i!==null;){if(c=i[dn])return c;i=Bx(i)}return o}i=c,c=i.parentNode}return null}function _o(i){if(i=i[dn]||i[vo]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function Js(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Eo(i){var o=i[S_];return o||(o=i[S_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Yt(i){i[Qs]=!0}var x_=new Set,A_={};function wa(i,o){So(i,o),So(i+"Capture",o)}function So(i,o){for(A_[i]=o,i=0;i<o.length;i++)x_.add(o[i])}var ij=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]*$"),w_={},T_={};function aj(i){return et.call(T_,i)?!0:et.call(w_,i)?!1:ij.test(i)?T_[i]=!0:(w_[i]=!0,!1)}function _u(i,o,c){if(aj(o))if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+c)}}function Eu(i,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+c)}}function Yr(i,o,c,h){if(h===null)i.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(o,c,""+h)}}var ip,C_;function xo(i){if(ip===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);ip=o&&o[1]||"",C_=-1<c.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+ip+i+C_}var ap=!1;function op(i,o){if(!i||ap)return"";ap=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(re){var ne=re}Reflect.construct(i,[],de)}else{try{de.call()}catch(re){ne=re}i.call(de.prototype)}}else{try{throw Error()}catch(re){ne=re}(de=i())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(re){if(re&&ne&&typeof re.stack=="string")return[re.stack,ne.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),k=b[0],I=b[1];if(k&&I){var z=k.split(`
|
|
45
|
-
`),Q=I.split(`
|
|
46
|
-
`);for(m=h=0;h<z.length&&!z[h].includes("DetermineComponentFrameRoot");)h++;for(;m<Q.length&&!Q[m].includes("DetermineComponentFrameRoot");)m++;if(h===z.length||m===Q.length)for(h=z.length-1,m=Q.length-1;1<=h&&0<=m&&z[h]!==Q[m];)m--;for(;1<=h&&0<=m;h--,m--)if(z[h]!==Q[m]){if(h!==1||m!==1)do if(h--,m--,0>m||z[h]!==Q[m]){var se=`
|
|
47
|
-
`+z[h].replace(" at new "," at ");return i.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",i.displayName)),se}while(1<=h&&0<=m);break}}}finally{ap=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?xo(c):""}function oj(i){switch(i.tag){case 26:case 27:case 5:return xo(i.type);case 16:return xo("Lazy");case 13:return xo("Suspense");case 19:return xo("SuspenseList");case 0:case 15:return op(i.type,!1);case 11:return op(i.type.render,!1);case 1:return op(i.type,!0);case 31:return xo("Activity");default:return""}}function R_(i){try{var o="";do o+=oj(i),i=i.return;while(i);return o}catch(c){return`
|
|
48
|
-
Error generating stack: `+c.message+`
|
|
49
|
-
`+c.stack}}function Wn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function k_(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function sj(i){var o=k_(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,b=c.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return m.call(this)},set:function(k){h=""+k,b.call(this,k)}}),Object.defineProperty(i,o,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(k){h=""+k},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Su(i){i._valueTracker||(i._valueTracker=sj(i))}function N_(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return i&&(h=k_(i)?i.checked?"true":"false":i.value),i=h,i!==c?(o.setValue(i),!0):!1}function xu(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var lj=/[\n"\\]/g;function Zn(i){return i.replace(lj,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function sp(i,o,c,h,m,b,k,I){i.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.type=k:i.removeAttribute("type"),o!=null?k==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Wn(o)):i.value!==""+Wn(o)&&(i.value=""+Wn(o)):k!=="submit"&&k!=="reset"||i.removeAttribute("value"),o!=null?lp(i,k,Wn(o)):c!=null?lp(i,k,Wn(c)):h!=null&&i.removeAttribute("value"),m==null&&b!=null&&(i.defaultChecked=!!b),m!=null&&(i.checked=m&&typeof m!="function"&&typeof m!="symbol"),I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?i.name=""+Wn(I):i.removeAttribute("name")}function I_(i,o,c,h,m,b,k,I){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(i.type=b),o!=null||c!=null){if(!(b!=="submit"&&b!=="reset"||o!=null))return;c=c!=null?""+Wn(c):"",o=o!=null?""+Wn(o):c,I||o===i.value||(i.value=o),i.defaultValue=o}h=h??m,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=I?i.checked:!!h,i.defaultChecked=!!h,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(i.name=k)}function lp(i,o,c){o==="number"&&xu(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Ao(i,o,c,h){if(i=i.options,o){o={};for(var m=0;m<c.length;m++)o["$"+c[m]]=!0;for(c=0;c<i.length;c++)m=o.hasOwnProperty("$"+i[c].value),i[c].selected!==m&&(i[c].selected=m),m&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Wn(c),o=null,m=0;m<i.length;m++){if(i[m].value===c){i[m].selected=!0,h&&(i[m].defaultSelected=!0);return}o!==null||i[m].disabled||(o=i[m])}o!==null&&(o.selected=!0)}}function O_(i,o,c){if(o!=null&&(o=""+Wn(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+Wn(c):""}function D_(i,o,c,h){if(o==null){if(h!=null){if(c!=null)throw Error(r(92));if(ae(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),o=c}c=Wn(o),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function wo(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}var cj=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 L_(i,o,c){var h=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,c):typeof c!="number"||c===0||cj.has(o)?o==="float"?i.cssFloat=c:i[o]=(""+c).trim():i[o]=c+"px"}function j_(i,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var m in o)h=o[m],o.hasOwnProperty(m)&&c[m]!==h&&L_(i,m,h)}else for(var b in o)o.hasOwnProperty(b)&&L_(i,b,o[b])}function cp(i){if(i.indexOf("-")===-1)return!1;switch(i){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 uj=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"]]),dj=/^[\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 Au(i){return dj.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var up=null;function dp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var To=null,Co=null;function P_(i){var o=_o(i);if(o&&(i=o.stateNode)){var c=i[wn]||null;e:switch(i=o.stateNode,o.type){case"input":if(sp(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Zn(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==i&&h.form===i.form){var m=h[wn]||null;if(!m)throw Error(r(90));sp(h,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===i.form&&N_(h)}break e;case"textarea":O_(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&Ao(i,!!c.multiple,o,!1)}}}var fp=!1;function M_(i,o,c){if(fp)return i(o,c);fp=!0;try{var h=i(o);return h}finally{if(fp=!1,(To!==null||Co!==null)&&(cd(),To&&(o=To,i=Co,Co=To=null,P_(o),i)))for(o=0;o<i.length;o++)P_(i[o])}}function el(i,o){var c=i.stateNode;if(c===null)return null;var h=c[wn]||null;if(h===null)return null;c=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var Xr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hp=!1;if(Xr)try{var tl={};Object.defineProperty(tl,"passive",{get:function(){hp=!0}}),window.addEventListener("test",tl,tl),window.removeEventListener("test",tl,tl)}catch{hp=!1}var Ri=null,pp=null,wu=null;function z_(){if(wu)return wu;var i,o=pp,c=o.length,h,m="value"in Ri?Ri.value:Ri.textContent,b=m.length;for(i=0;i<c&&o[i]===m[i];i++);var k=c-i;for(h=1;h<=k&&o[c-h]===m[b-h];h++);return wu=m.slice(i,1<h?1-h:void 0)}function Tu(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function Cu(){return!0}function B_(){return!1}function Tn(i){function o(c,h,m,b,k){this._reactName=c,this._targetInst=m,this.type=h,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var I in i)i.hasOwnProperty(I)&&(c=i[I],this[I]=c?c(b):b[I]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Cu:B_,this.isPropagationStopped=B_,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Cu)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Cu)},persist:function(){},isPersistent:Cu}),o}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=Tn(Ta),nl=p({},Ta,{view:0,detail:0}),fj=Tn(nl),mp,gp,rl,ku=p({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vp,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==rl&&(rl&&i.type==="mousemove"?(mp=i.screenX-rl.screenX,gp=i.screenY-rl.screenY):gp=mp=0,rl=i),mp)},movementY:function(i){return"movementY"in i?i.movementY:gp}}),V_=Tn(ku),hj=p({},ku,{dataTransfer:0}),pj=Tn(hj),mj=p({},nl,{relatedTarget:0}),yp=Tn(mj),gj=p({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),yj=Tn(gj),vj=p({},Ta,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),bj=Tn(vj),_j=p({},Ta,{data:0}),U_=Tn(_j),Ej={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sj={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"},xj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Aj(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=xj[i])?!!o[i]:!1}function vp(){return Aj}var wj=p({},nl,{key:function(i){if(i.key){var o=Ej[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Tu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Sj[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vp,charCode:function(i){return i.type==="keypress"?Tu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Tu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Tj=Tn(wj),Cj=p({},ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),F_=Tn(Cj),Rj=p({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vp}),kj=Tn(Rj),Nj=p({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ij=Tn(Nj),Oj=p({},ku,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Dj=Tn(Oj),Lj=p({},Ta,{newState:0,oldState:0}),jj=Tn(Lj),Pj=[9,13,27,32],bp=Xr&&"CompositionEvent"in window,il=null;Xr&&"documentMode"in document&&(il=document.documentMode);var Mj=Xr&&"TextEvent"in window&&!il,$_=Xr&&(!bp||il&&8<il&&11>=il),H_=" ",G_=!1;function K_(i,o){switch(i){case"keyup":return Pj.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function q_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ro=!1;function zj(i,o){switch(i){case"compositionend":return q_(o);case"keypress":return o.which!==32?null:(G_=!0,H_);case"textInput":return i=o.data,i===H_&&G_?null:i;default:return null}}function Bj(i,o){if(Ro)return i==="compositionend"||!bp&&K_(i,o)?(i=z_(),wu=pp=Ri=null,Ro=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return $_&&o.locale!=="ko"?null:o.data;default:return null}}var Vj={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 W_(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!Vj[i.type]:o==="textarea"}function Z_(i,o,c,h){To?Co?Co.push(h):Co=[h]:To=h,o=md(o,"onChange"),0<o.length&&(c=new Ru("onChange","change",null,c,h),i.push({event:c,listeners:o}))}var al=null,ol=null;function Uj(i){kx(i,0)}function Nu(i){var o=Js(i);if(N_(o))return i}function Y_(i,o){if(i==="change")return o}var X_=!1;if(Xr){var _p;if(Xr){var Ep="oninput"in document;if(!Ep){var Q_=document.createElement("div");Q_.setAttribute("oninput","return;"),Ep=typeof Q_.oninput=="function"}_p=Ep}else _p=!1;X_=_p&&(!document.documentMode||9<document.documentMode)}function J_(){al&&(al.detachEvent("onpropertychange",eE),ol=al=null)}function eE(i){if(i.propertyName==="value"&&Nu(ol)){var o=[];Z_(o,ol,i,dp(i)),M_(Uj,o)}}function Fj(i,o,c){i==="focusin"?(J_(),al=o,ol=c,al.attachEvent("onpropertychange",eE)):i==="focusout"&&J_()}function $j(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Nu(ol)}function Hj(i,o){if(i==="click")return Nu(o)}function Gj(i,o){if(i==="input"||i==="change")return Nu(o)}function Kj(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Dn=typeof Object.is=="function"?Object.is:Kj;function sl(i,o){if(Dn(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var c=Object.keys(i),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var m=c[h];if(!et.call(o,m)||!Dn(i[m],o[m]))return!1}return!0}function tE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function nE(i,o){var c=tE(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=o&&h>=o)return{node:c,offset:o-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=tE(c)}}function rE(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?rE(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function iE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=xu(i.document);o instanceof i.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)i=o.contentWindow;else break;o=xu(i.document)}return o}function Sp(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var qj=Xr&&"documentMode"in document&&11>=document.documentMode,ko=null,xp=null,ll=null,Ap=!1;function aE(i,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Ap||ko==null||ko!==xu(h)||(h=ko,"selectionStart"in h&&Sp(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),ll&&sl(ll,h)||(ll=h,h=md(xp,"onSelect"),0<h.length&&(o=new Ru("onSelect","select",null,o,c),i.push({event:o,listeners:h}),o.target=ko)))}function Ca(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}var No={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},wp={},oE={};Xr&&(oE=document.createElement("div").style,"AnimationEvent"in window||(delete No.animationend.animation,delete No.animationiteration.animation,delete No.animationstart.animation),"TransitionEvent"in window||delete No.transitionend.transition);function Ra(i){if(wp[i])return wp[i];if(!No[i])return i;var o=No[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in oE)return wp[i]=o[c];return i}var sE=Ra("animationend"),lE=Ra("animationiteration"),cE=Ra("animationstart"),Wj=Ra("transitionrun"),Zj=Ra("transitionstart"),Yj=Ra("transitioncancel"),uE=Ra("transitionend"),dE=new Map,Tp="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 toggle touchMove waiting wheel".split(" ");Tp.push("scrollEnd");function dr(i,o){dE.set(i,o),wa(o,[i])}var fE=new WeakMap;function Yn(i,o){if(typeof i=="object"&&i!==null){var c=fE.get(i);return c!==void 0?c:(o={value:i,source:o,stack:R_(o)},fE.set(i,o),o)}return{value:i,source:o,stack:R_(o)}}var Xn=[],Io=0,Cp=0;function Iu(){for(var i=Io,o=Cp=Io=0;o<i;){var c=Xn[o];Xn[o++]=null;var h=Xn[o];Xn[o++]=null;var m=Xn[o];Xn[o++]=null;var b=Xn[o];if(Xn[o++]=null,h!==null&&m!==null){var k=h.pending;k===null?m.next=m:(m.next=k.next,k.next=m),h.pending=m}b!==0&&hE(c,m,b)}}function Ou(i,o,c,h){Xn[Io++]=i,Xn[Io++]=o,Xn[Io++]=c,Xn[Io++]=h,Cp|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Rp(i,o,c,h){return Ou(i,o,c,h),Du(i)}function Oo(i,o){return Ou(i,null,null,o),Du(i)}function hE(i,o,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var m=!1,b=i.return;b!==null;)b.childLanes|=c,h=b.alternate,h!==null&&(h.childLanes|=c),b.tag===22&&(i=b.stateNode,i===null||i._visibility&1||(m=!0)),i=b,b=b.return;return i.tag===3?(b=i.stateNode,m&&o!==null&&(m=31-pt(c),i=b.hiddenUpdates,h=i[m],h===null?i[m]=[o]:h.push(o),o.lane=c|536870912),b):null}function Du(i){if(50<Dl)throw Dl=0,Lm=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Do={};function Xj(i,o,c,h){this.tag=i,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=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(i,o,c,h){return new Xj(i,o,c,h)}function kp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Qr(i,o){var c=i.alternate;return c===null?(c=Ln(i.tag,o,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=o,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,o=i.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function pE(i,o){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,o=c.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function Lu(i,o,c,h,m,b){var k=0;if(h=i,typeof i=="function")kp(i)&&(k=1);else if(typeof i=="string")k=JP(i,c,oe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case H:return i=Ln(31,c,o,m),i.elementType=H,i.lanes=b,i;case x:return ka(c.children,m,b,o);case A:k=8,m|=24;break;case C:return i=Ln(12,c,o,m|2),i.elementType=C,i.lanes=b,i;case R:return i=Ln(13,c,o,m),i.elementType=R,i.lanes=b,i;case O:return i=Ln(19,c,o,m),i.elementType=O,i.lanes=b,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case w:case T:k=10;break e;case S:k=9;break e;case N:k=11;break e;case D:k=14;break e;case j:k=16,h=null;break e}k=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=Ln(k,c,o,m),o.elementType=i,o.type=h,o.lanes=b,o}function ka(i,o,c,h){return i=Ln(7,i,h,o),i.lanes=c,i}function Np(i,o,c){return i=Ln(6,i,null,o),i.lanes=c,i}function Ip(i,o,c){return o=Ln(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var Lo=[],jo=0,ju=null,Pu=0,Qn=[],Jn=0,Na=null,Jr=1,ei="";function Ia(i,o){Lo[jo++]=Pu,Lo[jo++]=ju,ju=i,Pu=o}function mE(i,o,c){Qn[Jn++]=Jr,Qn[Jn++]=ei,Qn[Jn++]=Na,Na=i;var h=Jr;i=ei;var m=32-pt(h)-1;h&=~(1<<m),c+=1;var b=32-pt(o)+m;if(30<b){var k=m-m%5;b=(h&(1<<k)-1).toString(32),h>>=k,m-=k,Jr=1<<32-pt(o)+m|c<<m|h,ei=b+i}else Jr=1<<b|c<<m|h,ei=i}function Op(i){i.return!==null&&(Ia(i,1),mE(i,1,0))}function Dp(i){for(;i===ju;)ju=Lo[--jo],Lo[jo]=null,Pu=Lo[--jo],Lo[jo]=null;for(;i===Na;)Na=Qn[--Jn],Qn[Jn]=null,ei=Qn[--Jn],Qn[Jn]=null,Jr=Qn[--Jn],Qn[Jn]=null}var vn=null,Ct=null,nt=!1,Oa=null,Tr=!1,Lp=Error(r(519));function Da(i){var o=Error(r(418,""));throw dl(Yn(o,i)),Lp}function gE(i){var o=i.stateNode,c=i.type,h=i.memoizedProps;switch(o[dn]=i,o[wn]=h,c){case"dialog":Ze("cancel",o),Ze("close",o);break;case"iframe":case"object":case"embed":Ze("load",o);break;case"video":case"audio":for(c=0;c<jl.length;c++)Ze(jl[c],o);break;case"source":Ze("error",o);break;case"img":case"image":case"link":Ze("error",o),Ze("load",o);break;case"details":Ze("toggle",o);break;case"input":Ze("invalid",o),I_(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Su(o);break;case"select":Ze("invalid",o);break;case"textarea":Ze("invalid",o),D_(o,h.value,h.defaultValue,h.children),Su(o)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||Dx(o.textContent,c)?(h.popover!=null&&(Ze("beforetoggle",o),Ze("toggle",o)),h.onScroll!=null&&Ze("scroll",o),h.onScrollEnd!=null&&Ze("scrollend",o),h.onClick!=null&&(o.onclick=gd),o=!0):o=!1,o||Da(i)}function yE(i){for(vn=i.return;vn;)switch(vn.tag){case 5:case 13:Tr=!1;return;case 27:case 3:Tr=!0;return;default:vn=vn.return}}function cl(i){if(i!==vn)return!1;if(!nt)return yE(i),nt=!0,!1;var o=i.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||Ym(i.type,i.memoizedProps)),c=!c),c&&Ct&&Da(i),yE(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(o===0){Ct=hr(i.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;i=i.nextSibling}Ct=null}}else o===27?(o=Ct,Hi(i.type)?(i=eg,eg=null,Ct=i):Ct=o):Ct=vn?hr(i.stateNode.nextSibling):null;return!0}function ul(){Ct=vn=null,nt=!1}function vE(){var i=Oa;return i!==null&&(kn===null?kn=i:kn.push.apply(kn,i),Oa=null),i}function dl(i){Oa===null?Oa=[i]:Oa.push(i)}var jp=ie(null),La=null,ti=null;function ki(i,o,c){J(jp,o._currentValue),o._currentValue=c}function ni(i){i._currentValue=jp.current,F(jp)}function Pp(i,o,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===c)break;i=i.return}}function Mp(i,o,c,h){var m=i.child;for(m!==null&&(m.return=i);m!==null;){var b=m.dependencies;if(b!==null){var k=m.child;b=b.firstContext;e:for(;b!==null;){var I=b;b=m;for(var z=0;z<o.length;z++)if(I.context===o[z]){b.lanes|=c,I=b.alternate,I!==null&&(I.lanes|=c),Pp(b.return,c,i),h||(k=null);break e}b=I.next}}else if(m.tag===18){if(k=m.return,k===null)throw Error(r(341));k.lanes|=c,b=k.alternate,b!==null&&(b.lanes|=c),Pp(k,c,i),k=null}else k=m.child;if(k!==null)k.return=m;else for(k=m;k!==null;){if(k===i){k=null;break}if(m=k.sibling,m!==null){m.return=k.return,k=m;break}k=k.return}m=k}}function fl(i,o,c,h){i=null;for(var m=o,b=!1;m!==null;){if(!b){if((m.flags&524288)!==0)b=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var k=m.alternate;if(k===null)throw Error(r(387));if(k=k.memoizedProps,k!==null){var I=m.type;Dn(m.pendingProps.value,k.value)||(i!==null?i.push(I):i=[I])}}else if(m===fe.current){if(k=m.alternate,k===null)throw Error(r(387));k.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(i!==null?i.push(Ul):i=[Ul])}m=m.return}i!==null&&Mp(o,i,c,h),o.flags|=262144}function Mu(i){for(i=i.firstContext;i!==null;){if(!Dn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function ja(i){La=i,ti=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function fn(i){return bE(La,i)}function zu(i,o){return La===null&&ja(i),bE(i,o)}function bE(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},ti===null){if(i===null)throw Error(r(308));ti=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else ti=ti.next=o;return c}var Qj=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(c){return c()})}},Jj=e.unstable_scheduleCallback,eP=e.unstable_NormalPriority,Ft={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zp(){return{controller:new Qj,data:new Map,refCount:0}}function hl(i){i.refCount--,i.refCount===0&&Jj(eP,function(){i.controller.abort()})}var pl=null,Bp=0,Po=0,Mo=null;function tP(i,o){if(pl===null){var c=pl=[];Bp=0,Po=Um(),Mo={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Bp++,o.then(_E,_E),o}function _E(){if(--Bp===0&&pl!==null){Mo!==null&&(Mo.status="fulfilled");var i=pl;pl=null,Po=0,Mo=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function nP(i,o){var c=[],h={status:"pending",value:null,reason:null,then:function(m){c.push(m)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var m=0;m<c.length;m++)(0,c[m])(o)},function(m){for(h.status="rejected",h.reason=m,m=0;m<c.length;m++)(0,c[m])(void 0)}),h}var EE=M.S;M.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&tP(i,o),EE!==null&&EE(i,o)};var Pa=ie(null);function Vp(){var i=Pa.current;return i!==null?i:mt.pooledCache}function Bu(i,o){o===null?J(Pa,Pa.current):J(Pa,o.pool)}function SE(){var i=Vp();return i===null?null:{parent:Ft._currentValue,pool:i}}var ml=Error(r(460)),xE=Error(r(474)),Vu=Error(r(542)),Up={then:function(){}};function AE(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Uu(){}function wE(i,o,c){switch(c=i[c],c===void 0?i.push(o):c!==o&&(o.then(Uu,Uu),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,CE(i),i;default:if(typeof o.status=="string")o.then(Uu,Uu);else{if(i=mt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var m=o;m.status="fulfilled",m.value=h}},function(h){if(o.status==="pending"){var m=o;m.status="rejected",m.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,CE(i),i}throw gl=o,ml}}var gl=null;function TE(){if(gl===null)throw Error(r(459));var i=gl;return gl=null,i}function CE(i){if(i===ml||i===Vu)throw Error(r(483))}var Ni=!1;function Fp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $p(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Ii(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Oi(i,o,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(st&2)!==0){var m=h.pending;return m===null?o.next=o:(o.next=m.next,m.next=o),h.pending=o,o=Du(i),hE(i,null,c),o}return Ou(i,h,o,c),Du(i)}function yl(i,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,__(i,c)}}function Hp(i,o){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var m=null,b=null;if(c=c.firstBaseUpdate,c!==null){do{var k={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};b===null?m=b=k:b=b.next=k,c=c.next}while(c!==null);b===null?m=b=o:b=b.next=o}else m=b=o;c={baseState:h.baseState,firstBaseUpdate:m,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=o:i.next=o,c.lastBaseUpdate=o}var Gp=!1;function vl(){if(Gp){var i=Mo;if(i!==null)throw i}}function bl(i,o,c,h){Gp=!1;var m=i.updateQueue;Ni=!1;var b=m.firstBaseUpdate,k=m.lastBaseUpdate,I=m.shared.pending;if(I!==null){m.shared.pending=null;var z=I,Q=z.next;z.next=null,k===null?b=Q:k.next=Q,k=z;var se=i.alternate;se!==null&&(se=se.updateQueue,I=se.lastBaseUpdate,I!==k&&(I===null?se.firstBaseUpdate=Q:I.next=Q,se.lastBaseUpdate=z))}if(b!==null){var de=m.baseState;k=0,se=Q=z=null,I=b;do{var ne=I.lane&-536870913,re=ne!==I.lane;if(re?(Je&ne)===ne:(h&ne)===ne){ne!==0&&ne===Po&&(Gp=!0),se!==null&&(se=se.next={lane:0,tag:I.tag,payload:I.payload,callback:null,next:null});e:{var je=i,Oe=I;ne=o;var ft=c;switch(Oe.tag){case 1:if(je=Oe.payload,typeof je=="function"){de=je.call(ft,de,ne);break e}de=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Oe.payload,ne=typeof je=="function"?je.call(ft,de,ne):je,ne==null)break e;de=p({},de,ne);break e;case 2:Ni=!0}}ne=I.callback,ne!==null&&(i.flags|=64,re&&(i.flags|=8192),re=m.callbacks,re===null?m.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:I.tag,payload:I.payload,callback:I.callback,next:null},se===null?(Q=se=re,z=de):se=se.next=re,k|=ne;if(I=I.next,I===null){if(I=m.shared.pending,I===null)break;re=I,I=re.next,re.next=null,m.lastBaseUpdate=re,m.shared.pending=null}}while(!0);se===null&&(z=de),m.baseState=z,m.firstBaseUpdate=Q,m.lastBaseUpdate=se,b===null&&(m.shared.lanes=0),Vi|=k,i.lanes=k,i.memoizedState=de}}function RE(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function kE(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)RE(c[i],o)}var zo=ie(null),Fu=ie(0);function NE(i,o){i=ci,J(Fu,i),J(zo,o),ci=i|o.baseLanes}function Kp(){J(Fu,ci),J(zo,zo.current)}function qp(){ci=Fu.current,F(zo),F(Fu)}var Di=0,Ge=null,ut=null,jt=null,$u=!1,Bo=!1,Ma=!1,Hu=0,_l=0,Vo=null,rP=0;function Nt(){throw Error(r(321))}function Wp(i,o){if(o===null)return!1;for(var c=0;c<o.length&&c<i.length;c++)if(!Dn(i[c],o[c]))return!1;return!0}function Zp(i,o,c,h,m,b){return Di=b,Ge=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,M.H=i===null||i.memoizedState===null?hS:pS,Ma=!1,b=c(h,m),Ma=!1,Bo&&(b=OE(o,c,h,m)),IE(i),b}function IE(i){M.H=Yu;var o=ut!==null&&ut.next!==null;if(Di=0,jt=ut=Ge=null,$u=!1,_l=0,Vo=null,o)throw Error(r(300));i===null||Xt||(i=i.dependencies,i!==null&&Mu(i)&&(Xt=!0))}function OE(i,o,c,h){Ge=i;var m=0;do{if(Bo&&(Vo=null),_l=0,Bo=!1,25<=m)throw Error(r(301));if(m+=1,jt=ut=null,i.updateQueue!=null){var b=i.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}M.H=uP,b=o(c,h)}while(Bo);return b}function iP(){var i=M.H,o=i.useState()[0];return o=typeof o.then=="function"?El(o):o,i=i.useState()[0],(ut!==null?ut.memoizedState:null)!==i&&(Ge.flags|=1024),o}function Yp(){var i=Hu!==0;return Hu=0,i}function Xp(i,o,c){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~c}function Qp(i){if($u){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}$u=!1}Di=0,jt=ut=Ge=null,Bo=!1,_l=Hu=0,Vo=null}function Cn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Ge.memoizedState=jt=i:jt=jt.next=i,jt}function Pt(){if(ut===null){var i=Ge.alternate;i=i!==null?i.memoizedState:null}else i=ut.next;var o=jt===null?Ge.memoizedState:jt.next;if(o!==null)jt=o,ut=i;else{if(i===null)throw Ge.alternate===null?Error(r(467)):Error(r(310));ut=i,i={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},jt===null?Ge.memoizedState=jt=i:jt=jt.next=i}return jt}function Jp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function El(i){var o=_l;return _l+=1,Vo===null&&(Vo=[]),i=wE(Vo,i,o),o=Ge,(jt===null?o.memoizedState:jt.next)===null&&(o=o.alternate,M.H=o===null||o.memoizedState===null?hS:pS),i}function Gu(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return El(i);if(i.$$typeof===T)return fn(i)}throw Error(r(438,String(i)))}function em(i){var o=null,c=Ge.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=Ge.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(m){return m.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=Jp(),Ge.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(i),h=0;h<i;h++)c[h]=Z;return o.index++,c}function ri(i,o){return typeof o=="function"?o(i):o}function Ku(i){var o=Pt();return tm(o,ut,i)}function tm(i,o,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var m=i.baseQueue,b=h.pending;if(b!==null){if(m!==null){var k=m.next;m.next=b.next,b.next=k}o.baseQueue=m=b,h.pending=null}if(b=i.baseState,m===null)i.memoizedState=b;else{o=m.next;var I=k=null,z=null,Q=o,se=!1;do{var de=Q.lane&-536870913;if(de!==Q.lane?(Je&de)===de:(Di&de)===de){var ne=Q.revertLane;if(ne===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),de===Po&&(se=!0);else if((Di&ne)===ne){Q=Q.next,ne===Po&&(se=!0);continue}else de={lane:0,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},z===null?(I=z=de,k=b):z=z.next=de,Ge.lanes|=ne,Vi|=ne;de=Q.action,Ma&&c(b,de),b=Q.hasEagerState?Q.eagerState:c(b,de)}else ne={lane:de,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},z===null?(I=z=ne,k=b):z=z.next=ne,Ge.lanes|=de,Vi|=de;Q=Q.next}while(Q!==null&&Q!==o);if(z===null?k=b:z.next=I,!Dn(b,i.memoizedState)&&(Xt=!0,se&&(c=Mo,c!==null)))throw c;i.memoizedState=b,i.baseState=k,i.baseQueue=z,h.lastRenderedState=b}return m===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function nm(i){var o=Pt(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,m=c.pending,b=o.memoizedState;if(m!==null){c.pending=null;var k=m=m.next;do b=i(b,k.action),k=k.next;while(k!==m);Dn(b,o.memoizedState)||(Xt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),c.lastRenderedState=b}return[b,h]}function DE(i,o,c){var h=Ge,m=Pt(),b=nt;if(b){if(c===void 0)throw Error(r(407));c=c()}else c=o();var k=!Dn((ut||m).memoizedState,c);k&&(m.memoizedState=c,Xt=!0),m=m.queue;var I=PE.bind(null,h,m,i);if(Sl(2048,8,I,[i]),m.getSnapshot!==o||k||jt!==null&&jt.memoizedState.tag&1){if(h.flags|=2048,Uo(9,qu(),jE.bind(null,h,m,c,o),null),mt===null)throw Error(r(349));b||(Di&124)!==0||LE(h,o,c)}return c}function LE(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=Ge.updateQueue,o===null?(o=Jp(),Ge.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function jE(i,o,c,h){o.value=c,o.getSnapshot=h,ME(o)&&zE(i)}function PE(i,o,c){return c(function(){ME(o)&&zE(i)})}function ME(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!Dn(i,c)}catch{return!0}}function zE(i){var o=Oo(i,2);o!==null&&Bn(o,i,2)}function rm(i){var o=Cn();if(typeof i=="function"){var c=i;if(i=c(),Ma){Xe(!0);try{c()}finally{Xe(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:i},o}function BE(i,o,c,h){return i.baseState=c,tm(i,ut,typeof h=="function"?h:ri)}function aP(i,o,c,h,m){if(Zu(i))throw Error(r(485));if(i=o.action,i!==null){var b={payload:m,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){b.listeners.push(k)}};M.T!==null?c(!0):b.isTransition=!1,h(b),c=o.pending,c===null?(b.next=o.pending=b,VE(o,b)):(b.next=c.next,o.pending=c.next=b)}}function VE(i,o){var c=o.action,h=o.payload,m=i.state;if(o.isTransition){var b=M.T,k={};M.T=k;try{var I=c(m,h),z=M.S;z!==null&&z(k,I),UE(i,o,I)}catch(Q){im(i,o,Q)}finally{M.T=b}}else try{b=c(m,h),UE(i,o,b)}catch(Q){im(i,o,Q)}}function UE(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){FE(i,o,h)},function(h){return im(i,o,h)}):FE(i,o,c)}function FE(i,o,c){o.status="fulfilled",o.value=c,$E(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,VE(i,c)))}function im(i,o,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,$E(o),o=o.next;while(o!==h)}i.action=null}function $E(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function HE(i,o){return o}function GE(i,o){if(nt){var c=mt.formState;if(c!==null){e:{var h=Ge;if(nt){if(Ct){t:{for(var m=Ct,b=Tr;m.nodeType!==8;){if(!b){m=null;break t}if(m=hr(m.nextSibling),m===null){m=null;break t}}b=m.data,m=b==="F!"||b==="F"?m:null}if(m){Ct=hr(m.nextSibling),h=m.data==="F!";break e}}Da(h)}h=!1}h&&(o=c[0])}}return c=Cn(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:HE,lastRenderedState:o},c.queue=h,c=uS.bind(null,Ge,h),h.dispatch=c,h=rm(!1),b=cm.bind(null,Ge,!1,h.queue),h=Cn(),m={state:o,dispatch:null,action:i,pending:null},h.queue=m,c=aP.bind(null,Ge,m,b,c),m.dispatch=c,h.memoizedState=i,[o,c,!1]}function KE(i){var o=Pt();return qE(o,ut,i)}function qE(i,o,c){if(o=tm(i,o,HE)[0],i=Ku(ri)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=El(o)}catch(k){throw k===ml?Vu:k}else h=o;o=Pt();var m=o.queue,b=m.dispatch;return c!==o.memoizedState&&(Ge.flags|=2048,Uo(9,qu(),oP.bind(null,m,c),null)),[h,b,i]}function oP(i,o){i.action=o}function WE(i){var o=Pt(),c=ut;if(c!==null)return qE(o,c,i);Pt(),o=o.memoizedState,c=Pt();var h=c.queue.dispatch;return c.memoizedState=i,[o,h,!1]}function Uo(i,o,c,h){return i={tag:i,create:c,deps:h,inst:o,next:null},o=Ge.updateQueue,o===null&&(o=Jp(),Ge.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,o.lastEffect=i),i}function qu(){return{destroy:void 0,resource:void 0}}function ZE(){return Pt().memoizedState}function Wu(i,o,c,h){var m=Cn();h=h===void 0?null:h,Ge.flags|=i,m.memoizedState=Uo(1|o,qu(),c,h)}function Sl(i,o,c,h){var m=Pt();h=h===void 0?null:h;var b=m.memoizedState.inst;ut!==null&&h!==null&&Wp(h,ut.memoizedState.deps)?m.memoizedState=Uo(o,b,c,h):(Ge.flags|=i,m.memoizedState=Uo(1|o,b,c,h))}function YE(i,o){Wu(8390656,8,i,o)}function XE(i,o){Sl(2048,8,i,o)}function QE(i,o){return Sl(4,2,i,o)}function JE(i,o){return Sl(4,4,i,o)}function eS(i,o){if(typeof o=="function"){i=i();var c=o(i);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function tS(i,o,c){c=c!=null?c.concat([i]):null,Sl(4,4,eS.bind(null,o,i),c)}function am(){}function nS(i,o){var c=Pt();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&Wp(o,h[1])?h[0]:(c.memoizedState=[i,o],i)}function rS(i,o){var c=Pt();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&Wp(o,h[1]))return h[0];if(h=i(),Ma){Xe(!0);try{i()}finally{Xe(!1)}}return c.memoizedState=[h,o],h}function om(i,o,c){return c===void 0||(Di&1073741824)!==0?i.memoizedState=o:(i.memoizedState=c,i=ox(),Ge.lanes|=i,Vi|=i,c)}function iS(i,o,c,h){return Dn(c,o)?c:zo.current!==null?(i=om(i,c,h),Dn(i,o)||(Xt=!0),i):(Di&42)===0?(Xt=!0,i.memoizedState=c):(i=ox(),Ge.lanes|=i,Vi|=i,o)}function aS(i,o,c,h,m){var b=X.p;X.p=b!==0&&8>b?b:8;var k=M.T,I={};M.T=I,cm(i,!1,o,c);try{var z=m(),Q=M.S;if(Q!==null&&Q(I,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var se=nP(z,h);xl(i,o,se,zn(i))}else xl(i,o,h,zn(i))}catch(de){xl(i,o,{then:function(){},status:"rejected",reason:de},zn())}finally{X.p=b,M.T=k}}function sP(){}function sm(i,o,c,h){if(i.tag!==5)throw Error(r(476));var m=oS(i).queue;aS(i,m,o,G,c===null?sP:function(){return sS(i),c(h)})}function oS(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:G},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function sS(i){var o=oS(i).next.queue;xl(i,o,{},zn())}function lm(){return fn(Ul)}function lS(){return Pt().memoizedState}function cS(){return Pt().memoizedState}function lP(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var c=zn();i=Ii(c);var h=Oi(o,i,c);h!==null&&(Bn(h,o,c),yl(h,o,c)),o={cache:zp()},i.payload=o;return}o=o.return}}function cP(i,o,c){var h=zn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Zu(i)?dS(o,c):(c=Rp(i,o,c,h),c!==null&&(Bn(c,i,h),fS(c,o,h)))}function uS(i,o,c){var h=zn();xl(i,o,c,h)}function xl(i,o,c,h){var m={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Zu(i))dS(o,m);else{var b=i.alternate;if(i.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var k=o.lastRenderedState,I=b(k,c);if(m.hasEagerState=!0,m.eagerState=I,Dn(I,k))return Ou(i,o,m,0),mt===null&&Iu(),!1}catch{}finally{}if(c=Rp(i,o,m,h),c!==null)return Bn(c,i,h),fS(c,o,h),!0}return!1}function cm(i,o,c,h){if(h={lane:2,revertLane:Um(),action:h,hasEagerState:!1,eagerState:null,next:null},Zu(i)){if(o)throw Error(r(479))}else o=Rp(i,c,h,2),o!==null&&Bn(o,i,2)}function Zu(i){var o=i.alternate;return i===Ge||o!==null&&o===Ge}function dS(i,o){Bo=$u=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function fS(i,o,c){if((c&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,__(i,c)}}var Yu={readContext:fn,use:Gu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt},hS={readContext:fn,use:Gu,useCallback:function(i,o){return Cn().memoizedState=[i,o===void 0?null:o],i},useContext:fn,useEffect:YE,useImperativeHandle:function(i,o,c){c=c!=null?c.concat([i]):null,Wu(4194308,4,eS.bind(null,o,i),c)},useLayoutEffect:function(i,o){return Wu(4194308,4,i,o)},useInsertionEffect:function(i,o){Wu(4,2,i,o)},useMemo:function(i,o){var c=Cn();o=o===void 0?null:o;var h=i();if(Ma){Xe(!0);try{i()}finally{Xe(!1)}}return c.memoizedState=[h,o],h},useReducer:function(i,o,c){var h=Cn();if(c!==void 0){var m=c(o);if(Ma){Xe(!0);try{c(o)}finally{Xe(!1)}}}else m=o;return h.memoizedState=h.baseState=m,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:m},h.queue=i,i=i.dispatch=cP.bind(null,Ge,i),[h.memoizedState,i]},useRef:function(i){var o=Cn();return i={current:i},o.memoizedState=i},useState:function(i){i=rm(i);var o=i.queue,c=uS.bind(null,Ge,o);return o.dispatch=c,[i.memoizedState,c]},useDebugValue:am,useDeferredValue:function(i,o){var c=Cn();return om(c,i,o)},useTransition:function(){var i=rm(!1);return i=aS.bind(null,Ge,i.queue,!0,!1),Cn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,c){var h=Ge,m=Cn();if(nt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),mt===null)throw Error(r(349));(Je&124)!==0||LE(h,o,c)}m.memoizedState=c;var b={value:c,getSnapshot:o};return m.queue=b,YE(PE.bind(null,h,b,i),[i]),h.flags|=2048,Uo(9,qu(),jE.bind(null,h,b,c,o),null),c},useId:function(){var i=Cn(),o=mt.identifierPrefix;if(nt){var c=ei,h=Jr;c=(h&~(1<<32-pt(h)-1)).toString(32)+c,o="«"+o+"R"+c,c=Hu++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=rP++,o="«"+o+"r"+c.toString(32)+"»";return i.memoizedState=o},useHostTransitionStatus:lm,useFormState:GE,useActionState:GE,useOptimistic:function(i){var o=Cn();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=cm.bind(null,Ge,!0,c),c.dispatch=o,[i,o]},useMemoCache:em,useCacheRefresh:function(){return Cn().memoizedState=lP.bind(null,Ge)}},pS={readContext:fn,use:Gu,useCallback:nS,useContext:fn,useEffect:XE,useImperativeHandle:tS,useInsertionEffect:QE,useLayoutEffect:JE,useMemo:rS,useReducer:Ku,useRef:ZE,useState:function(){return Ku(ri)},useDebugValue:am,useDeferredValue:function(i,o){var c=Pt();return iS(c,ut.memoizedState,i,o)},useTransition:function(){var i=Ku(ri)[0],o=Pt().memoizedState;return[typeof i=="boolean"?i:El(i),o]},useSyncExternalStore:DE,useId:lS,useHostTransitionStatus:lm,useFormState:KE,useActionState:KE,useOptimistic:function(i,o){var c=Pt();return BE(c,ut,i,o)},useMemoCache:em,useCacheRefresh:cS},uP={readContext:fn,use:Gu,useCallback:nS,useContext:fn,useEffect:XE,useImperativeHandle:tS,useInsertionEffect:QE,useLayoutEffect:JE,useMemo:rS,useReducer:nm,useRef:ZE,useState:function(){return nm(ri)},useDebugValue:am,useDeferredValue:function(i,o){var c=Pt();return ut===null?om(c,i,o):iS(c,ut.memoizedState,i,o)},useTransition:function(){var i=nm(ri)[0],o=Pt().memoizedState;return[typeof i=="boolean"?i:El(i),o]},useSyncExternalStore:DE,useId:lS,useHostTransitionStatus:lm,useFormState:WE,useActionState:WE,useOptimistic:function(i,o){var c=Pt();return ut!==null?BE(c,ut,i,o):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:em,useCacheRefresh:cS},Fo=null,Al=0;function Xu(i){var o=Al;return Al+=1,Fo===null&&(Fo=[]),wE(Fo,i,o)}function wl(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Qu(i,o){throw o.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function mS(i){var o=i._init;return o(i._payload)}function gS(i){function o(K,U){if(i){var Y=K.deletions;Y===null?(K.deletions=[U],K.flags|=16):Y.push(U)}}function c(K,U){if(!i)return null;for(;U!==null;)o(K,U),U=U.sibling;return null}function h(K){for(var U=new Map;K!==null;)K.key!==null?U.set(K.key,K):U.set(K.index,K),K=K.sibling;return U}function m(K,U){return K=Qr(K,U),K.index=0,K.sibling=null,K}function b(K,U,Y){return K.index=Y,i?(Y=K.alternate,Y!==null?(Y=Y.index,Y<U?(K.flags|=67108866,U):Y):(K.flags|=67108866,U)):(K.flags|=1048576,U)}function k(K){return i&&K.alternate===null&&(K.flags|=67108866),K}function I(K,U,Y,ue){return U===null||U.tag!==6?(U=Np(Y,K.mode,ue),U.return=K,U):(U=m(U,Y),U.return=K,U)}function z(K,U,Y,ue){var Ae=Y.type;return Ae===x?se(K,U,Y.props.children,ue,Y.key):U!==null&&(U.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===j&&mS(Ae)===U.type)?(U=m(U,Y.props),wl(U,Y),U.return=K,U):(U=Lu(Y.type,Y.key,Y.props,null,K.mode,ue),wl(U,Y),U.return=K,U)}function Q(K,U,Y,ue){return U===null||U.tag!==4||U.stateNode.containerInfo!==Y.containerInfo||U.stateNode.implementation!==Y.implementation?(U=Ip(Y,K.mode,ue),U.return=K,U):(U=m(U,Y.children||[]),U.return=K,U)}function se(K,U,Y,ue,Ae){return U===null||U.tag!==7?(U=ka(Y,K.mode,ue,Ae),U.return=K,U):(U=m(U,Y),U.return=K,U)}function de(K,U,Y){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Np(""+U,K.mode,Y),U.return=K,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case y:return Y=Lu(U.type,U.key,U.props,null,K.mode,Y),wl(Y,U),Y.return=K,Y;case _:return U=Ip(U,K.mode,Y),U.return=K,U;case j:var ue=U._init;return U=ue(U._payload),de(K,U,Y)}if(ae(U)||te(U))return U=ka(U,K.mode,Y,null),U.return=K,U;if(typeof U.then=="function")return de(K,Xu(U),Y);if(U.$$typeof===T)return de(K,zu(K,U),Y);Qu(K,U)}return null}function ne(K,U,Y,ue){var Ae=U!==null?U.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Ae!==null?null:I(K,U,""+Y,ue);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case y:return Y.key===Ae?z(K,U,Y,ue):null;case _:return Y.key===Ae?Q(K,U,Y,ue):null;case j:return Ae=Y._init,Y=Ae(Y._payload),ne(K,U,Y,ue)}if(ae(Y)||te(Y))return Ae!==null?null:se(K,U,Y,ue,null);if(typeof Y.then=="function")return ne(K,U,Xu(Y),ue);if(Y.$$typeof===T)return ne(K,U,zu(K,Y),ue);Qu(K,Y)}return null}function re(K,U,Y,ue,Ae){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return K=K.get(Y)||null,I(U,K,""+ue,Ae);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:return K=K.get(ue.key===null?Y:ue.key)||null,z(U,K,ue,Ae);case _:return K=K.get(ue.key===null?Y:ue.key)||null,Q(U,K,ue,Ae);case j:var qe=ue._init;return ue=qe(ue._payload),re(K,U,Y,ue,Ae)}if(ae(ue)||te(ue))return K=K.get(Y)||null,se(U,K,ue,Ae,null);if(typeof ue.then=="function")return re(K,U,Y,Xu(ue),Ae);if(ue.$$typeof===T)return re(K,U,Y,zu(U,ue),Ae);Qu(U,ue)}return null}function je(K,U,Y,ue){for(var Ae=null,qe=null,ke=U,De=U=0,Jt=null;ke!==null&&De<Y.length;De++){ke.index>De?(Jt=ke,ke=null):Jt=ke.sibling;var tt=ne(K,ke,Y[De],ue);if(tt===null){ke===null&&(ke=Jt);break}i&&ke&&tt.alternate===null&&o(K,ke),U=b(tt,U,De),qe===null?Ae=tt:qe.sibling=tt,qe=tt,ke=Jt}if(De===Y.length)return c(K,ke),nt&&Ia(K,De),Ae;if(ke===null){for(;De<Y.length;De++)ke=de(K,Y[De],ue),ke!==null&&(U=b(ke,U,De),qe===null?Ae=ke:qe.sibling=ke,qe=ke);return nt&&Ia(K,De),Ae}for(ke=h(ke);De<Y.length;De++)Jt=re(ke,K,De,Y[De],ue),Jt!==null&&(i&&Jt.alternate!==null&&ke.delete(Jt.key===null?De:Jt.key),U=b(Jt,U,De),qe===null?Ae=Jt:qe.sibling=Jt,qe=Jt);return i&&ke.forEach(function(Zi){return o(K,Zi)}),nt&&Ia(K,De),Ae}function Oe(K,U,Y,ue){if(Y==null)throw Error(r(151));for(var Ae=null,qe=null,ke=U,De=U=0,Jt=null,tt=Y.next();ke!==null&&!tt.done;De++,tt=Y.next()){ke.index>De?(Jt=ke,ke=null):Jt=ke.sibling;var Zi=ne(K,ke,tt.value,ue);if(Zi===null){ke===null&&(ke=Jt);break}i&&ke&&Zi.alternate===null&&o(K,ke),U=b(Zi,U,De),qe===null?Ae=Zi:qe.sibling=Zi,qe=Zi,ke=Jt}if(tt.done)return c(K,ke),nt&&Ia(K,De),Ae;if(ke===null){for(;!tt.done;De++,tt=Y.next())tt=de(K,tt.value,ue),tt!==null&&(U=b(tt,U,De),qe===null?Ae=tt:qe.sibling=tt,qe=tt);return nt&&Ia(K,De),Ae}for(ke=h(ke);!tt.done;De++,tt=Y.next())tt=re(ke,K,De,tt.value,ue),tt!==null&&(i&&tt.alternate!==null&&ke.delete(tt.key===null?De:tt.key),U=b(tt,U,De),qe===null?Ae=tt:qe.sibling=tt,qe=tt);return i&&ke.forEach(function(dM){return o(K,dM)}),nt&&Ia(K,De),Ae}function ft(K,U,Y,ue){if(typeof Y=="object"&&Y!==null&&Y.type===x&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case y:e:{for(var Ae=Y.key;U!==null;){if(U.key===Ae){if(Ae=Y.type,Ae===x){if(U.tag===7){c(K,U.sibling),ue=m(U,Y.props.children),ue.return=K,K=ue;break e}}else if(U.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===j&&mS(Ae)===U.type){c(K,U.sibling),ue=m(U,Y.props),wl(ue,Y),ue.return=K,K=ue;break e}c(K,U);break}else o(K,U);U=U.sibling}Y.type===x?(ue=ka(Y.props.children,K.mode,ue,Y.key),ue.return=K,K=ue):(ue=Lu(Y.type,Y.key,Y.props,null,K.mode,ue),wl(ue,Y),ue.return=K,K=ue)}return k(K);case _:e:{for(Ae=Y.key;U!==null;){if(U.key===Ae)if(U.tag===4&&U.stateNode.containerInfo===Y.containerInfo&&U.stateNode.implementation===Y.implementation){c(K,U.sibling),ue=m(U,Y.children||[]),ue.return=K,K=ue;break e}else{c(K,U);break}else o(K,U);U=U.sibling}ue=Ip(Y,K.mode,ue),ue.return=K,K=ue}return k(K);case j:return Ae=Y._init,Y=Ae(Y._payload),ft(K,U,Y,ue)}if(ae(Y))return je(K,U,Y,ue);if(te(Y)){if(Ae=te(Y),typeof Ae!="function")throw Error(r(150));return Y=Ae.call(Y),Oe(K,U,Y,ue)}if(typeof Y.then=="function")return ft(K,U,Xu(Y),ue);if(Y.$$typeof===T)return ft(K,U,zu(K,Y),ue);Qu(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,U!==null&&U.tag===6?(c(K,U.sibling),ue=m(U,Y),ue.return=K,K=ue):(c(K,U),ue=Np(Y,K.mode,ue),ue.return=K,K=ue),k(K)):c(K,U)}return function(K,U,Y,ue){try{Al=0;var Ae=ft(K,U,Y,ue);return Fo=null,Ae}catch(ke){if(ke===ml||ke===Vu)throw ke;var qe=Ln(29,ke,null,K.mode);return qe.lanes=ue,qe.return=K,qe}finally{}}}var $o=gS(!0),yS=gS(!1),er=ie(null),Cr=null;function Li(i){var o=i.alternate;J($t,$t.current&1),J(er,i),Cr===null&&(o===null||zo.current!==null||o.memoizedState!==null)&&(Cr=i)}function vS(i){if(i.tag===22){if(J($t,$t.current),J(er,i),Cr===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(Cr=i)}}else ji()}function ji(){J($t,$t.current),J(er,er.current)}function ii(i){F(er),Cr===i&&(Cr=null),F($t)}var $t=ie(0);function Ju(i){for(var o=i;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||Jm(c)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function um(i,o,c,h){o=i.memoizedState,c=c(h,o),c=c==null?o:p({},o,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var dm={enqueueSetState:function(i,o,c){i=i._reactInternals;var h=zn(),m=Ii(h);m.payload=o,c!=null&&(m.callback=c),o=Oi(i,m,h),o!==null&&(Bn(o,i,h),yl(o,i,h))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var h=zn(),m=Ii(h);m.tag=1,m.payload=o,c!=null&&(m.callback=c),o=Oi(i,m,h),o!==null&&(Bn(o,i,h),yl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=zn(),h=Ii(c);h.tag=2,o!=null&&(h.callback=o),o=Oi(i,h,c),o!==null&&(Bn(o,i,c),yl(o,i,c))}};function bS(i,o,c,h,m,b,k){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,b,k):o.prototype&&o.prototype.isPureReactComponent?!sl(c,h)||!sl(m,b):!0}function _S(i,o,c,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==i&&dm.enqueueReplaceState(o,o.state,null)}function za(i,o){var c=o;if("ref"in o){c={};for(var h in o)h!=="ref"&&(c[h]=o[h])}if(i=i.defaultProps){c===o&&(c=p({},c));for(var m in i)c[m]===void 0&&(c[m]=i[m])}return c}var ed=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function ES(i){ed(i)}function SS(i){console.error(i)}function xS(i){ed(i)}function td(i,o){try{var c=i.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function AS(i,o,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function fm(i,o,c){return c=Ii(c),c.tag=3,c.payload={element:null},c.callback=function(){td(i,o)},c}function wS(i){return i=Ii(i),i.tag=3,i}function TS(i,o,c,h){var m=c.type.getDerivedStateFromError;if(typeof m=="function"){var b=h.value;i.payload=function(){return m(b)},i.callback=function(){AS(o,c,h)}}var k=c.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(i.callback=function(){AS(o,c,h),typeof m!="function"&&(Ui===null?Ui=new Set([this]):Ui.add(this));var I=h.stack;this.componentDidCatch(h.value,{componentStack:I!==null?I:""})})}function dP(i,o,c,h,m){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&fl(o,c,m,!0),c=er.current,c!==null){switch(c.tag){case 13:return Cr===null?Pm():c.alternate===null&&Rt===0&&(Rt=3),c.flags&=-257,c.flags|=65536,c.lanes=m,h===Up?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),zm(i,h,m)),!1;case 22:return c.flags|=65536,h===Up?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([h]):c.add(h)),zm(i,h,m)),!1}throw Error(r(435,c.tag))}return zm(i,h,m),Pm(),!1}if(nt)return o=er.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=m,h!==Lp&&(i=Error(r(422),{cause:h}),dl(Yn(i,c)))):(h!==Lp&&(o=Error(r(423),{cause:h}),dl(Yn(o,c))),i=i.current.alternate,i.flags|=65536,m&=-m,i.lanes|=m,h=Yn(h,c),m=fm(i.stateNode,h,m),Hp(i,m),Rt!==4&&(Rt=2)),!1;var b=Error(r(520),{cause:h});if(b=Yn(b,c),Ol===null?Ol=[b]:Ol.push(b),Rt!==4&&(Rt=2),o===null)return!0;h=Yn(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=m&-m,c.lanes|=i,i=fm(c.stateNode,h,i),Hp(c,i),!1;case 1:if(o=c.type,b=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ui===null||!Ui.has(b))))return c.flags|=65536,m&=-m,c.lanes|=m,m=wS(m),TS(m,i,c,h),Hp(c,m),!1}c=c.return}while(c!==null);return!1}var CS=Error(r(461)),Xt=!1;function nn(i,o,c,h){o.child=i===null?yS(o,null,c,h):$o(o,i.child,c,h)}function RS(i,o,c,h,m){c=c.render;var b=o.ref;if("ref"in h){var k={};for(var I in h)I!=="ref"&&(k[I]=h[I])}else k=h;return ja(o),h=Zp(i,o,c,k,b,m),I=Yp(),i!==null&&!Xt?(Xp(i,o,m),ai(i,o,m)):(nt&&I&&Op(o),o.flags|=1,nn(i,o,h,m),o.child)}function kS(i,o,c,h,m){if(i===null){var b=c.type;return typeof b=="function"&&!kp(b)&&b.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=b,NS(i,o,b,h,m)):(i=Lu(c.type,null,h,o,o.mode,m),i.ref=o.ref,i.return=o,o.child=i)}if(b=i.child,!_m(i,m)){var k=b.memoizedProps;if(c=c.compare,c=c!==null?c:sl,c(k,h)&&i.ref===o.ref)return ai(i,o,m)}return o.flags|=1,i=Qr(b,h),i.ref=o.ref,i.return=o,o.child=i}function NS(i,o,c,h,m){if(i!==null){var b=i.memoizedProps;if(sl(b,h)&&i.ref===o.ref)if(Xt=!1,o.pendingProps=h=b,_m(i,m))(i.flags&131072)!==0&&(Xt=!0);else return o.lanes=i.lanes,ai(i,o,m)}return hm(i,o,c,h,m)}function IS(i,o,c){var h=o.pendingProps,m=h.children,b=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((o.flags&128)!==0){if(h=b!==null?b.baseLanes|c:c,i!==null){for(m=o.child=i.child,b=0;m!==null;)b=b|m.lanes|m.childLanes,m=m.sibling;o.childLanes=b&~h}else o.childLanes=0,o.child=null;return OS(i,o,h,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Bu(o,b!==null?b.cachePool:null),b!==null?NE(o,b):Kp(),vS(o);else return o.lanes=o.childLanes=536870912,OS(i,o,b!==null?b.baseLanes|c:c,c)}else b!==null?(Bu(o,b.cachePool),NE(o,b),ji(),o.memoizedState=null):(i!==null&&Bu(o,null),Kp(),ji());return nn(i,o,m,c),o.child}function OS(i,o,c,h){var m=Vp();return m=m===null?null:{parent:Ft._currentValue,pool:m},o.memoizedState={baseLanes:c,cachePool:m},i!==null&&Bu(o,null),Kp(),vS(o),i!==null&&fl(i,o,h,!0),null}function nd(i,o){var c=o.ref;if(c===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(o.flags|=4194816)}}function hm(i,o,c,h,m){return ja(o),c=Zp(i,o,c,h,void 0,m),h=Yp(),i!==null&&!Xt?(Xp(i,o,m),ai(i,o,m)):(nt&&h&&Op(o),o.flags|=1,nn(i,o,c,m),o.child)}function DS(i,o,c,h,m,b){return ja(o),o.updateQueue=null,c=OE(o,h,c,m),IE(i),h=Yp(),i!==null&&!Xt?(Xp(i,o,b),ai(i,o,b)):(nt&&h&&Op(o),o.flags|=1,nn(i,o,c,b),o.child)}function LS(i,o,c,h,m){if(ja(o),o.stateNode===null){var b=Do,k=c.contextType;typeof k=="object"&&k!==null&&(b=fn(k)),b=new c(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=dm,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},Fp(o),k=c.contextType,b.context=typeof k=="object"&&k!==null?fn(k):Do,b.state=o.memoizedState,k=c.getDerivedStateFromProps,typeof k=="function"&&(um(o,c,k,h),b.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(k=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),k!==b.state&&dm.enqueueReplaceState(b,b.state,null),bl(o,h,b,m),vl(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){b=o.stateNode;var I=o.memoizedProps,z=za(c,I);b.props=z;var Q=b.context,se=c.contextType;k=Do,typeof se=="object"&&se!==null&&(k=fn(se));var de=c.getDerivedStateFromProps;se=typeof de=="function"||typeof b.getSnapshotBeforeUpdate=="function",I=o.pendingProps!==I,se||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(I||Q!==k)&&_S(o,b,h,k),Ni=!1;var ne=o.memoizedState;b.state=ne,bl(o,h,b,m),vl(),Q=o.memoizedState,I||ne!==Q||Ni?(typeof de=="function"&&(um(o,c,de,h),Q=o.memoizedState),(z=Ni||bS(o,c,z,h,ne,Q,k))?(se||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=Q),b.props=h,b.state=Q,b.context=k,h=z):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,$p(i,o),k=o.memoizedProps,se=za(c,k),b.props=se,de=o.pendingProps,ne=b.context,Q=c.contextType,z=Do,typeof Q=="object"&&Q!==null&&(z=fn(Q)),I=c.getDerivedStateFromProps,(Q=typeof I=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==de||ne!==z)&&_S(o,b,h,z),Ni=!1,ne=o.memoizedState,b.state=ne,bl(o,h,b,m),vl();var re=o.memoizedState;k!==de||ne!==re||Ni||i!==null&&i.dependencies!==null&&Mu(i.dependencies)?(typeof I=="function"&&(um(o,c,I,h),re=o.memoizedState),(se=Ni||bS(o,c,se,h,ne,re,z)||i!==null&&i.dependencies!==null&&Mu(i.dependencies))?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,re,z),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,re,z)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===i.memoizedProps&&ne===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&ne===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=re),b.props=h,b.state=re,b.context=z,h=se):(typeof b.componentDidUpdate!="function"||k===i.memoizedProps&&ne===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===i.memoizedProps&&ne===i.memoizedState||(o.flags|=1024),h=!1)}return b=h,nd(i,o),h=(o.flags&128)!==0,b||h?(b=o.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:b.render(),o.flags|=1,i!==null&&h?(o.child=$o(o,i.child,null,m),o.child=$o(o,null,c,m)):nn(i,o,c,m),o.memoizedState=b.state,i=o.child):i=ai(i,o,m),i}function jS(i,o,c,h){return ul(),o.flags|=256,nn(i,o,c,h),o.child}var pm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mm(i){return{baseLanes:i,cachePool:SE()}}function gm(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=tr),i}function PS(i,o,c){var h=o.pendingProps,m=!1,b=(o.flags&128)!==0,k;if((k=b)||(k=i!==null&&i.memoizedState===null?!1:($t.current&2)!==0),k&&(m=!0,o.flags&=-129),k=(o.flags&32)!==0,o.flags&=-33,i===null){if(nt){if(m?Li(o):ji(),nt){var I=Ct,z;if(z=I){e:{for(z=I,I=Tr;z.nodeType!==8;){if(!I){I=null;break e}if(z=hr(z.nextSibling),z===null){I=null;break e}}I=z}I!==null?(o.memoizedState={dehydrated:I,treeContext:Na!==null?{id:Jr,overflow:ei}:null,retryLane:536870912,hydrationErrors:null},z=Ln(18,null,null,0),z.stateNode=I,z.return=o,o.child=z,vn=o,Ct=null,z=!0):z=!1}z||Da(o)}if(I=o.memoizedState,I!==null&&(I=I.dehydrated,I!==null))return Jm(I)?o.lanes=32:o.lanes=536870912,null;ii(o)}return I=h.children,h=h.fallback,m?(ji(),m=o.mode,I=rd({mode:"hidden",children:I},m),h=ka(h,m,c,null),I.return=o,h.return=o,I.sibling=h,o.child=I,m=o.child,m.memoizedState=mm(c),m.childLanes=gm(i,k,c),o.memoizedState=pm,h):(Li(o),ym(o,I))}if(z=i.memoizedState,z!==null&&(I=z.dehydrated,I!==null)){if(b)o.flags&256?(Li(o),o.flags&=-257,o=vm(i,o,c)):o.memoizedState!==null?(ji(),o.child=i.child,o.flags|=128,o=null):(ji(),m=h.fallback,I=o.mode,h=rd({mode:"visible",children:h.children},I),m=ka(m,I,c,null),m.flags|=2,h.return=o,m.return=o,h.sibling=m,o.child=h,$o(o,i.child,null,c),h=o.child,h.memoizedState=mm(c),h.childLanes=gm(i,k,c),o.memoizedState=pm,o=m);else if(Li(o),Jm(I)){if(k=I.nextSibling&&I.nextSibling.dataset,k)var Q=k.dgst;k=Q,h=Error(r(419)),h.stack="",h.digest=k,dl({value:h,source:null,stack:null}),o=vm(i,o,c)}else if(Xt||fl(i,o,c,!1),k=(c&i.childLanes)!==0,Xt||k){if(k=mt,k!==null&&(h=c&-c,h=(h&42)!==0?1:ep(h),h=(h&(k.suspendedLanes|c))!==0?0:h,h!==0&&h!==z.retryLane))throw z.retryLane=h,Oo(i,h),Bn(k,i,h),CS;I.data==="$?"||Pm(),o=vm(i,o,c)}else I.data==="$?"?(o.flags|=192,o.child=i.child,o=null):(i=z.treeContext,Ct=hr(I.nextSibling),vn=o,nt=!0,Oa=null,Tr=!1,i!==null&&(Qn[Jn++]=Jr,Qn[Jn++]=ei,Qn[Jn++]=Na,Jr=i.id,ei=i.overflow,Na=o),o=ym(o,h.children),o.flags|=4096);return o}return m?(ji(),m=h.fallback,I=o.mode,z=i.child,Q=z.sibling,h=Qr(z,{mode:"hidden",children:h.children}),h.subtreeFlags=z.subtreeFlags&65011712,Q!==null?m=Qr(Q,m):(m=ka(m,I,c,null),m.flags|=2),m.return=o,h.return=o,h.sibling=m,o.child=h,h=m,m=o.child,I=i.child.memoizedState,I===null?I=mm(c):(z=I.cachePool,z!==null?(Q=Ft._currentValue,z=z.parent!==Q?{parent:Q,pool:Q}:z):z=SE(),I={baseLanes:I.baseLanes|c,cachePool:z}),m.memoizedState=I,m.childLanes=gm(i,k,c),o.memoizedState=pm,h):(Li(o),c=i.child,i=c.sibling,c=Qr(c,{mode:"visible",children:h.children}),c.return=o,c.sibling=null,i!==null&&(k=o.deletions,k===null?(o.deletions=[i],o.flags|=16):k.push(i)),o.child=c,o.memoizedState=null,c)}function ym(i,o){return o=rd({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function rd(i,o){return i=Ln(22,i,null,o),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function vm(i,o,c){return $o(o,i.child,null,c),i=ym(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function MS(i,o,c){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Pp(i.return,o,c)}function bm(i,o,c,h,m){var b=i.memoizedState;b===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:m}:(b.isBackwards=o,b.rendering=null,b.renderingStartTime=0,b.last=h,b.tail=c,b.tailMode=m)}function zS(i,o,c){var h=o.pendingProps,m=h.revealOrder,b=h.tail;if(nn(i,o,h.children,c),h=$t.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&MS(i,c,o);else if(i.tag===19)MS(i,c,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(J($t,h),m){case"forwards":for(c=o.child,m=null;c!==null;)i=c.alternate,i!==null&&Ju(i)===null&&(m=c),c=c.sibling;c=m,c===null?(m=o.child,o.child=null):(m=c.sibling,c.sibling=null),bm(o,!1,m,c,b);break;case"backwards":for(c=null,m=o.child,o.child=null;m!==null;){if(i=m.alternate,i!==null&&Ju(i)===null){o.child=m;break}i=m.sibling,m.sibling=c,c=m,m=i}bm(o,!0,c,null,b);break;case"together":bm(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ai(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),Vi|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(fl(i,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,c=Qr(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=Qr(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function _m(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&Mu(i)))}function fP(i,o,c){switch(o.tag){case 3:xe(o,o.stateNode.containerInfo),ki(o,Ft,i.memoizedState.cache),ul();break;case 27:case 5:Be(o);break;case 4:xe(o,o.stateNode.containerInfo);break;case 10:ki(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Li(o),o.flags|=128,null):(c&o.child.childLanes)!==0?PS(i,o,c):(Li(o),i=ai(i,o,c),i!==null?i.sibling:null);Li(o);break;case 19:var m=(i.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(fl(i,o,c,!1),h=(c&o.childLanes)!==0),m){if(h)return zS(i,o,c);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),J($t,$t.current),h)break;return null;case 22:case 23:return o.lanes=0,IS(i,o,c);case 24:ki(o,Ft,i.memoizedState.cache)}return ai(i,o,c)}function BS(i,o,c){if(i!==null)if(i.memoizedProps!==o.pendingProps)Xt=!0;else{if(!_m(i,c)&&(o.flags&128)===0)return Xt=!1,fP(i,o,c);Xt=(i.flags&131072)!==0}else Xt=!1,nt&&(o.flags&1048576)!==0&&mE(o,Pu,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,m=h._init;if(h=m(h._payload),o.type=h,typeof h=="function")kp(h)?(i=za(h,i),o.tag=1,o=LS(null,o,h,i,c)):(o.tag=0,o=hm(null,o,h,i,c));else{if(h!=null){if(m=h.$$typeof,m===N){o.tag=11,o=RS(null,o,h,i,c);break e}else if(m===D){o.tag=14,o=kS(null,o,h,i,c);break e}}throw o=W(h)||h,Error(r(306,o,""))}}return o;case 0:return hm(i,o,o.type,o.pendingProps,c);case 1:return h=o.type,m=za(h,o.pendingProps),LS(i,o,h,m,c);case 3:e:{if(xe(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;m=b.element,$p(i,o),bl(o,h,null,c);var k=o.memoizedState;if(h=k.cache,ki(o,Ft,h),h!==b.cache&&Mp(o,[Ft],c,!0),vl(),h=k.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:k.cache},o.updateQueue.baseState=b,o.memoizedState=b,o.flags&256){o=jS(i,o,h,c);break e}else if(h!==m){m=Yn(Error(r(424)),o),dl(m),o=jS(i,o,h,c);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Ct=hr(i.firstChild),vn=o,nt=!0,Oa=null,Tr=!0,c=yS(o,null,h,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(ul(),h===m){o=ai(i,o,c);break e}nn(i,o,h,c)}o=o.child}return o;case 26:return nd(i,o),i===null?(c=$x(o.type,null,o.pendingProps,null))?o.memoizedState=c:nt||(c=o.type,i=o.pendingProps,h=yd(ye.current).createElement(c),h[dn]=o,h[wn]=i,an(h,c,i),Yt(h),o.stateNode=h):o.memoizedState=$x(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return Be(o),i===null&&nt&&(h=o.stateNode=Vx(o.type,o.pendingProps,ye.current),vn=o,Tr=!0,m=Ct,Hi(o.type)?(eg=m,Ct=hr(h.firstChild)):Ct=m),nn(i,o,o.pendingProps.children,c),nd(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&nt&&((m=h=Ct)&&(h=VP(h,o.type,o.pendingProps,Tr),h!==null?(o.stateNode=h,vn=o,Ct=hr(h.firstChild),Tr=!1,m=!0):m=!1),m||Da(o)),Be(o),m=o.type,b=o.pendingProps,k=i!==null?i.memoizedProps:null,h=b.children,Ym(m,b)?h=null:k!==null&&Ym(m,k)&&(o.flags|=32),o.memoizedState!==null&&(m=Zp(i,o,iP,null,null,c),Ul._currentValue=m),nd(i,o),nn(i,o,h,c),o.child;case 6:return i===null&&nt&&((i=c=Ct)&&(c=UP(c,o.pendingProps,Tr),c!==null?(o.stateNode=c,vn=o,Ct=null,i=!0):i=!1),i||Da(o)),null;case 13:return PS(i,o,c);case 4:return xe(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=$o(o,null,h,c):nn(i,o,h,c),o.child;case 11:return RS(i,o,o.type,o.pendingProps,c);case 7:return nn(i,o,o.pendingProps,c),o.child;case 8:return nn(i,o,o.pendingProps.children,c),o.child;case 12:return nn(i,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,ki(o,o.type,h.value),nn(i,o,h.children,c),o.child;case 9:return m=o.type._context,h=o.pendingProps.children,ja(o),m=fn(m),h=h(m),o.flags|=1,nn(i,o,h,c),o.child;case 14:return kS(i,o,o.type,o.pendingProps,c);case 15:return NS(i,o,o.type,o.pendingProps,c);case 19:return zS(i,o,c);case 31:return h=o.pendingProps,c=o.mode,h={mode:h.mode,children:h.children},i===null?(c=rd(h,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=Qr(i.child,h),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return IS(i,o,c);case 24:return ja(o),h=fn(Ft),i===null?(m=Vp(),m===null&&(m=mt,b=zp(),m.pooledCache=b,b.refCount++,b!==null&&(m.pooledCacheLanes|=c),m=b),o.memoizedState={parent:h,cache:m},Fp(o),ki(o,Ft,m)):((i.lanes&c)!==0&&($p(i,o),bl(o,null,null,c),vl()),m=i.memoizedState,b=o.memoizedState,m.parent!==h?(m={parent:h,cache:h},o.memoizedState=m,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=m),ki(o,Ft,h)):(h=b.cache,ki(o,Ft,h),h!==m.cache&&Mp(o,[Ft],c,!0))),nn(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function oi(i){i.flags|=4}function VS(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Wx(o)){if(o=er.current,o!==null&&((Je&4194048)===Je?Cr!==null:(Je&62914560)!==Je&&(Je&536870912)===0||o!==Cr))throw gl=Up,xE;i.flags|=8192}}function id(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?v_():536870912,i.lanes|=o,qo|=o)}function Tl(i,o){if(!nt)switch(i.tailMode){case"hidden":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function St(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(o)for(var m=i.child;m!==null;)c|=m.lanes|m.childLanes,h|=m.subtreeFlags&65011712,h|=m.flags&65011712,m.return=i,m=m.sibling;else for(m=i.child;m!==null;)c|=m.lanes|m.childLanes,h|=m.subtreeFlags,h|=m.flags,m.return=i,m=m.sibling;return i.subtreeFlags|=h,i.childLanes=c,o}function hP(i,o,c){var h=o.pendingProps;switch(Dp(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(o),null;case 1:return St(o),null;case 3:return c=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),ni(Ft),Le(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(cl(o)?oi(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,vE())),St(o),null;case 26:return c=o.memoizedState,i===null?(oi(o),c!==null?(St(o),VS(o,c)):(St(o),o.flags&=-16777217)):c?c!==i.memoizedState?(oi(o),St(o),VS(o,c)):(St(o),o.flags&=-16777217):(i.memoizedProps!==h&&oi(o),St(o),o.flags&=-16777217),null;case 27:Ye(o),c=ye.current;var m=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&oi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return St(o),null}i=oe.current,cl(o)?gE(o):(i=Vx(m,h,c),o.stateNode=i,oi(o))}return St(o),null;case 5:if(Ye(o),c=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&oi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return St(o),null}if(i=oe.current,cl(o))gE(o);else{switch(m=yd(ye.current),i){case 1:i=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=m.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?m.createElement("select",{is:h.is}):m.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?m.createElement(c,{is:h.is}):m.createElement(c)}}i[dn]=o,i[wn]=h;e:for(m=o.child;m!==null;){if(m.tag===5||m.tag===6)i.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===o)break e;for(;m.sibling===null;){if(m.return===null||m.return===o)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}o.stateNode=i;e:switch(an(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&oi(o)}}return St(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&oi(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=ye.current,cl(o)){if(i=o.stateNode,c=o.memoizedProps,h=null,m=vn,m!==null)switch(m.tag){case 27:case 5:h=m.memoizedProps}i[dn]=o,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||Dx(i.nodeValue,c)),i||Da(o)}else i=yd(i).createTextNode(h),i[dn]=o,o.stateNode=i}return St(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(m=cl(o),h!==null&&h.dehydrated!==null){if(i===null){if(!m)throw Error(r(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[dn]=o}else ul(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;St(o),m=!1}else m=vE(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=m),m=!0;if(!m)return o.flags&256?(ii(o),o):(ii(o),null)}if(ii(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=o.child,m=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(m=h.alternate.memoizedState.cachePool.pool);var b=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==m&&(h.flags|=2048)}return c!==i&&c&&(o.child.flags|=8192),id(o,o.updateQueue),St(o),null;case 4:return Le(),i===null&&Gm(o.stateNode.containerInfo),St(o),null;case 10:return ni(o.type),St(o),null;case 19:if(F($t),m=o.memoizedState,m===null)return St(o),null;if(h=(o.flags&128)!==0,b=m.rendering,b===null)if(h)Tl(m,!1);else{if(Rt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(b=Ju(i),b!==null){for(o.flags|=128,Tl(m,!1),i=b.updateQueue,o.updateQueue=i,id(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)pE(c,i),c=c.sibling;return J($t,$t.current&1|2),o.child}i=i.sibling}m.tail!==null&&un()>sd&&(o.flags|=128,h=!0,Tl(m,!1),o.lanes=4194304)}else{if(!h)if(i=Ju(b),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,id(o,i),Tl(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!nt)return St(o),null}else 2*un()-m.renderingStartTime>sd&&c!==536870912&&(o.flags|=128,h=!0,Tl(m,!1),o.lanes=4194304);m.isBackwards?(b.sibling=o.child,o.child=b):(i=m.last,i!==null?i.sibling=b:o.child=b,m.last=b)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=un(),o.sibling=null,i=$t.current,J($t,h?i&1|2:i&1),o):(St(o),null);case 22:case 23:return ii(o),qp(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(c&536870912)!==0&&(o.flags&128)===0&&(St(o),o.subtreeFlags&6&&(o.flags|=8192)):St(o),c=o.updateQueue,c!==null&&id(o,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048),i!==null&&F(Pa),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),ni(Ft),St(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function pP(i,o){switch(Dp(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return ni(Ft),Le(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Ye(o),null;case 13:if(ii(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));ul()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return F($t),null;case 4:return Le(),null;case 10:return ni(o.type),null;case 22:case 23:return ii(o),qp(),i!==null&&F(Pa),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return ni(Ft),null;case 25:return null;default:return null}}function US(i,o){switch(Dp(o),o.tag){case 3:ni(Ft),Le();break;case 26:case 27:case 5:Ye(o);break;case 4:Le();break;case 13:ii(o);break;case 19:F($t);break;case 10:ni(o.type);break;case 22:case 23:ii(o),qp(),i!==null&&F(Pa);break;case 24:ni(Ft)}}function Cl(i,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var m=h.next;c=m;do{if((c.tag&i)===i){h=void 0;var b=c.create,k=c.inst;h=b(),k.destroy=h}c=c.next}while(c!==m)}}catch(I){ht(o,o.return,I)}}function Pi(i,o,c){try{var h=o.updateQueue,m=h!==null?h.lastEffect:null;if(m!==null){var b=m.next;h=b;do{if((h.tag&i)===i){var k=h.inst,I=k.destroy;if(I!==void 0){k.destroy=void 0,m=o;var z=c,Q=I;try{Q()}catch(se){ht(m,z,se)}}}h=h.next}while(h!==b)}}catch(se){ht(o,o.return,se)}}function FS(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;try{kE(o,c)}catch(h){ht(i,i.return,h)}}}function $S(i,o,c){c.props=za(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){ht(i,o,h)}}function Rl(i,o){try{var c=i.ref;if(c!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof c=="function"?i.refCleanup=c(h):c.current=h}}catch(m){ht(i,o,m)}}function Rr(i,o){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(m){ht(i,o,m)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(m){ht(i,o,m)}else c.current=null}function HS(i){var o=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(m){ht(i,i.return,m)}}function Em(i,o,c){try{var h=i.stateNode;jP(h,i.type,c,o),h[wn]=o}catch(m){ht(i,i.return,m)}}function GS(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Hi(i.type)||i.tag===4}function Sm(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||GS(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Hi(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function xm(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(i),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=gd));else if(h!==4&&(h===27&&Hi(i.type)&&(c=i.stateNode,o=null),i=i.child,i!==null))for(xm(i,o,c),i=i.sibling;i!==null;)xm(i,o,c),i=i.sibling}function ad(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?c.insertBefore(i,o):c.appendChild(i);else if(h!==4&&(h===27&&Hi(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(ad(i,o,c),i=i.sibling;i!==null;)ad(i,o,c),i=i.sibling}function KS(i){var o=i.stateNode,c=i.memoizedProps;try{for(var h=i.type,m=o.attributes;m.length;)o.removeAttributeNode(m[0]);an(o,h,c),o[dn]=i,o[wn]=c}catch(b){ht(i,i.return,b)}}var si=!1,It=!1,Am=!1,qS=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function mP(i,o){if(i=i.containerInfo,Wm=xd,i=iE(i),Sp(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var m=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{c.nodeType,b.nodeType}catch{c=null;break e}var k=0,I=-1,z=-1,Q=0,se=0,de=i,ne=null;t:for(;;){for(var re;de!==c||m!==0&&de.nodeType!==3||(I=k+m),de!==b||h!==0&&de.nodeType!==3||(z=k+h),de.nodeType===3&&(k+=de.nodeValue.length),(re=de.firstChild)!==null;)ne=de,de=re;for(;;){if(de===i)break t;if(ne===c&&++Q===m&&(I=k),ne===b&&++se===h&&(z=k),(re=de.nextSibling)!==null)break;de=ne,ne=de.parentNode}de=re}c=I===-1||z===-1?null:{start:I,end:z}}else c=null}c=c||{start:0,end:0}}else c=null;for(Zm={focusedElem:i,selectionRange:c},xd=!1,Qt=o;Qt!==null;)if(o=Qt,i=o.child,(o.subtreeFlags&1024)!==0&&i!==null)i.return=o,Qt=i;else for(;Qt!==null;){switch(o=Qt,b=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&b!==null){i=void 0,c=o,m=b.memoizedProps,b=b.memoizedState,h=c.stateNode;try{var je=za(c.type,m,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(je,b),h.__reactInternalSnapshotBeforeUpdate=i}catch(Oe){ht(c,c.return,Oe)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,c=i.nodeType,c===9)Qm(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Qm(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,Qt=i;break}Qt=o.return}}function WS(i,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:Mi(i,c),h&4&&Cl(5,c);break;case 1:if(Mi(i,c),h&4)if(i=c.stateNode,o===null)try{i.componentDidMount()}catch(k){ht(c,c.return,k)}else{var m=za(c.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(m,o,i.__reactInternalSnapshotBeforeUpdate)}catch(k){ht(c,c.return,k)}}h&64&&FS(c),h&512&&Rl(c,c.return);break;case 3:if(Mi(i,c),h&64&&(i=c.updateQueue,i!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{kE(i,o)}catch(k){ht(c,c.return,k)}}break;case 27:o===null&&h&4&&KS(c);case 26:case 5:Mi(i,c),o===null&&h&4&&HS(c),h&512&&Rl(c,c.return);break;case 12:Mi(i,c);break;case 13:Mi(i,c),h&4&&XS(i,c),h&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=AP.bind(null,c),FP(i,c))));break;case 22:if(h=c.memoizedState!==null||si,!h){o=o!==null&&o.memoizedState!==null||It,m=si;var b=It;si=h,(It=o)&&!b?zi(i,c,(c.subtreeFlags&8772)!==0):Mi(i,c),si=m,It=b}break;case 30:break;default:Mi(i,c)}}function ZS(i){var o=i.alternate;o!==null&&(i.alternate=null,ZS(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&rp(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var vt=null,Rn=!1;function li(i,o,c){for(c=c.child;c!==null;)YS(i,o,c),c=c.sibling}function YS(i,o,c){if(Ve&&typeof Ve.onCommitFiberUnmount=="function")try{Ve.onCommitFiberUnmount(Ce,c)}catch{}switch(c.tag){case 26:It||Rr(c,o),li(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:It||Rr(c,o);var h=vt,m=Rn;Hi(c.type)&&(vt=c.stateNode,Rn=!1),li(i,o,c),Ml(c.stateNode),vt=h,Rn=m;break;case 5:It||Rr(c,o);case 6:if(h=vt,m=Rn,vt=null,li(i,o,c),vt=h,Rn=m,vt!==null)if(Rn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(c.stateNode)}catch(b){ht(c,o,b)}else try{vt.removeChild(c.stateNode)}catch(b){ht(c,o,b)}break;case 18:vt!==null&&(Rn?(i=vt,zx(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),Gl(i)):zx(vt,c.stateNode));break;case 4:h=vt,m=Rn,vt=c.stateNode.containerInfo,Rn=!0,li(i,o,c),vt=h,Rn=m;break;case 0:case 11:case 14:case 15:It||Pi(2,c,o),It||Pi(4,c,o),li(i,o,c);break;case 1:It||(Rr(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&$S(c,o,h)),li(i,o,c);break;case 21:li(i,o,c);break;case 22:It=(h=It)||c.memoizedState!==null,li(i,o,c),It=h;break;default:li(i,o,c)}}function XS(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Gl(i)}catch(c){ht(o,o.return,c)}}function gP(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new qS),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new qS),o;default:throw Error(r(435,i.tag))}}function wm(i,o){var c=gP(i);o.forEach(function(h){var m=wP.bind(null,i,h);c.has(h)||(c.add(h),h.then(m,m))})}function jn(i,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var m=c[h],b=i,k=o,I=k;e:for(;I!==null;){switch(I.tag){case 27:if(Hi(I.type)){vt=I.stateNode,Rn=!1;break e}break;case 5:vt=I.stateNode,Rn=!1;break e;case 3:case 4:vt=I.stateNode.containerInfo,Rn=!0;break e}I=I.return}if(vt===null)throw Error(r(160));YS(b,k,m),vt=null,Rn=!1,b=m.alternate,b!==null&&(b.return=null),m.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)QS(o,i),o=o.sibling}var fr=null;function QS(i,o){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:jn(o,i),Pn(i),h&4&&(Pi(3,i,i.return),Cl(3,i),Pi(5,i,i.return));break;case 1:jn(o,i),Pn(i),h&512&&(It||c===null||Rr(c,c.return)),h&64&&si&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var m=fr;if(jn(o,i),Pn(i),h&512&&(It||c===null||Rr(c,c.return)),h&4){var b=c!==null?c.memoizedState:null;if(h=i.memoizedState,c===null)if(h===null)if(i.stateNode===null){e:{h=i.type,c=i.memoizedProps,m=m.ownerDocument||m;t:switch(h){case"title":b=m.getElementsByTagName("title")[0],(!b||b[Qs]||b[dn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=m.createElement(h),m.head.insertBefore(b,m.querySelector("head > title"))),an(b,h,c),b[dn]=i,Yt(b),h=b;break e;case"link":var k=Kx("link","href",m).get(h+(c.href||""));if(k){for(var I=0;I<k.length;I++)if(b=k[I],b.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&b.getAttribute("rel")===(c.rel==null?null:c.rel)&&b.getAttribute("title")===(c.title==null?null:c.title)&&b.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){k.splice(I,1);break t}}b=m.createElement(h),an(b,h,c),m.head.appendChild(b);break;case"meta":if(k=Kx("meta","content",m).get(h+(c.content||""))){for(I=0;I<k.length;I++)if(b=k[I],b.getAttribute("content")===(c.content==null?null:""+c.content)&&b.getAttribute("name")===(c.name==null?null:c.name)&&b.getAttribute("property")===(c.property==null?null:c.property)&&b.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&b.getAttribute("charset")===(c.charSet==null?null:c.charSet)){k.splice(I,1);break t}}b=m.createElement(h),an(b,h,c),m.head.appendChild(b);break;default:throw Error(r(468,h))}b[dn]=i,Yt(b),h=b}i.stateNode=h}else qx(m,i.type,i.stateNode);else i.stateNode=Gx(m,h,i.memoizedProps);else b!==h?(b===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):b.count--,h===null?qx(m,i.type,i.stateNode):Gx(m,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Em(i,i.memoizedProps,c.memoizedProps)}break;case 27:jn(o,i),Pn(i),h&512&&(It||c===null||Rr(c,c.return)),c!==null&&h&4&&Em(i,i.memoizedProps,c.memoizedProps);break;case 5:if(jn(o,i),Pn(i),h&512&&(It||c===null||Rr(c,c.return)),i.flags&32){m=i.stateNode;try{wo(m,"")}catch(re){ht(i,i.return,re)}}h&4&&i.stateNode!=null&&(m=i.memoizedProps,Em(i,m,c!==null?c.memoizedProps:m)),h&1024&&(Am=!0);break;case 6:if(jn(o,i),Pn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(re){ht(i,i.return,re)}}break;case 3:if(_d=null,m=fr,fr=vd(o.containerInfo),jn(o,i),fr=m,Pn(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Gl(o.containerInfo)}catch(re){ht(i,i.return,re)}Am&&(Am=!1,JS(i));break;case 4:h=fr,fr=vd(i.stateNode.containerInfo),jn(o,i),Pn(i),fr=h;break;case 12:jn(o,i),Pn(i);break;case 13:jn(o,i),Pn(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Im=un()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,wm(i,h)));break;case 22:m=i.memoizedState!==null;var z=c!==null&&c.memoizedState!==null,Q=si,se=It;if(si=Q||m,It=se||z,jn(o,i),It=se,si=Q,Pn(i),h&8192)e:for(o=i.stateNode,o._visibility=m?o._visibility&-2:o._visibility|1,m&&(c===null||z||si||It||Ba(i)),c=null,o=i;;){if(o.tag===5||o.tag===26){if(c===null){z=c=o;try{if(b=z.stateNode,m)k=b.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{I=z.stateNode;var de=z.memoizedProps.style,ne=de!=null&&de.hasOwnProperty("display")?de.display:null;I.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(re){ht(z,z.return,re)}}}else if(o.tag===6){if(c===null){z=o;try{z.stateNode.nodeValue=m?"":z.memoizedProps}catch(re){ht(z,z.return,re)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,wm(i,c))));break;case 19:jn(o,i),Pn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,wm(i,h)));break;case 30:break;case 21:break;default:jn(o,i),Pn(i)}}function Pn(i){var o=i.flags;if(o&2){try{for(var c,h=i.return;h!==null;){if(GS(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var m=c.stateNode,b=Sm(i);ad(i,b,m);break;case 5:var k=c.stateNode;c.flags&32&&(wo(k,""),c.flags&=-33);var I=Sm(i);ad(i,I,k);break;case 3:case 4:var z=c.stateNode.containerInfo,Q=Sm(i);xm(i,Q,z);break;default:throw Error(r(161))}}catch(se){ht(i,i.return,se)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function JS(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;JS(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function Mi(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)WS(i,o.alternate,o),o=o.sibling}function Ba(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Pi(4,o,o.return),Ba(o);break;case 1:Rr(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&$S(o,o.return,c),Ba(o);break;case 27:Ml(o.stateNode);case 26:case 5:Rr(o,o.return),Ba(o);break;case 22:o.memoizedState===null&&Ba(o);break;case 30:Ba(o);break;default:Ba(o)}i=i.sibling}}function zi(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,m=i,b=o,k=b.flags;switch(b.tag){case 0:case 11:case 15:zi(m,b,c),Cl(4,b);break;case 1:if(zi(m,b,c),h=b,m=h.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(Q){ht(h,h.return,Q)}if(h=b,m=h.updateQueue,m!==null){var I=h.stateNode;try{var z=m.shared.hiddenCallbacks;if(z!==null)for(m.shared.hiddenCallbacks=null,m=0;m<z.length;m++)RE(z[m],I)}catch(Q){ht(h,h.return,Q)}}c&&k&64&&FS(b),Rl(b,b.return);break;case 27:KS(b);case 26:case 5:zi(m,b,c),c&&h===null&&k&4&&HS(b),Rl(b,b.return);break;case 12:zi(m,b,c);break;case 13:zi(m,b,c),c&&k&4&&XS(m,b);break;case 22:b.memoizedState===null&&zi(m,b,c),Rl(b,b.return);break;case 30:break;default:zi(m,b,c)}o=o.sibling}}function Tm(i,o){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&hl(c))}function Cm(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&hl(i))}function kr(i,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)ex(i,o,c,h),o=o.sibling}function ex(i,o,c,h){var m=o.flags;switch(o.tag){case 0:case 11:case 15:kr(i,o,c,h),m&2048&&Cl(9,o);break;case 1:kr(i,o,c,h);break;case 3:kr(i,o,c,h),m&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&hl(i)));break;case 12:if(m&2048){kr(i,o,c,h),i=o.stateNode;try{var b=o.memoizedProps,k=b.id,I=b.onPostCommit;typeof I=="function"&&I(k,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(z){ht(o,o.return,z)}}else kr(i,o,c,h);break;case 13:kr(i,o,c,h);break;case 23:break;case 22:b=o.stateNode,k=o.alternate,o.memoizedState!==null?b._visibility&2?kr(i,o,c,h):kl(i,o):b._visibility&2?kr(i,o,c,h):(b._visibility|=2,Ho(i,o,c,h,(o.subtreeFlags&10256)!==0)),m&2048&&Tm(k,o);break;case 24:kr(i,o,c,h),m&2048&&Cm(o.alternate,o);break;default:kr(i,o,c,h)}}function Ho(i,o,c,h,m){for(m=m&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var b=i,k=o,I=c,z=h,Q=k.flags;switch(k.tag){case 0:case 11:case 15:Ho(b,k,I,z,m),Cl(8,k);break;case 23:break;case 22:var se=k.stateNode;k.memoizedState!==null?se._visibility&2?Ho(b,k,I,z,m):kl(b,k):(se._visibility|=2,Ho(b,k,I,z,m)),m&&Q&2048&&Tm(k.alternate,k);break;case 24:Ho(b,k,I,z,m),m&&Q&2048&&Cm(k.alternate,k);break;default:Ho(b,k,I,z,m)}o=o.sibling}}function kl(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=i,h=o,m=h.flags;switch(h.tag){case 22:kl(c,h),m&2048&&Tm(h.alternate,h);break;case 24:kl(c,h),m&2048&&Cm(h.alternate,h);break;default:kl(c,h)}o=o.sibling}}var Nl=8192;function Go(i){if(i.subtreeFlags&Nl)for(i=i.child;i!==null;)tx(i),i=i.sibling}function tx(i){switch(i.tag){case 26:Go(i),i.flags&Nl&&i.memoizedState!==null&&tM(fr,i.memoizedState,i.memoizedProps);break;case 5:Go(i);break;case 3:case 4:var o=fr;fr=vd(i.stateNode.containerInfo),Go(i),fr=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Nl,Nl=16777216,Go(i),Nl=o):Go(i));break;default:Go(i)}}function nx(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Il(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Qt=h,ix(h,i)}nx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)rx(i),i=i.sibling}function rx(i){switch(i.tag){case 0:case 11:case 15:Il(i),i.flags&2048&&Pi(9,i,i.return);break;case 3:Il(i);break;case 12:Il(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,od(i)):Il(i);break;default:Il(i)}}function od(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Qt=h,ix(h,i)}nx(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Pi(8,o,o.return),od(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,od(o));break;default:od(o)}i=i.sibling}}function ix(i,o){for(;Qt!==null;){var c=Qt;switch(c.tag){case 0:case 11:case 15:Pi(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:hl(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Qt=h;else e:for(c=i;Qt!==null;){h=Qt;var m=h.sibling,b=h.return;if(ZS(h),h===c){Qt=null;break e}if(m!==null){m.return=b,Qt=m;break e}Qt=b}}}var yP={getCacheForType:function(i){var o=fn(Ft),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c}},vP=typeof WeakMap=="function"?WeakMap:Map,st=0,mt=null,We=null,Je=0,lt=0,Mn=null,Bi=!1,Ko=!1,Rm=!1,ci=0,Rt=0,Vi=0,Va=0,km=0,tr=0,qo=0,Ol=null,kn=null,Nm=!1,Im=0,sd=1/0,ld=null,Ui=null,rn=0,Fi=null,Wo=null,Zo=0,Om=0,Dm=null,ax=null,Dl=0,Lm=null;function zn(){if((st&2)!==0&&Je!==0)return Je&-Je;if(M.T!==null){var i=Po;return i!==0?i:Um()}return E_()}function ox(){tr===0&&(tr=(Je&536870912)===0||nt?y_():536870912);var i=er.current;return i!==null&&(i.flags|=32),tr}function Bn(i,o,c){(i===mt&&(lt===2||lt===9)||i.cancelPendingCommit!==null)&&(Yo(i,0),$i(i,Je,tr,!1)),Xs(i,c),((st&2)===0||i!==mt)&&(i===mt&&((st&2)===0&&(Va|=c),Rt===4&&$i(i,Je,tr,!1)),Nr(i))}function sx(i,o,c){if((st&6)!==0)throw Error(r(327));var h=!c&&(o&124)===0&&(o&i.expiredLanes)===0||Aa(i,o),m=h?EP(i,o):Mm(i,o,!0),b=h;do{if(m===0){Ko&&!h&&$i(i,o,0,!1);break}else{if(c=i.current.alternate,b&&!bP(c)){m=Mm(i,o,!1),b=!1;continue}if(m===2){if(b=o,i.errorRecoveryDisabledLanes&b)var k=0;else k=i.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){o=k;e:{var I=i;m=Ol;var z=I.current.memoizedState.isDehydrated;if(z&&(Yo(I,k).flags|=256),k=Mm(I,k,!1),k!==2){if(Rm&&!z){I.errorRecoveryDisabledLanes|=b,Va|=b,m=4;break e}b=kn,kn=m,b!==null&&(kn===null?kn=b:kn.push.apply(kn,b))}m=k}if(b=!1,m!==2)continue}}if(m===1){Yo(i,0),$i(i,o,0,!0);break}e:{switch(h=i,b=m,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:$i(h,o,tr,!Bi);break e;case 2:kn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(m=Im+300-un(),10<m)){if($i(h,o,tr,!Bi),xa(h,0,!0)!==0)break e;h.timeoutHandle=Px(lx.bind(null,h,c,kn,ld,Nm,o,tr,Va,qo,Bi,b,2,-0,0),m);break e}lx(h,c,kn,ld,Nm,o,tr,Va,qo,Bi,b,0,-0,0)}}break}while(!0);Nr(i)}function lx(i,o,c,h,m,b,k,I,z,Q,se,de,ne,re){if(i.timeoutHandle=-1,de=o.subtreeFlags,(de&8192||(de&16785408)===16785408)&&(Vl={stylesheets:null,count:0,unsuspend:eM},tx(o),de=nM(),de!==null)){i.cancelPendingCommit=de(mx.bind(null,i,o,b,c,h,m,k,I,z,se,1,ne,re)),$i(i,b,k,!Q);return}mx(i,o,b,c,h,m,k,I,z)}function bP(i){for(var o=i;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var m=c[h],b=m.getSnapshot;m=m.value;try{if(!Dn(b(),m))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function $i(i,o,c,h){o&=~km,o&=~Va,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var m=o;0<m;){var b=31-pt(m),k=1<<b;h[b]=-1,m&=~k}c!==0&&b_(i,c,o)}function cd(){return(st&6)===0?(Ll(0),!1):!0}function jm(){if(We!==null){if(lt===0)var i=We.return;else i=We,ti=La=null,Qp(i),Fo=null,Al=0,i=We;for(;i!==null;)US(i.alternate,i),i=i.return;We=null}}function Yo(i,o){var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,MP(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),jm(),mt=i,We=c=Qr(i.current,null),Je=o,lt=0,Mn=null,Bi=!1,Ko=Aa(i,o),Rm=!1,qo=tr=km=Va=Vi=Rt=0,kn=Ol=null,Nm=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var m=31-pt(h),b=1<<m;o|=i[m],h&=~b}return ci=o,Iu(),c}function cx(i,o){Ge=null,M.H=Yu,o===ml||o===Vu?(o=TE(),lt=3):o===xE?(o=TE(),lt=4):lt=o===CS?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Mn=o,We===null&&(Rt=1,td(i,Yn(o,i.current)))}function ux(){var i=M.H;return M.H=Yu,i===null?Yu:i}function dx(){var i=M.A;return M.A=yP,i}function Pm(){Rt=4,Bi||(Je&4194048)!==Je&&er.current!==null||(Ko=!0),(Vi&134217727)===0&&(Va&134217727)===0||mt===null||$i(mt,Je,tr,!1)}function Mm(i,o,c){var h=st;st|=2;var m=ux(),b=dx();(mt!==i||Je!==o)&&(ld=null,Yo(i,o)),o=!1;var k=Rt;e:do try{if(lt!==0&&We!==null){var I=We,z=Mn;switch(lt){case 8:jm(),k=6;break e;case 3:case 2:case 9:case 6:er.current===null&&(o=!0);var Q=lt;if(lt=0,Mn=null,Xo(i,I,z,Q),c&&Ko){k=0;break e}break;default:Q=lt,lt=0,Mn=null,Xo(i,I,z,Q)}}_P(),k=Rt;break}catch(se){cx(i,se)}while(!0);return o&&i.shellSuspendCounter++,ti=La=null,st=h,M.H=m,M.A=b,We===null&&(mt=null,Je=0,Iu()),k}function _P(){for(;We!==null;)fx(We)}function EP(i,o){var c=st;st|=2;var h=ux(),m=dx();mt!==i||Je!==o?(ld=null,sd=un()+500,Yo(i,o)):Ko=Aa(i,o);e:do try{if(lt!==0&&We!==null){o=We;var b=Mn;t:switch(lt){case 1:lt=0,Mn=null,Xo(i,o,b,1);break;case 2:case 9:if(AE(b)){lt=0,Mn=null,hx(o);break}o=function(){lt!==2&<!==9||mt!==i||(lt=7),Nr(i)},b.then(o,o);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:AE(b)?(lt=0,Mn=null,hx(o)):(lt=0,Mn=null,Xo(i,o,b,7));break;case 5:var k=null;switch(We.tag){case 26:k=We.memoizedState;case 5:case 27:var I=We;if(!k||Wx(k)){lt=0,Mn=null;var z=I.sibling;if(z!==null)We=z;else{var Q=I.return;Q!==null?(We=Q,ud(Q)):We=null}break t}}lt=0,Mn=null,Xo(i,o,b,5);break;case 6:lt=0,Mn=null,Xo(i,o,b,6);break;case 8:jm(),Rt=6;break e;default:throw Error(r(462))}}SP();break}catch(se){cx(i,se)}while(!0);return ti=La=null,M.H=h,M.A=m,st=c,We!==null?0:(mt=null,Je=0,Iu(),Rt)}function SP(){for(;We!==null&&!Ai();)fx(We)}function fx(i){var o=BS(i.alternate,i,ci);i.memoizedProps=i.pendingProps,o===null?ud(i):We=o}function hx(i){var o=i,c=o.alternate;switch(o.tag){case 15:case 0:o=DS(c,o,o.pendingProps,o.type,void 0,Je);break;case 11:o=DS(c,o,o.pendingProps,o.type.render,o.ref,Je);break;case 5:Qp(o);default:US(c,o),o=We=pE(o,ci),o=BS(c,o,ci)}i.memoizedProps=i.pendingProps,o===null?ud(i):We=o}function Xo(i,o,c,h){ti=La=null,Qp(o),Fo=null,Al=0;var m=o.return;try{if(dP(i,m,o,c,Je)){Rt=1,td(i,Yn(c,i.current)),We=null;return}}catch(b){if(m!==null)throw We=m,b;Rt=1,td(i,Yn(c,i.current)),We=null;return}o.flags&32768?(nt||h===1?i=!0:Ko||(Je&536870912)!==0?i=!1:(Bi=i=!0,(h===2||h===9||h===3||h===6)&&(h=er.current,h!==null&&h.tag===13&&(h.flags|=16384))),px(o,i)):ud(o)}function ud(i){var o=i;do{if((o.flags&32768)!==0){px(o,Bi);return}i=o.return;var c=hP(o.alternate,o,ci);if(c!==null){We=c;return}if(o=o.sibling,o!==null){We=o;return}We=o=i}while(o!==null);Rt===0&&(Rt=5)}function px(i,o){do{var c=pP(i.alternate,i);if(c!==null){c.flags&=32767,We=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){We=i;return}We=i=c}while(i!==null);Rt=6,We=null}function mx(i,o,c,h,m,b,k,I,z){i.cancelPendingCommit=null;do dd();while(rn!==0);if((st&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=Cp,ej(i,c,b,k,I,z),i===mt&&(We=mt=null,Je=0),Wo=o,Fi=i,Zo=c,Om=b,Dm=m,ax=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,TP(ee,function(){return _x(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=M.T,M.T=null,m=X.p,X.p=2,k=st,st|=4;try{mP(i,o,c)}finally{st=k,X.p=m,M.T=h}}rn=1,gx(),yx(),vx()}}function gx(){if(rn===1){rn=0;var i=Fi,o=Wo,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=M.T,M.T=null;var h=X.p;X.p=2;var m=st;st|=4;try{QS(o,i);var b=Zm,k=iE(i.containerInfo),I=b.focusedElem,z=b.selectionRange;if(k!==I&&I&&I.ownerDocument&&rE(I.ownerDocument.documentElement,I)){if(z!==null&&Sp(I)){var Q=z.start,se=z.end;if(se===void 0&&(se=Q),"selectionStart"in I)I.selectionStart=Q,I.selectionEnd=Math.min(se,I.value.length);else{var de=I.ownerDocument||document,ne=de&&de.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),je=I.textContent.length,Oe=Math.min(z.start,je),ft=z.end===void 0?Oe:Math.min(z.end,je);!re.extend&&Oe>ft&&(k=ft,ft=Oe,Oe=k);var K=nE(I,Oe),U=nE(I,ft);if(K&&U&&(re.rangeCount!==1||re.anchorNode!==K.node||re.anchorOffset!==K.offset||re.focusNode!==U.node||re.focusOffset!==U.offset)){var Y=de.createRange();Y.setStart(K.node,K.offset),re.removeAllRanges(),Oe>ft?(re.addRange(Y),re.extend(U.node,U.offset)):(Y.setEnd(U.node,U.offset),re.addRange(Y))}}}}for(de=[],re=I;re=re.parentNode;)re.nodeType===1&&de.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof I.focus=="function"&&I.focus(),I=0;I<de.length;I++){var ue=de[I];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}xd=!!Wm,Zm=Wm=null}finally{st=m,X.p=h,M.T=c}}i.current=o,rn=2}}function yx(){if(rn===2){rn=0;var i=Fi,o=Wo,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=M.T,M.T=null;var h=X.p;X.p=2;var m=st;st|=4;try{WS(i,o.alternate,o)}finally{st=m,X.p=h,M.T=c}}rn=3}}function vx(){if(rn===4||rn===3){rn=0,Sa();var i=Fi,o=Wo,c=Zo,h=ax;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?rn=5:(rn=0,Wo=Fi=null,bx(i,i.pendingLanes));var m=i.pendingLanes;if(m===0&&(Ui=null),tp(c),o=o.stateNode,Ve&&typeof Ve.onCommitFiberRoot=="function")try{Ve.onCommitFiberRoot(Ce,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=M.T,m=X.p,X.p=2,M.T=null;try{for(var b=i.onRecoverableError,k=0;k<h.length;k++){var I=h[k];b(I.value,{componentStack:I.stack})}}finally{M.T=o,X.p=m}}(Zo&3)!==0&&dd(),Nr(i),m=i.pendingLanes,(c&4194090)!==0&&(m&42)!==0?i===Lm?Dl++:(Dl=0,Lm=i):Dl=0,Ll(0)}}function bx(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,hl(o)))}function dd(i){return gx(),yx(),vx(),_x()}function _x(){if(rn!==5)return!1;var i=Fi,o=Om;Om=0;var c=tp(Zo),h=M.T,m=X.p;try{X.p=32>c?32:c,M.T=null,c=Dm,Dm=null;var b=Fi,k=Zo;if(rn=0,Wo=Fi=null,Zo=0,(st&6)!==0)throw Error(r(331));var I=st;if(st|=4,rx(b.current),ex(b,b.current,k,c),st=I,Ll(0,!1),Ve&&typeof Ve.onPostCommitFiberRoot=="function")try{Ve.onPostCommitFiberRoot(Ce,b)}catch{}return!0}finally{X.p=m,M.T=h,bx(i,o)}}function Ex(i,o,c){o=Yn(c,o),o=fm(i.stateNode,o,2),i=Oi(i,o,2),i!==null&&(Xs(i,2),Nr(i))}function ht(i,o,c){if(i.tag===3)Ex(i,i,c);else for(;o!==null;){if(o.tag===3){Ex(o,i,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Ui===null||!Ui.has(h))){i=Yn(c,i),c=wS(2),h=Oi(o,c,2),h!==null&&(TS(c,h,o,i),Xs(h,2),Nr(h));break}}o=o.return}}function zm(i,o,c){var h=i.pingCache;if(h===null){h=i.pingCache=new vP;var m=new Set;h.set(o,m)}else m=h.get(o),m===void 0&&(m=new Set,h.set(o,m));m.has(c)||(Rm=!0,m.add(c),i=xP.bind(null,i,o,c),o.then(i,i))}function xP(i,o,c){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,mt===i&&(Je&c)===c&&(Rt===4||Rt===3&&(Je&62914560)===Je&&300>un()-Im?(st&2)===0&&Yo(i,0):km|=c,qo===Je&&(qo=0)),Nr(i)}function Sx(i,o){o===0&&(o=v_()),i=Oo(i,o),i!==null&&(Xs(i,o),Nr(i))}function AP(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),Sx(i,c)}function wP(i,o){var c=0;switch(i.tag){case 13:var h=i.stateNode,m=i.memoizedState;m!==null&&(c=m.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),Sx(i,c)}function TP(i,o){return Zt(i,o)}var fd=null,Qo=null,Bm=!1,hd=!1,Vm=!1,Ua=0;function Nr(i){i!==Qo&&i.next===null&&(Qo===null?fd=Qo=i:Qo=Qo.next=i),hd=!0,Bm||(Bm=!0,RP())}function Ll(i,o){if(!Vm&&hd){Vm=!0;do for(var c=!1,h=fd;h!==null;){if(i!==0){var m=h.pendingLanes;if(m===0)var b=0;else{var k=h.suspendedLanes,I=h.pingedLanes;b=(1<<31-pt(42|i)+1)-1,b&=m&~(k&~I),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(c=!0,Tx(h,b))}else b=Je,b=xa(h,h===mt?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||Aa(h,b)||(c=!0,Tx(h,b));h=h.next}while(c);Vm=!1}}function CP(){xx()}function xx(){hd=Bm=!1;var i=0;Ua!==0&&(PP()&&(i=Ua),Ua=0);for(var o=un(),c=null,h=fd;h!==null;){var m=h.next,b=Ax(h,o);b===0?(h.next=null,c===null?fd=m:c.next=m,m===null&&(Qo=c)):(c=h,(i!==0||(b&3)!==0)&&(hd=!0)),h=m}Ll(i)}function Ax(i,o){for(var c=i.suspendedLanes,h=i.pingedLanes,m=i.expirationTimes,b=i.pendingLanes&-62914561;0<b;){var k=31-pt(b),I=1<<k,z=m[k];z===-1?((I&c)===0||(I&h)!==0)&&(m[k]=bu(I,o)):z<=o&&(i.expiredLanes|=I),b&=~I}if(o=mt,c=Je,c=xa(i,i===o?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,c===0||i===o&&(lt===2||lt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&An(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Aa(i,c)){if(o=c&-c,o===i.callbackPriority)return o;switch(h!==null&&An(h),tp(c)){case 2:case 8:c=V;break;case 32:c=ee;break;case 268435456:c=Se;break;default:c=ee}return h=wx.bind(null,i),c=Zt(c,h),i.callbackPriority=o,i.callbackNode=c,o}return h!==null&&h!==null&&An(h),i.callbackPriority=2,i.callbackNode=null,2}function wx(i,o){if(rn!==0&&rn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(dd()&&i.callbackNode!==c)return null;var h=Je;return h=xa(i,i===mt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(sx(i,h,o),Ax(i,un()),i.callbackNode!=null&&i.callbackNode===c?wx.bind(null,i):null)}function Tx(i,o){if(dd())return null;sx(i,o,!0)}function RP(){zP(function(){(st&6)!==0?Zt(Ys,CP):xx()})}function Um(){return Ua===0&&(Ua=y_()),Ua}function Cx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Au(""+i)}function Rx(i,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,i.id&&c.setAttribute("form",i.id),o.parentNode.insertBefore(c,o),i=new FormData(i),c.parentNode.removeChild(c),i}function kP(i,o,c,h,m){if(o==="submit"&&c&&c.stateNode===m){var b=Cx((m[wn]||null).action),k=h.submitter;k&&(o=(o=k[wn]||null)?Cx(o.formAction):k.getAttribute("formAction"),o!==null&&(b=o,k=null));var I=new Ru("action","action",null,h,m);i.push({event:I,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Ua!==0){var z=k?Rx(m,k):new FormData(m);sm(c,{pending:!0,data:z,method:m.method,action:b},null,z)}}else typeof b=="function"&&(I.preventDefault(),z=k?Rx(m,k):new FormData(m),sm(c,{pending:!0,data:z,method:m.method,action:b},b,z))},currentTarget:m}]})}}for(var Fm=0;Fm<Tp.length;Fm++){var $m=Tp[Fm],NP=$m.toLowerCase(),IP=$m[0].toUpperCase()+$m.slice(1);dr(NP,"on"+IP)}dr(sE,"onAnimationEnd"),dr(lE,"onAnimationIteration"),dr(cE,"onAnimationStart"),dr("dblclick","onDoubleClick"),dr("focusin","onFocus"),dr("focusout","onBlur"),dr(Wj,"onTransitionRun"),dr(Zj,"onTransitionStart"),dr(Yj,"onTransitionCancel"),dr(uE,"onTransitionEnd"),So("onMouseEnter",["mouseout","mouseover"]),So("onMouseLeave",["mouseout","mouseover"]),So("onPointerEnter",["pointerout","pointerover"]),So("onPointerLeave",["pointerout","pointerover"]),wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jl="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(" "),OP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jl));function kx(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],m=h.event;h=h.listeners;e:{var b=void 0;if(o)for(var k=h.length-1;0<=k;k--){var I=h[k],z=I.instance,Q=I.currentTarget;if(I=I.listener,z!==b&&m.isPropagationStopped())break e;b=I,m.currentTarget=Q;try{b(m)}catch(se){ed(se)}m.currentTarget=null,b=z}else for(k=0;k<h.length;k++){if(I=h[k],z=I.instance,Q=I.currentTarget,I=I.listener,z!==b&&m.isPropagationStopped())break e;b=I,m.currentTarget=Q;try{b(m)}catch(se){ed(se)}m.currentTarget=null,b=z}}}}function Ze(i,o){var c=o[np];c===void 0&&(c=o[np]=new Set);var h=i+"__bubble";c.has(h)||(Nx(o,i,2,!1),c.add(h))}function Hm(i,o,c){var h=0;o&&(h|=4),Nx(c,i,h,o)}var pd="_reactListening"+Math.random().toString(36).slice(2);function Gm(i){if(!i[pd]){i[pd]=!0,x_.forEach(function(c){c!=="selectionchange"&&(OP.has(c)||Hm(c,!1,i),Hm(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[pd]||(o[pd]=!0,Hm("selectionchange",!1,o))}}function Nx(i,o,c,h){switch(eA(o)){case 2:var m=aM;break;case 8:m=oM;break;default:m=ag}c=m.bind(null,o,c,i),m=void 0,!hp||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),h?m!==void 0?i.addEventListener(o,c,{capture:!0,passive:m}):i.addEventListener(o,c,!0):m!==void 0?i.addEventListener(o,c,{passive:m}):i.addEventListener(o,c,!1)}function Km(i,o,c,h,m){var b=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var I=h.stateNode.containerInfo;if(I===m)break;if(k===4)for(k=h.return;k!==null;){var z=k.tag;if((z===3||z===4)&&k.stateNode.containerInfo===m)return;k=k.return}for(;I!==null;){if(k=bo(I),k===null)return;if(z=k.tag,z===5||z===6||z===26||z===27){h=b=k;continue e}I=I.parentNode}}h=h.return}M_(function(){var Q=b,se=dp(c),de=[];e:{var ne=dE.get(i);if(ne!==void 0){var re=Ru,je=i;switch(i){case"keypress":if(Tu(c)===0)break e;case"keydown":case"keyup":re=Tj;break;case"focusin":je="focus",re=yp;break;case"focusout":je="blur",re=yp;break;case"beforeblur":case"afterblur":re=yp;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":re=V_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=pj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=kj;break;case sE:case lE:case cE:re=yj;break;case uE:re=Ij;break;case"scroll":case"scrollend":re=fj;break;case"wheel":re=Dj;break;case"copy":case"cut":case"paste":re=bj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=F_;break;case"toggle":case"beforetoggle":re=jj}var Oe=(o&4)!==0,ft=!Oe&&(i==="scroll"||i==="scrollend"),K=Oe?ne!==null?ne+"Capture":null:ne;Oe=[];for(var U=Q,Y;U!==null;){var ue=U;if(Y=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||Y===null||K===null||(ue=el(U,K),ue!=null&&Oe.push(Pl(U,ue,Y))),ft)break;U=U.return}0<Oe.length&&(ne=new re(ne,je,null,c,se),de.push({event:ne,listeners:Oe}))}}if((o&7)===0){e:{if(ne=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",ne&&c!==up&&(je=c.relatedTarget||c.fromElement)&&(bo(je)||je[vo]))break e;if((re||ne)&&(ne=se.window===se?se:(ne=se.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(je=c.relatedTarget||c.toElement,re=Q,je=je?bo(je):null,je!==null&&(ft=s(je),Oe=je.tag,je!==ft||Oe!==5&&Oe!==27&&Oe!==6)&&(je=null)):(re=null,je=Q),re!==je)){if(Oe=V_,ue="onMouseLeave",K="onMouseEnter",U="mouse",(i==="pointerout"||i==="pointerover")&&(Oe=F_,ue="onPointerLeave",K="onPointerEnter",U="pointer"),ft=re==null?ne:Js(re),Y=je==null?ne:Js(je),ne=new Oe(ue,U+"leave",re,c,se),ne.target=ft,ne.relatedTarget=Y,ue=null,bo(se)===Q&&(Oe=new Oe(K,U+"enter",je,c,se),Oe.target=Y,Oe.relatedTarget=ft,ue=Oe),ft=ue,re&&je)t:{for(Oe=re,K=je,U=0,Y=Oe;Y;Y=Jo(Y))U++;for(Y=0,ue=K;ue;ue=Jo(ue))Y++;for(;0<U-Y;)Oe=Jo(Oe),U--;for(;0<Y-U;)K=Jo(K),Y--;for(;U--;){if(Oe===K||K!==null&&Oe===K.alternate)break t;Oe=Jo(Oe),K=Jo(K)}Oe=null}else Oe=null;re!==null&&Ix(de,ne,re,Oe,!1),je!==null&&ft!==null&&Ix(de,ft,je,Oe,!0)}}e:{if(ne=Q?Js(Q):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var Ae=Y_;else if(W_(ne))if(X_)Ae=Gj;else{Ae=$j;var qe=Fj}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?Q&&cp(Q.elementType)&&(Ae=Y_):Ae=Hj;if(Ae&&(Ae=Ae(i,Q))){Z_(de,Ae,c,se);break e}qe&&qe(i,ne,Q),i==="focusout"&&Q&&ne.type==="number"&&Q.memoizedProps.value!=null&&lp(ne,"number",ne.value)}switch(qe=Q?Js(Q):window,i){case"focusin":(W_(qe)||qe.contentEditable==="true")&&(ko=qe,xp=Q,ll=null);break;case"focusout":ll=xp=ko=null;break;case"mousedown":Ap=!0;break;case"contextmenu":case"mouseup":case"dragend":Ap=!1,aE(de,c,se);break;case"selectionchange":if(qj)break;case"keydown":case"keyup":aE(de,c,se)}var ke;if(bp)e:{switch(i){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Ro?K_(i,c)&&(De="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(De="onCompositionStart");De&&($_&&c.locale!=="ko"&&(Ro||De!=="onCompositionStart"?De==="onCompositionEnd"&&Ro&&(ke=z_()):(Ri=se,pp="value"in Ri?Ri.value:Ri.textContent,Ro=!0)),qe=md(Q,De),0<qe.length&&(De=new U_(De,i,null,c,se),de.push({event:De,listeners:qe}),ke?De.data=ke:(ke=q_(c),ke!==null&&(De.data=ke)))),(ke=Mj?zj(i,c):Bj(i,c))&&(De=md(Q,"onBeforeInput"),0<De.length&&(qe=new U_("onBeforeInput","beforeinput",null,c,se),de.push({event:qe,listeners:De}),qe.data=ke)),kP(de,i,Q,c,se)}kx(de,o)})}function Pl(i,o,c){return{instance:i,listener:o,currentTarget:c}}function md(i,o){for(var c=o+"Capture",h=[];i!==null;){var m=i,b=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||b===null||(m=el(i,c),m!=null&&h.unshift(Pl(i,m,b)),m=el(i,o),m!=null&&h.push(Pl(i,m,b))),i.tag===3)return h;i=i.return}return[]}function Jo(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Ix(i,o,c,h,m){for(var b=o._reactName,k=[];c!==null&&c!==h;){var I=c,z=I.alternate,Q=I.stateNode;if(I=I.tag,z!==null&&z===h)break;I!==5&&I!==26&&I!==27||Q===null||(z=Q,m?(Q=el(c,b),Q!=null&&k.unshift(Pl(c,Q,z))):m||(Q=el(c,b),Q!=null&&k.push(Pl(c,Q,z)))),c=c.return}k.length!==0&&i.push({event:o,listeners:k})}var DP=/\r\n?/g,LP=/\u0000|\uFFFD/g;function Ox(i){return(typeof i=="string"?i:""+i).replace(DP,`
|
|
50
|
-
`).replace(LP,"")}function Dx(i,o){return o=Ox(o),Ox(i)===o}function gd(){}function dt(i,o,c,h,m,b){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||wo(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&wo(i,""+h);break;case"className":Eu(i,"class",h);break;case"tabIndex":Eu(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Eu(i,c,h);break;case"style":j_(i,h,b);break;case"data":if(o!=="object"){Eu(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Au(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.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 b=="function"&&(c==="formAction"?(o!=="input"&&dt(i,o,"name",m.name,m,null),dt(i,o,"formEncType",m.formEncType,m,null),dt(i,o,"formMethod",m.formMethod,m,null),dt(i,o,"formTarget",m.formTarget,m,null)):(dt(i,o,"encType",m.encType,m,null),dt(i,o,"method",m.method,m,null),dt(i,o,"target",m.target,m,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Au(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=gd);break;case"onScroll":h!=null&&Ze("scroll",i);break;case"onScrollEnd":h!=null&&Ze("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=Au(""+h),i.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":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":Ze("beforetoggle",i),Ze("toggle",i),_u(i,"popover",h);break;case"xlinkActuate":Yr(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Yr(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Yr(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Yr(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Yr(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Yr(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Yr(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Yr(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Yr(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":_u(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=uj.get(c)||c,_u(i,c,h))}}function qm(i,o,c,h,m,b){switch(c){case"style":j_(i,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?wo(i,h):(typeof h=="number"||typeof h=="bigint")&&wo(i,""+h);break;case"onScroll":h!=null&&Ze("scroll",i);break;case"onScrollEnd":h!=null&&Ze("scrollend",i);break;case"onClick":h!=null&&(i.onclick=gd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!A_.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(m=c.endsWith("Capture"),o=c.slice(2,m?c.length-7:void 0),b=i[wn]||null,b=b!=null?b[c]:null,typeof b=="function"&&i.removeEventListener(o,b,m),typeof h=="function")){typeof b!="function"&&b!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,m);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):_u(i,c,h)}}}function an(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",i),Ze("load",i);var h=!1,m=!1,b;for(b in c)if(c.hasOwnProperty(b)){var k=c[b];if(k!=null)switch(b){case"src":h=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:dt(i,o,b,k,c,null)}}m&&dt(i,o,"srcSet",c.srcSet,c,null),h&&dt(i,o,"src",c.src,c,null);return;case"input":Ze("invalid",i);var I=b=k=m=null,z=null,Q=null;for(h in c)if(c.hasOwnProperty(h)){var se=c[h];if(se!=null)switch(h){case"name":m=se;break;case"type":k=se;break;case"checked":z=se;break;case"defaultChecked":Q=se;break;case"value":b=se;break;case"defaultValue":I=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:dt(i,o,h,se,c,null)}}I_(i,b,I,z,Q,k,m,!1),Su(i);return;case"select":Ze("invalid",i),h=k=b=null;for(m in c)if(c.hasOwnProperty(m)&&(I=c[m],I!=null))switch(m){case"value":b=I;break;case"defaultValue":k=I;break;case"multiple":h=I;default:dt(i,o,m,I,c,null)}o=b,c=k,i.multiple=!!h,o!=null?Ao(i,!!h,o,!1):c!=null&&Ao(i,!!h,c,!0);return;case"textarea":Ze("invalid",i),b=m=h=null;for(k in c)if(c.hasOwnProperty(k)&&(I=c[k],I!=null))switch(k){case"value":h=I;break;case"defaultValue":m=I;break;case"children":b=I;break;case"dangerouslySetInnerHTML":if(I!=null)throw Error(r(91));break;default:dt(i,o,k,I,c,null)}D_(i,h,m,b),Su(i);return;case"option":for(z in c)if(c.hasOwnProperty(z)&&(h=c[z],h!=null))switch(z){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:dt(i,o,z,h,c,null)}return;case"dialog":Ze("beforetoggle",i),Ze("toggle",i),Ze("cancel",i),Ze("close",i);break;case"iframe":case"object":Ze("load",i);break;case"video":case"audio":for(h=0;h<jl.length;h++)Ze(jl[h],i);break;case"image":Ze("error",i),Ze("load",i);break;case"details":Ze("toggle",i);break;case"embed":case"source":case"link":Ze("error",i),Ze("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in c)if(c.hasOwnProperty(Q)&&(h=c[Q],h!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:dt(i,o,Q,h,c,null)}return;default:if(cp(o)){for(se in c)c.hasOwnProperty(se)&&(h=c[se],h!==void 0&&qm(i,o,se,h,c,void 0));return}}for(I in c)c.hasOwnProperty(I)&&(h=c[I],h!=null&&dt(i,o,I,h,c,null))}function jP(i,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,b=null,k=null,I=null,z=null,Q=null,se=null;for(re in c){var de=c[re];if(c.hasOwnProperty(re)&&de!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":z=de;default:h.hasOwnProperty(re)||dt(i,o,re,null,h,de)}}for(var ne in h){var re=h[ne];if(de=c[ne],h.hasOwnProperty(ne)&&(re!=null||de!=null))switch(ne){case"type":b=re;break;case"name":m=re;break;case"checked":Q=re;break;case"defaultChecked":se=re;break;case"value":k=re;break;case"defaultValue":I=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,o));break;default:re!==de&&dt(i,o,ne,re,h,de)}}sp(i,k,I,z,Q,se,b,m);return;case"select":re=k=I=ne=null;for(b in c)if(z=c[b],c.hasOwnProperty(b)&&z!=null)switch(b){case"value":break;case"multiple":re=z;default:h.hasOwnProperty(b)||dt(i,o,b,null,h,z)}for(m in h)if(b=h[m],z=c[m],h.hasOwnProperty(m)&&(b!=null||z!=null))switch(m){case"value":ne=b;break;case"defaultValue":I=b;break;case"multiple":k=b;default:b!==z&&dt(i,o,m,b,h,z)}o=I,c=k,h=re,ne!=null?Ao(i,!!c,ne,!1):!!h!=!!c&&(o!=null?Ao(i,!!c,o,!0):Ao(i,!!c,c?[]:"",!1));return;case"textarea":re=ne=null;for(I in c)if(m=c[I],c.hasOwnProperty(I)&&m!=null&&!h.hasOwnProperty(I))switch(I){case"value":break;case"children":break;default:dt(i,o,I,null,h,m)}for(k in h)if(m=h[k],b=c[k],h.hasOwnProperty(k)&&(m!=null||b!=null))switch(k){case"value":ne=m;break;case"defaultValue":re=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==b&&dt(i,o,k,m,h,b)}O_(i,ne,re);return;case"option":for(var je in c)if(ne=c[je],c.hasOwnProperty(je)&&ne!=null&&!h.hasOwnProperty(je))switch(je){case"selected":i.selected=!1;break;default:dt(i,o,je,null,h,ne)}for(z in h)if(ne=h[z],re=c[z],h.hasOwnProperty(z)&&ne!==re&&(ne!=null||re!=null))switch(z){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:dt(i,o,z,ne,h,re)}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 Oe in c)ne=c[Oe],c.hasOwnProperty(Oe)&&ne!=null&&!h.hasOwnProperty(Oe)&&dt(i,o,Oe,null,h,ne);for(Q in h)if(ne=h[Q],re=c[Q],h.hasOwnProperty(Q)&&ne!==re&&(ne!=null||re!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:dt(i,o,Q,ne,h,re)}return;default:if(cp(o)){for(var ft in c)ne=c[ft],c.hasOwnProperty(ft)&&ne!==void 0&&!h.hasOwnProperty(ft)&&qm(i,o,ft,void 0,h,ne);for(se in h)ne=h[se],re=c[se],!h.hasOwnProperty(se)||ne===re||ne===void 0&&re===void 0||qm(i,o,se,ne,h,re);return}}for(var K in c)ne=c[K],c.hasOwnProperty(K)&&ne!=null&&!h.hasOwnProperty(K)&&dt(i,o,K,null,h,ne);for(de in h)ne=h[de],re=c[de],!h.hasOwnProperty(de)||ne===re||ne==null&&re==null||dt(i,o,de,ne,h,re)}var Wm=null,Zm=null;function yd(i){return i.nodeType===9?i:i.ownerDocument}function Lx(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jx(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Ym(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Xm=null;function PP(){var i=window.event;return i&&i.type==="popstate"?i===Xm?!1:(Xm=i,!0):(Xm=null,!1)}var Px=typeof setTimeout=="function"?setTimeout:void 0,MP=typeof clearTimeout=="function"?clearTimeout:void 0,Mx=typeof Promise=="function"?Promise:void 0,zP=typeof queueMicrotask=="function"?queueMicrotask:typeof Mx<"u"?function(i){return Mx.resolve(null).then(i).catch(BP)}:Px;function BP(i){setTimeout(function(){throw i})}function Hi(i){return i==="head"}function zx(i,o){var c=o,h=0,m=0;do{var b=c.nextSibling;if(i.removeChild(c),b&&b.nodeType===8)if(c=b.data,c==="/$"){if(0<h&&8>h){c=h;var k=i.ownerDocument;if(c&1&&Ml(k.documentElement),c&2&&Ml(k.body),c&4)for(c=k.head,Ml(c),k=c.firstChild;k;){var I=k.nextSibling,z=k.nodeName;k[Qs]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&k.rel.toLowerCase()==="stylesheet"||c.removeChild(k),k=I}}if(m===0){i.removeChild(b),Gl(o);return}m--}else c==="$"||c==="$?"||c==="$!"?m++:h=c.charCodeAt(0)-48;else h=0;c=b}while(c);Gl(o)}function Qm(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Qm(c),rp(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function VP(i,o,c,h){for(;i.nodeType===1;){var m=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Qs])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(b=i.getAttribute("rel"),b==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(b!==m.rel||i.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||i.getAttribute("title")!==(m.title==null?null:m.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(b=i.getAttribute("src"),(b!==(m.src==null?null:m.src)||i.getAttribute("type")!==(m.type==null?null:m.type)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&b&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var b=m.name==null?null:""+m.name;if(m.type==="hidden"&&i.getAttribute("name")===b)return i}else return i;if(i=hr(i.nextSibling),i===null)break}return null}function UP(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=hr(i.nextSibling),i===null))return null;return i}function Jm(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function FP(i,o){var c=i.ownerDocument;if(i.data!=="$?"||c.readyState==="complete")o();else{var h=function(){o(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function hr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}var eg=null;function Bx(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function Vx(i,o,c){switch(o=yd(c),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Ml(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);rp(i)}var nr=new Map,Ux=new Set;function vd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var ui=X.d;X.d={f:$P,r:HP,D:GP,C:KP,L:qP,m:WP,X:YP,S:ZP,M:XP};function $P(){var i=ui.f(),o=cd();return i||o}function HP(i){var o=_o(i);o!==null&&o.tag===5&&o.type==="form"?sS(o):ui.r(i)}var es=typeof document>"u"?null:document;function Fx(i,o,c){var h=es;if(h&&typeof o=="string"&&o){var m=Zn(o);m='link[rel="'+i+'"][href="'+m+'"]',typeof c=="string"&&(m+='[crossorigin="'+c+'"]'),Ux.has(m)||(Ux.add(m),i={rel:i,crossOrigin:c,href:o},h.querySelector(m)===null&&(o=h.createElement("link"),an(o,"link",i),Yt(o),h.head.appendChild(o)))}}function GP(i){ui.D(i),Fx("dns-prefetch",i,null)}function KP(i,o){ui.C(i,o),Fx("preconnect",i,o)}function qP(i,o,c){ui.L(i,o,c);var h=es;if(h&&i&&o){var m='link[rel="preload"][as="'+Zn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(m+='[imagesrcset="'+Zn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(m+='[imagesizes="'+Zn(c.imageSizes)+'"]')):m+='[href="'+Zn(i)+'"]';var b=m;switch(o){case"style":b=ts(i);break;case"script":b=ns(i)}nr.has(b)||(i=p({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),nr.set(b,i),h.querySelector(m)!==null||o==="style"&&h.querySelector(zl(b))||o==="script"&&h.querySelector(Bl(b))||(o=h.createElement("link"),an(o,"link",i),Yt(o),h.head.appendChild(o)))}}function WP(i,o){ui.m(i,o);var c=es;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",m='link[rel="modulepreload"][as="'+Zn(h)+'"][href="'+Zn(i)+'"]',b=m;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=ns(i)}if(!nr.has(b)&&(i=p({rel:"modulepreload",href:i},o),nr.set(b,i),c.querySelector(m)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Bl(b)))return}h=c.createElement("link"),an(h,"link",i),Yt(h),c.head.appendChild(h)}}}function ZP(i,o,c){ui.S(i,o,c);var h=es;if(h&&i){var m=Eo(h).hoistableStyles,b=ts(i);o=o||"default";var k=m.get(b);if(!k){var I={loading:0,preload:null};if(k=h.querySelector(zl(b)))I.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":o},c),(c=nr.get(b))&&tg(i,c);var z=k=h.createElement("link");Yt(z),an(z,"link",i),z._p=new Promise(function(Q,se){z.onload=Q,z.onerror=se}),z.addEventListener("load",function(){I.loading|=1}),z.addEventListener("error",function(){I.loading|=2}),I.loading|=4,bd(k,o,h)}k={type:"stylesheet",instance:k,count:1,state:I},m.set(b,k)}}}function YP(i,o){ui.X(i,o);var c=es;if(c&&i){var h=Eo(c).hoistableScripts,m=ns(i),b=h.get(m);b||(b=c.querySelector(Bl(m)),b||(i=p({src:i,async:!0},o),(o=nr.get(m))&&ng(i,o),b=c.createElement("script"),Yt(b),an(b,"link",i),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(m,b))}}function XP(i,o){ui.M(i,o);var c=es;if(c&&i){var h=Eo(c).hoistableScripts,m=ns(i),b=h.get(m);b||(b=c.querySelector(Bl(m)),b||(i=p({src:i,async:!0,type:"module"},o),(o=nr.get(m))&&ng(i,o),b=c.createElement("script"),Yt(b),an(b,"link",i),c.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(m,b))}}function $x(i,o,c,h){var m=(m=ye.current)?vd(m):null;if(!m)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=ts(c.href),c=Eo(m).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=ts(c.href);var b=Eo(m).hoistableStyles,k=b.get(i);if(k||(m=m.ownerDocument||m,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(i,k),(b=m.querySelector(zl(i)))&&!b._p&&(k.instance=b,k.state.loading=5),nr.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},nr.set(i,c),b||QP(m,i,c,k.state))),o&&h===null)throw Error(r(528,""));return k}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=ns(c),c=Eo(m).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function ts(i){return'href="'+Zn(i)+'"'}function zl(i){return'link[rel="stylesheet"]['+i+"]"}function Hx(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function QP(i,o,c,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),an(o,"link",c),Yt(o),i.head.appendChild(o))}function ns(i){return'[src="'+Zn(i)+'"]'}function Bl(i){return"script[async]"+i}function Gx(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Zn(c.href)+'"]');if(h)return o.instance=h,Yt(h),h;var m=p({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Yt(h),an(h,"style",m),bd(h,c.precedence,i),o.instance=h;case"stylesheet":m=ts(c.href);var b=i.querySelector(zl(m));if(b)return o.state.loading|=4,o.instance=b,Yt(b),b;h=Hx(c),(m=nr.get(m))&&tg(h,m),b=(i.ownerDocument||i).createElement("link"),Yt(b);var k=b;return k._p=new Promise(function(I,z){k.onload=I,k.onerror=z}),an(b,"link",h),o.state.loading|=4,bd(b,c.precedence,i),o.instance=b;case"script":return b=ns(c.src),(m=i.querySelector(Bl(b)))?(o.instance=m,Yt(m),m):(h=c,(m=nr.get(b))&&(h=p({},c),ng(h,m)),i=i.ownerDocument||i,m=i.createElement("script"),Yt(m),an(m,"link",h),i.head.appendChild(m),o.instance=m);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,bd(h,c.precedence,i));return o.instance}function bd(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=h.length?h[h.length-1]:null,b=m,k=0;k<h.length;k++){var I=h[k];if(I.dataset.precedence===o)b=I;else if(b!==m)break}b?b.parentNode.insertBefore(i,b.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function tg(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function ng(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var _d=null;function Kx(i,o,c){if(_d===null){var h=new Map,m=_d=new Map;m.set(c,h)}else m=_d,h=m.get(c),h||(h=new Map,m.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),m=0;m<c.length;m++){var b=c[m];if(!(b[Qs]||b[dn]||i==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var k=b.getAttribute(o)||"";k=i+k;var I=h.get(k);I?I.push(b):h.set(k,[b])}}return h}function qx(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function JP(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function Wx(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Vl=null;function eM(){}function tM(i,o,c){if(Vl===null)throw Error(r(475));var h=Vl;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=ts(c.href),b=i.querySelector(zl(m));if(b){i=b._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=Ed.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=b,Yt(b);return}b=i.ownerDocument||i,c=Hx(c),(m=nr.get(m))&&tg(c,m),b=b.createElement("link"),Yt(b);var k=b;k._p=new Promise(function(I,z){k.onload=I,k.onerror=z}),an(b,"link",c),o.instance=b}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=Ed.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function nM(){if(Vl===null)throw Error(r(475));var i=Vl;return i.stylesheets&&i.count===0&&rg(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&rg(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function Ed(){if(this.count--,this.count===0){if(this.stylesheets)rg(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Sd=null;function rg(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Sd=new Map,o.forEach(rM,i),Sd=null,Ed.call(i))}function rM(i,o){if(!(o.state.loading&4)){var c=Sd.get(i);if(c)var h=c.get(null);else{c=new Map,Sd.set(i,c);for(var m=i.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<m.length;b++){var k=m[b];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(c.set(k.dataset.precedence,k),h=k)}h&&c.set(null,h)}m=o.instance,k=m.getAttribute("data-precedence"),b=c.get(k)||h,b===h&&c.set(null,m),c.set(k,m),this.count++,h=Ed.bind(this),m.addEventListener("load",h),m.addEventListener("error",h),b?b.parentNode.insertBefore(m,b.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(m,i.firstChild)),o.state.loading|=4}}var Ul={$$typeof:T,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function iM(i,o,c,h,m,b,k,I){this.tag=1,this.containerInfo=i,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=Jh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jh(0),this.hiddenUpdates=Jh(null),this.identifierPrefix=h,this.onUncaughtError=m,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function Zx(i,o,c,h,m,b,k,I,z,Q,se,de){return i=new iM(i,o,c,k,I,z,Q,de),o=1,b===!0&&(o|=24),b=Ln(3,null,null,o),i.current=b,b.stateNode=i,o=zp(),o.refCount++,i.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:c,cache:o},Fp(b),i}function Yx(i){return i?(i=Do,i):Do}function Xx(i,o,c,h,m,b){m=Yx(m),h.context===null?h.context=m:h.pendingContext=m,h=Ii(o),h.payload={element:c},b=b===void 0?null:b,b!==null&&(h.callback=b),c=Oi(i,h,o),c!==null&&(Bn(c,i,o),yl(c,i,o))}function Qx(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function ig(i,o){Qx(i,o),(i=i.alternate)&&Qx(i,o)}function Jx(i){if(i.tag===13){var o=Oo(i,67108864);o!==null&&Bn(o,i,67108864),ig(i,67108864)}}var xd=!0;function aM(i,o,c,h){var m=M.T;M.T=null;var b=X.p;try{X.p=2,ag(i,o,c,h)}finally{X.p=b,M.T=m}}function oM(i,o,c,h){var m=M.T;M.T=null;var b=X.p;try{X.p=8,ag(i,o,c,h)}finally{X.p=b,M.T=m}}function ag(i,o,c,h){if(xd){var m=og(h);if(m===null)Km(i,o,h,Ad,c),tA(i,h);else if(lM(m,i,o,c,h))h.stopPropagation();else if(tA(i,h),o&4&&-1<sM.indexOf(i)){for(;m!==null;){var b=_o(m);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=Zr(b.pendingLanes);if(k!==0){var I=b;for(I.pendingLanes|=2,I.entangledLanes|=2;k;){var z=1<<31-pt(k);I.entanglements[1]|=z,k&=~z}Nr(b),(st&6)===0&&(sd=un()+500,Ll(0))}}break;case 13:I=Oo(b,2),I!==null&&Bn(I,b,2),cd(),ig(b,2)}if(b=og(h),b===null&&Km(i,o,h,Ad,c),b===m)break;m=b}m!==null&&h.stopPropagation()}else Km(i,o,h,null,c)}}function og(i){return i=dp(i),sg(i)}var Ad=null;function sg(i){if(Ad=null,i=bo(i),i!==null){var o=s(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=l(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Ad=i,null}function eA(i){switch(i){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(g_()){case Ys:return 2;case V:return 8;case ee:case le:return 32;case Se:return 268435456;default:return 32}default:return 32}}var lg=!1,Gi=null,Ki=null,qi=null,Fl=new Map,$l=new Map,Wi=[],sM="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 tA(i,o){switch(i){case"focusin":case"focusout":Gi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":qi=null;break;case"pointerover":case"pointerout":Fl.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(o.pointerId)}}function Hl(i,o,c,h,m,b){return i===null||i.nativeEvent!==b?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:b,targetContainers:[m]},o!==null&&(o=_o(o),o!==null&&Jx(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),i)}function lM(i,o,c,h,m){switch(o){case"focusin":return Gi=Hl(Gi,i,o,c,h,m),!0;case"dragenter":return Ki=Hl(Ki,i,o,c,h,m),!0;case"mouseover":return qi=Hl(qi,i,o,c,h,m),!0;case"pointerover":var b=m.pointerId;return Fl.set(b,Hl(Fl.get(b)||null,i,o,c,h,m)),!0;case"gotpointercapture":return b=m.pointerId,$l.set(b,Hl($l.get(b)||null,i,o,c,h,m)),!0}return!1}function nA(i){var o=bo(i.target);if(o!==null){var c=s(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){i.blockedOn=o,tj(i.priority,function(){if(c.tag===13){var h=zn();h=ep(h);var m=Oo(c,h);m!==null&&Bn(m,c,h),ig(c,h)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function wd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=og(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);up=h,c.target.dispatchEvent(h),up=null}else return o=_o(c),o!==null&&Jx(o),i.blockedOn=c,!1;o.shift()}return!0}function rA(i,o,c){wd(i)&&c.delete(o)}function cM(){lg=!1,Gi!==null&&wd(Gi)&&(Gi=null),Ki!==null&&wd(Ki)&&(Ki=null),qi!==null&&wd(qi)&&(qi=null),Fl.forEach(rA),$l.forEach(rA)}function Td(i,o){i.blockedOn===o&&(i.blockedOn=null,lg||(lg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,cM)))}var Cd=null;function iA(i){Cd!==i&&(Cd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Cd===i&&(Cd=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],m=i[o+2];if(typeof h!="function"){if(sg(h||c)===null)continue;break}var b=_o(c);b!==null&&(i.splice(o,3),o-=3,sm(b,{pending:!0,data:m,method:c.method,action:h},h,m))}}))}function Gl(i){function o(z){return Td(z,i)}Gi!==null&&Td(Gi,i),Ki!==null&&Td(Ki,i),qi!==null&&Td(qi,i),Fl.forEach(o),$l.forEach(o);for(var c=0;c<Wi.length;c++){var h=Wi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Wi.length&&(c=Wi[0],c.blockedOn===null);)nA(c),c.blockedOn===null&&Wi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var m=c[h],b=c[h+1],k=m[wn]||null;if(typeof b=="function")k||iA(c);else if(k){var I=null;if(b&&b.hasAttribute("formAction")){if(m=b,k=b[wn]||null)I=k.formAction;else if(sg(m)!==null)continue}else I=k.action;typeof I=="function"?c[h+1]=I:(c.splice(h,3),h-=3),iA(c)}}}function cg(i){this._internalRoot=i}Rd.prototype.render=cg.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=zn();Xx(c,h,i,o,null,null)},Rd.prototype.unmount=cg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;Xx(i.current,2,null,i,null,null),cd(),o[vo]=null}};function Rd(i){this._internalRoot=i}Rd.prototype.unstable_scheduleHydration=function(i){if(i){var o=E_();i={blockedOn:null,target:i,priority:o};for(var c=0;c<Wi.length&&o!==0&&o<Wi[c].priority;c++);Wi.splice(c,0,i),c===0&&nA(i)}};var aA=t.version;if(aA!=="19.1.1")throw Error(r(527,aA,"19.1.1"));X.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var uM={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kd.isDisabled&&kd.supportsFiber)try{Ce=kd.inject(uM),Ve=kd}catch{}}return ql.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",m=ES,b=SS,k=xS,I=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(k=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(I=o.unstable_transitionCallbacks)),o=Zx(i,1,!1,null,null,c,h,m,b,k,I,null),i[vo]=o.current,Gm(i),new cg(o)},ql.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,m="",b=ES,k=SS,I=xS,z=null,Q=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onUncaughtError!==void 0&&(b=c.onUncaughtError),c.onCaughtError!==void 0&&(k=c.onCaughtError),c.onRecoverableError!==void 0&&(I=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks),c.formState!==void 0&&(Q=c.formState)),o=Zx(i,1,!0,o,c??null,h,m,b,k,I,z,Q),o.context=Yx(null),c=o.current,h=zn(),h=ep(h),m=Ii(h),m.callback=null,Oi(c,m,h),c=h,o.current.lanes=c,Xs(o,c),Nr(o),i[vo]=o.current,Gm(i),new Rd(o)},ql.version="19.1.1",ql}var mA;function _M(){if(mA)return fg.exports;mA=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(),fg.exports=bM(),fg.exports}var EM=_M();const SM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},xM={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},AM={applicationURL:"",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",liveSync:!0,liveSyncPort:4e3,liveSyncURL:"http://localhost:4000"},rt={internationalization:SM,middleware:xM,editor:AM};var B=(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.BENGALI="bn",e.BENGALI_BANGLADESH="bn-BD",e.BENGALI_INDIA="bn-IN",e.BENGALI_MYANMAR="bn-MM",e.BURMESE="my",e.BURMESE_MYANMAR="my-MM",e.KHMER="km",e.KHMER_CAMBODIA="km-KH",e.LAO="lo",e.LAO_LAOS="lo-LA",e.YORUBA="yo",e.YORUBA_NIGERIA="yo-NG",e.AMHARIC="am",e.AMHARIC_ETHIOPIA="am-ET",e.NEPALI="ne",e.NEPALI_NEPAL="ne-NP",e.SINHALA="si",e.SINHALA_SRI_LANKA="si-LK",e.SERBIAN_CYRILLIC="sr-Cyrl",e.SERBIAN_CYRILLIC_SERBIA="sr-RS",e.SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA="sr-BA",e.ENGLISH_INDIA="en-IN",e.ENGLISH_SINGAPORE="en-SG",e.ENGLISH_HONG_KONG="en-HK",e.ENGLISH_NIGERIA="en-NG",e.ENGLISH_PAKISTAN="en-PK",e.ENGLISH_MALAYSIA="en-MY",e.ENGLISH_BOTSWANA="en-BW",e.ENGLISH_KENYA="en-KE",e.ENGLISH_TANZANIA="en-TZ",e.ENGLISH_GHANA="en-GH",e.ENGLISH_UGANDA="en-UG",e.SPANISH_CUBA="es-CU",e.SPANISH_UNITED_STATES="es-US",e.PORTUGUESE_GUINEA_BISSAU="pt-GW",e.PORTUGUESE_MOZAMBIQUE="pt-MZ",e.PORTUGUESE_SAO_TOME_AND_PRINCIPE="pt-ST",e.PORTUGUESE_CAPE_VERDE="pt-CV",e.PORTUGUESE_TIMOR_LESTE="pt-TL",e.PORTUGUESE_MACAU="pt-MO",e.CHINESE_TAIWAN="zh-TW",e.ARABIC_MAURITANIA="ar-MR",e.ARABIC_PALESTINE="ar-PS",e.ARABIC_SUDAN="ar-SD",e.ARABIC_DJIBOUTI="ar-DJ",e.ARABIC_SOMALIA="ar-SO",e.ARABIC_CHAD="ar-TD",e.ARABIC_COMOROS="ar-KM",e))(B||{}),$=(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.Gender="gender",e.Unknown="unknown",e))($||{});const of=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,s)=>of(a,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:$.Array,key:a}]};return of(r,s)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:$.Object,key:r}]};n[r]=of(e[r],a)}return n},wM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},TM=(e,t)=>{const n=Object.keys(e);for(const r of n){const a=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,s=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),u=r.startsWith("<")&&t<parseFloat(r.slice(1)),d=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||s||l||u||d)return r}},CM=(e,t)=>{const n=TM(e,t)??"fallback";return e[n]},RM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),kM="breadcrumb",NM={linkLabel:{nodeType:"translation",translation:{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:"Перейти на",tr:"Git"}}},IM=["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"],OM={key:kM,content:NM,localIds:IM},DM="code",LM={title:{nodeType:"translation",translation:{en:"Copy code",es:"Copiar código",pt:"Copiar código",fr:"Copier le code",de:"Code kopieren",it:"Copiare il codice",ja:"コードをコピー",ko:"코드 복사",zh:"复制代码",hi:"कोड कॉपी करें","en-GB":"Copy code",ru:"Копировать код",ar:"نسخ الكود",tr:"Kodu kopyala"}},description:{nodeType:"translation",translation:{en:"Copy the code to the clipboard",es:"Copiar el código al portapapeles",pt:"Copiar o código para a área de transferência",fr:"Copier le code dans le presse-papiers",de:"Kopieren Sie den Code in die Zwischenablage",it:"Copiare il codice nella clipboard",ja:"コードをクリップボードにコピー",ko:"코드를 클립보드에 복사",zh:"复制代码到剪贴板",hi:"कोड को क्लिपबोर्ड पर कॉपी करें","en-GB":"Copy the code to the clipboard",ru:"Копировать код в буфер обмена",ar:"نسخ الكود إلى الحافظة",tr:"Kodu panoya kopyala"}}},jM=["code::local::../@intlayer/design-system/src/components/IDE/code.content.ts","code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts"],PM={key:DM,content:LM,localIds:jM},MM="copy-button",zM={label:{nodeType:"translation",translation:{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:"Копировать содержимое",tr:"İçeriği kopyala"}}},BM=["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"],VM={key:MM,content:zM,localIds:BM},UM="dictionary-detail-schema",FM={titleRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите название вашей организации.",tr:"Lütfen organizasyonunuz için bir isim girin."}},titleInvalidTypeError:{nodeType:"translation",translation:{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:"Имя организации должно быть правильной строкой.",tr:"Organizasyon adı geçerli bir dize olmalıdır."}},titleMinLengthError:{nodeType:"translation",translation:{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 символов.",tr:"Organizasyon adı en az 4 karakter uzunluğunda olmalıdır."}},keyRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите ключ для вашей организации.",tr:"Lütfen organizasyonunuz için bir anahtar girin."}},keyInvalidTypeError:{nodeType:"translation",translation:{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:"Ключ должен быть правильной строкой.",tr:"Anahtar geçerli bir dize olmalıdır."}},keySpaceError:{nodeType:"translation",translation:{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:"Ключ не может содержать пробелы или специальные символы.",tr:"Anahtar boşluk veya özel karakterler içeremez."}},keyMinLengthError:{nodeType:"translation",translation:{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 символов.",tr:"Anahtar en az 4 karakter uzunluğunda olmalıdır."}},descriptionRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите описание вашей организации.",tr:"Lütfen organizasyonunuz için bir açıklama girin."}},descriptionInvalidTypeError:{nodeType:"translation",translation:{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:"Описание должно быть правильной строкой.",tr:"Açıklama geçerli bir dize olmalıdır."}},requiredErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите проект",tr:"Lütfen bir proje seçin"}},invalidTypeErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите действительный проект",tr:"Lütfen geçerli bir proje seçin"}},invalidTypeErrorTags:{nodeType:"translation",translation:{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:"Пожалуйста, введите действительный тег",tr:"Lütfen geçerli bir etiket girin"}}},$M=["dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],HM={key:UM,content:FM,localIds:$M},GM="dictionary-details",KM=JSON.parse(`{"titleInput":{"label":{"nodeType":"translation","translation":{"en":"Title","en-GB":"Title","fr":"Titre","es":"Título","de":"Titel","ja":"タイトル","ko":"제목","zh":"标题","it":"Titolo","pt":"Título","hi":"शीर्षक","ar":"العنوان","ru":"Заголовок","tr":"Başlık"}},"description":{"nodeType":"translation","translation":{"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":"Название вашего словаря позволяет легко его идентифицировать","tr":"Sözlüğünüzün başlığı, onu kolayca tanımlamanızı sağlar"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите название вашего словаря","tr":"Sözlüğünüzün başlığını girin"}}},"keyInput":{"label":{"nodeType":"translation","translation":{"en":"Key","en-GB":"Key","fr":"Clé","es":"Clave","de":"Schlüssel","ja":"キー","ko":"키","zh":"键","it":"Chiave","pt":"Chave","hi":"कुंजी","ar":"مفتاح","ru":"Ключ","tr":"Anahtar"}},"description":{"nodeType":"translation","translation":{"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":"Ключ вашего словаря используется для его идентификации в приложении","tr":"Sözlüğünüzün anahtarı, uygulamada onu tanımlamak için kullanılır"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите ключ вашего словаря","tr":"Sözlüğünüzün anahtarını girin"}}},"descriptionInput":{"label":{"nodeType":"translation","translation":{"en":"Description","en-GB":"Description","fr":"Description","es":"Descripción","de":"Beschreibung","ja":"説明","ko":"설명","zh":"描述","it":"Descrizione","pt":"Descrição","hi":"विवरण","ar":"الوصف","ru":"Описание","tr":"Açıklama"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите описание вашего словаря","tr":"Sözlüğünüzün açıklamasını girin"}},"description":{"nodeType":"translation","translation":{"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":"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря.","tr":"Sözlüğünüzün açıklaması, anahtar kelimeleri kullanarak onu kolayca tanımlamanızı sağlar. Ayrıca sözlüğünüzü aramak ve AI'nın sözlüğünüzü anlamasına yardımcı olmak için de kullanılır."}}},"projectInput":{"label":{"nodeType":"translation","translation":{"en":"Projects","en-GB":"Projects","fr":"Projets","es":"Proyectos","de":"Projekte","ja":"プロジェクト","ko":"프로젝트","zh":"项目","it":"Progetti","pt":"Projetos","hi":"परियोजनाएँ","ar":"المشاريع","ru":"Проекты","tr":"Projeler"}},"description":{"nodeType":"translation","translation":{"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":"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами.","tr":"Sözlük, bir veya daha fazla projeyle ilişkilendirilebilir. Bu, sözlüğü farklı uygulamalarda yüklemenize ve farklı ekipler arasında paylaşmanıza olanak tanır."}},"placeholder":{"nodeType":"translation","translation":{"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":"Выберите один или несколько проектов, чтобы связать их с вашим словарем","tr":"Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin"}}},"tagsSelect":{"label":{"nodeType":"translation","translation":{"en":"Tags","en-GB":"Tags","fr":"Tags","es":"Etiquetas","de":"Tags","ja":"タグ","ko":"태그","zh":"标签","it":"Tag","pt":"Tags","hi":"टैग","ar":"الوسوم","ru":"Теги","tr":"Etiketler"}},"description":{"nodeType":"translation","translation":{"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.","hi":"एक शब्दकोश को एक या अधिक टैग से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।","ar":"يمكن ربط قاموس بواحد أو أكثر من الوسوم. يتيح لك تحميل القاموس في تطبيقات مختلفة ومشاركته بين فرق مختلفة.","ru":"Словарь можно связать с одним или несколькими тегами. Это позволяет загружать словарь в различных приложениях и делиться им между различными командами.","tr":"Sözlük, bir veya daha fazla etiketle ilişkilendirilebilir. Bu, sözlüğü farklı uygulamalarda yüklemenize ve farklı ekipler arasında paylaşmanıza olanak tanır."}},"placeholder":{"nodeType":"translation","translation":{"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":"Выберите теги, которые нужно связать с словарем","tr":"Sözlüğünüzle ilişkilendirmek için etiketleri seçin"}}},"auditButton":{"label":{"nodeType":"translation","translation":{"en":"Audit","fr":"Auditer","es":"Auditar","en-GB":"Audit","de":"Prüfen","ja":"監査","ko":"감사","zh":"审核","it":"Controllare","pt":"Auditar","hi":"ऑडिट","ar":"التدقيق","ru":"Отслеживание","tr":"Denetle"}},"text":{"nodeType":"translation","translation":{"en":"Audit","fr":"Auditer","es":"Auditar","en-GB":"Audit","de":"Prüfen","ja":"監査","ko":"감사","zh":"审核","it":"Controllare","pt":"Auditar","hi":"ऑडिट","ar":"التدقيق","ru":"Отслеживание","tr":"Denetle"}}}}`),qM=["dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],WM={key:GM,content:KM,localIds:qM},ZM="dictionary-edition-drawer",YM={openDictionaryEditor:{label:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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"}},focusedDictionaryNotFound:{nodeType:"translation",translation:{en:"Focused dictionary not found",fr:"Dictionnaire focalisé non trouvé",es:"Diccionario enfocado no encontrado",de:"Ausgewähltes Wörterbuch nicht gefunden",ja:"フォーカスされた辞書が見つかりません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"Focused dictionary not found"}}},XM=["dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"],ab={key:ZM,content:YM,localIds:XM},QM="dictionary-field-editor",JM={returnToDictionaryList:{label:{nodeType:"translation",translation:{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:"辞書リストに戻る",it:"Torna alla lista dei dizionari",pt:"Retornar à lista de dicionários",hi:"शब्दकोश सूची पर वापस जाएं",ar:"العودة إلى قائمة القوامل",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",ru:"Вернуться к списку словарей",tr:"Sözlük listesine dön"}},text:{nodeType:"translation",translation:{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:"Список словарей",tr:"Sözlük listesi"}}}},ez=["dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],tz={key:QM,content:JM,localIds:ez},nz="dictionary-form-schema",rz={requiredErrorName:{nodeType:"translation",translation:{en:"Please enter a key for your dictionary","en-GB":"Please enter a key for your dictionary",fr:"Veuillez saisir une clef pour votre dictionaire",es:"Por favor, ingrese un clave para su diccionario",de:"Bitte geben Sie einen Schlüssel für Ihr Wörterbuch ein",ja:"辞書のキーを入力してください",ko:"사전 키를 입력해 주세요",zh:"请输入字典的键",it:"Si prega di inserire una chiave per il proprio dizionario",pt:"Por favor, insira uma chave para seu dicionário",hi:"कृपया अपने शब्दकोश के लिए एक कुंजी दर्ज करें",ar:"الرجاء إدخال مفتاح لقاموسك",ru:"Пожалуйста, введите ключ для вашего словаря",tr:"Lütfen sözlüğünüz için bir anahtar girin"}},invalidTypeErrorName:{nodeType:"translation",translation:{en:"Please enter a valid key for your dictionary","en-GB":"Please enter a valid key for your dictionary",fr:"Veuillez saisir une clée valide pour votre dictionaire",es:"Por favor, ingrese un clave válido para su diccionario",de:"Bitte geben Sie einen gültigen Schlüssel für Ihr Wörterbuch ein",ja:"辞書の有効なキーを入力してください",ko:"유효한 사전 키를 입력해 주세요",zh:"请输入字典的有效键",it:"Si prega di inserire una chiave valida per il proprio dizionario",pt:"Por favor, insira uma chave válida para seu dicionário",hi:"कृपया अपने शब्दकोश के लिए एक मान्य कुंजी दर्ज करें",ar:"الرجاء إدخال مفتاح صالح لقاموسك",ru:"Пожалуйста, введите действительный ключ для вашего словаря",tr:"Lütfen sözlüğünüz için geçerli bir anahtar girin"}},requiredErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите проект",tr:"Lütfen bir proje seçin"}},invalidTypeErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите действительный проект",tr:"Lütfen geçerli bir proje seçin"}}},iz=["dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"],az={key:nz,content:rz,localIds:iz},oz="dictionary-form",sz={keyInput:{label:{nodeType:"translation",translation:{en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"की",ar:"مفتاح",ru:"Ключ",tr:"Anahtar"}},placeholder:{nodeType:"translation",translation:{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:"Введите ключ вашего словаря",tr:"Sözlüğünüzün anahtarını girin"}}},projectInput:{label:{nodeType:"translation",translation:{en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"प्रोजेक्ट",ar:"مشاريع",ru:"Проекты",tr:"Projeler"}},placeholder:{nodeType:"translation",translation:{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:"Выберите один или несколько проектов для связывания со словарем",tr:"Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin"}}},noDictionaryView:{title:{nodeType:"translation",translation:{en:"No dictionary","en-GB":"No dictionary",fr:"Aucun dictionnaire",es:"Sin diccionario",de:"Kein Wörterbuch",ja:"辞書がありません",ko:"사전이 없습니다",zh:"没有字典",it:"Nessun dizionario",pt:"Nenhum dicionário",hi:"कोई शब्दकोश नहीं",ar:"لا يوجد قاموس",ru:"Нет словаря",tr:"Hiç sözlük yok"}},description:{nodeType:"translation",translation:{en:"Create your first dictionary to start using Intlayer","en-GB":"Create your first dictionary to start using Intlayer",fr:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",es:"Cree su primer diccionario para comenzar a usar Intlayer",de:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",ja:"Intlayerを使用するために最初の辞書を作成してください",ko:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",zh:"创建您的第一个字典以开始使用Intlayer",it:"Crea il tuo primo dizionario per iniziare a usare Intlayer",pt:"Crie seu primeiro dicionário para começar a usar o Intlayer",hi:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",ar:"أنشئ قاموسك الأول لبدء استخدام Intlayer",ru:"Создайте свой первый словарь, чтобы начать использовать Intlayer",tr:"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun"}}},dictionaryList:{title:{nodeType:"translation",translation:{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:"Список словарей",tr:"Sözlük listesi"}}},createDictionaryTitle:{nodeType:"translation",translation:{en:"No dictionary","en-GB":"No dictionary",fr:"Aucun dictionnaire",es:"Sin diccionario",de:"Kein Wörterbuch",ja:"辞書がありません",ko:"사전이 없습니다",zh:"没有字典",it:"Nessun dizionario",pt:"Nenhum dicionário",hi:"कोई शब्दकोश नहीं",ar:"لا يوجد قاموس",ru:"Нет словаря",tr:"Hiç sözlük yok"}},createDictionaryDescription:{nodeType:"translation",translation:{en:"Create your first dictionary to start using Intlayer","en-GB":"Create your first dictionary to start using Intlayer",fr:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",es:"Cree su primer diccionario para comenzar a usar Intlayer",de:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",ja:"Intlayerを使用するために最初の辞書を作成してください",ko:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",zh:"创建您的第一个字典以开始使用Intlayer",it:"Crea il tuo primo dizionario per iniziare a usare Intlayer",pt:"Crie seu primeiro dicionário para começar a usar o Intlayer",hi:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",ar:"أنشئ قاموسك الأول لبدء استخدام Intlayer",ru:"Создайте свой первый словарь, чтобы начать использовать Intlayer",tr:"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun"}},createDictionaryButton:{text:{nodeType:"translation",translation:{en:"Create dictionary","en-GB":"Create dictionary",fr:"Créer un dictionnaire",es:"Crear un diccionario",de:"Wörterbuch erstellen",ja:"辞書を作成",ko:"사전 만들기",zh:"创建字典",it:"Crea dizionario",pt:"Criar dicionário",hi:"शब्दकोश बनाएँ",ar:"إنشاء قاموس",ru:"Создать словарь",tr:"Sözlük oluştur"}},ariaLabel:{nodeType:"translation",translation:{en:"Click to create dictionary","en-GB":"Click to create dictionary",fr:"Cliquez pour créer un dictionnaire",es:"Haga clic para crear un diccionario",de:"Klicken Sie, um ein Wörterbuch zu erstellen",ja:"辞書を作成するにはクリックしてください",ko:"사전을 만들려면 클릭하세요",zh:"点击创建字典",it:"Clicca per creare un dizionario",pt:"Clique para criar dicionário",hi:"शब्दकोश बनाने के लिए क्लिक करें",ar:"انقر لإنشاء قاموس",ru:"Нажмите, чтобы создать словарь",tr:"Sözlük oluşturmak için tıklayın"}}},editButton:{text:{nodeType:"translation",translation:{en:"Edit dictionary","en-GB":"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:"Редактировать словарь",tr:"Sözlüğü düzenle"}},ariaLabel:{nodeType:"translation",translation:{en:"Click to edit","en-GB":"Click to edit",fr:"Cliquez pour modifier",es:"Haga clic para editar",de:"Klicken Sie, um zu bearbeiten",ja:"編集するにはクリックしてください",ko:"편집하려면 클릭하세요",zh:"点击编辑",it:"Clicca per modificare",pt:"Clique para editar",hi:"संपादित करने के लिए क्लिक करें",ar:"انقر لتعديل",ru:"Нажмите, чтобы отредактировать",tr:"Düzenlemek için tıklayın"}}}},lz=["dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],cz={key:oz,content:sz,localIds:lz},uz="dictionary-list-drawer",dz={drawerTitle:{label:{nodeType:"translation",translation:{en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",it:"Lista dei dizionari",pt:"Lista de dicionários",ru:"Список словарей",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",ar:"قائمة القواميس",hi:"शब्दकोश सूची"}}},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:"Open dictionary editor {{dictionaryLocalId}}","en-GB":"Open dictionary editor {{dictionaryLocalId}}",fr:"Ouvrir le dictionnaire dans l'éditeur {{dictionaryLocalId}}",es:"Abrir el diccionario en el editor {{dictionaryLocalId}}",de:"Wörterbuch-Editor öffnen {{dictionaryLocalId}}",it:"Apri editor dizionario {{dictionaryLocalId}}",pt:"Abrir editor de dicionário {{dictionaryLocalId}}",ru:"Открыть редактор словаря {{dictionaryLocalId}}",ja:"辞書エディタを開く {{dictionaryLocalId}}",ko:"사전 편집기 열기 {{dictionaryLocalId}}",zh:"打开字典编辑器 {{dictionaryLocalId}}",ar:"فتح محرر القاموس {{dictionaryLocalId}}",hi:"शब्दकोश संपादक खोलें {{dictionaryLocalId}}"}}}}},fz=["dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"],PR={key:uz,content:dz,localIds:fz},hz="expand-collapse",pz={expandCollapseContent:{nodeType:"condition",condition:{true:{nodeType:"translation",translation:{en:"Show all",fr:"Afficher tout",es:"Mostrar todo","en-GB":"Show all",de:"Mehr anzeigen",ja:"すべて表示",ko:"모두 보기",zh:"显示全部",it:"Mostra tutto",pt:"Mostrar tudo",hi:"सभी दिखाएँ",ar:"عرض الكل",ru:"Показать все",tr:"Hepsini göster"}},false:{nodeType:"translation",translation:{en:"Show less",fr:"Afficher moins",es:"Mostrar menos","en-GB":"Show less",de:"Weniger anzeigen",ja:"表示を減らす",ko:"간략히 보기",zh:"显示较少",it:"Mostra meno",pt:"Mostrar menos",hi:"कम दिखाएँ",ar:"عرض أقل",ru:"Показать меньше",tr:"Daha az göster"}}}}},mz=["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"],gz={key:hz,content:pz,localIds:mz},yz="loader",vz={label:{nodeType:"translation",translation:{en:"Animated icon, meaning that the website is processing","en-GB":"Animated icon, meaning that the website is processing",fr:"Icône animée, signifiant que le site Web est en cours de traitement",es:"Icono animado, significa que el sitio web está procesando",de:"Animiertes Icon, das heißt, dass die Website in Bearbeitung ist",ja:"アニメーションアイコン、ウェブサイトが処理していることを意味する",ko:"애니메이션 아이콘, 웹 사이트가 처리 중인 의미",zh:"动画图标,意味着网站正在处理",it:"Icona animata, che significa che il sito web è in fase di elaborazione",pt:"Ícone animado, o que significa que o site está processando",hi:"एनिमेटेड आइकन, जो कि वेबसाइट को प्रसंस्करण हो रहा है इसका मतलब है",ar:"رمز متحرك، مما يعني أن الموقع الإلكتروني يتم التحميل",ru:"Анимационный значок, что означает, что сайт обрабатывается",tr:"Web sitesinin işlemde olduğunu belirten animasyonlu simge"}}},bz=["loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts"],_z={key:yz,content:vz,localIds:bz},Ez="locale-switcher-content",Sz={localeSwitcherLabel:{nodeType:"translation",translation:{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:"Переключатель языка",tr:"Dil değiştirici"}},languageListLabel:{nodeType:"translation",translation:{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:"Список языков",tr:"Dil listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}},searchInput:{text:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},placeholder:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},ariaLabel:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}}},seeAllLocalesSwitch:{true:{nodeType:"translation",translation:{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:"Показать все языки",tr:"Tüm dilleri göster"}},false:{nodeType:"translation",translation:{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:"Показать только выбранные языки",tr:"Yalnızca seçilen dilleri göster"}}}},xz=["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"],Az={key:Ez,content:Sz,localIds:xz},wz="locale-switcher",Tz={localeSwitcherLabel:{nodeType:"translation",translation:{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:"Переключатель языка",tr:"Dil değiştirici"}},languageListLabel:{nodeType:"translation",translation:{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:"Список языков",tr:"Dil listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}},searchInput:{text:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},placeholder:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},ariaLabel:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}}}},Cz=["locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"],Rz={key:wz,content:Tz,localIds:Cz},kz="long-press-message",Nz={message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}}}},Iz=["long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts"],MR={key:kz,content:Nz,localIds:Iz},Oz="navigation-view",Dz={tsxNotEditable:{nodeType:"translation",translation:{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-узел не редактируемый",tr:"React düğümü düzenlenemez"}},goToField:{label:{nodeType:"translation",translation:{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:"Перейти к полю",tr:"Alana git"}}},addNewElement:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить элемент",tr:"Eleman eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новый элемент",tr:"Yeni eleman ekle"}}},removeElement:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы удалить элемент",tr:"Elemanı kaldırmak için tıklayın"}},text:{nodeType:"translation",translation:{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:"Удалить элемент",tr:"Elemanı kaldır"}}},addNewEnumeration:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить перечисление",tr:"Numaralandırma eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новое перечисление",tr:"Yeni numaralandırma ekle"}}},removeEnumeration:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы удалить перечисление",tr:"Numaralandırmayı kaldırmak için tıklayın"}},text:{nodeType:"translation",translation:{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:"Удалить перечисление",tr:"Numaralandırmayı kaldır"}}},addNewCondition:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить условие",tr:"Koşul eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новое условие",tr:"Yeni koşul ekle"}}}},Lz=["navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],jz={key:Oz,content:Dz,localIds:Lz},Pz="no-application-url-view",Mz={title:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:"查看如何配置编辑器"}}}},zz=["no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"],zR={key:Pz,content:Mz,localIds:zz},Bz="node-type-selector",Vz={triggerPlaceHolder:{nodeType:"translation",translation:{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:"Тип узла",tr:"Düğüm türü"}},multilingual:{nodeType:"translation",translation:{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:"Многоязычный контент",tr:"Çok dilli içerik"}},text:{nodeType:"translation",translation:{en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст",tr:"Metin"}},number:{nodeType:"translation",translation:{en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число",tr:"Sayı"}},boolean:{nodeType:"translation",translation:{en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево",tr:"Boolean"}},node:{nodeType:"translation",translation:{en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект",tr:"Nesne"}},array:{nodeType:"translation",translation:{en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив",tr:"Dizi"}},enumeration:{nodeType:"translation",translation:{en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление",tr:"Numaralandırma"}},nest:{nodeType:"translation",translation:{en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",tr:"İç içe geçme"}},insertion:{nodeType:"translation",translation:{en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка",tr:"Ekleme"}},condition:{nodeType:"translation",translation:{en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие",tr:"Koşul"}},file:{nodeType:"translation",translation:{en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл",tr:"Dosya"}},markdown:{nodeType:"translation",translation:{en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown",tr:"Markdown"}},reactNode:{nodeType:"translation",translation:{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:"Реакт узел",tr:"React Node"}}},Uz=["node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"],Fz={key:Bz,content:Vz,localIds:Uz},$z="save-dictionary-details",Hz={deleteButton:{text:{nodeType:"translation",translation:{en:"Delete dictionary","en-GB":"Delete dictionary",fr:"Supprimer le dictionnaire",es:"Eliminar diccionario",de:"Wörterbuch löschen",ja:"辞書を削除",ko:"사전 삭제",zh:"删除字典",it:"Elimina dizionario",pt:"Excluir dicionário",hi:"शब्दकोश हटाएं",ar:"حذف القاموس",ru:"Удалить словарь",tr:"Sözlüğü sil"}},label:{nodeType:"translation",translation:{en:"Click to delete dictionary","en-GB":"Click to delete dictionary",fr:"Cliquez pour supprimer le dictionnaire",es:"Haga clic para eliminar el diccionario",de:"Klicken Sie, um das Wörterbuch zu löschen",ja:"辞書を削除するにはクリックしてください",ko:"사전을 삭제하려면 클릭하세요",zh:"单击以删除字典",it:"Fai clic per eliminare il dizionario",pt:"Clique para excluir o dicionário",hi:"शब्दकोश हटाने के लिए क्लिक करें",ar:"انقر لحذف القاموس",ru:"Нажмите, чтобы удалить словарь",tr:"Sözlüğü silmek için tıklayın"}}},resetButton:{text:{nodeType:"translation",translation:{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:"Сбросить все изменения",tr:"Tüm değişiklikleri sıfırla"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы сбросить все изменения",tr:"Tüm değişiklikleri sıfırlamak için tıklayın"}}},saveButton:{text:{nodeType:"translation",translation:{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:"Сохранить изменения",tr:"Değişiklikleri kaydet"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы сохранить изменения",tr:"Değişiklikleri kaydetmek için tıklayın"}}},publishButton:{text:{nodeType:"translation",translation:{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:"Опубликовать словарь",tr:"Sözlüğü yayınla"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы опубликовать словарь",tr:"Sözlüğü yayınlamak için tıklayın"}}},downloadButton:{text:{nodeType:"translation",translation:{en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать",tr:"İndir"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы скачать",tr:"İndirmek için tıklayın"}}},confirmation:{title:{nodeType:"translation",translation:{en:"Confirmation","en-GB":"Confirmation",fr:"Confirmation",es:"Confirmation",de:"Confirmation",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmação",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтверждение",tr:"Onay"}},message:{nodeType:"translation",translation:{en:"This will overwrite the existing dictionary. Are you sure you want to continue?","en-GB":"This will overwrite the existing dictionary. Are you sure you want to continue?",fr:"Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?",es:"Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?",de:"Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?",ja:"既存の辞書を上書きします。続行しますか?",ko:"이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?",zh:"这将覆盖现有的字典。你确定要继续吗?",it:"Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?",pt:"Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?",hi:"यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?",ar:"سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟",ru:"Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?",tr:"Bu, mevcut sözlüğün üzerine yazacaktır. Devam etmek istediğinizden emin misiniz?"}},confirmButton:{text:{nodeType:"translation",translation:{en:"Confirm","en-GB":"Confirm",fr:"Confirmer",es:"Confirmar",de:"Bestätigen",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmar",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтвердить",tr:"Onayla"}},label:{nodeType:"translation",translation:{en:"Click to confirm","en-GB":"Click to confirm",fr:"Cliquez pour confirmer",es:"Haga clic para confirmar",de:"Klicken Sie, um zu bestätigen",ja:"確認するにはクリックしてください",ko:"확인을 클릭하세요",zh:"单击确认",it:"Fai clic per confermare",pt:"Clique para confirmar",hi:"पुष्टि करने के लिए क्लिक करें",ar:"انقر لتأكيد",ru:"Нажмите, чтобы подтвердить",tr:"Onaylamak için tıklayın"}}},cancelButton:{text:{nodeType:"translation",translation:{en:"Cancel","en-GB":"Cancel",fr:"Annuler",es:"Cancelar",de:"Abbrechen",ja:"キャンセル",ko:"취소",zh:"取消",it:"Annulla",pt:"Cancelar",hi:"रद्द करें",ar:"إلغاء",ru:"Отмена",tr:"İptal"}},label:{nodeType:"translation",translation:{en:"Click to cancel","en-GB":"Click to cancel",fr:"Cliquez pour annuler",es:"Haga clic para cancelar",de:"Klicken Sie, um abzubrechen",ja:"キャンセルするにはクリックしてください",ko:"취소를 클릭하세요",zh:"单击取消",it:"Fai clic per annullare",pt:"Clique para cancelar",hi:"रद्द करने के लिए क्लिक करें",ar:"انقر لإلغاء",ru:"Нажмите, чтобы отменить",tr:"İptal etmek için tıklayın"}}}}},Gz=["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],Kz={key:$z,content:Hz,localIds:Gz},qz="structure-view",Wz={titleInput:{placeholder:{nodeType:"translation",translation:{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:"Введите ключ вашего узла",tr:"Düğümünüzün anahtarını girin"}}},deleteButton:{label:{nodeType:"translation",translation:{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:"Удалить узел из секции",tr:"Düğümü bölümden kaldır"}}},addNodeButton:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить новый узел",tr:"Yeni bir düğüm eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новый узел",tr:"Yeni bir düğüm ekle"}}}},Zz=["structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"],Yz={key:qz,content:Wz,localIds:Zz},Xz="table",Qz={show:{nodeType:"translation",translation:{en:"Show all table content",fr:"Afficher tout le contenu du tableau",es:"Mostrar todo el contenido de la tabla","en-GB":"Show all table content",de:"Alle Tabellendaten anzeigen",ja:"テーブルのすべての内容を表示",ko:"테이블의 모든 내용 표시",zh:"显示表格的所有内容",it:"Mostra tutto il contenuto della tabella",pt:"Mostrar todo o conteúdo da tabela",hi:"सभी तालिका सामग्री दिखाएं",ar:"اظهار جميع محتويات الجدول",ru:"Показать все данные таблицы",tr:"Tüm tablo içeriğini göster"}}},Jz=["table::local::../@intlayer/design-system/src/components/Table/table.content.ts"],eB={key:Xz,content:Qz,localIds:Jz},tB="version-switcher",nB={versionSwitcherLabel:{nodeType:"translation",translation:{en:"Version selector","en-GB":"Version selector",fr:"Sélecteur de version",es:"Selector de versión",de:"Version wähler",ja:"バージョンセレクター",ko:"버전 선택기",zh:"版本选择器",it:"Selettore di versione",pt:"Seletor de versão",hi:"संस्करण चयनकर्ता",ar:"منتقي الإصدار",ru:"Выбор версии",tr:"Sürüm seçici"}},versionListLabel:{nodeType:"translation",translation:{en:"Version list","en-GB":"Version list",fr:"Liste des versions",es:"Lista de versiones",de:"Versionsliste",ja:"バージョンリスト",ko:"버전 목록",zh:"版本列表",it:"Elenco delle versioni",pt:"Lista de versões",hi:"संस्करण सूची",ar:"قائمة الإصدارات",ru:"Список версий",tr:"Sürüm listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}}},rB=["version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"],iB={key:tB,content:nB,localIds:rB},gA={breadcrumb:OM,code:PM,"copy-button":VM,"dictionary-detail-schema":HM,"dictionary-details":WM,"dictionary-edition-drawer":ab,"dictionary-field-editor":tz,"dictionary-form-schema":az,"dictionary-form":cz,"dictionary-list-drawer":PR,"expand-collapse":gz,loader:_z,"locale-switcher-content":Az,"locale-switcher":Rz,"long-press-message":MR,"navigation-view":jz,"no-application-url-view":zR,"node-type-selector":Fz,"save-dictionary-details":Kz,"structure-view":Yz,table:eB,"version-switcher":iB},BR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return ob(e.content,r,t)},VR=(e,t,n)=>{const r=gA[e];if(!r)throw new Error(`Dictionary ${e} not found`,gA);return BR(r,t,n)},aB=(e,t,n)=>{const r=VR(e,n?.locale,n?.plugins);if(typeof t=="string"){const a=t.split(".");let s=r;for(const l of a)if(s=s?.[l],s===void 0)return r;return s}return r},oB=(e,t,n)=>e[t??n],sB=(e,t)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&n?.nodeType===$.Translation,transform:(n,r,a)=>{const s=structuredClone(n[$.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:$.Translation,key:l}]};s[l]=a(s[l],u)}return oB(s,e,t)}}),lB={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[$.Enumeration]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:$.Enumeration,key:a}]};r[a]=n(s,l)}return a=>CM(r,a)}},cB={id:"condition-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Condition,transform:(e,t,n)=>{const r=structuredClone(e[$.Condition]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:$.Condition,key:a}]};r[a]=n(s,l)}return a=>wM(r,a)}},uB={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:$.Insertion}],a=e[$.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,u,d)=>{const f=d(l,{...u,children:l,plugins:[...(t.plugins??[]).filter(p=>p.id!=="intlayer-node-plugin")]});return p=>{const g=RM(f,p);return d(g,{...u,plugins:t.plugins,children:g})}}},...t.plugins??[]]})}},dB={id:"nested-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Nested,transform:(e,t)=>aB(e.nested.dictionaryKey,e.nested.path,t)},fB={id:"file-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},ob=(e,t,n=rt?.internationalization.defaultLocale)=>{const r=[uB,sB(n),lB,cB,dB,fB,...t.plugins??[]];return of(e,{...t,plugins:r})},yA={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},hB=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),Nd=e=>e.reduce((t,n)=>{const r=t??{},a=hB(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),Ne=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const s=t.map(({body:_,params:x,headers:A,...C})=>C),l=Nd([yA,...s]),u=Nd([yA.headers,...t.map(_=>_.headers)]),d=Nd(t.map(_=>_.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const _=Nd(t.map(x=>x.body));u?.["Content-Type"]==="application/x-www-form-urlencoded"?a=new URLSearchParams(_).toString():a=JSON.stringify(_)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const p={...l,headers:u,body:a,signal:n},g=`${e}${r}`,y=await fetch(g,p);if(!y.ok){const _=await y.json();throw new Error(JSON.stringify(_.error)??"An error occurred")}return await y.json()},pB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{customQuery:async(y,_={})=>await Ne(r,e,_,{method:"POST",body:y}),translateJSON:async(y,_={})=>await Ne(`${r}/translate/json`,e,_,{method:"POST",body:y}),auditContentDeclaration:async(y,_={})=>await Ne(`${r}/audit/dictionary`,e,_,{method:"POST",body:y}),auditContentDeclarationField:async(y,_={})=>await Ne(`${r}/audit/dictionary/field`,e,_,{method:"POST",body:y}),auditContentDeclarationMetadata:async(y,_={})=>await Ne(`${r}/audit/dictionary/metadata`,e,_,{method:"POST",body:y}),auditTag:async(y,_={})=>await Ne(`${r}/audit/tag`,e,_,{method:"POST",body:y}),askDocQuestion:async(y,_={})=>{if(!y)return;const{onMessage:x,onDone:A,...C}=y,w=new AbortController;try{const S=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,..._.headers},body:JSON.stringify({...C,...e.body,..._.body}),signal:w.signal,credentials:"include"});if(!S.ok){let O="An error occurred";try{const D=await S.json();O=JSON.stringify(D.error)??"An error occurred"}catch{try{const D=await S.text();D&&(O=D)}catch{}}throw new Error(O)}const T=S.body?.getReader();if(!T)throw new Error("No reader available");const N=new TextDecoder;let R="";for(;;){const{done:O,value:D}=await T.read();if(O)break;R+=N.decode(D,{stream:!0});const j=R.split(`
|
|
51
|
-
`);R=j.pop()??"";for(const H of j)if(H.startsWith("data: "))try{const Z=JSON.parse(H.slice(6));Z.chunk&&x?.(Z.chunk),Z.done&&Z.response&&A?.(Z.response)}catch(Z){console.error("Failed to parse SSE data:",Z)}}}catch(S){throw console.error("Error in askDocQuestion:",S),S}},autocomplete:async(y,_={})=>await Ne(`${r}/autocomplete`,e,_,{method:"POST",body:y})}},mB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(y,_={})=>await Ne(r,e,_,{params:y}),getDictionariesKeys:async(y={})=>await Ne(`${r}/keys`,e,y),getDictionariesUpdateTimestamp:async(y={})=>await Ne(`${r}/update`,e,y),getDictionary:async(y,_,x={})=>await Ne(`${r}/${y}`,e,x,{params:_?{version:_.toString()}:void 0}),pushDictionaries:async(y,_={})=>await Ne(`${r}`,e,_,{method:"PATCH",body:{dictionaries:y}}),addDictionary:async(y,_={})=>await Ne(`${r}`,e,_,{method:"POST",body:y}),updateDictionary:async(y,_={})=>await Ne(`${r}/${y.id}`,e,_,{method:"PUT",body:y}),deleteDictionary:async(y,_={})=>await Ne(`${r}/${y}`,e,_,{method:"DELETE"})}},gB=(e={},t)=>{const n=t?.editor?.editorURL??rt.editor?.editorURL;if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getDictionaries:async(u={})=>(await Ne(`${r}/dictionary`,e,u)).data,getConfiguration:async(u={})=>(await Ne(`${r}/config`,e,u)).data,writeDictionary:async(u,d={})=>await Ne(`${r}/dictionary`,e,d,{method:"POST",body:u})}},yB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/newsletter`;return{subscribeToNewsletter:async(u,d={})=>await Ne(`${r}/subscribe`,e,d,{method:"POST",body:u}),unsubscribeFromNewsletter:async(u,d={})=>await Ne(`${r}/unsubscribe`,e,d,{method:"POST",body:u}),getNewsletterStatus:async(u={})=>await Ne(`${r}/status`,e,u,{method:"GET"})}},UR=e=>{const t=e?.editor?.backendURL??rt.editor?.backendURL,{clientId:n,clientSecret:r}=e?.editor??{};if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");return{getOAuth2AccessToken:async(s={})=>await Ne(`${t}/oauth2/token`,{},s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:n,client_secret:r}})}},vB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(_,x={})=>await Ne(r,e,x,{params:_}),getOrganization:async(_,x={})=>await Ne(`${r}/${String(_)}`,e,x),addOrganization:async(_,x={})=>await Ne(r,e,x,{method:"POST",body:_}),addOrganizationMember:async(_,x={})=>Ne(`${r}/member`,e,x,{method:"POST",body:_}),updateOrganization:async(_,x={})=>Ne(r,e,x,{method:"PUT",body:_}),updateOrganizationMembers:async(_,x={})=>Ne(`${r}/members`,e,x,{method:"PUT",body:_}),deleteOrganization:async(_={})=>await Ne(r,e,_,{method:"DELETE"}),selectOrganization:async(_,x={})=>await Ne(`${r}/${String(_)}`,e,x,{method:"PUT"}),unselectOrganization:async(_={})=>await Ne(`${r}/logout`,e,_,{method:"POST"})}},bB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(A,C={})=>await Ne(r,e,C,{params:A}),addProject:async(A,C={})=>await Ne(`${r}`,e,C,{method:"POST",body:A}),updateProject:async(A,C={})=>await Ne(`${r}`,e,C,{method:"PUT",body:A}),updateProjectMembers:async(A,C={})=>await Ne(`${r}/members`,e,C,{method:"PUT",body:A}),pushProjectConfiguration:async(A,C={})=>await Ne(`${r}/configuration`,e,C,{method:"PUT",body:A}),deleteProject:async(A={})=>await Ne(`${r}`,e,A,{method:"DELETE"}),selectProject:async(A,C={})=>await Ne(`${r}/${String(A)}`,e,C,{method:"PUT"}),unselectProject:async(A={})=>await Ne(`${r}/logout`,e,A,{method:"POST"}),addNewAccessKey:async(A,C={})=>await Ne(`${r}/access_key`,e,C,{method:"POST",body:A}),deleteAccessKey:async(A,C={})=>await Ne(`${r}/access_key`,e,C,{method:"DELETE",body:{clientId:A}}),refreshAccessKey:async(A,C={})=>await Ne(`${r}/access_key`,e,C,{method:"PATCH",body:{clientId:A}})}},_B=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/search`;return{searchDoc:async(s,l={})=>await Ne(`${r}/doc`,e,l,{method:"GET",params:s})}},EB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(u,d={})=>await Ne(`${r}/pricing`,e,d,{method:"POST",body:u}),getSubscription:async(u,d={})=>await Ne(`${r}/create-subscription`,e,d,{method:"POST",body:u}),cancelSubscription:async(u={})=>await Ne(`${r}/cancel-subscription`,e,u,{method:"POST"})}},SB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(d,f={})=>await Ne(r,e,f,{params:d}),addTag:async(d,f={})=>await Ne(`${r}`,e,f,{method:"POST",body:d}),updateTag:async(d,f,p={})=>await Ne(`${r}/${d}`,e,p,{method:"PUT",body:f}),deleteTag:async(d,f={})=>await Ne(`${r}/${d}`,e,f,{method:"DELETE"})}},xB=(e={},t)=>{const n=t?.editor?.backendURL??rt.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(y,_={})=>await Ne(`${r}/`,e,_,{method:"POST",body:y}),getUsers:async(y,_={})=>await Ne(r,e,_,{params:y}),getUserById:async(y,_={})=>await Ne(`${r}/${y}`,e,_),getUserByAccount:async(y,_,x={})=>await Ne(`${r}/account/${_}/${y}`,e,x),getUserByEmail:async(y,_={})=>await Ne(`${r}/email/${y}`,e,_),updateUser:async(y,_={})=>await Ne(`${r}`,e,_,{method:"PUT",body:y}),deleteUser:async(y,_={})=>await Ne(`${r}/${y}`,e,_,{method:"DELETE"}),getVerifyEmailStatusURL:y=>`${r}/verify-email-status/${String(y)}`}},AB=(e={},t)=>({organization:vB(e,t),project:bB(e,t),user:xB(e,t),oAuth:UR(t),dictionary:mB(e,t),stripe:EB(e,t),ai:pB(e,t),tag:SB(e,t),search:_B(e,t),editor:gB(e,t),newsletter:yB(e,t)}),vA=(e,t,n)=>{let r=e,a=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===$.Object||u.type===$.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===$.Translation||u.type===$.Enumeration)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===$.Enumeration||u.type===$.Condition)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===$.Markdown||u.type===$.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===$.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&s.length>0){let d=a;for(const f of s.slice(0,-1))d=d[f];typeof n>"u"?delete d[s[s.length-1]]:d[s[s.length-1]]=n}}return e},sr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===$.Object||r.type===$.Array?n=n?.[r.key]:r.type===$.Translation||r.type===$.Condition||r.type===$.Enumeration?n=n?.[r.type][r.key]:(r.type===$.Markdown||r.type===$.Insertion||r.type===$.File)&&(n=n?.[r.type]);return n},Wl=(e,t,n)=>{const r=structuredClone(n);switch(e){case $.Translation:return{nodeType:$.Translation,[$.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case $.Enumeration:return{nodeType:$.Enumeration,[$.Enumeration]:{1:r??""}};case $.Condition:return{nodeType:$.Condition,[$.Condition]:{true:r??"",false:r??""}};case $.Insertion:return{nodeType:$.Insertion,[$.Insertion]:{insertion:r??""}};case $.Nested:return{nodeType:$.Nested,[$.Nested]:{dictionaryKey:""}};case $.Markdown:return{nodeType:$.Markdown,[$.Markdown]:r??""};case $.File:return{nodeType:$.File,[$.File]:r??""};case $.Object:return{newKey:r??""};case $.Array:return[r??""];case $.Text:return r??"";case $.Number:return r??0;case $.Boolean:return r??!0;default:return r??""}},Gn=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof e?.nodeType=="string"){const r=e,a=r[r.nodeType];return r.nodeType===$.Translation||r.nodeType===$.Enumeration||r.nodeType===$.Condition||r.nodeType===$.Insertion?Gn(a):r.nodeType===$.Nested?"dictionary-key":r.nodeType===$.File?"file/path":r.nodeType===$.Markdown?Gn(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(Gn);const t=Object.entries(e).map(([r,a])=>[r,Gn(a)]);return Object.fromEntries(t)},FR=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e?.nodeType=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===$.Translation||t.nodeType===$.Enumeration||t.nodeType===$.Condition||t.nodeType===$.Insertion||t.nodeType===$.Gender||t.nodeType===$.File||t.nodeType===$.Markdown){const r=Object.keys(n)[0];return n[r]}return t.nodeType===$.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},wB=e=>typeof e=="object"&&typeof e?.key<"u"&&typeof e?.props<"u",Os=e=>typeof e=="string"?$.Text:typeof e?.nodeType=="string"?e.nodeType:Array.isArray(e)?$.Array:wB(e)?$.ReactNode:typeof e=="number"?$.Number:typeof e=="boolean"?$.Boolean:e&&typeof e=="object"?$.Object:$.Unknown,TB=[{key:"breadcrumb",autoFill:"./{{key}}.content.json",content:{linkLabel:{nodeType:"translation",translation:{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:"Перейти на",tr:"Git"}}},localId:"breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"}],CB=[{key:"code",autoFill:"./{{key}}.content.json",content:{title:{nodeType:"translation",translation:{en:"Copy code",es:"Copiar código",pt:"Copiar código",fr:"Copier le code",de:"Code kopieren",it:"Copiare il codice",ja:"コードをコピー",ko:"코드 복사",zh:"复制代码",hi:"कोड कॉपी करें","en-GB":"Copy code",ru:"Копировать код",ar:"نسخ الكود",tr:"Kodu kopyala"}},description:{nodeType:"translation",translation:{en:"Copy the code to the clipboard",es:"Copiar el código al portapapeles",pt:"Copiar o código para a área de transferência",fr:"Copier le code dans le presse-papiers",de:"Kopieren Sie den Code in die Zwischenablage",it:"Copiare il codice nella clipboard",ja:"コードをクリップボードにコピー",ko:"코드를 클립보드에 복사",zh:"复制代码到剪贴板",hi:"कोड को क्लिपबोर्ड पर कॉपी करें","en-GB":"Copy the code to the clipboard",ru:"Копировать код в буфер обмена",ar:"نسخ الكود إلى الحافظة",tr:"Kodu panoya kopyala"}}},localId:"code::local::../@intlayer/design-system/src/components/IDE/code.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/IDE/code.content.ts"},{key:"code",autoFill:"./{{key}}.content.json",content:{title:{nodeType:"translation",translation:{en:"Copy code",es:"Copiar código",pt:"Copiar código",fr:"Copier le code",de:"Code kopieren",it:"Copiare il codice",ja:"コードをコピー",ko:"코드 복사",zh:"复制代码",hi:"कोड कॉपी करें","en-GB":"Copy code",ru:"Копировать код",ar:"نسخ الكود",tr:"Kodu kopyala"}},description:{nodeType:"translation",translation:{en:"Copy the code to the clipboard",es:"Copiar el código al portapapeles",pt:"Copiar o código para a área de transferência",fr:"Copier le code dans le presse-papiers",de:"Kopieren Sie den Code in die Zwischenablage",it:"Copiare il codice nella clipboard",ja:"コードをクリップボードにコピー",ko:"코드를 클립보드에 복사",zh:"复制代码到剪贴板",hi:"कोड को क्लिपबोर्ड पर कॉपी करें","en-GB":"Copy the code to the clipboard",ru:"Копировать код в буфер обмена",ar:"نسخ الكود إلى الحافظة",tr:"Kodu panoya kopyala"}}},localId:"code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/IDE/copyCode.content.ts"}],RB=[{key:"copy-button",autoFill:"./{{key}}.content.json",content:{label:{nodeType:"translation",translation:{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:"Копировать содержимое",tr:"İçeriği kopyala"}}},localId:"copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"}],kB=[{key:"dictionary-detail-schema",autoFill:"./{{key}}.content.json",content:{titleRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите название вашей организации.",tr:"Lütfen organizasyonunuz için bir isim girin."}},titleInvalidTypeError:{nodeType:"translation",translation:{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:"Имя организации должно быть правильной строкой.",tr:"Organizasyon adı geçerli bir dize olmalıdır."}},titleMinLengthError:{nodeType:"translation",translation:{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 символов.",tr:"Organizasyon adı en az 4 karakter uzunluğunda olmalıdır."}},keyRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите ключ для вашей организации.",tr:"Lütfen organizasyonunuz için bir anahtar girin."}},keyInvalidTypeError:{nodeType:"translation",translation:{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:"Ключ должен быть правильной строкой.",tr:"Anahtar geçerli bir dize olmalıdır."}},keySpaceError:{nodeType:"translation",translation:{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:"Ключ не может содержать пробелы или специальные символы.",tr:"Anahtar boşluk veya özel karakterler içeremez."}},keyMinLengthError:{nodeType:"translation",translation:{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 символов.",tr:"Anahtar en az 4 karakter uzunluğunda olmalıdır."}},descriptionRequiredError:{nodeType:"translation",translation:{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:"Пожалуйста, введите описание вашей организации.",tr:"Lütfen organizasyonunuz için bir açıklama girin."}},descriptionInvalidTypeError:{nodeType:"translation",translation:{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:"Описание должно быть правильной строкой.",tr:"Açıklama geçerli bir dize olmalıdır."}},requiredErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите проект",tr:"Lütfen bir proje seçin"}},invalidTypeErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите действительный проект",tr:"Lütfen geçerli bir proje seçin"}},invalidTypeErrorTags:{nodeType:"translation",translation:{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:"Пожалуйста, введите действительный тег",tr:"Lütfen geçerli bir etiket girin"}}},localId:"dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"}],NB=JSON.parse(`[{"key":"dictionary-details","content":{"titleInput":{"label":{"nodeType":"translation","translation":{"en":"Title","en-GB":"Title","fr":"Titre","es":"Título","de":"Titel","ja":"タイトル","ko":"제목","zh":"标题","it":"Titolo","pt":"Título","hi":"शीर्षक","ar":"العنوان","ru":"Заголовок","tr":"Başlık"}},"description":{"nodeType":"translation","translation":{"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":"Название вашего словаря позволяет легко его идентифицировать","tr":"Sözlüğünüzün başlığı, onu kolayca tanımlamanızı sağlar"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите название вашего словаря","tr":"Sözlüğünüzün başlığını girin"}}},"keyInput":{"label":{"nodeType":"translation","translation":{"en":"Key","en-GB":"Key","fr":"Clé","es":"Clave","de":"Schlüssel","ja":"キー","ko":"키","zh":"键","it":"Chiave","pt":"Chave","hi":"कुंजी","ar":"مفتاح","ru":"Ключ","tr":"Anahtar"}},"description":{"nodeType":"translation","translation":{"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":"Ключ вашего словаря используется для его идентификации в приложении","tr":"Sözlüğünüzün anahtarı, uygulamada onu tanımlamak için kullanılır"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите ключ вашего словаря","tr":"Sözlüğünüzün anahtarını girin"}}},"descriptionInput":{"label":{"nodeType":"translation","translation":{"en":"Description","en-GB":"Description","fr":"Description","es":"Descripción","de":"Beschreibung","ja":"説明","ko":"설명","zh":"描述","it":"Descrizione","pt":"Descrição","hi":"विवरण","ar":"الوصف","ru":"Описание","tr":"Açıklama"}},"placeholder":{"nodeType":"translation","translation":{"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":"Введите описание вашего словаря","tr":"Sözlüğünüzün açıklamasını girin"}},"description":{"nodeType":"translation","translation":{"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":"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря.","tr":"Sözlüğünüzün açıklaması, anahtar kelimeleri kullanarak onu kolayca tanımlamanızı sağlar. Ayrıca sözlüğünüzü aramak ve AI'nın sözlüğünüzü anlamasına yardımcı olmak için de kullanılır."}}},"projectInput":{"label":{"nodeType":"translation","translation":{"en":"Projects","en-GB":"Projects","fr":"Projets","es":"Proyectos","de":"Projekte","ja":"プロジェクト","ko":"프로젝트","zh":"项目","it":"Progetti","pt":"Projetos","hi":"परियोजनाएँ","ar":"المشاريع","ru":"Проекты","tr":"Projeler"}},"description":{"nodeType":"translation","translation":{"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":"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами.","tr":"Sözlük, bir veya daha fazla projeyle ilişkilendirilebilir. Bu, sözlüğü farklı uygulamalarda yüklemenize ve farklı ekipler arasında paylaşmanıza olanak tanır."}},"placeholder":{"nodeType":"translation","translation":{"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":"Выберите один или несколько проектов, чтобы связать их с вашим словарем","tr":"Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin"}}},"tagsSelect":{"label":{"nodeType":"translation","translation":{"en":"Tags","en-GB":"Tags","fr":"Tags","es":"Etiquetas","de":"Tags","ja":"タグ","ko":"태그","zh":"标签","it":"Tag","pt":"Tags","hi":"टैग","ar":"الوسوم","ru":"Теги","tr":"Etiketler"}},"description":{"nodeType":"translation","translation":{"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.","hi":"एक शब्दकोश को एक या अधिक टैग से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।","ar":"يمكن ربط قاموس بواحد أو أكثر من الوسوم. يتيح لك تحميل القاموس في تطبيقات مختلفة ومشاركته بين فرق مختلفة.","ru":"Словарь можно связать с одним или несколькими тегами. Это позволяет загружать словарь в различных приложениях и делиться им между различными командами.","tr":"Sözlük, bir veya daha fazla etiketle ilişkilendirilebilir. Bu, sözlüğü farklı uygulamalarda yüklemenize ve farklı ekipler arasında paylaşmanıza olanak tanır."}},"placeholder":{"nodeType":"translation","translation":{"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":"Выберите теги, которые нужно связать с словарем","tr":"Sözlüğünüzle ilişkilendirmek için etiketleri seçin"}}},"auditButton":{"label":{"nodeType":"translation","translation":{"en":"Audit","fr":"Auditer","es":"Auditar","en-GB":"Audit","de":"Prüfen","ja":"監査","ko":"감사","zh":"审核","it":"Controllare","pt":"Auditar","hi":"ऑडिट","ar":"التدقيق","ru":"Отслеживание","tr":"Denetle"}},"text":{"nodeType":"translation","translation":{"en":"Audit","fr":"Auditer","es":"Auditar","en-GB":"Audit","de":"Prüfen","ja":"監査","ko":"감사","zh":"审核","it":"Controllare","pt":"Auditar","hi":"ऑडिट","ar":"التدقيق","ru":"Отслеживание","tr":"Denetle"}}}},"localId":"dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx","location":"locale","filePath":"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"}]`),IB=[{key:"dictionary-edition-drawer",autoFill:"./{{key}}.content.json",content:{openDictionaryEditor:{label:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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"}},focusedDictionaryNotFound:{nodeType:"translation",translation:{en:"Focused dictionary not found",fr:"Dictionnaire focalisé non trouvé",es:"Diccionario enfocado no encontrado",de:"Ausgewähltes Wörterbuch nicht gefunden",ja:"フォーカスされた辞書が見つかりません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"Focused dictionary not found"}}},localId:"dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts",location:"locale",filePath:"client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"}],OB=[{key:"dictionary-field-editor",autoFill:"./{{key}}.content.json",content:{returnToDictionaryList:{label:{nodeType:"translation",translation:{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:"辞書リストに戻る",it:"Torna alla lista dei dizionari",pt:"Retornar à lista de dicionários",hi:"शब्दकोश सूची पर वापस जाएं",ar:"العودة إلى قائمة القوامل",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",ru:"Вернуться к списку словарей",tr:"Sözlük listesine dön"}},text:{nodeType:"translation",translation:{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:"Список словарей",tr:"Sözlük listesi"}}}},localId:"dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"}],DB=[{key:"dictionary-form-schema",autoFill:"./{{key}}.content.json",content:{requiredErrorName:{nodeType:"translation",translation:{en:"Please enter a key for your dictionary","en-GB":"Please enter a key for your dictionary",fr:"Veuillez saisir une clef pour votre dictionaire",es:"Por favor, ingrese un clave para su diccionario",de:"Bitte geben Sie einen Schlüssel für Ihr Wörterbuch ein",ja:"辞書のキーを入力してください",ko:"사전 키를 입력해 주세요",zh:"请输入字典的键",it:"Si prega di inserire una chiave per il proprio dizionario",pt:"Por favor, insira uma chave para seu dicionário",hi:"कृपया अपने शब्दकोश के लिए एक कुंजी दर्ज करें",ar:"الرجاء إدخال مفتاح لقاموسك",ru:"Пожалуйста, введите ключ для вашего словаря",tr:"Lütfen sözlüğünüz için bir anahtar girin"}},invalidTypeErrorName:{nodeType:"translation",translation:{en:"Please enter a valid key for your dictionary","en-GB":"Please enter a valid key for your dictionary",fr:"Veuillez saisir une clée valide pour votre dictionaire",es:"Por favor, ingrese un clave válido para su diccionario",de:"Bitte geben Sie einen gültigen Schlüssel für Ihr Wörterbuch ein",ja:"辞書の有効なキーを入力してください",ko:"유효한 사전 키를 입력해 주세요",zh:"请输入字典的有效键",it:"Si prega di inserire una chiave valida per il proprio dizionario",pt:"Por favor, insira uma chave válida para seu dicionário",hi:"कृपया अपने शब्दकोश के लिए एक मान्य कुंजी दर्ज करें",ar:"الرجاء إدخال مفتاح صالح لقاموسك",ru:"Пожалуйста, введите действительный ключ для вашего словаря",tr:"Lütfen sözlüğünüz için geçerli bir anahtar girin"}},requiredErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите проект",tr:"Lütfen bir proje seçin"}},invalidTypeErrorProjectId:{nodeType:"translation",translation:{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:"Пожалуйста, выберите действительный проект",tr:"Lütfen geçerli bir proje seçin"}}},localId:"dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"}],LB=[{key:"dictionary-form",autoFill:"./{{key}}.content.json",content:{keyInput:{label:{nodeType:"translation",translation:{en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"की",ar:"مفتاح",ru:"Ключ",tr:"Anahtar"}},placeholder:{nodeType:"translation",translation:{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:"Введите ключ вашего словаря",tr:"Sözlüğünüzün anahtarını girin"}}},projectInput:{label:{nodeType:"translation",translation:{en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"प्रोजेक्ट",ar:"مشاريع",ru:"Проекты",tr:"Projeler"}},placeholder:{nodeType:"translation",translation:{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:"Выберите один или несколько проектов для связывания со словарем",tr:"Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin"}}},noDictionaryView:{title:{nodeType:"translation",translation:{en:"No dictionary","en-GB":"No dictionary",fr:"Aucun dictionnaire",es:"Sin diccionario",de:"Kein Wörterbuch",ja:"辞書がありません",ko:"사전이 없습니다",zh:"没有字典",it:"Nessun dizionario",pt:"Nenhum dicionário",hi:"कोई शब्दकोश नहीं",ar:"لا يوجد قاموس",ru:"Нет словаря",tr:"Hiç sözlük yok"}},description:{nodeType:"translation",translation:{en:"Create your first dictionary to start using Intlayer","en-GB":"Create your first dictionary to start using Intlayer",fr:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",es:"Cree su primer diccionario para comenzar a usar Intlayer",de:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",ja:"Intlayerを使用するために最初の辞書を作成してください",ko:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",zh:"创建您的第一个字典以开始使用Intlayer",it:"Crea il tuo primo dizionario per iniziare a usare Intlayer",pt:"Crie seu primeiro dicionário para começar a usar o Intlayer",hi:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",ar:"أنشئ قاموسك الأول لبدء استخدام Intlayer",ru:"Создайте свой первый словарь, чтобы начать использовать Intlayer",tr:"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun"}}},dictionaryList:{title:{nodeType:"translation",translation:{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:"Список словарей",tr:"Sözlük listesi"}}},createDictionaryTitle:{nodeType:"translation",translation:{en:"No dictionary","en-GB":"No dictionary",fr:"Aucun dictionnaire",es:"Sin diccionario",de:"Kein Wörterbuch",ja:"辞書がありません",ko:"사전이 없습니다",zh:"没有字典",it:"Nessun dizionario",pt:"Nenhum dicionário",hi:"कोई शब्दकोश नहीं",ar:"لا يوجد قاموس",ru:"Нет словаря",tr:"Hiç sözlük yok"}},createDictionaryDescription:{nodeType:"translation",translation:{en:"Create your first dictionary to start using Intlayer","en-GB":"Create your first dictionary to start using Intlayer",fr:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",es:"Cree su primer diccionario para comenzar a usar Intlayer",de:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",ja:"Intlayerを使用するために最初の辞書を作成してください",ko:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",zh:"创建您的第一个字典以开始使用Intlayer",it:"Crea il tuo primo dizionario per iniziare a usare Intlayer",pt:"Crie seu primeiro dicionário para começar a usar o Intlayer",hi:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",ar:"أنشئ قاموسك الأول لبدء استخدام Intlayer",ru:"Создайте свой первый словарь, чтобы начать использовать Intlayer",tr:"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun"}},createDictionaryButton:{text:{nodeType:"translation",translation:{en:"Create dictionary","en-GB":"Create dictionary",fr:"Créer un dictionnaire",es:"Crear un diccionario",de:"Wörterbuch erstellen",ja:"辞書を作成",ko:"사전 만들기",zh:"创建字典",it:"Crea dizionario",pt:"Criar dicionário",hi:"शब्दकोश बनाएँ",ar:"إنشاء قاموس",ru:"Создать словарь",tr:"Sözlük oluştur"}},ariaLabel:{nodeType:"translation",translation:{en:"Click to create dictionary","en-GB":"Click to create dictionary",fr:"Cliquez pour créer un dictionnaire",es:"Haga clic para crear un diccionario",de:"Klicken Sie, um ein Wörterbuch zu erstellen",ja:"辞書を作成するにはクリックしてください",ko:"사전을 만들려면 클릭하세요",zh:"点击创建字典",it:"Clicca per creare un dizionario",pt:"Clique para criar dicionário",hi:"शब्दकोश बनाने के लिए क्लिक करें",ar:"انقر لإنشاء قاموس",ru:"Нажмите, чтобы создать словарь",tr:"Sözlük oluşturmak için tıklayın"}}},editButton:{text:{nodeType:"translation",translation:{en:"Edit dictionary","en-GB":"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:"Редактировать словарь",tr:"Sözlüğü düzenle"}},ariaLabel:{nodeType:"translation",translation:{en:"Click to edit","en-GB":"Click to edit",fr:"Cliquez pour modifier",es:"Haga clic para editar",de:"Klicken Sie, um zu bearbeiten",ja:"編集するにはクリックしてください",ko:"편집하려면 클릭하세요",zh:"点击编辑",it:"Clicca per modificare",pt:"Clique para editar",hi:"संपादित करने के लिए क्लिक करें",ar:"انقر لتعديل",ru:"Нажмите, чтобы отредактировать",tr:"Düzenlemek için tıklayın"}}}},localId:"dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"}],jB=[{key:"dictionary-list-drawer",content:{drawerTitle:{label:{nodeType:"translation",translation:{en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",it:"Lista dei dizionari",pt:"Lista de dicionários",ru:"Список словарей",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",ar:"قائمة القواميس",hi:"शब्दकोश सूची"}}},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:"Open dictionary editor {{dictionaryLocalId}}","en-GB":"Open dictionary editor {{dictionaryLocalId}}",fr:"Ouvrir le dictionnaire dans l'éditeur {{dictionaryLocalId}}",es:"Abrir el diccionario en el editor {{dictionaryLocalId}}",de:"Wörterbuch-Editor öffnen {{dictionaryLocalId}}",it:"Apri editor dizionario {{dictionaryLocalId}}",pt:"Abrir editor de dicionário {{dictionaryLocalId}}",ru:"Открыть редактор словаря {{dictionaryLocalId}}",ja:"辞書エディタを開く {{dictionaryLocalId}}",ko:"사전 편집기 열기 {{dictionaryLocalId}}",zh:"打开字典编辑器 {{dictionaryLocalId}}",ar:"فتح محرر القاموس {{dictionaryLocalId}}",hi:"शब्दकोश संपादक खोलें {{dictionaryLocalId}}"}}}}},localId:"dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts",location:"locale",filePath:"client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"}],PB=[{key:"expand-collapse",autoFill:"./{{key}}.content.json",content:{expandCollapseContent:{nodeType:"condition",condition:{true:{nodeType:"translation",translation:{en:"Show all",fr:"Afficher tout",es:"Mostrar todo","en-GB":"Show all",de:"Mehr anzeigen",ja:"すべて表示",ko:"모두 보기",zh:"显示全部",it:"Mostra tutto",pt:"Mostrar tudo",hi:"सभी दिखाएँ",ar:"عرض الكل",ru:"Показать все",tr:"Hepsini göster"}},false:{nodeType:"translation",translation:{en:"Show less",fr:"Afficher moins",es:"Mostrar menos","en-GB":"Show less",de:"Weniger anzeigen",ja:"表示を減らす",ko:"간략히 보기",zh:"显示较少",it:"Mostra meno",pt:"Mostrar menos",hi:"कम दिखाएँ",ar:"عرض أقل",ru:"Показать меньше",tr:"Daha az göster"}}}}},localId:"expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"}],MB=[{key:"loader",autoFill:"./{{key}}.content.json",content:{label:{nodeType:"translation",translation:{en:"Animated icon, meaning that the website is processing","en-GB":"Animated icon, meaning that the website is processing",fr:"Icône animée, signifiant que le site Web est en cours de traitement",es:"Icono animado, significa que el sitio web está procesando",de:"Animiertes Icon, das heißt, dass die Website in Bearbeitung ist",ja:"アニメーションアイコン、ウェブサイトが処理していることを意味する",ko:"애니메이션 아이콘, 웹 사이트가 처리 중인 의미",zh:"动画图标,意味着网站正在处理",it:"Icona animata, che significa che il sito web è in fase di elaborazione",pt:"Ícone animado, o que significa que o site está processando",hi:"एनिमेटेड आइकन, जो कि वेबसाइट को प्रसंस्करण हो रहा है इसका मतलब है",ar:"رمز متحرك، مما يعني أن الموقع الإلكتروني يتم التحميل",ru:"Анимационный значок, что означает, что сайт обрабатывается",tr:"Web sitesinin işlemde olduğunu belirten animasyonlu simge"}}},localId:"loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/Loader/index.content.ts"}],zB=[{key:"locale-switcher-content",autoFill:"./{{key}}.content.json",content:{localeSwitcherLabel:{nodeType:"translation",translation:{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:"Переключатель языка",tr:"Dil değiştirici"}},languageListLabel:{nodeType:"translation",translation:{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:"Список языков",tr:"Dil listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}},searchInput:{text:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},placeholder:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},ariaLabel:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}}},seeAllLocalesSwitch:{true:{nodeType:"translation",translation:{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:"Показать все языки",tr:"Tüm dilleri göster"}},false:{nodeType:"translation",translation:{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:"Показать только выбранные языки",tr:"Yalnızca seçilen dilleri göster"}}}},localId:"locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"}],BB=[{key:"locale-switcher",autoFill:"./{{key}}.content.json",content:{localeSwitcherLabel:{nodeType:"translation",translation:{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:"Переключатель языка",tr:"Dil değiştirici"}},languageListLabel:{nodeType:"translation",translation:{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:"Список языков",tr:"Dil listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}},searchInput:{text:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},placeholder:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}},ariaLabel:{nodeType:"translation",translation:{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:"Поиск языка",tr:"Dil ara"}}}},localId:"locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"}],VB=[{key:"long-press-message",autoFill:"./{{key}}.content.json",content:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}}}},localId:"long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts",location:"locale",filePath:"client/src/components/Editor/LongPressMessage/index.content.ts"}],UB=[{key:"navigation-view",autoFill:"./{{key}}.content.json",content:{tsxNotEditable:{nodeType:"translation",translation:{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-узел не редактируемый",tr:"React düğümü düzenlenemez"}},goToField:{label:{nodeType:"translation",translation:{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:"Перейти к полю",tr:"Alana git"}}},addNewElement:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить элемент",tr:"Eleman eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новый элемент",tr:"Yeni eleman ekle"}}},removeElement:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы удалить элемент",tr:"Elemanı kaldırmak için tıklayın"}},text:{nodeType:"translation",translation:{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:"Удалить элемент",tr:"Elemanı kaldır"}}},addNewEnumeration:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить перечисление",tr:"Numaralandırma eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новое перечисление",tr:"Yeni numaralandırma ekle"}}},removeEnumeration:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы удалить перечисление",tr:"Numaralandırmayı kaldırmak için tıklayın"}},text:{nodeType:"translation",translation:{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:"Удалить перечисление",tr:"Numaralandırmayı kaldır"}}},addNewCondition:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить условие",tr:"Koşul eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новое условие",tr:"Yeni koşul ekle"}}}},localId:"navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"}],FB=[{key:"no-application-url-view",autoFill:"./{{key}}.content.json",content:{title:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:"查看如何配置编辑器"}}}},localId:"no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts",location:"locale",filePath:"client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"}],$B=[{key:"node-type-selector",autoFill:"./{{key}}.content.json",content:{triggerPlaceHolder:{nodeType:"translation",translation:{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:"Тип узла",tr:"Düğüm türü"}},multilingual:{nodeType:"translation",translation:{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:"Многоязычный контент",tr:"Çok dilli içerik"}},text:{nodeType:"translation",translation:{en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст",tr:"Metin"}},number:{nodeType:"translation",translation:{en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число",tr:"Sayı"}},boolean:{nodeType:"translation",translation:{en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево",tr:"Boolean"}},node:{nodeType:"translation",translation:{en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект",tr:"Nesne"}},array:{nodeType:"translation",translation:{en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив",tr:"Dizi"}},enumeration:{nodeType:"translation",translation:{en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление",tr:"Numaralandırma"}},nest:{nodeType:"translation",translation:{en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",tr:"İç içe geçme"}},insertion:{nodeType:"translation",translation:{en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка",tr:"Ekleme"}},condition:{nodeType:"translation",translation:{en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие",tr:"Koşul"}},file:{nodeType:"translation",translation:{en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл",tr:"Dosya"}},markdown:{nodeType:"translation",translation:{en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown",tr:"Markdown"}},reactNode:{nodeType:"translation",translation:{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:"Реакт узел",tr:"React Node"}}},localId:"node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"}],HB=[{key:"save-dictionary-details",content:{deleteButton:{text:{nodeType:"translation",translation:{en:"Delete dictionary","en-GB":"Delete dictionary",fr:"Supprimer le dictionnaire",es:"Eliminar diccionario",de:"Wörterbuch löschen",ja:"辞書を削除",ko:"사전 삭제",zh:"删除字典",it:"Elimina dizionario",pt:"Excluir dicionário",hi:"शब्दकोश हटाएं",ar:"حذف القاموس",ru:"Удалить словарь",tr:"Sözlüğü sil"}},label:{nodeType:"translation",translation:{en:"Click to delete dictionary","en-GB":"Click to delete dictionary",fr:"Cliquez pour supprimer le dictionnaire",es:"Haga clic para eliminar el diccionario",de:"Klicken Sie, um das Wörterbuch zu löschen",ja:"辞書を削除するにはクリックしてください",ko:"사전을 삭제하려면 클릭하세요",zh:"单击以删除字典",it:"Fai clic per eliminare il dizionario",pt:"Clique para excluir o dicionário",hi:"शब्दकोश हटाने के लिए क्लिक करें",ar:"انقر لحذف القاموس",ru:"Нажмите, чтобы удалить словарь",tr:"Sözlüğü silmek için tıklayın"}}},resetButton:{text:{nodeType:"translation",translation:{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:"Сбросить все изменения",tr:"Tüm değişiklikleri sıfırla"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы сбросить все изменения",tr:"Tüm değişiklikleri sıfırlamak için tıklayın"}}},saveButton:{text:{nodeType:"translation",translation:{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:"Сохранить изменения",tr:"Değişiklikleri kaydet"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы сохранить изменения",tr:"Değişiklikleri kaydetmek için tıklayın"}}},publishButton:{text:{nodeType:"translation",translation:{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:"Опубликовать словарь",tr:"Sözlüğü yayınla"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы опубликовать словарь",tr:"Sözlüğü yayınlamak için tıklayın"}}},downloadButton:{text:{nodeType:"translation",translation:{en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать",tr:"İndir"}},label:{nodeType:"translation",translation:{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:"Нажмите, чтобы скачать",tr:"İndirmek için tıklayın"}}},confirmation:{title:{nodeType:"translation",translation:{en:"Confirmation","en-GB":"Confirmation",fr:"Confirmation",es:"Confirmation",de:"Confirmation",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmação",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтверждение",tr:"Onay"}},message:{nodeType:"translation",translation:{en:"This will overwrite the existing dictionary. Are you sure you want to continue?","en-GB":"This will overwrite the existing dictionary. Are you sure you want to continue?",fr:"Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?",es:"Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?",de:"Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?",ja:"既存の辞書を上書きします。続行しますか?",ko:"이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?",zh:"这将覆盖现有的字典。你确定要继续吗?",it:"Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?",pt:"Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?",hi:"यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?",ar:"سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟",ru:"Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?",tr:"Bu, mevcut sözlüğün üzerine yazacaktır. Devam etmek istediğinizden emin misiniz?"}},confirmButton:{text:{nodeType:"translation",translation:{en:"Confirm","en-GB":"Confirm",fr:"Confirmer",es:"Confirmar",de:"Bestätigen",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmar",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтвердить",tr:"Onayla"}},label:{nodeType:"translation",translation:{en:"Click to confirm","en-GB":"Click to confirm",fr:"Cliquez pour confirmer",es:"Haga clic para confirmar",de:"Klicken Sie, um zu bestätigen",ja:"確認するにはクリックしてください",ko:"확인을 클릭하세요",zh:"单击确认",it:"Fai clic per confermare",pt:"Clique para confirmar",hi:"पुष्टि करने के लिए क्लिक करें",ar:"انقر لتأكيد",ru:"Нажмите, чтобы подтвердить",tr:"Onaylamak için tıklayın"}}},cancelButton:{text:{nodeType:"translation",translation:{en:"Cancel","en-GB":"Cancel",fr:"Annuler",es:"Cancelar",de:"Abbrechen",ja:"キャンセル",ko:"취소",zh:"取消",it:"Annulla",pt:"Cancelar",hi:"रद्द करें",ar:"إلغاء",ru:"Отмена",tr:"İptal"}},label:{nodeType:"translation",translation:{en:"Click to cancel","en-GB":"Click to cancel",fr:"Cliquez pour annuler",es:"Haga clic para cancelar",de:"Klicken Sie, um abzubrechen",ja:"キャンセルするにはクリックしてください",ko:"취소를 클릭하세요",zh:"单击取消",it:"Fai clic per annullare",pt:"Clique para cancelar",hi:"रद्द करने के लिए क्लिक करें",ar:"انقر لإلغاء",ru:"Нажмите, чтобы отменить",tr:"İptal etmek için tıklayın"}}}}},localId:"save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"}],GB=[{key:"structure-view",autoFill:"./{{key}}.content.json",content:{titleInput:{placeholder:{nodeType:"translation",translation:{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:"Введите ключ вашего узла",tr:"Düğümünüzün anahtarını girin"}}},deleteButton:{label:{nodeType:"translation",translation:{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:"Удалить узел из секции",tr:"Düğümü bölümden kaldır"}}},addNodeButton:{label:{nodeType:"translation",translation:{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:"Нажмите, чтобы добавить новый узел",tr:"Yeni bir düğüm eklemek için tıklayın"}},text:{nodeType:"translation",translation:{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:"Добавить новый узел",tr:"Yeni bir düğüm ekle"}}}},localId:"structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"}],KB=[{key:"table",autoFill:"./{{key}}.content.json",content:{show:{nodeType:"translation",translation:{en:"Show all table content",fr:"Afficher tout le contenu du tableau",es:"Mostrar todo el contenido de la tabla","en-GB":"Show all table content",de:"Alle Tabellendaten anzeigen",ja:"テーブルのすべての内容を表示",ko:"테이블의 모든 내용 표시",zh:"显示表格的所有内容",it:"Mostra tutto il contenuto della tabella",pt:"Mostrar todo o conteúdo da tabela",hi:"सभी तालिका सामग्री दिखाएं",ar:"اظهار جميع محتويات الجدول",ru:"Показать все данные таблицы",tr:"Tüm tablo içeriğini göster"}}},localId:"table::local::../@intlayer/design-system/src/components/Table/table.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/Table/table.content.ts"}],qB=[{key:"version-switcher",autoFill:"./{{key}}.content.json",content:{versionSwitcherLabel:{nodeType:"translation",translation:{en:"Version selector","en-GB":"Version selector",fr:"Sélecteur de version",es:"Selector de versión",de:"Version wähler",ja:"バージョンセレクター",ko:"버전 선택기",zh:"版本选择器",it:"Selettore di versione",pt:"Seletor de versão",hi:"संस्करण चयनकर्ता",ar:"منتقي الإصدار",ru:"Выбор версии",tr:"Sürüm seçici"}},versionListLabel:{nodeType:"translation",translation:{en:"Version list","en-GB":"Version list",fr:"Liste des versions",es:"Lista de versiones",de:"Versionsliste",ja:"バージョンリスト",ko:"버전 목록",zh:"版本列表",it:"Elenco delle versioni",pt:"Lista de versões",hi:"संस्करण सूची",ar:"قائمة الإصدارات",ru:"Список версий",tr:"Sürüm listesi"}},switchTo:{nodeType:"translation",translation:{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:"Переключиться на",tr:"Geçiş yap"}}},localId:"version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts",location:"locale",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"}],WB={breadcrumb:TB,code:CB,"copy-button":RB,"dictionary-detail-schema":kB,"dictionary-details":NB,"dictionary-edition-drawer":IB,"dictionary-field-editor":OB,"dictionary-form-schema":DB,"dictionary-form":LB,"dictionary-list-drawer":jB,"expand-collapse":PB,loader:MB,"locale-switcher-content":zB,"locale-switcher":BB,"long-press-message":VB,"navigation-view":UB,"no-application-url-view":FB,"node-type-selector":$B,"save-dictionary-details":HB,"structure-view":GB,table:KB,"version-switcher":qB},ZB=(e,t,n=WB)=>{const r=n?.[e];if(!r)return null;for(const a of r)if(sr(a.content,t))return a},YB=(e,t,n)=>{let r=e,a=null,s=null;for(const l of n)a=r,(l.type===$.Object||l.type===$.Array)&&(s=l.key,r=r[l.key]),(l.type===$.Translation||l.type===$.Enumeration||l.type===$.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===$.Markdown||l.type===$.ReactNode||l.type===$.Insertion||l.type===$.File)&&(s=l.type,r=r[l.type]);if(a&&s!==null)if(Array.isArray(a))a[s]=r;else{const l={};for(const u of Object.keys(a))u===s&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},XB=(e,t)=>JSON.stringify([e,t]),QB=e=>{const t=new Map;function n(r,a){if(e.name==="DisplayNames"&&typeof Intl?.DisplayNames!="function")return r;const s=XB(r??B.ENGLISH,a);let l=t.get(s);return l||(l=new e(r,a),t.set(s,l)),l}return n.prototype=e.prototype,n},JB=()=>new Proxy(Intl,{get:(e,t,n)=>{const r=Reflect.get(e,t,n);return typeof r=="function"&&/^[A-Z]/.test(String(t))?QB(r):r}}),eV=JB(),tV=e=>{switch(e){case B.ENGLISH:case B.FRENCH:case B.SPANISH:case B.PORTUGUESE:case B.GERMAN:case B.AFRIKAANS:case B.AZERI_LATIN:case B.BELARUSIAN:case B.BULGARIAN:case B.BOSNIAN:case B.CATALAN:case B.CZECH:case B.WELSH:case B.DANISH:case B.ESPERANTO:case B.ESTONIAN:case B.BASQUE:case B.FINNISH:case B.FAROESE:case B.GALICIAN:case B.GREEK:case B.CROATIAN:case B.HUNGARIAN:case B.ARMENIAN:case B.INDONESIAN:case B.ICELANDIC:case B.ITALIAN:case B.JAPANESE:case B.GEORGIAN:case B.KAZAKH:case B.KANNADA:case B.KOREAN:case B.KONKANI:case B.KYRGYZ:case B.LITHUANIAN:case B.LATVIAN:case B.MAORI:case B.FYRO_MACEDONIAN:case B.MONGOLIAN:case B.MARATHI:case B.MALAY:case B.MALTESE:case B.NORWEGIAN_BOKMAL:case B.DUTCH:case B.NORTHERN_SOTHO:case B.PUNJABI:case B.POLISH:case B.QUECHUA:case B.ROMANIAN:case B.RUSSIAN:case B.SANSKRIT:case B.SAMI_NORTHERN:case B.SLOVAK:case B.SLOVENIAN:case B.ALBANIAN:case B.SERBIAN_LATIN:case B.SWEDISH:case B.SWAHILI:case B.TAMIL:case B.TELUGU:case B.THAI:case B.TAGALOG:case B.TSWANA:case B.TURKISH:case B.UKRAINIAN:case B.UZBEK_LATIN:case B.VIETNAMESE:case B.XHOSA:case B.CHINESE_SIMPLIFIED:case B.CHINESE_TRADITIONAL:case B.ZULU:case B.AFRIKAANS_SOUTH_AFRICA:case B.AZERI_LATIN_AZERBAIJAN:case B.BELARUSIAN_BELARUS:case B.BULGARIAN_BULGARIA:case B.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case B.CATALAN_SPAIN:case B.CZECH_CZECH_REPUBLIC:case B.WELSH_UNITED_KINGDOM:case B.DANISH_DENMARK:case B.GERMAN_AUSTRIA:case B.GERMAN_SWITZERLAND:case B.GERMAN_GERMANY:case B.GERMAN_LIECHTENSTEIN:case B.GERMAN_LUXEMBOURG:case B.GREEK_GREECE:case B.ENGLISH_AUSTRALIA:case B.ENGLISH_BELIZE:case B.ENGLISH_CANADA:case B.ENGLISH_CARIBBEAN:case B.ENGLISH_UNITED_KINGDOM:case B.ENGLISH_IRELAND:case B.ENGLISH_JAMAICA:case B.ENGLISH_NEW_ZEALAND:case B.ENGLISH_PHILIPPINES:case B.ENGLISH_TRINIDAD_AND_TOBAGO:case B.ENGLISH_UNITED_STATES:case B.ENGLISH_SOUTH_AFRICA:case B.ENGLISH_ZIMBABWE:case B.SPANISH_ARGENTINA:case B.SPANISH_BOLIVIA:case B.SPANISH_CHILE:case B.SPANISH_COLOMBIA:case B.SPANISH_COSTA_RICA:case B.SPANISH_DOMINICAN_REPUBLIC:case B.SPANISH_ECUADOR:case B.SPANISH_SPAIN:case B.SPANISH_GUATEMALA:case B.SPANISH_HONDURAS:case B.SPANISH_MEXICO:case B.SPANISH_NICARAGUA:case B.SPANISH_PANAMA:case B.SPANISH_PERU:case B.SPANISH_PUERTO_RICO:case B.SPANISH_PARAGUAY:case B.SPANISH_EL_SALVADOR:case B.SPANISH_URUGUAY:case B.SPANISH_VENEZUELA:case B.ESTONIAN_ESTONIA:case B.BASQUE_SPAIN:case B.FINNISH_FINLAND:case B.FAROESE_FAROE_ISLANDS:case B.FRENCH_BELGIUM:case B.FRENCH_CANADA:case B.FRENCH_SWITZERLAND:case B.FRENCH_FRANCE:case B.FRENCH_LUXEMBOURG:case B.FRENCH_PRINCIPALITY_OF_MONACO:case B.GALICIAN_SPAIN:case B.GUJARATI_INDIA:case B.HEBREW_ISRAEL:case B.HINDI_INDIA:case B.CROATIAN_BOSNIA_AND_HERZEGOVINA:case B.CROATIAN_CROATIA:case B.HUNGARIAN_HUNGARY:case B.ARMENIAN_ARMENIA:case B.INDONESIAN_INDONESIA:case B.ICELANDIC_ICELAND:case B.ITALIAN_SWITZERLAND:case B.ITALIAN_ITALY:case B.JAPANESE_JAPAN:case B.GEORGIAN_GEORGIA:case B.KAZAKH_KAZAKHSTAN:case B.KANNADA_INDIA:case B.KOREAN_KOREA:case B.KONKANI_INDIA:case B.KYRGYZ_KYRGYZSTAN:case B.LITHUANIAN_LITHUANIA:case B.LATVIAN_LATVIA:case B.MAORI_NEW_ZEALAND:case B.FYRO_MACEDONIAN_MACEDONIA:case B.MONGOLIAN_MONGOLIA:case B.MARATHI_INDIA:case B.MALAY_BRUNEI_DARUSSALAM:case B.MALAY_MALAYSIA:case B.MALTESE_MALTA:case B.NORWEGIAN_BOKMAL_NORWAY:case B.DUTCH_BELGIUM:case B.DUTCH_NETHERLANDS:case B.NORWEGIAN_NYNORSK_NORWAY:case B.NORTHERN_SOTHO_SOUTH_AFRICA:case B.PUNJABI_INDIA:case B.POLISH_POLAND:case B.PORTUGUESE_BRAZIL:case B.PORTUGUESE_PORTUGAL:case B.QUECHUA_BOLIVIA:case B.QUECHUA_ECUADOR:case B.QUECHUA_PERU:case B.ROMANIAN_ROMANIA:case B.RUSSIAN_RUSSIA:case B.SANSKRIT_INDIA:case B.SAMI_NORTHERN_FINLAND:case B.SAMI_NORTHERN_NORWAY:case B.SAMI_NORTHERN_SWEDEN:case B.SLOVAK_SLOVAKIA:case B.SLOVENIAN_SLOVENIA:case B.ALBANIAN_ALBANIA:case B.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case B.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case B.SWAHILI_KENYA:case B.TAMIL_INDIA:case B.TELUGU_INDIA:case B.THAI_THAILAND:case B.TAGALOG_PHILIPPINES:case B.TSWANA_SOUTH_AFRICA:case B.TURKISH_TURKEY:case B.TATAR_RUSSIA:case B.TSOGA:case B.UKRAINIAN_UKRAINE:case B.UZBEK_LATIN_UZBEKISTAN:case B.VIETNAMESE_VIET_NAM:case B.XHOSA_SOUTH_AFRICA:case B.CHINESE_HONG_KONG:case B.CHINESE_MACAU:case B.CHINESE_SINGAPORE:case B.ZULU_SOUTH_AFRICA:return"ltr";case B.ARABIC:case B.FARSI:case B.URDU:case B.PASHTO:case B.SYRIAC:case B.ARABIC_UNITED_ARAB_EMIRATES:case B.ARABIC_BAHRAIN:case B.ARABIC_ALGERIA:case B.ARABIC_EGYPT:case B.ARABIC_IRAQ:case B.ARABIC_JORDAN:case B.ARABIC_KUWAIT:case B.ARABIC_LEBANON:case B.ARABIC_LIBYA:case B.ARABIC_MOROCCO:case B.ARABIC_OMAN:case B.ARABIC_QATAR:case B.ARABIC_SAUDI_ARABIA:case B.ARABIC_SYRIA:case B.ARABIC_TUNISIA:case B.ARABIC_YEMEN:case B.FARSI_IRAN:case B.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case B.PASHTO_AFGHANISTAN:case B.SYRIAC_SYRIA:return"rtl";default:return"auto"}},$R=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),sf=(e,t=e)=>new eV.DisplayNames(t,{type:"language"}).of(e)??"Unknown locale",nV=(e,t=rt.internationalization.locales)=>{const n=$R(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),s=a.pathname;s.startsWith("/")||(a.pathname=`/${s}`);const l=s.split("/"),u=l[1];if(t.includes(u)){l.splice(1,1);const d=l.join("/")??"/";a.pathname=d}return n?a.toString():a.toString().replace("http://example.com","")},rV=(e,t=rt.internationalization.locales,n=rt.internationalization.defaultLocale,r=rt.middleware.prefixDefault)=>{const a=nV(e,t),s=$R(a),l=s?new URL(a):new URL(a,"http://example.com");let u=l.pathname;u.startsWith("/")||(u=`/${u}`);const d=s?`${l.protocol}//${l.host}`:"";return t.reduce((p,g)=>{const y=g.toString()===n.toString();let x=r||!y?`/${g}${u}`:u;x.length>1&&x.endsWith("/")&&(x=x.slice(0,-1));const A=s?`${d}${x}${l.search}${l.hash}`:`${x}${l.search}${l.hash}`;return p[g]=A,p},{})},iV=(e,t,n=rt.internationalization.locales,r=rt.internationalization.defaultLocale,a=rt.middleware.prefixDefault)=>rV(e,n,r,a)[t],aV=(e,t=rt.internationalization.locales,n=rt.internationalization.defaultLocale)=>{const r=[e].flat(),a=s=>s.trim().toLowerCase();try{for(const s of r){const l=a(s),u=t.find(p=>a(p)===l);if(u)return u;const[d]=l.split("-"),f=t.find(p=>a(p).split("-")[0]===d);if(f)return f}}catch{}return n},oV=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(s=>{const l=s.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},HR=e=>{try{const t=e.split(/\r?\n/),n=t.find(u=>u.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1,s=null,l=[];for(let u=0;u<t.length;u++){const d=t[u];if(d.trim()==="---")if(a){s&&l.length>0&&(r[s]=l);break}else{a=!0;continue}if(a){const p=d.match(/^\s*-\s+(.+)$/);if(p&&s){l.push(p[1].trim());continue}s&&l.length>0&&(r[s]=l,s=null,l=[]);const g=d.match(/^([^:]+)\s*:\s*(.*)$/);if(g){const y=g[1].trim(),_=g[2].trim();if(_==="")s=y,l=[];else try{r[y]=oV(_)}catch{r[y]=_}}}}return r}catch{return{}}},Wc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),sV=(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 a=n.pathname.replace(/\/$/,""),s=r.pathname.replace(/\/$/,"");return!(a!==""&&s!==""&&a!==s)}catch(n){return console.error("Invalid URL(s)",n),!1}},lV=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)};var Sn=(e=>(e.INTLAYER_CONFIGURATION="INTLAYER_CONFIGURATION",e.INTLAYER_CURRENT_LOCALE="INTLAYER_CURRENT_LOCALE",e.INTLAYER_EDITOR_ENABLED="INTLAYER_EDITOR_ENABLED",e.INTLAYER_URL_CHANGE="INTLAYER_URL_CHANGE",e.INTLAYER_HOVERED_CONTENT_CHANGED="INTLAYER_HOVERED_CONTENT_CHANGED",e.INTLAYER_FOCUSED_CONTENT_CHANGED="INTLAYER_FOCUSED_CONTENT_CHANGED",e.INTLAYER_LOCALE_DICTIONARIES_CHANGED="INTLAYER_LOCALE_DICTIONARIES_CHANGED",e.INTLAYER_DISTANT_DICTIONARIES_CHANGED="INTLAYER_DISTANT_DICTIONARIES_CHANGED",e.INTLAYER_EDITED_CONTENT_CHANGED="INTLAYER_EDITED_CONTENT_CHANGED",e.INTLAYER_IFRAME_CLICKED="INTLAYER_IFRAME_CLICKED",e))(Sn||{});const on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function cV(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let gg;const uV=new Uint8Array(16);function dV(){if(!gg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gg=crypto.getRandomValues.bind(crypto)}return gg(uV)}const fV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bA={randomUUID:fV};function hV(e,t,n){if(bA.randomUUID&&!e)return bA.randomUUID();e=e||{};const r=e.random??e.rng?.()??dV();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,cV(r)}const{editor:yg}=rt,GR=E.createContext({postMessage:()=>null,allowedOrigins:[yg?.applicationURL,yg?.editorURL,yg?.cmsURL],senderId:""}),_A=({children:e,allowedOrigins:t,postMessage:n})=>{const r=E.useRef(hV()),a=E.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return v.jsx(GR.Provider,{value:a,children:e})},sb=()=>E.useContext(GR),xs=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:s}=sb();return E.useEffect(()=>{if(t){const u=d=>{const{type:f,data:p,senderId:g}=d.data;f===e&&g!==s&&(typeof r>"u"||r?.some(y=>sV(y,d.origin))||r?.includes("*"))&&t(p)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,a,s,n]),u=>{a({type:e,data:u,senderId:s})}},pV=(e,t)=>typeof e=="function"?e(t):e,ia=(e,t,n)=>{const{postMessage:r,senderId:a}=sb(),{emit:s,receive:l}=n??{emit:!0,receive:!0},u=(_,x)=>{const A=pV(_,x);return s&&typeof r=="function"&&typeof A<"u"&&r({type:`${e}/post`,data:A,senderId:a}),A},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:a})},[f,p]=E.useState(()=>u(t)),g=_=>p(x=>u(_,x));xs(`${e}/post`,l?_=>{p(_)}:void 0);const y=(_,x)=>{s&&typeof r=="function"&&x!==a&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:a}))};return xs(`${e}/get`,s?y:void 0,f),E.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:a})},[]),[f,g,d]},KR=E.createContext(void 0),mV=({children:e,configuration:t})=>v.jsx(KR.Provider,{value:t,children:e}),Gr=()=>E.useContext(KR),qR=E.createContext(void 0),WR=E.createContext(void 0),gV=({children:e})=>{const[t,n]=ia(Sn.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=E.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=E.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{s.localId&&n(l=>({...l,[s.localId]:s}))}}),[n]);return v.jsx(qR.Provider,{value:r,children:v.jsx(WR.Provider,{value:a,children:e})})},dh=()=>E.useContext(WR),ZR=()=>{const e=dh(),t=E.useContext(qR);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},YR=E.createContext(void 0),yV=e=>xs(`${Sn.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),XR=E.createContext(void 0),EA=(e,t)=>typeof e=="function"?e(t):e,vV=({children:e})=>{const{localeDictionaries:t}=ZR(),[n,r]=ia(Sn.INTLAYER_EDITED_CONTENT_CHANGED),a=_=>{let x=EA(_);return r(A=>(x=EA(_,A?.[x.key]),{...A,[x.key]:x})),x},s=(_,x)=>{r(A=>({...A,[_]:{...A?.[_],content:x}}))},l=(_,x,A=[],C=!0)=>{r(w=>{const S=t[_]?.content,T=structuredClone(w?.[_]?.content??S);let N=A;if(!C){let O=0;const D=A.slice(0,-1),j=A[A.length-1];let H=j.key;for(;typeof sr(T,N)<"u";)O++,H=O===0?j.key:`${j.key} (${O})`,N=[...D,{...j,key:H}]}const R=vA(T,N,x);return{...w,[_]:{...w?.[_],content:R}}})},u=(_,x,A=[])=>{r(C=>{const w=t[_]?.content,S=structuredClone(C?.[_]?.content??w),T=YB(S,x,A);return{...C,[_]:{...C?.[_],content:T}}})},d=(_,x)=>{r(A=>{const C=t[_]?.content,w=structuredClone(A?.[_]?.content??C),S=sr(C,x),T=vA(w,x,S);return{...A,[_]:{...A?.[_],content:T}}})},f=_=>{r(x=>{const A={...x};return delete A[_],A})},p=_=>{r(x=>Object.entries(x).reduce((C,[w,S])=>w===_?C:{...C,[w]:S},{}))},g=()=>{r({})},y=(_,x)=>{if(!n)return;if(_.includes(":local:")||_.includes(":remote:")){const w=n?.[_]?.content??{};return sr(w,x)}const C=Object.keys(n).filter(w=>w.startsWith(`${_}:`));for(const w of C){const S=n?.[w]?.content??{},T=sr(S,x);if(T)return T}};return v.jsx(YR.Provider,{value:{editedContent:n},children:v.jsx(XR.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:s,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:p,clearEditedContent:g,getEditedContentValue:y},children:e})})},Ds=()=>E.useContext(XR),xn=()=>{const e=E.useContext(YR),t=Ds();return{...e,...t}},QR=E.createContext({enabled:!1}),bV=e=>ia(Sn.INTLAYER_EDITOR_ENABLED,!1,e),_V=e=>xs(`${Sn.INTLAYER_EDITOR_ENABLED}/post`,e),JR=e=>xs(`${Sn.INTLAYER_EDITOR_ENABLED}/get`,e),EV=({children:e})=>{const[t]=bV({emit:!1,receive:!0});return v.jsx(QR.Provider,{value:{enabled:t},children:e})},e1=()=>E.useContext(QR),t1=E.createContext(void 0),n1=E.createContext(void 0),SV=({children:e})=>{const[t,n]=ia(Sn.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(s=>s&&{...s,keyPath:a})};return v.jsx(t1.Provider,{value:{focusedContent:t},children:v.jsx(n1.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},lb=()=>{const e=E.useContext(n1);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},da=()=>{const e=lb(),t=E.useContext(t1);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},SA=({children:e})=>{const t=yV();return E.useEffect(()=>{t()},[]),v.jsx(gV,{children:v.jsx(vV,{children:v.jsx(SV,{children:e})})})},xV=({children:e,fallback:t})=>{const n=JR(),{enabled:r}=e1();return E.useEffect(()=>{r||n()},[r]),r?e:t},AV=({children:e,fallback:t})=>{const[n,r]=E.useState(!1);return E.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},wV=({children:e,configuration:t,...n})=>v.jsx(EV,{children:v.jsx(mV,{configuration:t,children:n.mode==="editor"?v.jsx(_A,{...n,children:v.jsx(SA,{children:e})}):v.jsx(AV,{fallback:e,children:v.jsx(_A,{...n,children:v.jsx(xV,{fallback:e,children:v.jsx(SA,{children:e})})})})})}),TV=(e,t)=>ia(Sn.INTLAYER_URL_CHANGE,e,t),CV=()=>xs(Sn.INTLAYER_IFRAME_CLICKED,lV);/*! js-cookie v3.0.5 | MIT */function Id(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 RV={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 Iy(e,t){function n(a,s,l){if(!(typeof document>"u")){l=Id({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var d in l)l[d]&&(u+="; "+d,l[d]!==!0&&(u+="="+l[d].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],l={},u=0;u<s.length;u++){var d=s[u].split("="),f=d.slice(1).join("=");try{var p=decodeURIComponent(d[0]);if(l[p]=e.read(f,p),a===p)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Id({},s,{expires:-1}))},withAttributes:function(a){return Iy(this.converter,Id({},this.attributes,a))},withConverter:function(a){return Iy(Id({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var r1=Iy(RV,{path:"/"});const{cookieName:i1}=rt.middleware,kV={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},cb=r1.get(i1),a1=e=>{r1.set(i1,e,kV)},NV=()=>({localeCookie:cb,setLocaleCookie:a1}),Zc=E.createContext({locale:cb??rt?.internationalization?.defaultLocale,setLocale:()=>null,disableEditor:!1}),IV=()=>E.useContext(Zc),OV=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:s}=rt??{},{defaultLocale:l,locales:u}=s??{},d=e??cb??t??l,[f,p]=ia(Sn.INTLAYER_CURRENT_LOCALE,d),y=r??(x=>{if(f.toString()!==x.toString()){if(!u?.map(String).includes(x)){console.error(`Locale ${x} is not available`);return}p(x),a1(x)}}),_=aV(e??f);return v.jsx(Zc.Provider,{value:{locale:_,setLocale:y,disableEditor:a},children:n})},Cf=({children:e,value:t,additionalProps:n})=>{const r=E.isValidElement(e)?e:v.jsx(v.Fragment,{children:e});return new Proxy(r,{get(a,s,l){return s==="value"?t:n&&Object.keys(n).includes(s)?n[s]:Reflect.get(a,s,l)}})},DV=(e,t,n)=>VR(e,t,[s1,l1,c1]),cn=(e,t)=>{const{locale:n}=E.useContext(Zc);return E.useMemo(()=>DV(e,n),[e,n,t])},ub=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=rt?.internationalization??{},{locale:r,setLocale:a}=E.useContext(Zc),{setLocaleCookie:s}=NV(),l=E.useCallback(u=>{if(!n?.map(String).includes(u)){console.error(`Locale ${u} is not available`);return}a(u),s(u),e?.(u)},[n,e,s,a]);return{locale:r,defaultLocale:t,availableLocales:n,setLocale:l}},LV=250,jV=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:a,pressDuration:s=LV,isSelecting:l,...u})=>{const d=E.useRef(null),[f,p]=E.useState(!1),[g,y]=E.useState(l),_=E.useRef(null),x=typeof e=="string",A=()=>{y(!0),t()},C=()=>{_.current=setTimeout(()=>{A()},s)},w=()=>{_.current&&(clearTimeout(_.current),_.current=null)},S=()=>{w(),C()},T=()=>{p(!0),n?.()},N=()=>{r?.(),p(!1),w()},R=E.useCallback(j=>{d.current&&!d.current.contains(j.target)&&(y(!1),a?.())},[a]);E.useEffect(()=>(document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}),[R]);const O=j=>{g&&(j.preventDefault(),j.stopPropagation())},D=()=>{y(!1)};return v.jsx("span",{style:{display:x?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:l||g||f?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:O,onMouseDown:S,onMouseUp:N,onMouseLeave:N,onTouchStart:S,onTouchEnd:N,onTouchCancel:N,onBlur:D,onMouseEnter:T,ref:d,...u,children:e})},PV=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=da(),{postMessage:s,senderId:l}=sb(),u=E.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),d=E.useCallback(()=>s({type:`${Sn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:n},senderId:l}),[t,n]),f=E.useCallback(()=>s({type:`${Sn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:l}),[l]),p=E.useMemo(()=>(r?.dictionaryKey===t&&(r?.keyPath?.length??0)>0&&Wc(r?.keyPath??[],n))??!1,[r,n,t]);return v.jsx(jV,{onPress:u,onHover:d,onUnhover:f,isSelecting:p,children:e})},Rf=({children:e,...t})=>{const{enabled:n}=e1(),{disableEditor:r}=IV();return n&&!r?v.jsx(PV,{...t,children:e}):e},db=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Ds();return r?r.getEditedContentValue(e,t)??n:n},MV=e=>{const t=db(e);if(typeof t=="object"){const n=ob(t,e,e.locale);return typeof n!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof n}. Expected string. Value ${JSON.stringify(n)}`),e.children):n}return t},zV=E.createContext({renderMarkdown:e=>e}),BV=()=>E.useContext(zV),VV=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=BV(),s=db({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const l=ob(s,{dictionaryKey:e,keyPath:t},r);return typeof l!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof l}. Expected string. Value ${JSON.stringify(l)}`),a(n)):a(l)}return a(s)},UV=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=db({dictionaryKey:e,keyPath:t,children:n}),s=HR(a);return sr(s,r)},o1=e=>{if(typeof e=="string")return e;const n=(s=>{if(s?.props&&typeof s.props.children=="object"){const l=[],{children:u}=s.props;return Object.keys(u??{}).forEach(d=>{l.push(o1((u??{})[d]))}),{...s,props:{...s.props,children:l}}}return{...s,props:{...s.props,children:s.props?.children??[]}}})(e),{type:r,props:a}=n;return E.createElement(r??"span",a,...a.children)},s1={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>Cf({...n,value:n.children,children:E.createElement(Rf,{...n,key:n.children},v.jsx(MV,{...n,children:n.children}))})},l1={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>Cf({...n,value:"[[react-element]]",children:v.jsx(Rf,{...n,children:o1(e)})})},FV={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,s=HR(e),u=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>Cf({...f,value:d,children:v.jsx(Rf,{...a,children:v.jsx(UV,{...a,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return Cf({...t,value:e,children:v.jsx(Rf,{...a,children:v.jsx(VV,{...a,children:e})}),additionalProps:{metadata:u}})}},c1={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===$.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:$.Markdown}],a=e[$.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[FV,...t.plugins??[]]})}},$V=(e,t,n)=>BR(e,t,[s1,l1,c1]),Yc=(e,t)=>{const{locale:n}=E.useContext(Zc);return E.useMemo(()=>$V(e,n),[e,n,t])};/**
|
|
52
|
-
* react-router v7.8.2
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Remix Software Inc.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
58
|
-
*
|
|
59
|
-
* @license MIT
|
|
60
|
-
*/var xA="popstate";function HV(e={}){function t(r,a){let{pathname:s,search:l,hash:u}=r.location;return Oy("",{pathname:s,search:l,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:kc(a)}return KV(t,n,null,e)}function At(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $r(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GV(){return Math.random().toString(36).substring(2,10)}function AA(e,t){return{usr:e.state,key:e.key,idx:t}}function Oy(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ls(t):t,state:n,key:t&&t.key||r||GV()}}function kc({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 Ls(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 KV(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,u="POP",d=null,f=p();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function p(){return(l.state||{idx:null}).idx}function g(){u="POP";let C=p(),w=C==null?null:C-f;f=C,d&&d({action:u,location:A.location,delta:w})}function y(C,w){u="PUSH";let S=Oy(A.location,C,w);f=p()+1;let T=AA(S,f),N=A.createHref(S);try{l.pushState(T,"",N)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;a.location.assign(N)}s&&d&&d({action:u,location:A.location,delta:1})}function _(C,w){u="REPLACE";let S=Oy(A.location,C,w);f=p();let T=AA(S,f),N=A.createHref(S);l.replaceState(T,"",N),s&&d&&d({action:u,location:A.location,delta:0})}function x(C){return qV(C)}let A={get action(){return u},get location(){return e(a,l)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(xA,g),d=C,()=>{a.removeEventListener(xA,g),d=null}},createHref(C){return t(a,C)},createURL:x,encodeLocation(C){let w=x(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:y,replace:_,go(C){return l.go(C)}};return A}function qV(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),At(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:kc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function u1(e,t,n="/"){return WV(e,t,n,!1)}function WV(e,t,n,r){let a=typeof t=="string"?Ls(t):t,s=gi(a.pathname||"/",n);if(s==null)return null;let l=d1(e);ZV(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=oU(s);u=iU(l[d],f,r)}return u}function d1(e,t=[],n=[],r="",a=!1){let s=(l,u,d=a,f)=>{let p={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&d)return;At(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let g=mi([r,p.relativePath]),y=n.concat(p);l.children&&l.children.length>0&&(At(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),d1(l.children,t,y,g,d)),!(l.path==null&&!l.index)&&t.push({path:g,score:nU(g,l.index),routesMeta:y})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))s(l,u);else for(let d of f1(l.path))s(l,u,!0,d)}),t}function f1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=f1(r.join("/")),u=[];return u.push(...l.map(d=>d===""?s:[s,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function ZV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var YV=/^:[\w-]+$/,XV=3,QV=2,JV=1,eU=10,tU=-2,wA=e=>e==="*";function nU(e,t){let n=e.split("/"),r=n.length;return n.some(wA)&&(r+=tU),t&&(r+=QV),n.filter(a=>!wA(a)).reduce((a,s)=>a+(YV.test(s)?XV:s===""?JV:eU),r)}function rU(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function iU(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",g=kf({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),y=d.route;if(!g&&f&&n&&!r[r.length-1].route.index&&(g=kf({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!g)return null;Object.assign(a,g.params),l.push({params:a,pathname:mi([s,g.pathname]),pathnameBase:uU(mi([s,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(s=mi([s,g.pathnameBase]))}return l}function kf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=aU(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:g},y)=>{if(p==="*"){let x=u[y]||"";l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const _=u[y];return g&&!_?f[p]=void 0:f[p]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function aU(e,t=!1,n=!0){$r(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function oU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $r(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function gi(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 sU(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ls(e):e;return{pathname:n?n.startsWith("/")?n:lU(n,t):t,search:dU(r),hash:fU(a)}}function lU(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function vg(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 cU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function h1(e){let t=cU(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function p1(e,t,n,r=!1){let a;typeof e=="string"?a=Ls(e):(a={...e},At(!a.pathname||!a.pathname.includes("?"),vg("?","pathname","search",a)),At(!a.pathname||!a.pathname.includes("#"),vg("#","pathname","hash",a)),At(!a.search||!a.search.includes("#"),vg("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,u;if(l==null)u=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}u=g>=0?t[g]:"/"}let d=sU(a,u),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var mi=e=>e.join("/").replace(/\/\/+/g,"/"),uU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function hU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var m1=["POST","PUT","PATCH","DELETE"];new Set(m1);var pU=["GET",...m1];new Set(pU);var js=E.createContext(null);js.displayName="DataRouter";var fh=E.createContext(null);fh.displayName="DataRouterState";E.createContext(!1);var g1=E.createContext({isTransitioning:!1});g1.displayName="ViewTransition";var mU=E.createContext(new Map);mU.displayName="Fetchers";var gU=E.createContext(null);gU.displayName="Await";var Kr=E.createContext(null);Kr.displayName="Navigation";var Xc=E.createContext(null);Xc.displayName="Location";var Si=E.createContext({outlet:null,matches:[],isDataRoute:!1});Si.displayName="Route";var fb=E.createContext(null);fb.displayName="RouteError";function yU(e,{relative:t}={}){At(Qc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Kr),{hash:a,pathname:s,search:l}=Jc(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:mi([n,s])),r.createHref({pathname:u,search:l,hash:a})}function Qc(){return E.useContext(Xc)!=null}function fa(){return At(Qc(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Xc).location}var y1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function v1(e){E.useContext(Kr).static||E.useLayoutEffect(e)}function vU(){let{isDataRoute:e}=E.useContext(Si);return e?IU():bU()}function bU(){At(Qc(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(js),{basename:t,navigator:n}=E.useContext(Kr),{matches:r}=E.useContext(Si),{pathname:a}=fa(),s=JSON.stringify(h1(r)),l=E.useRef(!1);return v1(()=>{l.current=!0}),E.useCallback((d,f={})=>{if($r(l.current,y1),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=p1(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:mi([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,s,a,e])}E.createContext(null);function Jc(e,{relative:t}={}){let{matches:n}=E.useContext(Si),{pathname:r}=fa(),a=JSON.stringify(h1(n));return E.useMemo(()=>p1(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function _U(e,t){return b1(e,t)}function b1(e,t,n,r,a){At(Qc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(Kr),{matches:l}=E.useContext(Si),u=l[l.length-1],d=u?u.params:{},f=u?u.pathname:"/",p=u?u.pathnameBase:"/",g=u&&u.route;{let S=g&&g.path||"";_1(f,!g||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${S}">) 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.
|
|
61
|
-
|
|
62
|
-
Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let y=fa(),_;if(t){let S=typeof t=="string"?Ls(t):t;At(p==="/"||S.pathname?.startsWith(p),`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 "${p}" but pathname "${S.pathname}" was given in the \`location\` prop.`),_=S}else _=y;let x=_.pathname||"/",A=x;if(p!=="/"){let S=p.replace(/^\//,"").split("/");A="/"+x.replace(/^\//,"").split("/").slice(S.length).join("/")}let C=u1(e,{pathname:A});$r(g||C!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),$r(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.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 w=wU(C&&C.map(S=>Object.assign({},S,{params:Object.assign({},d,S.params),pathname:mi([p,s.encodeLocation?s.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?p:mi([p,s.encodeLocation?s.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),l,n,r,a);return t&&w?E.createElement(Xc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},w):w}function EU(){let e=NU(),t=hU(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)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:a},n):null,l)}var SU=E.createElement(EU,null),xU=class extends E.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){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?E.createElement(Si.Provider,{value:this.props.routeContext},E.createElement(fb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function AU({routeContext:e,match:t,children:n}){let r=E.useContext(js);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Si.Provider,{value:e},n)}function wU(e,t=[],n=null,r=null,a=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 s=e,l=n?.errors;if(l!=null){let f=s.findIndex(p=>p.route.id&&l?.[p.route.id]!==void 0);At(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,f+1))}let u=!1,d=-1;if(n)for(let f=0;f<s.length;f++){let p=s[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:g,errors:y}=n,_=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||_){u=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((f,p,g)=>{let y,_=!1,x=null,A=null;n&&(y=l&&p.route.id?l[p.route.id]:void 0,x=p.route.errorElement||SU,u&&(d<0&&g===0?(_1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,A=null):d===g&&(_=!0,A=p.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,g+1)),w=()=>{let S;return y?S=x:_?S=A:p.route.Component?S=E.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=f,E.createElement(AU,{match:p,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:S})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?E.createElement(xU,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:w(),routeContext:{outlet:null,matches:C,isDataRoute:!0},unstable_onError:r}):w()},null)}function hb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TU(e){let t=E.useContext(js);return At(t,hb(e)),t}function CU(e){let t=E.useContext(fh);return At(t,hb(e)),t}function RU(e){let t=E.useContext(Si);return At(t,hb(e)),t}function pb(e){let t=RU(e),n=t.matches[t.matches.length-1];return At(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function kU(){return pb("useRouteId")}function NU(){let e=E.useContext(fb),t=CU("useRouteError"),n=pb("useRouteError");return e!==void 0?e:t.errors?.[n]}function IU(){let{router:e}=TU("useNavigate"),t=pb("useNavigate"),n=E.useRef(!1);return v1(()=>{n.current=!0}),E.useCallback(async(a,s={})=>{$r(n.current,y1),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var TA={};function _1(e,t,n){!t&&!TA[e]&&(TA[e]=!0,$r(!1,n))}E.memo(OU);function OU({routes:e,future:t,state:n,unstable_onError:r}){return b1(e,void 0,n,r,t)}function E1(e){At(!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 DU({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){At(!Qc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Ls(n));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:y="default"}=n,_=E.useMemo(()=>{let x=gi(d,l);return x==null?null:{location:{pathname:x,search:f,hash:p,state:g,key:y},navigationType:r}},[l,d,f,p,g,y,r]);return $r(_!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:E.createElement(Kr.Provider,{value:u},E.createElement(Xc.Provider,{children:t,value:_}))}function LU({children:e,location:t}){return _U(Dy(e),t)}function Dy(e,t=[]){let n=[];return E.Children.forEach(e,(r,a)=>{if(!E.isValidElement(r))return;let s=[...t,a];if(r.type===E.Fragment){n.push.apply(n,Dy(r.props.children,s));return}At(r.type===E1,`[${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>`),At(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.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=Dy(r.props.children,s)),n.push(l)}),n}var lf="get",cf="application/x-www-form-urlencoded";function hh(e){return e!=null&&typeof e.tagName=="string"}function jU(e){return hh(e)&&e.tagName.toLowerCase()==="button"}function PU(e){return hh(e)&&e.tagName.toLowerCase()==="form"}function MU(e){return hh(e)&&e.tagName.toLowerCase()==="input"}function zU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function BU(e,t){return e.button===0&&(!t||t==="_self")&&!zU(e)}var Od=null;function VU(){if(Od===null)try{new FormData(document.createElement("form"),0),Od=!1}catch{Od=!0}return Od}var UU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bg(e){return e!=null&&!UU.has(e)?($r(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${cf}"`),null):e}function FU(e,t){let n,r,a,s,l;if(PU(e)){let u=e.getAttribute("action");r=u?gi(u,t):null,n=e.getAttribute("method")||lf,a=bg(e.getAttribute("enctype"))||cf,s=new FormData(e)}else if(jU(e)||MU(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?gi(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||lf,a=bg(e.getAttribute("formenctype"))||bg(u.getAttribute("enctype"))||cf,s=new FormData(u,e),!VU()){let{name:f,type:p,value:g}=e;if(p==="image"){let y=f?`${f}.`:"";s.append(`${y}x`,"0"),s.append(`${y}y`,"0")}else f&&s.append(f,g)}}else{if(hh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=lf,r=null,a=cf,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $U(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&gi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function HU(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 GU(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 KU(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await HU(s,n);return l.links?l.links():[]}return[]}));return YU(r.flat(1).filter(GU).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function CA(e,t,n,r,a,s){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,f)=>l(d,f)||u(d,f)):s==="data"?t.filter((d,f)=>{let p=r.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(l(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let g=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function qU(e,t,{includeHydrateFallback:n}={}){return WU(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function WU(e){return[...new Set(e)]}function ZU(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function YU(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(ZU(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function S1(){let e=E.useContext(js);return mb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function XU(){let e=E.useContext(fh);return mb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gb=E.createContext(void 0);gb.displayName="FrameworkContext";function x1(){let e=E.useContext(gb);return mb(e,"You must render this element inside a <HydratedRouter> element"),e}function QU(e,t){let n=E.useContext(gb),[r,a]=E.useState(!1),[s,l]=E.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:g}=t,y=E.useRef(null);E.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=w=>{w.forEach(S=>{l(S.isIntersecting)})},C=new IntersectionObserver(A,{threshold:.5});return y.current&&C.observe(y.current),()=>{C.disconnect()}}},[e]),E.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let _=()=>{a(!0)},x=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,y,{}]:[s,y,{onFocus:Zl(u,_),onBlur:Zl(d,x),onMouseEnter:Zl(f,_),onMouseLeave:Zl(p,x),onTouchStart:Zl(g,_)}]:[!1,y,{}]}function Zl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function JU({page:e,...t}){let{router:n}=S1(),r=E.useMemo(()=>u1(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(t2,{page:e,matches:r,...t}):null}function e2(e){let{manifest:t,routeModules:n}=x1(),[r,a]=E.useState([]);return E.useEffect(()=>{let s=!1;return KU(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function t2({page:e,matches:t,...n}){let r=fa(),{manifest:a,routeModules:s}=x1(),{basename:l}=S1(),{loaderData:u,matches:d}=XU(),f=E.useMemo(()=>CA(e,t,d,a,r,"data"),[e,t,d,a,r]),p=E.useMemo(()=>CA(e,t,d,a,r,"assets"),[e,t,d,a,r]),g=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,A=!1;if(t.forEach(w=>{let S=a.routes[w.route.id];!S||!S.hasLoader||(!f.some(T=>T.route.id===w.route.id)&&w.route.id in u&&s[w.route.id]?.shouldRevalidate||S.hasClientLoader?A=!0:x.add(w.route.id))}),x.size===0)return[];let C=$U(e,l,"data");return A&&x.size>0&&C.searchParams.set("_routes",t.filter(w=>x.has(w.route.id)).map(w=>w.route.id).join(",")),[C.pathname+C.search]},[l,u,r,a,f,t,e,s]),y=E.useMemo(()=>qU(p,a),[p,a]),_=e2(p);return E.createElement(E.Fragment,null,g.map(x=>E.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),y.map(x=>E.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),_.map(({key:x,link:A})=>E.createElement("link",{key:x,nonce:n.nonce,...A})))}function n2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{A1&&(window.__reactRouterVersion="7.8.2")}catch{}function r2({basename:e,children:t,window:n}){let r=E.useRef();r.current==null&&(r.current=HV({window:n,v5Compat:!0}));let a=r.current,[s,l]=E.useState({action:a.action,location:a.location}),u=E.useCallback(d=>{E.startTransition(()=>l(d))},[l]);return E.useLayoutEffect(()=>a.listen(u),[a,u]),E.createElement(DU,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var w1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T1=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,state:u,target:d,to:f,preventScrollReset:p,viewTransition:g,...y},_){let{basename:x}=E.useContext(Kr),A=typeof f=="string"&&w1.test(f),C,w=!1;if(typeof f=="string"&&A&&(C=f,A1))try{let H=new URL(window.location.href),Z=f.startsWith("//")?new URL(H.protocol+f):new URL(f),q=gi(Z.pathname,x);Z.origin===H.origin&&q!=null?f=q+Z.search+Z.hash:w=!0}catch{$r(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=yU(f,{relative:a}),[T,N,R]=QU(r,y),O=s2(f,{replace:l,state:u,target:d,preventScrollReset:p,relative:a,viewTransition:g});function D(H){t&&t(H),H.defaultPrevented||O(H)}let j=E.createElement("a",{...y,...R,href:C||S,onClick:w||s?t:D,ref:n2(_,N),target:d,"data-discover":!A&&n==="render"?"true":void 0});return T&&!A?E.createElement(E.Fragment,null,j,E.createElement(JU,{page:S})):j});T1.displayName="Link";var i2=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:u,children:d,...f},p){let g=Jc(l,{relative:f.relative}),y=fa(),_=E.useContext(fh),{navigator:x,basename:A}=E.useContext(Kr),C=_!=null&&f2(g)&&u===!0,w=x.encodeLocation?x.encodeLocation(g).pathname:g.pathname,S=y.pathname,T=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(S=S.toLowerCase(),T=T?T.toLowerCase():null,w=w.toLowerCase()),T&&A&&(T=gi(T,A)||T);const N=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let R=S===w||!a&&S.startsWith(w)&&S.charAt(N)==="/",O=T!=null&&(T===w||!a&&T.startsWith(w)&&T.charAt(w.length)==="/"),D={isActive:R,isPending:O,isTransitioning:C},j=R?t:void 0,H;typeof r=="function"?H=r(D):H=[r,R?"active":null,O?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let Z=typeof s=="function"?s(D):s;return E.createElement(T1,{...f,"aria-current":j,className:H,ref:p,style:Z,to:l,viewTransition:u},typeof d=="function"?d(D):d)});i2.displayName="NavLink";var a2=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=lf,action:u,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:g,...y},_)=>{let x=u2(),A=d2(u,{relative:f}),C=l.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&w1.test(u),S=T=>{if(d&&d(T),T.defaultPrevented)return;T.preventDefault();let N=T.nativeEvent.submitter,R=N?.getAttribute("formmethod")||l;x(N||T.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:a,state:s,relative:f,preventScrollReset:p,viewTransition:g})};return E.createElement("form",{ref:_,method:C,action:A,onSubmit:r?d:S,...y,"data-discover":!w&&e==="render"?"true":void 0})});a2.displayName="Form";function o2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function C1(e){let t=E.useContext(js);return At(t,o2(e)),t}function s2(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let u=vU(),d=fa(),f=Jc(e,{relative:s});return E.useCallback(p=>{if(BU(p,t)){p.preventDefault();let g=n!==void 0?n:kc(d)===kc(f);u(e,{replace:g,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[d,u,f,n,r,t,e,a,s,l])}var l2=0,c2=()=>`__${String(++l2)}__`;function u2(){let{router:e}=C1("useSubmit"),{basename:t}=E.useContext(Kr),n=kU();return E.useCallback(async(r,a={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=FU(r,t);if(a.navigate===!1){let p=a.fetcherKey||c2();await e.fetch(p,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function d2(e,{relative:t}={}){let{basename:n}=E.useContext(Kr),r=E.useContext(Si);At(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Jc(e||".",{relative:t})},l=fa();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),d=u.getAll("index");if(d.some(p=>p==="")){u.delete("index"),d.filter(g=>g).forEach(g=>u.append("index",g));let p=u.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:mi([n,s.pathname])),kc(s)}function f2(e,{relative:t}={}){let n=E.useContext(g1);At(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=C1("useViewTransitionState"),a=Jc(e,{relative:t});if(!n.isTransitioning)return!1;let s=gi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=gi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return kf(a.pathname,l)!=null||kf(a.pathname,s)!=null}var fo=jR();const h2=ib(fo);/**
|
|
63
|
-
* @license lucide-react v0.541.0 - ISC
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the ISC license.
|
|
66
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const p2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),RA=e=>{const t=m2(e);return t.charAt(0).toUpperCase()+t.slice(1)},R1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),g2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
68
|
-
* @license lucide-react v0.541.0 - ISC
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the ISC license.
|
|
71
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var y2={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"};/**
|
|
73
|
-
* @license lucide-react v0.541.0 - ISC
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the ISC license.
|
|
76
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const v2=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...u},d)=>E.createElement("svg",{ref:d,...y2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:R1("lucide",a),...!s&&!g2(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,p])=>E.createElement(f,p)),...Array.isArray(s)?s:[s]]));/**
|
|
78
|
-
* @license lucide-react v0.541.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const yt=(e,t)=>{const n=E.forwardRef(({className:r,...a},s)=>E.createElement(v2,{ref:s,iconNode:t,className:R1(`lucide-${p2(RA(e))}`,`lucide-${e}`,r),...a}));return n.displayName=RA(e),n};/**
|
|
83
|
-
* @license lucide-react v0.541.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const b2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],_2=yt("arrow-left",b2);/**
|
|
88
|
-
* @license lucide-react v0.541.0 - ISC
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the ISC license.
|
|
91
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const E2=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],S2=yt("arrow-up-from-line",E2);/**
|
|
93
|
-
* @license lucide-react v0.541.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const x2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ps=yt("check",x2);/**
|
|
98
|
-
* @license lucide-react v0.541.0 - ISC
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the ISC license.
|
|
101
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const A2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],k1=yt("chevron-down",A2);/**
|
|
103
|
-
* @license lucide-react v0.541.0 - ISC
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the ISC license.
|
|
106
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const w2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],T2=yt("chevron-left",w2);/**
|
|
108
|
-
* @license lucide-react v0.541.0 - ISC
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the ISC license.
|
|
111
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const C2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Nf=yt("chevron-right",C2);/**
|
|
113
|
-
* @license lucide-react v0.541.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const R2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],k2=yt("chevron-up",R2);/**
|
|
118
|
-
* @license lucide-react v0.541.0 - ISC
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the ISC license.
|
|
121
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const N2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],I2=yt("chevrons-up-down",N2);/**
|
|
123
|
-
* @license lucide-react v0.541.0 - ISC
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the ISC license.
|
|
126
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/const O2=[["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"}]],D2=yt("copy-check",O2);/**
|
|
128
|
-
* @license lucide-react v0.541.0 - ISC
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the ISC license.
|
|
131
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/const L2=[["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"}]],j2=yt("copy",L2);/**
|
|
133
|
-
* @license lucide-react v0.541.0 - ISC
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the ISC license.
|
|
136
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const P2=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],M2=yt("download",P2);/**
|
|
138
|
-
* @license lucide-react v0.541.0 - ISC
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the ISC license.
|
|
141
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const z2=[["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"}]],B2=yt("external-link",z2);/**
|
|
143
|
-
* @license lucide-react v0.541.0 - ISC
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the ISC license.
|
|
146
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const V2=[["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"}]],U2=yt("eye-off",V2);/**
|
|
148
|
-
* @license lucide-react v0.541.0 - ISC
|
|
149
|
-
*
|
|
150
|
-
* This source code is licensed under the ISC license.
|
|
151
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const F2=[["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"}]],$2=yt("eye",F2);/**
|
|
153
|
-
* @license lucide-react v0.541.0 - ISC
|
|
154
|
-
*
|
|
155
|
-
* This source code is licensed under the ISC license.
|
|
156
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const H2=[["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"}]],G2=yt("globe",H2);/**
|
|
158
|
-
* @license lucide-react v0.541.0 - ISC
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the ISC license.
|
|
161
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/const K2=[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]],q2=yt("move-diagonal",K2);/**
|
|
163
|
-
* @license lucide-react v0.541.0 - ISC
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the ISC license.
|
|
166
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const W2=[["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"}]],Z2=yt("move-vertical",W2);/**
|
|
168
|
-
* @license lucide-react v0.541.0 - ISC
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the ISC license.
|
|
171
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const Y2=[["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"}]],N1=yt("pencil",Y2);/**
|
|
173
|
-
* @license lucide-react v0.541.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const X2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ph=yt("plus",X2);/**
|
|
178
|
-
* @license lucide-react v0.541.0 - ISC
|
|
179
|
-
*
|
|
180
|
-
* This source code is licensed under the ISC license.
|
|
181
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const Q2=[["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"}]],J2=yt("rotate-ccw",Q2);/**
|
|
183
|
-
* @license lucide-react v0.541.0 - ISC
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the ISC license.
|
|
186
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const eF=[["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"}]],kA=yt("save",eF);/**
|
|
188
|
-
* @license lucide-react v0.541.0 - ISC
|
|
189
|
-
*
|
|
190
|
-
* This source code is licensed under the ISC license.
|
|
191
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const tF=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],nF=yt("search",tF);/**
|
|
193
|
-
* @license lucide-react v0.541.0 - ISC
|
|
194
|
-
*
|
|
195
|
-
* This source code is licensed under the ISC license.
|
|
196
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/const rF=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],mh=yt("trash",rF);/**
|
|
198
|
-
* @license lucide-react v0.541.0 - ISC
|
|
199
|
-
*
|
|
200
|
-
* This source code is licensed under the ISC license.
|
|
201
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const iF=[["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"}]],I1=yt("wand-sparkles",iF);/**
|
|
203
|
-
* @license lucide-react v0.541.0 - ISC
|
|
204
|
-
*
|
|
205
|
-
* This source code is licensed under the ISC license.
|
|
206
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const aF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ho=yt("x",aF);function O1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=O1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gh(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=O1(e))&&(r&&(r+=" "),r+=t);return r}const yb="-",oF=e=>{const t=lF(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(yb);return u[0]===""&&u.length!==1&&u.shift(),D1(u,t)||sF(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},D1=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?D1(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(yb);return t.validators.find(({validator:l})=>l(s))?.classGroupId},NA=/^\[(.+)\]$/,sF=e=>{if(NA.test(e)){const t=NA.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},lF=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)Ly(n[a],r,a,t);return r},Ly=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:IA(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(cF(a)){Ly(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,l])=>{Ly(l,IA(t,s),n,r)})})},IA=(e,t)=>{let n=e;return t.split(yb).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},cF=e=>e.isThemeGetter,uF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return a(s,l),l},set(s,l){n.has(s)?n.set(s,l):a(s,l)}}},jy="!",Py=":",dF=Py.length,fF=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let l=0,u=0,d=0,f;for(let x=0;x<a.length;x++){let A=a[x];if(l===0&&u===0){if(A===Py){s.push(a.slice(d,x)),d=x+dF;continue}if(A==="/"){f=x;continue}}A==="["?l++:A==="]"?l--:A==="("?u++:A===")"&&u--}const p=s.length===0?a:a.substring(d),g=hF(p),y=g!==p,_=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:_}};if(t){const a=t+Py,s=r;r=l=>l.startsWith(a)?s(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=s=>n({className:s,parseClassName:a})}return r},hF=e=>e.endsWith(jy)?e.substring(0,e.length-1):e.startsWith(jy)?e.substring(1):e,pF=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let s=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...s.sort(),l),s=[]):s.push(l)}),a.push(...s.sort()),a}},mF=e=>({cache:uF(e.cacheSize),parseClassName:fF(e),sortModifiers:pF(e),...oF(e)}),gF=/\s+/,yF=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s}=t,l=[],u=e.trim().split(gF);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:g,modifiers:y,hasImportantModifier:_,baseClassName:x,maybePostfixModifierPosition:A}=n(p);if(g){d=p+(d.length>0?" "+d:d);continue}let C=!!A,w=r(C?x.substring(0,A):x);if(!w){if(!C){d=p+(d.length>0?" "+d:d);continue}if(w=r(x),!w){d=p+(d.length>0?" "+d:d);continue}C=!1}const S=s(y).join(":"),T=_?S+jy:S,N=T+w;if(l.includes(N))continue;l.push(N);const R=a(w,C);for(let O=0;O<R.length;++O){const D=R[O];l.push(T+D)}d=p+(d.length>0?" "+d:d)}return d};function vF(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=L1(t))&&(r&&(r+=" "),r+=n);return r}const L1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=L1(e[r]))&&(n&&(n+=" "),n+=t);return n};function bF(e,...t){let n,r,a,s=l;function l(d){const f=t.reduce((p,g)=>g(p),e());return n=mF(f),r=n.cache.get,a=n.cache.set,s=u,u(d)}function u(d){const f=r(d);if(f)return f;const p=yF(d,n);return a(d,p),p}return function(){return s(vF.apply(null,arguments))}}const Ht=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},j1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,P1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_F=/^\d+\/\d+$/,EF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,SF=/\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$/,xF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,AF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rs=e=>_F.test(e),Ke=e=>!!e&&!Number.isNaN(Number(e)),Yi=e=>!!e&&Number.isInteger(Number(e)),_g=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),di=e=>EF.test(e),TF=()=>!0,CF=e=>SF.test(e)&&!xF.test(e),M1=()=>!1,RF=e=>AF.test(e),kF=e=>wF.test(e),NF=e=>!we(e)&&!Te(e),IF=e=>Ms(e,V1,M1),we=e=>j1.test(e),Fa=e=>Ms(e,U1,CF),Eg=e=>Ms(e,PF,Ke),OA=e=>Ms(e,z1,M1),OF=e=>Ms(e,B1,kF),Dd=e=>Ms(e,F1,RF),Te=e=>P1.test(e),Yl=e=>zs(e,U1),DF=e=>zs(e,MF),DA=e=>zs(e,z1),LF=e=>zs(e,V1),jF=e=>zs(e,B1),Ld=e=>zs(e,F1,!0),Ms=(e,t,n)=>{const r=j1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zs=(e,t,n=!1)=>{const r=P1.exec(e);return r?r[1]?t(r[1]):n:!1},z1=e=>e==="position"||e==="percentage",B1=e=>e==="image"||e==="url",V1=e=>e==="length"||e==="size"||e==="bg-size",U1=e=>e==="length",PF=e=>e==="number",MF=e=>e==="family-name",F1=e=>e==="shadow",zF=()=>{const e=Ht("color"),t=Ht("font"),n=Ht("text"),r=Ht("font-weight"),a=Ht("tracking"),s=Ht("leading"),l=Ht("breakpoint"),u=Ht("container"),d=Ht("spacing"),f=Ht("radius"),p=Ht("shadow"),g=Ht("inset-shadow"),y=Ht("text-shadow"),_=Ht("drop-shadow"),x=Ht("blur"),A=Ht("perspective"),C=Ht("aspect"),w=Ht("ease"),S=Ht("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...N(),Te,we],O=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],j=()=>[Te,we,d],H=()=>[rs,"full","auto",...j()],Z=()=>[Yi,"none","subgrid",Te,we],q=()=>["auto",{span:["full",Yi,Te,we]},Yi,Te,we],te=()=>[Yi,"auto",Te,we],ce=()=>["auto","min","max","fr",Te,we],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...j()],X=()=>[rs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],G=()=>[e,Te,we],ge=()=>[...N(),DA,OA,{position:[Te,we]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",LF,IF,{size:[Te,we]}],F=()=>[_g,Yl,Fa],J=()=>["","none","full",f,Te,we],oe=()=>["",Ke,Yl,Fa],he=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Ke,_g,DA,OA],xe=()=>["","none",x,Te,we],Le=()=>["none",Ke,Te,we],Be=()=>["none",Ke,Te,we],Ye=()=>[Ke,Te,we],et=()=>[rs,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[di],breakpoint:[di],color:[TF],container:[di],"drop-shadow":[di],ease:["in","out","in-out"],font:[NF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[di],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[di],shadow:[di],spacing:["px",Ke],text:[di],"text-shadow":[di],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rs,we,Te,C]}],container:["container"],columns:[{columns:[Ke,we,Te,u]}],"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:R()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Yi,"auto",Te,we]}],basis:[{basis:[rs,"full","auto",u,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ke,rs,"auto","initial","none",we]}],grow:[{grow:["",Ke,Te,we]}],shrink:[{shrink:["",Ke,Te,we]}],order:[{order:[Yi,"first","last","none",Te,we]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[u,"screen",...X()]}],"min-w":[{"min-w":[u,"screen","none",...X()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Yl,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Te,Eg]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_g,we]}],"font-family":[{font:[DF,we,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:[a,Te,we]}],"line-clamp":[{"line-clamp":[Ke,"none",Te,Eg]}],leading:[{leading:[s,...j()]}],"list-image":[{"list-image":["none",Te,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ke,"from-font","auto",Te,Fa]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[Ke,"auto",Te,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yi,Te,we],radial:["",Te,we],conic:[Yi,Te,we]},jF,OF]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ke,Te,we]}],"outline-w":[{outline:["",Ke,Yl,Fa]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",p,Ld,Dd]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",g,Ld,Dd]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[Ke,Fa]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",y,Ld,Dd]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[Ke,Te,we]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[Te,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[Ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,we]}],filter:[{filter:["","none",Te,we]}],blur:[{blur:xe()}],brightness:[{brightness:[Ke,Te,we]}],contrast:[{contrast:[Ke,Te,we]}],"drop-shadow":[{"drop-shadow":["","none",_,Ld,Dd]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",Ke,Te,we]}],"hue-rotate":[{"hue-rotate":[Ke,Te,we]}],invert:[{invert:["",Ke,Te,we]}],saturate:[{saturate:[Ke,Te,we]}],sepia:[{sepia:["",Ke,Te,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,we]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Ke,Te,we]}],"backdrop-contrast":[{"backdrop-contrast":[Ke,Te,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ke,Te,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ke,Te,we]}],"backdrop-invert":[{"backdrop-invert":["",Ke,Te,we]}],"backdrop-opacity":[{"backdrop-opacity":[Ke,Te,we]}],"backdrop-saturate":[{"backdrop-saturate":[Ke,Te,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Ke,Te,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ke,"initial",Te,we]}],ease:[{ease:["linear","initial",w,Te,we]}],delay:[{delay:[Ke,Te,we]}],animate:[{animate:["none",S,Te,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Te,we]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Le()}],"rotate-x":[{"rotate-x":Le()}],"rotate-y":[{"rotate-y":Le()}],"rotate-z":[{"rotate-z":Le()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[Te,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"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",Te,we]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",Te,we]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[Ke,Yl,Fa,Eg]}],stroke:[{stroke:["none",...G()]}],"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-x","border-w-y","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-x","border-color-y","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:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$1=bF(zF),_e=(...e)=>$1(gh(e)),LA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jA=gh,ur=(e,t)=>n=>{var r;if(t?.variants==null)return jA(e,n?.class,n?.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(f=>{const p=n?.[f],g=s?.[f];if(p===null)return null;const y=LA(p)||LA(g);return a[f][y]}),u=n&&Object.entries(n).reduce((f,p)=>{let[g,y]=p;return y===void 0||(f[g]=y),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,p)=>{let{class:g,className:y,..._}=p;return Object.entries(_).every(x=>{let[A,C]=x;return Array.isArray(C)?C.includes({...s,...u}[A]):{...s,...u}[A]===C})?[...f,g,y]:f},[]);return jA(e,l,d,n?.class,n?.className)},BF=({className:e,strokeWidth:t=4})=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:_e("size-full",e),children:v.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[v.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[v.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"}),v.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"})]}),v.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[v.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"}),v.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"})]})]})}),As=({children:e,isLoading:t=!0,className:n,...r})=>v.jsx(v.Fragment,{children:t?v.jsx("div",{className:_e("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:v.jsx(BF,{className:"size-10 max-h-full max-w-full"})}):e??v.jsx(v.Fragment,{})});var Kn=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.ICON_SM="icon-sm",e.ICON_MD="icon-md",e.ICON_LG="icon-lg",e.ICON_XL="icon-xl",e))(Kn||{});const Sg=ur("",{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"}});var at=(e=>(e.DEFAULT="default",e.NONE="none",e.OUTLINE="outline",e.LINK="link",e.INVISIBLE_LINK="invisible-link",e.HOVERABLE="hoverable",e.INPUT="input",e))(at||{}),it=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e.TEXT_INVERSE="text-inverse",e.ERROR="error",e.SUCCESS="success",e.CUSTOM="custom",e))(it||{}),ws=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(ws||{});const VF=ur("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:"custom",textAlign:"center",isFullWidth:!1,hasIconRight:!1,hasIconLeft:!1}}),ot=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:s,iconClassName:l,isLoading:u,isActive:d,isFullWidth:f=!1,textAlign:p,disabled:g,label:y,className:_,type:x="button",...A})=>{const C=e==="link"||e==="invisible-link";return v.jsxs("button",{disabled:u||g,"aria-current":d?"page":void 0,"aria-label":y,"aria-busy":u,role:C?"link":void 0,type:x,className:VF({variant:e,size:t,color:n,isFullWidth:f,textAlign:p??(s?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof a<"u"||typeof u<"u"),hasIconRight:typeof r<"u"&&typeof s<"u",className:_}),...A,children:[a&&!u&&v.jsx(a,{className:Sg({size:t,className:l,position:"left"})}),v.jsx(As,{className:Sg({size:t,className:l,position:"left"}),isLoading:u??!1}),v.jsx("span",{children:r}),s&&v.jsx(s,{className:Sg({size:t,className:l,position:"right"})})]})},vb=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:a=!1,minHeight:s=0,...l})=>v.jsx("div",{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?"button":"none",className:_e("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",a&&"focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto",n),...l,children:v.jsx("div",{style:{minHeight:`${s}px`},className:_e(r&&"group-hover/height-smoother:visible",a&&"group-focus/height-smoother:visible",n),children:e})}),H1=({children:e,header:t,isOpen:n=!1,onClick:r,...a})=>{const[s,l]=E.useState(n),u=s==null?void 0:!s;return E.useEffect(()=>{n!=null&&l(n)},[n]),v.jsxs("div",{className:"w-full",children:[v.jsx(ot,{variant:at.HOVERABLE,color:it.TEXT,onClick:d=>{l(f=>!f),r?.(d)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:k1,iconClassName:_e("transform transition-transform duration-500 ease-in-out",s?"rotate-0":"-rotate-180"),...a,children:t}),v.jsx(vb,{tabIndex:u!==!1?void 0:-1,isHidden:u,children:e})]})};var G1=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e.CUSTOM="custom",e))(G1||{});const UF=ur("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"}}),FF=({className:e,variant:t,color:n,...r})=>v.jsx("div",{className:_e(UF({variant:t,color:n}),e),...r});var K1=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e.TEXT_INVERSE="text-inverse",e.ERROR="error",e.SUCCESS="success",e.CUSTOM="custom",e))(K1||{});const $F=ur("gap-3 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/20 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"}}),HF=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},bb=e=>{const{variant:t="default",color:n="primary",children:r,label:a,className:s,isActive:l,underlined:u,locale:d,isExternalLink:f,href:p,...g}=e,{internationalization:y}=rt,_=HF(e),x=typeof r=="string",A=_?"noopener noreferrer nofollow":void 0,C=_?"_blank":"_self",w=d?d===y.defaultLocale?"x-default":d:void 0,S=d&&p&&!_?iV(p,d):p;return v.jsxs("a",{href:S,hrefLang:w,"aria-label":a,rel:A,target:C,"aria-current":l?"page":void 0,className:_e($F({variant:t,color:n,underlined:u,className:s})),...g,children:[t==="button"?v.jsx("span",{children:r}):r,_&&x&&v.jsx(B2,{className:"ml-2 inline-block size-4"})]})},GF=({href:e,lang:t,children:n,onClick:r,color:a,position:s,locale:l,...u})=>{const{linkLabel:d}=cn("breadcrumb");return v.jsxs(v.Fragment,{children:[v.jsx(bb,{href:e,locale:l,color:a,onClick:r,itemProp:"item",isExternalLink:!1,itemScope:!0,itemType:"https://schema.org/WebPage",...u,label:`${d} ${n}`,itemID:e,children:v.jsx("span",{itemProp:"name",children:n})}),v.jsx("meta",{itemProp:"position",content:s.toString()})]})},KF=({children:e,onClick:t,color:n,position:r,...a})=>{const{linkLabel:s}=cn("breadcrumb");return v.jsxs(v.Fragment,{children:[v.jsx(ot,{onClick:t,variant:at.LINK,label:`${s} ${e}`,color:n,itemProp:"item",...a,children:v.jsx("span",{itemProp:"name",children:e})}),v.jsx("meta",{itemProp:"position",content:r.toString()})]})},qF=({children:e,position:t,...n})=>v.jsxs("span",{itemProp:"item",children:[v.jsx("span",{itemProp:"name",...n,children:e}),v.jsx("meta",{itemProp:"position",content:t.toString()})]}),WF=({links:e,className:t,color:n=K1.TEXT,locale:r,elementType:a="page",...s})=>v.jsx("nav",{"aria-label":"breadcrumb",children:v.jsx("ol",{className:_e("flex flex-row flex-wrap items-center gap-2 text-sm",t),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",...s,children:e.map((l,u)=>{const d=u===e.length-1,f=typeof l=="object"&&typeof l.href=="string",p=typeof l=="object"&&typeof l.onClick=="function",y=u===e.length-1?a:void 0,_=l.text??l;let x=v.jsx(qF,{position:u+1,"aria-current":y,children:_},_);f?x=v.jsx(GF,{href:l.href,color:n,position:u+1,locale:r,"aria-current":y,children:_},_):p&&(x=v.jsx(KF,{onClick:l.onClick,color:n,position:u+1,"aria-current":y,children:_},_));const A=v.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:x},_);return d?A:v.jsxs(E.Fragment,{children:[A,v.jsx(Nf,{size:10})]},_)})})});function Qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function PA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function to(...e){return t=>{let n=!1;const r=e.map(a=>{const s=PA(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():PA(e[a],null)}}}}function wt(...e){return E.useCallback(to(...e),e)}function ZF(e,t){const n=E.createContext(t),r=s=>{const{children:l,...u}=s,d=E.useMemo(()=>u,Object.values(u));return v.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function a(s){const l=E.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,a]}function eu(e,t=[]){let n=[];function r(s,l){const u=E.createContext(l),d=n.length;n=[...n,l];const f=g=>{const{scope:y,children:_,...x}=g,A=y?.[e]?.[d]||u,C=E.useMemo(()=>x,Object.values(x));return v.jsx(A.Provider,{value:C,children:_})};f.displayName=s+"Provider";function p(g,y){const _=y?.[e]?.[d]||u,x=E.useContext(_);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[f,p]}const a=()=>{const s=n.map(l=>E.createContext(l));return function(u){const d=u?.[e]||s;return E.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,YF(a,...t)]}function YF(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const g=d(s)[`__scope${f}`];return{...u,...g}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var ln=globalThis?.document?E.useLayoutEffect:()=>{},XF=LR[" useId ".trim().toString()]||(()=>{}),QF=0;function lr(e){const[t,n]=E.useState(XF());return ln(()=>{n(r=>r??String(QF++))},[e]),t?`radix-${t}`:""}var JF=LR[" useInsertionEffect ".trim().toString()]||ln;function If({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,s,l]=e$({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const p=E.useRef(e!==void 0);E.useEffect(()=>{const g=p.current;g!==u&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,r])}const f=E.useCallback(p=>{if(u){const g=t$(p)?p(e):p;g!==e&&l.current?.(g)}else s(p)},[u,e,s,l]);return[d,f]}function e$({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),a=E.useRef(n),s=E.useRef(t);return JF(()=>{s.current=t},[t]),E.useEffect(()=>{a.current!==n&&(s.current?.(n),a.current=n)},[n,a]),[n,r,s]}function t$(e){return typeof e=="function"}function Ts(e){const t=r$(e),n=E.forwardRef((r,a)=>{const{children:s,...l}=r,u=E.Children.toArray(s),d=u.find(a$);if(d){const f=d.props.children,p=u.map(g=>g===d?E.Children.count(f)>1?E.Children.only(null):E.isValidElement(f)?f.props.children:null:g);return v.jsx(t,{...l,ref:a,children:E.isValidElement(f)?E.cloneElement(f,void 0,p):null})}return v.jsx(t,{...l,ref:a,children:s})});return n.displayName=`${e}.Slot`,n}var n$=Ts("Slot");function r$(e){const t=E.forwardRef((n,r)=>{const{children:a,...s}=n;if(E.isValidElement(a)){const l=s$(a),u=o$(s,a.props);return a.type!==E.Fragment&&(u.ref=r?to(r,l):l),E.cloneElement(a,u)}return E.Children.count(a)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var i$=Symbol("radix.slottable");function a$(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===i$}function o$(e,t){const n={...t};for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=(...u)=>{const d=s(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...s}:r==="className"&&(n[r]=[a,s].filter(Boolean).join(" "))}return{...e,...n}}function s$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var l$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=l$.reduce((e,t)=>{const n=Ts(`Primitive.${t}`),r=E.forwardRef((a,s)=>{const{asChild:l,...u}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function q1(e,t){e&&fo.flushSync(()=>e.dispatchEvent(t))}function _r(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current?.(...n),[])}function c$(e,t=globalThis?.document){const n=_r(e);E.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var u$="DismissableLayer",My="dismissableLayer.update",d$="dismissableLayer.pointerDownOutside",f$="dismissableLayer.focusOutside",MA,W1=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yh=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=E.useContext(W1),[p,g]=E.useState(null),y=p?.ownerDocument??globalThis?.document,[,_]=E.useState({}),x=wt(t,D=>g(D)),A=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=A.indexOf(C),S=p?A.indexOf(p):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,N=S>=w,R=p$(D=>{const j=D.target,H=[...f.branches].some(Z=>Z.contains(j));!N||H||(a?.(D),l?.(D),D.defaultPrevented||u?.())},y),O=m$(D=>{const j=D.target;[...f.branches].some(Z=>Z.contains(j))||(s?.(D),l?.(D),D.defaultPrevented||u?.())},y);return c$(D=>{S===f.layers.size-1&&(r?.(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},y),E.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(MA=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),zA(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=MA)}},[p,y,n,f]),E.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),zA())},[p,f]),E.useEffect(()=>{const D=()=>_({});return document.addEventListener(My,D),()=>document.removeEventListener(My,D)},[]),v.jsx(He.div,{...d,ref:x,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:Qe(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Qe(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Qe(e.onPointerDownCapture,R.onPointerDownCapture)})});yh.displayName=u$;var h$="DismissableLayerBranch",Z1=E.forwardRef((e,t)=>{const n=E.useContext(W1),r=E.useRef(null),a=wt(t,r);return E.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v.jsx(He.div,{...e,ref:a})});Z1.displayName=h$;function p$(e,t=globalThis?.document){const n=_r(e),r=E.useRef(!1),a=E.useRef(()=>{});return E.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){Y1(d$,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function m$(e,t=globalThis?.document){const n=_r(e),r=E.useRef(!1);return E.useEffect(()=>{const a=s=>{s.target&&!r.current&&Y1(f$,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zA(){const e=new CustomEvent(My);document.dispatchEvent(e)}function Y1(e,t,n,{discrete:r}){const a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?q1(a,s):a.dispatchEvent(s)}var g$=yh,y$=Z1,xg="focusScope.autoFocusOnMount",Ag="focusScope.autoFocusOnUnmount",BA={bubbles:!1,cancelable:!0},v$="FocusScope",_b=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[u,d]=E.useState(null),f=_r(a),p=_r(s),g=E.useRef(null),y=wt(t,A=>d(A)),_=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let A=function(T){if(_.paused||!u)return;const N=T.target;u.contains(N)?g.current=N:Ji(g.current,{select:!0})},C=function(T){if(_.paused||!u)return;const N=T.relatedTarget;N!==null&&(u.contains(N)||Ji(g.current,{select:!0}))},w=function(T){if(document.activeElement===document.body)for(const R of T)R.removedNodes.length>0&&Ji(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",C);const S=new MutationObserver(w);return u&&S.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",C),S.disconnect()}}},[r,u,_.paused]),E.useEffect(()=>{if(u){UA.add(_);const A=document.activeElement;if(!u.contains(A)){const w=new CustomEvent(xg,BA);u.addEventListener(xg,f),u.dispatchEvent(w),w.defaultPrevented||(b$(A$(X1(u)),{select:!0}),document.activeElement===A&&Ji(u))}return()=>{u.removeEventListener(xg,f),setTimeout(()=>{const w=new CustomEvent(Ag,BA);u.addEventListener(Ag,p),u.dispatchEvent(w),w.defaultPrevented||Ji(A??document.body,{select:!0}),u.removeEventListener(Ag,p),UA.remove(_)},0)}}},[u,f,p,_]);const x=E.useCallback(A=>{if(!n&&!r||_.paused)return;const C=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,w=document.activeElement;if(C&&w){const S=A.currentTarget,[T,N]=_$(S);T&&N?!A.shiftKey&&w===N?(A.preventDefault(),n&&Ji(T,{select:!0})):A.shiftKey&&w===T&&(A.preventDefault(),n&&Ji(N,{select:!0})):w===S&&A.preventDefault()}},[n,r,_.paused]);return v.jsx(He.div,{tabIndex:-1,...l,ref:y,onKeyDown:x})});_b.displayName=v$;function b$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ji(r,{select:t}),document.activeElement!==n)return}function _$(e){const t=X1(e),n=VA(t,e),r=VA(t.reverse(),e);return[n,r]}function X1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function VA(e,t){for(const n of e)if(!E$(n,{upTo:t}))return n}function E$(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 S$(e){return e instanceof HTMLInputElement&&"select"in e}function Ji(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&S$(e)&&t&&e.select()}}var UA=x$();function x$(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=FA(e,t),e.unshift(t)},remove(t){e=FA(e,t),e[0]?.resume()}}}function FA(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function A$(e){return e.filter(t=>t.tagName!=="A")}var w$="Portal",vh=E.forwardRef((e,t)=>{const{container:n,...r}=e,[a,s]=E.useState(!1);ln(()=>s(!0),[]);const l=n||a&&globalThis?.document?.body;return l?h2.createPortal(v.jsx(He.div,{...r,ref:t}),l):null});vh.displayName=w$;function T$(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var tu=e=>{const{present:t,children:n}=e,r=C$(t),a=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),s=wt(r.ref,R$(a));return typeof n=="function"||r.isPresent?E.cloneElement(a,{ref:s}):null};tu.displayName="Presence";function C$(e){const[t,n]=E.useState(),r=E.useRef(null),a=E.useRef(e),s=E.useRef("none"),l=e?"mounted":"unmounted",[u,d]=T$(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const f=jd(r.current);s.current=u==="mounted"?f:"none"},[u]),ln(()=>{const f=r.current,p=a.current;if(p!==e){const y=s.current,_=jd(f);e?d("MOUNT"):_==="none"||f?.display==="none"?d("UNMOUNT"):d(p&&y!==_?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),ln(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,g=_=>{const A=jd(r.current).includes(CSS.escape(_.animationName));if(_.target===t&&A&&(d("ANIMATION_END"),!a.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},y=_=>{_.target===t&&(s.current=jd(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:E.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function jd(e){return e?.animationName||"none"}function R$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wg=0;function Q1(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$A()),document.body.insertAdjacentElement("beforeend",e[1]??$A()),wg++,()=>{wg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wg--}},[])}function $A(){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 jr=function(){return jr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},jr.apply(this,arguments)};function J1(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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function k$(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var uf="right-scroll-bar-position",df="width-before-scroll-bar",N$="with-scroll-bars-hidden",I$="--removed-body-scroll-bar-size";function Tg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function O$(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var D$=typeof window<"u"?E.useLayoutEffect:E.useEffect,HA=new WeakMap;function L$(e,t){var n=O$(null,function(r){return e.forEach(function(a){return Tg(a,r)})});return D$(function(){var r=HA.get(n);if(r){var a=new Set(r),s=new Set(e),l=n.current;a.forEach(function(u){s.has(u)||Tg(u,null)}),s.forEach(function(u){a.has(u)||Tg(u,l)})}HA.set(n,e)},[e]),n}function j$(e){return e}function P$(e,t){t===void 0&&(t=j$);var n=[],r=!1,a={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(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(s),l=n}var d=function(){var p=l;l=[],p.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(p){l.push(p),f()},filter:function(p){return l=l.filter(p),n}}}};return a}function M$(e){e===void 0&&(e={});var t=P$(null);return t.options=jr({async:!0,ssr:!1},e),t}var ek=function(e){var t=e.sideCar,n=J1(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 E.createElement(r,jr({},n))};ek.isSideCarExport=!0;function z$(e,t){return e.useMedium(t),ek}var tk=M$(),Cg=function(){},bh=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:Cg,onWheelCapture:Cg,onTouchMoveCapture:Cg}),a=r[0],s=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,g=e.shards,y=e.sideCar,_=e.noRelative,x=e.noIsolation,A=e.inert,C=e.allowPinchZoom,w=e.as,S=w===void 0?"div":w,T=e.gapMode,N=J1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=y,O=L$([n,t]),D=jr(jr({},N),a);return E.createElement(E.Fragment,null,p&&E.createElement(R,{sideCar:tk,removeScrollBar:f,shards:g,noRelative:_,noIsolation:x,inert:A,setCallbacks:s,allowPinchZoom:!!C,lockRef:n,gapMode:T}),l?E.cloneElement(E.Children.only(u),jr(jr({},D),{ref:O})):E.createElement(S,jr({},D,{className:d,ref:O}),u))});bh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bh.classNames={fullWidth:df,zeroRight:uf};var B$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function V$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=B$();return t&&e.setAttribute("nonce",t),e}function U$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function F$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $$=function(){var e=0,t=null;return{add:function(n){e==0&&(t=V$())&&(U$(t,n),F$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},H$=function(){var e=$$();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nk=function(){var e=H$(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},G$={left:0,top:0,right:0,gap:0},Rg=function(e){return parseInt(e||"",10)||0},K$=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Rg(n),Rg(r),Rg(a)]},q$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return G$;var t=K$(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])}},W$=nk(),vs="data-scroll-locked",Z$=function(e,t,n,r){var a=e.left,s=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
208
|
-
.`.concat(N$,` {
|
|
209
|
-
overflow: hidden `).concat(r,`;
|
|
210
|
-
padding-right: `).concat(u,"px ").concat(r,`;
|
|
211
|
-
}
|
|
212
|
-
body[`).concat(vs,`] {
|
|
213
|
-
overflow: hidden `).concat(r,`;
|
|
214
|
-
overscroll-behavior: contain;
|
|
215
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
216
|
-
padding-left: `.concat(a,`px;
|
|
217
|
-
padding-top: `).concat(s,`px;
|
|
218
|
-
padding-right: `).concat(l,`px;
|
|
219
|
-
margin-left:0;
|
|
220
|
-
margin-top:0;
|
|
221
|
-
margin-right: `).concat(u,"px ").concat(r,`;
|
|
222
|
-
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.`).concat(uf,` {
|
|
226
|
-
right: `).concat(u,"px ").concat(r,`;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.`).concat(df,` {
|
|
230
|
-
margin-right: `).concat(u,"px ").concat(r,`;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.`).concat(uf," .").concat(uf,` {
|
|
234
|
-
right: 0 `).concat(r,`;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.`).concat(df," .").concat(df,` {
|
|
238
|
-
margin-right: 0 `).concat(r,`;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
body[`).concat(vs,`] {
|
|
242
|
-
`).concat(I$,": ").concat(u,`px;
|
|
243
|
-
}
|
|
244
|
-
`)},GA=function(){var e=parseInt(document.body.getAttribute(vs)||"0",10);return isFinite(e)?e:0},Y$=function(){E.useEffect(function(){return document.body.setAttribute(vs,(GA()+1).toString()),function(){var e=GA()-1;e<=0?document.body.removeAttribute(vs):document.body.setAttribute(vs,e.toString())}},[])},X$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;Y$();var s=E.useMemo(function(){return q$(a)},[a]);return E.createElement(W$,{styles:Z$(s,!t,a,n?"":"!important")})},zy=!1;if(typeof window<"u")try{var Pd=Object.defineProperty({},"passive",{get:function(){return zy=!0,!0}});window.addEventListener("test",Pd,Pd),window.removeEventListener("test",Pd,Pd)}catch{zy=!1}var is=zy?{passive:!1}:!1,Q$=function(e){return e.tagName==="TEXTAREA"},rk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Q$(e)&&n[t]==="visible")},J$=function(e){return rk(e,"overflowY")},eH=function(e){return rk(e,"overflowX")},KA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=ik(e,r);if(a){var s=ak(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tH=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nH=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ik=function(e,t){return e==="v"?J$(t):eH(t)},ak=function(e,t){return e==="v"?tH(t):nH(t)},rH=function(e,t){return e==="h"&&t==="rtl"?-1:1},iH=function(e,t,n,r,a){var s=rH(e,window.getComputedStyle(t).direction),l=s*r,u=n.target,d=t.contains(u),f=!1,p=l>0,g=0,y=0;do{if(!u)break;var _=ak(e,u),x=_[0],A=_[1],C=_[2],w=A-C-s*x;(x||w)&&ik(e,u)&&(g+=w,y+=x);var S=u.parentNode;u=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(p&&Math.abs(g)<1||!p&&Math.abs(y)<1)&&(f=!0),f},Md=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qA=function(e){return[e.deltaX,e.deltaY]},WA=function(e){return e&&"current"in e?e.current:e},aH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oH=function(e){return`
|
|
245
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
246
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
247
|
-
`)},sH=0,as=[];function lH(e){var t=E.useRef([]),n=E.useRef([0,0]),r=E.useRef(),a=E.useState(sH++)[0],s=E.useState(nk)[0],l=E.useRef(e);E.useEffect(function(){l.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var A=k$([e.lockRef.current],(e.shards||[]).map(WA),!0).filter(Boolean);return A.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),A.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=E.useCallback(function(A,C){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!l.current.allowPinchZoom;var w=Md(A),S=n.current,T="deltaX"in A?A.deltaX:S[0]-w[0],N="deltaY"in A?A.deltaY:S[1]-w[1],R,O=A.target,D=Math.abs(T)>Math.abs(N)?"h":"v";if("touches"in A&&D==="h"&&O.type==="range")return!1;var j=KA(D,O);if(!j)return!0;if(j?R=D:(R=D==="v"?"h":"v",j=KA(D,O)),!j)return!1;if(!r.current&&"changedTouches"in A&&(T||N)&&(r.current=R),!R)return!0;var H=r.current||R;return iH(H,C,A,H==="h"?T:N)},[]),d=E.useCallback(function(A){var C=A;if(!(!as.length||as[as.length-1]!==s)){var w="deltaY"in C?qA(C):Md(C),S=t.current.filter(function(R){return R.name===C.type&&(R.target===C.target||C.target===R.shadowParent)&&aH(R.delta,w)})[0];if(S&&S.should){C.cancelable&&C.preventDefault();return}if(!S){var T=(l.current.shards||[]).map(WA).filter(Boolean).filter(function(R){return R.contains(C.target)}),N=T.length>0?u(C,T[0]):!l.current.noIsolation;N&&C.cancelable&&C.preventDefault()}}},[]),f=E.useCallback(function(A,C,w,S){var T={name:A,delta:C,target:w,should:S,shadowParent:cH(w)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(N){return N!==T})},1)},[]),p=E.useCallback(function(A){n.current=Md(A),r.current=void 0},[]),g=E.useCallback(function(A){f(A.type,qA(A),A.target,u(A,e.lockRef.current))},[]),y=E.useCallback(function(A){f(A.type,Md(A),A.target,u(A,e.lockRef.current))},[]);E.useEffect(function(){return as.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",d,is),document.addEventListener("touchmove",d,is),document.addEventListener("touchstart",p,is),function(){as=as.filter(function(A){return A!==s}),document.removeEventListener("wheel",d,is),document.removeEventListener("touchmove",d,is),document.removeEventListener("touchstart",p,is)}},[]);var _=e.removeScrollBar,x=e.inert;return E.createElement(E.Fragment,null,x?E.createElement(s,{styles:oH(a)}):null,_?E.createElement(X$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const uH=z$(tk,lH);var Eb=E.forwardRef(function(e,t){return E.createElement(bh,jr({},e,{ref:t,sideCar:uH}))});Eb.classNames=bh.classNames;var dH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},os=new WeakMap,zd=new WeakMap,Bd={},kg=0,ok=function(e){return e&&(e.host||ok(e.parentNode))},fH=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ok(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})},hH=function(e,t,n,r){var a=fH(t,Array.isArray(e)?e:[e]);Bd[n]||(Bd[n]=new WeakMap);var s=Bd[n],l=[],u=new Set,d=new Set(a),f=function(g){!g||u.has(g)||(u.add(g),f(g.parentNode))};a.forEach(f);var p=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(y){if(u.has(y))p(y);else try{var _=y.getAttribute(r),x=_!==null&&_!=="false",A=(os.get(y)||0)+1,C=(s.get(y)||0)+1;os.set(y,A),s.set(y,C),l.push(y),A===1&&x&&zd.set(y,!0),C===1&&y.setAttribute(n,"true"),x||y.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",y,w)}})};return p(t),u.clear(),kg++,function(){l.forEach(function(g){var y=os.get(g)-1,_=s.get(g)-1;os.set(g,y),s.set(g,_),y||(zd.has(g)||g.removeAttribute(r),zd.delete(g)),_||g.removeAttribute(n)}),kg--,kg||(os=new WeakMap,os=new WeakMap,zd=new WeakMap,Bd={})}},sk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=dH(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),hH(r,a,n,"aria-hidden")):function(){return null}},_h="Dialog",[lk,Koe]=eu(_h),[pH,xr]=lk(_h),ck=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,u=E.useRef(null),d=E.useRef(null),[f,p]=If({prop:r,defaultProp:a??!1,onChange:s,caller:_h});return v.jsx(pH,{scope:t,triggerRef:u,contentRef:d,contentId:lr(),titleId:lr(),descriptionId:lr(),open:f,onOpenChange:p,onOpenToggle:E.useCallback(()=>p(g=>!g),[p]),modal:l,children:n})};ck.displayName=_h;var uk="DialogTrigger",mH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=xr(uk,n),s=wt(t,a.triggerRef);return v.jsx(He.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Ab(a.open),...r,ref:s,onClick:Qe(e.onClick,a.onOpenToggle)})});mH.displayName=uk;var Sb="DialogPortal",[gH,dk]=lk(Sb,{forceMount:void 0}),fk=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,s=xr(Sb,t);return v.jsx(gH,{scope:t,forceMount:n,children:E.Children.map(r,l=>v.jsx(tu,{present:n||s.open,children:v.jsx(vh,{asChild:!0,container:a,children:l})}))})};fk.displayName=Sb;var Of="DialogOverlay",hk=E.forwardRef((e,t)=>{const n=dk(Of,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=xr(Of,e.__scopeDialog);return s.modal?v.jsx(tu,{present:r||s.open,children:v.jsx(vH,{...a,ref:t})}):null});hk.displayName=Of;var yH=Ts("DialogOverlay.RemoveScroll"),vH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=xr(Of,n);return v.jsx(Eb,{as:yH,allowPinchZoom:!0,shards:[a.contentRef],children:v.jsx(He.div,{"data-state":Ab(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),no="DialogContent",pk=E.forwardRef((e,t)=>{const n=dk(no,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=xr(no,e.__scopeDialog);return v.jsx(tu,{present:r||s.open,children:s.modal?v.jsx(bH,{...a,ref:t}):v.jsx(_H,{...a,ref:t})})});pk.displayName=no;var bH=E.forwardRef((e,t)=>{const n=xr(no,e.__scopeDialog),r=E.useRef(null),a=wt(t,n.contentRef,r);return E.useEffect(()=>{const s=r.current;if(s)return sk(s)},[]),v.jsx(mk,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qe(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Qe(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&s.preventDefault()}),onFocusOutside:Qe(e.onFocusOutside,s=>s.preventDefault())})}),_H=E.forwardRef((e,t)=>{const n=xr(no,e.__scopeDialog),r=E.useRef(!1),a=E.useRef(!1);return v.jsx(mk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),mk=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,u=xr(no,n),d=E.useRef(null),f=wt(t,d);return Q1(),v.jsxs(v.Fragment,{children:[v.jsx(_b,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:v.jsx(yh,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Ab(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(AH,{titleId:u.titleId}),v.jsx(TH,{contentRef:d,descriptionId:u.descriptionId})]})]})}),xb="DialogTitle",EH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=xr(xb,n);return v.jsx(He.h2,{id:a.titleId,...r,ref:t})});EH.displayName=xb;var gk="DialogDescription",SH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=xr(gk,n);return v.jsx(He.p,{id:a.descriptionId,...r,ref:t})});SH.displayName=gk;var yk="DialogClose",xH=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=xr(yk,n);return v.jsx(He.button,{type:"button",...r,ref:t,onClick:Qe(e.onClick,()=>a.onOpenChange(!1))})});xH.displayName=yk;function Ab(e){return e?"open":"closed"}var vk="DialogTitleWarning",[qoe,bk]=ZF(vk,{contentName:no,titleName:xb,docsSlug:"dialog"}),AH=({titleId:e})=>{const t=bk(vk),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
248
|
-
|
|
249
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
250
|
-
|
|
251
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wH="DialogDescriptionWarning",TH=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bk(wH).contentName}}.`;return E.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},CH=ck,RH=fk,kH=hk,NH=pk,ZA=1,IH=.9,OH=.8,DH=.17,Ng=.1,Ig=.999,LH=.9999,jH=.99,PH=/[\\\/_+.#"@\[\(\{&]/,MH=/[\\\/_+.#"@\[\(\{&]/g,zH=/[\s-]/,_k=/[\s-]/g;function By(e,t,n,r,a,s,l){if(s===t.length)return a===e.length?ZA:jH;var u=`${a},${s}`;if(l[u]!==void 0)return l[u];for(var d=r.charAt(s),f=n.indexOf(d,a),p=0,g,y,_,x;f>=0;)g=By(e,t,n,r,f+1,s+1,l),g>p&&(f===a?g*=ZA:PH.test(e.charAt(f-1))?(g*=OH,_=e.slice(a,f-1).match(MH),_&&a>0&&(g*=Math.pow(Ig,_.length))):zH.test(e.charAt(f-1))?(g*=IH,x=e.slice(a,f-1).match(_k),x&&a>0&&(g*=Math.pow(Ig,x.length))):(g*=DH,a>0&&(g*=Math.pow(Ig,f-a))),e.charAt(f)!==t.charAt(s)&&(g*=LH)),(g<Ng&&n.charAt(f-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(f-1)!==r.charAt(s))&&(y=By(e,t,n,r,f+1,s+2,l),y*Ng>g&&(g=y*Ng)),g>p&&(p=g),f=n.indexOf(d,f+1);return l[u]=p,p}function YA(e){return e.toLowerCase().replace(_k," ")}function BH(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,By(e,t,YA(e),YA(t),0,0,{})}var Xl='[cmdk-group=""]',Og='[cmdk-group-items=""]',VH='[cmdk-group-heading=""]',Ek='[cmdk-item=""]',XA=`${Ek}:not([aria-disabled="true"])`,Vy="cmdk-item-select",ls="data-value",UH=(e,t,n)=>BH(e,t,n),Sk=E.createContext(void 0),nu=()=>E.useContext(Sk),xk=E.createContext(void 0),wb=()=>E.useContext(xk),Ak=E.createContext(void 0),wk=E.forwardRef((e,t)=>{let n=cs(()=>{var F,J;return{search:"",value:(J=(F=e.value)!=null?F:e.defaultValue)!=null?J:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=cs(()=>new Set),a=cs(()=>new Map),s=cs(()=>new Map),l=cs(()=>new Set),u=Tk(e),{label:d,children:f,value:p,onValueChange:g,filter:y,shouldFilter:_,loop:x,disablePointerSelection:A=!1,vimBindings:C=!0,...w}=e,S=lr(),T=lr(),N=lr(),R=E.useRef(null),O=QH();ro(()=>{if(p!==void 0){let F=p.trim();n.current.value=F,D.emit()}},[p]),ro(()=>{O(6,ce)},[]);let D=E.useMemo(()=>({subscribe:F=>(l.current.add(F),()=>l.current.delete(F)),snapshot:()=>n.current,setState:(F,J,oe)=>{var he,ye,fe,xe;if(!Object.is(n.current[F],J)){if(n.current[F]=J,F==="search")te(),Z(),O(1,q);else if(F==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Le=document.getElementById(N);Le?Le.focus():(he=document.getElementById(S))==null||he.focus()}if(O(7,()=>{var Le;n.current.selectedItemId=(Le=W())==null?void 0:Le.id,D.emit()}),oe||O(5,ce),((ye=u.current)==null?void 0:ye.value)!==void 0){let Le=J??"";(xe=(fe=u.current).onValueChange)==null||xe.call(fe,Le);return}}D.emit()}},emit:()=>{l.current.forEach(F=>F())}}),[]),j=E.useMemo(()=>({value:(F,J,oe)=>{var he;J!==((he=s.current.get(F))==null?void 0:he.value)&&(s.current.set(F,{value:J,keywords:oe}),n.current.filtered.items.set(F,H(J,oe)),O(2,()=>{Z(),D.emit()}))},item:(F,J)=>(r.current.add(F),J&&(a.current.has(J)?a.current.get(J).add(F):a.current.set(J,new Set([F]))),O(3,()=>{te(),Z(),n.current.value||q(),D.emit()}),()=>{s.current.delete(F),r.current.delete(F),n.current.filtered.items.delete(F);let oe=W();O(4,()=>{te(),oe?.getAttribute("id")===F&&q(),D.emit()})}),group:F=>(a.current.has(F)||a.current.set(F,new Set),()=>{s.current.delete(F),a.current.delete(F)}),filter:()=>u.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:S,inputId:N,labelId:T,listInnerRef:R}),[]);function H(F,J){var oe,he;let ye=(he=(oe=u.current)==null?void 0:oe.filter)!=null?he:UH;return F?ye(F,n.current.search,J):0}function Z(){if(!n.current.search||u.current.shouldFilter===!1)return;let F=n.current.filtered.items,J=[];n.current.filtered.groups.forEach(he=>{let ye=a.current.get(he),fe=0;ye.forEach(xe=>{let Le=F.get(xe);fe=Math.max(Le,fe)}),J.push([he,fe])});let oe=R.current;ae().sort((he,ye)=>{var fe,xe;let Le=he.getAttribute("id"),Be=ye.getAttribute("id");return((fe=F.get(Be))!=null?fe:0)-((xe=F.get(Le))!=null?xe:0)}).forEach(he=>{let ye=he.closest(Og);ye?ye.appendChild(he.parentElement===ye?he:he.closest(`${Og} > *`)):oe.appendChild(he.parentElement===oe?he:he.closest(`${Og} > *`))}),J.sort((he,ye)=>ye[1]-he[1]).forEach(he=>{var ye;let fe=(ye=R.current)==null?void 0:ye.querySelector(`${Xl}[${ls}="${encodeURIComponent(he[0])}"]`);fe?.parentElement.appendChild(fe)})}function q(){let F=ae().find(oe=>oe.getAttribute("aria-disabled")!=="true"),J=F?.getAttribute(ls);D.setState("value",J||void 0)}function te(){var F,J,oe,he;if(!n.current.search||u.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ye=0;for(let fe of r.current){let xe=(J=(F=s.current.get(fe))==null?void 0:F.value)!=null?J:"",Le=(he=(oe=s.current.get(fe))==null?void 0:oe.keywords)!=null?he:[],Be=H(xe,Le);n.current.filtered.items.set(fe,Be),Be>0&&ye++}for(let[fe,xe]of a.current)for(let Le of xe)if(n.current.filtered.items.get(Le)>0){n.current.filtered.groups.add(fe);break}n.current.filtered.count=ye}function ce(){var F,J,oe;let he=W();he&&(((F=he.parentElement)==null?void 0:F.firstChild)===he&&((oe=(J=he.closest(Xl))==null?void 0:J.querySelector(VH))==null||oe.scrollIntoView({block:"nearest"})),he.scrollIntoView({block:"nearest"}))}function W(){var F;return(F=R.current)==null?void 0:F.querySelector(`${Ek}[aria-selected="true"]`)}function ae(){var F;return Array.from(((F=R.current)==null?void 0:F.querySelectorAll(XA))||[])}function M(F){let J=ae()[F];J&&D.setState("value",J.getAttribute(ls))}function X(F){var J;let oe=W(),he=ae(),ye=he.findIndex(xe=>xe===oe),fe=he[ye+F];(J=u.current)!=null&&J.loop&&(fe=ye+F<0?he[he.length-1]:ye+F===he.length?he[0]:he[ye+F]),fe&&D.setState("value",fe.getAttribute(ls))}function G(F){let J=W(),oe=J?.closest(Xl),he;for(;oe&&!he;)oe=F>0?YH(oe,Xl):XH(oe,Xl),he=oe?.querySelector(XA);he?D.setState("value",he.getAttribute(ls)):X(F)}let ge=()=>M(ae().length-1),P=F=>{F.preventDefault(),F.metaKey?ge():F.altKey?G(1):X(1)},ie=F=>{F.preventDefault(),F.metaKey?M(0):F.altKey?G(-1):X(-1)};return E.createElement(He.div,{ref:t,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:F=>{var J;(J=w.onKeyDown)==null||J.call(w,F);let oe=F.nativeEvent.isComposing||F.keyCode===229;if(!(F.defaultPrevented||oe))switch(F.key){case"n":case"j":{C&&F.ctrlKey&&P(F);break}case"ArrowDown":{P(F);break}case"p":case"k":{C&&F.ctrlKey&&ie(F);break}case"ArrowUp":{ie(F);break}case"Home":{F.preventDefault(),M(0);break}case"End":{F.preventDefault(),ge();break}case"Enter":{F.preventDefault();let he=W();if(he){let ye=new Event(Vy);he.dispatchEvent(ye)}}}}},E.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:eG},d),Eh(e,F=>E.createElement(xk.Provider,{value:D},E.createElement(Sk.Provider,{value:j},F))))}),FH=E.forwardRef((e,t)=>{var n,r;let a=lr(),s=E.useRef(null),l=E.useContext(Ak),u=nu(),d=Tk(e),f=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:l?.forceMount;ro(()=>{if(!f)return u.item(a,l?.id)},[f]);let p=Ck(a,s,[e.value,e.children,s],e.keywords),g=wb(),y=aa(O=>O.value&&O.value===p.current),_=aa(O=>f||u.filter()===!1?!0:O.search?O.filtered.items.get(a)>0:!0);E.useEffect(()=>{let O=s.current;if(!(!O||e.disabled))return O.addEventListener(Vy,x),()=>O.removeEventListener(Vy,x)},[_,e.onSelect,e.disabled]);function x(){var O,D;A(),(D=(O=d.current).onSelect)==null||D.call(O,p.current)}function A(){g.setState("value",p.current,!0)}if(!_)return null;let{disabled:C,value:w,onSelect:S,forceMount:T,keywords:N,...R}=e;return E.createElement(He.div,{ref:to(s,t),...R,id:a,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!y,"data-disabled":!!C,"data-selected":!!y,onPointerMove:C||u.getDisablePointerSelection()?void 0:A,onClick:C?void 0:x},e.children)}),$H=E.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...s}=e,l=lr(),u=E.useRef(null),d=E.useRef(null),f=lr(),p=nu(),g=aa(_=>a||p.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);ro(()=>p.group(l),[]),Ck(l,u,[e.value,e.heading,d]);let y=E.useMemo(()=>({id:l,forceMount:a}),[a]);return E.createElement(He.div,{ref:to(u,t),...s,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},n&&E.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),Eh(e,_=>E.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},E.createElement(Ak.Provider,{value:y},_))))}),HH=E.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=E.useRef(null),s=aa(l=>!l.search);return!n&&!s?null:E.createElement(He.div,{ref:to(a,t),...r,"cmdk-separator":"",role:"separator"})}),GH=E.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,s=wb(),l=aa(f=>f.search),u=aa(f=>f.selectedItemId),d=nu();return E.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),E.createElement(He.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":u,id:d.inputId,type:"text",value:a?e.value:l,onChange:f=>{a||s.setState("search",f.target.value),n?.(f.target.value)}})}),KH=E.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,s=E.useRef(null),l=E.useRef(null),u=aa(f=>f.selectedItemId),d=nu();return E.useEffect(()=>{if(l.current&&s.current){let f=l.current,p=s.current,g,y=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let _=f.offsetHeight;p.style.setProperty("--cmdk-list-height",_.toFixed(1)+"px")})});return y.observe(f),()=>{cancelAnimationFrame(g),y.unobserve(f)}}},[]),E.createElement(He.div,{ref:to(s,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":r,id:d.listId},Eh(e,f=>E.createElement("div",{ref:to(l,d.listInnerRef),"cmdk-list-sizer":""},f)))}),qH=E.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:s,container:l,...u}=e;return E.createElement(CH,{open:n,onOpenChange:r},E.createElement(RH,{container:l},E.createElement(kH,{"cmdk-overlay":"",className:a}),E.createElement(NH,{"aria-label":e.label,"cmdk-dialog":"",className:s},E.createElement(wk,{ref:t,...u}))))}),WH=E.forwardRef((e,t)=>aa(n=>n.filtered.count===0)?E.createElement(He.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),ZH=E.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...s}=e;return E.createElement(He.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Eh(e,l=>E.createElement("div",{"aria-hidden":!0},l)))}),ru=Object.assign(wk,{List:KH,Item:FH,Input:GH,Group:$H,Separator:HH,Dialog:qH,Empty:WH,Loading:ZH});function YH(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function XH(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Tk(e){let t=E.useRef(e);return ro(()=>{t.current=e}),t}var ro=typeof window>"u"?E.useEffect:E.useLayoutEffect;function cs(e){let t=E.useRef();return t.current===void 0&&(t.current=e()),t}function aa(e){let t=wb(),n=()=>e(t.snapshot());return E.useSyncExternalStore(t.subscribe,n,n)}function Ck(e,t,n,r=[]){let a=E.useRef(),s=nu();return ro(()=>{var l;let u=(()=>{var f;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(f=p.current.textContent)==null?void 0:f.trim():a.current}})(),d=r.map(f=>f.trim());s.value(e,u,d),(l=t.current)==null||l.setAttribute(ls,u),a.current=u}),a}var QH=()=>{let[e,t]=E.useState(),n=cs(()=>new Map);return ro(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function JH(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Eh({asChild:e,children:t},n){return e&&E.isValidElement(t)?E.cloneElement(JH(t),{ref:t.ref},n(t.props.children)):n(t)}var eG={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Rk=({className:e,...t})=>v.jsx(ru,{className:_e("flex size-full flex-col overflow-hidden rounded-md",e),...t}),tG=({className:e,...t})=>v.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[v.jsx(nF,{className:"mr-2 size-4 shrink-0 opacity-50"}),v.jsx(ru.Input,{className:_e("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),nG=({className:e,...t})=>v.jsx(ru.List,{className:_e("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),rG=e=>v.jsx(ru.Empty,{className:"py-6 text-center text-sm",...e}),iG=({className:e,...t})=>v.jsx(ru.Item,{className:_e("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}),Df={...Rk,Input:tG,List:nG,Empty:rG,Item:iG},aG=ur("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/95",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"}}),Ar=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:s,border:l,borderColor:u,background:d,...f})=>v.jsx("div",{className:_e(aG({roundedSize:t,transparency:r,padding:n,separator:a,border:typeof l=="boolean"?l?"with":"none":void 0,background:d,borderColor:u,className:s})),...f,children:e}),kk=({content:e,...t})=>{const[n,r]=E.useState(!1),{label:a}=cn("copy-button"),s=async()=>{try{await navigator.clipboard.writeText(e),r(!0)}catch(l){console.error("Failed to copy text: ",l)}};return E.useEffect(()=>{const l=setTimeout(()=>{r(!1)},1e3);return()=>clearTimeout(l)},[n]),v.jsx(ot,{Icon:n?D2:j2,onClick:s,variant:at.HOVERABLE,color:it.TEXT,size:Kn.ICON_SM,...t,label:t.label??a.value})},Nk=E.createContext({});function oG(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Tb=typeof window<"u",sG=Tb?E.useLayoutEffect:E.useEffect,Cb=E.createContext(null);function Rb(e,t){e.indexOf(t)===-1&&e.push(t)}function kb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const yi=(e,t,n)=>n>t?t:n<e?e:n;let Nb=()=>{};const vi={},Ik=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ok(e){return typeof e=="object"&&e!==null}const Dk=e=>/^0[^.\s]+$/u.test(e);function Ib(e){let t;return()=>(t===void 0&&(t=e()),t)}const cr=e=>e,lG=(e,t)=>n=>t(e(n)),iu=(...e)=>e.reduce(lG),Nc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ob{constructor(){this.subscriptions=[]}add(t){return Rb(this.subscriptions,t),()=>kb(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Br=e=>e*1e3,Vr=e=>e/1e3;function Lk(e,t){return t?e*(1e3/t):0}const jk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,cG=1e-7,uG=12;function dG(e,t,n,r,a){let s,l,u=0;do l=t+(n-t)/2,s=jk(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>cG&&++u<uG);return l}function au(e,t,n,r){if(e===t&&n===r)return cr;const a=s=>dG(s,0,1,e,n);return s=>s===0||s===1?s:jk(a(s),t,r)}const Pk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mk=e=>t=>1-e(1-t),zk=au(.33,1.53,.69,.99),Db=Mk(zk),Bk=Pk(Db),Vk=e=>(e*=2)<1?.5*Db(e):.5*(2-Math.pow(2,-10*(e-1))),Lb=e=>1-Math.sin(Math.acos(e)),Uk=Mk(Lb),Fk=Pk(Lb),fG=au(.42,0,1,1),hG=au(0,0,.58,1),$k=au(.42,0,.58,1),pG=e=>Array.isArray(e)&&typeof e[0]!="number",Hk=e=>Array.isArray(e)&&typeof e[0]=="number",mG={linear:cr,easeIn:fG,easeInOut:$k,easeOut:hG,circIn:Lb,circInOut:Fk,circOut:Uk,backIn:Db,backInOut:Bk,backOut:zk,anticipate:Vk},gG=e=>typeof e=="string",QA=e=>{if(Hk(e)){Nb(e.length===4);const[t,n,r,a]=e;return au(t,n,r,a)}else if(gG(e))return mG[e];return e},Vd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yG(e,t){let n=new Set,r=new Set,a=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(f.schedule(p),e()),p(u)}const f={schedule:(p,g=!1,y=!1)=>{const x=y&&a?n:r;return g&&l.add(p),x.has(p)||x.add(p),p},cancel:p=>{r.delete(p),l.delete(p)},process:p=>{if(u=p,a){s=!0;return}a=!0,[n,r]=[r,n],n.forEach(d),n.clear(),a=!1,s&&(s=!1,f.process(p))}};return f}const vG=40;function Gk(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Vd.reduce((T,N)=>(T[N]=yG(s),T),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:p,update:g,preRender:y,render:_,postRender:x}=l,A=()=>{const T=vi.useManualTiming?a.timestamp:performance.now();n=!1,vi.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(T-a.timestamp,vG),1)),a.timestamp=T,a.isProcessing=!0,u.process(a),d.process(a),f.process(a),p.process(a),g.process(a),y.process(a),_.process(a),x.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(A))},C=()=>{n=!0,r=!0,a.isProcessing||e(A)};return{schedule:Vd.reduce((T,N)=>{const R=l[N];return T[N]=(O,D=!1,j=!1)=>(n||C(),R.schedule(O,D,j)),T},{}),cancel:T=>{for(let N=0;N<Vd.length;N++)l[Vd[N]].cancel(T)},state:a,steps:l}}const{schedule:bt,cancel:oa,state:sn,steps:Dg}=Gk(typeof requestAnimationFrame<"u"?requestAnimationFrame:cr,!0);let ff;function bG(){ff=void 0}const In={now:()=>(ff===void 0&&In.set(sn.isProcessing||vi.useManualTiming?sn.timestamp:performance.now()),ff),set:e=>{ff=e,queueMicrotask(bG)}},Kk=e=>t=>typeof t=="string"&&t.startsWith(e),jb=Kk("--"),_G=Kk("var(--"),Pb=e=>_G(e)?EG.test(e.split("/*")[0].trim()):!1,EG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Bs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ic={...Bs,transform:e=>yi(0,1,e)},Ud={...Bs,default:1},mc=e=>Math.round(e*1e5)/1e5,Mb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function SG(e){return e==null}const xG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zb=(e,t)=>n=>!!(typeof n=="string"&&xG.test(n)&&n.startsWith(e)||t&&!SG(n)&&Object.prototype.hasOwnProperty.call(n,t)),qk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,u]=r.match(Mb);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},AG=e=>yi(0,255,e),Lg={...Bs,transform:e=>Math.round(AG(e))},Za={test:zb("rgb","red"),parse:qk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lg.transform(e)+", "+Lg.transform(t)+", "+Lg.transform(n)+", "+mc(Ic.transform(r))+")"};function wG(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const Uy={test:zb("#"),parse:wG,transform:Za.transform},ou=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ea=ou("deg"),Ur=ou("%"),Pe=ou("px"),TG=ou("vh"),CG=ou("vw"),JA={...Ur,parse:e=>Ur.parse(e)/100,transform:e=>Ur.transform(e*100)},ds={test:zb("hsl","hue"),parse:qk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ur.transform(mc(t))+", "+Ur.transform(mc(n))+", "+mc(Ic.transform(r))+")"},Bt={test:e=>Za.test(e)||Uy.test(e)||ds.test(e),parse:e=>Za.test(e)?Za.parse(e):ds.test(e)?ds.parse(e):Uy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Za.transform(e):ds.transform(e),getAnimatableNone:e=>{const t=Bt.parse(e);return t.alpha=0,Bt.transform(t)}},RG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kG(e){return isNaN(e)&&typeof e=="string"&&(e.match(Mb)?.length||0)+(e.match(RG)?.length||0)>0}const Wk="number",Zk="color",NG="var",IG="var(",ew="${}",OG=/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 Oc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const u=t.replace(OG,d=>(Bt.test(d)?(r.color.push(s),a.push(Zk),n.push(Bt.parse(d))):d.startsWith(IG)?(r.var.push(s),a.push(NG),n.push(d)):(r.number.push(s),a.push(Wk),n.push(parseFloat(d))),++s,ew)).split(ew);return{values:n,split:u,indexes:r,types:a}}function Yk(e){return Oc(e).values}function Xk(e){const{split:t,types:n}=Oc(e),r=t.length;return a=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],a[l]!==void 0){const u=n[l];u===Wk?s+=mc(a[l]):u===Zk?s+=Bt.transform(a[l]):s+=a[l]}return s}}const DG=e=>typeof e=="number"?0:Bt.test(e)?Bt.getAnimatableNone(e):e;function LG(e){const t=Yk(e);return Xk(e)(t.map(DG))}const sa={test:kG,parse:Yk,createTransformer:Xk,getAnimatableNone:LG};function jg(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 jG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,l=0;if(!t)a=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;a=jg(d,u,e+1/3),s=jg(d,u,e),l=jg(d,u,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function Lf(e,t){return n=>n>0?t:e}const xt=(e,t,n)=>e+(t-e)*n,Pg=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},PG=[Uy,Za,ds],MG=e=>PG.find(t=>t.test(e));function tw(e){const t=MG(e);if(!t)return!1;let n=t.parse(e);return t===ds&&(n=jG(n)),n}const nw=(e,t)=>{const n=tw(e),r=tw(t);if(!n||!r)return Lf(e,t);const a={...n};return s=>(a.red=Pg(n.red,r.red,s),a.green=Pg(n.green,r.green,s),a.blue=Pg(n.blue,r.blue,s),a.alpha=xt(n.alpha,r.alpha,s),Za.transform(a))},Fy=new Set(["none","hidden"]);function zG(e,t){return Fy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function BG(e,t){return n=>xt(e,t,n)}function Bb(e){return typeof e=="number"?BG:typeof e=="string"?Pb(e)?Lf:Bt.test(e)?nw:FG:Array.isArray(e)?Qk:typeof e=="object"?Bt.test(e)?nw:VG:Lf}function Qk(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>Bb(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function VG(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Bb(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function UG(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],l=e.indexes[s][r[s]],u=e.values[l]??0;n[a]=u,r[s]++}return n}const FG=(e,t)=>{const n=sa.createTransformer(t),r=Oc(e),a=Oc(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Fy.has(e)&&!a.values.length||Fy.has(t)&&!r.values.length?zG(e,t):iu(Qk(UG(r,a),a.values),n):Lf(e,t)};function Jk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):Bb(e)(e,t)}const $G=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>bt.update(t,n),stop:()=>oa(t),now:()=>sn.isProcessing?sn.timestamp:In.now()}},eN=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},jf=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<jf;)t+=n,r=e.next(t);return t>=jf?1/0:t}function HG(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Vb(r),jf);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:Vr(a)}}const GG=5;function tN(e,t,n){const r=Math.max(t-GG,0);return Lk(n-e(r),t-r)}const kt={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},Mg=.001;function KG({duration:e=kt.duration,bounce:t=kt.bounce,velocity:n=kt.velocity,mass:r=kt.mass}){let a,s,l=1-t;l=yi(kt.minDamping,kt.maxDamping,l),e=yi(kt.minDuration,kt.maxDuration,Vr(e)),l<1?(a=f=>{const p=f*l,g=p*e,y=p-n,_=$y(f,l),x=Math.exp(-g);return Mg-y/_*x},s=f=>{const g=f*l*e,y=g*n+n,_=Math.pow(l,2)*Math.pow(f,2)*e,x=Math.exp(-g),A=$y(Math.pow(f,2),l);return(-a(f)+Mg>0?-1:1)*((y-_)*x)/A}):(a=f=>{const p=Math.exp(-f*e),g=(f-n)*e+1;return-Mg+p*g},s=f=>{const p=Math.exp(-f*e),g=(n-f)*(e*e);return p*g});const u=5/e,d=WG(a,s,u);if(e=Br(e),isNaN(d))return{stiffness:kt.stiffness,damping:kt.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const qG=12;function WG(e,t,n){let r=n;for(let a=1;a<qG;a++)r=r-e(r)/t(r);return r}function $y(e,t){return e*Math.sqrt(1-t*t)}const ZG=["duration","bounce"],YG=["stiffness","damping","mass"];function rw(e,t){return t.some(n=>e[n]!==void 0)}function XG(e){let t={velocity:kt.velocity,stiffness:kt.stiffness,damping:kt.damping,mass:kt.mass,isResolvedFromDuration:!1,...e};if(!rw(e,YG)&&rw(e,ZG))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*yi(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:kt.mass,stiffness:a,damping:s}}else{const n=KG(e);t={...t,...n,mass:kt.mass},t.isResolvedFromDuration=!0}return t}function Pf(e=kt.visualDuration,t=kt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:d,damping:f,mass:p,duration:g,velocity:y,isResolvedFromDuration:_}=XG({...n,velocity:-Vr(n.velocity||0)}),x=y||0,A=f/(2*Math.sqrt(d*p)),C=l-s,w=Vr(Math.sqrt(d/p)),S=Math.abs(C)<5;r||(r=S?kt.restSpeed.granular:kt.restSpeed.default),a||(a=S?kt.restDelta.granular:kt.restDelta.default);let T;if(A<1){const R=$y(w,A);T=O=>{const D=Math.exp(-A*w*O);return l-D*((x+A*w*C)/R*Math.sin(R*O)+C*Math.cos(R*O))}}else if(A===1)T=R=>l-Math.exp(-w*R)*(C+(x+w*C)*R);else{const R=w*Math.sqrt(A*A-1);T=O=>{const D=Math.exp(-A*w*O),j=Math.min(R*O,300);return l-D*((x+A*w*C)*Math.sinh(j)+R*C*Math.cosh(j))/R}}const N={calculatedDuration:_&&g||null,next:R=>{const O=T(R);if(_)u.done=R>=g;else{let D=R===0?x:0;A<1&&(D=R===0?Br(x):tN(T,R,O));const j=Math.abs(D)<=r,H=Math.abs(l-O)<=a;u.done=j&&H}return u.value=u.done?l:O,u},toString:()=>{const R=Math.min(Vb(N),jf),O=eN(D=>N.next(R*D).value,R,30);return R+"ms "+O},toTransition:()=>{}};return N}Pf.applyToOptions=e=>{const t=HG(e,100,Pf);return e.ease=t.ease,e.duration=Br(t.duration),e.type="keyframes",e};function Hy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:d,restDelta:f=.5,restSpeed:p}){const g=e[0],y={done:!1,value:g},_=j=>u!==void 0&&j<u||d!==void 0&&j>d,x=j=>u===void 0?d:d===void 0||Math.abs(u-j)<Math.abs(d-j)?u:d;let A=n*t;const C=g+A,w=l===void 0?C:l(C);w!==C&&(A=w-g);const S=j=>-A*Math.exp(-j/r),T=j=>w+S(j),N=j=>{const H=S(j),Z=T(j);y.done=Math.abs(H)<=f,y.value=y.done?w:Z};let R,O;const D=j=>{_(y.value)&&(R=j,O=Pf({keyframes:[y.value,x(y.value)],velocity:tN(T,j,y.value),damping:a,stiffness:s,restDelta:f,restSpeed:p}))};return D(0),{calculatedDuration:null,next:j=>{let H=!1;return!O&&R===void 0&&(H=!0,N(j),D(j)),R!==void 0&&j>=R?O.next(j-R):(!H&&N(j),y)}}}function QG(e,t,n){const r=[],a=n||vi.mix||Jk,s=e.length-1;for(let l=0;l<s;l++){let u=a(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||cr:t;u=iu(d,u)}r.push(u)}return r}function JG(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(Nb(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=QG(t,r,a),d=u.length,f=p=>{if(l&&p<e[0])return t[0];let g=0;if(d>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const y=Nc(e[g],e[g+1],p);return u[g](y)};return n?p=>f(yi(e[0],e[s-1],p)):f}function e3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Nc(0,t,r);e.push(xt(n,1,a))}}function t3(e){const t=[0];return e3(t,e.length-1),t}function n3(e,t){return e.map(n=>n*t)}function r3(e,t){return e.map(()=>t||$k).splice(0,e.length-1)}function gc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=pG(r)?r.map(QA):QA(r),s={done:!1,value:t[0]},l=n3(n&&n.length===t.length?n:t3(t),e),u=JG(l,t,{ease:Array.isArray(a)?a:r3(t,a)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const i3=e=>e!==null;function Ub(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(i3),u=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const a3={decay:Hy,inertia:Hy,tween:gc,keyframes:gc,spring:Pf};function nN(e){typeof e.type=="string"&&(e.type=a3[e.type])}class Fb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const o3=e=>e/100;class $b extends Fb{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==In.now()&&this.tick(In.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;nN(t);const{type:n=gc,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||gc;d!==gc&&typeof u[0]!="number"&&(this.mixKeyframes=iu(o3,Jk(u[0],u[1])),u=[0,100]);const f=d({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...u].reverse(),velocity:-l})),f.calculatedDuration===null&&(f.calculatedDuration=Vb(f));const{calculatedDuration:p}=f;this.calculatedDuration=p,this.resolvedDuration=p+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:p,repeat:g,repeatType:y,repeatDelay:_,type:x,onUpdate:A,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?w<0:w>a;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let T=this.currentTime,N=r;if(g){const j=Math.min(this.currentTime,a)/u;let H=Math.floor(j),Z=j%1;!Z&&j>=1&&(Z=1),Z===1&&H--,H=Math.min(H,g+1),!!(H%2)&&(y==="reverse"?(Z=1-Z,_&&(Z-=_/u)):y==="mirror"&&(N=l)),T=yi(0,1,Z)*u}const R=S?{done:!1,value:p[0]}:N.next(T);s&&(R.value=s(R.value));let{done:O}=R;!S&&d!==null&&(O=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return D&&x!==Hy&&(R.value=Ub(p,this.options,C,this.speed)),A&&A(R.value),D&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return Vr(this.calculatedDuration)}get time(){return Vr(this.currentTime)}set time(t){t=Br(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(In.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Vr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=$G,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(In.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function s3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ya=e=>e*180/Math.PI,Gy=e=>{const t=Ya(Math.atan2(e[1],e[0]));return Ky(t)},l3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Gy,rotateZ:Gy,skewX:e=>Ya(Math.atan(e[1])),skewY:e=>Ya(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ky=e=>(e=e%360,e<0&&(e+=360),e),iw=Gy,aw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ow=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),c3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:aw,scaleY:ow,scale:e=>(aw(e)+ow(e))/2,rotateX:e=>Ky(Ya(Math.atan2(e[6],e[5]))),rotateY:e=>Ky(Ya(Math.atan2(-e[2],e[0]))),rotateZ:iw,rotate:iw,skewX:e=>Ya(Math.atan(e[4])),skewY:e=>Ya(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qy(e){return e.includes("scale")?1:0}function Wy(e,t){if(!e||e==="none")return qy(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=c3,a=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=l3,a=u}if(!a)return qy(t);const s=r[t],l=a[1].split(",").map(d3);return typeof s=="function"?s(l):l[s]}const u3=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Wy(n,t)};function d3(e){return parseFloat(e.trim())}const Vs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Us=new Set(Vs),sw=e=>e===Bs||e===Pe,f3=new Set(["x","y","z"]),h3=Vs.filter(e=>!f3.has(e));function p3(e){const t=[];return h3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ja={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:(e,{transform:t})=>Wy(t,"x"),y:(e,{transform:t})=>Wy(t,"y")};Ja.translateX=Ja.x;Ja.translateY=Ja.y;const eo=new Set;let Zy=!1,Yy=!1,Xy=!1;function rN(){if(Yy){const e=Array.from(eo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=p3(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,l])=>{r.getValue(s)?.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yy=!1,Zy=!1,eo.forEach(e=>e.complete(Xy)),eo.clear()}function iN(){eo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yy=!0)})}function m3(){Xy=!0,iN(),rN(),Xy=!1}class Hb{constructor(t,n,r,a,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(eo.add(this),Zy||(Zy=!0,bt.read(iN),bt.resolveKeyframes(rN))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}s3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),eo.delete(this)}cancel(){this.state==="scheduled"&&(eo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const g3=e=>e.startsWith("--");function y3(e,t,n){g3(t)?e.style.setProperty(t,n):e.style[t]=n}const v3=Ib(()=>window.ScrollTimeline!==void 0),b3={};function _3(e,t){const n=Ib(e);return()=>b3[t]??n()}const aN=_3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),dc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dc([0,.65,.55,1]),circOut:dc([.55,0,1,.45]),backIn:dc([.31,.01,.66,-.59]),backOut:dc([.33,1.53,.69,.99])};function oN(e,t){if(e)return typeof e=="function"?aN()?eN(e,t):"ease-out":Hk(e)?dc(e):Array.isArray(e)?e.map(n=>oN(n,t)||lw.easeOut):lw[e]}function E3(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:d}={},f=void 0){const p={[t]:n};d&&(p.offset=d);const g=oN(u,a);Array.isArray(g)&&(p.easing=g);const y={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(y.pseudoElement=f),e.animate(p,y)}function sN(e){return typeof e=="function"&&"applyToOptions"in e}function S3({type:e,...t}){return sN(e)&&aN()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class x3 extends Fb{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,Nb(typeof t.type!="string");const f=S3(t);this.animation=E3(n,r,a,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=Ub(a,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):y3(n,r,p),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Vr(Number(t))}get time(){return Vr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Br(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&v3()?(this.animation.timeline=t,cr):n(this)}}const lN={anticipate:Vk,backInOut:Bk,circInOut:Fk};function A3(e){return e in lN}function w3(e){typeof e.ease=="string"&&A3(e.ease)&&(e.ease=lN[e.ease])}const cw=10;class T3 extends x3{constructor(t){w3(t),nN(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new $b({...l,autoplay:!1}),d=Br(this.finishedTime??this.time);n.setWithVelocity(u.sample(d-cw).value,u.sample(d).value,cw),u.stop()}}const uw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(sa.test(e)||e==="0")&&!e.startsWith("url("));function C3(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 R3(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=uw(a,t),u=uw(s,t);return!l||!u?!1:C3(e)||(n==="spring"||sN(n))&&r}function Qy(e){e.duration=0,e.type}const k3=new Set(["opacity","clipPath","filter","transform"]),N3=Ib(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function I3(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:f}=t.owner.getProps();return N3()&&n&&k3.has(n)&&(n!=="transform"||!f)&&!d&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const O3=40;class D3 extends Fb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,name:d,motionValue:f,element:p,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=In.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:p,...g},_=p?.KeyframeResolver||Hb;this.keyframeResolver=new _(u,(x,A,C)=>this.onKeyframesResolved(x,A,y,!C),d,f,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:d,isHandoff:f,onUpdate:p}=r;this.resolvedAt=In.now(),R3(t,s,l,u)||((vi.instantAnimations||!d)&&p?.(Ub(t,r,n)),t[0]=t[t.length-1],Qy(r),r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>O3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},_=!f&&I3(y)?new T3({...y,element:y.motionValue.owner.current}):new $b(y);_.finished.then(()=>this.notifyFinished()).catch(cr),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),m3()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const L3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function j3(e){const t=L3.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function cN(e,t,n=1){const[r,a]=j3(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return Ik(l)?parseFloat(l):l}return Pb(a)?cN(a,t,n+1):a}function Gb(e,t){return e?.[t]??e?.default??e}const uN=new Set(["width","height","top","left","right","bottom",...Vs]),P3={test:e=>e==="auto",parse:e=>e},dN=e=>t=>t.test(e),fN=[Bs,Pe,Ur,ea,CG,TG,P3],dw=e=>fN.find(dN(e));function M3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dk(e):!0}const z3=new Set(["brightness","contrast","saturate","opacity"]);function B3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Mb)||[];if(!r)return e;const a=n.replace(r,"");let s=z3.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const V3=/\b([a-z-]*)\(.*?\)/gu,Jy={...sa,getAnimatableNone:e=>{const t=e.match(V3);return t?t.map(B3).join(" "):e}},fw={...Bs,transform:Math.round},U3={rotate:ea,rotateX:ea,rotateY:ea,rotateZ:ea,scale:Ud,scaleX:Ud,scaleY:Ud,scaleZ:Ud,skew:ea,skewX:ea,skewY:ea,distance:Pe,translateX:Pe,translateY:Pe,translateZ:Pe,x:Pe,y:Pe,z:Pe,perspective:Pe,transformPerspective:Pe,opacity:Ic,originX:JA,originY:JA,originZ:Pe},Kb={borderWidth:Pe,borderTopWidth:Pe,borderRightWidth:Pe,borderBottomWidth:Pe,borderLeftWidth:Pe,borderRadius:Pe,radius:Pe,borderTopLeftRadius:Pe,borderTopRightRadius:Pe,borderBottomRightRadius:Pe,borderBottomLeftRadius:Pe,width:Pe,maxWidth:Pe,height:Pe,maxHeight:Pe,top:Pe,right:Pe,bottom:Pe,left:Pe,padding:Pe,paddingTop:Pe,paddingRight:Pe,paddingBottom:Pe,paddingLeft:Pe,margin:Pe,marginTop:Pe,marginRight:Pe,marginBottom:Pe,marginLeft:Pe,backgroundPositionX:Pe,backgroundPositionY:Pe,...U3,zIndex:fw,fillOpacity:Ic,strokeOpacity:Ic,numOctaves:fw},F3={...Kb,color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:Jy,WebkitFilter:Jy},hN=e=>F3[e];function pN(e,t){let n=hN(e);return n!==Jy&&(n=sa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $3=new Set(["auto","none","0"]);function H3(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!$3.has(s)&&Oc(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=pN(n,a)}class G3 extends Hb{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),Pb(f))){const p=cN(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!uN.has(r)||t.length!==2)return;const[a,s]=t,l=dw(a),u=dw(s);if(l!==u)if(sw(l)&&sw(u))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Ja[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||M3(t[a]))&&r.push(a);r.length&&H3(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=Ja[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=Ja[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,d])=>{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function K3(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const mN=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function q3(e){return Ok(e)&&"offsetHeight"in e}const hw=30,W3=e=>!isNaN(parseFloat(e));class Z3{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=In.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=In.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=W3(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 Ob);const r=this.events[t].add(n);return t==="change"?()=>{r(),bt.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=In.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>hw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,hw);return Lk(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cs(e,t){return new Z3(e,t)}const{schedule:qb}=Gk(queueMicrotask,!1),mr={x:!1,y:!1};function gN(){return mr.x||mr.y}function Y3(e){return e==="x"||e==="y"?mr[e]?null:(mr[e]=!0,()=>{mr[e]=!1}):mr.x||mr.y?null:(mr.x=mr.y=!0,()=>{mr.x=mr.y=!1})}function yN(e,t){const n=K3(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function pw(e){return!(e.pointerType==="touch"||gN())}function X3(e,t,n={}){const[r,a,s]=yN(e,n),l=u=>{if(!pw(u))return;const{target:d}=u,f=t(d,u);if(typeof f!="function"||!d)return;const p=g=>{pw(g)&&(f(g),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,a)};return r.forEach(u=>{u.addEventListener("pointerenter",l,a)}),s}const vN=(e,t)=>t?e===t?!0:vN(e,t.parentElement):!1,Wb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Q3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function J3(e){return Q3.has(e.tagName)||e.tabIndex!==-1}const hf=new WeakSet;function mw(e){return t=>{t.key==="Enter"&&e(t)}}function zg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const e4=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mw(()=>{if(hf.has(n))return;zg(n,"down");const a=mw(()=>{zg(n,"up")}),s=()=>zg(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gw(e){return Wb(e)&&!gN()}function t4(e,t,n={}){const[r,a,s]=yN(e,n),l=u=>{const d=u.currentTarget;if(!gw(u))return;hf.add(d);const f=t(d,u),p=(_,x)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),hf.has(d)&&hf.delete(d),gw(_)&&typeof f=="function"&&f(_,{success:x})},g=_=>{p(_,d===window||d===document||n.useGlobalTarget||vN(d,_.target))},y=_=>{p(_,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,a),q3(u)&&(u.addEventListener("focus",f=>e4(f,a)),!J3(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function bN(e){return Ok(e)&&"ownerSVGElement"in e}function n4(e){return bN(e)&&e.tagName==="svg"}const yn=e=>!!(e&&e.getVelocity),r4=[...fN,Bt,sa],i4=e=>r4.find(dN(e)),_N=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function a4(e=!0){const t=E.useContext(Cb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=E.useId();E.useEffect(()=>{if(e)return a(s)},[e]);const l=E.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const Zb=E.createContext({strict:!1}),yw={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"]},Rs={};for(const e in yw)Rs[e]={isEnabled:t=>yw[e].some(n=>!!t[n])};function ev(e){for(const t in e)Rs[t]={...Rs[t],...e[t]}}function o4({children:e,features:t,strict:n=!1}){const[,r]=E.useState(!Bg(t)),a=E.useRef(void 0);if(!Bg(t)){const{renderer:s,...l}=t;a.current=s,ev(l)}return E.useEffect(()=>{Bg(t)&&t().then(({renderer:s,...l})=>{ev(l),a.current=s,r(!0)})},[]),v.jsx(Zb.Provider,{value:{renderer:a.current,strict:n},children:e})}function Bg(e){return typeof e=="function"}const s4=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 Mf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||s4.has(e)}let EN=e=>!Mf(e);function l4(e){typeof e=="function"&&(EN=t=>t.startsWith("on")?!Mf(t):e(t))}try{l4(require("@emotion/is-prop-valid").default)}catch{}function c4(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(EN(a)||n===!0&&Mf(a)||!t&&!Mf(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Sh=E.createContext({});function xh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Dc(e){return typeof e=="string"||Array.isArray(e)}const Yb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xb=["initial",...Yb];function Ah(e){return xh(e.animate)||Xb.some(t=>Dc(e[t]))}function SN(e){return!!(Ah(e)||e.variants)}function u4(e,t){if(Ah(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Dc(n)?n:void 0,animate:Dc(r)?r:void 0}}return e.inherit!==!1?t:{}}function d4(e){const{initial:t,animate:n}=u4(e,E.useContext(Sh));return E.useMemo(()=>({initial:t,animate:n}),[vw(t),vw(n)])}function vw(e){return Array.isArray(e)?e.join(" "):e}const Lc={};function f4(e){for(const t in e)Lc[t]=e[t],jb(t)&&(Lc[t].isCSSVariable=!0)}function xN(e,{layout:t,layoutId:n}){return Us.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Lc[e]||e==="opacity")}const h4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},p4=Vs.length;function m4(e,t,n){let r="",a=!0;for(let s=0;s<p4;s++){const l=Vs[s],u=e[l];if(u===void 0)continue;let d=!0;if(typeof u=="number"?d=u===(l.startsWith("scale")?1:0):d=parseFloat(u)===0,!d||n){const f=mN(u,Kb[l]);if(!d){a=!1;const p=h4[l]||l;r+=`${p}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Qb(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let l=!1,u=!1;for(const d in t){const f=t[d];if(Us.has(d)){l=!0;continue}else if(jb(d)){a[d]=f;continue}else{const p=mN(f,Kb[d]);d.startsWith("origin")?(u=!0,s[d]=p):r[d]=p}}if(t.transform||(l||n?r.transform=m4(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;r.transformOrigin=`${d} ${f} ${p}`}}const Jb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function AN(e,t,n){for(const r in t)!yn(t[r])&&!xN(r,n)&&(e[r]=t[r])}function g4({transformTemplate:e},t){return E.useMemo(()=>{const n=Jb();return Qb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function y4(e,t){const n=e.style||{},r={};return AN(r,n,e),Object.assign(r,g4(e,t)),r}function v4(e,t){const n={},r=y4(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}const b4={offset:"stroke-dashoffset",array:"stroke-dasharray"},_4={offset:"strokeDashoffset",array:"strokeDasharray"};function E4(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?b4:_4;e[s.offset]=Pe.transform(-r);const l=Pe.transform(t),u=Pe.transform(n);e[s.array]=`${l} ${u}`}function wN(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},d,f,p){if(Qb(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=p?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&E4(g,a,s,l,!1)}const TN=()=>({...Jb(),attrs:{}}),CN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function S4(e,t,n,r){const a=E.useMemo(()=>{const s=TN();return wN(s,t,CN(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};AN(s,e.style,e),a.style={...s,...a.style}}return a}const x4=["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 e0(e){return typeof e!="string"||e.includes("-")?!1:!!(x4.indexOf(e)>-1||/[A-Z]/u.test(e))}function A4(e,t,n,{latestValues:r},a,s=!1){const u=(e0(e)?S4:v4)(t,r,a,e),d=c4(t,typeof e=="string",s),f=e!==E.Fragment?{...d,...u,ref:n}:{},{children:p}=t,g=E.useMemo(()=>yn(p)?p.get():p,[p]);return E.createElement(e,{...f,children:g})}function bw(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function t0(e,t,n,r){if(typeof t=="function"){const[a,s]=bw(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=bw(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function pf(e){return yn(e)?e.get():e}function w4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:T4(n,r,a,e),renderState:t()}}function T4(e,t,n,r){const a={},s=r(e,{});for(const y in s)a[y]=pf(s[y]);let{initial:l,animate:u}=e;const d=Ah(e),f=SN(e);t&&f&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const g=p?u:l;if(g&&typeof g!="boolean"&&!xh(g)){const y=Array.isArray(g)?g:[g];for(let _=0;_<y.length;_++){const x=t0(e,y[_]);if(x){const{transitionEnd:A,transition:C,...w}=x;for(const S in w){let T=w[S];if(Array.isArray(T)){const N=p?T.length-1:0;T=T[N]}T!==null&&(a[S]=T)}for(const S in A)a[S]=A[S]}}}return a}const RN=e=>(t,n)=>{const r=E.useContext(Sh),a=E.useContext(Cb),s=()=>w4(e,t,r,a);return n?s():oG(s)};function n0(e,t,n){const{style:r}=e,a={};for(const s in r)(yn(r[s])||t.style&&yn(t.style[s])||xN(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(a[s]=r[s]);return a}const C4=RN({scrapeMotionValuesFromProps:n0,createRenderState:Jb});function kN(e,t,n){const r=n0(e,t,n);for(const a in e)if(yn(e[a])||yn(t[a])){const s=Vs.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}const R4=RN({scrapeMotionValuesFromProps:kN,createRenderState:TN}),k4=Symbol.for("motionComponentSymbol");function fs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function N4(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):fs(n)&&(n.current=r))},[t])}const r0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),I4="framerAppearId",NN="data-"+r0(I4),IN=E.createContext({});function O4(e,t,n,r,a){const{visualElement:s}=E.useContext(Sh),l=E.useContext(Zb),u=E.useContext(Cb),d=E.useContext(_N).reducedMotion,f=E.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,g=E.useContext(IN);p&&!p.projection&&a&&(p.type==="html"||p.type==="svg")&&D4(f.current,n,a,g);const y=E.useRef(!1);E.useInsertionEffect(()=>{p&&y.current&&p.update(n,u)});const _=n[NN],x=E.useRef(!!_&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return sG(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),E.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),x.current=!1),p.enteringChildren=void 0)}),p}function D4(e,t,n,r){const{layoutId:a,layout:s,drag:l,dragConstraints:u,layoutScroll:d,layoutRoot:f,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ON(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||u&&fs(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:d,layoutRoot:f})}function ON(e){if(e)return e.options.allowProjection!==!1?e.projection:ON(e.parent)}function Vg(e,{forwardMotionProps:t=!1}={},n,r){n&&ev(n);const a=e0(e)?R4:C4;function s(u,d){let f;const p={...E.useContext(_N),...u,layoutId:L4(u)},{isStatic:g}=p,y=d4(u),_=a(u,g);if(!g&&Tb){j4();const x=P4(p);f=x.MeasureLayout,y.visualElement=O4(e,_,p,r,x.ProjectionNode)}return v.jsxs(Sh.Provider,{value:y,children:[f&&y.visualElement?v.jsx(f,{visualElement:y.visualElement,...p}):null,A4(e,u,N4(_,y.visualElement,d),_,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=E.forwardRef(s);return l[k4]=e,l}function L4({layoutId:e}){const t=E.useContext(Nk).id;return t&&e!==void 0?t+"-"+e:e}function j4(e,t){E.useContext(Zb).strict}function P4(e){const{drag:t,layout:n}=Rs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function M4(e,t){if(typeof Proxy>"u")return Vg;const n=new Map,r=(s,l)=>Vg(s,l,e,t),a=(s,l)=>r(s,l);return new Proxy(a,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,Vg(l,void 0,e,t)),n.get(l))})}function DN({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function z4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B4(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 Ug(e){return e===void 0||e===1}function tv({scale:e,scaleX:t,scaleY:n}){return!Ug(e)||!Ug(t)||!Ug(n)}function Ga(e){return tv(e)||LN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function LN(e){return _w(e.x)||_w(e.y)}function _w(e){return e&&e!=="0%"}function zf(e,t,n){const r=e-n,a=t*r;return n+a}function Ew(e,t,n,r,a){return a!==void 0&&(e=zf(e,a,r)),zf(e,n,r)+t}function nv(e,t=0,n=1,r,a){e.min=Ew(e.min,t,n,r,a),e.max=Ew(e.max,t,n,r,a)}function jN(e,{x:t,y:n}){nv(e.x,t.translate,t.scale,t.originPoint),nv(e.y,n.translate,n.scale,n.originPoint)}const Sw=.999999999999,xw=1.0000000000001;function V4(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let u=0;u<a;u++){s=n[u],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ps(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,jN(e,l)),r&&Ga(s.latestValues)&&ps(e,s.latestValues))}t.x<xw&&t.x>Sw&&(t.x=1),t.y<xw&&t.y>Sw&&(t.y=1)}function hs(e,t){e.min=e.min+t,e.max=e.max+t}function Aw(e,t,n,r,a=.5){const s=xt(e.min,e.max,a);nv(e,t,n,s,r)}function ps(e,t){Aw(e.x,t.x,t.scaleX,t.scale,t.originX),Aw(e.y,t.y,t.scaleY,t.scale,t.originY)}function PN(e,t){return DN(B4(e.getBoundingClientRect(),t))}function U4(e,t,n){const r=PN(e,n),{scroll:a}=t;return a&&(hs(r.x,a.offset.x),hs(r.y,a.offset.y)),r}const ww=()=>({translate:0,scale:1,origin:0,originPoint:0}),ms=()=>({x:ww(),y:ww()}),Tw=()=>({min:0,max:0}),Ot=()=>({x:Tw(),y:Tw()}),rv={current:null},MN={current:!1};function F4(){if(MN.current=!0,!!Tb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rv.current=e.matches;e.addEventListener("change",t),t()}else rv.current=!1}const $4=new WeakMap;function H4(e,t,n){for(const r in t){const a=t[r],s=n[r];if(yn(a))e.addValue(r,a);else if(yn(s))e.addValue(r,Cs(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,Cs(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Cw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class G4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:s,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hb,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 y=In.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,bt.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=Ah(n),this.isVariantNode=SN(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const _=g[y];d[y]!==void 0&&yn(_)&&_.set(d[y])}}mount(t){this.current=t,$4.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)),MN.current||F4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:rv.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),oa(this.notifyUpdate),oa(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Us.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&bt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s(),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 Rs){const n=Rs[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ot()}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<Cw.length;r++){const a=Cw[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=H4(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=Cs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ik(r)||Dk(r))?r=parseFloat(r):!i4(r)&&sa.test(n)&&(r=pN(t,n)),this.setBaseTarget(t,yn(r)?r.get():r)),yn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=t0(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!yn(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ob),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){qb.render(this.render)}}class zN extends G4{constructor(){super(...arguments),this.KeyframeResolver=G3}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 BN(e,{style:t,vars:n},r,a){const s=e.style;let l;for(l in t)s[l]=t[l];a?.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function K4(e){return window.getComputedStyle(e)}class q4 extends zN{constructor(){super(...arguments),this.type="html",this.renderInstance=BN}readValueFromInstance(t,n){if(Us.has(n))return this.projection?.isProjecting?qy(n):u3(t,n);{const r=K4(t),a=(jb(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return PN(t,n)}build(t,n,r){Qb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return n0(t,n,r)}}const VN=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 W4(e,t,n,r){BN(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(VN.has(a)?a:r0(a),t.attrs[a])}class Z4 extends zN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ot}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Us.has(n)){const r=hN(n);return r&&r.default||0}return n=VN.has(n)?n:r0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return kN(t,n,r)}build(t,n,r){wN(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){W4(t,n,r,a)}mount(t){this.isSVGTag=CN(t.tagName),super.mount(t)}}const UN=(e,t)=>e0(e)?new Z4(t):new q4(t,{allowProjection:e!==E.Fragment});function bs(e,t,n){const r=e.getProps();return t0(r,t,n!==void 0?n:r.custom,e)}const iv=e=>Array.isArray(e);function Y4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cs(n))}function X4(e){return iv(e)?e[e.length-1]||0:e}function Q4(e,t){const n=bs(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const u=X4(s[l]);Y4(e,l,u)}}function J4(e){return!!(yn(e)&&e.add)}function av(e,t){const n=e.getValue("willChange");if(J4(n))return n.add(t);if(!n&&vi.WillChange){const r=new vi.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function FN(e){return e.props[NN]}const e6=e=>e!==null;function t6(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(e6),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}const n6={type:"spring",stiffness:500,damping:25,restSpeed:10},r6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i6={type:"keyframes",duration:.8},a6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o6=(e,{keyframes:t})=>t.length>2?i6:Us.has(e)?e.startsWith("scale")?r6(t[1]):n6:a6;function s6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:l,repeatDelay:u,from:d,elapsed:f,...p}){return!!Object.keys(p).length}const i0=(e,t,n,r={},a,s)=>l=>{const u=Gb(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Br(d);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:y=>{t.set(y),u.onUpdate&&u.onUpdate(y)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:a};s6(u)||Object.assign(p,o6(e,p)),p.duration&&(p.duration=Br(p.duration)),p.repeatDelay&&(p.repeatDelay=Br(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Qy(p),p.delay===0&&(g=!0)),(vi.instantAnimations||vi.skipAnimations)&&(g=!0,Qy(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,g&&!s&&t.get()!==void 0){const y=t6(p.keyframes,u);if(y!==void 0){bt.update(()=>{p.onUpdate(y),p.onComplete()});return}}return u.isSync?new $b(p):new D3(p)};function l6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $N(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const d=[],f=a&&e.animationState&&e.animationState.getState()[a];for(const p in u){const g=e.getValue(p,e.latestValues[p]??null),y=u[p];if(y===void 0||f&&l6(f,p))continue;const _={delay:n,...Gb(s||{},p)},x=g.get();if(x!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===x&&!_.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const w=FN(e);if(w){const S=window.MotionHandoffAnimation(w,p,bt);S!==null&&(_.startTime=S,A=!0)}}av(e,p),g.start(i0(p,g,y,e.shouldReduceMotion&&uN.has(p)?{type:!1}:_,e,A));const C=g.animation;C&&d.push(C)}return l&&Promise.all(d).then(()=>{bt.update(()=>{l&&Q4(e,l)})}),d}function HN(e,t,n,r=0,a=1){const s=Array.from(e).sort((f,p)=>f.sortNodePosition(p)).indexOf(t),l=e.size,u=(l-1)*r;return typeof n=="function"?n(s,l):a===1?s*r:u-s*r}function ov(e,t,n={}){const r=bs(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all($N(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:g}=a;return c6(e,t,d,f,p,g,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[d,f]=u==="beforeChildren"?[s,l]:[l,s];return d().then(()=>f())}else return Promise.all([s(),l(n.delay)])}function c6(e,t,n=0,r=0,a=0,s=1,l){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(ov(d,t,{...l,delay:n+(typeof r=="function"?0:r)+HN(e.variantChildren,d,r,a,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function u6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>ov(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=ov(e,t,n);else{const a=typeof t=="function"?bs(e,t,n.custom):t;r=Promise.all($N(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function GN(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}const d6=Xb.length;function KN(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?KN(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<d6;n++){const r=Xb[n],a=e.props[r];(Dc(a)||a===!1)&&(t[r]=a)}return t}const f6=[...Yb].reverse(),h6=Yb.length;function p6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>u6(e,n,r)))}function m6(e){let t=p6(e),n=Rw(),r=!0;const a=d=>(f,p)=>{const g=bs(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:y,transitionEnd:_,...x}=g;f={...f,...x,..._}}return f};function s(d){t=d(e)}function l(d){const{props:f}=e,p=KN(e.parent)||{},g=[],y=new Set;let _={},x=1/0;for(let C=0;C<h6;C++){const w=f6[C],S=n[w],T=f[w]!==void 0?f[w]:p[w],N=Dc(T),R=w===d?S.isActive:null;R===!1&&(x=C);let O=T===p[w]&&T!==f[w]&&N;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),S.protectedKeys={..._},!S.isActive&&R===null||!T&&!S.prevProp||xh(T)||typeof T=="boolean")continue;const D=g6(S.prevProp,T);let j=D||w===d&&S.isActive&&!O&&N||C>x&&N,H=!1;const Z=Array.isArray(T)?T:[T];let q=Z.reduce(a(w),{});R===!1&&(q={});const{prevResolvedValues:te={}}=S,ce={...te,...q},W=X=>{j=!0,y.has(X)&&(H=!0,y.delete(X)),S.needsAnimating[X]=!0;const G=e.getValue(X);G&&(G.liveStyle=!1)};for(const X in ce){const G=q[X],ge=te[X];if(_.hasOwnProperty(X))continue;let P=!1;iv(G)&&iv(ge)?P=!GN(G,ge):P=G!==ge,P?G!=null?W(X):y.add(X):G!==void 0&&y.has(X)?W(X):S.protectedKeys[X]=!0}S.prevProp=T,S.prevResolvedValues=q,S.isActive&&(_={..._,...q}),r&&e.blockInitialAnimation&&(j=!1);const ae=O&&D;j&&(!ae||H)&&g.push(...Z.map(X=>{const G={type:w};if(typeof X=="string"&&r&&!ae&&e.manuallyAnimateOnMount&&e.parent){const{parent:ge}=e,P=bs(ge,X);if(ge.enteringChildren&&P){const{delayChildren:ie}=P.transition||{};G.delay=HN(ge.enteringChildren,e,ie)}}return{animation:X,options:G}}))}if(y.size){const C={};if(typeof f.initial!="boolean"){const w=bs(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(C.transition=w.transition)}y.forEach(w=>{const S=e.getBaseTarget(w),T=e.getValue(w);T&&(T.liveStyle=!0),C[w]=S??null}),g.push({animation:C})}let A=!!g.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(A=!1),r=!1,A?t(g):Promise.resolve()}function u(d,f){if(n[d].isActive===f)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(d,f)),n[d].isActive=f;const p=l(d);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Rw(),r=!0}}}function g6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!GN(t,e):!1}function $a(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rw(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}class ha{constructor(t){this.isMounted=!1,this.node=t}update(){}}class y6 extends ha{constructor(t){super(t),t.animationState||(t.animationState=m6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xh(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(){this.node.animationState.reset(),this.unmountControls?.()}}let v6=0;class b6 extends ha{constructor(){super(...arguments),this.id=v6++}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 a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const qN={animation:{Feature:y6},exit:{Feature:b6}};function jc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function su(e){return{point:{x:e.pageX,y:e.pageY}}}const _6=e=>t=>Wb(t)&&e(t,su(t));function yc(e,t,n,r){return jc(e,t,_6(n),r)}const WN=1e-4,E6=1-WN,S6=1+WN,ZN=.01,x6=0-ZN,A6=0+ZN;function En(e){return e.max-e.min}function w6(e,t,n){return Math.abs(e-t)<=n}function kw(e,t,n,r=.5){e.origin=r,e.originPoint=xt(t.min,t.max,e.origin),e.scale=En(n)/En(t),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=E6&&e.scale<=S6||isNaN(e.scale))&&(e.scale=1),(e.translate>=x6&&e.translate<=A6||isNaN(e.translate))&&(e.translate=0)}function vc(e,t,n,r){kw(e.x,t.x,n.x,r?r.originX:void 0),kw(e.y,t.y,n.y,r?r.originY:void 0)}function Nw(e,t,n){e.min=n.min+t.min,e.max=e.min+En(t)}function T6(e,t,n){Nw(e.x,t.x,n.x),Nw(e.y,t.y,n.y)}function Iw(e,t,n){e.min=t.min-n.min,e.max=e.min+En(t)}function bc(e,t,n){Iw(e.x,t.x,n.x),Iw(e.y,t.y,n.y)}function ar(e){return[e("x"),e("y")]}const YN=({current:e})=>e?e.ownerDocument.defaultView:null,Ow=(e,t)=>Math.abs(e-t);function C6(e,t){const n=Ow(e.x,t.x),r=Ow(e.y,t.y);return Math.sqrt(n**2+r**2)}class XN{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=$g(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,x=C6(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!_&&!x)return;const{point:A}=y,{timestamp:C}=sn;this.history.push({...A,timestamp:C});const{onStart:w,onMove:S}=this.handlers;_||(w&&w(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,y)},this.handlePointerMove=(y,_)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Fg(_,this.transformPagePoint),bt.update(this.updatePoint,!0)},this.handlePointerUp=(y,_)=>{this.end();const{onEnd:x,onSessionEnd:A,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=$g(y.type==="pointercancel"?this.lastMoveEventInfo:Fg(_,this.transformPagePoint),this.history);this.startEvent&&x&&x(y,w),A&&A(y,w)},!Wb(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const u=su(t),d=Fg(u,this.transformPagePoint),{point:f}=d,{timestamp:p}=sn;this.history=[{...f,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,$g(d,this.history)),this.removeListeners=iu(yc(this.contextWindow,"pointermove",this.handlePointerMove),yc(this.contextWindow,"pointerup",this.handlePointerUp),yc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oa(this.updatePoint)}}function Fg(e,t){return t?{point:t(e.point)}:e}function Dw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $g({point:e},t){return{point:e,delta:Dw(e,QN(t)),offset:Dw(e,R6(t)),velocity:k6(t,.1)}}function R6(e){return e[0]}function QN(e){return e[e.length-1]}function k6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=QN(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Br(t)));)n--;if(!r)return{x:0,y:0};const s=Vr(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function N6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?xt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?xt(n,e,r.max):Math.min(e,n)),e}function Lw(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 I6(e,{top:t,left:n,bottom:r,right:a}){return{x:Lw(e.x,n,a),y:Lw(e.y,t,r)}}function jw(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 O6(e,t){return{x:jw(e.x,t.x),y:jw(e.y,t.y)}}function D6(e,t){let n=.5;const r=En(e),a=En(t);return a>r?n=Nc(t.min,t.max-r,e.min):r>a&&(n=Nc(e.min,e.max-a,t.min)),yi(0,1,n)}function L6(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 sv=.35;function j6(e=sv){return e===!1?e=0:e===!0&&(e=sv),{x:Pw(e,"left","right"),y:Pw(e,"top","bottom")}}function Pw(e,t,n){return{min:Mw(e,t),max:Mw(e,n)}}function Mw(e,t){return typeof e=="number"?e:e[t]||0}const P6=new WeakMap;class M6{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=Ot(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(su(g).point)},l=(g,y)=>{const{drag:_,dragPropagation:x,onDragStart:A}=this.getProps();if(_&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Y3(_),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ar(w=>{let S=this.getAxisMotionValue(w).get()||0;if(Ur.test(S)){const{projection:T}=this.visualElement;if(T&&T.layout){const N=T.layout.layoutBox[w];N&&(S=En(N)*(parseFloat(S)/100))}}this.originPoint[w]=S}),A&&bt.postRender(()=>A(g,y)),av(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},u=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y;const{dragPropagation:_,dragDirectionLock:x,onDirectionLock:A,onDrag:C}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:w}=y;if(x&&this.currentDirection===null){this.currentDirection=z6(w),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",y.point,w),this.updateAxis("y",y.point,w),this.visualElement.render(),C&&C(g,y)},d=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y,this.stop(g,y),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>ar(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new XN(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:YN(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&bt.postRender(()=>u(r,a))}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:a}=this.getProps();if(!r||!Fd(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=N6(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&fs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=I6(r.layoutBox,t):this.constraints=!1,this.elastic=j6(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ar(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=L6(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fs(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=U4(r,a.root,this.visualElement.getTransformPagePoint());let l=O6(a.layout.layoutBox,s);if(n){const u=n(z4(l));this.hasMutatedConstraints=!!u,u&&(l=DN(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=ar(p=>{if(!Fd(p,n,this.currentDirection))return;let g=d&&d[p]||{};l&&(g={min:0,max:0});const y=a?200:1e6,_=a?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:y,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(p,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return av(this.visualElement,t),r.start(i0(t,r,0,n,this.visualElement,!1))}stopAnimation(){ar(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ar(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ar(n=>{const{drag:r}=this.getProps();if(!Fd(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:u}=a.layout.layoutBox[n];s.set(t[n]-xt(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fs(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ar(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();a[l]=D6({min:d,max:d},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ar(l=>{if(!Fd(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];u.set(xt(d,f,a[l]))})}addListeners(){if(!this.visualElement.current)return;P6.set(this.visualElement,this);const t=this.visualElement.current,n=yc(t,"pointerdown",d=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();fs(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),bt.read(r);const l=jc(window,"resize",()=>this.scalePositionWithinConstraints()),u=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(ar(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=d[p].translate,g.set(g.get()+d[p].translate))}),this.visualElement.render())}));return()=>{l(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:l=sv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function Fd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function z6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class B6 extends ha{constructor(t){super(t),this.removeGroupControls=cr,this.removeListeners=cr,this.controls=new M6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cr}unmount(){this.removeGroupControls(),this.removeListeners()}}const zw=e=>(t,n)=>{e&&bt.postRender(()=>e(t,n))};class V6 extends ha{constructor(){super(...arguments),this.removePointerDownListener=cr}onPointerDown(t){this.session=new XN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:YN(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:zw(t),onStart:zw(n),onMove:r,onEnd:(s,l)=>{delete this.session,a&&bt.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=yc(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 mf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ql={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Pe.test(e))e=parseFloat(e);else return e;const n=Bw(e,t.target.x),r=Bw(e,t.target.y);return`${n}% ${r}%`}},U6={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=sa.parse(e);if(a.length>5)return r;const s=sa.createTransformer(e),l=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=d;const f=xt(u,d,.5);return typeof a[2+l]=="number"&&(a[2+l]/=f),typeof a[3+l]=="number"&&(a[3+l]/=f),s(a)}};let Hg=!1;class F6 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;f4($6),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),Hg&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),mf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,Hg=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||bt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Hg=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function JN(e){const[t,n]=a4(),r=E.useContext(Nk);return v.jsx(F6,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(IN),isPresent:t,safeToRemove:n})}const $6={borderRadius:{...Ql,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ql,borderTopRightRadius:Ql,borderBottomLeftRadius:Ql,borderBottomRightRadius:Ql,boxShadow:U6};function H6(e,t,n){const r=yn(e)?e:Cs(e);return r.start(i0("",r,t,n)),r.animation}const G6=(e,t)=>e.depth-t.depth;class K6{constructor(){this.children=[],this.isDirty=!1}add(t){Rb(this.children,t),this.isDirty=!0}remove(t){kb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(G6),this.isDirty=!1,this.children.forEach(t)}}function q6(e,t){const n=In.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(oa(r),e(s-t))};return bt.setup(r,!0),()=>oa(r)}const eI=["TopLeft","TopRight","BottomLeft","BottomRight"],W6=eI.length,Vw=e=>typeof e=="string"?parseFloat(e):e,Uw=e=>typeof e=="number"||Pe.test(e);function Z6(e,t,n,r,a,s){a?(e.opacity=xt(0,n.opacity??1,Y6(r)),e.opacityExit=xt(t.opacity??1,0,X6(r))):s&&(e.opacity=xt(t.opacity??1,n.opacity??1,r));for(let l=0;l<W6;l++){const u=`border${eI[l]}Radius`;let d=Fw(t,u),f=Fw(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||Uw(d)===Uw(f)?(e[u]=Math.max(xt(Vw(d),Vw(f),r),0),(Ur.test(f)||Ur.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,r))}function Fw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Y6=tI(0,.5,Uk),X6=tI(.5,.95,cr);function tI(e,t,n){return r=>r<e?0:r>t?1:n(Nc(e,t,r))}function $w(e,t){e.min=t.min,e.max=t.max}function rr(e,t){$w(e.x,t.x),$w(e.y,t.y)}function Hw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gw(e,t,n,r,a){return e-=t,e=zf(e,1/n,r),a!==void 0&&(e=zf(e,1/a,r)),e}function Q6(e,t=0,n=1,r=.5,a,s=e,l=e){if(Ur.test(t)&&(t=parseFloat(t),t=xt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=xt(s.min,s.max,r);e===s&&(u-=t),e.min=Gw(e.min,t,n,u,a),e.max=Gw(e.max,t,n,u,a)}function Kw(e,t,[n,r,a],s,l){Q6(e,t[n],t[r],t[a],t.scale,s,l)}const J6=["x","scaleX","originX"],e5=["y","scaleY","originY"];function qw(e,t,n,r){Kw(e.x,t,J6,n?n.x:void 0,r?r.x:void 0),Kw(e.y,t,e5,n?n.y:void 0,r?r.y:void 0)}function Ww(e){return e.translate===0&&e.scale===1}function nI(e){return Ww(e.x)&&Ww(e.y)}function Zw(e,t){return e.min===t.min&&e.max===t.max}function t5(e,t){return Zw(e.x,t.x)&&Zw(e.y,t.y)}function Yw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rI(e,t){return Yw(e.x,t.x)&&Yw(e.y,t.y)}function Xw(e){return En(e.x)/En(e.y)}function Qw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class n5{constructor(){this.members=[]}add(t){Rb(this.members,t),t.scheduleRender()}remove(t){if(kb(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(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1){r=s;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:a}=t.options;a===!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 r5(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((a||s||l)&&(r=`translate3d(${a}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:p,rotateX:g,rotateY:y,skewX:_,skewY:x}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),_&&(r+=`skewX(${_}deg) `),x&&(r+=`skewY(${x}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(r+=`scale(${u}, ${d})`),r||"none"}const Gg=["","X","Y","Z"],i5=1e3;let a5=0;function Kg(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iI(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=FN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",bt,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&iI(r)}function aI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},u=t?.()){this.id=a5++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(l5),this.nodes.forEach(f5),this.nodes.forEach(h5),this.nodes.forEach(c5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new K6)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Ob),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const d=this.eventHandlers.get(l);d&&d.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=bN(l)&&!n4(l),this.instance=l;const{layoutId:u,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||u)&&(this.isLayoutDirty=!0),e){let p,g=0;const y=()=>this.root.updateBlockedByResize=!1;bt.read(()=>{g=window.innerWidth}),e(l,()=>{const _=window.innerWidth;_!==g&&(g=_,this.root.updateBlockedByResize=!0,p&&p(),p=q6(y,250),mf.hasAnimatedSinceResize&&(mf.hasAnimatedSinceResize=!1,this.nodes.forEach(tT)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||v5,{onLayoutAnimationStart:A,onLayoutAnimationComplete:C}=f.getProps(),w=!this.targetLayout||!rI(this.targetLayout,_),S=!g&&y;if(this.options.layoutRoot||this.resumeFrom||S||g&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Gb(x,"layout"),onPlay:A,onComplete:C};(f.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,S)}else g||tT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}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,this.eventHandlers.clear(),oa(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(p5),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&&iI(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(eT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(d5),this.nodes.forEach(o5),this.nodes.forEach(s5)):this.nodes.forEach(eT),this.clearAllSnapshots();const u=In.now();sn.delta=yi(0,1e3/60,u-sn.timestamp),sn.timestamp=u,sn.isProcessing=!0,Dg.update.process(sn),Dg.preRender.process(sn),Dg.render.process(sn),sn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(u5),this.sharedNodes.forEach(m5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,bt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!En(this.snapshot.measuredBox.x)&&!En(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ot(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!nI(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Ga(this.latestValues)||p)&&(a(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return l&&(d=this.removeTransform(d)),b5(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Ot();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_5))){const{scroll:f}=this.root;f&&(hs(u.x,f.offset.x),hs(u.y,f.offset.y))}return u}removeElementScroll(l){const u=Ot();if(rr(u,l),this.scroll?.wasRoot)return u;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:p,options:g}=f;f!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&rr(u,l),hs(u.x,p.offset.x),hs(u.y,p.offset.y))}return u}applyTransform(l,u=!1){const d=Ot();rr(d,l);for(let f=0;f<this.path.length;f++){const p=this.path[f];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&ps(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Ga(p.latestValues)&&ps(d,p.latestValues)}return Ga(this.latestValues)&&ps(d,this.latestValues),d}removeTransform(l){const u=Ot();rr(u,l);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!Ga(f.latestValues))continue;tv(f.latestValues)&&f.updateSnapshot();const p=Ot(),g=f.measurePageBox();rr(p,g),qw(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Ga(this.latestValues)&&qw(u,this.latestValues),u}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!==sn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(l||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!(!this.layout||!(p||g))){if(this.resolvedRelativeTargetAt=sn.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),bc(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ot(),this.targetWithTransforms=Ot()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),T6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),jN(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),bc(this.relativeTargetOrigin,this.target,y.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||tv(this.parent.latestValues)||LN(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===sn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||p))return;rr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;V4(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ot());const{target:_}=l;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hw(this.prevProjectionDelta.x,this.projectionDelta.x),Hw(this.prevProjectionDelta.y,this.projectionDelta.y)),vc(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!Qw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ms(),this.projectionDelta=ms(),this.projectionDeltaWithTransform=ms()}setAnimationOrigin(l,u=!1){const d=this.snapshot,f=d?d.latestValues:{},p={...this.latestValues},g=ms();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const y=Ot(),_=d?d.source:void 0,x=this.layout?this.layout.source:void 0,A=_!==x,C=this.getStack(),w=!C||C.members.length<=1,S=!!(A&&!w&&this.options.crossfade===!0&&!this.path.some(y5));this.animationProgress=0;let T;this.mixTargetDelta=N=>{const R=N/1e3;nT(g.x,l.x,R),nT(g.y,l.y,R),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bc(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),g5(this.relativeTarget,this.relativeTargetOrigin,y,R),T&&t5(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Ot()),rr(T,this.relativeTarget)),A&&(this.animationValues=p,Z6(p,f,this.latestValues,R,S,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(oa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bt.update(()=>{mf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Cs(0)),this.currentAnimation=H6(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onStop:()=>{},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(i5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:d,layout:f,latestValues:p}=l;if(!(!u||!d||!f)){if(this!==l&&this.layout&&f&&oI(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||Ot();const g=En(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+g;const y=En(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+y}rr(u,d),ps(u,p),vc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new n5),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const f={};d.z&&Kg("z",l,f,this.animationValues);for(let p=0;p<Gg.length;p++)Kg(`rotate${Gg[p]}`,l,f,this.animationValues),Kg(`skew${Gg[p]}`,l,f,this.animationValues);l.render();for(const p in f)l.setStaticValue(p,f[p]),this.animationValues&&(this.animationValues[p]=f[p]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=pf(u?.pointerEvents)||"",l.transform=d?d(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=pf(u?.pointerEvents)||""),this.hasProjected&&!Ga(this.latestValues)&&(l.transform=d?d({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=f.animationValues||f.latestValues;this.applyTransformsToTarget();let g=r5(this.projectionDeltaWithTransform,this.treeScale,p);d&&(g=d(p,g)),l.transform=g;const{x:y,y:_}=this.projectionDelta;l.transformOrigin=`${y.origin*100}% ${_.origin*100}% 0`,f.animationValues?l.opacity=f===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Lc){if(p[x]===void 0)continue;const{correct:A,applyTo:C,isCSSVariable:w}=Lc[x],S=g==="none"?p[x]:A(p[x],f);if(C){const T=C.length;for(let N=0;N<T;N++)l[C[N]]=S}else w?this.options.visualElement.renderState.vars[x]=S:l[x]=S}this.options.layoutId&&(l.pointerEvents=f===this?pf(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(Jw),this.root.sharedNodes.clear()}}}function o5(e){e.updateLayout()}function s5(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?ar(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],y=En(g);g.min=n[p].min,g.max=g.min+y}):oI(a,t.layoutBox,n)&&ar(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],y=En(n[p]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+y)});const l=ms();vc(l,n,t.layoutBox);const u=ms();s?vc(u,e.applyTransform(r,!0),t.measuredBox):vc(u,n,t.layoutBox);const d=!nI(l);let f=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:y}=p;if(g&&y){const _=Ot();bc(_,t.layoutBox,g.layoutBox);const x=Ot();bc(x,n,y.layoutBox),rI(_,x)||(f=!0),p.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=_,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function l5(e){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 c5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function u5(e){e.clearSnapshot()}function Jw(e){e.clearMeasurements()}function eT(e){e.isLayoutDirty=!1}function d5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function f5(e){e.resolveTargetDelta()}function h5(e){e.calcProjection()}function p5(e){e.resetSkewAndRotation()}function m5(e){e.removeLeadSnapshot()}function nT(e,t,n){e.translate=xt(t.translate,0,n),e.scale=xt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rT(e,t,n,r){e.min=xt(t.min,n.min,r),e.max=xt(t.max,n.max,r)}function g5(e,t,n,r){rT(e.x,t.x,n.x,r),rT(e.y,t.y,n.y,r)}function y5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const v5={duration:.45,ease:[.4,0,.1,1]},iT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aT=iT("applewebkit/")&&!iT("chrome/")?Math.round:cr;function oT(e){e.min=aT(e.min),e.max=aT(e.max)}function b5(e){oT(e.x),oT(e.y)}function oI(e,t,n){return e==="position"||e==="preserve-aspect"&&!w6(Xw(t),Xw(n),.2)}function _5(e){return e!==e.root&&e.scroll?.wasRoot}const E5=aI({attachResizeListener:(e,t)=>jc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qg={current:void 0},sI=aI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qg.current){const e=new E5({});e.mount(window),e.setOptions({layoutScroll:!0}),qg.current=e}return qg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),S5={pan:{Feature:V6},drag:{Feature:B6,ProjectionNode:sI,MeasureLayout:JN}};function sT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&bt.postRender(()=>s(t,su(t)))}class x5 extends ha{mount(){const{current:t}=this.node;t&&(this.unmount=X3(t,(n,r)=>(sT(this.node,r,"Start"),a=>sT(this.node,a,"End"))))}unmount(){}}class A5 extends ha{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=iu(jc(this.node.current,"focus",()=>this.onFocus()),jc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function lT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&bt.postRender(()=>s(t,su(t)))}class w5 extends ha{mount(){const{current:t}=this.node;t&&(this.unmount=t4(t,(n,r)=>(lT(this.node,r,"Start"),(a,{success:s})=>lT(this.node,a,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const lv=new WeakMap,Wg=new WeakMap,T5=e=>{const t=lv.get(e.target);t&&t(e)},C5=e=>{e.forEach(T5)};function R5({root:e,...t}){const n=e||document;Wg.has(n)||Wg.set(n,{});const r=Wg.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(C5,{root:e,...t})),r[a]}function k5(e,t,n){const r=R5(t);return lv.set(e,n),r.observe(e),()=>{lv.delete(e),r.unobserve(e)}}const N5={some:0,all:1};class I5 extends ha{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:N5[a]},u=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),y=f?p:g;y&&y(d)};return k5(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(O5(t,n))&&this.startObserver()}unmount(){}}function O5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lI={inView:{Feature:I5},tap:{Feature:w5},focus:{Feature:A5},hover:{Feature:x5}},D5={layout:{ProjectionNode:sI,MeasureLayout:JN}},L5={...qN,...lI,...S5,...D5},cI=M4(L5,UN),j5={renderer:UN,...qN,...lI};var P5={};const gf=Object.create(null),Jl=e=>P5||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?gf:globalThis),Ha=new Proxy(gf,{get(e,t){return Jl()[t]??gf[t]},has(e,t){const n=Jl();return t in n||t in gf},set(e,t,n){const r=Jl(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=Jl(!0);return delete n[t],!0},ownKeys(){const e=Jl(!0);return Object.keys(e)}});var Fs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},io=typeof window>"u"||"Deno"in globalThis;function bn(){}function M5(e,t){return typeof e=="function"?e(t):e}function cv(e){return typeof e=="number"&&e>=0&&e!==1/0}function uI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ta(e,t){return typeof e=="function"?e(t):e}function or(e,t){return typeof e=="function"?e(t):e}function cT(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==a0(l,t.options))return!1}else if(!Pc(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||s&&!s(t))}function uT(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ao(t.options.mutationKey)!==ao(s))return!1}else if(!Pc(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function a0(e,t){return(t?.queryKeyHashFn||ao)(e)}function ao(e){return JSON.stringify(e,(t,n)=>uv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Pc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Pc(e[n],t[n])):!1}var z5=Object.prototype.hasOwnProperty;function dI(e,t){if(e===t)return e;const n=dT(e)&&dT(t);if(!n&&!(uv(e)&&uv(t)))return t;const a=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),l=s.length,u=n?new Array(l):{};let d=0;for(let f=0;f<l;f++){const p=n?f:s[f],g=e[p],y=t[p];if(g===y){u[p]=g,(n?f<a:z5.call(e,p))&&d++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){u[p]=y;continue}const _=dI(g,y);u[p]=_,_===g&&d++}return a===l&&d===a?e:u}function Bf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function dT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function uv(e){if(!fT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!fT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fT(e){return Object.prototype.toString.call(e)==="[object Object]"}function B5(e){return new Promise(t=>{setTimeout(t,e)})}function dv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dI(e,t):t}function V5(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function U5(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var o0=Symbol();function fI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===o0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function hI(e,t){return typeof e=="function"?e(...t):!!e}var F5=class extends Fs{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!io&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},s0=new F5,$5=class extends Fs{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!io&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},Vf=new $5;function fv(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function H5(e){return Math.min(1e3*2**e,3e4)}function pI(e){return(e??"online")==="online"?Vf.isOnline():!0}var hv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function mI(e){let t=!1,n=0,r;const a=fv(),s=()=>a.status!=="pending",l=A=>{if(!s()){const C=new hv(A);y(C),e.onCancel?.(C)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>s0.isFocused()&&(e.networkMode==="always"||Vf.isOnline())&&e.canRun(),p=()=>pI(e.networkMode)&&e.canRun(),g=A=>{s()||(r?.(),a.resolve(A))},y=A=>{s()||(r?.(),a.reject(A))},_=()=>new Promise(A=>{r=C=>{(s()||f())&&A(C)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),x=()=>{if(s())return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(w){A=Promise.reject(w)}Promise.resolve(A).then(g).catch(w=>{if(s())return;const S=e.retry??(io?0:3),T=e.retryDelay??H5,N=typeof T=="function"?T(n,w):T,R=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,w);if(t||!R){y(w);return}n++,e.onFail?.(n,w),B5(N).then(()=>f()?void 0:_()).then(()=>{t?y(w):x()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?x():_().then(x),a)}}var G5=e=>setTimeout(e,0);function K5(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=G5;const s=u=>{t?e.push(u):a(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||l()}return d},batchCalls:u=>(...d)=>{s(()=>{u(...d)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var qt=K5(),gI=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cv(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(io?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},q5=class extends gI{#t;#e;#n;#r;#i;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=W5(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=dv(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(bn).catch(bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>or(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===o0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ta(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!uI(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#s?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const u=fI(this.options,t),f=(()=>{const p={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(p),p})();return this.#s=!1,this.options.persister?this.options.persister(u,f,this):u(f)},l=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#a({type:"fetch",meta:l.fetchOptions?.meta}),this.#i=mI({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:u=>{u instanceof hv&&u.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(u,d)=>{this.#a({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const u=await this.#i.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof hv){if(u.silent)return this.#i.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#a({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...yI(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),qt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function yI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function W5(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Z5=class extends Fs{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??a0(r,t);let s=this.get(a);return s||(s=new q5({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>cT(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>cT(e,n)):t}notify(e){qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Y5=class extends gI{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||vI(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=mI({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const s=await this.options.onMutate?.(e);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function vI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bI=class extends Fs{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new Y5({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=$d(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=$d(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=$d(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=$d(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qt.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>uT(t,n))}findAll(e={}){return this.getAll().filter(t=>uT(e,t))}notify(e){qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qt.batch(()=>Promise.all(e.map(t=>t.continue().catch(bn))))}};function $d(e){return e.options.scope?.id}function hT(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const g=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=fI(t.options,t.fetchOptions),_=async(x,A,C)=>{if(p)return Promise.reject();if(A==null&&x.pages.length)return Promise.resolve(x);const S=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return g(O),O})(),T=await y(S),{maxPages:N}=t.options,R=C?U5:V5;return{pages:R(x.pages,T,N),pageParams:R(x.pageParams,A,N)}};if(a&&s.length){const x=a==="backward",A=x?X5:pT,C={pages:s,pageParams:l},w=A(r,C);u=await _(C,w,x)}else{const x=e??s.length;do{const A=d===0?l[0]??r.initialPageParam:pT(r,u);if(d>0&&A==null)break;u=await _(u,A),d++}while(d<x)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function pT(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function X5(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Q5=class{#t;#e;#n;#r;#i;#o;#s;#a;constructor(e={}){this.#t=e.queryCache||new Z5,this.#e=e.mutationCache||new bI,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=s0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=Vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ta(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(r.queryHash)?.state.data,l=M5(t,s);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return qt.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;qt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return qt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=qt.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(bn).catch(bn)}invalidateQueries(e,t={}){return qt.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=qt.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(bn)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(bn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(ta(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bn).catch(bn)}fetchInfiniteQuery(e){return e.behavior=hT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bn).catch(bn)}ensureInfiniteQueryData(e){return e.behavior=hT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vf.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ao(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Pc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ao(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{Pc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=a0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===o0&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},J5=class extends Fs{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#s=fv(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#o;#s;#a;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),mT(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pv(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pv(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#E(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof or(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!Bf(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&gT(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||or(this.options.enabled,this.#e)!==or(t.enabled,this.#e)||ta(this.options.staleTime,this.#e)!==ta(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||or(this.options.enabled,this.#e)!==or(t.enabled,this.#e)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return t8(this,n)&&(this.#r=n,this.#o=this.options,this.#i=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(bn)),t}#g(){this.#_();const e=ta(this.options.staleTime,this.#e);if(io||this.#r.isStale||!cv(e))return;const n=uI(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#E(),this.#l=e,!(io||or(this.options.enabled,this.#e)===!1||!cv(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||s0.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#_(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#E(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,s=this.#i,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},g=!1,y;if(t._optimisticResults){const j=this.hasListeners(),H=!j&&mT(e,t),Z=j&&gT(e,n,t,r);(H||Z)&&(p={...p,...yI(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:_,errorUpdatedAt:x,status:A}=p;y=p.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&A==="pending"){let j;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(j=a.data,C=!0):j=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,j!==void 0&&(A="success",y=dv(a?.data,j,t),g=!0)}if(t.select&&y!==void 0&&!C)if(a&&y===s?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=dv(a?.data,y,t),this.#f=y,this.#a=null}catch(j){this.#a=j}this.#a&&(_=this.#a,y=this.#f,x=Date.now(),A="error");const w=p.fetchStatus==="fetching",S=A==="pending",T=A==="error",N=S&&w,R=y!==void 0,D={status:A,fetchStatus:p.fetchStatus,isPending:S,isSuccess:A==="success",isError:T,isInitialLoading:N,isLoading:N,data:y,dataUpdatedAt:p.dataUpdatedAt,error:_,errorUpdatedAt:x,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!S,isLoadingError:T&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:T&&R,isStale:l0(e,t),refetch:this.refetch,promise:this.#s,isEnabled:or(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const j=q=>{D.status==="error"?q.reject(D.error):D.data!==void 0&&q.resolve(D.data)},H=()=>{const q=this.#s=D.promise=fv();j(q)},Z=this.#s;switch(Z.status){case"pending":e.queryHash===n.queryHash&&j(Z);break;case"fulfilled":(D.status==="error"||D.data!==Z.value)&&H();break;case"rejected":(D.status!=="error"||D.error!==Z.reason)&&H();break}}return D}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#o=this.options,this.#i.data!==void 0&&(this.#h=this.#e),Bf(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const s=new Set(a??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(l=>{const u=l;return this.#r[u]!==e[u]&&s.has(u)})};this.#x({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){qt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function e8(e,t){return or(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mT(e,t){return e8(e,t)||e.state.data!==void 0&&pv(e,t,t.refetchOnMount)}function pv(e,t,n){if(or(t.enabled,e)!==!1&&ta(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&l0(e,t)}return!1}function gT(e,t,n,r){return(e!==t||or(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&l0(e,n)}function l0(e,t){return or(t.enabled,e)!==!1&&e.isStaleByTime(ta(t.staleTime,e))}function t8(e,t){return!Bf(e.getCurrentResult(),t)}var n8=class extends Fs{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Bf(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ao(n.mutationKey)!==ao(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??vI();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){qt.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},_I=E.createContext(void 0),c0=e=>{const t=E.useContext(_I);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},r8=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(_I.Provider,{value:e,children:t})),EI=E.createContext(!1),i8=()=>E.useContext(EI);EI.Provider;function a8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var o8=E.createContext(a8()),s8=()=>E.useContext(o8),l8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},c8=e=>{E.useEffect(()=>{e.clearReset()},[e])},u8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||hI(n,[e.error,r])),d8=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},f8=(e,t)=>e.isLoading&&e.isFetching&&!t,h8=(e,t)=>e?.suspense&&t.isPending,yT=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function p8(e,t,n){const r=i8(),a=s8(),s=c0(),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",d8(l),l8(l,a),c8(a);const u=!s.getQueryCache().get(l.queryHash),[d]=E.useState(()=>new t(s,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(g=>{const y=p?d.subscribe(qt.batchCalls(g)):bn;return d.updateResult(),y},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),E.useEffect(()=>{d.setOptions(l)},[l,d]),h8(l,f))throw yT(l,d,a);if(u8({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!io&&f8(f,r)&&(u?yT(l,d,a):s.getQueryCache().get(l.queryHash)?.promise)?.catch(bn).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function wh(e,t){return p8(e,J5)}function po(e,t){const n=c0(),[r]=E.useState(()=>new n8(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const a=E.useSyncExternalStore(E.useCallback(l=>r.subscribe(qt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=E.useCallback((l,u)=>{r.mutate(l,u).catch(bn)},[r]);if(a.error&&hI(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const SI=e=>{const[t,n]=E.useState(e);return E.useEffect(()=>{n(e??window.document.body)},[e]),t},m8={},vT=e=>{let t;const n=new Set,r=(p,g)=>{const y=typeof p=="function"?p(t):p;if(!Object.is(y,t)){const _=t;t=g??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(x=>x(t,_))}},a=()=>t,d={setState:r,getState:a,getInitialState:()=>f,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(m8?"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()}},f=t=e(r,a,d);return d},g8=e=>e?vT(e):vT;var Zg={exports:{}},Yg={},Xg={exports:{}},Qg={};/**
|
|
252
|
-
* @license React
|
|
253
|
-
* use-sync-external-store-shim.production.js
|
|
254
|
-
*
|
|
255
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
256
|
-
*
|
|
257
|
-
* This source code is licensed under the MIT license found in the
|
|
258
|
-
* LICENSE file in the root directory of this source tree.
|
|
259
|
-
*/var bT;function y8(){if(bT)return Qg;bT=1;var e=qc();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(g,y){var _=y(),x=r({inst:{value:_,getSnapshot:y}}),A=x[0].inst,C=x[1];return s(function(){A.value=_,A.getSnapshot=y,d(A)&&C({inst:A})},[g,_,y]),a(function(){return d(A)&&C({inst:A}),g(function(){d(A)&&C({inst:A})})},[g]),l(_),_}function d(g){var y=g.getSnapshot;g=g.value;try{var _=y();return!n(g,_)}catch{return!0}}function f(g,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Qg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Qg}var _T;function v8(){return _T||(_T=1,Xg.exports=y8()),Xg.exports}/**
|
|
260
|
-
* @license React
|
|
261
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
262
|
-
*
|
|
263
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
264
|
-
*
|
|
265
|
-
* This source code is licensed under the MIT license found in the
|
|
266
|
-
* LICENSE file in the root directory of this source tree.
|
|
267
|
-
*/var ET;function b8(){if(ET)return Yg;ET=1;var e=qc(),t=v8();function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,d=e.useDebugValue;return Yg.useSyncExternalStoreWithSelector=function(f,p,g,y,_){var x=s(null);if(x.current===null){var A={hasValue:!1,value:null};x.current=A}else A=x.current;x=u(function(){function w(O){if(!S){if(S=!0,T=O,O=y(O),_!==void 0&&A.hasValue){var D=A.value;if(_(D,O))return N=D}return N=O}if(D=N,r(T,O))return D;var j=y(O);return _!==void 0&&_(D,j)?(T=O,D):(T=O,N=j)}var S=!1,T,N,R=g===void 0?null:g;return[function(){return w(p())},R===null?void 0:function(){return w(R())}]},[p,g,y,_]);var C=a(f,x[0],x[1]);return l(function(){A.hasValue=!0,A.value=C},[C]),d(C),C},Yg}var ST;function _8(){return ST||(ST=1,Zg.exports=b8()),Zg.exports}var E8=_8();const S8=ib(E8),xI={},{useDebugValue:x8}=Ie,{useSyncExternalStoreWithSelector:A8}=S8;let xT=!1;const w8=e=>e;function T8(e,t=w8,n){(xI?"production":void 0)!=="production"&&n&&!xT&&(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"),xT=!0);const r=A8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return x8(r),r}const AT=e=>{(xI?"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"?g8(e):e,n=(r,a)=>T8(t,r,a);return Object.assign(n,t),n},AI=e=>e?AT(e):AT,C8=AI((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(a=>{const s=a.scrollBlockers,l=s.find(u=>u.element===r);if(l){const d=l.blockers.includes(n)?l.blockers:[...l.blockers,n];return{scrollBlockers:s.map(f=>f.element===r?{...f,blockers:d}:f)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...s,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(a=>{const s=a.scrollBlockers,l=s.find(u=>u.element===r);return l?l.blockers.length>1?{scrollBlockers:s.map(u=>u.element===r?{...u,blockers:u.blockers.filter(d=>d!==n)}:u)}:(r.style.overflowY="auto",{scrollBlockers:s.filter(u=>u.element!==r)}):{scrollBlockers:s}}),isElementScrollBlocked:n=>t().scrollBlockers.some(r=>r.element===n)}));function R8(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,a]of e)if(!Object.is(a,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:k8}=Ie;function wI(e){const t=k8();return n=>{const r=e(n);return R8(t.current,r)?t.current:t.current=r}}const TI=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:a,addBlockage:s,removeBlockage:l}=C8(wI(f=>({isElementScrollBlocked:f.isElementScrollBlocked,addBlockage:f.addBlockage,removeBlockage:f.removeBlockage}))),u=SI(n);return E.useEffect(()=>{const f=n??window.document.body;t?s(r,f):l(r,f)},[s,t,n,r,l]),{isScrollBlocked:u?a(u):!1}},u0="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",N8="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",I8=({className:e,...t})=>v.jsx("h1",{className:_e("mt-5 text-2xl font-bold",e),...t}),O8=({className:e,...t})=>v.jsx("h2",{className:_e("mt-16 mb-2 text-2xl font-bold",u0,e),...t}),D8=({className:e,...t})=>v.jsx("h3",{className:_e("mt-5 mb-2 text-xl font-bold",u0,e),...t}),L8=({className:e,...t})=>v.jsx("h4",{className:_e("mt-3 text-lg font-bold",u0,e),...t}),j8=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),P8=e=>{const r=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},M8=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,a=window.getComputedStyle(e,":after"),s=n+parseInt(a.getPropertyValue("left"),10),l=s+parseInt(a.width,10),u=r+parseInt(a.getPropertyValue("top"),10),d=u+parseInt(a.height,10),f=t.clientX,p=t.clientY;return f>=s&&f<=l&&p>=u&&p<=d},d0=({H:e,children:t,className:n,isClickable:r,...a})=>{const s=typeof t=="string"?j8(t):void 0,l=u=>{const{id:d}=u.currentTarget;if(M8(u.currentTarget,u)&&typeof d=="string"){const g=`${window.location.href.split("#")[0]}#${d}`;navigator.clipboard.writeText(g),P8(d)}};return v.jsx(e,{id:s,onClick:r?l:void 0,"aria-label":r?`Click to scroll to section ${s} and copy the link to the clipboard`:void 0,className:_e(r&&N8,n),...a,children:t})},z8=({isClickable:e,...t})=>v.jsx(I8,{...t}),B8=({isClickable:e=!1,...t})=>v.jsx(d0,{H:O8,isClickable:e,...t}),f0=({isClickable:e=!1,...t})=>v.jsx(d0,{H:D8,isClickable:e,...t}),V8=({isClickable:e=!1,...t})=>v.jsx(d0,{H:L8,isClickable:e,...t});var h0=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.UNSET="unset",e))(h0||{});const U8=ur("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"}}),F8=cI.create(Ar),p0=({children:e,isOpen:t,container:n,disableScroll:r=!0,onClose:a,hasCloseButton:s=!1,title:l,size:u="md",className:d,...f})=>{const p=SI(n);if(TI({key:"modal",disableScroll:t&&r}),!p)return v.jsx(v.Fragment,{});const g=typeof l=="string";return fo.createPortal(v.jsx(cI.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:y=>{y.stopPropagation(),a?.()},"aria-hidden":!t,children:v.jsx("div",{className:"flex justify-center p-4",children:v.jsxs(F8,{onClick:y=>y.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:U8({size:u,className:d}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...f,children:[v.jsxs("div",{className:_e("cursor-default px-4",s&&g?"flex items-center justify-center":s?"flex items-center justify-end":g?"items-center":"hidden"),children:[g&&v.jsx(f0,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),s&&v.jsx(ot,{variant:at.HOVERABLE,color:it.TEXT,label:"Close modal",className:"ml-auto",onClick:y=>{y.stopPropagation(),a?.()},Icon:ho,size:Kn.ICON_MD})]}),v.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),p)},$8=e=>{const t=Gr(),n=e??t??rt,r=UR(n),{data:a}=wh({queryKey:["oAuth2AccessToken"],queryFn:r.getOAuth2AccessToken,enabled:!!(n.editor.clientId&&n.editor.clientSecret),staleTime:0,gcTime:0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1});return{oAuth2AccessToken:a?.data}};var H8=Object.defineProperty,G8=Object.defineProperties,K8=Object.getOwnPropertyDescriptors,wT=Object.getOwnPropertySymbols,q8=Object.prototype.hasOwnProperty,W8=Object.prototype.propertyIsEnumerable,TT=(e,t,n)=>t in e?H8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yr=(e,t)=>{for(var n in t||(t={}))q8.call(t,n)&&TT(e,n,t[n]);if(wT)for(var n of wT(t))W8.call(t,n)&&TT(e,n,t[n]);return e},Lr=(e,t)=>G8(e,K8(t)),Z8=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},Y8=async(e,t)=>{var n,r,a,s,l,u;let d=t||{};const f={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:f};for(const p of t?.plugins||[]){if(p.init){const g=await((n=p.init)==null?void 0:n.call(p,e.toString(),t));d=g.options||d,e=g.url}f.onRequest.push((r=p.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=p.hooks)==null?void 0:a.onResponse),f.onSuccess.push((s=p.hooks)==null?void 0:s.onSuccess),f.onError.push((l=p.hooks)==null?void 0:l.onError),f.onRetry.push((u=p.hooks)==null?void 0:u.onRetry)}return{url:e,options:d,hooks:f}},CT=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},X8=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function Q8(e){if(typeof e=="number")return new CT({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new CT(e);case"exponential":return new X8(e);default:throw new Error("Invalid retry strategy")}}var J8=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const r=n(e.auth.username),a=n(e.auth.password);if(!r||!a)return t;t.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(e.auth.type==="Custom"){const r=n(e.auth.value);if(!r)return t;t.authorization=`${n(e.auth.prefix)} ${r}`}}return t},eK=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function tK(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return eK.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function nK(e){try{return JSON.parse(e),!0}catch{return!1}}function CI(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function RT(e){try{return JSON.parse(e)}catch{return e}}function kT(e){return typeof e=="function"}function rK(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&kT(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&kT(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function iK(e){const t=new Headers(e?.headers),n=await J8(e);for(const[r,a]of Object.entries(n||{}))t.set(r,a);if(!t.has("content-type")){const r=aK(e?.body);r&&t.set("content-type",r)}return t}function aK(e){return CI(e)?"application/json":null}function oK(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(CI(e.body)&&!t.has("content-type")){for(const[n,r]of Object.entries(e?.body))r instanceof Date&&(e.body[n]=r.toISOString());return JSON.stringify(e.body)}return e.body}function sK(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return kI.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function lK(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var cK=class RI extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,RI.prototype)}};async function yf(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new cK(n.issues);return n.value}var kI=["get","post","put","patch","delete"],uK=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,a,s,l;const u=((a=(r=e.plugins)==null?void 0:r.find(d=>{var f;return(f=d.schema)!=null&&f.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:a.schema)||e.schema;if(u){let d=t;(s=u.config)!=null&&s.prefix&&d.startsWith(u.config.prefix)&&(d=d.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(l=u.config)!=null&&l.baseURL&&d.startsWith(u.config.baseURL)&&(d=d.replace(u.config.baseURL,""));const f=u.schema[d];if(f){let p=Lr(yr({},n),{method:f.method,output:f.output});return n?.disableValidation||(p=Lr(yr({},p),{body:f.input?await yf(f.input,n?.body):n?.body,params:f.params?await yf(f.params,n?.params):n?.params,query:f.query?await yf(f.query,n?.query):n?.query})),{url:t,options:p}}}return{url:t,options:n}}}),dK=e=>{async function t(n,r){const a=Lr(yr(yr({},e),r),{plugins:[...e?.plugins||[],uK(e||{})]});if(e?.catchAllError)try{return await mv(n,a)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await mv(n,a)}return t};function fK(e,t){let{baseURL:n,params:r,query:a}=t||{query:{},params:{},baseURL:""},s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const g=e.toString().split("@")[1].split("/")[0];kI.includes(g)&&(e=e.replace(`@${g}/`,"/"))}s.endsWith("/")||(s+="/");let[l,u]=e.replace(s,"").split("?");const d=new URLSearchParams(u);for(const[g,y]of Object.entries(a||{}))y!=null&&d.set(g,String(y));if(r)if(Array.isArray(r)){const g=l.split("/").filter(y=>y.startsWith(":"));for(const[y,_]of g.entries()){const x=r[y];l=l.replace(_,x)}}else for(const[g,y]of Object.entries(r))l=l.replace(`:${g}`,String(y));l=l.split("/").map(encodeURIComponent).join("/"),l.startsWith("/")&&(l=l.slice(1));let f=d.toString();return f=f.length>0?`?${f}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${l}${f}`,s):`${s}${l}${f}`}var mv=async(e,t)=>{var n,r,a,s,l,u,d,f;const{hooks:p,url:g,options:y}=await Y8(e,t),_=rK(y),x=new AbortController,A=(n=y.signal)!=null?n:x.signal,C=fK(g,y),w=oK(y),S=await iK(y),T=sK(g,y);let N=Lr(yr({},y),{url:C,headers:S,body:w,method:T,signal:A});for(const ce of p.onRequest)if(ce){const W=await ce(N);W instanceof Object&&(N=W)}("pipeTo"in N&&typeof N.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in N||(N.duplex="half"));const{clearTimeout:R}=lK(y,x);let O=await _(N.url,N);R();const D={response:O,request:N};for(const ce of p.onResponse)if(ce){const W=await ce(Lr(yr({},D),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?O.clone():O}));W instanceof Response?O=W:W instanceof Object&&(O=W.response)}if(O.ok){if(!(N.method!=="HEAD"))return{data:"",error:null};const W=tK(O),ae={data:"",response:O,request:N};if(W==="json"||W==="text"){const M=await O.text(),G=await((s=N.jsonParser)!=null?s:RT)(M);ae.data=G}else ae.data=await O[W]();N?.output&&N.output&&!N.disableValidation&&(ae.data=await yf(N.output,ae.data));for(const M of p.onSuccess)M&&await M(Lr(yr({},ae),{response:(l=t?.hookOptions)!=null&&l.cloneResponse?O.clone():O}));return t?.throw?ae.data:{data:ae.data,error:null}}const j=(u=t?.jsonParser)!=null?u:RT,H=await O.text(),Z=nK(H),q=Z?await j(H):null,te={response:O,responseText:H,request:N,error:Lr(yr({},q),{status:O.status,statusText:O.statusText})};for(const ce of p.onError)ce&&await ce(Lr(yr({},te),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?O.clone():O}));if(t?.retry){const ce=Q8(t.retry),W=(f=t.retryAttempt)!=null?f:0;if(await ce.shouldAttemptRetry(W,O)){for(const M of p.onRetry)M&&await M(D);const ae=ce.getDelay(W);return await new Promise(M=>setTimeout(M,ae)),await mv(e,Lr(yr({},t),{retryAttempt:W+1}))}}if(t?.throw)throw new Z8(O.status,O.statusText,Z?q:H);return{data:null,error:Lr(yr({},q),{status:O.status,statusText:O.statusText})}};class hK extends Error{constructor(t,n){super(t),this.name="BetterAuthError",this.message=t,this.cause=n,this.stack=""}}function pK(e){try{return new URL(e).pathname!=="/"}catch{throw new hK(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function Jg(e,t="/api/auth"){return pK(e)?e:(t=t.startsWith("/")?t:`/${t}`,`${e.replace(/\/+$/,"")}${t}`)}function mK(e,t,n){if(e)return Jg(e,t);const r=Ha.BETTER_AUTH_URL||Ha.NEXT_PUBLIC_BETTER_AUTH_URL||Ha.PUBLIC_BETTER_AUTH_URL||Ha.NUXT_PUBLIC_BETTER_AUTH_URL||Ha.NUXT_PUBLIC_AUTH_URL||(Ha.BASE_URL!=="/"?Ha.BASE_URL:void 0);if(r)return Jg(r,t);if(typeof window<"u"&&window.location)return Jg(window.location.origin,t)}var ey={},ty={},ny={},pr={},NT;function m0(){if(NT)return pr;NT=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.cleanTasks=pr.allTasks=pr.task=pr.startTask=void 0;let e=0,t=[];function n(){return e+=1,()=>{if(e-=1,e===0){let l=t;t=[];for(let u of l)u()}}}pr.startTask=n;function r(l){let u=n();return l().finally(u)}pr.task=r;function a(){return e===0?Promise.resolve():new Promise(l=>{t.push(l)})}pr.allTasks=a;function s(){e=0}return pr.cleanTasks=s,pr}var IT;function Th(){return IT||(IT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.cleanStores=e.clean=void 0;const n=m0();e.clean=Symbol("clean");let r=(...a)=>{if(t.NODE_ENV==="production")throw new Error("cleanStores() can be used only during development or tests");(0,n.cleanTasks)();for(let s of a)s&&(s.mocked&&delete s.mocked,s[e.clean]&&s[e.clean]())};e.cleanStores=r})(ny)),ny}var OT;function g0(){return OT||(OT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.onMount=e.STORE_UNMOUNT_DELAY=e.onBuild=e.onNotify=e.onSet=e.onStop=e.onStart=void 0;const n=Th(),r=0,a=1,s=2,l=3,u=4,d=5,f=6,p=10;let g=(S,T,N,R)=>(S.events=S.events||{},S.events[N+p]||(S.events[N+p]=R(O=>{S.events[N].reduceRight((D,j)=>(j(D),D),{shared:{},...O})})),S.events[N]=S.events[N]||[],S.events[N].push(T),()=>{let O=S.events[N],D=O.indexOf(T);O.splice(D,1),O.length||(delete S.events[N],S.events[N+p](),delete S.events[N+p])}),y=(S,T)=>g(S,T,r,N=>{let R=S.listen;return S.listen=O=>(!S.lc&&!S.starting&&(S.starting=!0,N(),delete S.starting),R(O)),()=>{S.listen=R}});e.onStart=y;let _=(S,T)=>g(S,T,a,N=>{let R=S.off;return S.off=()=>{N(),R()},()=>{S.off=R}});e.onStop=_;let x=(S,T)=>g(S,T,s,N=>{let R=S.set,O=S.setKey;return S.setKey&&(S.setKey=(D,j)=>{let H;if(N({abort:()=>{H=!0},changed:D,newValue:{...S.value,[D]:j}}),!H)return O(D,j)}),S.set=D=>{let j;if(N({abort:()=>{j=!0},newValue:D}),!j)return R(D)},()=>{S.set=R,S.setKey=O}});e.onSet=x;let A=(S,T)=>g(S,T,l,N=>{let R=S.notify;return S.notify=O=>{let D;if(N({abort:()=>{D=!0},changed:O}),!D)return R(O)},()=>{S.notify=R}});e.onNotify=A;let C=(S,T)=>g(S,T,u,N=>{let R=S.build;return S.build=(...O)=>{let D=R(...O);return N({store:D}),D},()=>{S.build=R}});e.onBuild=C,e.STORE_UNMOUNT_DELAY=1e3;let w=(S,T)=>g(S,R=>{let O=T(R);O&&S.events[f].push(O)},d,R=>{let O=S.listen;S.listen=j=>(!S.lc&&!S.active&&(S.active=!0,R()),O(j));let D=S.off;if(S.events[f]=[],S.off=()=>{setTimeout(()=>{if(S.active&&!S.lc){S.active=!1;for(let j of S.events[f])j();S.events[f]=[],D()}},e.STORE_UNMOUNT_DELAY)},t.NODE_ENV!=="production"){let j=S[n.clean];S[n.clean]=()=>{for(let H of S.events[f])H();S.events[f]=[],S.active=!1,j()}}return()=>{S.listen=O,S.off=D}});e.onMount=w})(ty)),ty}var ry={},DT;function gK(){return DT||(DT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.actionFor=e.action=e.lastAction=void 0;const t=m0();e.lastAction=Symbol();let n=(s,l,u,d)=>{let f={...s};f.set=(...g)=>{s[e.lastAction]=l,s.set(...g),delete s[e.lastAction]},s.setKey&&(f.setKey=(...g)=>{s[e.lastAction]=l,s.setKey(...g),delete s[e.lastAction]});let p=u(f,...d);if(p instanceof Promise){let g=(0,t.startTask)();return p.finally(g)}return p},r=(s,l,u)=>(...d)=>n(s,l,u,d);e.action=r;let a=(s,l,u)=>(d,...f)=>n(d,l,u,f);e.actionFor=a})(ry)),ry}var ec={},tc={},iy={},LT;function y0(){return LT||(LT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.atom=e.notifyId=void 0;const n=Th();let r=[];e.notifyId=0;let a=s=>{let l,u=[],d={lc:0,value:s,set(f){d.value=f,d.notify()},get(){return d.lc||d.listen(()=>{})(),d.value},notify(f){l=u;let p=!r.length;for(let g=0;g<l.length;g++)r.push(l[g],d.value,f);if(p){e.notifyId++;for(let g=0;g<r.length;g+=3)r[g](r[g+1],r[g+2]);r.length=0}},listen(f){return u===l&&(u=u.slice()),d.lc=u.push(f),()=>{u===l&&(u=u.slice());let p=u.indexOf(f);~p&&(u.splice(p,1),d.lc--,d.lc||d.off())}},subscribe(f){let p=d.listen(f);return f(d.value),p},off(){}};return t.NODE_ENV!=="production"&&(d[n.clean]=()=>{u=[],d.lc=0,d.off()}),d};e.atom=a})(iy)),iy}var jT;function NI(){if(jT)return tc;jT=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.map=void 0;const e=y0();let t=(n={})=>{let r=(0,e.atom)(n);return r.setKey=function(a,s){typeof s>"u"?a in r.value&&(r.value={...r.value},delete r.value[a],r.notify(a)):r.value[a]!==s&&(r.value={...r.value,[a]:s},r.notify(a))},r};return tc.map=t,tc}var PT;function yK(){if(PT)return ec;PT=1;var e={};Object.defineProperty(ec,"__esModule",{value:!0}),ec.mapTemplate=void 0;const t=g0(),n=Th(),r=NI();function a(s){let l=(u,...d)=>(l.cache[u]||(l.cache[u]=l.build(u,...d)),l.cache[u]);return l.build=(u,...d)=>{let f=(0,r.map)({id:u});return(0,t.onMount)(f,()=>{let p;return s&&(p=s(f,u,...d)),()=>{delete l.cache[u],p&&p()}}),f},l.cache={},e.NODE_ENV!=="production"&&(l[n.clean]=()=>{for(let u in l.cache)l.cache[u][n.clean]();l.cache={}}),l}return ec.mapTemplate=a,ec}var nc={},MT;function vK(){if(MT)return nc;MT=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.listenKeys=void 0;function e(t,n,r){let a=new Set([...n,void 0]);return t.listen((s,l)=>{a.has(l)&&r(s,l)})}return nc.listenKeys=e,nc}var rc={},zT;function bK(){if(zT)return rc;zT=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.keepMount=void 0;let e=t=>{t.listen(()=>{})};return rc.keepMount=e,rc}var ic={},BT;function _K(){if(BT)return ic;BT=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.computed=void 0;const e=g0(),t=y0();let n=(r,a)=>{Array.isArray(r)||(r=[r]);let s,l=[],u=()=>{let f=r.map(p=>p.get());(s!==t.notifyId||f.some((p,g)=>p!==l[g]))&&(s=t.notifyId,l=f,d.set(a(...f)))},d=(0,t.atom)();return(0,e.onMount)(d,()=>{let f=r.map(p=>p.listen(u,a));return u(),()=>{for(let p of f)p()}}),d};return ic.computed=n,ic}var VT;function EK(){return VT||(VT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.atom=e.computed=e.keepMount=e.listenKeys=e.mapTemplate=e.cleanStores=e.clean=e.lastAction=e.actionFor=e.action=e.task=e.allTasks=e.startTask=e.cleanTasks=e.onSet=e.onStop=e.onBuild=e.onMount=e.onStart=e.onNotify=e.STORE_UNMOUNT_DELAY=void 0;var t=g0();Object.defineProperty(e,"STORE_UNMOUNT_DELAY",{enumerable:!0,get:function(){return t.STORE_UNMOUNT_DELAY}}),Object.defineProperty(e,"onNotify",{enumerable:!0,get:function(){return t.onNotify}}),Object.defineProperty(e,"onStart",{enumerable:!0,get:function(){return t.onStart}}),Object.defineProperty(e,"onMount",{enumerable:!0,get:function(){return t.onMount}}),Object.defineProperty(e,"onBuild",{enumerable:!0,get:function(){return t.onBuild}}),Object.defineProperty(e,"onStop",{enumerable:!0,get:function(){return t.onStop}}),Object.defineProperty(e,"onSet",{enumerable:!0,get:function(){return t.onSet}});var n=m0();Object.defineProperty(e,"cleanTasks",{enumerable:!0,get:function(){return n.cleanTasks}}),Object.defineProperty(e,"startTask",{enumerable:!0,get:function(){return n.startTask}}),Object.defineProperty(e,"allTasks",{enumerable:!0,get:function(){return n.allTasks}}),Object.defineProperty(e,"task",{enumerable:!0,get:function(){return n.task}});var r=gK();Object.defineProperty(e,"action",{enumerable:!0,get:function(){return r.action}}),Object.defineProperty(e,"actionFor",{enumerable:!0,get:function(){return r.actionFor}}),Object.defineProperty(e,"lastAction",{enumerable:!0,get:function(){return r.lastAction}});var a=Th();Object.defineProperty(e,"clean",{enumerable:!0,get:function(){return a.clean}}),Object.defineProperty(e,"cleanStores",{enumerable:!0,get:function(){return a.cleanStores}});var s=yK();Object.defineProperty(e,"mapTemplate",{enumerable:!0,get:function(){return s.mapTemplate}});var l=vK();Object.defineProperty(e,"listenKeys",{enumerable:!0,get:function(){return l.listenKeys}});var u=bK();Object.defineProperty(e,"keepMount",{enumerable:!0,get:function(){return u.keepMount}});var d=_K();Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return d.computed}});var f=y0();Object.defineProperty(e,"atom",{enumerable:!0,get:function(){return f.atom}});var p=NI();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return p.map}})})(ey)),ey}var gv=EK();const SK=typeof window>"u",xK=(e,t,n,r)=>{const a=gv.atom({data:null,error:null,isPending:!0,isRefetching:!1,refetch:u=>s(u)}),s=u=>{const d=typeof r=="function"?r({data:a.get().data,error:a.get().error,isPending:a.get().isPending}):r;n(t,{...d,query:{...d?.query,...u?.query},async onSuccess(f){a.set({data:f.data,error:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await d?.onSuccess?.(f)},async onError(f){const{request:p}=f,g=typeof p.retry=="number"?p.retry:p.retry?.attempts,y=p.retryAttempt||0;g&&y<g||(a.set({error:f.error,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await d?.onError?.(f))},async onRequest(f){const p=a.get();a.set({isPending:p.data===null,data:p.data,error:null,isRefetching:!0,refetch:a.value.refetch}),await d?.onRequest?.(f)}}).catch(f=>{a.set({error:f,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch})})};e=Array.isArray(e)?e:[e];let l=!1;for(const u of e)u.subscribe(()=>{SK||(l?s():gv.onMount(a,()=>(setTimeout(()=>{s()},0),l=!0,()=>{a.off(),u.off()})))});return a},AK={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},wK=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,UT={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},TK=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function CK(e){return e instanceof Date&&!isNaN(e.getTime())}function RK(e){const t=TK.exec(e);if(!t)return null;const[,n,r,a,s,l,u,d,f,p,g]=t;let y=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(s,10),parseInt(l,10),parseInt(u,10),d?parseInt(d.padEnd(3,"0"),10):0));if(f){const _=(parseInt(p,10)*60+parseInt(g,10))*(f==="+"?-1:1);y.setUTCMinutes(y.getUTCMinutes()+_)}return CK(y)?y:null}function kK(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=t;if(typeof e!="string")return e;const l=e.trim();if(l[0]==='"'&&l.endsWith('"')&&!l.slice(1,-1).includes('"'))return l.slice(1,-1);const u=l.toLowerCase();if(u.length<=9&&u in UT)return UT[u];if(!wK.test(l)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(AK).some(([f,p])=>{const g=p.test(l);return g&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${f} pattern`),g})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(l,(p,g)=>{if(p==="__proto__"||p==="constructor"&&g&&typeof g=="object"&&"prototype"in g){r&&console.warn(`[better-json] Dropping "${p}" key to prevent prototype pollution`);return}if(s&&typeof g=="string"){const y=RK(g);if(y)return y}return a?a(p,g):g})}catch(f){if(n)throw f;return e}}function NK(e,t={strict:!0}){return kK(e,t)}const IK={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};function OK(e){const t=gv.atom(!1);return{session:xK(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}const DK=e=>{const t="credentials"in Request.prototype,n=mK(e?.baseURL,e?.basePath),r=e?.plugins?.flatMap(T=>T.fetchPlugins).filter(T=>T!==void 0)||[],a={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:s,onError:l,onRequest:u,onResponse:d,...f}=e?.fetchOptions||{},p=dK({baseURL:n,...t?{credentials:"include"}:{},method:"GET",jsonParser(T){return T?NK(T,{strict:!1}):null},customFetchImpl:fetch,...f,plugins:[a,...f.plugins||[],...e?.disableDefaultFetchPlugins?[]:[IK],...r]}),{$sessionSignal:g,session:y}=OK(p),_=e?.plugins||[];let x={},A={$sessionSignal:g,session:y},C={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const w=[{signal:"$sessionSignal",matcher(T){return T==="/sign-out"||T==="/update-user"||T.startsWith("/sign-in")||T.startsWith("/sign-up")||T==="/delete-user"||T==="/verify-email"}}];for(const T of _)T.getAtoms&&Object.assign(A,T.getAtoms?.(p)),T.pathMethods&&Object.assign(C,T.pathMethods),T.atomListeners&&w.push(...T.atomListeners);const S={notify:T=>{A[T].set(!A[T].get())},listen:(T,N)=>{A[T].subscribe(N)},atoms:A};for(const T of _)T.getActions&&Object.assign(x,T.getActions?.(p,S,e));return{pluginsActions:x,pluginsAtoms:A,pluginPathMethods:C,atomListeners:w,$fetch:p,$store:S}};function LK(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function jK(e,t,n){const r=t[e],{fetchOptions:a,query:s,...l}=n||{};return r||(a?.method?a.method:l&&Object.keys(l).length>0?"POST":"GET")}function PK(e,t,n,r,a){function s(l=[]){return new Proxy(function(){},{get(u,d){if(d==="then"||d==="catch"||d==="finally")return;const f=[...l,d];let p=e;for(const g of f)if(p&&typeof p=="object"&&g in p)p=p[g];else{p=void 0;break}return typeof p=="function"||LK(p)?p:s(f)},apply:async(u,d,f)=>{const p="/"+l.map(S=>S.replace(/[A-Z]/g,T=>`-${T.toLowerCase()}`)).join("/"),g=f[0]||{},y=f[1]||{},{query:_,fetchOptions:x,...A}=g,C={...y,...x},w=jK(p,n,g);return await t(p,{...C,body:w==="GET"?void 0:{...A,...C?.body||{}},query:_||C?.query,method:w,async onSuccess(S){await C?.onSuccess?.(S);const T=a?.find(O=>O.matcher(p));if(!T)return;const N=r[T.signal];if(!N)return;const R=N.get();setTimeout(()=>{N.set(!R)},10)}})}})}return s()}function MK(e){return e.charAt(0).toUpperCase()+e.slice(1)}function zK(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:a,atomListeners:s,$store:l}=DK(e);let u={};for(const[p,g]of Object.entries(r))u[`use${MK(p)}`]=g;const d={...n,...u,$fetch:a,$store:l};return PK(d,a,t,r,s)}const II=e=>{const t=e?.editor?.backendURL??rt.editor?.backendURL;if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");const n=()=>zK({baseURL:t,withCredentials:!0});return{signInEmail:async(...q)=>n().signIn.email(...q),signUpEmail:async(...q)=>n().signUp.email(...q),signOut:async(...q)=>n().signOut(...q),signInSocial:async(...q)=>n().signIn.social(...q),linkSocial:async(...q)=>n().linkSocial(...q),changePasswordSession:async(...q)=>n().changePassword(...q),requestPasswordResetSession:async(...q)=>n().requestPasswordReset(...q),resetPassword:async(...q)=>n().resetPassword(...q),verifyEmailSession:async(...q)=>n().verifyEmail(...q),getSession:async(...q)=>n().getSession(...q),forgetPassword:async(...q)=>n().forgetPassword(...q),sendVerificationEmail:async(...q)=>n().sendVerificationEmail(...q),changeEmail:async(...q)=>n().changeEmail(...q),deleteUser:async(...q)=>n().deleteUser(...q),revokeSession:async(...q)=>n().revokeSession(...q),revokeSessions:async(...q)=>n().revokeSessions(...q),revokeOtherSessions:async(...q)=>n().revokeOtherSessions(...q),listAccounts:async(...q)=>n().listAccounts(...q),unlinkAccount:async(...q)=>n().unlinkAccount(...q),refreshToken:async(...q)=>n().refreshToken(...q),getAccessToken:async(...q)=>n().getAccessToken(...q),accountInfo:async(...q)=>n().accountInfo(...q),updateUser:async(...q)=>n().updateUser(...q),listSessions:async(...q)=>n().listSessions(...q)}},BK=(e,t)=>{const n=Gr(),r=t??n??rt,a=c0(),{data:s,isFetched:l,refetch:u}=wh({queryKey:["session"],queryFn:async()=>(await II(r).getSession()).data,staleTime:0,gcTime:0,enabled:!e,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1}),d=s??(l?null:void 0),f=y=>a.setQueryData(["session"],y),p=async()=>(await u()).data;return{session:d,fetchSession:p,revalidateSession:p,setSession:f}},lu=({session:e,intlayerConfiguration:t}={})=>{const{session:n,fetchSession:r,revalidateSession:a,setSession:s}=BK(e,t),{oAuth2AccessToken:l}=$8(t);return{session:n,fetchSession:r,setSession:s,revalidateSession:a,oAuth2AccessToken:l,isAuthenticated:!!(n?.user||l)}},xi=e=>{const t=Gr(),{oAuth2AccessToken:n}=lu();return AB({...n&&{headers:{Authorization:`Bearer ${n.accessToken}`}}},t)},VK=e=>{const t=Gr();return II(t)},UK=({requireUser:e,requireProject:t,requireOrganization:n})=>{const r=Gr(),{oAuth2AccessToken:a,session:s}=lu({intlayerConfiguration:r}),l=s?s.user:a?.user,u=s?s.organization:a?.organization,d=s?s.project:a?.project;return{enable:(e?!!l:!0)&&(t?!!d:!0)&&(n?!!u:!0)}},OI=e=>{const{requireUser:t,requireProject:n,requireOrganization:r,...a}=e,{enable:s}=UK({requireUser:t,requireProject:n,requireOrganization:r});return wh({...a,enabled:a.enabled===!1?!1:s})},FK=()=>{const e=VK();return po({mutationKey:["logout"],mutationFn:(...t)=>e.signOut(...t),meta:{invalidateQueries:[["session"],["users"],["organizations"],["projects"],["dictionaries"],["tags"]]}})},$K=e=>{const t=xi();return OI({queryKey:["projects",e],queryFn:({signal:n})=>t.project.getProjects(e,{signal:n}),requireUser:!0,requireOrganization:!0})},HK=()=>{const e=xi();return po({mutationKey:["dictionaries"],mutationFn:e.dictionary.pushDictionaries,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},GK=()=>{const e=xi();return po({mutationKey:["dictionaries"],mutationFn:e.dictionary.deleteDictionary,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},KK=e=>{const t=xi();return OI({queryKey:["tags",e],queryFn:({signal:n})=>t.tag.getTags(e,{signal:n}),requireUser:!0,requireOrganization:!0,requireProject:!0})},qK=()=>{const e=xi();return po({mutationKey:["ai-auditContentDeclarationMetadata"],mutationFn:e.ai.auditContentDeclarationMetadata})},WK=()=>{const e=xi();return po({mutationKey:["ai-auditContentDeclarationField"],mutationFn:e.ai.auditContentDeclarationField})},ZK=()=>{const e=xi();return po({mutationKey:["ai-autocomplete"],mutationFn:e.ai.autocomplete})},DI=()=>{const e=xi();return wh({queryKey:["editor","dictionaries"],queryFn:e.editor.getDictionaries})},YK=()=>{const e=xi();return po({mutationKey:["editor","dictionaries"],mutationFn:e.editor.writeDictionary})};var cu=e=>e.type==="checkbox",Xa=e=>e instanceof Date,_n=e=>e==null;const LI=e=>typeof e=="object";var Lt=e=>!_n(e)&&!Array.isArray(e)&&LI(e)&&!Xa(e),jI=e=>Lt(e)&&e.target?cu(e.target)?e.target.checked:e.target.value:e,XK=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,PI=(e,t)=>e.has(XK(t)),QK=e=>{const t=e.constructor&&e.constructor.prototype;return Lt(t)&&t.hasOwnProperty("isPrototypeOf")},v0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Gt(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(!(v0&&(e instanceof Blob||r))&&(n||Lt(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!QK(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=Gt(e[a]));else return e;return t}var Ch=e=>/^\w*$/.test(e),Dt=e=>e===void 0,b0=e=>Array.isArray(e)?e.filter(Boolean):[],_0=e=>b0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ee=(e,t,n)=>{if(!t||!Lt(e))return n;const r=(Ch(t)?[t]:_0(t)).reduce((a,s)=>_n(a)?a:a[s],e);return Dt(r)||r===e?Dt(e[t])?n:e[t]:r},Un=e=>typeof e=="boolean",ct=(e,t,n)=>{let r=-1;const a=Ch(t)?[t]:_0(t),s=a.length,l=s-1;for(;++r<s;){const u=a[r];let d=n;if(r!==l){const f=e[u];d=Lt(f)||Array.isArray(f)?f:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const Uf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},fi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},E0=Ie.createContext(null);E0.displayName="HookFormContext";const pa=()=>Ie.useContext(E0),JK=e=>{const{children:t,...n}=e;return Ie.createElement(E0.Provider,{value:n},t)};var MI=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(a,s,{get:()=>{const l=s;return t._proxyFormState[l]!==vr.all&&(t._proxyFormState[l]=!r||vr.all),n&&(n[l]=!0),e[l]}});return a};const S0=typeof window<"u"?Ie.useLayoutEffect:Ie.useEffect;function eq(e){const t=pa(),{control:n=t.control,disabled:r,name:a,exact:s}=e||{},[l,u]=Ie.useState(n._formState),d=Ie.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return S0(()=>n._subscribe({name:a,formState:d.current,exact:s,callback:f=>{!r&&u({...n._formState,...f})}}),[a,r,s]),Ie.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),Ie.useMemo(()=>MI(l,n,d.current,!1),[l,n])}var Pr=e=>typeof e=="string",zI=(e,t,n,r,a)=>Pr(e)?(r&&t.watch.add(e),Ee(n,e,a)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),Ee(n,s))):(r&&(t.watchAll=!0),n),yv=e=>_n(e)||!LI(e);function pi(e,t,n=new WeakSet){if(yv(e)||yv(t))return e===t;if(Xa(e)&&Xa(t))return e.getTime()===t.getTime();const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const l=e[s];if(!a.includes(s))return!1;if(s!=="ref"){const u=t[s];if(Xa(l)&&Xa(u)||Lt(l)&&Lt(u)||Array.isArray(l)&&Array.isArray(u)?!pi(l,u,n):l!==u)return!1}}return!0}function tq(e){const t=pa(),{control:n=t.control,name:r,defaultValue:a,disabled:s,exact:l,compute:u}=e||{},d=Ie.useRef(a),f=Ie.useRef(u),p=Ie.useRef(void 0);f.current=u;const g=Ie.useMemo(()=>n._getWatch(r,d.current),[n,r]),[y,_]=Ie.useState(f.current?f.current(g):g);return S0(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:x=>{if(!s){const A=zI(r,n._names,x.values||n._formValues,!1,d.current);if(f.current){const C=f.current(A);pi(C,p.current)||(_(C),p.current=C)}else _(A)}}}),[n,s,r,l]),Ie.useEffect(()=>n._removeUnmounted()),y}function nq(e){const t=pa(),{name:n,disabled:r,control:a=t.control,shouldUnregister:s,defaultValue:l}=e,u=PI(a._names.array,n),d=Ie.useMemo(()=>Ee(a._formValues,n,Ee(a._defaultValues,n,l)),[a,n,l]),f=tq({control:a,name:n,defaultValue:d,exact:!0}),p=eq({control:a,name:n,exact:!0}),g=Ie.useRef(e),y=Ie.useRef(a.register(n,{...e.rules,value:f,...Un(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const _=Ie.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ee(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ee(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ee(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ee(p.validatingFields,n)},error:{enumerable:!0,get:()=>Ee(p.errors,n)}}),[p,n]),x=Ie.useCallback(S=>y.current.onChange({target:{value:jI(S),name:n},type:Uf.CHANGE}),[n]),A=Ie.useCallback(()=>y.current.onBlur({target:{value:Ee(a._formValues,n),name:n},type:Uf.BLUR}),[n,a._formValues]),C=Ie.useCallback(S=>{const T=Ee(a._fields,n);T&&S&&(T._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:N=>S.setCustomValidity(N),reportValidity:()=>S.reportValidity()})},[a._fields,n]),w=Ie.useMemo(()=>({name:n,value:f,...Un(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:x,onBlur:A,ref:C}),[n,r,p.disabled,x,A,C,f]);return Ie.useEffect(()=>{const S=a._options.shouldUnregister||s;a.register(n,{...g.current.rules,...Un(g.current.disabled)?{disabled:g.current.disabled}:{}});const T=(N,R)=>{const O=Ee(a._fields,N);O&&O._f&&(O._f.mount=R)};if(T(n,!0),S){const N=Gt(Ee(a._options.defaultValues,n));ct(a._defaultValues,n,N),Dt(Ee(a._formValues,n))&&ct(a._formValues,n,N)}return!u&&a.register(n),()=>{(u?S&&!a._state.action:S)?a.unregister(n):T(n,!1)}},[n,a,u,s]),Ie.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),Ie.useMemo(()=>({field:w,formState:p,fieldState:_}),[w,p,_])}const rq=e=>e.render(nq(e));var x0=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},_c=e=>Array.isArray(e)?e:[e],FT=()=>{let e=[];return{get observers(){return e},next:a=>{for(const s of e)s.next&&s.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(s=>s!==a)}}),unsubscribe:()=>{e=[]}}},Nn=e=>Lt(e)&&!Object.keys(e).length,A0=e=>e.type==="file",br=e=>typeof e=="function",Ff=e=>{if(!v0)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},BI=e=>e.type==="select-multiple",w0=e=>e.type==="radio",iq=e=>w0(e)||cu(e),ay=e=>Ff(e)&&e.isConnected;function aq(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Dt(e)?r++:e[t[r++]];return e}function oq(e){for(const t in e)if(e.hasOwnProperty(t)&&!Dt(e[t]))return!1;return!0}function Mt(e,t){const n=Array.isArray(t)?t:Ch(t)?[t]:_0(t),r=n.length===1?e:aq(e,n),a=n.length-1,s=n[a];return r&&delete r[s],a!==0&&(Lt(r)&&Nn(r)||Array.isArray(r)&&oq(r))&&Mt(e,n.slice(0,-1)),e}var VI=e=>{for(const t in e)if(br(e[t]))return!0;return!1};function $f(e,t={}){const n=Array.isArray(e);if(Lt(e)||n)for(const r in e)Array.isArray(e[r])||Lt(e[r])&&!VI(e[r])?(t[r]=Array.isArray(e[r])?[]:{},$f(e[r],t[r])):_n(e[r])||(t[r]=!0);return t}function UI(e,t,n){const r=Array.isArray(e);if(Lt(e)||r)for(const a in e)Array.isArray(e[a])||Lt(e[a])&&!VI(e[a])?Dt(t)||yv(n[a])?n[a]=Array.isArray(e[a])?$f(e[a],[]):{...$f(e[a])}:UI(e[a],_n(t)?{}:t[a],n[a]):n[a]=!pi(e[a],t[a]);return n}var ac=(e,t)=>UI(e,t,$f(t));const $T={value:!1,isValid:!1},HT={value:!0,isValid:!0};var FI=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&&!Dt(e[0].attributes.value)?Dt(e[0].value)||e[0].value===""?HT:{value:e[0].value,isValid:!0}:HT:$T}return $T},$I=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Dt(e)?e:t?e===""?NaN:e&&+e:n&&Pr(e)?new Date(e):r?r(e):e;const GT={isValid:!1,value:null};var HI=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,GT):GT;function KT(e){const t=e.ref;return A0(t)?t.files:w0(t)?HI(e.refs).value:BI(t)?[...t.selectedOptions].map(({value:n})=>n):cu(t)?FI(e.refs).value:$I(Dt(t.value)?e.ref.value:t.value,e)}var sq=(e,t,n,r)=>{const a={};for(const s of e){const l=Ee(t,s);l&&ct(a,s,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},Hf=e=>e instanceof RegExp,oc=e=>Dt(e)?e:Hf(e)?e.source:Lt(e)?Hf(e.value)?e.value.source:e.value:e,qT=e=>({isOnSubmit:!e||e===vr.onSubmit,isOnBlur:e===vr.onBlur,isOnChange:e===vr.onChange,isOnAll:e===vr.all,isOnTouch:e===vr.onTouched});const WT="AsyncFunction";var lq=e=>!!e&&!!e.validate&&!!(br(e.validate)&&e.validate.constructor.name===WT||Lt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===WT)),cq=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ZT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ec=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const s=Ee(e,a);if(s){const{_f:l,...u}=s;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],a)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Ec(u,t))break}else if(Lt(u)&&Ec(u,t))break}}};function YT(e,t,n){const r=Ee(e,n);if(r||Ch(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const s=a.join("."),l=Ee(t,s),u=Ee(e,s);if(l&&!Array.isArray(l)&&n!==s)return{name:n};if(u&&u.type)return{name:s,error:u};if(u&&u.root&&u.root.type)return{name:`${s}.root`,error:u.root};a.pop()}return{name:n}}var uq=(e,t,n,r)=>{n(e);const{name:a,...s}=e;return Nn(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||vr.all))},dq=(e,t,n)=>!e||!t||e===t||_c(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),fq=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,hq=(e,t)=>!b0(Ee(e,t)).length&&Mt(e,t),pq=(e,t,n)=>{const r=_c(Ee(e,n));return ct(r,"root",t[n]),ct(e,n,r),e},vf=e=>Pr(e);function XT(e,t,n="validate"){if(vf(e)||Array.isArray(e)&&e.every(vf)||Un(e)&&!e)return{type:n,message:vf(e)?e:"",ref:t}}var ss=e=>Lt(e)&&!Hf(e)?e:{value:e,message:""},QT=async(e,t,n,r,a,s)=>{const{ref:l,refs:u,required:d,maxLength:f,minLength:p,min:g,max:y,pattern:_,validate:x,name:A,valueAsNumber:C,mount:w}=e._f,S=Ee(n,A);if(!w||t.has(A))return{};const T=u?u[0]:l,N=te=>{a&&T.reportValidity&&(T.setCustomValidity(Un(te)?"":te||""),T.reportValidity())},R={},O=w0(l),D=cu(l),j=O||D,H=(C||A0(l))&&Dt(l.value)&&Dt(S)||Ff(l)&&l.value===""||S===""||Array.isArray(S)&&!S.length,Z=x0.bind(null,A,r,R),q=(te,ce,W,ae=fi.maxLength,M=fi.minLength)=>{const X=te?ce:W;R[A]={type:te?ae:M,message:X,ref:l,...Z(te?ae:M,X)}};if(s?!Array.isArray(S)||!S.length:d&&(!j&&(H||_n(S))||Un(S)&&!S||D&&!FI(u).isValid||O&&!HI(u).isValid)){const{value:te,message:ce}=vf(d)?{value:!!d,message:d}:ss(d);if(te&&(R[A]={type:fi.required,message:ce,ref:T,...Z(fi.required,ce)},!r))return N(ce),R}if(!H&&(!_n(g)||!_n(y))){let te,ce;const W=ss(y),ae=ss(g);if(!_n(S)&&!isNaN(S)){const M=l.valueAsNumber||S&&+S;_n(W.value)||(te=M>W.value),_n(ae.value)||(ce=M<ae.value)}else{const M=l.valueAsDate||new Date(S),X=P=>new Date(new Date().toDateString()+" "+P),G=l.type=="time",ge=l.type=="week";Pr(W.value)&&S&&(te=G?X(S)>X(W.value):ge?S>W.value:M>new Date(W.value)),Pr(ae.value)&&S&&(ce=G?X(S)<X(ae.value):ge?S<ae.value:M<new Date(ae.value))}if((te||ce)&&(q(!!te,W.message,ae.message,fi.max,fi.min),!r))return N(R[A].message),R}if((f||p)&&!H&&(Pr(S)||s&&Array.isArray(S))){const te=ss(f),ce=ss(p),W=!_n(te.value)&&S.length>+te.value,ae=!_n(ce.value)&&S.length<+ce.value;if((W||ae)&&(q(W,te.message,ce.message),!r))return N(R[A].message),R}if(_&&!H&&Pr(S)){const{value:te,message:ce}=ss(_);if(Hf(te)&&!S.match(te)&&(R[A]={type:fi.pattern,message:ce,ref:l,...Z(fi.pattern,ce)},!r))return N(ce),R}if(x){if(br(x)){const te=await x(S,n),ce=XT(te,T);if(ce&&(R[A]={...ce,...Z(fi.validate,ce.message)},!r))return N(ce.message),R}else if(Lt(x)){let te={};for(const ce in x){if(!Nn(te)&&!r)break;const W=XT(await x[ce](S,n),T,ce);W&&(te={...W,...Z(ce,W.message)},N(W.message),r&&(R[A]=te))}if(!Nn(te)&&(R[A]={ref:T,...te},!r))return R}}return N(!0),R};const mq={mode:vr.onSubmit,reValidateMode:vr.onChange,shouldFocusError:!0};function gq(e={}){let t={...mq,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:br(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Lt(t.defaultValues)||Lt(t.values)?Gt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Gt(a),l={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,f=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...p};const y={array:FT(),state:FT()},_=t.criteriaMode===vr.all,x=V=>ee=>{clearTimeout(f),f=setTimeout(V,ee)},A=async V=>{if(!t.disabled&&(p.isValid||g.isValid||V)){const ee=t.resolver?Nn((await D()).errors):await H(r,!0);ee!==n.isValid&&y.state.next({isValid:ee})}},C=(V,ee)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((V||Array.from(u.mount)).forEach(le=>{le&&(ee?ct(n.validatingFields,le,ee):Mt(n.validatingFields,le))}),y.state.next({validatingFields:n.validatingFields,isValidating:!Nn(n.validatingFields)}))},w=(V,ee=[],le,Se,be=!0,ve=!0)=>{if(Se&&le&&!t.disabled){if(l.action=!0,ve&&Array.isArray(Ee(r,V))){const Ce=le(Ee(r,V),Se.argA,Se.argB);be&&ct(r,V,Ce)}if(ve&&Array.isArray(Ee(n.errors,V))){const Ce=le(Ee(n.errors,V),Se.argA,Se.argB);be&&ct(n.errors,V,Ce),hq(n.errors,V)}if((p.touchedFields||g.touchedFields)&&ve&&Array.isArray(Ee(n.touchedFields,V))){const Ce=le(Ee(n.touchedFields,V),Se.argA,Se.argB);be&&ct(n.touchedFields,V,Ce)}(p.dirtyFields||g.dirtyFields)&&(n.dirtyFields=ac(a,s)),y.state.next({name:V,isDirty:q(V,ee),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ct(s,V,ee)},S=(V,ee)=>{ct(n.errors,V,ee),y.state.next({errors:n.errors})},T=V=>{n.errors=V,y.state.next({errors:n.errors,isValid:!1})},N=(V,ee,le,Se)=>{const be=Ee(r,V);if(be){const ve=Ee(s,V,Dt(le)?Ee(a,V):le);Dt(ve)||Se&&Se.defaultChecked||ee?ct(s,V,ee?ve:KT(be._f)):W(V,ve),l.mount&&A()}},R=(V,ee,le,Se,be)=>{let ve=!1,Ce=!1;const Ve={name:V};if(!t.disabled){if(!le||Se){(p.isDirty||g.isDirty)&&(Ce=n.isDirty,n.isDirty=Ve.isDirty=q(),ve=Ce!==Ve.isDirty);const Xe=pi(Ee(a,V),ee);Ce=!!Ee(n.dirtyFields,V),Xe?Mt(n.dirtyFields,V):ct(n.dirtyFields,V,!0),Ve.dirtyFields=n.dirtyFields,ve=ve||(p.dirtyFields||g.dirtyFields)&&Ce!==!Xe}if(le){const Xe=Ee(n.touchedFields,V);Xe||(ct(n.touchedFields,V,le),Ve.touchedFields=n.touchedFields,ve=ve||(p.touchedFields||g.touchedFields)&&Xe!==le)}ve&&be&&y.state.next(Ve)}return ve?Ve:{}},O=(V,ee,le,Se)=>{const be=Ee(n.errors,V),ve=(p.isValid||g.isValid)&&Un(ee)&&n.isValid!==ee;if(t.delayError&&le?(d=x(()=>S(V,le)),d(t.delayError)):(clearTimeout(f),d=null,le?ct(n.errors,V,le):Mt(n.errors,V)),(le?!pi(be,le):be)||!Nn(Se)||ve){const Ce={...Se,...ve&&Un(ee)?{isValid:ee}:{},errors:n.errors,name:V};n={...n,...Ce},y.state.next(Ce)}},D=async V=>{C(V,!0);const ee=await t.resolver(s,t.context,sq(V||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return C(V),ee},j=async V=>{const{errors:ee}=await D(V);if(V)for(const le of V){const Se=Ee(ee,le);Se?ct(n.errors,le,Se):Mt(n.errors,le)}else n.errors=ee;return ee},H=async(V,ee,le={valid:!0})=>{for(const Se in V){const be=V[Se];if(be){const{_f:ve,...Ce}=be;if(ve){const Ve=u.array.has(ve.name),Xe=be._f&&lq(be._f);Xe&&p.validatingFields&&C([Se],!0);const pt=await QT(be,u.disabled,s,_,t.shouldUseNativeValidation&&!ee,Ve);if(Xe&&p.validatingFields&&C([Se]),pt[ve.name]&&(le.valid=!1,ee))break;!ee&&(Ee(pt,ve.name)?Ve?pq(n.errors,pt,ve.name):ct(n.errors,ve.name,pt[ve.name]):Mt(n.errors,ve.name))}!Nn(Ce)&&await H(Ce,ee,le)}}return le.valid},Z=()=>{for(const V of u.unMount){const ee=Ee(r,V);ee&&(ee._f.refs?ee._f.refs.every(le=>!ay(le)):!ay(ee._f.ref))&&fe(V)}u.unMount=new Set},q=(V,ee)=>!t.disabled&&(V&&ee&&ct(s,V,ee),!pi(P(),a)),te=(V,ee,le)=>zI(V,u,{...l.mount?s:Dt(ee)?a:Pr(V)?{[V]:ee}:ee},le,ee),ce=V=>b0(Ee(l.mount?s:a,V,t.shouldUnregister?Ee(a,V,[]):[])),W=(V,ee,le={})=>{const Se=Ee(r,V);let be=ee;if(Se){const ve=Se._f;ve&&(!ve.disabled&&ct(s,V,$I(ee,ve)),be=Ff(ve.ref)&&_n(ee)?"":ee,BI(ve.ref)?[...ve.ref.options].forEach(Ce=>Ce.selected=be.includes(Ce.value)):ve.refs?cu(ve.ref)?ve.refs.forEach(Ce=>{(!Ce.defaultChecked||!Ce.disabled)&&(Array.isArray(be)?Ce.checked=!!be.find(Ve=>Ve===Ce.value):Ce.checked=be===Ce.value||!!be)}):ve.refs.forEach(Ce=>Ce.checked=Ce.value===be):A0(ve.ref)?ve.ref.value="":(ve.ref.value=be,ve.ref.type||y.state.next({name:V,values:Gt(s)})))}(le.shouldDirty||le.shouldTouch)&&R(V,be,le.shouldTouch,le.shouldDirty,!0),le.shouldValidate&&ge(V)},ae=(V,ee,le)=>{for(const Se in ee){if(!ee.hasOwnProperty(Se))return;const be=ee[Se],ve=V+"."+Se,Ce=Ee(r,ve);(u.array.has(V)||Lt(be)||Ce&&!Ce._f)&&!Xa(be)?ae(ve,be,le):W(ve,be,le)}},M=(V,ee,le={})=>{const Se=Ee(r,V),be=u.array.has(V),ve=Gt(ee);ct(s,V,ve),be?(y.array.next({name:V,values:Gt(s)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&le.shouldDirty&&y.state.next({name:V,dirtyFields:ac(a,s),isDirty:q(V,ve)})):Se&&!Se._f&&!_n(ve)?ae(V,ve,le):W(V,ve,le),ZT(V,u)&&y.state.next({...n,name:V}),y.state.next({name:l.mount?V:void 0,values:Gt(s)})},X=async V=>{l.mount=!0;const ee=V.target;let le=ee.name,Se=!0;const be=Ee(r,le),ve=Xe=>{Se=Number.isNaN(Xe)||Xa(Xe)&&isNaN(Xe.getTime())||pi(Xe,Ee(s,le,Xe))},Ce=qT(t.mode),Ve=qT(t.reValidateMode);if(be){let Xe,pt;const yo=ee.type?KT(be._f):jI(V),wr=V.type===Uf.BLUR||V.type===Uf.FOCUS_OUT,Qh=!cq(be._f)&&!t.resolver&&!Ee(n.errors,le)&&!be._f.deps||fq(wr,Ee(n.touchedFields,le),n.isSubmitted,Ve,Ce),wi=ZT(le,u,wr);ct(s,le,yo),wr?(!ee||!ee.readOnly)&&(be._f.onBlur&&be._f.onBlur(V),d&&d(0)):be._f.onChange&&be._f.onChange(V);const Ti=R(le,yo,wr),Zr=!Nn(Ti)||wi;if(!wr&&y.state.next({name:le,type:V.type,values:Gt(s)}),Qh)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?wr&&A():wr||A()),Zr&&y.state.next({name:le,...wi?{}:Ti});if(!wr&&wi&&y.state.next({...n}),t.resolver){const{errors:xa}=await D([le]);if(ve(yo),Se){const Aa=YT(n.errors,r,le),bu=YT(xa,r,Aa.name||le);Xe=bu.error,le=bu.name,pt=Nn(xa)}}else C([le],!0),Xe=(await QT(be,u.disabled,s,_,t.shouldUseNativeValidation))[le],C([le]),ve(yo),Se&&(Xe?pt=!1:(p.isValid||g.isValid)&&(pt=await H(r,!0)));Se&&(be._f.deps&&ge(be._f.deps),O(le,pt,Xe,Ti))}},G=(V,ee)=>{if(Ee(n.errors,ee)&&V.focus)return V.focus(),1},ge=async(V,ee={})=>{let le,Se;const be=_c(V);if(t.resolver){const ve=await j(Dt(V)?V:be);le=Nn(ve),Se=V?!be.some(Ce=>Ee(ve,Ce)):le}else V?(Se=(await Promise.all(be.map(async ve=>{const Ce=Ee(r,ve);return await H(Ce&&Ce._f?{[ve]:Ce}:Ce)}))).every(Boolean),!(!Se&&!n.isValid)&&A()):Se=le=await H(r);return y.state.next({...!Pr(V)||(p.isValid||g.isValid)&&le!==n.isValid?{}:{name:V},...t.resolver||!V?{isValid:le}:{},errors:n.errors}),ee.shouldFocus&&!Se&&Ec(r,G,V?be:u.mount),Se},P=V=>{const ee={...l.mount?s:a};return Dt(V)?ee:Pr(V)?Ee(ee,V):V.map(le=>Ee(ee,le))},ie=(V,ee)=>({invalid:!!Ee((ee||n).errors,V),isDirty:!!Ee((ee||n).dirtyFields,V),error:Ee((ee||n).errors,V),isValidating:!!Ee(n.validatingFields,V),isTouched:!!Ee((ee||n).touchedFields,V)}),F=V=>{V&&_c(V).forEach(ee=>Mt(n.errors,ee)),y.state.next({errors:V?n.errors:{}})},J=(V,ee,le)=>{const Se=(Ee(r,V,{_f:{}})._f||{}).ref,be=Ee(n.errors,V)||{},{ref:ve,message:Ce,type:Ve,...Xe}=be;ct(n.errors,V,{...Xe,...ee,ref:Se}),y.state.next({name:V,errors:n.errors,isValid:!1}),le&&le.shouldFocus&&Se&&Se.focus&&Se.focus()},oe=(V,ee)=>br(V)?y.state.subscribe({next:le=>"values"in le&&V(te(void 0,ee),le)}):te(V,ee,!0),he=V=>y.state.subscribe({next:ee=>{dq(V.name,ee.name,V.exact)&&uq(ee,V.formState||p,un,V.reRenderRoot)&&V.callback({values:{...s},...n,...ee,defaultValues:a})}}).unsubscribe,ye=V=>(l.mount=!0,g={...g,...V.formState},he({...V,formState:g})),fe=(V,ee={})=>{for(const le of V?_c(V):u.mount)u.mount.delete(le),u.array.delete(le),ee.keepValue||(Mt(r,le),Mt(s,le)),!ee.keepError&&Mt(n.errors,le),!ee.keepDirty&&Mt(n.dirtyFields,le),!ee.keepTouched&&Mt(n.touchedFields,le),!ee.keepIsValidating&&Mt(n.validatingFields,le),!t.shouldUnregister&&!ee.keepDefaultValue&&Mt(a,le);y.state.next({values:Gt(s)}),y.state.next({...n,...ee.keepDirty?{isDirty:q()}:{}}),!ee.keepIsValid&&A()},xe=({disabled:V,name:ee})=>{(Un(V)&&l.mount||V||u.disabled.has(ee))&&(V?u.disabled.add(ee):u.disabled.delete(ee))},Le=(V,ee={})=>{let le=Ee(r,V);const Se=Un(ee.disabled)||Un(t.disabled);return ct(r,V,{...le||{},_f:{...le&&le._f?le._f:{ref:{name:V}},name:V,mount:!0,...ee}}),u.mount.add(V),le?xe({disabled:Un(ee.disabled)?ee.disabled:t.disabled,name:V}):N(V,!0,ee.value),{...Se?{disabled:ee.disabled||t.disabled}:{},...t.progressive?{required:!!ee.required,min:oc(ee.min),max:oc(ee.max),minLength:oc(ee.minLength),maxLength:oc(ee.maxLength),pattern:oc(ee.pattern)}:{},name:V,onChange:X,onBlur:X,ref:be=>{if(be){Le(V,ee),le=Ee(r,V);const ve=Dt(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,Ce=iq(ve),Ve=le._f.refs||[];if(Ce?Ve.find(Xe=>Xe===ve):ve===le._f.ref)return;ct(r,V,{_f:{...le._f,...Ce?{refs:[...Ve.filter(ay),ve,...Array.isArray(Ee(a,V))?[{}]:[]],ref:{type:ve.type,name:V}}:{ref:ve}}}),N(V,!1,void 0,ve)}else le=Ee(r,V,{}),le._f&&(le._f.mount=!1),(t.shouldUnregister||ee.shouldUnregister)&&!(PI(u.array,V)&&l.action)&&u.unMount.add(V)}}},Be=()=>t.shouldFocusError&&Ec(r,G,u.mount),Ye=V=>{Un(V)&&(y.state.next({disabled:V}),Ec(r,(ee,le)=>{const Se=Ee(r,le);Se&&(ee.disabled=Se._f.disabled||V,Array.isArray(Se._f.refs)&&Se._f.refs.forEach(be=>{be.disabled=Se._f.disabled||V}))},0,!1))},et=(V,ee)=>async le=>{let Se;le&&(le.preventDefault&&le.preventDefault(),le.persist&&le.persist());let be=Gt(s);if(y.state.next({isSubmitting:!0}),t.resolver){const{errors:ve,values:Ce}=await D();n.errors=ve,be=Gt(Ce)}else await H(r);if(u.disabled.size)for(const ve of u.disabled)Mt(be,ve);if(Mt(n.errors,"root"),Nn(n.errors)){y.state.next({errors:{}});try{await V(be,le)}catch(ve){Se=ve}}else ee&&await ee({...n.errors},le),Be(),setTimeout(Be);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nn(n.errors)&&!Se,submitCount:n.submitCount+1,errors:n.errors}),Se)throw Se},Zt=(V,ee={})=>{Ee(r,V)&&(Dt(ee.defaultValue)?M(V,Gt(Ee(a,V))):(M(V,ee.defaultValue),ct(a,V,Gt(ee.defaultValue))),ee.keepTouched||Mt(n.touchedFields,V),ee.keepDirty||(Mt(n.dirtyFields,V),n.isDirty=ee.defaultValue?q(V,Gt(Ee(a,V))):q()),ee.keepError||(Mt(n.errors,V),p.isValid&&A()),y.state.next({...n}))},An=(V,ee={})=>{const le=V?Gt(V):a,Se=Gt(le),be=Nn(V),ve=be?a:Se;if(ee.keepDefaultValues||(a=le),!ee.keepValues){if(ee.keepDirtyValues){const Ce=new Set([...u.mount,...Object.keys(ac(a,s))]);for(const Ve of Array.from(Ce))Ee(n.dirtyFields,Ve)?ct(ve,Ve,Ee(s,Ve)):M(Ve,Ee(ve,Ve))}else{if(v0&&Dt(V))for(const Ce of u.mount){const Ve=Ee(r,Ce);if(Ve&&Ve._f){const Xe=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(Ff(Xe)){const pt=Xe.closest("form");if(pt){pt.reset();break}}}}if(ee.keepFieldsRef)for(const Ce of u.mount)M(Ce,Ee(ve,Ce));else r={}}s=t.shouldUnregister?ee.keepDefaultValues?Gt(a):{}:Gt(ve),y.array.next({values:{...ve}}),y.state.next({values:{...ve}})}u={mount:ee.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!ee.keepIsValid||!!ee.keepDirtyValues,l.watch=!!t.shouldUnregister,y.state.next({submitCount:ee.keepSubmitCount?n.submitCount:0,isDirty:be?!1:ee.keepDirty?n.isDirty:!!(ee.keepDefaultValues&&!pi(V,a)),isSubmitted:ee.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:be?{}:ee.keepDirtyValues?ee.keepDefaultValues&&s?ac(a,s):n.dirtyFields:ee.keepDefaultValues&&V?ac(a,V):ee.keepDirty?n.dirtyFields:{},touchedFields:ee.keepTouched?n.touchedFields:{},errors:ee.keepErrors?n.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},Ai=(V,ee)=>An(br(V)?V(s):V,ee),Sa=(V,ee={})=>{const le=Ee(r,V),Se=le&&le._f;if(Se){const be=Se.refs?Se.refs[0]:Se.ref;be.focus&&(be.focus(),ee.shouldSelect&&br(be.select)&&be.select())}},un=V=>{n={...n,...V}},Ys={control:{register:Le,unregister:fe,getFieldState:ie,handleSubmit:et,setError:J,_subscribe:he,_runSchema:D,_focusError:Be,_getWatch:te,_getDirty:q,_setValid:A,_setFieldArray:w,_setDisabledField:xe,_setErrors:T,_getFieldArray:ce,_reset:An,_resetDefaultValues:()=>br(t.defaultValues)&&t.defaultValues().then(V=>{Ai(V,t.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:Z,_disableForm:Ye,_subjects:y,_proxyFormState:p,get _fields(){return r},get _formValues(){return s},get _state(){return l},set _state(V){l=V},get _defaultValues(){return a},get _names(){return u},set _names(V){u=V},get _formState(){return n},get _options(){return t},set _options(V){t={...t,...V}}},subscribe:ye,trigger:ge,register:Le,handleSubmit:et,watch:oe,setValue:M,getValues:P,reset:Ai,resetField:Zt,clearErrors:F,unregister:fe,setError:J,setFocus:Sa,getFieldState:ie};return{...Ys,formControl:Ys}}function yq(e={}){const t=Ie.useRef(void 0),n=Ie.useRef(void 0),[r,a]=Ie.useState({isDirty:!1,isValidating:!1,isLoading:br(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:br(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!br(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=gq(e);t.current={...u,formState:r}}const s=t.current.control;return s._options=e,S0(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>a({...s._formState}),reRenderRoot:!0});return a(u=>({...u,isReady:!0})),s._formState.isReady=!0,l},[s]),Ie.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),Ie.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),Ie.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),Ie.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),Ie.useEffect(()=>{if(s._proxyFormState.isDirty){const l=s._getDirty();l!==r.isDirty&&s._subjects.state.next({isDirty:l})}},[s,r.isDirty]),Ie.useEffect(()=>{e.values&&!pi(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),n.current=e.values,a(l=>({...l}))):s._resetDefaultValues()},[s,e.values]),Ie.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=MI(r,s),t.current}const JT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ee(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},vv=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?JT(r.ref,n,e):r&&r.refs&&r.refs.forEach(a=>JT(a,n,e))}},eC=(e,t)=>{t.shouldUseNativeValidation&&vv(e,t);const n={};for(const r in e){const a=Ee(t.fields,r),s=Object.assign(e[r]||{},{ref:a&&a.ref});if(vq(t.names||Object.keys(e),r)){const l=Object.assign({},Ee(n,r));ct(l,"root",s),ct(n,r,l)}else ct(n,r,s)}return n},vq=(e,t)=>{const n=tC(t);return e.some(r=>tC(r).match(`^${n}\\.\\d+`))};function tC(e){return e.replace(/\]|\[/g,"")}const bq=e=>{const t=E.useId(),n=E.useMemo(()=>({id:t}),[t]);return v.jsx(GI,{value:n,children:v.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},GI=E.createContext({}),KI=E.createContext({}),_q=({...e})=>{const t=E.useMemo(()=>({name:e.name}),[e.name]);return v.jsx(KI,{value:t,children:v.jsx(rq,{...e})})},ma=()=>{const e=E.useContext(KI),t=E.useContext(GI),{getFieldState:n,formState:r}=pa(),a=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...a}},qI=ur("",{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"}});var la=(e=>(e.DEFAULT="default",e.INVISIBLE="invisible",e))(la||{});const $s=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...a})=>v.jsx("input",{className:qI({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...a}),Eq=ur("",{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"}}),nC=({validationStyleEnabled:e=!1,label:t,size:n,color:r,name:a,variant:s,className:l,...u})=>v.jsx("input",{type:"checkbox",className:Eq({variant:s,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:l}),...u}),Sq=e=>{const{label:t,name:n,id:r}=e;return t?v.jsxs("label",{htmlFor:r??n,className:"flex items-center gap-x-4 font-medium text-sm cursor-pointer",children:[v.jsx(nC,{id:r??n,...e}),t]}):v.jsx(nC,{id:r??n,...e})},xq=e=>{const[t,n]=E.useState(!1),r=s=>{s.preventDefault(),s.stopPropagation(),n(l=>!l)},a=t?$2:U2;return v.jsxs("div",{className:"relative",children:[v.jsx($s,{...e,"aria-label":"password",type:t?"text":"password"}),v.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:v.jsx(a,{className:"text-neutral mr-2 inline-block",size:20})})]})},WI=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>v.jsx("textarea",{className:_e("resize-none",qI({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),ZI=({value:e="",onCancel:t,onSave:n,onClick:r,children:a,isDisabled:s,...l})=>{const[u,d]=E.useState(!1),f=E.useRef(null),p=x=>{x.stopPropagation(),d(!1),n()},g=x=>{x.stopPropagation(),d(!1),t()},y=!e||e===""?"-":e,_=E.useCallback(x=>{const A=window.getSelection();A&&A.toString().trim()!==""||f.current&&!f.current.contains(x.target)&&(d(!1),n())},[n]);return E.useEffect(()=>(u?document.addEventListener("click",_):document.removeEventListener("click",_),()=>document.removeEventListener("click",_)),[_,u]),v.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:x=>{d(!0),r?.(x)},ref:f,...l,children:[v.jsxs("div",{className:_e("flex flex-1 gap-2",u?"display":"hidden"),children:[a,v.jsx(ot,{label:"Save",variant:at.HOVERABLE,size:Kn.ICON_SM,color:it.TEXT,Icon:Ps,onClick:p,disabled:s,className:"!text-current"}),v.jsx(ot,{label:"Cancel",color:it.TEXT,variant:at.HOVERABLE,className:"!text-current",size:Kn.ICON_SM,Icon:ho,onClick:g,disabled:s})]},String(u)),v.jsxs("div",{className:_e("flex flex-1 gap-2",u?"hidden":"display"),children:[v.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:y}),v.jsx(ot,{label:"Edit",Icon:N1,color:it.TEXT,variant:at.HOVERABLE,size:Kn.ICON_SM,className:"invisible !text-current group-hover/editable-field:visible",disabled:s,onClick:x=>{x.stopPropagation(),d(!0)}})]})]})},YI=({onSave:e,onCancel:t,ref:n,...r})=>{const a=E.useRef(null),s=()=>{e?.(a.current?.value??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t?.()};E.useImperativeHandle(n,()=>a.current);const u=E.useMemo(()=>r.value??a.current?.value??r.defaultValue,[r.value,r.defaultValue,a.current?.value]);return v.jsx(ZI,{value:u,onCancel:l,onSave:s,children:v.jsx($s,{ref:a,...r})})},rC=24,iC=12,T0=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:a,...s})=>{const l=E.useRef(null);E.useImperativeHandle(a,()=>l.current);const u=()=>{const p=l.current;if(!p||!t)return;const g=p.style;g.height="auto";const y=p.scrollHeight,_=rC*r+iC,x=rC+iC;g.height=Math.max(Math.min(y,_),x)+"px"};E.useEffect(()=>{u()},[s.value,s.defaultValue,u]);const d=p=>{n?.(p),u()},f=p=>{l.current=p,p&&u()};return v.jsx(WI,{ref:f,onChange:d,className:_e("overflow-y-auto",t?"resize-none":"",e),...s})},XI=({onSave:e,onCancel:t,ref:n,...r})=>{const a=E.useRef(null);E.useImperativeHandle(n,()=>a.current);const s=()=>{e?.(a.current?.value??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t?.()},u=r.value??a.current?.value??r.defaultValue??"";return v.jsx(ZI,{value:u,onCancel:l,onSave:s,onClick:d=>{d.preventDefault(),d.stopPropagation()},children:v.jsx(T0,{className:"leading-6",ref:a,onClick:d=>{d.preventDefault(),d.stopPropagation()},...r})})},QI=E.createContext(null),Rh=()=>{const e=E.useContext(QI);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},Aq=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:a,children:s,dir:l,...u})=>{const[d,f]=E.useState(t??[]),[p,g]=E.useState(""),[y,_]=E.useState(!1),[x,A]=E.useState(-1),C=E.useRef(null),[w,S]=E.useState(!1),[T,N]=E.useState("");E.useEffect(()=>{e&&f(e)},[e]);const R=E.useCallback(H=>{if(d.includes(H)){const Z=d.filter(q=>q!==H);f(Z),n?.(Z)}else{const Z=[...d,H];f(Z),n?.(Z)}},[d]),O=E.useCallback(H=>{H.preventDefault();const Z=H.currentTarget,q=Z.value.substring(Z.selectionStart??0,Z.selectionEnd??0);N(q),S(q===p)},[p]),D=E.useCallback(H=>{H.stopPropagation();const Z=C.current;if(!Z)return;const q=()=>{const W=x+1;A(W>d.length-1?r?0:-1:W)},te=()=>{const W=x-1;A(W<0?d.length-1:W)},ce=()=>{const W=x-1<=0?d.length-1===0?-1:0:x-1;A(W)};switch(H.key){case"ArrowLeft":l==="rtl"?d.length>0&&(x!==-1||r)&&q():d.length>0&&Z.selectionStart===0&&te();break;case"ArrowRight":l==="rtl"?d.length>0&&Z.selectionStart===0&&te():d.length>0&&(x!==-1||r)&&q();break;case"Backspace":case"Delete":d.length>0&&(x!==-1&&x<d.length?(R(d[x]),ce()):(Z.selectionStart===0&&T===p||w)&&R(d[d.length-1]));break;case"Enter":_(!0);break;case"Escape":x!==-1?A(-1):y&&_(!1);break}},[d,p,x,r]),j=E.useMemo(()=>({value:d,onValueChange:R,open:y,setOpen:_,inputValue:p,setInputValue:g,activeIndex:x,setActiveIndex:A,ref:C,handleSelect:O}),[d,R,y,_,p,g,x,A,C,O]);return v.jsx(QI,{value:j,children:v.jsx(Rk,{onKeyDown:D,className:_e("flex w-full flex-col gap-2 overflow-visible bg-transparent",a),dir:l,...u,children:s})})},wq=({className:e,getBadgeValue:t=s=>s,validationStyleEnabled:n=!1,children:r,...a})=>{const{value:s,onValueChange:l,activeIndex:u}=Rh(),d=E.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return v.jsxs("div",{className:_e("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),...a,children:[s.length>0&&v.jsx("div",{className:"flex w-full flex-wrap gap-1",children:s.map((f,p)=>v.jsxs(FF,{className:_e("flex items-center gap-1 rounded-xl px-1",u===p&&"ring-muted-foreground ring-2"),color:G1.TEXT,children:[v.jsx("span",{className:"text-xs",children:t(f)}),v.jsxs("button",{"aria-label":`Remove ${f} option`,"aria-roledescription":"button to remove option",onMouseDown:d,onClick:()=>l(f),children:[v.jsxs("span",{className:"sr-only",children:["Remove ",f," option"]}),v.jsx(ho,{className:"size-4 cursor-pointer"})]})]},f))}),r]})},Tq=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:a,activeIndex:s,setActiveIndex:l,handleSelect:u,ref:d}=Rh();return v.jsx(Df.Input,{...t,tabIndex:0,ref:d,value:r,onValueChange:s===-1?a:void 0,onSelect:u,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:_e("outline-hidden ml-2 flex-1 cursor-pointer",e,s!==-1&&"caret-transparent")})},Cq=({children:e})=>{const{open:t}=Rh();return v.jsx("div",{className:"relative",children:t&&e})},Rq=({className:e,children:t})=>v.jsxs(Df.List,{className:_e("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,v.jsx(Df.Empty,{children:v.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),kq=({className:e,value:t,children:n,...r})=>{const{value:a,onValueChange:s,setInputValue:l}=Rh(),u=E.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]),d=a.includes(t);return v.jsxs(Df.Item,{...r,onSelect:()=>{s(t),l("")},className:_e("flex cursor-pointer justify-between rounded-lg px-2 py-1 transition-colors","hover:bg-neutral/10",e,d&&"opacity-50",r.disabled&&"cursor-not-allowed opacity-50"),onMouseDown:u,children:[n,d&&v.jsx(Ps,{className:"size-4"})]})},mn=Aq;mn.Trigger=wq;mn.Input=Tq;mn.Content=Cq;mn.List=Rq;mn.Item=kq;const Nq=({className:e,children:t,...n})=>v.jsxs("i",{className:_e("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),bv=({htmlFor:e,...t})=>v.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",htmlFor:e,...t}),Iq=({className:e,...t})=>{const{error:n,formItemId:r}=ma();return v.jsx(bv,{className:_e("mb-2",n&&"text-error",e),htmlFor:r,...t})},Oq=({isRequired:e})=>e?v.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):v.jsx(v.Fragment,{}),JI=({children:e,isRequired:t,info:n,htmlFor:r,className:a})=>v.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&v.jsxs(Iq,{htmlFor:r,id:`${r}-label`,className:gh("font-bold",a),children:[e,v.jsx(Oq,{isRequired:t})]}),n&&v.jsx(Nq,{content:n})]});function aC(e,[t,n]){return Math.min(n,Math.max(t,e))}function eO(e){const t=e+"CollectionProvider",[n,r]=eu(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=A=>{const{scope:C,children:w}=A,S=Ie.useRef(null),T=Ie.useRef(new Map).current;return v.jsx(a,{scope:C,itemMap:T,collectionRef:S,children:w})};l.displayName=t;const u=e+"CollectionSlot",d=Ts(u),f=Ie.forwardRef((A,C)=>{const{scope:w,children:S}=A,T=s(u,w),N=wt(C,T.collectionRef);return v.jsx(d,{ref:N,children:S})});f.displayName=u;const p=e+"CollectionItemSlot",g="data-radix-collection-item",y=Ts(p),_=Ie.forwardRef((A,C)=>{const{scope:w,children:S,...T}=A,N=Ie.useRef(null),R=wt(C,N),O=s(p,w);return Ie.useEffect(()=>(O.itemMap.set(N,{ref:N,...T}),()=>void O.itemMap.delete(N))),v.jsx(y,{[g]:"",ref:R,children:S})});_.displayName=p;function x(A){const C=s(e+"CollectionConsumer",A);return Ie.useCallback(()=>{const S=C.collectionRef.current;if(!S)return[];const T=Array.from(S.querySelectorAll(`[${g}]`));return Array.from(C.itemMap.values()).sort((O,D)=>T.indexOf(O.ref.current)-T.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:l,Slot:f,ItemSlot:_},x,r]}var Dq=E.createContext(void 0);function Lq(e){const t=E.useContext(Dq);return e||t||"ltr"}const jq=["top","right","bottom","left"],ca=Math.min,$n=Math.max,Gf=Math.round,Hd=Math.floor,Fr=e=>({x:e,y:e}),Pq={left:"right",right:"left",bottom:"top",top:"bottom"},Mq={start:"end",end:"start"};function _v(e,t,n){return $n(e,ca(t,n))}function bi(e,t){return typeof e=="function"?e(t):e}function _i(e){return e.split("-")[0]}function Hs(e){return e.split("-")[1]}function C0(e){return e==="x"?"y":"x"}function R0(e){return e==="y"?"height":"width"}const zq=new Set(["top","bottom"]);function Mr(e){return zq.has(_i(e))?"y":"x"}function k0(e){return C0(Mr(e))}function Bq(e,t,n){n===void 0&&(n=!1);const r=Hs(e),a=k0(e),s=R0(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Kf(l)),[l,Kf(l)]}function Vq(e){const t=Kf(e);return[Ev(e),t,Ev(t)]}function Ev(e){return e.replace(/start|end/g,t=>Mq[t])}const oC=["left","right"],sC=["right","left"],Uq=["top","bottom"],Fq=["bottom","top"];function $q(e,t,n){switch(e){case"top":case"bottom":return n?t?sC:oC:t?oC:sC;case"left":case"right":return t?Uq:Fq;default:return[]}}function Hq(e,t,n,r){const a=Hs(e);let s=$q(_i(e),n==="start",r);return a&&(s=s.map(l=>l+"-"+a),t&&(s=s.concat(s.map(Ev)))),s}function Kf(e){return e.replace(/left|right|bottom|top/g,t=>Pq[t])}function Gq(e){return{top:0,right:0,bottom:0,left:0,...e}}function tO(e){return typeof e!="number"?Gq(e):{top:e,right:e,bottom:e,left:e}}function qf(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function lC(e,t,n){let{reference:r,floating:a}=e;const s=Mr(t),l=k0(t),u=R0(l),d=_i(t),f=s==="y",p=r.x+r.width/2-a.width/2,g=r.y+r.height/2-a.height/2,y=r[u]/2-a[u]/2;let _;switch(d){case"top":_={x:p,y:r.y-a.height};break;case"bottom":_={x:p,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:g};break;case"left":_={x:r.x-a.width,y:g};break;default:_={x:r.x,y:r.y}}switch(Hs(t)){case"start":_[l]-=y*(n&&f?-1:1);break;case"end":_[l]+=y*(n&&f?-1:1);break}return _}const Kq=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:l}=n,u=s.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:g}=lC(f,r,d),y=r,_={},x=0;for(let A=0;A<u.length;A++){const{name:C,fn:w}=u[A],{x:S,y:T,data:N,reset:R}=await w({x:p,y:g,initialPlacement:r,placement:y,strategy:a,middlewareData:_,rects:f,platform:l,elements:{reference:e,floating:t}});p=S??p,g=T??g,_={..._,[C]:{..._[C],...N}},R&&x<=50&&(x++,typeof R=="object"&&(R.placement&&(y=R.placement),R.rects&&(f=R.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):R.rects),{x:p,y:g}=lC(f,y,d)),A=-1)}return{x:p,y:g,placement:y,strategy:a,middlewareData:_}};async function Mc(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:s,rects:l,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:y=!1,padding:_=0}=bi(t,e),x=tO(_),C=u[y?g==="floating"?"reference":"floating":g],w=qf(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(C)))==null||n?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:f,rootBoundary:p,strategy:d})),S=g==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),N=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},R=qf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:S,offsetParent:T,strategy:d}):S);return{top:(w.top-R.top+x.top)/N.y,bottom:(R.bottom-w.bottom+x.bottom)/N.y,left:(w.left-R.left+x.left)/N.x,right:(R.right-w.right+x.right)/N.x}}const qq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:f,padding:p=0}=bi(e,t)||{};if(f==null)return{};const g=tO(p),y={x:n,y:r},_=k0(a),x=R0(_),A=await l.getDimensions(f),C=_==="y",w=C?"top":"left",S=C?"bottom":"right",T=C?"clientHeight":"clientWidth",N=s.reference[x]+s.reference[_]-y[_]-s.floating[x],R=y[_]-s.reference[_],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let D=O?O[T]:0;(!D||!await(l.isElement==null?void 0:l.isElement(O)))&&(D=u.floating[T]||s.floating[x]);const j=N/2-R/2,H=D/2-A[x]/2-1,Z=ca(g[w],H),q=ca(g[S],H),te=Z,ce=D-A[x]-q,W=D/2-A[x]/2+j,ae=_v(te,W,ce),M=!d.arrow&&Hs(a)!=null&&W!==ae&&s.reference[x]/2-(W<te?Z:q)-A[x]/2<0,X=M?W<te?W-te:W-ce:0;return{[_]:y[_]+X,data:{[_]:ae,centerOffset:W-ae-X,...M&&{alignmentOffset:X}},reset:M}}}),Wq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:A=!0,...C}=bi(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=_i(a),S=Mr(u),T=_i(u)===u,N=await(d.isRTL==null?void 0:d.isRTL(f.floating)),R=y||(T||!A?[Kf(u)]:Vq(u)),O=x!=="none";!y&&O&&R.push(...Hq(u,A,x,N));const D=[u,...R],j=await Mc(t,C),H=[];let Z=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&H.push(j[w]),g){const W=Bq(a,l,N);H.push(j[W[0]],j[W[1]])}if(Z=[...Z,{placement:a,overflows:H}],!H.every(W=>W<=0)){var q,te;const W=(((q=s.flip)==null?void 0:q.index)||0)+1,ae=D[W];if(ae&&(!(g==="alignment"?S!==Mr(ae):!1)||Z.every(G=>Mr(G.placement)===S?G.overflows[0]>0:!0)))return{data:{index:W,overflows:Z},reset:{placement:ae}};let M=(te=Z.filter(X=>X.overflows[0]<=0).sort((X,G)=>X.overflows[1]-G.overflows[1])[0])==null?void 0:te.placement;if(!M)switch(_){case"bestFit":{var ce;const X=(ce=Z.filter(G=>{if(O){const ge=Mr(G.placement);return ge===S||ge==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(ge=>ge>0).reduce((ge,P)=>ge+P,0)]).sort((G,ge)=>G[1]-ge[1])[0])==null?void 0:ce[0];X&&(M=X);break}case"initialPlacement":M=u;break}if(a!==M)return{reset:{placement:M}}}return{}}}};function cC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uC(e){return jq.some(t=>e[t]>=0)}const Zq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=bi(e,t);switch(r){case"referenceHidden":{const s=await Mc(t,{...a,elementContext:"reference"}),l=cC(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:uC(l)}}}case"escaped":{const s=await Mc(t,{...a,altBoundary:!0}),l=cC(s,n.floating);return{data:{escapedOffsets:l,escaped:uC(l)}}}default:return{}}}}},nO=new Set(["left","top"]);async function Yq(e,t){const{placement:n,platform:r,elements:a}=e,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=_i(n),u=Hs(n),d=Mr(n)==="y",f=nO.has(l)?-1:1,p=s&&d?-1:1,g=bi(t,e);let{mainAxis:y,crossAxis:_,alignmentAxis:x}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof x=="number"&&(_=u==="end"?x*-1:x),d?{x:_*p,y:y*f}:{x:y*f,y:_*p}}const Xq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:s,placement:l,middlewareData:u}=t,d=await Yq(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:s+d.y,data:{...d,placement:l}}}}},Qq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:C=>{let{x:w,y:S}=C;return{x:w,y:S}}},...d}=bi(e,t),f={x:n,y:r},p=await Mc(t,d),g=Mr(_i(a)),y=C0(g);let _=f[y],x=f[g];if(s){const C=y==="y"?"top":"left",w=y==="y"?"bottom":"right",S=_+p[C],T=_-p[w];_=_v(S,_,T)}if(l){const C=g==="y"?"top":"left",w=g==="y"?"bottom":"right",S=x+p[C],T=x-p[w];x=_v(S,x,T)}const A=u.fn({...t,[y]:_,[g]:x});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[y]:s,[g]:l}}}}}},Jq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=bi(e,t),p={x:n,y:r},g=Mr(a),y=C0(g);let _=p[y],x=p[g];const A=bi(u,t),C=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const T=y==="y"?"height":"width",N=s.reference[y]-s.floating[T]+C.mainAxis,R=s.reference[y]+s.reference[T]-C.mainAxis;_<N?_=N:_>R&&(_=R)}if(f){var w,S;const T=y==="y"?"width":"height",N=nO.has(_i(a)),R=s.reference[g]-s.floating[T]+(N&&((w=l.offset)==null?void 0:w[g])||0)+(N?0:C.crossAxis),O=s.reference[g]+s.reference[T]+(N?0:((S=l.offset)==null?void 0:S[g])||0)-(N?C.crossAxis:0);x<R?x=R:x>O&&(x=O)}return{[y]:_,[g]:x}}}},e9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:l,elements:u}=t,{apply:d=()=>{},...f}=bi(e,t),p=await Mc(t,f),g=_i(a),y=Hs(a),_=Mr(a)==="y",{width:x,height:A}=s.floating;let C,w;g==="top"||g==="bottom"?(C=g,w=y===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(w=g,C=y==="end"?"top":"bottom");const S=A-p.top-p.bottom,T=x-p.left-p.right,N=ca(A-p[C],S),R=ca(x-p[w],T),O=!t.middlewareData.shift;let D=N,j=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=S),O&&!y){const Z=$n(p.left,0),q=$n(p.right,0),te=$n(p.top,0),ce=$n(p.bottom,0);_?j=x-2*(Z!==0||q!==0?Z+q:$n(p.left,p.right)):D=A-2*(te!==0||ce!==0?te+ce:$n(p.top,p.bottom))}await d({...t,availableWidth:j,availableHeight:D});const H=await l.getDimensions(u.floating);return x!==H.width||A!==H.height?{reset:{rects:!0}}:{}}}};function kh(){return typeof window<"u"}function Gs(e){return rO(e)?(e.nodeName||"").toLowerCase():"#document"}function qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qr(e){var t;return(t=(rO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rO(e){return kh()?e instanceof Node||e instanceof qn(e).Node:!1}function Er(e){return kh()?e instanceof Element||e instanceof qn(e).Element:!1}function Hr(e){return kh()?e instanceof HTMLElement||e instanceof qn(e).HTMLElement:!1}function dC(e){return!kh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qn(e).ShadowRoot}const t9=new Set(["inline","contents"]);function uu(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Sr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!t9.has(a)}const n9=new Set(["table","td","th"]);function r9(e){return n9.has(Gs(e))}const i9=[":popover-open",":modal"];function Nh(e){return i9.some(t=>{try{return e.matches(t)}catch{return!1}})}const a9=["transform","translate","scale","rotate","perspective"],o9=["transform","translate","scale","rotate","perspective","filter"],s9=["paint","layout","strict","content"];function N0(e){const t=I0(),n=Er(e)?Sr(e):e;return a9.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)||o9.some(r=>(n.willChange||"").includes(r))||s9.some(r=>(n.contain||"").includes(r))}function l9(e){let t=ua(e);for(;Hr(t)&&!ks(t);){if(N0(t))return t;if(Nh(t))return null;t=ua(t)}return null}function I0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const c9=new Set(["html","body","#document"]);function ks(e){return c9.has(Gs(e))}function Sr(e){return qn(e).getComputedStyle(e)}function Ih(e){return Er(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ua(e){if(Gs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dC(e)&&e.host||qr(e);return dC(t)?t.host:t}function iO(e){const t=ua(e);return ks(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hr(t)&&uu(t)?t:iO(t)}function zc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=iO(e),s=a===((r=e.ownerDocument)==null?void 0:r.body),l=qn(a);if(s){const u=Sv(l);return t.concat(l,l.visualViewport||[],uu(a)?a:[],u&&n?zc(u):[])}return t.concat(a,zc(a,[],n))}function Sv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aO(e){const t=Sr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Hr(e),s=a?e.offsetWidth:n,l=a?e.offsetHeight:r,u=Gf(n)!==s||Gf(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function O0(e){return Er(e)?e:e.contextElement}function _s(e){const t=O0(e);if(!Hr(t))return Fr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=aO(t);let l=(s?Gf(n.width):n.width)/r,u=(s?Gf(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const u9=Fr(0);function oO(e){const t=qn(e);return!I0()||!t.visualViewport?u9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function d9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qn(e)?!1:t}function oo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=O0(e);let l=Fr(1);t&&(r?Er(r)&&(l=_s(r)):l=_s(e));const u=d9(s,n,r)?oO(s):Fr(0);let d=(a.left+u.x)/l.x,f=(a.top+u.y)/l.y,p=a.width/l.x,g=a.height/l.y;if(s){const y=qn(s),_=r&&Er(r)?qn(r):r;let x=y,A=Sv(x);for(;A&&r&&_!==x;){const C=_s(A),w=A.getBoundingClientRect(),S=Sr(A),T=w.left+(A.clientLeft+parseFloat(S.paddingLeft))*C.x,N=w.top+(A.clientTop+parseFloat(S.paddingTop))*C.y;d*=C.x,f*=C.y,p*=C.x,g*=C.y,d+=T,f+=N,x=qn(A),A=Sv(x)}}return qf({width:p,height:g,x:d,y:f})}function Oh(e,t){const n=Ih(e).scrollLeft;return t?t.left+n:oo(qr(e)).left+n}function sO(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Oh(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function f9(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s=a==="fixed",l=qr(r),u=t?Nh(t.floating):!1;if(r===l||u&&s)return n;let d={scrollLeft:0,scrollTop:0},f=Fr(1);const p=Fr(0),g=Hr(r);if((g||!g&&!s)&&((Gs(r)!=="body"||uu(l))&&(d=Ih(r)),Hr(r))){const _=oo(r);f=_s(r),p.x=_.x+r.clientLeft,p.y=_.y+r.clientTop}const y=l&&!g&&!s?sO(l,d):Fr(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+p.x+y.x,y:n.y*f.y-d.scrollTop*f.y+p.y+y.y}}function h9(e){return Array.from(e.getClientRects())}function p9(e){const t=qr(e),n=Ih(e),r=e.ownerDocument.body,a=$n(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=$n(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Oh(e);const u=-n.scrollTop;return Sr(r).direction==="rtl"&&(l+=$n(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:l,y:u}}const fC=25;function m9(e,t){const n=qn(e),r=qr(e),a=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,u=0,d=0;if(a){s=a.width,l=a.height;const p=I0();(!p||p&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}const f=Oh(r);if(f<=0){const p=r.ownerDocument,g=p.body,y=getComputedStyle(g),_=p.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(r.clientWidth-g.clientWidth-_);x<=fC&&(s-=x)}else f<=fC&&(s+=f);return{width:s,height:l,x:u,y:d}}const g9=new Set(["absolute","fixed"]);function y9(e,t){const n=oo(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=Hr(e)?_s(e):Fr(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,d=a*s.x,f=r*s.y;return{width:l,height:u,x:d,y:f}}function hC(e,t,n){let r;if(t==="viewport")r=m9(e,n);else if(t==="document")r=p9(qr(e));else if(Er(t))r=y9(t,n);else{const a=oO(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return qf(r)}function lO(e,t){const n=ua(e);return n===t||!Er(n)||ks(n)?!1:Sr(n).position==="fixed"||lO(n,t)}function v9(e,t){const n=t.get(e);if(n)return n;let r=zc(e,[],!1).filter(u=>Er(u)&&Gs(u)!=="body"),a=null;const s=Sr(e).position==="fixed";let l=s?ua(e):e;for(;Er(l)&&!ks(l);){const u=Sr(l),d=N0(l);!d&&u.position==="fixed"&&(a=null),(s?!d&&!a:!d&&u.position==="static"&&!!a&&g9.has(a.position)||uu(l)&&!d&&lO(e,l))?r=r.filter(p=>p!==l):a=u,l=ua(l)}return t.set(e,r),r}function b9(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Nh(t)?[]:v9(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((f,p)=>{const g=hC(t,p,a);return f.top=$n(g.top,f.top),f.right=ca(g.right,f.right),f.bottom=ca(g.bottom,f.bottom),f.left=$n(g.left,f.left),f},hC(t,u,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function _9(e){const{width:t,height:n}=aO(e);return{width:t,height:n}}function E9(e,t,n){const r=Hr(t),a=qr(t),s=n==="fixed",l=oo(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const d=Fr(0);function f(){d.x=Oh(a)}if(r||!r&&!s)if((Gs(t)!=="body"||uu(a))&&(u=Ih(t)),r){const _=oo(t,!0,s,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else a&&f();s&&!r&&a&&f();const p=a&&!r&&!s?sO(a,u):Fr(0),g=l.left+u.scrollLeft-d.x-p.x,y=l.top+u.scrollTop-d.y-p.y;return{x:g,y,width:l.width,height:l.height}}function oy(e){return Sr(e).position==="static"}function pC(e,t){if(!Hr(e)||Sr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qr(e)===n&&(n=n.ownerDocument.body),n}function cO(e,t){const n=qn(e);if(Nh(e))return n;if(!Hr(e)){let a=ua(e);for(;a&&!ks(a);){if(Er(a)&&!oy(a))return a;a=ua(a)}return n}let r=pC(e,t);for(;r&&r9(r)&&oy(r);)r=pC(r,t);return r&&ks(r)&&oy(r)&&!N0(r)?n:r||l9(e)||n}const S9=async function(e){const t=this.getOffsetParent||cO,n=this.getDimensions,r=await n(e.floating);return{reference:E9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function x9(e){return Sr(e).direction==="rtl"}const A9={convertOffsetParentRelativeRectToViewportRelativeRect:f9,getDocumentElement:qr,getClippingRect:b9,getOffsetParent:cO,getElementRects:S9,getClientRects:h9,getDimensions:_9,getScale:_s,isElement:Er,isRTL:x9};function uO(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function w9(e,t){let n=null,r;const a=qr(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),s();const f=e.getBoundingClientRect(),{left:p,top:g,width:y,height:_}=f;if(u||t(),!y||!_)return;const x=Hd(g),A=Hd(a.clientWidth-(p+y)),C=Hd(a.clientHeight-(g+_)),w=Hd(p),T={rootMargin:-x+"px "+-A+"px "+-C+"px "+-w+"px",threshold:$n(0,ca(1,d))||1};let N=!0;function R(O){const D=O[0].intersectionRatio;if(D!==d){if(!N)return l();D?l(!1,D):r=setTimeout(()=>{l(!1,1e-7)},1e3)}D===1&&!uO(f,e.getBoundingClientRect())&&l(),N=!1}try{n=new IntersectionObserver(R,{...T,root:a.ownerDocument})}catch{n=new IntersectionObserver(R,T)}n.observe(e)}return l(!0),s}function T9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=O0(e),p=a||s?[...f?zc(f):[],...zc(t)]:[];p.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const g=f&&u?w9(f,n):null;let y=-1,_=null;l&&(_=new ResizeObserver(w=>{let[S]=w;S&&S.target===f&&_&&(_.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var T;(T=_)==null||T.observe(t)})),n()}),f&&!d&&_.observe(f),_.observe(t));let x,A=d?oo(e):null;d&&C();function C(){const w=oo(e);A&&!uO(A,w)&&n(),A=w,x=requestAnimationFrame(C)}return n(),()=>{var w;p.forEach(S=>{a&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),g?.(),(w=_)==null||w.disconnect(),_=null,d&&cancelAnimationFrame(x)}}const C9=Xq,R9=Qq,k9=Wq,N9=e9,I9=Zq,mC=qq,O9=Jq,D9=(e,t,n)=>{const r=new Map,a={platform:A9,...n},s={...a.platform,_c:r};return Kq(e,t,{...a,platform:s})};var L9=typeof document<"u",j9=function(){},bf=L9?E.useLayoutEffect:j9;function Wf(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,a;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(!Wf(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const s=a[r];if(!(s==="_owner"&&e.$$typeof)&&!Wf(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function dO(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gC(e,t){const n=dO(e);return Math.round(t*n)/n}function sy(e){const t=E.useRef(e);return bf(()=>{t.current=e}),t}function P9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[p,g]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,_]=E.useState(r);Wf(y,r)||_(r);const[x,A]=E.useState(null),[C,w]=E.useState(null),S=E.useCallback(G=>{G!==O.current&&(O.current=G,A(G))},[]),T=E.useCallback(G=>{G!==D.current&&(D.current=G,w(G))},[]),N=s||x,R=l||C,O=E.useRef(null),D=E.useRef(null),j=E.useRef(p),H=d!=null,Z=sy(d),q=sy(a),te=sy(f),ce=E.useCallback(()=>{if(!O.current||!D.current)return;const G={placement:t,strategy:n,middleware:y};q.current&&(G.platform=q.current),D9(O.current,D.current,G).then(ge=>{const P={...ge,isPositioned:te.current!==!1};W.current&&!Wf(j.current,P)&&(j.current=P,fo.flushSync(()=>{g(P)}))})},[y,t,n,q,te]);bf(()=>{f===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,g(G=>({...G,isPositioned:!1})))},[f]);const W=E.useRef(!1);bf(()=>(W.current=!0,()=>{W.current=!1}),[]),bf(()=>{if(N&&(O.current=N),R&&(D.current=R),N&&R){if(Z.current)return Z.current(N,R,ce);ce()}},[N,R,ce,Z,H]);const ae=E.useMemo(()=>({reference:O,floating:D,setReference:S,setFloating:T}),[S,T]),M=E.useMemo(()=>({reference:N,floating:R}),[N,R]),X=E.useMemo(()=>{const G={position:n,left:0,top:0};if(!M.floating)return G;const ge=gC(M.floating,p.x),P=gC(M.floating,p.y);return u?{...G,transform:"translate("+ge+"px, "+P+"px)",...dO(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ge,top:P}},[n,u,M.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:ce,refs:ae,elements:M,floatingStyles:X}),[p,ce,ae,M,X])}const M9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?mC({element:r.current,padding:a}).fn(n):{}:r?mC({element:r,padding:a}).fn(n):{}}}},z9=(e,t)=>({...C9(e),options:[e,t]}),B9=(e,t)=>({...R9(e),options:[e,t]}),V9=(e,t)=>({...O9(e),options:[e,t]}),U9=(e,t)=>({...k9(e),options:[e,t]}),F9=(e,t)=>({...N9(e),options:[e,t]}),$9=(e,t)=>({...I9(e),options:[e,t]}),H9=(e,t)=>({...M9(e),options:[e,t]});var G9="Arrow",fO=E.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...s}=e;return v.jsx(He.svg,{...s,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});fO.displayName=G9;var K9=fO;function q9(e){const[t,n]=E.useState(void 0);return ln(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,u;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,u=f.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var D0="Popper",[hO,pO]=eu(D0),[W9,mO]=hO(D0),gO=e=>{const{__scopePopper:t,children:n}=e,[r,a]=E.useState(null);return v.jsx(W9,{scope:t,anchor:r,onAnchorChange:a,children:n})};gO.displayName=D0;var yO="PopperAnchor",vO=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,s=mO(yO,n),l=E.useRef(null),u=wt(t,l),d=E.useRef(null);return E.useEffect(()=>{const f=d.current;d.current=r?.current||l.current,f!==d.current&&s.onAnchorChange(d.current)}),r?null:v.jsx(He.div,{...a,ref:u})});vO.displayName=yO;var L0="PopperContent",[Z9,Y9]=hO(L0),bO=E.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:y=!1,updatePositionStrategy:_="optimized",onPlaced:x,...A}=e,C=mO(L0,n),[w,S]=E.useState(null),T=wt(t,fe=>S(fe)),[N,R]=E.useState(null),O=q9(N),D=O?.width??0,j=O?.height??0,H=r+(s!=="center"?"-"+s:""),Z=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},q=Array.isArray(f)?f:[f],te=q.length>0,ce={padding:Z,boundary:q.filter(Q9),altBoundary:te},{refs:W,floatingStyles:ae,placement:M,isPositioned:X,middlewareData:G}=P9({strategy:"fixed",placement:H,whileElementsMounted:(...fe)=>T9(...fe,{animationFrame:_==="always"}),elements:{reference:C.anchor},middleware:[z9({mainAxis:a+j,alignmentAxis:l}),d&&B9({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?V9():void 0,...ce}),d&&U9({...ce}),F9({...ce,apply:({elements:fe,rects:xe,availableWidth:Le,availableHeight:Be})=>{const{width:Ye,height:et}=xe.reference,Zt=fe.floating.style;Zt.setProperty("--radix-popper-available-width",`${Le}px`),Zt.setProperty("--radix-popper-available-height",`${Be}px`),Zt.setProperty("--radix-popper-anchor-width",`${Ye}px`),Zt.setProperty("--radix-popper-anchor-height",`${et}px`)}}),N&&H9({element:N,padding:u}),J9({arrowWidth:D,arrowHeight:j}),y&&$9({strategy:"referenceHidden",...ce})]}),[ge,P]=SO(M),ie=_r(x);ln(()=>{X&&ie?.()},[X,ie]);const F=G.arrow?.x,J=G.arrow?.y,oe=G.arrow?.centerOffset!==0,[he,ye]=E.useState();return ln(()=>{w&&ye(window.getComputedStyle(w).zIndex)},[w]),v.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:X?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(Z9,{scope:n,placedSide:ge,onArrowChange:R,arrowX:F,arrowY:J,shouldHideArrow:oe,children:v.jsx(He.div,{"data-side":ge,"data-align":P,...A,ref:T,style:{...A.style,animation:X?void 0:"none"}})})})});bO.displayName=L0;var _O="PopperArrow",X9={top:"bottom",right:"left",bottom:"top",left:"right"},EO=E.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,s=Y9(_O,r),l=X9[s.placedSide];return v.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:v.jsx(K9,{...a,ref:n,style:{...a.style,display:"block"}})})});EO.displayName=_O;function Q9(e){return e!==null}var J9=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,p]=SO(n),g={start:"0%",center:"50%",end:"100%"}[p],y=(a.arrow?.x??0)+u/2,_=(a.arrow?.y??0)+d/2;let x="",A="";return f==="bottom"?(x=l?g:`${y}px`,A=`${-d}px`):f==="top"?(x=l?g:`${y}px`,A=`${r.floating.height+d}px`):f==="right"?(x=`${-d}px`,A=l?g:`${_}px`):f==="left"&&(x=`${r.floating.width+d}px`,A=l?g:`${_}px`),{data:{x,y:A}}}});function SO(e){const[t,n="center"]=e.split("-");return[t,n]}var e7=gO,t7=vO,n7=bO,r7=EO;function i7(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var xO=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a7="VisuallyHidden",j0=E.forwardRef((e,t)=>v.jsx(He.span,{...e,ref:t,style:{...xO,...e.style}}));j0.displayName=a7;var o7=[" ","Enter","ArrowUp","ArrowDown"],s7=[" ","Enter"],so="Select",[Dh,Lh,l7]=eO(so),[Ks,Yoe]=eu(so,[l7,pO]),jh=pO(),[c7,ga]=Ks(so),[u7,d7]=Ks(so),AO=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:s,value:l,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:g,disabled:y,required:_,form:x}=e,A=jh(t),[C,w]=E.useState(null),[S,T]=E.useState(null),[N,R]=E.useState(!1),O=Lq(f),[D,j]=If({prop:r,defaultProp:a??!1,onChange:s,caller:so}),[H,Z]=If({prop:l,defaultProp:u,onChange:d,caller:so}),q=E.useRef(null),te=C?x||!!C.closest("form"):!0,[ce,W]=E.useState(new Set),ae=Array.from(ce).map(M=>M.props.value).join(";");return v.jsx(e7,{...A,children:v.jsxs(c7,{required:_,scope:t,trigger:C,onTriggerChange:w,valueNode:S,onValueNodeChange:T,valueNodeHasChildren:N,onValueNodeHasChildrenChange:R,contentId:lr(),value:H,onValueChange:Z,open:D,onOpenChange:j,dir:O,triggerPointerDownPosRef:q,disabled:y,children:[v.jsx(Dh.Provider,{scope:t,children:v.jsx(u7,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(M=>{W(X=>new Set(X).add(M))},[]),onNativeOptionRemove:E.useCallback(M=>{W(X=>{const G=new Set(X);return G.delete(M),G})},[]),children:n})}),te?v.jsxs(ZO,{"aria-hidden":!0,required:_,tabIndex:-1,name:p,autoComplete:g,value:H,onChange:M=>Z(M.target.value),disabled:y,form:x,children:[H===void 0?v.jsx("option",{value:""}):null,Array.from(ce)]},ae):null]})})};AO.displayName=so;var wO="SelectTrigger",TO=E.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,s=jh(n),l=ga(wO,n),u=l.disabled||r,d=wt(t,l.onTriggerChange),f=Lh(n),p=E.useRef("touch"),[g,y,_]=XO(A=>{const C=f().filter(T=>!T.disabled),w=C.find(T=>T.value===l.value),S=QO(C,A,w);S!==void 0&&l.onValueChange(S.value)}),x=A=>{u||(l.onOpenChange(!0),_()),A&&(l.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})};return v.jsx(t7,{asChild:!0,...s,children:v.jsx(He.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:u,"data-disabled":u?"":void 0,"data-placeholder":YO(l.value)?"":void 0,...a,ref:d,onClick:Qe(a.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&x(A)}),onPointerDown:Qe(a.onPointerDown,A=>{p.current=A.pointerType;const C=A.target;C.hasPointerCapture(A.pointerId)&&C.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(x(A),A.preventDefault())}),onKeyDown:Qe(a.onKeyDown,A=>{const C=g.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&y(A.key),!(C&&A.key===" ")&&o7.includes(A.key)&&(x(),A.preventDefault())})})})});TO.displayName=wO;var CO="SelectValue",RO=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:s,placeholder:l="",...u}=e,d=ga(CO,n),{onValueNodeHasChildrenChange:f}=d,p=s!==void 0,g=wt(t,d.onValueNodeChange);return ln(()=>{f(p)},[f,p]),v.jsx(He.span,{...u,ref:g,style:{pointerEvents:"none"},children:YO(d.value)?v.jsx(v.Fragment,{children:l}):s})});RO.displayName=CO;var f7="SelectIcon",kO=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return v.jsx(He.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});kO.displayName=f7;var h7="SelectPortal",NO=e=>v.jsx(vh,{asChild:!0,...e});NO.displayName=h7;var lo="SelectContent",IO=E.forwardRef((e,t)=>{const n=ga(lo,e.__scopeSelect),[r,a]=E.useState();if(ln(()=>{a(new DocumentFragment)},[]),!n.open){const s=r;return s?fo.createPortal(v.jsx(OO,{scope:e.__scopeSelect,children:v.jsx(Dh.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),s):null}return v.jsx(DO,{...e,ref:t})});IO.displayName=lo;var gr=10,[OO,ya]=Ks(lo),p7="SelectContentImpl",m7=Ts("SelectContent.RemoveScroll"),DO=E.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:g,collisionBoundary:y,collisionPadding:_,sticky:x,hideWhenDetached:A,avoidCollisions:C,...w}=e,S=ga(lo,n),[T,N]=E.useState(null),[R,O]=E.useState(null),D=wt(t,fe=>N(fe)),[j,H]=E.useState(null),[Z,q]=E.useState(null),te=Lh(n),[ce,W]=E.useState(!1),ae=E.useRef(!1);E.useEffect(()=>{if(T)return sk(T)},[T]),Q1();const M=E.useCallback(fe=>{const[xe,...Le]=te().map(et=>et.ref.current),[Be]=Le.slice(-1),Ye=document.activeElement;for(const et of fe)if(et===Ye||(et?.scrollIntoView({block:"nearest"}),et===xe&&R&&(R.scrollTop=0),et===Be&&R&&(R.scrollTop=R.scrollHeight),et?.focus(),document.activeElement!==Ye))return},[te,R]),X=E.useCallback(()=>M([j,T]),[M,j,T]);E.useEffect(()=>{ce&&X()},[ce,X]);const{onOpenChange:G,triggerPointerDownPosRef:ge}=S;E.useEffect(()=>{if(T){let fe={x:0,y:0};const xe=Be=>{fe={x:Math.abs(Math.round(Be.pageX)-(ge.current?.x??0)),y:Math.abs(Math.round(Be.pageY)-(ge.current?.y??0))}},Le=Be=>{fe.x<=10&&fe.y<=10?Be.preventDefault():T.contains(Be.target)||G(!1),document.removeEventListener("pointermove",xe),ge.current=null};return ge.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Le,{capture:!0})}}},[T,G,ge]),E.useEffect(()=>{const fe=()=>G(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[G]);const[P,ie]=XO(fe=>{const xe=te().filter(Ye=>!Ye.disabled),Le=xe.find(Ye=>Ye.ref.current===document.activeElement),Be=QO(xe,fe,Le);Be&&setTimeout(()=>Be.ref.current.focus())}),F=E.useCallback((fe,xe,Le)=>{const Be=!ae.current&&!Le;(S.value!==void 0&&S.value===xe||Be)&&(H(fe),Be&&(ae.current=!0))},[S.value]),J=E.useCallback(()=>T?.focus(),[T]),oe=E.useCallback((fe,xe,Le)=>{const Be=!ae.current&&!Le;(S.value!==void 0&&S.value===xe||Be)&&q(fe)},[S.value]),he=r==="popper"?xv:LO,ye=he===xv?{side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:g,collisionBoundary:y,collisionPadding:_,sticky:x,hideWhenDetached:A,avoidCollisions:C}:{};return v.jsx(OO,{scope:n,content:T,viewport:R,onViewportChange:O,itemRefCallback:F,selectedItem:j,onItemLeave:J,itemTextRefCallback:oe,focusSelectedItem:X,selectedItemText:Z,position:r,isPositioned:ce,searchRef:P,children:v.jsx(Eb,{as:m7,allowPinchZoom:!0,children:v.jsx(_b,{asChild:!0,trapped:S.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:Qe(a,fe=>{S.trigger?.focus({preventScroll:!0}),fe.preventDefault()}),children:v.jsx(yh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:v.jsx(he,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:fe=>fe.preventDefault(),...w,...ye,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Qe(w.onKeyDown,fe=>{const xe=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!xe&&fe.key.length===1&&ie(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let Be=te().filter(Ye=>!Ye.disabled).map(Ye=>Ye.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(Be=Be.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const Ye=fe.target,et=Be.indexOf(Ye);Be=Be.slice(et+1)}setTimeout(()=>M(Be)),fe.preventDefault()}})})})})})})});DO.displayName=p7;var g7="SelectItemAlignedPosition",LO=E.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,s=ga(lo,n),l=ya(lo,n),[u,d]=E.useState(null),[f,p]=E.useState(null),g=wt(t,D=>p(D)),y=Lh(n),_=E.useRef(!1),x=E.useRef(!0),{viewport:A,selectedItem:C,selectedItemText:w,focusSelectedItem:S}=l,T=E.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&A&&C&&w){const D=s.trigger.getBoundingClientRect(),j=f.getBoundingClientRect(),H=s.valueNode.getBoundingClientRect(),Z=w.getBoundingClientRect();if(s.dir!=="rtl"){const Ye=Z.left-j.left,et=H.left-Ye,Zt=D.left-et,An=D.width+Zt,Ai=Math.max(An,j.width),Sa=window.innerWidth-gr,un=aC(et,[gr,Math.max(gr,Sa-Ai)]);u.style.minWidth=An+"px",u.style.left=un+"px"}else{const Ye=j.right-Z.right,et=window.innerWidth-H.right-Ye,Zt=window.innerWidth-D.right-et,An=D.width+Zt,Ai=Math.max(An,j.width),Sa=window.innerWidth-gr,un=aC(et,[gr,Math.max(gr,Sa-Ai)]);u.style.minWidth=An+"px",u.style.right=un+"px"}const q=y(),te=window.innerHeight-gr*2,ce=A.scrollHeight,W=window.getComputedStyle(f),ae=parseInt(W.borderTopWidth,10),M=parseInt(W.paddingTop,10),X=parseInt(W.borderBottomWidth,10),G=parseInt(W.paddingBottom,10),ge=ae+M+ce+G+X,P=Math.min(C.offsetHeight*5,ge),ie=window.getComputedStyle(A),F=parseInt(ie.paddingTop,10),J=parseInt(ie.paddingBottom,10),oe=D.top+D.height/2-gr,he=te-oe,ye=C.offsetHeight/2,fe=C.offsetTop+ye,xe=ae+M+fe,Le=ge-xe;if(xe<=oe){const Ye=q.length>0&&C===q[q.length-1].ref.current;u.style.bottom="0px";const et=f.clientHeight-A.offsetTop-A.offsetHeight,Zt=Math.max(he,ye+(Ye?J:0)+et+X),An=xe+Zt;u.style.height=An+"px"}else{const Ye=q.length>0&&C===q[0].ref.current;u.style.top="0px";const Zt=Math.max(oe,ae+A.offsetTop+(Ye?F:0)+ye)+Le;u.style.height=Zt+"px",A.scrollTop=xe-oe+A.offsetTop}u.style.margin=`${gr}px 0`,u.style.minHeight=P+"px",u.style.maxHeight=te+"px",r?.(),requestAnimationFrame(()=>_.current=!0)}},[y,s.trigger,s.valueNode,u,f,A,C,w,s.dir,r]);ln(()=>T(),[T]);const[N,R]=E.useState();ln(()=>{f&&R(window.getComputedStyle(f).zIndex)},[f]);const O=E.useCallback(D=>{D&&x.current===!0&&(T(),S?.(),x.current=!1)},[T,S]);return v.jsx(v7,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:_,onScrollButtonChange:O,children:v.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:v.jsx(He.div,{...a,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});LO.displayName=g7;var y7="SelectPopperPosition",xv=E.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=gr,...s}=e,l=jh(n);return v.jsx(n7,{...l,...s,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...s.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)"}})});xv.displayName=y7;var[v7,P0]=Ks(lo,{}),Av="SelectViewport",jO=E.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,s=ya(Av,n),l=P0(Av,n),u=wt(t,s.onViewportChange),d=E.useRef(0);return v.jsxs(v.Fragment,{children:[v.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}),v.jsx(Dh.Slot,{scope:n,children:v.jsx(He.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Qe(a.onScroll,f=>{const p=f.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:y}=l;if(y?.current&&g){const _=Math.abs(d.current-p.scrollTop);if(_>0){const x=window.innerHeight-gr*2,A=parseFloat(g.style.minHeight),C=parseFloat(g.style.height),w=Math.max(A,C);if(w<x){const S=w+_,T=Math.min(x,S),N=S-T;g.style.height=T+"px",g.style.bottom==="0px"&&(p.scrollTop=N>0?N:0,g.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});jO.displayName=Av;var PO="SelectGroup",[b7,_7]=Ks(PO),MO=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=lr();return v.jsx(b7,{scope:n,id:a,children:v.jsx(He.div,{role:"group","aria-labelledby":a,...r,ref:t})})});MO.displayName=PO;var zO="SelectLabel",BO=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=_7(zO,n);return v.jsx(He.div,{id:a.id,...r,ref:t})});BO.displayName=zO;var Zf="SelectItem",[E7,VO]=Ks(Zf),UO=E.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:s,...l}=e,u=ga(Zf,n),d=ya(Zf,n),f=u.value===r,[p,g]=E.useState(s??""),[y,_]=E.useState(!1),x=wt(t,S=>d.itemRefCallback?.(S,r,a)),A=lr(),C=E.useRef("touch"),w=()=>{a||(u.onValueChange(r),u.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 v.jsx(E7,{scope:n,value:r,disabled:a,textId:A,isSelected:f,onItemTextChange:E.useCallback(S=>{g(T=>T||(S?.textContent??"").trim())},[]),children:v.jsx(Dh.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:v.jsx(He.div,{role:"option","aria-labelledby":A,"data-highlighted":y?"":void 0,"aria-selected":f&&y,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:x,onFocus:Qe(l.onFocus,()=>_(!0)),onBlur:Qe(l.onBlur,()=>_(!1)),onClick:Qe(l.onClick,()=>{C.current!=="mouse"&&w()}),onPointerUp:Qe(l.onPointerUp,()=>{C.current==="mouse"&&w()}),onPointerDown:Qe(l.onPointerDown,S=>{C.current=S.pointerType}),onPointerMove:Qe(l.onPointerMove,S=>{C.current=S.pointerType,a?d.onItemLeave?.():C.current==="mouse"&&S.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Qe(l.onPointerLeave,S=>{S.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:Qe(l.onKeyDown,S=>{d.searchRef?.current!==""&&S.key===" "||(s7.includes(S.key)&&w(),S.key===" "&&S.preventDefault())})})})})});UO.displayName=Zf;var fc="SelectItemText",FO=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...s}=e,l=ga(fc,n),u=ya(fc,n),d=VO(fc,n),f=d7(fc,n),[p,g]=E.useState(null),y=wt(t,w=>g(w),d.onItemTextChange,w=>u.itemTextRefCallback?.(w,d.value,d.disabled)),_=p?.textContent,x=E.useMemo(()=>v.jsx("option",{value:d.value,disabled:d.disabled,children:_},d.value),[d.disabled,d.value,_]),{onNativeOptionAdd:A,onNativeOptionRemove:C}=f;return ln(()=>(A(x),()=>C(x)),[A,C,x]),v.jsxs(v.Fragment,{children:[v.jsx(He.span,{id:d.textId,...s,ref:y}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?fo.createPortal(s.children,l.valueNode):null]})});FO.displayName=fc;var $O="SelectItemIndicator",HO=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return VO($O,n).isSelected?v.jsx(He.span,{"aria-hidden":!0,...r,ref:t}):null});HO.displayName=$O;var wv="SelectScrollUpButton",GO=E.forwardRef((e,t)=>{const n=ya(wv,e.__scopeSelect),r=P0(wv,e.__scopeSelect),[a,s]=E.useState(!1),l=wt(t,r.onScrollButtonChange);return ln(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollTop>0;s(f)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?v.jsx(qO,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});GO.displayName=wv;var Tv="SelectScrollDownButton",KO=E.forwardRef((e,t)=>{const n=ya(Tv,e.__scopeSelect),r=P0(Tv,e.__scopeSelect),[a,s]=E.useState(!1),l=wt(t,r.onScrollButtonChange);return ln(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<f;s(p)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?v.jsx(qO,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});KO.displayName=Tv;var qO=E.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,s=ya("SelectScrollButton",n),l=E.useRef(null),u=Lh(n),d=E.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return E.useEffect(()=>()=>d(),[d]),ln(()=>{u().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),v.jsx(He.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Qe(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Qe(a.onPointerMove,()=>{s.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Qe(a.onPointerLeave,()=>{d()})})}),S7="SelectSeparator",WO=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.jsx(He.div,{"aria-hidden":!0,...r,ref:t})});WO.displayName=S7;var Cv="SelectArrow",x7=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=jh(n),s=ga(Cv,n),l=ya(Cv,n);return s.open&&l.position==="popper"?v.jsx(r7,{...a,...r,ref:t}):null});x7.displayName=Cv;var A7="SelectBubbleInput",ZO=E.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=E.useRef(null),s=wt(r,a),l=i7(t);return E.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&p){const g=new Event("change",{bubbles:!0});p.call(u,t),u.dispatchEvent(g)}},[l,t]),v.jsx(He.select,{...n,style:{...xO,...n.style},ref:s,defaultValue:t})});ZO.displayName=A7;function YO(e){return e===""||e===void 0}function XO(e){const t=_r(e),n=E.useRef(""),r=E.useRef(0),a=E.useCallback(l=>{const u=n.current+l;t(u),(function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(u)},[t]),s=E.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,s]}function QO(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=w7(e,Math.max(s,0));a.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function w7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var T7=AO,C7=TO,R7=RO,k7=kO,N7=NO,I7=IO,O7=jO,D7=MO,L7=BO,j7=UO,P7=FO,M7=HO,z7=GO,B7=KO,V7=WO;const U7=T7,F7=D7,$7=R7,H7=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>v.jsxs(C7,{className:_e("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,v.jsx(k7,{asChild:!0,children:v.jsx(I2,{className:"size-4 opacity-50"})})]}),JO=({className:e,...t})=>v.jsx(z7,{className:_e("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(k2,{})}),eD=({className:e,...t})=>v.jsx(B7,{className:_e("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(k1,{})}),G7=({className:e,children:t,position:n="popper",...r})=>v.jsx(N7,{children:v.jsxs(I7,{className:_e("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:[v.jsx(JO,{}),v.jsx(O7,{className:_e("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),v.jsx(eD,{})]})}),K7=({className:e,...t})=>v.jsx(L7,{className:_e("px-1 py-0.5 text-sm font-semibold",e),...t}),q7=({className:e,children:t,...n})=>v.jsxs(j7,{className:_e("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:[v.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:v.jsx(M7,{children:v.jsx(Ps,{className:"size-4"})})}),v.jsx(P7,{children:t})]}),W7=({className:e,...t})=>v.jsx(V7,{className:_e("-mx-1 my-1 h-px bg-red-300",e),...t}),Re=U7;Re.Group=F7;Re.Value=$7;Re.Trigger=H7;Re.ScrollUpButton=JO;Re.ScrollDownButton=eD;Re.Content=G7;Re.Label=K7;Re.Item=q7;Re.Separator=W7;const Z7=e=>e?.getAttribute("aria-selected")==="true",Y7=(e,t=Z7,n=!1)=>{const[r,a]=E.useState(null),[s,l]=E.useState(null),u=e.current.length;return E.useEffect(()=>{const d=()=>{let A=null;if(s?A=s:A=e.current.find(t)??null,!A){a(S=>({left:0,width:0,...S,opacity:0}));return}const C=A.offsetLeft,w=A.offsetWidth;a({left:C,width:w,opacity:1})};d(),window.addEventListener("resize",d),window.addEventListener("DOMContentLoaded",d);const f=[];e.current.forEach(A=>{if(A){const C=new MutationObserver(w=>{for(const S of w)if(S.type==="attributes"&&S.attributeName==="aria-selected"){d();break}});C.observe(A,{attributes:!0,attributeFilter:["aria-selected"]}),f.push(C)}});const p=[],g=A=>{if(!A)return;const C=new ResizeObserver(()=>{d()});C.observe(A),p.push(C)},y=e.current.find(t)??null;y&&g(y),s&&g(s);const _=A=>{l(A.currentTarget)},x=()=>{l(null)};return n&&e.current.forEach(A=>{A?.addEventListener("mouseenter",_,{passive:!0}),A?.addEventListener("mouseleave",x,{passive:!0})}),()=>{window.removeEventListener("resize",d),window.removeEventListener("DOMContentLoaded",d),f.forEach(A=>A.disconnect()),p.forEach(A=>A.disconnect()),e.current.forEach(A=>{A?.removeEventListener("mouseenter",_),A?.removeEventListener("mouseleave",x)})}},[e,t,s,u]),{choiceIndicatorPosition:r}},X7=[{content:"Off",value:!1},{content:"On",value:!0}];var du=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e))(du||{});const Q7=ur("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"}});var fu=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e))(fu||{});const J7=ur("z-1 w-full flex-1 text-sm font-medium transition-all duration-300 ease-in-out cursor-pointer 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"}}),eW=ur("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"}}}),hu=({choices:e=X7,value:t,defaultValue:n,onChange:r,color:a="primary",size:s="md",className:l})=>{const[u,d]=E.useState(t??n??e[0].value),f=E.useRef([]),p=E.useRef(null),{choiceIndicatorPosition:g}=Y7(f),y=_=>{d(_),r?.(_)};return E.useEffect(()=>{t!==void 0&&d(t)},[t]),v.jsx("div",{className:Q7({color:a,className:l}),role:"tablist",children:v.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((_,x)=>{const{content:A,value:C,...w}=_,S=typeof C=="string"||typeof C=="number",T=C===u;return E.createElement("button",{...w,className:_e(J7({size:s})),key:S?C:x,role:"tab",onClick:()=>y(C),"aria-selected":T,disabled:T,ref:N=>{f.current[x]=N}},A)}),g&&v.jsx("div",{className:_e(eW({color:a})),style:g,ref:p})]})})};function pe(e,t,n){function r(u,d){var f;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(f=u._zod).traits??(f.traits=new Set),u._zod.traits.add(e),t(u,d);for(const p in l.prototype)p in u||Object.defineProperty(u,p,{value:l.prototype[p].bind(u)});u._zod.constr=l,u._zod.def=d}const a=n?.Parent??Object;class s extends a{}Object.defineProperty(s,"name",{value:e});function l(u){var d;const f=n?.Parent?new s:this;r(f,u),(d=f._zod).deferred??(d.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Bc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const tD={};function co(e){return tD}function tW(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function nW(e,t){return typeof t=="bigint"?t.toString():t}function nD(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function M0(e){return e==null}function z0(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function _t(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function B0(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function sc(e){return JSON.stringify(e)}const rD=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Rv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const rW=nD(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function kv(e){if(Rv(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Rv(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const iW=new Set(["string","number","symbol"]);function Ph(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mo(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function ze(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function aW(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function oW(e,t){const n={},r=e._zod.def;for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(n[a]=r.shape[a])}return mo(e,{...e._zod.def,shape:n,checks:[]})}function sW(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete n[a]}return mo(e,{...e._zod.def,shape:n,checks:[]})}function lW(e,t){if(!kv(t))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return B0(this,"shape",r),r},checks:[]};return mo(e,n)}function cW(e,t){return mo(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return B0(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function uW(e,t,n){const r=t._zod.def.shape,a={...r};if(n)for(const s in n){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(a[s]=e?new e({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)a[s]=e?new e({type:"optional",innerType:r[s]}):r[s];return mo(t,{...t._zod.def,shape:a,checks:[]})}function dW(e,t,n){const r=t._zod.def.shape,a={...r};if(n)for(const s in n){if(!(s in a))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(a[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)a[s]=new e({type:"nonoptional",innerType:r[s]});return mo(t,{...t._zod.def,shape:a,checks:[]})}function Sc(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function V0(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Gd(e){return typeof e=="string"?e:e?.message}function uo(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=Gd(e.inst?._zod.def?.error?.(e))??Gd(t?.error?.(e))??Gd(n.customError?.(e))??Gd(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function U0(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Vc(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const iD=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,nW,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},F0=pe("$ZodError",iD),Mh=pe("$ZodError",iD,{Parent:Error});function fW(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function hW(e,t){const n=t||function(s){return s.message},r={_errors:[]},a=s=>{for(const l of s.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>a({issues:u}));else if(l.code==="invalid_key")a({issues:l.issues});else if(l.code==="invalid_element")a({issues:l.issues});else if(l.path.length===0)r._errors.push(n(l));else{let u=r,d=0;for(;d<l.path.length;){const f=l.path[d];d===l.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(l))):u[f]=u[f]||{_errors:[]},u=u[f],d++}}};return a(e),r}const aD=e=>(t,n,r,a)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new Bc;if(l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>uo(d,s,co())));throw rD(u,a?.callee),u}return l.value},pW=aD(Mh),oD=e=>async(t,n,r,a)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>uo(d,s,co())));throw rD(u,a?.callee),u}return l.value},mW=oD(Mh),sD=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new Bc;return s.issues.length?{success:!1,error:new(e??F0)(s.issues.map(l=>uo(l,a,co())))}:{success:!0,data:s.value}},gW=sD(Mh),lD=e=>async(t,n,r)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>uo(l,a,co())))}:{success:!0,data:s.value}},yW=lD(Mh);function yC(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function vW(e,t){for(var n={};e.length;){var r=e[0],a=r.code,s=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var u=r.unionErrors[0].errors[0];n[l]={message:u.message,type:u.code}}else n[l]={message:s,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(p){return p.errors.forEach(function(g){return e.push(g)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=x0(l,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function bW(e,t){for(var n={};e.length;){var r=e[0],a=r.code,s=r.message,l=r.path.join(".");if(!n[l])if(r.code==="invalid_union"&&r.errors.length>0){var u=r.errors[0][0];n[l]={message:u.message,type:u.code}}else n[l]={message:s,type:a};if(r.code==="invalid_union"&&r.errors.forEach(function(p){return p.forEach(function(g){return e.push(g)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=x0(l,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function _W(e,t,n){if(n===void 0&&(n={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,a,s){try{return Promise.resolve(yC(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return s.shouldUseNativeValidation&&vv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return Array.isArray(u?.issues)})(l))return{values:{},errors:eC(vW(l.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw l}))}catch(l){return Promise.reject(l)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,a,s){try{return Promise.resolve(yC(function(){return Promise.resolve((n.mode==="sync"?pW:mW)(e,r,t)).then(function(l){return s.shouldUseNativeValidation&&vv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return u instanceof F0})(l))return{values:{},errors:eC(bW(l.issues,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}const ly=async e=>e&&typeof e.then=="function"?await e:e,EW=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:a,children:s,autoComplete:l,...u})=>{const d=async f=>{const p=e?.safeParse(f)??{success:!0,data:void 0};await ly(t?.(f)),p.success?await ly(n?.(p.data)):await ly(r?.(new Error(p.error.issues.map(g=>g.message).join(", "))))};return v.jsx(JK,{...u,children:v.jsx("form",{className:_e("flex size-full flex-col gap-y-6",a),onSubmit:u.handleSubmit(d),autoComplete:l?"on":"off",noValidate:!0,children:s})})},SW=(e,t)=>{const n=yq({resolver:_W(e),...t}),r=n.formState.isSubmitting,a=n.formState.isSubmitted,s=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:a,isLoading:s,isValid:l}},xW=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=ma();return v.jsx(n$,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})},AW=e=>{const{formDescriptionId:t}=ma();return v.jsx("p",{className:"text-neutral text-sm",id:t,...e})},wW=({children:e,...t})=>{const{error:n,formMessageId:r}=ma(),a=n?String(n?.message??""):e;return a?v.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:a}):null},zh=({label:e,description:t,isRequired:n,info:r,children:a,showErrorMessage:s=!0,htmlFor:l})=>v.jsxs($e.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&v.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&v.jsx(JI,{isRequired:n,info:r,htmlFor:l,children:e}),t&&v.jsx($e.Description,{children:t})]}),v.jsx($e.Control,{children:a}),s&&v.jsx($e.Message,{"data-testid":"error-message"})]}),TW=({field:e,name:t,label:n,Element:r,isRequired:a=!1,info:s,description:l,showErrorMessage:u=!0,...d})=>{const{error:f}=ma();return v.jsx(zh,{htmlFor:t,label:n,description:l,isRequired:a,info:s,showErrorMessage:u,"aria-invalid":!!f,children:v.jsx(r,{"data-testid":"element",id:t,...e,...d,children:d.children})})},va=e=>{const{control:t}=pa();return v.jsx($e.Field,{control:t,name:e.name,render:({field:n})=>v.jsx(TW,{...e,field:n})})},CW=e=>v.jsx(va,{id:e.name,"data-testid":e.name,Element:$s,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),RW=({autoComplete:e,...t})=>v.jsx(va,{Element:xq,id:t.name,"data-testid":t.name,"aria-labelledby":t.label?`${t.name}-label`:void 0,"aria-label":t.label?void 0:t.name,autoComplete:e,minLength:6,maxLength:255,...t}),kW=e=>v.jsx(va,{Element:WI,id:e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,"data-testid":e.name,...e}),NW=e=>v.jsx(va,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:YI,...e}),IW=e=>v.jsx(va,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:XI,...e}),OW=e=>v.jsx(va,{Element:T0,id:e.name,"data-testid":e.name,...e}),DW=({inputLabel:e,...t})=>v.jsx(Sq,{...t,label:e}),LW=({autoComplete:e,...t})=>v.jsx(va,{Element:DW,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),jW=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return v.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=ma();return v.jsx(zh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:v.jsx(mn,{onValueChange:f.onChange,values:f.value,...u,children:l})})}})},PW=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return v.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=ma();return v.jsx(zh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:v.jsx(Re,{onValueChange:f.onChange,defaultValue:f.value,...u,children:l})})}})},MW=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return v.jsx($e.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=ma();return v.jsx(zh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!p,children:v.jsx(hu,{...f,...u,children:l})})}})},$e=EW;$e.Description=AW;$e.Control=xW;$e.Field=_q;$e.Item=bq;$e.Label=JI;$e.Message=wW;$e.Element=va;$e.Input=CW;$e.InputPassword=RW;$e.Checkbox=LW;$e.TextArea=kW;$e.AutoSizedTextArea=OW;$e.Button=ot;$e.Select=PW;$e.MultiSelect=jW;$e.EditableFieldInput=NW;$e.EditableFieldTextArea=IW;$e.SwitchSelector=MW;const cD=({dictionary:e,mode:t,className:n,onDelete:r,...a})=>{const[s,l]=E.useState(!1),{setLocaleDictionary:u}=dh(),{mutate:d,isPending:f}=GK(),{mutate:p,isPending:g}=YK(),{mutate:y,isPending:_}=HK(),x=g||_,{editedContent:A,restoreEditedContent:C}=xn(),{deleteButton:w,resetButton:S,saveButton:T,publishButton:N,downloadButton:R,confirmation:O}=cn("save-dictionary-details"),{isAuthenticated:D}=lu(),j=A?.[e.localId],H=j&&JSON.stringify(j)!==JSON.stringify(e),Z=typeof e?.id<"u",q=async()=>{if(!A?.[e.localId])return;const W={...e,...A?.[e.localId]};p({dictionary:W},{onSuccess:()=>{u(A?.[e.localId]),C(e.localId)}})},te=()=>{if(!A?.[e.localId])return;const W={...e,...A?.[e.localId]};y([W],{onSuccess:ae=>{ae&&(u(A?.[e.localId]),C(e.localId))}})},ce=()=>{e.id&&d(e.id.toString(),{onSuccess:W=>{W&&r?.()}})};return v.jsxs(v.Fragment,{children:[v.jsx(p0,{isOpen:s,title:O.title.value,size:h0.MD,children:v.jsxs("form",{className:"size-full px-3",children:[v.jsx("p",{className:"text-neutral py-4 text-sm",children:O.message}),v.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[v.jsx($e.Button,{label:O.cancelButton.label.value,disabled:!H||x,color:it.TEXT,className:"max-md:w-full",variant:at.OUTLINE,onClick:()=>l(!1),children:O.cancelButton.text}),v.jsx($e.Button,{label:O.confirmButton.label.value,disabled:!H||x,Icon:kA,color:it.TEXT,className:"max-md:w-full",isLoading:_,onClick:q,children:O.confirmButton.text})]})]})}),v.jsxs("form",{className:_e("flex justify-end gap-2 max-md:flex-col",n),...a,children:[t.includes("remote")&&Z&&r&&D&&v.jsx($e.Button,{label:w.label.value,Icon:mh,color:it.ERROR,variant:at.OUTLINE,className:"max-md:w-full",isLoading:f,onClick:ce,children:w.text}),H&&v.jsx($e.Button,{label:S.label.value,disabled:!H,Icon:J2,variant:at.OUTLINE,color:it.TEXT,className:"max-md:w-full",onClick:()=>C(e.localId),children:S.text}),t.includes("local")&&v.jsx($e.Button,{label:R.label.value,disabled:!H||x,Icon:M2,color:it.TEXT,variant:D?at.OUTLINE:at.DEFAULT,className:"max-md:w-full",isLoading:g,onClick:()=>l(!0),children:R.text}),t.includes("remote")&&D&&!Z&&v.jsx($e.Button,{label:N.label.value,disabled:x,Icon:S2,color:it.TEXT,className:"max-md:w-full",isLoading:_,onClick:te,children:N.text}),t.includes("remote")&&D&&Z&&H&&v.jsx($e.Button,{label:T.label.value,disabled:!H||x,Icon:kA,color:"text",className:"max-md:w-full",isLoading:_,onClick:te,children:T.text})]})]})},uD=({level:e,title:t,description:n,children:r,rightParam:a,isSelected:s,...l})=>v.jsx("div",{className:_e("rounded-md p-2 transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",e===2&&"hover:bg-card/30",e>=3&&"",s===!0&&"bg-card/40"),...l,children:v.jsx(H1,{isOpen:s,label:t,header:v.jsxs("div",{className:"flex w-full",children:[v.jsxs("div",{className:"flex w-full items-center justify-between",children:[v.jsx("span",{className:_e(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),a&&v.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:a})]}),n&&v.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),dD=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:a,onFocusKeyPath:s,renderSection:l})=>{const u=r??sr(n,e);if(u&&typeof u!="string")return v.jsx(v.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const d=e.length,f=String(u??t);return v.jsx("span",{role:"button",tabIndex:0,className:_e("w-full rounded-md p-2 text-left transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",d===2&&"hover:bg-card/30",d>=3&&""),onClick:p=>{p.stopPropagation(),s(e)},children:typeof l=="function"?l(f):v.jsx(XI,{"aria-label":"Editable field",defaultValue:f,onSave:p=>a({keyPath:e,newValue:p}),onCancel:()=>null})})},zW=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=xn(),a=sr(e.editedContent,t),s=n[$.File],{content:l}=n,u=[...t,{type:$.File}];return v.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[v.jsxs("span",{className:"text-neutral text-sm",children:[s," "]}),v.jsx(dD,{...e,keyPath:u,section:l,editedContentValue:a?.content,onContentChange:d=>{r(e.dictionary.key,{...n,content:d.newValue},t)}})]})},BW=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:a=[]}=e;return n.map((s,l)=>{const u={key:l,type:$.Array},d=[...t,u];return v.jsx(uD,{level:t.length,title:`${l}`,description:"",isSelected:Wc(d,a),onClick:f=>{f.stopPropagation(),r(d)},children:v.jsx(ba,{...e,keyPath:d,section:s})},JSON.stringify(s))})},VW=e=>{const{keyPath:t,section:n}=e;return v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!$0.includes(r)).map(r=>{const a={type:$.Condition,key:r},s=[...t,a],l=n[$.Condition][r];return v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"flex items-center font-bold",children:r}),E.createElement(ba,{...e,key:r,keyPath:s,section:l})]})})})},UW=e=>{const{keyPath:t,section:n}=e;return v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!$0.includes(r)).map(r=>{const a={type:$.Enumeration,key:r},s=[...t,a],l=n[$.Enumeration][r];return v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"flex items-center font-bold",children:r}),E.createElement(ba,{...e,key:r,keyPath:s,section:l})]})})})},FW=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:$.Insertion}],a=n[$.Insertion];return v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:v.jsx(ba,{...e,keyPath:r,section:a})})},$W=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:$.Markdown}],a=n[$.Markdown];return v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:v.jsx(ba,{...e,keyPath:r,section:a})})},HW=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:a}=e;return Object.keys(n).filter(s=>!$0.includes(s)).map(s=>{const l={key:s,type:$.Object},u=[...t,l];return v.jsx(uD,{level:t.length,title:s,description:"",isSelected:Wc(u,r),onClick:d=>{d.stopPropagation(),a(u)},children:v.jsx(ba,{...e,keyPath:u,section:n[s]})},s)})},GW=e=>{const{keyPath:t,section:n,locale:r}=e,a={type:$.Translation,key:r},s=[...t,a],l=n.translation[r];return v.jsx(ba,{...e,keyPath:s,section:l})},$0=["filePath","id","nodeType"],ba=e=>{const n=sr(e.editedContent,e.keyPath)??e.section,r=Os(n);if(typeof n=="object")return r===$.ReactNode?v.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):r===$.Nested?v.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):r===$.Markdown?v.jsx($W,{...e,section:n}):r===$.Translation?v.jsx(GW,{...e,section:n}):r===$.Enumeration?v.jsx(UW,{...e,section:n}):r===$.Condition?v.jsx(VW,{...e,section:n}):r===$.Insertion?v.jsx(FW,{...e,section:n}):r===$.Array?v.jsx(BW,{...e,section:n}):r===$.File?v.jsx(zW,{...e,section:n}):v.jsx(HW,{...e,section:n});if(typeof n=="string")return v.jsx(dD,{...e,section:n})},KW=({dictionary:e,mode:t,onDelete:n,...r})=>{const{editedContent:a,addEditedContent:s}=xn(),{focusedContent:l,setFocusedContentKeyPath:u,setFocusedContent:d}=da(),f=l?.keyPath;return v.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[v.jsx("div",{children:E.createElement(ba,{...r,keyPath:[],dictionary:e,key:JSON.stringify((a?.[e.localId]??e).content),editedContent:a?.[e.localId]?.content,focusedKeyPath:f,section:e.content,onContentChange:p=>{s(e.localId,p.newValue,p.keyPath)},onFocusKeyPath:u})}),v.jsx(cD,{dictionary:e,mode:t,className:"mb-4 flex-col",onDelete:()=>{d(null),n?.()}})]})},qW=/^[cC][^\s-]{8,}$/,WW=/^[0-9a-z]+$/,ZW=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,YW=/^[0-9a-vA-V]{20}$/,XW=/^[A-Za-z0-9]{27}$/,QW=/^[a-zA-Z0-9_-]{21}$/,JW=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,eZ=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,vC=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,tZ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,nZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function rZ(){return new RegExp(nZ,"u")}const iZ=/^(?:(?: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])$/,aZ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,oZ=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,sZ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lZ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fD=/^[A-Za-z0-9_-]*$/,cZ=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,uZ=/^\+(?:[0-9]){6,14}[0-9]$/,hD="(?:(?:\\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])))",dZ=new RegExp(`^${hD}$`);function pD(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function fZ(e){return new RegExp(`^${pD(e)}$`)}function hZ(e){const t=pD({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${hD}T(?:${r})$`)}const pZ=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},mZ=/^[^A-Z]*$/,gZ=/^[^a-z]*$/,Wr=pe("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),yZ=pe("$ZodCheckMaxLength",(e,t)=>{var n;Wr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!M0(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const l=U0(a);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),vZ=pe("$ZodCheckMinLength",(e,t)=>{var n;Wr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!M0(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const l=U0(a);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),bZ=pe("$ZodCheckLengthEquals",(e,t)=>{var n;Wr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!M0(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,s=a.length;if(s===t.length)return;const l=U0(a),u=s>t.length;r.issues.push({origin:l,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Bh=pe("$ZodCheckStringFormat",(e,t)=>{var n,r;Wr.init(e,t),e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),_Z=pe("$ZodCheckRegex",(e,t)=>{Bh.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),EZ=pe("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=mZ),Bh.init(e,t)}),SZ=pe("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=gZ),Bh.init(e,t)}),xZ=pe("$ZodCheckIncludes",(e,t)=>{Wr.init(e,t);const n=Ph(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const s=a._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),AZ=pe("$ZodCheckStartsWith",(e,t)=>{Wr.init(e,t);const n=new RegExp(`^${Ph(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),wZ=pe("$ZodCheckEndsWith",(e,t)=>{Wr.init(e,t);const n=new RegExp(`.*${Ph(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),TZ=pe("$ZodCheckOverwrite",(e,t)=>{Wr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class CZ{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
268
|
-
`).filter(l=>l),a=Math.min(...r.map(l=>l.length-l.trimStart().length)),s=r.map(l=>l.slice(a)).map(l=>" ".repeat(this.indent*2)+l);for(const l of s)this.content.push(l)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,a.join(`
|
|
269
|
-
`))}}const RZ={major:4,minor:0,patch:0},Ut=pe("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=RZ;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const s of a._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(s,l,u)=>{let d=Sc(s),f;for(const p of l){if(p._zod.def.when){if(!p._zod.def.when(s))continue}else if(d)continue;const g=s.issues.length,y=p._zod.check(s);if(y instanceof Promise&&u?.async===!1)throw new Bc;if(f||y instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await y,s.issues.length!==g&&(d||(d=Sc(s,g)))});else{if(s.issues.length===g)continue;d||(d=Sc(s,g))}}return f?f.then(()=>s):s};e._zod.run=(s,l)=>{const u=e._zod.parse(s,l);if(u instanceof Promise){if(l.async===!1)throw new Bc;return u.then(d=>a(d,r,l))}return a(u,r,l)}}e["~standard"]={validate:a=>{try{const s=gW(e,a);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return yW(e,a).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}}),H0=pe("$ZodString",(e,t)=>{Ut.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??pZ(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Et=pe("$ZodStringFormat",(e,t)=>{Bh.init(e,t),H0.init(e,t)}),kZ=pe("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=eZ),Et.init(e,t)}),NZ=pe("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=vC(r))}else t.pattern??(t.pattern=vC());Et.init(e,t)}),IZ=pe("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=tZ),Et.init(e,t)}),OZ=pe("$ZodURL",(e,t)=>{Et.init(e,t),e._zod.check=n=>{try{const r=n.value,a=new URL(r),s=a.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:cZ.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&s.endsWith("/")?n.value=s.slice(0,-1):n.value=s;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),DZ=pe("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=rZ()),Et.init(e,t)}),LZ=pe("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=QW),Et.init(e,t)}),jZ=pe("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=qW),Et.init(e,t)}),PZ=pe("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=WW),Et.init(e,t)}),MZ=pe("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ZW),Et.init(e,t)}),zZ=pe("$ZodXID",(e,t)=>{t.pattern??(t.pattern=YW),Et.init(e,t)}),BZ=pe("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=XW),Et.init(e,t)}),VZ=pe("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=hZ(t)),Et.init(e,t)}),UZ=pe("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=dZ),Et.init(e,t)}),FZ=pe("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=fZ(t)),Et.init(e,t)}),$Z=pe("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=JW),Et.init(e,t)}),HZ=pe("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=iZ),Et.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),GZ=pe("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=aZ),Et.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),KZ=pe("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=oZ),Et.init(e,t)}),qZ=pe("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=sZ),Et.init(e,t),e._zod.check=n=>{const[r,a]=n.value.split("/");try{if(!a)throw new Error;const s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function mD(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const WZ=pe("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=lZ),Et.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{mD(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function ZZ(e){if(!fD.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return mD(n)}const YZ=pe("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=fD),Et.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{ZZ(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),XZ=pe("$ZodE164",(e,t)=>{t.pattern??(t.pattern=uZ),Et.init(e,t)});function QZ(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const JZ=pe("$ZodJWT",(e,t)=>{Et.init(e,t),e._zod.check=n=>{QZ(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),eY=pe("$ZodUnknown",(e,t)=>{Ut.init(e,t),e._zod.parse=n=>n}),tY=pe("$ZodNever",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function bC(e,t,n){e.issues.length&&t.issues.push(...V0(n,e.issues)),t.value[n]=e.value}const nY=pe("$ZodArray",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const s=[];for(let l=0;l<a.length;l++){const u=a[l],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?s.push(d.then(f=>bC(f,n,l))):bC(d,n,l)}return s.length?Promise.all(s).then(()=>n):n}});function Kd(e,t,n){e.issues.length&&t.issues.push(...V0(n,e.issues)),t.value[n]=e.value}function _C(e,t,n,r){e.issues.length?r[n]===void 0?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...V0(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const rY=pe("$ZodObject",(e,t)=>{Ut.init(e,t);const n=nD(()=>{const g=Object.keys(t.shape);for(const _ of g)if(!(t.shape[_]instanceof Ut))throw new Error(`Invalid element at key "${_}": expected a Zod schema`);const y=aW(t.shape);return{shape:t.shape,keys:g,keySet:new Set(g),numKeys:g.length,optionalKeys:new Set(y)}});_t(e._zod,"propValues",()=>{const g=t.shape,y={};for(const _ in g){const x=g[_]._zod;if(x.values){y[_]??(y[_]=new Set);for(const A of x.values)y[_].add(A)}}return y});const r=g=>{const y=new CZ(["shape","payload","ctx"]),_=n.value,x=S=>{const T=sc(S);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};y.write("const input = payload.value;");const A=Object.create(null);let C=0;for(const S of _.keys)A[S]=`key_${C++}`;y.write("const newResult = {}");for(const S of _.keys)if(_.optionalKeys.has(S)){const T=A[S];y.write(`const ${T} = ${x(S)};`);const N=sc(S);y.write(`
|
|
270
|
-
if (${T}.issues.length) {
|
|
271
|
-
if (input[${N}] === undefined) {
|
|
272
|
-
if (${N} in input) {
|
|
273
|
-
newResult[${N}] = undefined;
|
|
274
|
-
}
|
|
275
|
-
} else {
|
|
276
|
-
payload.issues = payload.issues.concat(
|
|
277
|
-
${T}.issues.map((iss) => ({
|
|
278
|
-
...iss,
|
|
279
|
-
path: iss.path ? [${N}, ...iss.path] : [${N}],
|
|
280
|
-
}))
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
} else if (${T}.value === undefined) {
|
|
284
|
-
if (${N} in input) newResult[${N}] = undefined;
|
|
285
|
-
} else {
|
|
286
|
-
newResult[${N}] = ${T}.value;
|
|
287
|
-
}
|
|
288
|
-
`)}else{const T=A[S];y.write(`const ${T} = ${x(S)};`),y.write(`
|
|
289
|
-
if (${T}.issues.length) payload.issues = payload.issues.concat(${T}.issues.map(iss => ({
|
|
290
|
-
...iss,
|
|
291
|
-
path: iss.path ? [${sc(S)}, ...iss.path] : [${sc(S)}]
|
|
292
|
-
})));`),y.write(`newResult[${sc(S)}] = ${T}.value`)}y.write("payload.value = newResult;"),y.write("return payload;");const w=y.compile();return(S,T)=>w(g,S,T)};let a;const s=Rv,l=!tD.jitless,d=l&&rW.value,f=t.catchall;let p;e._zod.parse=(g,y)=>{p??(p=n.value);const _=g.value;if(!s(_))return g.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),g;const x=[];if(l&&d&&y?.async===!1&&y.jitless!==!0)a||(a=r(t.shape)),g=a(g,y);else{g.value={};const T=p.shape;for(const N of p.keys){const R=T[N],O=R._zod.run({value:_[N],issues:[]},y),D=R._zod.optin==="optional"&&R._zod.optout==="optional";O instanceof Promise?x.push(O.then(j=>D?_C(j,g,N,_):Kd(j,g,N))):D?_C(O,g,N,_):Kd(O,g,N)}}if(!f)return x.length?Promise.all(x).then(()=>g):g;const A=[],C=p.keySet,w=f._zod,S=w.def.type;for(const T of Object.keys(_)){if(C.has(T))continue;if(S==="never"){A.push(T);continue}const N=w.run({value:_[T],issues:[]},y);N instanceof Promise?x.push(N.then(R=>Kd(R,g,T))):Kd(N,g,T)}return A.length&&g.issues.push({code:"unrecognized_keys",keys:A,input:_,inst:e}),x.length?Promise.all(x).then(()=>g):g}});function EC(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(s=>uo(s,r,co())))}),t}const iY=pe("$ZodUnion",(e,t)=>{Ut.init(e,t),_t(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),_t(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),_t(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),_t(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${n.map(r=>z0(r.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let a=!1;const s=[];for(const l of t.options){const u=l._zod.run({value:n.value,issues:[]},r);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>EC(l,n,e,r)):EC(s,n,e,r)}}),aY=pe("$ZodIntersection",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,s=t.left._zod.run({value:a,issues:[]},r),l=t.right._zod.run({value:a,issues:[]},r);return s instanceof Promise||l instanceof Promise?Promise.all([s,l]).then(([d,f])=>SC(n,d,f)):SC(n,s,l)}});function Nv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(kv(e)&&kv(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};for(const s of r){const l=Nv(e[s],t[s]);if(!l.valid)return{valid:!1,mergeErrorPath:[s,...l.mergeErrorPath]};a[s]=l.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],s=t[r],l=Nv(a,s);if(!l.valid)return{valid:!1,mergeErrorPath:[r,...l.mergeErrorPath]};n.push(l.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function SC(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Sc(e))return e;const r=Nv(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const oY=pe("$ZodEnum",(e,t)=>{Ut.init(e,t);const n=tW(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(r=>iW.has(typeof r)).map(r=>typeof r=="string"?Ph(r):r.toString()).join("|")})$`),e._zod.parse=(r,a)=>{const s=r.value;return e._zod.values.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),sY=pe("$ZodTransform",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(l=>(n.value=l,n));if(a instanceof Promise)throw new Bc;return n.value=a,n}}),lY=pe("$ZodOptional",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",e._zod.optout="optional",_t(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),_t(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${z0(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(n,r):n.value===void 0?n:t.innerType._zod.run(n,r)}),cY=pe("$ZodNullable",(e,t)=>{Ut.init(e,t),_t(e._zod,"optin",()=>t.innerType._zod.optin),_t(e._zod,"optout",()=>t.innerType._zod.optout),_t(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${z0(n.source)}|null)$`):void 0}),_t(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),uY=pe("$ZodDefault",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",_t(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>xC(s,t)):xC(a,t)}});function xC(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const dY=pe("$ZodPrefault",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",_t(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),fY=pe("$ZodNonOptional",(e,t)=>{Ut.init(e,t),_t(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>AC(s,e)):AC(a,e)}});function AC(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const hY=pe("$ZodCatch",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",_t(e._zod,"optout",()=>t.innerType._zod.optout),_t(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(l=>uo(l,r,co()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(s=>uo(s,r,co()))},input:n.value}),n.issues=[]),n)}}),pY=pe("$ZodPipe",(e,t)=>{Ut.init(e,t),_t(e._zod,"values",()=>t.in._zod.values),_t(e._zod,"optin",()=>t.in._zod.optin),_t(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,r)=>{const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(s=>wC(s,t,r)):wC(a,t,r)}});function wC(e,t,n){return Sc(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const mY=pe("$ZodReadonly",(e,t)=>{Ut.init(e,t),_t(e._zod,"propValues",()=>t.innerType._zod.propValues),_t(e._zod,"values",()=>t.innerType._zod.values),_t(e._zod,"optin",()=>t.innerType._zod.optin),_t(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(TC):TC(a)}});function TC(e){return e.value=Object.freeze(e.value),e}const gY=pe("$ZodCustom",(e,t)=>{Wr.init(e,t),Ut.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(s=>CC(s,n,r,e));CC(a,n,r,e)}});function CC(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(Vc(a))}}class yY{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};return delete r.id,{...r,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function vY(){return new yY}const qd=vY();function bY(e,t){return new e({type:"string",...ze(t)})}function _Y(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ze(t)})}function RC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ze(t)})}function EY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ze(t)})}function SY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ze(t)})}function xY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ze(t)})}function AY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ze(t)})}function wY(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ze(t)})}function TY(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ze(t)})}function CY(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ze(t)})}function RY(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ze(t)})}function kY(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ze(t)})}function NY(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ze(t)})}function IY(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ze(t)})}function OY(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ze(t)})}function DY(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ze(t)})}function LY(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ze(t)})}function jY(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ze(t)})}function PY(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ze(t)})}function MY(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ze(t)})}function zY(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ze(t)})}function BY(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ze(t)})}function VY(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ze(t)})}function UY(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ze(t)})}function FY(e,t){return new e({type:"string",format:"date",check:"string_format",...ze(t)})}function $Y(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ze(t)})}function HY(e,t){return new e({type:"string",format:"duration",check:"string_format",...ze(t)})}function GY(e){return new e({type:"unknown"})}function KY(e,t){return new e({type:"never",...ze(t)})}function gD(e,t){return new yZ({check:"max_length",...ze(t),maximum:e})}function Yf(e,t){return new vZ({check:"min_length",...ze(t),minimum:e})}function yD(e,t){return new bZ({check:"length_equals",...ze(t),length:e})}function qY(e,t){return new _Z({check:"string_format",format:"regex",...ze(t),pattern:e})}function WY(e){return new EZ({check:"string_format",format:"lowercase",...ze(e)})}function ZY(e){return new SZ({check:"string_format",format:"uppercase",...ze(e)})}function YY(e,t){return new xZ({check:"string_format",format:"includes",...ze(t),includes:e})}function XY(e,t){return new AZ({check:"string_format",format:"starts_with",...ze(t),prefix:e})}function QY(e,t){return new wZ({check:"string_format",format:"ends_with",...ze(t),suffix:e})}function pu(e){return new TZ({check:"overwrite",tx:e})}function JY(e){return pu(t=>t.normalize(e))}function eX(){return pu(e=>e.trim())}function tX(){return pu(e=>e.toLowerCase())}function nX(){return pu(e=>e.toUpperCase())}function rX(e,t,n){return new e({type:"array",element:t,...ze(n)})}function iX(e,t,n){return new e({type:"custom",check:"custom",fn:t,...ze(n)})}const aX=pe("ZodISODateTime",(e,t)=>{VZ.init(e,t),Tt.init(e,t)});function oX(e){return UY(aX,e)}const sX=pe("ZodISODate",(e,t)=>{UZ.init(e,t),Tt.init(e,t)});function lX(e){return FY(sX,e)}const cX=pe("ZodISOTime",(e,t)=>{FZ.init(e,t),Tt.init(e,t)});function uX(e){return $Y(cX,e)}const dX=pe("ZodISODuration",(e,t)=>{$Z.init(e,t),Tt.init(e,t)});function fX(e){return HY(dX,e)}const hX=(e,t)=>{F0.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>hW(e,n)},flatten:{value:n=>fW(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Vh=pe("ZodError",hX,{Parent:Error}),pX=aD(Vh),mX=oD(Vh),gX=sD(Vh),yX=lD(Vh),tn=pe("ZodType",(e,t)=>(Ut.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>mo(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>pX(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>gX(e,n,r),e.parseAsync=async(n,r)=>mX(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>yX(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check(lQ(n,r)),e.superRefine=n=>e.check(cQ(n)),e.overwrite=n=>e.check(pu(n)),e.optional=()=>IC(e),e.nullable=()=>OC(e),e.nullish=()=>IC(OC(e)),e.nonoptional=n=>eQ(e,n),e.array=()=>Iv(e),e.or=n=>$X([e,n]),e.and=n=>GX(e,n),e.transform=n=>DC(e,WX(n)),e.default=n=>XX(e,n),e.prefault=n=>JX(e,n),e.catch=n=>nQ(e,n),e.pipe=n=>DC(e,n),e.readonly=()=>aQ(e),e.describe=n=>{const r=e.clone();return qd.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return qd.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return qd.get(e);const r=e.clone();return qd.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),vD=pe("_ZodString",(e,t)=>{H0.init(e,t),tn.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(qY(...r)),e.includes=(...r)=>e.check(YY(...r)),e.startsWith=(...r)=>e.check(XY(...r)),e.endsWith=(...r)=>e.check(QY(...r)),e.min=(...r)=>e.check(Yf(...r)),e.max=(...r)=>e.check(gD(...r)),e.length=(...r)=>e.check(yD(...r)),e.nonempty=(...r)=>e.check(Yf(1,...r)),e.lowercase=r=>e.check(WY(r)),e.uppercase=r=>e.check(ZY(r)),e.trim=()=>e.check(eX()),e.normalize=(...r)=>e.check(JY(...r)),e.toLowerCase=()=>e.check(tX()),e.toUpperCase=()=>e.check(nX())}),vX=pe("ZodString",(e,t)=>{H0.init(e,t),vD.init(e,t),e.email=n=>e.check(_Y(bX,n)),e.url=n=>e.check(wY(_X,n)),e.jwt=n=>e.check(VY(jX,n)),e.emoji=n=>e.check(TY(EX,n)),e.guid=n=>e.check(RC(kC,n)),e.uuid=n=>e.check(EY(Wd,n)),e.uuidv4=n=>e.check(SY(Wd,n)),e.uuidv6=n=>e.check(xY(Wd,n)),e.uuidv7=n=>e.check(AY(Wd,n)),e.nanoid=n=>e.check(CY(SX,n)),e.guid=n=>e.check(RC(kC,n)),e.cuid=n=>e.check(RY(xX,n)),e.cuid2=n=>e.check(kY(AX,n)),e.ulid=n=>e.check(NY(wX,n)),e.base64=n=>e.check(MY(OX,n)),e.base64url=n=>e.check(zY(DX,n)),e.xid=n=>e.check(IY(TX,n)),e.ksuid=n=>e.check(OY(CX,n)),e.ipv4=n=>e.check(DY(RX,n)),e.ipv6=n=>e.check(LY(kX,n)),e.cidrv4=n=>e.check(jY(NX,n)),e.cidrv6=n=>e.check(PY(IX,n)),e.e164=n=>e.check(BY(LX,n)),e.datetime=n=>e.check(oX(n)),e.date=n=>e.check(lX(n)),e.time=n=>e.check(uX(n)),e.duration=n=>e.check(fX(n))});function lc(e){return bY(vX,e)}const Tt=pe("ZodStringFormat",(e,t)=>{Et.init(e,t),vD.init(e,t)}),bX=pe("ZodEmail",(e,t)=>{IZ.init(e,t),Tt.init(e,t)}),kC=pe("ZodGUID",(e,t)=>{kZ.init(e,t),Tt.init(e,t)}),Wd=pe("ZodUUID",(e,t)=>{NZ.init(e,t),Tt.init(e,t)}),_X=pe("ZodURL",(e,t)=>{OZ.init(e,t),Tt.init(e,t)}),EX=pe("ZodEmoji",(e,t)=>{DZ.init(e,t),Tt.init(e,t)}),SX=pe("ZodNanoID",(e,t)=>{LZ.init(e,t),Tt.init(e,t)}),xX=pe("ZodCUID",(e,t)=>{jZ.init(e,t),Tt.init(e,t)}),AX=pe("ZodCUID2",(e,t)=>{PZ.init(e,t),Tt.init(e,t)}),wX=pe("ZodULID",(e,t)=>{MZ.init(e,t),Tt.init(e,t)}),TX=pe("ZodXID",(e,t)=>{zZ.init(e,t),Tt.init(e,t)}),CX=pe("ZodKSUID",(e,t)=>{BZ.init(e,t),Tt.init(e,t)}),RX=pe("ZodIPv4",(e,t)=>{HZ.init(e,t),Tt.init(e,t)}),kX=pe("ZodIPv6",(e,t)=>{GZ.init(e,t),Tt.init(e,t)}),NX=pe("ZodCIDRv4",(e,t)=>{KZ.init(e,t),Tt.init(e,t)}),IX=pe("ZodCIDRv6",(e,t)=>{qZ.init(e,t),Tt.init(e,t)}),OX=pe("ZodBase64",(e,t)=>{WZ.init(e,t),Tt.init(e,t)}),DX=pe("ZodBase64URL",(e,t)=>{YZ.init(e,t),Tt.init(e,t)}),LX=pe("ZodE164",(e,t)=>{XZ.init(e,t),Tt.init(e,t)}),jX=pe("ZodJWT",(e,t)=>{JZ.init(e,t),Tt.init(e,t)}),PX=pe("ZodUnknown",(e,t)=>{eY.init(e,t),tn.init(e,t)});function NC(){return GY(PX)}const MX=pe("ZodNever",(e,t)=>{tY.init(e,t),tn.init(e,t)});function zX(e){return KY(MX,e)}const BX=pe("ZodArray",(e,t)=>{nY.init(e,t),tn.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Yf(n,r)),e.nonempty=n=>e.check(Yf(1,n)),e.max=(n,r)=>e.check(gD(n,r)),e.length=(n,r)=>e.check(yD(n,r)),e.unwrap=()=>e.element});function Iv(e,t){return rX(BX,e,t)}const VX=pe("ZodObject",(e,t)=>{rY.init(e,t),tn.init(e,t),_t(e,"shape",()=>t.shape),e.keyof=()=>KX(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:NC()}),e.loose=()=>e.clone({...e._zod.def,catchall:NC()}),e.strict=()=>e.clone({...e._zod.def,catchall:zX()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>lW(e,n),e.merge=n=>cW(e,n),e.pick=n=>oW(e,n),e.omit=n=>sW(e,n),e.partial=(...n)=>uW(bD,e,n[0]),e.required=(...n)=>dW(_D,e,n[0])});function UX(e,t){const n={type:"object",get shape(){return B0(this,"shape",{...e}),this.shape},...ze(t)};return new VX(n)}const FX=pe("ZodUnion",(e,t)=>{iY.init(e,t),tn.init(e,t),e.options=t.options});function $X(e,t){return new FX({type:"union",options:e,...ze(t)})}const HX=pe("ZodIntersection",(e,t)=>{aY.init(e,t),tn.init(e,t)});function GX(e,t){return new HX({type:"intersection",left:e,right:t})}const Ov=pe("ZodEnum",(e,t)=>{oY.init(e,t),tn.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const s={};for(const l of r)if(n.has(l))s[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new Ov({...t,checks:[],...ze(a),entries:s})},e.exclude=(r,a)=>{const s={...t.entries};for(const l of r)if(n.has(l))delete s[l];else throw new Error(`Key ${l} not found in enum`);return new Ov({...t,checks:[],...ze(a),entries:s})}});function KX(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Ov({type:"enum",entries:n,...ze(t)})}const qX=pe("ZodTransform",(e,t)=>{sY.init(e,t),tn.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=s=>{if(typeof s=="string")n.issues.push(Vc(s,n.value,t));else{const l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),l.continue??(l.continue=!0),n.issues.push(Vc(l))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(s=>(n.value=s,n)):(n.value=a,n)}});function WX(e){return new qX({type:"transform",transform:e})}const bD=pe("ZodOptional",(e,t)=>{lY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function IC(e){return new bD({type:"optional",innerType:e})}const ZX=pe("ZodNullable",(e,t)=>{cY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function OC(e){return new ZX({type:"nullable",innerType:e})}const YX=pe("ZodDefault",(e,t)=>{uY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function XX(e,t){return new YX({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const QX=pe("ZodPrefault",(e,t)=>{dY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function JX(e,t){return new QX({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const _D=pe("ZodNonOptional",(e,t)=>{fY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function eQ(e,t){return new _D({type:"nonoptional",innerType:e,...ze(t)})}const tQ=pe("ZodCatch",(e,t)=>{hY.init(e,t),tn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function nQ(e,t){return new tQ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const rQ=pe("ZodPipe",(e,t)=>{pY.init(e,t),tn.init(e,t),e.in=t.in,e.out=t.out});function DC(e,t){return new rQ({type:"pipe",in:e,out:t})}const iQ=pe("ZodReadonly",(e,t)=>{mY.init(e,t),tn.init(e,t)});function aQ(e){return new iQ({type:"readonly",innerType:e})}const oQ=pe("ZodCustom",(e,t)=>{gY.init(e,t),tn.init(e,t)});function sQ(e){const t=new Wr({check:"custom"});return t._zod.check=e,t}function lQ(e,t={}){return iX(oQ,e,t)}function cQ(e){const t=sQ(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Vc(r,n.value,t._zod.def));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),n.issues.push(Vc(a))}},e(n.value,n)));return t}function Ei(e){return Array.isArray?Array.isArray(e):xD(e)==="[object Array]"}function uQ(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function dQ(e){return e==null?"":uQ(e)}function zr(e){return typeof e=="string"}function ED(e){return typeof e=="number"}function fQ(e){return e===!0||e===!1||hQ(e)&&xD(e)=="[object Boolean]"}function SD(e){return typeof e=="object"}function hQ(e){return SD(e)&&e!==null}function Hn(e){return e!=null}function cy(e){return!e.trim().length}function xD(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const pQ="Incorrect 'index' type",mQ=e=>`Invalid value for key ${e}`,gQ=e=>`Pattern length exceeds max of ${e}.`,yQ=e=>`Missing ${e} property in key`,vQ=e=>`Property 'weight' in key '${e}' must be a positive integer`,LC=Object.prototype.hasOwnProperty;class bQ{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=AD(r);this._keys.push(a),this._keyMap[a.id]=a,n+=a.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 AD(e){let t=null,n=null,r=null,a=1,s=null;if(zr(e)||Ei(e))r=e,t=jC(e),n=Dv(e);else{if(!LC.call(e,"name"))throw new Error(yQ("name"));const l=e.name;if(r=l,LC.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(vQ(l));t=jC(l),n=Dv(l),s=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:s}}function jC(e){return Ei(e)?e:e.split(".")}function Dv(e){return Ei(e)?e.join("."):e}function _Q(e,t){let n=[],r=!1;const a=(s,l,u)=>{if(Hn(s))if(!l[u])n.push(s);else{let d=l[u];const f=s[d];if(!Hn(f))return;if(u===l.length-1&&(zr(f)||ED(f)||fQ(f)))n.push(dQ(f));else if(Ei(f)){r=!0;for(let p=0,g=f.length;p<g;p+=1)a(f[p],l,u+1)}else l.length&&a(f,l,u+1)}};return a(e,zr(t)?t.split("."):t,0),r?n:n[0]}const EQ={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},SQ={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},xQ={location:0,threshold:.6,distance:100},AQ={useExtendedSearch:!1,getFn:_Q,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Me={...SQ,...EQ,...xQ,...AQ};const wQ=/[^ ]+/g;function TQ(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const s=a.match(wQ).length;if(n.has(s))return n.get(s);const l=1/Math.pow(s,.5*e),u=parseFloat(Math.round(l*r)/r);return n.set(s,u),u},clear(){n.clear()}}}class G0{constructor({getFn:t=Me.getFn,fieldNormWeight:n=Me.fieldNormWeight}={}){this.norm=TQ(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,zr(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();zr(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(!Hn(t)||cy(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((a,s)=>{let l=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Hn(l)){if(Ei(l)){let u=[];const d=[{nestedArrIndex:-1,value:l}];for(;d.length;){const{nestedArrIndex:f,value:p}=d.pop();if(Hn(p))if(zr(p)&&!cy(p)){let g={v:p,i:f,n:this.norm.get(p)};u.push(g)}else Ei(p)&&p.forEach((g,y)=>{d.push({nestedArrIndex:y,value:g})})}r.$[s]=u}else if(zr(l)&&!cy(l)){let u={v:l,n:this.norm.get(l)};r.$[s]=u}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function wD(e,t,{getFn:n=Me.getFn,fieldNormWeight:r=Me.fieldNormWeight}={}){const a=new G0({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(AD)),a.setSources(t),a.create(),a}function CQ(e,{getFn:t=Me.getFn,fieldNormWeight:n=Me.fieldNormWeight}={}){const{keys:r,records:a}=e,s=new G0({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(a),s}function Zd(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Me.distance,ignoreLocation:s=Me.ignoreLocation}={}){const l=t/e.length;if(s)return l;const u=Math.abs(r-n);return a?l+u/a:u?1:l}function RQ(e=[],t=Me.minMatchCharLength){let n=[],r=-1,a=-1,s=0;for(let l=e.length;s<l;s+=1){let u=e[s];u&&r===-1?r=s:!u&&r!==-1&&(a=s-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const qa=32;function kQ(e,t,n,{location:r=Me.location,distance:a=Me.distance,threshold:s=Me.threshold,findAllMatches:l=Me.findAllMatches,minMatchCharLength:u=Me.minMatchCharLength,includeMatches:d=Me.includeMatches,ignoreLocation:f=Me.ignoreLocation}={}){if(t.length>qa)throw new Error(gQ(qa));const p=t.length,g=e.length,y=Math.max(0,Math.min(r,g));let _=s,x=y;const A=u>1||d,C=A?Array(g):[];let w;for(;(w=e.indexOf(t,x))>-1;){let D=Zd(t,{currentLocation:w,expectedLocation:y,distance:a,ignoreLocation:f});if(_=Math.min(D,_),x=w+p,A){let j=0;for(;j<p;)C[w+j]=1,j+=1}}x=-1;let S=[],T=1,N=p+g;const R=1<<p-1;for(let D=0;D<p;D+=1){let j=0,H=N;for(;j<H;)Zd(t,{errors:D,currentLocation:y+H,expectedLocation:y,distance:a,ignoreLocation:f})<=_?j=H:N=H,H=Math.floor((N-j)/2+j);N=H;let Z=Math.max(1,y-H+1),q=l?g:Math.min(y+H,g)+p,te=Array(q+2);te[q+1]=(1<<D)-1;for(let W=q;W>=Z;W-=1){let ae=W-1,M=n[e.charAt(ae)];if(A&&(C[ae]=+!!M),te[W]=(te[W+1]<<1|1)&M,D&&(te[W]|=(S[W+1]|S[W])<<1|1|S[W+1]),te[W]&R&&(T=Zd(t,{errors:D,currentLocation:ae,expectedLocation:y,distance:a,ignoreLocation:f}),T<=_)){if(_=T,x=ae,x<=y)break;Z=Math.max(1,2*y-x)}}if(Zd(t,{errors:D+1,currentLocation:y,expectedLocation:y,distance:a,ignoreLocation:f})>_)break;S=te}const O={isMatch:x>=0,score:Math.max(.001,T)};if(A){const D=RQ(C,u);D.length?d&&(O.indices=D):O.isMatch=!1}return O}function NQ(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}const Xf=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 TD{constructor(t,{location:n=Me.location,threshold:r=Me.threshold,distance:a=Me.distance,includeMatches:s=Me.includeMatches,findAllMatches:l=Me.findAllMatches,minMatchCharLength:u=Me.minMatchCharLength,isCaseSensitive:d=Me.isCaseSensitive,ignoreDiacritics:f=Me.ignoreDiacritics,ignoreLocation:p=Me.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:a,includeMatches:s,findAllMatches:l,minMatchCharLength:u,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:p},t=d?t:t.toLowerCase(),t=f?Xf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const g=(_,x)=>{this.chunks.push({pattern:_,alphabet:NQ(_),startIndex:x})},y=this.pattern.length;if(y>qa){let _=0;const x=y%qa,A=y-x;for(;_<A;)g(this.pattern.substr(_,qa),_),_+=qa;if(x){const C=y-qa;g(this.pattern.substr(C),C)}}else g(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a}=this.options;if(t=n?t:t.toLowerCase(),t=r?Xf(t):t,this.pattern===t){let A={isMatch:!0,score:0};return a&&(A.indices=[[0,t.length-1]]),A}const{location:s,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,ignoreLocation:p}=this.options;let g=[],y=0,_=!1;this.chunks.forEach(({pattern:A,alphabet:C,startIndex:w})=>{const{isMatch:S,score:T,indices:N}=kQ(t,A,C,{location:s+w,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,includeMatches:a,ignoreLocation:p});S&&(_=!0),y+=T,S&&N&&(g=[...g,...N])});let x={isMatch:_,score:_?y/this.chunks.length:1};return _&&a&&(x.indices=g),x}}class _a{constructor(t){this.pattern=t}static isMultiMatch(t){return PC(t,this.multiRegex)}static isSingleMatch(t){return PC(t,this.singleRegex)}search(){}}function PC(e,t){const n=e.match(t);return n?n[1]:null}class IQ extends _a{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 OQ extends _a{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 DQ extends _a{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 LQ extends _a{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 jQ extends _a{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 PQ extends _a{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 CD extends _a{constructor(t,{location:n=Me.location,threshold:r=Me.threshold,distance:a=Me.distance,includeMatches:s=Me.includeMatches,findAllMatches:l=Me.findAllMatches,minMatchCharLength:u=Me.minMatchCharLength,isCaseSensitive:d=Me.isCaseSensitive,ignoreDiacritics:f=Me.ignoreDiacritics,ignoreLocation:p=Me.ignoreLocation}={}){super(t),this._bitapSearch=new TD(t,{location:n,threshold:r,distance:a,includeMatches:s,findAllMatches:l,minMatchCharLength:u,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:p})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class RD extends _a{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const a=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,a.push([r,n-1]);const l=!!a.length;return{isMatch:l,score:l?0:1,indices:a}}}const Lv=[IQ,RD,DQ,LQ,PQ,jQ,OQ,CD],MC=Lv.length,MQ=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,zQ="|";function BQ(e,t={}){return e.split(zQ).map(n=>{let r=n.trim().split(MQ).filter(s=>s&&!!s.trim()),a=[];for(let s=0,l=r.length;s<l;s+=1){const u=r[s];let d=!1,f=-1;for(;!d&&++f<MC;){const p=Lv[f];let g=p.isMultiMatch(u);g&&(a.push(new p(g,t)),d=!0)}if(!d)for(f=-1;++f<MC;){const p=Lv[f];let g=p.isSingleMatch(u);if(g){a.push(new p(g,t));break}}}return a})}const VQ=new Set([CD.type,RD.type]);class UQ{constructor(t,{isCaseSensitive:n=Me.isCaseSensitive,ignoreDiacritics:r=Me.ignoreDiacritics,includeMatches:a=Me.includeMatches,minMatchCharLength:s=Me.minMatchCharLength,ignoreLocation:l=Me.ignoreLocation,findAllMatches:u=Me.findAllMatches,location:d=Me.location,threshold:f=Me.threshold,distance:p=Me.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a,minMatchCharLength:s,findAllMatches:u,ignoreLocation:l,location:d,threshold:f,distance:p},t=n?t:t.toLowerCase(),t=r?Xf(t):t,this.pattern=t,this.query=BQ(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:a,ignoreDiacritics:s}=this.options;t=a?t:t.toLowerCase(),t=s?Xf(t):t;let l=0,u=[],d=0;for(let f=0,p=n.length;f<p;f+=1){const g=n[f];u.length=0,l=0;for(let y=0,_=g.length;y<_;y+=1){const x=g[y],{isMatch:A,indices:C,score:w}=x.search(t);if(A){if(l+=1,d+=w,r){const S=x.constructor.type;VQ.has(S)?u=[...u,...C]:u.push(C)}}else{d=0,l=0,u.length=0;break}}if(l){let y={isMatch:!0,score:d/l};return r&&(y.indices=u),y}}return{isMatch:!1,score:1}}}const jv=[];function FQ(...e){jv.push(...e)}function Pv(e,t){for(let n=0,r=jv.length;n<r;n+=1){let a=jv[n];if(a.condition(e,t))return new a(e,t)}return new TD(e,t)}const Qf={AND:"$and",OR:"$or"},Mv={PATH:"$path",PATTERN:"$val"},zv=e=>!!(e[Qf.AND]||e[Qf.OR]),$Q=e=>!!e[Mv.PATH],HQ=e=>!Ei(e)&&SD(e)&&!zv(e),zC=e=>({[Qf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function kD(e,t,{auto:n=!0}={}){const r=a=>{let s=Object.keys(a);const l=$Q(a);if(!l&&s.length>1&&!zv(a))return r(zC(a));if(HQ(a)){const d=l?a[Mv.PATH]:s[0],f=l?a[Mv.PATTERN]:a[d];if(!zr(f))throw new Error(mQ(d));const p={keyId:Dv(d),pattern:f};return n&&(p.searcher=Pv(f,t)),p}let u={children:[],operator:s[0]};return s.forEach(d=>{const f=a[d];Ei(f)&&f.forEach(p=>{u.children.push(r(p))})}),u};return zv(e)||(e=zC(e)),r(e)}function GQ(e,{ignoreFieldNorm:t=Me.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:s,score:l})=>{const u=a?a.weight:null;r*=Math.pow(l===0&&u?Number.EPSILON:l,(u||1)*(t?1:s))}),n.score=r})}function KQ(e,t){const n=e.matches;t.matches=[],Hn(n)&&n.forEach(r=>{if(!Hn(r.indices)||!r.indices.length)return;const{indices:a,value:s}=r;let l={indices:a,value:s};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function qQ(e,t){t.score=e.score}function WQ(e,t,{includeMatches:n=Me.includeMatches,includeScore:r=Me.includeScore}={}){const a=[];return n&&a.push(KQ),r&&a.push(qQ),e.map(s=>{const{idx:l}=s,u={item:t[l],refIndex:l};return a.length&&a.forEach(d=>{d(s,u)}),u})}class qs{constructor(t,n={},r){this.options={...Me,...n},this.options.useExtendedSearch,this._keyStore=new bQ(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof G0))throw new Error(pQ);this._myIndex=n||wD(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Hn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,a=this._docs.length;r<a;r+=1){const s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,a-=1,n.push(s))}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:a,shouldSort:s,sortFn:l,ignoreFieldNorm:u}=this.options;let d=zr(t)?zr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return GQ(d,{ignoreFieldNorm:u}),s&&d.sort(l),ED(n)&&n>-1&&(d=d.slice(0,n)),WQ(d,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=Pv(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:s,i:l,n:u})=>{if(!Hn(s))return;const{isMatch:d,score:f,indices:p}=n.searchIn(s);d&&a.push({item:s,idx:l,matches:[{score:f,value:s,norm:u,indices:p}]})}),a}_searchLogical(t){const n=kD(t,this.options),r=(u,d,f)=>{if(!u.children){const{keyId:g,searcher:y}=u,_=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(d,g),searcher:y});return _&&_.length?[{idx:f,item:d,matches:_}]:[]}const p=[];for(let g=0,y=u.children.length;g<y;g+=1){const _=u.children[g],x=r(_,d,f);if(x.length)p.push(...x);else if(u.operator===Qf.AND)return[]}return p},a=this._myIndex.records,s={},l=[];return a.forEach(({$:u,i:d})=>{if(Hn(u)){let f=r(n,u,d);f.length&&(s[d]||(s[d]={idx:d,item:u,matches:[]},l.push(s[d])),f.forEach(({matches:p})=>{s[d].matches.push(...p)}))}}),l}_searchObjectList(t){const n=Pv(t,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:l,i:u})=>{if(!Hn(l))return;let d=[];r.forEach((f,p)=>{d.push(...this._findMatches({key:f,value:l[p],searcher:n}))}),d.length&&s.push({idx:u,item:l,matches:d})}),s}_findMatches({key:t,value:n,searcher:r}){if(!Hn(n))return[];let a=[];if(Ei(n))n.forEach(({v:s,i:l,n:u})=>{if(!Hn(s))return;const{isMatch:d,score:f,indices:p}=r.searchIn(s);d&&a.push({score:f,key:t,value:s,idx:l,norm:u,indices:p})});else{const{v:s,n:l}=n,{isMatch:u,score:d,indices:f}=r.searchIn(s);u&&a.push({score:d,key:t,value:s,norm:l,indices:f})}return a}}qs.version="7.1.0";qs.createIndex=wD;qs.parseIndex=CQ;qs.config=Me;qs.parseQuery=kD;FQ(UQ);const xc=({children:e,className:t,identifier:n,...r})=>v.jsx("div",{className:_e("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),ZQ=({children:e,identifier:t,className:n,label:r,...a})=>v.jsx(ot,{className:_e("w-full cursor-pointer",n),label:r??`Open panel ${t}`,onClick:s=>{s.currentTarget.focus()},variant:"none",...a,children:e}),YQ=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:a="start",identifier:s,className:l,...u})=>v.jsx("div",{className:_e("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",a==="start"&&"left-0",a==="end"&&"right-0",l),"aria-hidden":t,role:"region","aria-labelledby":`unrollable-panel-button-${s}`,id:`unrollable-panel-${s}`,children:v.jsx(vb,{isHidden:t,className:_e("overflow-x-visible",t===!1&&"invisible",t===!0&&"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]"),...u,children:e})});xc.Trigger=ZQ;xc.Panel=YQ;const Ac=(e,t)=>{const[n,r]=E.useState(()=>{if(t!==void 0){const l=typeof t=="function"?t():t;if(typeof window>"u")return l;const u=localStorage?.getItem(e);if(u)try{return JSON.parse(u)}catch(d){console.error(d)}return l}});E.useEffect(()=>{const l=localStorage?.getItem(e);if(l&&n===void 0)try{r(JSON.parse(l))}catch(u){console.error(u)}else t!==void 0&&n===void 0&&r(t)},[e,n]);const a=E.useCallback(l=>{r(u=>{const d=typeof l=="function"?l(u):l;return localStorage?.setItem(e,JSON.stringify(d)),d})},[e,r]),s=E.useCallback(()=>{const l=localStorage?.getItem(e);l&&r(JSON.parse(l))},[e,r]);return E.useMemo(()=>[n,a,s],[n,a,s])},ND=E.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),ID=()=>E.useContext(ND),XQ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=ub(),[a,s]=Ac("locale-content-selector-selected-locales",t??[r]);return v.jsx(ND,{value:{availableLocales:e,selectedLocales:a,setSelectedLocales:s},children:n})},uy="locale-switcher-content",QQ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:a,languageListLabel:s,seeAllLocalesSwitch:l}=cn("locale-switcher-content"),u=E.useRef(null),{locale:d}=ub(),{availableLocales:f,selectedLocales:p,setSelectedLocales:g}=ID(),y=E.useMemo(()=>f.map(R=>{const O=sf(R,B.ENGLISH),D=sf(R,d),j=sf(R);return{locale:R,englishName:O,currentLocaleName:D,ownLocaleName:j}}),[f,d]),[_,x]=E.useState(y),[A,C]=Ac("locale-content-selector-see-all-locales",!1),w=E.useMemo(()=>{const R={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new qs(y,R)},[y]),S=E.useCallback(R=>{if(R){const O=w.search(R).map(D=>D.item);x(O)}else x(y)},[w,y]),T=R=>{t?p.includes(R)?p.length>1&&g(O=>O.filter(D=>D!==R)):g(O=>[...O,R]):g([R])},N=R=>{C(R),g(R?f:[d])};return v.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":a.value,children:v.jsxs(xc,{identifier:uy,children:[v.jsx(xc.Trigger,{identifier:uy,children:v.jsxs("div",{className:"flex w-full items-center justify-between",children:[v.jsx("div",{className:"px-2 py-1",children:v.jsx(G2,{size:18})}),v.jsx(Z2,{className:"self-center",size:18})]})}),v.jsx(xc.Panel,{identifier:uy,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:v.jsxs(Ar,{className:"max-h-[80vh] min-w-28",separator:"y",role:"listbox",transparency:"sm",border:!0,roundedSize:"2xl",borderColor:"text","aria-label":s.value,children:[t&&v.jsx("div",{className:"m-auto p-2",children:v.jsx(hu,{defaultValue:!1,onChange:N,color:du.TEXT,size:fu.SM,className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&A)&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"p-3",children:v.jsx($s,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:R=>S(R.target.value),ref:u})}),v.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:R,currentLocaleName:O,ownLocaleName:D})=>v.jsx("li",{className:"px-1.5 py-1",children:v.jsx(ot,{onClick:()=>T(R),label:`${n} ${O}`,disabled:!(f??f).includes(R),isActive:p.includes(R),variant:at.HOVERABLE,color:it.TEXT,isFullWidth:!0,textAlign:ws.LEFT,size:Kn.SM,children:v.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&v.jsx("div",{className:"w-4",children:p.includes(R)&&v.jsx(Ps,{className:"size-full"})}),v.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[v.jsxs("div",{className:"flex flex-col text-nowrap",children:[v.jsx("span",{dir:tV(R),lang:R,children:D}),v.jsx("span",{className:"text-neutral text-xs",children:O})]}),v.jsx("span",{className:"text-neutral text-sm",children:R.toUpperCase()})]})]})})},R))})]})]})})]})})},JQ=(e,t,n)=>{const r={...e};for(const a of Object.keys(e))a===t?(r[n]=e[t],delete r[t]):r[a]=e[a];return r},Bv=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...s})=>{const[l,u]=E.useState(e),[d,f]=E.useState(0),p=l!==e,g=()=>{u(e),f(A=>A+1)},y=()=>{t(l)},_=A=>{u(A.currentTarget.value)};E.useEffect(()=>{u(e)},[e]);const x=r?.(l)??!0;return v.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[v.jsx($s,{onChange:_,"aria-label":"value",variant:la.INVISIBLE,className:"size-full",defaultValue:e,...s},d),(p||a)&&v.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[p&&v.jsxs(v.Fragment,{children:[v.jsx(ot,{Icon:Ps,label:"Validate",variant:at.HOVERABLE,color:it.TEXT,size:Kn.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!x,onClick:y}),v.jsx(ot,{Icon:ho,label:"Cancel",variant:at.HOVERABLE,size:Kn.ICON_SM,color:it.TEXT,className:"cursor-pointer hover:scale-110",onClick:g})]}),a]})]},String(e))},eJ=()=>{const{session:e,revalidateSession:t,setSession:n}=lu(),{mutate:r}=FK(),a=e?.user?"authenticated":"unauthenticated",s=a==="authenticated",l=a==="unauthenticated",u=e?.user;return{isAuthenticated:s,isUnauthenticated:l,user:u,revalidateSession:t,logout:async()=>{n(null),r({})}}},tJ=(e,t)=>{const[n,r]=E.useState(e);return E.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>clearTimeout(a)},[e,t]),n},nJ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{mutate:a}=ZK(),s=Gr(),[l,u]=E.useState(!1),[d,f]=E.useState(r),[p,g]=E.useState(""),y=E.useRef(null),_=E.useRef(null),x=E.useRef(null),[A,C]=E.useState(null),[w,S]=E.useState(-1),T=tJ(d,200);E.useEffect(()=>{typeof n.value>"u"||f(r)},[n.value,n.defaultValue]),E.useEffect(()=>{if(!e||!l)return;const R=async()=>{try{const O=y.current?.selectionStart??T.length,D=T.slice(0,O),j=T.slice(O),H=5,Z=D.split(`
|
|
293
|
-
`),te=Z.slice(Math.max(0,Z.length-H-1),-1).join(`
|
|
294
|
-
`),ce=Z[Z.length-1]??"",ae=j.split(`
|
|
295
|
-
`).slice(1,H+1).join(`
|
|
296
|
-
`);a({text:D,contextBefore:te,currentLine:ce,contextAfter:ae,aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:M=>{g(M.data?.autocompletion??""),S(O)}})}catch(O){console.error("Autocomplete error:",O)}};T.length>3?(g(""),R()):g("")},[T,e,a,s]),E.useEffect(()=>{if(!p||w===-1||!_.current||!x.current){C(null);return}const R=_.current.getBoundingClientRect(),O=x.current.getBoundingClientRect();C({left:R.left-O.left,top:R.top-O.top})},[p,w,d]);const N=()=>{const R=y.current?.selectionStart??w;if(R!==w)return;const O=d.slice(0,R)+p+d.slice(R);f(O),g(""),S(-1),setTimeout(()=>{y.current?.focus();const D=R+p.length;y.current?.setSelectionRange(D,D)},0)};return v.jsxs("div",{className:"relative w-full",children:[v.jsxs("div",{ref:x,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:[p&&w!==-1?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"align-text-top text-transparent",children:d.slice(0,w)}),v.jsx("span",{ref:_,style:{visibility:"hidden"},"aria-hidden":"true",children:p}),v.jsx("span",{className:"align-text-top text-transparent",children:d.slice(w)})]}):v.jsx("span",{className:"align-text-top text-transparent",children:d}),t&&v.jsx("span",{className:"text-neutral align-text-top",children:t})]}),p&&A&&v.jsx("div",{className:"pointer-events-none text-neutral whitespace-pre-wrap break-words text-base leading-[1.45rem] md:text-sm md:leading-[1.23rem]",style:{position:"absolute",left:A.left,top:A.top},children:p}),v.jsx(T0,{...n,ref:y,value:d,onChange:R=>{u(!0),f(R.target.value),g(""),n.onChange?.(R)},onKeyDown:R=>{R.key==="Tab"&&p&&(R.preventDefault(),N()),n.onKeyDown?.(R)},onSelect:R=>{p&&R.target.selectionStart!==w&&(g(""),S(-1)),n.onSelect?.(R)}})]})},rJ=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...s})=>{const{isAuthenticated:l}=eJ(),[u,d]=E.useState(e),[f,p]=E.useState(0),g=u!==e,y=()=>{d(e),p(C=>C+1)},_=()=>{t(u)},x=C=>d(C.currentTarget.value??"");E.useEffect(()=>{d(e)},[e]);const A=r?.(u)??!0;return v.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[v.jsx(nJ,{onChange:x,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...s},f),(g||a)&&v.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[g&&v.jsxs(v.Fragment,{children:[v.jsx(ot,{Icon:Ps,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!A,onClick:_}),v.jsx(ot,{Icon:ho,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:y})]}),a]})]},e)};function Wa(){return Wa=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},Wa.apply(this,arguments)}const iJ=["children","options"],BC=["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"}),VC={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},aJ=["style","script","pre"],oJ=["src","href","data","formAction","srcDoc","action"],sJ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,lJ=/mailto:/i,cJ=/\n{2,}$/,UC=/^(\s*>[\s\S]*?)(?=\n\n|$)/,uJ=/^ *> ?/gm,dJ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,fJ=/^ {2,}\n/,hJ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,FC=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,$C=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,pJ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,mJ=/^(?:\n *)*\n/,gJ=/\r\n?/g,yJ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,vJ=/^\[\^([^\]]+)]/,bJ=/\f/g,_J=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,EJ=/^\s*?\[(x|\s)\]/,HC=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,GC=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,KC=/^([^\n]+)\n *(=|-){3,} *\n/,dy=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,SJ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,qC=/^<!--[\s\S]*?(?:-->)/,xJ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,fy=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,AJ=/^\{.*\}$/,wJ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,TJ=/^<([^ >]+@[^ >]+)>/,CJ=/^<([^ >]+:\/[^ >]+)>/,RJ=/-([a-z])?/gi,WC=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,kJ=/^[^\n]+(?: \n|\n{2,})/,NJ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,IJ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,OJ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,DJ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,LJ=/\t/g,jJ=/(^ *\||\| *$)/g,PJ=/^ *:-+: *$/,MJ=/^ *:-+ *$/,zJ=/^ *-+: *$/,Uh=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Fh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",BJ=RegExp(`^([*_])\\1${Uh(1)}${Fh}\\1\\1(?!\\1)`),VJ=RegExp(`^([*_])${Uh(0)}${Fh}\\1(?!\\1)`),UJ=RegExp(`^(==)${Uh(0)}${Fh}\\1`),FJ=RegExp(`^(~~)${Uh(0)}${Fh}\\1`),$J=/^(:[a-zA-Z0-9-_]+:)/,HJ=/^\\([^0-9A-Za-z\s])/,GJ=/\\([^0-9A-Za-z\s])/g,KJ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,qJ=/^\n+/,WJ=/^([ \t]*)/,ZJ=/(?:^|\n)( *)$/,K0="(?:\\d+\\.)",q0="(?:[*+-])";function OD(e){return"( *)("+(e===1?K0:q0)+") +"}const DD=OD(1),LD=OD(2);function jD(e){return RegExp("^"+(e===1?DD:LD))}const YJ=jD(1),XJ=jD(2);function PD(e){return RegExp("^"+(e===1?DD:LD)+"[^\\n]*(?:\\n(?!\\1"+(e===1?K0:q0)+" )[^\\n]*)*(\\n|$)","gm")}const QJ=PD(1),JJ=PD(2);function MD(e){const t=e===1?K0:q0;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const zD=MD(1),BD=MD(2);function ZC(e,t){const n=t===1,r=n?zD:BD,a=n?QJ:JJ,s=n?YJ:XJ;return{t:l=>s.test(l),o:Ns(function(l,u){const d=ZJ.exec(u.prevCapture);return d&&(u.list||!u.inline&&!u.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,u,d){const f=n?+l[2]:void 0,p=l[0].replace(cJ,`
|
|
297
|
-
`).match(a);let g=!1;return{items:p.map(function(y,_){const x=s.exec(y)[0].length,A=RegExp("^ {1,"+x+"}","gm"),C=y.replace(A,"").replace(s,""),w=_===p.length-1,S=C.indexOf(`
|
|
298
|
-
|
|
299
|
-
`)!==-1||w&&g;g=S;const T=d.inline,N=d.list;let R;d.list=!0,S?(d.inline=!1,R=wc(C)+`
|
|
300
|
-
|
|
301
|
-
`):(d.inline=!0,R=wc(C));const O=u(R,d);return d.inline=T,d.list=N,O}),ordered:n,start:f}},l:(l,u,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,p){return e("li",{key:p},u(f,d))}))}}const eee=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),tee=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function wc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function _f(e,t){return e.startsWith(t)}function nee(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(_f(e,n[r]))return!0;return!1}return n(e,t)}function cc(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 ree(e){return zJ.test(e)?"right":PJ.test(e)?"center":MJ.test(e)?"left":null}function YC(e,t,n,r){const a=n.inTable;n.inTable=!0;let s=[[]],l="";function u(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,p)=>{d.trim()==="|"&&(u(),r)?f!==0&&f!==p.length-1&&s.push([]):l+=d}),u(),n.inTable=a,s}function iee(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(jJ,"").split("|").map(ree):[],a=e[3]?(function(l,u,d){return l.trim().split(`
|
|
302
|
-
`).map(function(f){return YC(f,u,d,!0)})})(e[3],t,n):[],s=YC(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:s,type:"25"}:{children:s,type:"21"}}function XC(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ns(e){return e.inline=1,e}function Xi(e){return Ns(function(t,n){return n.inline?e.exec(t):null})}function Qi(e){return Ns(function(t,n){return n.inline||n.simple?e.exec(t):null})}function hi(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Yd(e){return Ns(function(t){return e.exec(t)})}const aee=/(javascript|vbscript|data(?!:image)):/i;function oee(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(aee.test(t))return null}catch{return null}return e}function Ir(e){return e&&e.replace(GJ,"$1")}function Ef(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function see(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function lee(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const hy=(e,t,n)=>({children:Ef(t,e[2],n)});function py(){return{}}function my(){return null}function cee(...e){return e.filter(Boolean).join(" ")}function gy(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function uee(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Wa({},VC,t.namedCodesToUnicode):VC;const n=t.slugify||cc,r=t.sanitizer||oee,a=t.createElement||E.createElement,s=[UC,FC,$C,t.enforceAtxHeadings?GC:HC,KC,WC,zD,BD],l=[...s,kJ,dy,qC,fy];function u(w,S,...T){const N=gy(t.overrides,w+".props",{});return a((function(R,O){const D=gy(O,R);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:gy(O,R+".component",R):R})(w,t.overrides),Wa({},S,N,{className:cee(S?.className,N.className)||void 0}),...T)}function d(w){w=w.replace(_J,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=DJ.test(w)===!1);const T=x(_(S?w:wc(w).replace(qJ,"")+`
|
|
303
|
-
|
|
304
|
-
`,{inline:S}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(t.wrapper===null)return T;const N=t.wrapper||(S?"span":"div");let R;if(T.length>1||t.forceWrapper)R=T;else{if(T.length===1)return R=T[0],typeof R=="string"?u("span",{key:"outer"},R):R;R=null}return a(N,{key:"outer"},R)}function f(w,S){if(!S||!S.trim())return null;const T=S.match(sJ);return T?T.reduce(function(N,R){const O=R.indexOf("=");if(O!==-1){const D=(function(q){return q.indexOf("-")!==-1&&q.match(xJ)===null&&(q=q.replace(RJ,function(te,ce){return ce.toUpperCase()})),q})(R.slice(0,O)).trim(),j=(function(q){const te=q[0];return(te==='"'||te==="'")&&q.length>=2&&q[q.length-1]===te?q.slice(1,-1):q})(R.slice(O+1).trim()),H=BC[D]||D;if(H==="ref")return N;const Z=N[H]=(function(q,te,ce,W){return te==="style"?(function(ae){const M=[];let X="",G=!1,ge=!1,P="";if(!ae)return M;for(let F=0;F<ae.length;F++){const J=ae[F];if(J!=='"'&&J!=="'"||G||(ge?J===P&&(ge=!1,P=""):(ge=!0,P=J)),J==="("&&X.endsWith("url")?G=!0:J===")"&&G&&(G=!1),J!==";"||ge||G)X+=J;else{const oe=X.trim();if(oe){const he=oe.indexOf(":");if(he>0){const ye=oe.slice(0,he).trim(),fe=oe.slice(he+1).trim();M.push([ye,fe])}}X=""}}const ie=X.trim();if(ie){const F=ie.indexOf(":");if(F>0){const J=ie.slice(0,F).trim(),oe=ie.slice(F+1).trim();M.push([J,oe])}}return M})(ce).reduce(function(ae,[M,X]){return ae[M.replace(/(-[a-z])/g,G=>G[1].toUpperCase())]=W(X,q,M),ae},{}):oJ.indexOf(te)!==-1?W(Ir(ce),q,te):(ce.match(AJ)&&(ce=Ir(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)})(w,D,j,r);typeof Z=="string"&&(dy.test(Z)||fy.test(Z))&&(N[H]=d(Z.trim()))}else R!=="style"&&(N[BC[R]||R]=!0);return N},{}):null}const p=[],g={},y={0:{t:[">"],o:hi(UC),i:1,u(w,S,T){const[,N,R]=w[0].replace(uJ,"").match(dJ);return{alert:N,children:S(R,T)}},l(w,S,T){const N={key:T.key};return w.alert&&(N.className="markdown-alert-"+n(w.alert.toLowerCase(),cc),w.children.unshift({attrs:{},children:[{type:"27",text:w.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",N,S(w.children,T))}},1:{o:Yd(fJ),i:1,u:py,l:(w,S,T)=>u("br",{key:T.key})},2:{t:w=>{const S=w[0];return S==="-"||S==="*"||S==="_"},o:hi(hJ),i:1,u:py,l:(w,S,T)=>u("hr",{key:T.key})},3:{t:[" "],o:hi($C),i:0,u:w=>({lang:void 0,text:Ir(wc(w[0].replace(/^ {4}/gm,"")))}),l:(w,S,T)=>u("pre",{key:T.key},u("code",Wa({},w.attrs,{className:w.lang?"lang-"+w.lang:""}),w.text))},4:{t:["```","~~~"],o:hi(FC),i:0,u:w=>({attrs:f("code",w[3]||""),lang:w[2]||void 0,text:w[4],type:"3"})},5:{t:["`"],o:Qi(pJ),i:3,u:w=>({text:Ir(w[2])}),l:(w,S,T)=>u("code",{key:T.key},w.text)},6:{t:["[^"],o:hi(yJ),i:0,u:w=>(p.push({footnote:w[2],identifier:w[1]}),{}),l:my},7:{t:["[^"],o:Xi(vJ),i:1,u:w=>({target:"#"+n(w[1],cc),text:w[1]}),l:(w,S,T)=>u("a",{key:T.key,href:r(w.target,"a","href")},u("sup",{key:T.key},w.text))},8:{t:["[ ]","[x]"],o:Xi(EJ),i:1,u:w=>({completed:w[1].toLowerCase()==="x"}),l:(w,S,T)=>u("input",{checked:w.completed,key:T.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:hi(t.enforceAtxHeadings?GC:HC),i:1,u:(w,S,T)=>({children:Ef(S,w[2],T),id:n(w[2],cc),level:w[1].length}),l:(w,S,T)=>u("h"+w.level,{id:w.id,key:T.key},S(w.children,T))},10:{o:hi(KC),i:0,u:(w,S,T)=>({children:Ef(S,w[1],T),level:w[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Yd(dy),i:1,u(w,S,T){const[,N]=w[3].match(WJ),R=RegExp("^"+N,"gm"),O=w[3].replace(R,""),D=(j=O,l.some(ce=>ce.test(j))?lee:Ef);var j;const H=w[1].toLowerCase(),Z=aJ.indexOf(H)!==-1,q=(Z?H:w[1]).trim(),te={attrs:f(q,w[2]),noInnerParse:Z,tag:q};if(T.inAnchor=T.inAnchor||H==="a",Z)te.text=w[3];else{const ce=T.inHTML;T.inHTML=!0,te.children=D(S,O,T),T.inHTML=ce}return T.inAnchor=!1,te},l:(w,S,T)=>u(w.tag,Wa({key:T.key},w.attrs),w.text||(w.children?S(w.children,T):""))},13:{t:["<"],o:Yd(fy),i:1,u(w){const S=w[1].trim();return{attrs:f(S,w[2]||""),tag:S}},l:(w,S,T)=>u(w.tag,Wa({},w.attrs,{key:T.key}))},12:{t:["<!--"],o:Yd(qC),i:1,u:()=>({}),l:my},14:{t:["!["],o:Qi(tee),i:1,u:w=>({alt:Ir(w[1]),target:Ir(w[2]),title:Ir(w[3])}),l:(w,S,T)=>u("img",{key:T.key,alt:w.alt||void 0,title:w.title||void 0,src:r(w.target,"img","src")})},15:{t:["["],o:Xi(eee),i:3,u:(w,S,T)=>({children:see(S,w[1],T),target:Ir(w[2]),title:Ir(w[3])}),l:(w,S,T)=>u("a",{key:T.key,href:r(w.target,"a","href"),title:w.title},S(w.children,T))},16:{t:["<"],o:Xi(CJ),i:0,u:w=>({children:[{text:w[1],type:"27"}],target:w[1],type:"15"})},17:{t:(w,S)=>!S.inAnchor&&!t.disableAutoLink&&(_f(w,"http://")||_f(w,"https://")),o:Xi(wJ),i:0,u:w=>({children:[{text:w[1],type:"27"}],target:w[1],title:void 0,type:"15"})},18:{t:["<"],o:Xi(TJ),i:0,u(w){let S=w[1],T=w[1];return lJ.test(T)||(T="mailto:"+T),{children:[{text:S.replace("mailto:",""),type:"27"}],target:T,type:"15"}}},20:ZC(u,1),33:ZC(u,2),19:{o:hi(mJ),i:3,u:py,l:()=>`
|
|
305
|
-
`},21:{o:Ns(function(w,S){if(S.inline||S.simple||S.inHTML&&w.indexOf(`
|
|
306
|
-
|
|
307
|
-
`)===-1&&S.prevCapture.indexOf(`
|
|
308
|
-
|
|
309
|
-
`)===-1)return null;let T="";w.split(`
|
|
310
|
-
`).every(R=>(R+=`
|
|
311
|
-
`,!s.some(O=>O.test(R))&&(T+=R,!!R.trim())));const N=wc(T);return N===""?null:[T,,N]}),i:3,u:hy,l:(w,S,T)=>u("p",{key:T.key},S(w.children,T))},22:{t:["["],o:Xi(NJ),i:0,u:w=>(g[w[1]]={target:w[2],title:w[4]},{}),l:my},23:{t:["!["],o:Qi(IJ),i:0,u:w=>({alt:w[1]?Ir(w[1]):void 0,ref:w[2]}),l:(w,S,T)=>g[w.ref]?u("img",{key:T.key,alt:w.alt,src:r(g[w.ref].target,"img","src"),title:g[w.ref].title}):null},24:{t:w=>w[0]==="["&&w.indexOf("](")===-1,o:Xi(OJ),i:0,u:(w,S,T)=>({children:S(w[1],T),fallbackChildren:w[0],ref:w[2]}),l:(w,S,T)=>g[w.ref]?u("a",{key:T.key,href:r(g[w.ref].target,"a","href"),title:g[w.ref].title},S(w.children,T)):u("span",{key:T.key},w.fallbackChildren)},25:{t:["|"],o:hi(WC),i:1,u:iee,l(w,S,T){const N=w;return u("table",{key:T.key},u("thead",null,u("tr",null,N.header.map(function(R,O){return u("th",{key:O,style:XC(N,O)},S(R,T))}))),u("tbody",null,N.cells.map(function(R,O){return u("tr",{key:O},R.map(function(D,j){return u("td",{key:j,style:XC(N,j)},S(D,T))}))})))}},27:{o:Ns(function(w,S){let T;return _f(w,":")&&(T=$J.exec(w)),T||KJ.exec(w)}),i:4,u(w){const S=w[0];return{text:S.indexOf("&")===-1?S:S.replace(SJ,(T,N)=>t.namedCodesToUnicode[N]||T)}},l:w=>w.text},28:{t:["**","__"],o:Qi(BJ),i:2,u:(w,S,T)=>({children:S(w[2],T)}),l:(w,S,T)=>u("strong",{key:T.key},S(w.children,T))},29:{t:w=>{const S=w[0];return(S==="*"||S==="_")&&w[1]!==S},o:Qi(VJ),i:3,u:(w,S,T)=>({children:S(w[2],T)}),l:(w,S,T)=>u("em",{key:T.key},S(w.children,T))},30:{t:["\\"],o:Qi(HJ),i:1,u:w=>({text:w[1],type:"27"})},31:{t:["=="],o:Qi(UJ),i:3,u:hy,l:(w,S,T)=>u("mark",{key:T.key},S(w.children,T))},32:{t:["~~"],o:Qi(FJ),i:3,u:hy,l:(w,S,T)=>u("del",{key:T.key},S(w.children,T))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const _=(function(w){var S=Object.keys(w);function T(N,R){var O=[];if(R.prevCapture=R.prevCapture||"",N.trim())for(;N;)for(var D=0;D<S.length;){var j=S[D],H=w[j];if(!H.t||nee(N,R,H.t)){var Z=H.o(N,R);if(Z&&Z[0]){N=N.substring(Z[0].length);var q=H.u(Z,T,R);R.prevCapture+=Z[0],q.type||(q.type=j),O.push(q);break}D++}else D++}return R.prevCapture="",O}return S.sort(function(N,R){return w[N].i-w[R].i||(N<R?-1:1)}),function(N,R){return T((function(O){return O.replace(gJ,`
|
|
312
|
-
`).replace(bJ,"").replace(LJ," ")})(N),R)}})(y),x=(A=(function(w,S){return function(T,N,R){const O=w[T.type].l;return S?S(()=>O(T,N,R),T,N,R):O(T,N,R)}})(y,t.renderRule),function w(S,T={}){if(Array.isArray(S)){const N=T.key,R=[];let O=!1;for(let D=0;D<S.length;D++){T.key=D;const j=w(S[D],T),H=typeof j=="string";H&&O?R[R.length-1]+=j:j!==null&&R.push(j),O=H}return T.key=N,R}return A(S,w,T)});var A;const C=d(e);return p.length?u("div",null,C,u("footer",{key:"footer"},p.map(function(w){return u("div",{id:n(w.identifier,cc),key:w.identifier},w.identifier,x(_(w.footnote,{inline:!0})))}))):C}const dee=e=>{let{children:t="",options:n}=e,r=(function(a,s){if(a==null)return{};var l,u,d={},f=Object.keys(a);for(u=0;u<f.length;u++)s.indexOf(l=f[u])>=0||(d[l]=a[l]);return d})(e,iJ);return E.cloneElement(uee(t,n),r)},fee=700,VD=({isRollable:e=!0,minHeight:t=fee,children:n,className:r})=>{const[a,s]=E.useState(0),[l,u]=E.useState(!0),d=E.useRef(null),{expandCollapseContent:f}=cn("expand-collapse"),p=a>t;return E.useEffect(()=>{d.current&&s(d.current.clientHeight)},[]),e?p?v.jsxs(vb,{isHidden:l,minHeight:t,className:"w-full overflow-x-scroll overflow-y-hidden",children:[v.jsx("div",{className:_e("grid w-full",r),ref:d,children:n}),v.jsx("button",{className:_e("absolute bottom-0 right-0 flex justify-center cursor-pointer w-full px-3 py-0.5 hover:py-1 transition-all duration-300 text-md text-neutral-700 dark:text-neutral-400 items-center shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur rounded-t-2xl bg-gradient-to-t from-card/80 to-transparent",!l&&"w-auto"),onClick:()=>u(g=>!g),children:f(l)})]}):v.jsx("div",{className:_e("grid w-full",r),ref:d,children:n}):n},hee=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function pee(e,t,n){const r=[];for(const a of e){if(n==="v3"){const u=a.children.flatMap((d,f)=>{if(d.type!=="element")return d;const p=d.children[0];if(p.type!=="text")return d;const g=f===a.children.length-1;if(!JC(p.value,g))return d;const _=p.value.split(/(\s+\/\/)/);if(_.length<=1)return d;let x=[_[0]];for(let A=1;A<_.length;A+=2)x.push(_[A]+(_[A+1]||""));return x=x.filter(Boolean),x.length<=1?d:x.map(A=>({...d,children:[{type:"text",value:A}]}))});u.length!==a.children.length&&(a.children=u)}const s=a.children;let l=s.length-1;n==="v1"?l=0:t&&(l=s.length-2);for(let u=Math.max(l,0);u<s.length;u++){const d=s[u];if(d.type!=="element")continue;const f=d.children.at(0);if(f?.type!=="text")continue;const p=u===s.length-1,g=JC(f.value,p);if(g)if(t&&!p&&u!==0){const y=QC(s[u-1],"{")&&QC(s[u+1],"}");r.push({info:g,line:a,token:d,isLineCommentOnly:s.length===3&&d.children.length===1,isJsxStyle:y})}else r.push({info:g,line:a,token:d,isLineCommentOnly:s.length===1&&d.children.length===1,isJsxStyle:!1})}}return r}function QC(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function JC(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const a=e.length-n.length-r;for(const[s,l]of hee){if(l&&!t)continue;const u=s.exec(n);if(u)return[" ".repeat(r)+u[1],u[2],u[3]?u[3]+" ".repeat(a):void 0]}}function mee(e){const t=e.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return t&&t[1].trim().length===0?e.slice(0,t.index):e}function UD(e,t,n,r){return r==null&&(r="v3"),{name:e,code(a){const s=a.children.filter(f=>f.type==="element"),l=[];a.data??={};const u=a.data;u._shiki_notation??=pee(s,["jsx","tsx"].includes(this.options.lang),r);const d=u._shiki_notation;for(const f of d){if(f.info[1].length===0)continue;let p=s.indexOf(f.line);f.isLineCommentOnly&&r!=="v1"&&p++;let g=!1;if(f.info[1]=f.info[1].replace(t,(..._)=>n.call(this,_,f.line,f.token,s,p)?(g=!0,""):_[0]),!g)continue;r==="v1"&&(f.info[1]=mee(f.info[1]));const y=f.info[1].trim().length===0;if(y&&(f.info[1]=""),y&&f.isLineCommentOnly)l.push(f.line);else if(y&&f.isJsxStyle)f.line.children.splice(f.line.children.indexOf(f.token)-1,3);else if(y)f.line.children.splice(f.line.children.indexOf(f.token),1);else{const _=f.token.children[0];_.type==="text"&&(_.value=f.info.join(""))}}for(const f of l){const p=a.children.indexOf(f),g=a.children[p+1];let y=1;g?.type==="text"&&g?.value===`
|
|
313
|
-
`&&(y=2),a.children.splice(p,y)}}}}function gee(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const a=r.split("-").map(s=>Number.parseInt(s,10));return a.length===1?[a[0]]:Array.from({length:a[1]-a[0]+1},(s,l)=>l+a[0])}):null}const eR=Symbol("highlighted-lines");function yee(e={}){const{className:t="highlighted"}=e;return{name:"@shikijs/transformers:meta-highlight",line(n,r){if(!this.options.meta?.__raw)return;const a=this.meta;return a[eR]??=gee(this.options.meta.__raw),(a[eR]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function vee(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function bee(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){if(!this.options.meta?.__raw)return;const a=vee(this.options.meta.__raw);r.decorations||=[];for(const s of a){const l=_ee(n,s);for(const u of l)r.decorations.push({start:u,end:u+s.length,properties:{class:t}})}}}}function _ee(e,t){const n=[];let r=0;for(;;){const a=e.indexOf(t,r);if(a===-1||a>=e.length||a<r)break;n.push(a),r=a+t.length}return n}function Eee(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function W0(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return UD(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(Eee).join("|")})(:\\d+)?\\]`),function([a,s,l=":1"],u,d,f,p){const g=Number.parseInt(l.slice(1),10);for(let y=p;y<Math.min(p+g,f.length);y++)this.addClassToHast(f[y],n[s]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function See(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return W0({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function xee(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return W0({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function Aee(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return W0({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function wee(e,t,n,r){const a=FD(e);let s=a.indexOf(n);for(;s!==-1;)Tee.call(this,e.children,t,s,n.length,r),s=a.indexOf(n,s+1)}function FD(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(FD).join(""):""}function Tee(e,t,n,r,a){let s=0;for(let l=0;l<e.length;l++){const u=e[l];if(u.type!=="element"||u.tagName!=="span"||u===t)continue;const d=u.children[0];if(d.type==="text"){if(Cee([s,s+d.value.length-1],[n,n+r])){const f=Math.max(0,n-s),p=r-Math.max(0,s-n);if(p===0)continue;const g=Ree(u,d,f,p);this.addClassToHast(g[1],a);const y=g.filter(Boolean);e.splice(l,1,...y),l+=y.length-1}s+=d.value.length}}}function Cee(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function Ree(e,t,n,r){const a=t.value,s=l=>kee(e,{children:[{type:"text",value:l}]});return[n>0?s(a.slice(0,n)):void 0,s(a.slice(n,n+r)),n+r<a.length?s(a.slice(n+r)):void 0]}function kee(e,t){return{...e,properties:{...e.properties},...t}}function Nee(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return UD("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,a,s],l,u,d,f){const p=s?Number.parseInt(s.slice(1),10):d.length;a=a.replace(/\\(.)/g,"$1");for(let g=f;g<Math.min(f+p,d.length);g++)wee.call(this,d[g],u,a,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const Iee="modulepreload",Oee=function(e){return"/"+e},tR={},L=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let f=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};var l=f;document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");a=f(n.map(p=>{if(p=Oee(p),p in tR)return;tR[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":Iee,g||(_.as="script"),_.crossOrigin="",_.href=p,d&&_.setAttribute("nonce",d),document.head.appendChild(_),g)return new Promise((x,A)=>{_.addEventListener("load",x),_.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return a.then(u=>{for(const d of u||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})};let Vt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Dee(e){return Z0(e)}function Z0(e){return Array.isArray(e)?Lee(e):e instanceof RegExp?e:typeof e=="object"?jee(e):e}function Lee(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Z0(e[n]);return t}function jee(e){let t={};for(let n in e)t[n]=Z0(e[n]);return t}function $D(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function HD(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?HD(e.substring(0,e.length-1)):e.substr(~t+1)}var yy=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Xd=class{static hasCaptures(e){return e===null?!1:(yy.lastIndex=0,yy.test(e))}static replaceCaptures(e,t,n){return e.replace(yy,(r,a,s,l)=>{let u=n[parseInt(a||s,10)];if(u){let d=t.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(l){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return r})}};function GD(e,t){return e<t?-1:e>t?1:0}function KD(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 a=0;a<n;a++){let s=GD(e[a],t[a]);if(s!==0)return s}return 0}return n-r}function nR(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 qD(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var WD=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Jf=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(zee(e),t)}static createFromParsedTheme(e,t){return Vee(e,t)}_cachedMatchRoot=new WD(e=>this._root.match(e));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(a=>Pee(e.parent,a.parentScopes));return r?new ZD(r.fontStyle,r.foreground,r.background):null}},vy=class Sf{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Sf(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Sf(n,t[r]);return n}push(t){return new Sf(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 Pee(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!Mee(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Mee(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var ZD=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function zee(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,s=t.length;a<s;a++){let l=t[a];if(!l.settings)continue;let u;if(typeof l.scope=="string"){let g=l.scope;g=g.replace(/^[,]+/,""),g=g.replace(/[,]+$/,""),u=g.split(",")}else Array.isArray(l.scope)?u=l.scope:u=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let g=l.settings.fontStyle.split(" ");for(let y=0,_=g.length;y<_;y++)switch(g[y]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&nR(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&nR(l.settings.background)&&(p=l.settings.background);for(let g=0,y=u.length;g<y;g++){let x=u[g].trim().split(" "),A=x[x.length-1],C=null;x.length>1&&(C=x.slice(0,x.length-1),C.reverse()),n[r++]=new Bee(A,C,a,d,f,p)}}return n}var Bee=class{constructor(e,t,n,r,a,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=s}},gn=(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))(gn||{});function Vee(e,t){e.sort((d,f)=>{let p=GD(d.scope,f.scope);return p!==0||(p=KD(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let s=new Uee(t),l=new ZD(n,s.getId(r),s.getId(a)),u=new $ee(new Vv(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];u.insert(0,p.scope,p.parentScopes,p.fontStyle,s.getId(p.foreground),s.getId(p.background))}return new Jf(s,l,u)}var Uee=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){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)}},Fee=Object.freeze([]),Vv=class YD{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,s){this.scopeDepth=t,this.parentScopes=n||Fee,this.fontStyle=r,this.foreground=a,this.background=s}clone(){return new YD(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},$ee=class Uv{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const s=n.parentScopes[a].length-t.parentScopes[r].length;if(s!==0)return s;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,s;if(r===-1?(a=t,s=""):(a=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Uv._cmpBySpecificity),n}insert(t,n,r,a,s,l){if(n===""){this._doInsertHere(t,r,a,s,l);return}let u=n.indexOf("."),d,f;u===-1?(d=n,f=""):(d=n.substring(0,u),f=n.substring(u+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new Uv(this._mainRule.clone(),Vv.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,s,l)}_doInsertHere(t,n,r,a,s){if(n===null){this._mainRule.acceptOverwrite(t,r,a,s);return}for(let l=0,u=this._rulesWithParentScopes.length;l<u;l++){let d=this._rulesWithParentScopes[l];if(KD(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,s);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Vv(t,n,r,a,s))}},Is=class ir{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ir.getLanguageId(t),r=ir.getTokenType(t),a=ir.getFontStyle(t),s=ir.getForeground(t),l=ir.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:s,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,a,s,l,u){let d=ir.getLanguageId(t),f=ir.getTokenType(t),p=ir.containsBalancedBrackets(t)?1:0,g=ir.getFontStyle(t),y=ir.getForeground(t),_=ir.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),s!==-1&&(g=s),l!==0&&(y=l),u!==0&&(_=u),(d<<0|f<<8|p<<10|g<<11|y<<15|_<<24)>>>0}};function eh(e,t){const n=[],r=Hee(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function s(){if(a==="-"){a=r.next();const d=s();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=u();return a===")"&&(a=r.next()),d}if(rR(a)){const d=[];do d.push(a),a=r.next();while(rR(a));return f=>t(d,f)}return null}function l(){const d=[];let f=s();for(;f;)d.push(f),f=s();return p=>d.every(g=>g(p))}function u(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(g=>g(p))}}function rR(e){return!!e&&!!e.match(/[\w\.:]+/)}function Hee(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 XD(e){typeof e.dispose=="function"&&e.dispose()}var Uc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Gee=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Kee=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},qee=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Uc(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Kee;for(const n of e)Wee(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Uc){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 Wee(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof Uc?xf({baseGrammar:s,selfGrammar:a},r):Fv(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const u of l)r.add(new Uc(u))}function Fv(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];th([r],t,n)}}function xf(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&th(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&th(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function th(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?$D({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&th(r.patterns,{...t,repository:a},n);const s=r.include;if(!s)continue;const l=QD(s);switch(l.kind){case 0:xf({...t,selfGrammar:t.baseGrammar},n);break;case 1:xf(t,n);break;case 2:Fv(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const u=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(u){const d={baseGrammar:t.baseGrammar,selfGrammar:u,repository:a};l.kind===4?Fv(l.ruleName,d,n):xf(d,n)}else l.kind===4?n.add(new Gee(l.scopeName,l.ruleName)):n.add(new Uc(l.scopeName));break}}}var Zee=class{kind=0},Yee=class{kind=1},Xee=class{constructor(e){this.ruleName=e}kind=2},Qee=class{constructor(e){this.scopeName=e}kind=3},Jee=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function QD(e){if(e==="$base")return new Zee;if(e==="$self")return new Yee;const t=e.indexOf("#");if(t===-1)return new Qee(e);if(t===0)return new Xee(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Jee(n,r)}}var ete=/\\(\d+)/,iR=/\\(\d+)/g,tte=-1,JD=-2;var mu=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Xd.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Xd.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${HD(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:Xd.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xd.replaceCaptures(this._contentName,e,t)}},nte=class extends mu{retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},rte=class extends mu{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new Fc(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $c,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},aR=class extends mu{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $c,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},$v=class extends mu{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a,s,l,u,d,f){super(e,t,n,r),this._begin=new Fc(a,this.id),this.beginCaptures=s,this._end=new Fc(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=d||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.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(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $c;for(const n of this.patterns)e.getRule(n).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},nh=class extends mu{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,a,s,l,u,d){super(e,t,n,r),this._begin=new Fc(a,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new Fc(l,JD),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.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(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $c;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new $c,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},eL=class pn{static createCaptureRule(t,n,r,a,s){return t.registerRule(l=>new nte(n,l,r,a,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new rte(t.$vscodeTextmateLocation,t.id,t.name,t.match,pn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=$D({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new aR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,pn._compilePatterns(s,n,r))}return t.while?new nh(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,pn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,pn._compileCaptures(t.whileCaptures||t.captures,n,r),pn._compilePatterns(t.patterns,n,r)):new $v(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,pn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,pn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,pn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let s=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);u>s&&(s=u)}for(let l=0;l<=s;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);let d=0;t[l].patterns&&(d=pn.getCompiledRuleId(t[l],n,r)),a[u]=pn.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let s=0,l=t.length;s<l;s++){const u=t[s];let d=-1;if(u.include){const f=QD(u.include);switch(f.kind){case 0:case 1:d=pn.getCompiledRuleId(r[u.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=pn.getCompiledRuleId(p,n,r));break;case 3:case 4:const g=f.scopeName,y=f.kind===4?f.ruleName:null,_=n.getExternalGrammar(g,r);if(_)if(y){let x=_.repository[y];x&&(d=pn.getCompiledRuleId(x,n,_.repository))}else d=pn.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else d=pn.getCompiledRuleId(u,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof aR||f instanceof $v||f instanceof nh)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Fc=class tL{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,s=[],l=!1;for(let u=0;u<r;u++)if(t.charAt(u)==="\\"&&u+1<r){const f=t.charAt(u+1);f==="z"?(s.push(t.substring(a,u)),s.push("$(?!\\n)(?<!\\n)"),a=u+2):(f==="A"||f==="G")&&(l=!0),u++}this.hasAnchor=l,a===0?this.source=t:(s.push(t.substring(a,r)),this.source=s.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=ete.test(this.source):this.hasBackReferences=!1}clone(){return new tL(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(a=>t.substring(a.start,a.end));return iR.lastIndex=0,this.source.replace(iR,(a,s)=>qD(r[parseInt(s,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=[],a=[],s,l,u,d;for(s=0,l=this.source.length;s<l;s++)u=this.source.charAt(s),t[s]=u,n[s]=u,r[s]=u,a[s]=u,u==="\\"&&s+1<l&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="",n[s+1]="",r[s+1]="A",a[s+1]="A"):d==="G"?(t[s+1]="",n[s+1]="G",r[s+1]="",a[s+1]="G"):(t[s+1]=d,n[s+1]=d,r[s+1]=d,a[s+1]=d),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.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}},$c=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){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 oR(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(a=>a.resolveAnchors(t,n));return new oR(e,r,this._items.map(a=>a.ruleId))}},oR=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;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(`
|
|
314
|
-
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},by=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ite=class Hv{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new by(t,8),this._embeddedLanguagesMatcher=new ate(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Hv._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new by(0,0);_getBasicScopeAttributes=new WD(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new by(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Hv.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!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ate=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>qD(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])}},sR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function nL(e,t,n,r,a,s,l,u){const d=t.content.length;let f=!1,p=-1;if(l){const _=ote(e,t,n,r,a,s);a=_.stack,r=_.linePos,n=_.isFirstLine,p=_.anchorPosition}const g=Date.now();for(;!f;){if(u!==0&&Date.now()-g>u)return new sR(a,!0);y()}return new sR(a,!1);function y(){const _=ste(e,t,n,r,a,p);if(!_){s.produce(a,d),f=!0;return}const x=_.captureIndices,A=_.matchedRuleId,C=x&&x.length>0?x[0].end>r:!1;if(A===tte){const w=a.getRule(e);s.produce(a,x[0].start),a=a.withContentNameScopesList(a.nameScopesList),hc(e,t,n,a,s,w.endCaptures,x),s.produce(a,x[0].end);const S=a;if(a=a.parent,p=S.getAnchorPos(),!C&&S.getEnterPos()===r){a=S,s.produce(a,d),f=!0;return}}else{const w=e.getRule(A);s.produce(a,x[0].start);const S=a,T=w.getName(t.content,x),N=a.contentNameScopesList.pushAttributed(T,e);if(a=a.push(A,r,p,x[0].end===d,null,N,N),w instanceof $v){const R=w;hc(e,t,n,a,s,R.beginCaptures,x),s.produce(a,x[0].end),p=x[0].end;const O=R.getContentName(t.content,x),D=N.pushAttributed(O,e);if(a=a.withContentNameScopesList(D),R.endHasBackReferences&&(a=a.withEndRule(R.getEndWithResolvedBackReferences(t.content,x))),!C&&S.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(w instanceof nh){const R=w;hc(e,t,n,a,s,R.beginCaptures,x),s.produce(a,x[0].end),p=x[0].end;const O=R.getContentName(t.content,x),D=N.pushAttributed(O,e);if(a=a.withContentNameScopesList(D),R.whileHasBackReferences&&(a=a.withEndRule(R.getWhileWithResolvedBackReferences(t.content,x))),!C&&S.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(hc(e,t,n,a,s,w.captures,x),s.produce(a,x[0].end),a=a.pop(),!C){a=a.safePop(),s.produce(a,d),f=!0;return}}x[0].end>r&&(r=x[0].end,n=!1)}}function ote(e,t,n,r,a,s){let l=a.beginRuleCapturedEOL?0:-1;const u=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof nh&&u.push({rule:f,stack:d})}for(let d=u.pop();d;d=u.pop()){const{ruleScanner:f,findOptions:p}=ute(d.rule,e,d.stack.endRule,n,r===l),g=f.findNextMatchSync(t,r,p);if(g){if(g.ruleId!==JD){a=d.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(s.produce(d.stack,g.captureIndices[0].start),hc(e,t,n,d.stack,s,d.rule.whileCaptures,g.captureIndices),s.produce(d.stack,g.captureIndices[0].end),l=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function ste(e,t,n,r,a,s){const l=lte(e,t,n,r,a,s),u=e.getInjections();if(u.length===0)return l;const d=cte(u,e,t,n,r,a,s);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}function lte(e,t,n,r,a,s){const l=a.getRule(e),{ruleScanner:u,findOptions:d}=rL(l,e,a.endRule,n,r===s),f=u.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function cte(e,t,n,r,a,s,l){let u=Number.MAX_VALUE,d=null,f,p=0;const g=s.contentNameScopesList.getScopeNames();for(let y=0,_=e.length;y<_;y++){const x=e[y];if(!x.matcher(g))continue;const A=t.getRule(x.ruleId),{ruleScanner:C,findOptions:w}=rL(A,t,null,r,a===l),S=C.findNextMatchSync(n,a,w);if(!S)continue;const T=S.captureIndices[0].start;if(!(T>=u)&&(u=T,d=S.captureIndices,f=S.ruleId,p=x.priority,u===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function rL(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function ute(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function hc(e,t,n,r,a,s,l){if(s.length===0)return;const u=t.content,d=Math.min(s.length,l.length),f=[],p=l[0].end;for(let g=0;g<d;g++){const y=s[g];if(y===null)continue;const _=l[g];if(_.length===0)continue;if(_.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=_.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,_.start):a.produce(r,_.start),y.retokenizeCapturedWithRuleId){const A=y.getName(u,l),C=r.contentNameScopesList.pushAttributed(A,e),w=y.getContentName(u,l),S=C.pushAttributed(w,e),T=r.push(y.retokenizeCapturedWithRuleId,_.start,-1,!1,null,C,S),N=e.createOnigString(u.substring(0,_.end));nL(e,N,n&&_.start===0,_.start,T,a,!1,0),XD(N);continue}const x=y.getName(u,l);if(x!==null){const C=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(x,e);f.push(new dte(C,_.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var dte=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function fte(e,t,n,r,a,s,l,u){return new pte(e,t,n,r,a,s,l,u)}function lR(e,t,n,r,a){const s=eh(t,rh),l=eL.getCompiledRuleId(n,r,a.repository);for(const u of s)e.push({debugSelector:t,matcher:u.matcher,ruleId:l,grammar:a,priority:u.priority})}function rh(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(hte(t[a],r))return n=a+1,!0;return!1})}function hte(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 pte=class{constructor(e,t,n,r,a,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new ite(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=cR(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const d of Object.keys(a)){const f=eh(d,rh);for(const p of f)this._tokenTypeMatchers.push({matcher:p.matcher,type:a[d]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;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:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let l in a)lR(t,l,a[l],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(l=>{const u=this.getExternalGrammar(l);if(u){const d=u.injectionSelector;d&&lR(t,d,u,this,u)}})}return t.sort((a,s)=>a.priority-s.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]=cR(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=eL.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===Gv.NULL){a=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),g=Is.set(0,f.languageId,f.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),y=this.getRule(this._rootId).getName(null,null);let _;y?_=Tc.createRootAndLookUpScopeName(y,g,this):_=Tc.createRoot("unknown",g),t=new Gv(null,this._rootId,-1,-1,!1,null,_,_)}else a=!1,t.reset();e=e+`
|
|
315
|
-
`;const s=this.createOnigString(e),l=s.content.length,u=new gte(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=nL(this,s,a,0,t,u,!0,r);return XD(s),{lineLength:l,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function cR(e,t){return e=Dee(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 Tc=class Or{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const s of n)a=vy.push(a,s.scopeNames),r=new Or(r,a,s.encodedTokenAttributes);return r}static createRoot(t,n){return new Or(null,new vy(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),s=new vy(null,t),l=r.themeProvider.themeMatch(s),u=Or.mergeAttributes(n,a,l);return new Or(null,s,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Or.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 a=-1,s=0,l=0;return r!==null&&(a=r.fontStyle,s=r.foregroundId,l=r.backgroundId),Is.set(t,n.languageId,n.tokenType,null,a,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Or._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const s of r)a=Or._pushAttributed(a,s,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),u=Or.mergeAttributes(t.tokenAttributes,a,l);return new Or(t,s,u)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},Gv=class Ka{constructor(t,n,r,a,s,l,u,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=l,this.nameScopesList=u,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new Ka(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ka._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Tc.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(){Ka._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,s,l,u){return new Ka(this,t,n,r,a,s,l,u)}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){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.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 Ka(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(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Tc.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Ka(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Tc.fromExtension(r,n.contentNameScopesList))}},mte=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):eh(n,rh).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>eh(n,rh).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}},gte=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const l of this._tokenTypeOverrides)l.matcher(s)&&(r=Is.set(r,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(s))}if(a&&(r=Is.set(r,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=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,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},yte=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;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,a){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,fte(e,s,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},vte=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new yte(Jf.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Jf.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 mte(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,s){const l=new qee(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(u=>this._loadSingleGrammar(u.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,s)}_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,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,s)}},Kv=Gv.NULL;const bte=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class gu{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}gu.prototype.normal={};gu.prototype.property={};gu.prototype.space=void 0;function iL(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new gu(n,r,t)}function qv(e){return e.toLowerCase()}class On{constructor(t,n){this.attribute=n,this.property=t}}On.prototype.attribute="";On.prototype.booleanish=!1;On.prototype.boolean=!1;On.prototype.commaOrSpaceSeparated=!1;On.prototype.commaSeparated=!1;On.prototype.defined=!1;On.prototype.mustUseProperty=!1;On.prototype.number=!1;On.prototype.overloadedBoolean=!1;On.prototype.property="";On.prototype.spaceSeparated=!1;On.prototype.space=void 0;let _te=0;const Fe=go(),zt=go(),Wv=go(),me=go(),gt=go(),Es=go(),Vn=go();function go(){return 2**++_te}const Zv=Object.freeze(Object.defineProperty({__proto__:null,boolean:Fe,booleanish:zt,commaOrSpaceSeparated:Vn,commaSeparated:Es,number:me,overloadedBoolean:Wv,spaceSeparated:gt},Symbol.toStringTag,{value:"Module"})),_y=Object.keys(Zv);class Y0 extends On{constructor(t,n,r,a){let s=-1;if(super(t,n),uR(this,"space",a),typeof r=="number")for(;++s<_y.length;){const l=_y[s];uR(this,_y[s],(r&Zv[l])===Zv[l])}}}Y0.prototype.defined=!0;function uR(e,t,n){n&&(e[t]=n)}function Ws(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new Y0(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[qv(r)]=r,n[qv(s.attribute)]=r}return new gu(t,n,e.space)}const aL=Ws({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:me,ariaColIndex:me,ariaColSpan:me,ariaControls:gt,ariaCurrent:null,ariaDescribedBy:gt,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:gt,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:gt,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gt,ariaLevel:me,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:gt,ariaPlaceholder:null,ariaPosInSet:me,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:gt,ariaRowCount:me,ariaRowIndex:me,ariaRowSpan:me,ariaSelected:zt,ariaSetSize:me,ariaSort:null,ariaValueMax:me,ariaValueMin:me,ariaValueNow:me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function oL(e,t){return t in e?e[t]:t}function sL(e,t){return oL(e,t.toLowerCase())}const Ete=Ws({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Es,acceptCharset:gt,accessKey:gt,action:null,allow:null,allowFullScreen:Fe,allowPaymentRequest:Fe,allowUserMedia:Fe,alt:null,as:null,async:Fe,autoCapitalize:null,autoComplete:gt,autoFocus:Fe,autoPlay:Fe,blocking:gt,capture:null,charSet:null,checked:Fe,cite:null,className:gt,cols:me,colSpan:null,content:null,contentEditable:zt,controls:Fe,controlsList:gt,coords:me|Es,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Fe,defer:Fe,dir:null,dirName:null,disabled:Fe,download:Wv,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Fe,formTarget:null,headers:gt,height:me,hidden:Wv,high:me,href:null,hrefLang:null,htmlFor:gt,httpEquiv:gt,id:null,imageSizes:null,imageSrcSet:null,inert:Fe,inputMode:null,integrity:null,is:null,isMap:Fe,itemId:null,itemProp:gt,itemRef:gt,itemScope:Fe,itemType:gt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Fe,low:me,manifest:null,max:null,maxLength:me,media:null,method:null,min:null,minLength:me,multiple:Fe,muted:Fe,name:null,nonce:null,noModule:Fe,noValidate:Fe,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:Fe,optimum:me,pattern:null,ping:gt,placeholder:null,playsInline:Fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Fe,referrerPolicy:null,rel:gt,required:Fe,reversed:Fe,rows:me,rowSpan:me,sandbox:gt,scope:null,scoped:Fe,seamless:Fe,selected:Fe,shadowRootClonable:Fe,shadowRootDelegatesFocus:Fe,shadowRootMode:null,shape:null,size:me,sizes:null,slot:null,span:me,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:me,step:null,style:null,tabIndex:me,target:null,title:null,translate:null,type:null,typeMustMatch:Fe,useMap:null,value:zt,width:me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gt,axis:null,background:null,bgColor:null,border:me,borderColor:null,bottomMargin:me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Fe,declare:Fe,event:null,face:null,frame:null,frameBorder:null,hSpace:me,leftMargin:me,link:null,longDesc:null,lowSrc:null,marginHeight:me,marginWidth:me,noResize:Fe,noHref:Fe,noShade:Fe,noWrap:Fe,object:null,profile:null,prompt:null,rev:null,rightMargin:me,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Fe,disableRemotePlayback:Fe,prefix:null,property:null,results:me,security:null,unselectable:null},space:"html",transform:sL}),Ste=Ws({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:Vn,accentHeight:me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:me,amplitude:me,arabicForm:null,ascent:me,attributeName:null,attributeType:null,azimuth:me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:me,by:null,calcMode:null,capHeight:me,className:gt,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:me,diffuseConstant:me,direction:null,display:null,dur:null,divisor:me,dominantBaseline:null,download:Fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:me,enableBackground:null,end:null,event:null,exponent:me,externalResourcesRequired:null,fill:null,fillOpacity:me,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:Es,g2:Es,glyphName:Es,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:me,horizOriginX:me,horizOriginY:me,id:null,ideographic:me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:me,k:me,k1:me,k2:me,k3:me,k4:me,kernelMatrix:Vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:me,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:me,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:me,overlineThickness:me,paintOrder:null,panose1:null,path:null,pathLength:me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:me,pointsAtY:me,pointsAtZ:me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vn,rev:Vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vn,requiredFeatures:Vn,requiredFonts:Vn,requiredFormats:Vn,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:me,specularExponent:me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:me,strikethroughThickness:me,string:null,stroke:null,strokeDashArray:Vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:me,strokeOpacity:me,strokeWidth:null,style:null,surfaceScale:me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vn,tabIndex:me,tableValues:null,target:null,targetX:me,targetY:me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:me,underlineThickness:me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:me,values:null,vAlphabetic:me,vMathematical:me,vectorEffect:null,vHanging:me,vIdeographic:me,version:null,vertAdvY:me,vertOriginX:me,vertOriginY:me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:oL}),lL=Ws({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()}}),cL=Ws({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sL}),uL=Ws({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xte=/[A-Z]/g,dR=/-[a-z]/g,Ate=/^data[-\w.:]+$/i;function wte(e,t){const n=qv(t);let r=t,a=On;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ate.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(dR,Cte);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!dR.test(s)){let l=s.replace(xte,Tte);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Y0}return new a(r,t)}function Tte(e){return"-"+e.toLowerCase()}function Cte(e){return e.charAt(1).toUpperCase()}const Rte=iL([aL,Ete,lL,cL,uL],"html"),dL=iL([aL,Ste,lL,cL,uL],"svg"),fR={}.hasOwnProperty;function kte(e,t){const n=t||{};function r(a,...s){let l=r.invalid;const u=r.handlers;if(a&&fR.call(a,e)){const d=String(a[e]);l=fR.call(u,d)?u[d]:r.unknown}if(l)return l.call(this,a,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Nte=/["&'<>`]/g,Ite=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ote=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Dte=/[|\\{}()[\]^$+*?.]/g,hR=new WeakMap;function Lte(e,t){if(e=e.replace(t.subset?jte(t.subset):Nte,r),t.subset||t.escapeOnly)return e;return e.replace(Ite,n).replace(Ote,r);function n(a,s,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(a,s,l){return t.format(a.charCodeAt(0),l.charCodeAt(s+1),t)}}function jte(e){let t=hR.get(e);return t||(t=Pte(e),hR.set(e,t)),t}function Pte(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Dte,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Mte=/[\dA-Fa-f]/;function zte(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Mte.test(String.fromCharCode(t))?r:r+";"}const Bte=/\d/;function Vte(e,t,n){const r="&#"+String(e);return n&&t&&!Bte.test(String.fromCharCode(t))?r:r+";"}const Ute=["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"],Ey={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:"€"},Fte=["cent","copy","divide","gt","lt","not","para","times"],fL={}.hasOwnProperty,Yv={};let Qd;for(Qd in Ey)fL.call(Ey,Qd)&&(Yv[Ey[Qd]]=Qd);const $te=/[^\dA-Za-z]/;function Hte(e,t,n,r){const a=String.fromCharCode(e);if(fL.call(Yv,a)){const s=Yv[a],l="&"+s;return n&&Ute.includes(s)&&!Fte.includes(s)&&(!r||t&&t!==61&&$te.test(String.fromCharCode(t)))?l:l+";"}return""}function Gte(e,t,n){let r=zte(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Hte(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const s=Vte(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Ss(e,t){return Lte(e,Object.assign({format:Gte},t))}const Kte=/^>|^->|<!--|-->|--!>|<!-$/g,qte=[">"],Wte=["<",">"];function Zte(e,t,n,r){return r.settings.bogusComments?"<?"+Ss(e.value,Object.assign({},r.settings.characterReferences,{subset:qte}))+">":"<!--"+e.value.replace(Kte,a)+"-->";function a(s){return Ss(s,Object.assign({},r.settings.characterReferences,{subset:Wte}))}}function Yte(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function pR(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function Xte(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Qte(e){return e.join(" ").trim()}const Jte=/[ \t\n\f\r]/g;function X0(e){return typeof e=="object"?e.type==="text"?mR(e.value):!1:mR(e)}function mR(e){return e.replace(Jte,"")===""}const Wt=pL(1),hL=pL(-1),ene=[];function pL(e){return t;function t(n,r,a){const s=n?n.children:ene;let l=(r||0)+e,u=s[l];if(!a)for(;u&&X0(u);)l+=e,u=s[l];return u}}const tne={}.hasOwnProperty;function mL(e){return t;function t(n,r,a){return tne.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const Q0=mL({body:rne,caption:Sy,colgroup:Sy,dd:sne,dt:one,head:Sy,html:nne,li:ane,optgroup:lne,option:cne,p:ine,rp:gR,rt:gR,tbody:dne,td:yR,tfoot:fne,th:yR,thead:une,tr:hne});function Sy(e,t,n){const r=Wt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&X0(r.value.charAt(0)))}function nne(e,t,n){const r=Wt(n,t);return!r||r.type!=="comment"}function rne(e,t,n){const r=Wt(n,t);return!r||r.type!=="comment"}function ine(e,t,n){const r=Wt(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 ane(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function one(e,t,n){const r=Wt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function sne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function gR(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function lne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function cne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function une(e,t,n){const r=Wt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function dne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function fne(e,t,n){return!Wt(n,t)}function hne(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function yR(e,t,n){const r=Wt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const pne=mL({body:yne,colgroup:vne,head:gne,html:mne,tbody:bne});function mne(e){const t=Wt(e,-1);return!t||t.type!=="comment"}function gne(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 yne(e){const t=Wt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&X0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function vne(e,t,n){const r=hL(n,t),a=Wt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Q0(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function bne(e,t,n){const r=hL(n,t),a=Wt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Q0(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Jd={name:[[`
|
|
316
|
-
\f\r &/=>`.split(""),`
|
|
317
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
318
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
319
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
320
|
-
\f\r &>`.split(""),`\0
|
|
321
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
322
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
323
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function _ne(e,t,n,r){const a=r.schema,s=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=dL);const f=Ene(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!s||!pne(e,t,n))&&(u.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(p),!l&&(!s||!Q0(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function Ene(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const s=Sne(e,a,t[a]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function Sne(e,t,n){const r=wte(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let l=e.quote,u;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 d=Ss(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Jd.name[a][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Xte:Qte)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=Ss(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Jd.unquoted[a][s]}))),u!==n&&(e.settings.quoteSmart&&pR(n,l)>pR(n,e.alternative)&&(l=e.alternative),u=l+Ss(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?Jd.single:Jd.double)[a][s],attribute:!0}))+l),d+(u&&"="+u))}const xne=["<","&"];function gL(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ss(e.value,Object.assign({},r.settings.characterReferences,{subset:xne}))}function Ane(e,t,n,r){return r.settings.allowDangerousHtml?e.value:gL(e,t,n,r)}function wne(e,t,n,r){return r.all(e)}const Tne=kte("type",{invalid:Cne,unknown:Rne,handlers:{comment:Zte,doctype:Yte,element:_ne,raw:Ane,root:wne,text:gL}});function Cne(e){throw new Error("Expected node, not `"+e+"`")}function Rne(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const kne={},Nne={},Ine=[];function One(e,t){const n=t||kne,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Dne,all:Lne,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||bte,characterReferences:n.characterReferences||Nne,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?dL:Rte,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Dne(e,t,n){return Tne(e,t,n,this)}function Lne(e){const t=[],n=e&&e.children||Ine;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function ih(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[a]=s:a===r&&Object.assign(n,s);return n}function na(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function jne(e){return Array.isArray(e)?e:[e]}async function yL(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function J0(e){return!e||["plaintext","txt","text","plain"].includes(e)}function vL(e){return e==="ansi"||J0(e)}function e_(e){return e==="none"}function bL(e){return e_(e)}function _L(e,t){if(!t)return e;e.properties||={},e.properties.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 r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function $h(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];a.push([l,r]),r+=n[s].length,r+=n[s+1]?.length||0}return a}function Pne(e){const t=$h(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=a,l=0;for(const u of t){if(s<u.length)break;s-=u.length,l++}return{line:l,character:s}}function r(a,s){let l=0;for(let u=0;u<a;u++)l+=t[u].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}function Mne(e,t,n){const r=new Set;for(const s of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(s[1]);for(const s of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(s[1]);for(const s of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(s[1]);if(!n)return Array.from(r);const a=n.getBundledLanguages();return Array.from(r).filter(s=>s&&a[s])}const t_="light-dark()",zne=["color","background-color"];function Bne(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Vne(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const s=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,u)=>l-u);return s.length?Bne(a,s):a})):e}function Une(e,t,n,r,a="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(p=>ah(e.variants[p])),u=new Set(l.flatMap(p=>Object.keys(p))),d={},f=(p,g)=>{const y=g==="color"?"":g==="background-color"?"-bg":`-${g}`;return n+t[p]+(g==="color"?"":y)};return l.forEach((p,g)=>{for(const y of u){const _=p[y]||"inherit";if(g===0&&r&&zne.includes(y))if(r===t_&&l.length>1){const x=t.findIndex(S=>S==="light"),A=t.findIndex(S=>S==="dark");if(x===-1||A===-1)throw new Vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=l[x][y]||"inherit",w=l[A][y]||"inherit";d[y]=`light-dark(${C}, ${w})`,a==="css-vars"&&(d[f(g,y)]=_)}else d[y]=_;else a==="css-vars"&&(d[f(g,y)]=_)}}),s.htmlStyle=d,s}function ah(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&gn.Italic&&(t["font-style"]="italic"),e.fontStyle&gn.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&gn.Underline&&n.push("underline"),e.fontStyle&gn.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Xv(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const EL=new WeakMap;function Hh(e,t){EL.set(e,t)}function Hc(e){return EL.get(e)}class Zs{_stacks={};lang;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 Zs(Object.fromEntries(jne(n).map(r=>[r,Kv])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Fne(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Fne(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const s=a?.nameScopesList?.scopeName;s&&t.push(s),a.parent&&r(a.parent)}return r(e),t}function $ne(e,t){if(!(e instanceof Zs))throw new Vt("Invalid grammar state");return e.getInternalStack(t)}function Hne(){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 Vt(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const u=a.lines[l.line];if(u===void 0)throw new Vt(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);let d=l.character;if(d<0&&(d=u.length+d),d<0||d>u.length)throw new Vt(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${u.length}`);return{...l,character:d,offset:a.posToIndex(l.line,d)}}};const a=Pne(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));Gne(s),e.set(n.meta,{decorations:s,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const a=t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return Vne(n,a)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new Vt(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(p,g,y,_){const x=a[p];let A="",C=-1,w=-1;if(g===0&&(C=0),y===0&&(w=0),y===Number.POSITIVE_INFINITY&&(w=x.children.length),C===-1||w===-1)for(let T=0;T<x.children.length;T++)A+=SL(x.children[T]),C===-1&&A.length===g&&(C=T+1),w===-1&&A.length===y&&(w=T+1);if(C===-1)throw new Vt(`Failed to find start index for decoration ${JSON.stringify(_.start)}`);if(w===-1)throw new Vt(`Failed to find end index for decoration ${JSON.stringify(_.end)}`);const S=x.children.slice(C,w);if(!_.alwaysWrap&&S.length===x.children.length)u(x,_,"line");else if(!_.alwaysWrap&&S.length===1&&S[0].type==="element")u(S[0],_,"token");else{const T={type:"element",tagName:"span",properties:{},children:S};u(T,_,"wrapper"),x.children.splice(C,S.length,T)}}function l(p,g){a[p]=u(a[p],g,"line")}function u(p,g,y){const _=g.properties||{},x=g.transform||(A=>A);return p.tagName=g.tagName||"span",p.properties={...p.properties,..._,class:p.properties.class},g.properties?.class&&_L(p,g.properties.class),p=x(p,y)||p,p}const d=[],f=r.decorations.sort((p,g)=>g.start.offset-p.start.offset||p.end.offset-g.end.offset);for(const p of f){const{start:g,end:y}=p;if(g.line===y.line)s(g.line,g.character,y.character,p);else if(g.line<y.line){s(g.line,g.character,Number.POSITIVE_INFINITY,p);for(let _=g.line+1;_<y.line;_++)d.unshift(()=>l(_,p));s(y.line,0,y.character,p)}}d.forEach(p=>p())}}}function Gne(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Vt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],s=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,u=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(s||l||u||d){if(s&&l||u&&d||u&&n.start.offset===n.end.offset||l&&a.start.offset===a.end.offset)continue;throw new Vt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function SL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(SL).join(""):""}const Kne=[Hne()];function oh(e){const t=qne(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Kne]}function qne(e){const t=[],n=[],r=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:r.push(a)}return{pre:t,post:n,normal:r}}var Qa=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],xy={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Wne(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function vR(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Zne(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)xy[r]&&t.push({type:"setDecoration",value:xy[r]});else if(r<=29){const a=xy[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Qa[r-30]}});else if(r===38){const a=vR(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Qa[r-40]}});else if(r===48){const a=vR(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Qa[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Qa[r-100+8]}})}return t}function Yne(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let s=0;do{const l=Wne(r,s),u=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(u.length>0&&a.push({value:u,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=Zne(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}s=l.position}while(s<r.length);return a}}}var Xne={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 Qne(e=Xne){function t(u){return e[u]}function n(u){return`#${u.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<Qa.length;f++)r.push(t(Qa[f]));let u=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let p=0;p<6;p++)for(let g=0;g<6;g++)r.push(n([u[f],u[p],u[g]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function s(u){return a()[u]}function l(u){switch(u.type){case"named":return t(u.name);case"rgb":return n(u.rgb);case"table":return s(u.index)}}return{value:l}}function Jne(e,t,n){const r=ih(e,n),a=$h(t),s=Qne(Object.fromEntries(Qa.map(u=>[u,e.colors?.[`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`]]))),l=Yne();return a.map(u=>l.parse(u[0]).map(d=>{let f,p;d.decorations.has("reverse")?(f=d.background?s.value(d.background):e.bg,p=d.foreground?s.value(d.foreground):e.fg):(f=d.foreground?s.value(d.foreground):e.fg,p=d.background?s.value(d.background):void 0),f=na(f,r),p=na(p,r),d.decorations.has("dim")&&(f=ere(f));let g=gn.None;return d.decorations.has("bold")&&(g|=gn.Bold),d.decorations.has("italic")&&(g|=gn.Italic),d.decorations.has("underline")&&(g|=gn.Underline),d.decorations.has("strikethrough")&&(g|=gn.Strikethrough),{content:d.value,offset:u[1],color:f,bgColor:p,fontStyle:g}}))}function ere(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 n_(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(J0(r)||e_(a))return $h(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:s,colorMap:l}=e.setTheme(a);if(r==="ansi")return Jne(s,t,n);const u=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==u.name)throw new Vt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Vt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return nre(t,u,s,l,n)}function tre(...e){if(e.length===2)return Hc(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:s=t.getLoadedThemes()[0]}=r;if(J0(a)||e_(s))throw new Vt("Plain language does not have grammar state");if(a==="ansi")throw new Vt("ANSI language does not have grammar state");const{theme:l,colorMap:u}=t.setTheme(s),d=t.getLanguage(a);return new Zs(sh(n,d,l,u,r).stateStack,d.name,l.name)}function nre(e,t,n,r,a){const s=sh(e,t,n,r,a),l=new Zs(sh(e,t,n,r,a).stateStack,t.name,n.name);return Hh(s.tokens,l),s.tokens}function sh(e,t,n,r,a){const s=ih(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:u=500}=a,d=$h(e);let f=a.grammarState?$ne(a.grammarState,n.name)??Kv:a.grammarContextCode!=null?sh(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Kv,p=[];const g=[];for(let y=0,_=d.length;y<_;y++){const[x,A]=d[y];if(x===""){p=[],g.push([]);continue}if(l>0&&x.length>=l){p=[],g.push([{content:x,offset:A,color:"",fontStyle:0}]);continue}let C,w,S;a.includeExplanation&&(C=t.tokenizeLine(x,f,u),w=C.tokens,S=0);const T=t.tokenizeLine2(x,f,u),N=T.tokens.length/2;for(let R=0;R<N;R++){const O=T.tokens[2*R],D=R+1<N?T.tokens[2*R+2]:x.length;if(O===D)continue;const j=T.tokens[2*R+1],H=na(r[Is.getForeground(j)],s),Z=Is.getFontStyle(j),q={content:x.substring(O,D),offset:A+O,color:H,fontStyle:Z};if(a.includeExplanation){const te=[];if(a.includeExplanation!=="scopeName")for(const W of n.settings){let ae;switch(typeof W.scope){case"string":ae=W.scope.split(/,/).map(M=>M.trim());break;case"object":ae=W.scope;break;default:continue}te.push({settings:W,selectors:ae.map(M=>M.split(/ /))})}q.explanation=[];let ce=0;for(;O+ce<D;){const W=w[S],ae=x.substring(W.startIndex,W.endIndex);ce+=ae.length,q.explanation.push({content:ae,scopes:a.includeExplanation==="scopeName"?rre(W.scopes):ire(te,W.scopes)}),S+=1}}p.push(q)}g.push(p),p=[],f=T.ruleStack}return{tokens:g,stateStack:f}}function rre(e){return e.map(t=>({scopeName:t}))}function ire(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const s=t[r];n[r]={scopeName:s,themeMatches:ore(e,s,t.slice(0,r))}}return n}function bR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function are(e,t,n){if(!bR(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)bR(e[r],n[a])&&(r-=1),a-=1;return r===-1}function ore(e,t,n){const r=[];for(const{selectors:a,settings:s}of e)for(const l of a)if(are(l,t,n)){r.push(s);break}return r}function xL(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=n_(e,t,{...n,theme:d.theme}),p=Hc(f),g=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:g}}),s=sre(...a.map(d=>d.tokens)),l=s[0].map((d,f)=>d.map((p,g)=>{const y={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=p.explanation),s.forEach((_,x)=>{const{content:A,explanation:C,offset:w,...S}=_[f][g];y.variants[r[x].color]=S}),y})),u=a[0].state?new Zs(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return u&&Hh(l,u),l}function sre(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),s=t.map(()=>[]);t.forEach((d,f)=>d.push(s[f]));const l=a.map(()=>0),u=a.map(d=>d[0]);for(;u.every(d=>d);){const d=Math.min(...u.map(f=>f.content.length));for(let f=0;f<n;f++){const p=u[f];p.content.length===d?(s[f].push(p),l[f]+=1,u[f]=a[f][l[f]]):(s[f].push({...p,content:p.content.slice(0,d)}),u[f]={...p,content:p.content.slice(d),offset:p.offset+d})}}}return t}function lh(e,t,n){let r,a,s,l,u,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-",colorsRendering:g="css-vars"}=n,y=Object.entries(n.themes).filter(w=>w[1]).map(w=>({color:w[0],theme:w[1]})).sort((w,S)=>w.color===f?-1:S.color===f?1:0);if(y.length===0)throw new Vt("`themes` option must not be empty");const _=xL(e,t,n);if(d=Hc(_),f&&t_!==f&&!y.find(w=>w.color===f))throw new Vt(`\`themes\` option must contain the defaultColor key \`${f}\``);const x=y.map(w=>e.getTheme(w.theme)),A=y.map(w=>w.color);s=_.map(w=>w.map(S=>Une(S,A,p,f,g))),d&&Hh(s,d);const C=y.map(w=>ih(w.theme,n));a=_R(y,x,C,p,f,"fg",g),r=_R(y,x,C,p,f,"bg",g),l=`shiki-themes ${x.map(w=>w.name).join(" ")}`,u=f?void 0:[a,r].join(";")}else if("theme"in n){const f=ih(n.theme,n);s=n_(e,t,n);const p=e.getTheme(n.theme);r=na(p.bg,f),a=na(p.fg,f),l=p.name,d=Hc(s)}else throw new Vt("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:a,bg:r,themeName:l,rootStyle:u,grammarState:d}}function _R(e,t,n,r,a,s,l){return e.map((u,d)=>{const f=na(t[d][s],n[d])||"inherit",p=`${r+u.color}${s==="bg"?"-bg":""}:${f}`;if(d===0&&a){if(a===t_&&e.length>1){const g=e.findIndex(A=>A.color==="light"),y=e.findIndex(A=>A.color==="dark");if(g===-1||y===-1)throw new Vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=na(t[g][s],n[g])||"inherit",x=na(t[y][s],n[y])||"inherit";return`light-dark(${_}, ${x});${p}`}return f}return l==="css-vars"?p:null}).filter(u=>!!u).join(";")}function ch(e,t,n,r={meta:{},options:n,codeToHast:(a,s)=>ch(e,a,s),codeToTokens:(a,s)=>lh(e,a,s)}){let a=t;for(const x of oh(n))a=x.preprocess?.call(r,a,n)||a;let{tokens:s,fg:l,bg:u,themeName:d,rootStyle:f,grammarState:p}=lh(e,a,n);const{mergeWhitespaces:g=!0,mergeSameStyleTokens:y=!1}=n;g===!0?s=cre(s):g==="never"&&(s=ure(s)),y&&(s=dre(s));const _={...r,get source(){return a}};for(const x of oh(n))s=x.tokens?.call(_,s)||s;return lre(s,{...n,fg:l,bg:u,themeName:d,rootStyle:f},_,p)}function lre(e,t,n,r=Hc(e)){const a=oh(t),s=[],l={type:"root",children:[]},{structure:u="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([x])=>!x.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:s};const g=[],y={...n,structure:u,addClassToHast:_L,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return p},get lines(){return g}};if(e.forEach((x,A)=>{A&&(u==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&s.push({type:"text",value:`
|
|
324
|
-
`}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},w=0;for(const S of x){let T={type:"element",tagName:"span",properties:{...S.htmlAttrs},children:[{type:"text",value:S.content}]};const N=Xv(S.htmlStyle||ah(S));N&&(T.properties.style=N);for(const R of a)T=R?.span?.call(y,T,A+1,w,C,S)||T;u==="inline"?l.children.push(T):u==="classic"&&C.children.push(T),w+=S.content.length}if(u==="classic"){for(const S of a)C=S?.line?.call(y,C,A+1)||C;g.push(C),s.push(C)}}),u==="classic"){for(const x of a)p=x?.code?.call(y,p)||p;f.children.push(p);for(const x of a)f=x?.pre?.call(y,f)||f;l.children.push(f)}let _=l;for(const x of a)_=x?.root?.call(y,_)||_;return r&&Hh(_,r),_}function cre(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((s,l)=>{const d=!(s.fontStyle&&(s.fontStyle&gn.Underline||s.fontStyle&gn.Strikethrough));d&&s.content.match(/^\s+$/)&&t[l+1]?(a||(a=s.offset),r+=s.content):r?(d?n.push({...s,offset:a,content:r+s.content}):n.push({content:r,offset:a},s),a=0,r=""):n.push(s)}),n})}function ure(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[,a,s,l]=r;if(!a&&!l)return n;const u=[{...n,offset:n.offset+a.length,content:s}];return a&&u.unshift({content:a,offset:n.offset}),l&&u.push({content:l,offset:n.offset+a.length+s.length}),u}))}function dre(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n[n.length-1],s=Xv(a.htmlStyle||ah(a)),l=Xv(r.htmlStyle||ah(r)),u=a.fontStyle&&(a.fontStyle&gn.Underline||a.fontStyle&gn.Strikethrough),d=r.fontStyle&&(r.fontStyle&gn.Underline||r.fontStyle&gn.Strikethrough);!u&&!d&&s===l?a.content+=r.content:n.push({...r})}return n})}const fre=One;function hre(e,t,n){const r={meta:{},options:n,codeToHast:(s,l)=>ch(e,s,l),codeToTokens:(s,l)=>lh(e,s,l)};let a=fre(ch(e,t,n,r));for(const s of oh(n))a=s.postprocess?.call(r,a,n)||a;return a}const ER={light:"#333333",dark:"#bbbbbb"},SR={light:"#fffffe",dark:"#1e1e1e"},xR="__shiki_resolved";function r_(e){if(e?.[xR])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const u=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;u?.settings?.foreground&&(r=u.settings.foreground),u?.settings?.background&&(n=u.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?ER.light:ER.dark),n||(n=t.type==="light"?SR.light:SR.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 a=0;const s=new Map;function l(u){if(s.has(u))return s.get(u);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(u):(s.set(u,d),d)}t.settings=t.settings.map(u=>{const d=u.settings?.foreground&&!u.settings.foreground.startsWith("#"),f=u.settings?.background&&!u.settings.background.startsWith("#");if(!d&&!f)return u;const p={...u,settings:{...u.settings}};if(d){const g=l(u.settings.foreground);t.colorReplacements[g]=u.settings.foreground,p.settings.foreground=g}if(f){const g=l(u.settings.background);t.colorReplacements[g]=u.settings.background,p.settings.background=g}return p});for(const u of Object.keys(t.colors||{}))if((u==="editor.foreground"||u==="editor.background"||u.startsWith("terminal.ansi"))&&!t.colors[u]?.startsWith("#")){const d=l(t.colors[u]);t.colorReplacements[d]=t.colors[u],t.colors[u]=d}return Object.defineProperty(t,xR,{enumerable:!1,writable:!1,value:!0}),t}async function AL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!vL(t)).map(async t=>await yL(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function wL(e){return(await Promise.all(e.map(async n=>bL(n)?null:r_(await yL(n))))).filter(n=>!!n)}let pre=3;function mre(e,t=3){t>pre||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let gs=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class gre extends vte{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=r_(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Jf.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new gs(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,s])=>!s);if(r.length){const a=n.filter(([s,l])=>l&&l.embeddedLangs?.some(u=>r.map(([d])=>d).includes(u))).filter(s=>!r.includes(s));throw new gs(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${a.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[a,s]of n)this._resolver.addLanguage(s);for(const[a,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class yre{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){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 a=1;a<=n.length;a++){const s=n.slice(0,a).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let uc=0;function vre(e){uc+=1,e.warnings!==!1&&uc>=10&&uc%10===0&&console.warn(`[Shiki] ${uc} 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 gs("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(r_),a=new yre(e.engine,n),s=new gre(a,r,n,e.langAlias);let l;function u(S){C();const T=s.getGrammar(typeof S=="string"?S:S.name);if(!T)throw new gs(`Language \`${S}\` not found, you may need to load it first`);return T}function d(S){if(S==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const T=s.getTheme(S);if(!T)throw new gs(`Theme \`${S}\` not found, you may need to load it first`);return T}function f(S){C();const T=d(S);l!==S&&(s.setTheme(T),l=S);const N=s.getColorMap();return{theme:T,colorMap:N}}function p(){return C(),s.getLoadedThemes()}function g(){return C(),s.getLoadedLanguages()}function y(...S){C(),s.loadLanguages(S.flat(1))}async function _(...S){return y(await AL(S))}function x(...S){C();for(const T of S.flat(1))s.loadTheme(T)}async function A(...S){return C(),x(await wL(S))}function C(){if(t)throw new gs("Shiki instance has been disposed")}function w(){t||(t=!0,s.dispose(),uc-=1)}return{setTheme:f,getTheme:d,getLanguage:u,getLoadedThemes:p,getLoadedLanguages:g,loadLanguage:_,loadLanguageSync:y,loadTheme:A,loadThemeSync:x,dispose:w,[Symbol.dispose]:w}}async function bre(e){e.engine||mre("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([wL(e.themes||[]),AL(e.langs||[]),e.engine]);return vre({...e,themes:t,langs:n,engine:r})}async function _re(e){const t=await bre(e);return{getLastGrammarState:(...n)=>tre(t,...n),codeToTokensBase:(n,r)=>n_(t,n,r),codeToTokensWithThemes:(n,r)=>xL(t,n,r),codeToTokens:(n,r)=>lh(t,n,r),codeToHast:(n,r)=>ch(t,n,r),codeToHtml:(n,r)=>hre(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Ere(e){const t=e.langs,n=e.themes,r=e.engine;async function a(s){function l(g){if(typeof g=="string"){if(vL(g))return[];g=s.langAlias?.[g]||g;const y=t[g];if(!y)throw new Vt(`Language \`${g}\` is not included in this bundle. You may want to load it from external source.`);return y}return g}function u(g){if(bL(g))return"none";if(typeof g=="string"){const y=n[g];if(!y)throw new Vt(`Theme \`${g}\` is not included in this bundle. You may want to load it from external source.`);return y}return g}const d=(s.themes??[]).map(g=>u(g)),f=(s.langs??[]).map(g=>l(g)),p=await _re({engine:s.engine??r(),...s,themes:d,langs:f});return{...p,loadLanguage(...g){return p.loadLanguage(...g.map(l))},loadTheme(...g){return p.loadTheme(...g.map(u))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}function Sre(e){let t;async function n(r={}){if(t){const a=await t;return await Promise.all([a.loadTheme(...r.themes||[]),a.loadLanguage(...r.langs||[])]),a}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function xre(e,t){const n=Sre(e);async function r(a,s){const l=await n({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),u=await t?.guessEmbeddedLanguages?.(a,s.lang,l);return u&&await l.loadLanguage(...u),l}return{getSingletonHighlighter(a){return n(a)},async codeToHtml(a,s){return(await r(a,s)).codeToHtml(a,s)},async codeToHast(a,s){return(await r(a,s)).codeToHast(a,s)},async codeToTokens(a,s){return(await r(a,s)).codeToTokens(a,s)},async codeToTokensBase(a,s){return(await r(a,s)).codeToTokensBase(a,s)},async codeToTokensWithThemes(a,s){return(await r(a,s)).codeToTokensWithThemes(a,s)},async getLastGrammarState(a,s){return(await n({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(a,s)}}}const TL=[{id:"abap",name:"ABAP",import:(()=>L(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>L(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>L(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>L(()=>import("./angular-html-Bbf3ZyxA.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>L(()=>import("./angular-ts-C26w9mnW.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>L(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>L(()=>import("./apex-C7Pw0Ztw.js"),[]))},{id:"apl",name:"APL",import:(()=>L(()=>import("./apl-e980N3t4.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>L(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>L(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>L(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>L(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>L(()=>import("./astro-CjFzhNUq.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>L(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>L(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>L(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>L(()=>import("./beancount-BoKiGodi.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>L(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>L(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>L(()=>import("./bicep-6nHXG8SA.js"),[]))},{id:"blade",name:"Blade",import:(()=>L(()=>import("./blade-B2ZbN0F_.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>L(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>L(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>L(()=>import("./cadence-D2CYqzqI.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>L(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>L(()=>import("./clarity-CHh-QcGE.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>L(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>L(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>L(()=>import("./cobol-DwXMNnPA.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>L(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>L(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>L(()=>import("./coffee-JUOWOZUj.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>L(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>L(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>L(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>L(()=>import("./crystal-DVs0tusA.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>L(()=>import("./csharp-CHadp7IV.js"),[]))},{id:"css",name:"CSS",import:(()=>L(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>L(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>L(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>L(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>L(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>L(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>L(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>L(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>L(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>L(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>L(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>L(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>L(()=>import("./edge-CKszZCnI.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>L(()=>import("./elixir-Cc7HHYVZ.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>L(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>L(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>L(()=>import("./erb-C7QrGF_t.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>L(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>L(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>L(()=>import("./fish-Bl2oy6fF.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>L(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>L(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>L(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>L(()=>import("./fsharp-CufqaIoK.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>L(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>L(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>L(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>L(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>L(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>L(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>L(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>L(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>L(()=>import("./glimmer-js-Dz9X99Cm.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>L(()=>import("./glimmer-ts-aQ3p29eY.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>L(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>L(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>L(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>L(()=>import("./graphql-Caa12_AY.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>L(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>L(()=>import("./hack-D_o3P2UH.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>L(()=>import("./haml-AZXGPtNI.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>L(()=>import("./handlebars-YebKLiTq.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>L(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>L(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>L(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>L(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>L(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>L(()=>import("./html-B8pBdPMQ.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>L(()=>import("./html-derivative-ZQ8onl8Z.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>L(()=>import("./http-C38VWM-o.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hxml",name:"HXML",import:(()=>L(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([55,56])))},{id:"hy",name:"Hy",import:(()=>L(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>L(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>L(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>L(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js"],import:(()=>L(()=>import("./javascript-BMMyXqK5.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>L(()=>import("./jinja-BJmZiE_F.js"),__vite__mapDeps([57,1,2,3])))},{id:"jison",name:"Jison",import:(()=>L(()=>import("./jison-BCRtk9Os.js"),__vite__mapDeps([58,2])))},{id:"json",name:"JSON",import:(()=>L(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>L(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>L(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>L(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>L(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>L(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>L(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>L(()=>import("./julia-353pQ8cl.js"),__vite__mapDeps([59,23,24,25,26,16,20,2,60])))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>L(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>L(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>L(()=>import("./latex-CPEt12BK.js"),__vite__mapDeps([61,62,60])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>L(()=>import("./lean-qliWkHmV.js"),[]))},{id:"less",name:"Less",import:(()=>L(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>L(()=>import("./liquid-DFk8BABL.js"),__vite__mapDeps([63,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>L(()=>import("./llvm-D32k8WzR.js"),[]))},{id:"log",name:"Log file",import:(()=>L(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>L(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>L(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>L(()=>import("./luau-irsrSlf-.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>L(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>L(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>L(()=>import("./marko-BM38lbjI.js"),__vite__mapDeps([64,3,65,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>L(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>L(()=>import("./mdc-DvHMhoCT.js"),__vite__mapDeps([66,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>L(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>L(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>L(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>L(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>L(()=>import("./move-BkPM1oy1.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>L(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>L(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>L(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([67,37,26])))},{id:"nim",name:"Nim",import:(()=>L(()=>import("./nim-BZI_8mFl.js"),__vite__mapDeps([68,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>L(()=>import("./nix-BepWV7mh.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>L(()=>import("./nushell-I3RK9BU8.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>L(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>L(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>L(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>L(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>L(()=>import("./perl-g0D2lH3a.js"),__vite__mapDeps([69,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>L(()=>import("./php-Gk5eUrPQ.js"),__vite__mapDeps([70,1,2,3,7,8,16,9])))},{id:"plsql",name:"PL/SQL",import:(()=>L(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>L(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>L(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>L(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>L(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>L(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>L(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>L(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>L(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>L(()=>import("./pug-Ch9lOoSd.js"),__vite__mapDeps([71,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>L(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>L(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>L(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>L(()=>import("./qml-CHzV51_b.js"),__vite__mapDeps([72,2])))},{id:"qmldir",name:"QML Directory",import:(()=>L(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>L(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>L(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>L(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>L(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>L(()=>import("./razor-CNXmhs1n.js"),__vite__mapDeps([73,1,2,3,74])))},{id:"reg",name:"Windows Registry Script",import:(()=>L(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>L(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>L(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>L(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>L(()=>import("./rst-DKdxLoXm.js"),__vite__mapDeps([75,15,1,2,3,23,24,25,26,16,20,28,38,76,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>L(()=>import("./ruby-W1VRIm2Q.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>L(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>L(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([77,16])))},{id:"sass",name:"Sass",import:(()=>L(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>L(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>L(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>L(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>L(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>L(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([78,79])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>L(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>L(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([80,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>L(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>L(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>L(()=>import("./soy-B_7ge1HE.js"),__vite__mapDeps([81,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>L(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([82,83])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>L(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>L(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>L(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>L(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([84,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>L(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>L(()=>import("./svelte-Dt5jNKfG.js"),__vite__mapDeps([85,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>L(()=>import("./swift-Ccdh7vHB.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>L(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>L(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>L(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>L(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>L(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>L(()=>import("./templ-0CNLO7il.js"),__vite__mapDeps([86,87,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>L(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>L(()=>import("./tex-B5i3u9ba.js"),__vite__mapDeps([62,60])))},{id:"toml",name:"TOML",import:(()=>L(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>L(()=>import("./ts-tags-B9XN6NYQ.js"),__vite__mapDeps([88,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>L(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>L(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>L(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>L(()=>import("./twig-B_ULif71.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:(()=>L(()=>import("./typescript-DlfHMoPT.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>L(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>L(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>L(()=>import("./v-DljmTZ5-.js"),[]))},{id:"vala",name:"Vala",import:(()=>L(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>L(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>L(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>L(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>L(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>L(()=>import("./vue-BEetzCYT.js"),__vite__mapDeps([90,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>L(()=>import("./vue-html-BsD9fJC1.js"),__vite__mapDeps([91,90,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>L(()=>import("./vue-vine-CCdTUzyM.js"),__vite__mapDeps([92,3,5,65,93,12,90,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>L(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>L(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>L(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>L(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>L(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>L(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>L(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>L(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>L(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([94,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>L(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>L(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>L(()=>import("./zig-VOosw3JB.js"),[]))}],Are=Object.fromEntries(TL.map(e=>[e.id,e.import])),wre=Object.fromEntries(TL.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Tre={...Are,...wre},Cre=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>L(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>L(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>L(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>L(()=>import("./catppuccin-frappe-BBxmzUt6.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>L(()=>import("./catppuccin-latte-Jep7L2Wt.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>L(()=>import("./catppuccin-macchiato-CIUZ1G5V.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>L(()=>import("./catppuccin-mocha-NBseiqgx.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>L(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>L(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>L(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>L(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>L(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>L(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>L(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>L(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>L(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>L(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>L(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>L(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>L(()=>import("./gruvbox-dark-hard-D1uDOp7C.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>L(()=>import("./gruvbox-dark-medium-DkhsQLT2.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>L(()=>import("./gruvbox-dark-soft-CcyOm34o.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>L(()=>import("./gruvbox-light-hard-DKzvysjW.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>L(()=>import("./gruvbox-light-medium-DPcUKYIF.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>L(()=>import("./gruvbox-light-soft-CGqH5EJj.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>L(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>L(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>L(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>L(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>L(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>L(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>L(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>L(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>L(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>L(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>L(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>L(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>L(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>L(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>L(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>L(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>L(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>L(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>L(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>L(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>L(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>L(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>L(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>L(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>L(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>L(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>L(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>L(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>L(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>L(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>L(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>L(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>L(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>L(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>L(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Rre=Object.fromEntries(Cre.map(e=>[e.id,e.import]));class i_ extends Error{constructor(t){super(t),this.name="ShikiError"}}function kre(){return 2147483648}function Nre(){return typeof performance<"u"?performance.now():Date.now()}const Ire=(e,t)=>e+(t-e%t)%t;async function Ore(e){let t,n;const r={};function a(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function s(_,x,A){r.HEAPU8.copyWithin(_,x,x+A)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function u(_){const x=r.HEAPU8.length;_=_>>>0;const A=kre();if(_>A)return!1;for(let C=1;C<=4;C*=2){let w=x*(1+.2/C);w=Math.min(w,_+100663296);const S=Math.min(A,Ire(Math.max(_,w),65536));if(l(S))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(_,x,A=1024){const C=x+A;let w=x;for(;_[w]&&!(w>=C);)++w;if(w-x>16&&_.buffer&&d)return d.decode(_.subarray(x,w));let S="";for(;x<w;){let T=_[x++];if(!(T&128)){S+=String.fromCharCode(T);continue}const N=_[x++]&63;if((T&224)===192){S+=String.fromCharCode((T&31)<<6|N);continue}const R=_[x++]&63;if((T&240)===224?T=(T&15)<<12|N<<6|R:T=(T&7)<<18|N<<12|R<<6|_[x++]&63,T<65536)S+=String.fromCharCode(T);else{const O=T-65536;S+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return S}function p(_,x){return _?f(r.HEAPU8,_,x):""}const g={emscripten_get_now:Nre,emscripten_memcpy_big:s,emscripten_resize_heap:u,fd_write:()=>0};async function y(){const x=await e({env:g,wasi_snapshot_preview1:g});t=x.memory,a(t.buffer),Object.assign(r,x),r.UTF8ToString=p}return await y(),r}var Dre=Object.defineProperty,Lre=(e,t,n)=>t in e?Dre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kt=(e,t,n)=>Lre(e,typeof t!="symbol"?t+"":t,n);let en=null;function jre(e){throw new i_(e.UTF8ToString(e.getLastOnigError()))}class Gh{constructor(t){Kt(this,"utf16Length"),Kt(this,"utf8Length"),Kt(this,"utf16Value"),Kt(this,"utf8Value"),Kt(this,"utf16OffsetToUtf8"),Kt(this,"utf8OffsetToUtf16");const n=t.length,r=Gh._utf8ByteLength(t),a=r!==n,s=a?new Uint32Array(n+1):null;a&&(s[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const u=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let g=p,y=!1;if(p>=55296&&p<=56319&&f+1<n){const _=t.charCodeAt(f+1);_>=56320&&_<=57343&&(g=(p-55296<<10)+65536|_-56320,y=!0)}a&&(s[f]=d,y&&(s[f+1]=d),g<=127?l[d+0]=f:g<=2047?(l[d+0]=f,l[d+1]=f):g<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),g<=127?u[d++]=g:g<=2047?(u[d++]=192|(g&1984)>>>6,u[d++]=128|(g&63)>>>0):g<=65535?(u[d++]=224|(g&61440)>>>12,u[d++]=128|(g&4032)>>>6,u[d++]=128|(g&63)>>>0):(u[d++]=240|(g&1835008)>>>18,u[d++]=128|(g&258048)>>>12,u[d++]=128|(g&4032)>>>6,u[d++]=128|(g&63)>>>0),y&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=u,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const s=t.charCodeAt(r);let l=s,u=!1;if(s>=55296&&s<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(s-55296<<10)+65536|d-56320,u=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,u&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Kh=class Dr{constructor(t){if(Kt(this,"id",++Dr.LAST_ID),Kt(this,"_onigBinding"),Kt(this,"content"),Kt(this,"utf16Length"),Kt(this,"utf8Length"),Kt(this,"utf16OffsetToUtf8"),Kt(this,"utf8OffsetToUtf16"),Kt(this,"ptr"),!en)throw new i_("Must invoke loadWasm first.");this._onigBinding=en,this.content=t;const n=new Gh(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Dr._sharedPtrInUse?(Dr._sharedPtr||(Dr._sharedPtr=en.omalloc(1e4)),Dr._sharedPtrInUse=!0,en.HEAPU8.set(n.utf8Value,Dr._sharedPtr),this.ptr=Dr._sharedPtr):this.ptr=n.createString(en)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Dr._sharedPtr?Dr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Kt(Kh,"LAST_ID",0);Kt(Kh,"_sharedPtr",0);Kt(Kh,"_sharedPtrInUse",!1);let CL=Kh;class Pre{constructor(t){if(Kt(this,"_onigBinding"),Kt(this,"_ptr"),!en)throw new i_("Must invoke loadWasm first.");const n=[],r=[];for(let u=0,d=t.length;u<d;u++){const f=new Gh(t[u]);n[u]=f.createString(en),r[u]=f.utf8Length}const a=en.omalloc(4*t.length);en.HEAPU32.set(n,a/4);const s=en.omalloc(4*t.length);en.HEAPU32.set(r,s/4);const l=en.createOnigScanner(a,s,t.length);for(let u=0,d=t.length;u<d;u++)en.ofree(n[u]);en.ofree(s),en.ofree(a),l===0&&jre(en),this._onigBinding=en,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new CL(t);const s=this._findNextMatchSync(t,n,!1,a);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const s=this._onigBinding,l=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const u=s.HEAPU32;let d=l/4;const f=u[d++],p=u[d++],g=[];for(let y=0;y<p;y++){const _=t.convertUtf8OffsetToUtf16(u[d++]),x=t.convertUtf8OffsetToUtf16(u[d++]);g[y]={start:_,end:x,length:x-_}}return{index:f,captureIndices:g}}}function Mre(e){return typeof e.instantiator=="function"}function zre(e){return typeof e.default=="function"}function Bre(e){return typeof e.data<"u"}function Vre(e){return typeof Response<"u"&&e instanceof Response}function Ure(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let ef;function Fre(e){if(ef)return ef;async function t(){en=await Ore(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Mre(r)?r=await r.instantiator(n):zre(r)?r=await r.default(n):(Bre(r)&&(r=r.data),Vre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await $re(r)(n):r=await Hre(r)(n):Ure(r)?r=await Ay(r)(n):r instanceof WebAssembly.Module?r=await Ay(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Ay(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ef=t(),ef}function Ay(e){return t=>WebAssembly.instantiate(e,t)}function $re(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Hre(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Gre(e){return e&&await Fre(e),{createScanner(t){return new Pre(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new CL(t)}}}const Kre=Ere({langs:Tre,themes:Rre,engine:()=>Gre(L(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:qre}=xre(Kre,{guessEmbeddedLanguages:Mne}),Wre=({children:e})=>v.jsx("div",{children:v.jsx("pre",{children:v.jsx("code",{children:e.split(`
|
|
325
|
-
`).map((t,n)=>v.jsx("span",{className:"line block w-full",children:t},n))})})}),Zre=(({children:e,lang:t,isDarkMode:n,onChange:r,...a})=>{const[s,l]=E.useState(null),u=E.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[See(),Aee(),Nee(),xee(),yee(),bee()]}),[t,n]);return E.useEffect(()=>{qre(e,u).then(d=>l(d)).catch(d=>console.error(d))},[u,e]),s?v.jsx("div",{dangerouslySetInnerHTML:{__html:s},...a,style:{backgroundColor:"transparent",minWidth:0,overflow:"auto"}}):v.jsx(Wre,{children:e})}),Yre=({className:e,onChange:t,isEditable:n,...r})=>v.jsx(Zre,{className:_e("flex w-full",e),contentEditable:n,onInput:a=>t?.(a.currentTarget.textContent??""),...r}),RL=E.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),qh=()=>E.useContext(RL),Xre=({children:e})=>{const[t,n]=Ac("packageManager","npm"),[r,a]=Ac("codeFormat","typescript"),[s,l]=Ac("contentDeclarationFormat","typescript");return v.jsx(RL,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:a,contentDeclarationFormat:s,setContentDeclarationFormat:l},children:e})},Qre=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:a}=qh(),s=typeof t.packageManager>"u",l=n===t.packageManager,u=typeof t.codeFormat>"u",d=r===t.codeFormat,f=typeof t.contentDeclarationFormat>"u",p=a===t.contentDeclarationFormat;return(s||l)&&(u||d)&&(f||p)?e:v.jsx(v.Fragment,{})},Jre=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=qh();return v.jsxs(Re,{value:e,onValueChange:r=>{t(r),n(r)},children:[v.jsx(Re.Trigger,{children:v.jsx(Re.Value,{placeholder:"Code Format"})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:"typescript",children:"TypeScript"}),v.jsx(Re.Item,{value:"esm",children:"ESM"}),v.jsx(Re.Item,{value:"commonjs",children:"CommonJS"})]})]})},eie=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=qh();return v.jsxs(Re,{value:e,onValueChange:t,children:[v.jsx(Re.Trigger,{children:v.jsx(Re.Value,{placeholder:"Dictionary Format"})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:"typescript",children:"TypeScript"}),v.jsx(Re.Item,{value:"commonjs",children:"CommonJS"}),v.jsx(Re.Item,{value:"esm",children:"ESM"}),v.jsx(Re.Item,{value:"json",children:"JSON"})]})]})},Qv=({children:e,className:t,identifier:n,...r})=>v.jsx("div",{className:_e("group/popover relative flex cursor-pointer",t),"aria-label":`Popover ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e});var kL=(e=>(e.START="start",e.END="end",e))(kL||{});const tie=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:a="start",yAlign:s="bellow",identifier:l,className:u,displayArrow:d=!0,...f})=>v.jsx(Ar,{transparency:"sm","aria-hidden":t,"aria-labelledby":`unrollable-panel-button-${l}`,id:`unrollable-panel-${l}`,className:_e("absolute z-[1000] min-w-full ring-neutral ring-1 rounded-md",a==="start"&&"left-0",a==="end"&&"right-0",s==="bellow"&&"top-[calc(100%+1rem)]",s==="above"&&"bottom-[calc(100%+1rem)]",d&&'before:absolute before:z-[999] before:content-[""] before:w-0 before:h-0',d&&a==="start"&&"before:left-2",d&&a==="end"&&"before:right-2",d&&s==="bellow"&&"before:-top-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral",d&&s==="above"&&"before:-bottom-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-t-[10px] before:border-t-neutral","overflow-x-visible transition-all duration-400 ease-in-out opacity-0",t!==!1?"invisible":"delay-800 visible opacity-100",n&&"group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800",r&&"group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800",u),...f,children:e});Qv.Detail=tie;const nie=({code:e})=>{const{title:t,description:n}=cn("code");return v.jsxs(Qv,{identifier:"copy",children:[v.jsx(kk,{content:e}),v.jsxs(Qv.Detail,{identifier:"copy",className:"flex flex-col gap-3 p-3 min-w-64 text-sm",xAlign:kL.END,children:[v.jsx("strong",{children:t}),v.jsx("p",{className:"text-neutral",children:n})]})]})},rie=()=>{const{packageManager:e,setPackageManager:t}=qh();return v.jsxs(Re,{value:e,onValueChange:t,children:[v.jsx(Re.Trigger,{children:v.jsx(Re.Value,{placeholder:"Package Manager"})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:"npm",children:"npm"}),v.jsx(Re.Item,{value:"pnpm",children:"pnpm"}),v.jsx(Re.Item,{value:"yarn",children:"yarn"})]})]})},iie=700,aie=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:a=!0,className:s,fileName:l,packageManager:u,codeFormat:d,contentDeclarationFormat:f,isRollable:p=!0,...g})=>{const y=e?.endsWith(`
|
|
326
|
-
`)?e.slice(0,-1):e,_=u||d||f;return v.jsx(Qre,{packageManager:u,codeFormat:d,contentDeclarationFormat:f,children:v.jsxs(Ar,{className:_e("relative text-sm leading-6",a&&"with-line-number ml-0",s),transparency:"lg",...g,children:[r&&v.jsxs(v.Fragment,{children:[v.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:[v.jsx("span",{className:"truncate",children:l??t}),v.jsxs("div",{className:"flex items-center gap-2",children:[u&&v.jsx(rie,{}),d&&v.jsx(Jre,{}),f&&v.jsx(eie,{})]})]}),v.jsx("div",{className:"sticky top-48",children:v.jsx("div",{className:_e("absolute bottom-0 right-2 flex h-7 items-center",_&&"h-11"),children:v.jsx(nie,{code:y})})})]}),v.jsx(VD,{minHeight:iie,isRollable:p,className:"p-2 overflow-x-auto",children:v.jsx(Yre,{lang:t,isDarkMode:n,children:y})})]})})},oie=({className:e,isRollable:t,...n})=>{const[r,a]=E.useState(!1);return v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"sticky top-48 z-10",children:v.jsx("div",{className:"absolute top-4 right-2",children:v.jsx(ot,{variant:"hoverable",size:"icon-md",onClick:()=>{a(!0)},label:"Move",Icon:q2})})}),v.jsx(VD,{isRollable:t,children:v.jsx("table",{className:_e("max-w-full table-auto text-left min-w-full",e),...n})}),v.jsx(p0,{isOpen:r,onClose:()=>a(!1),size:h0.XL,hasCloseButton:!0,children:r?v.jsx("div",{className:"grid",children:v.jsx("table",{className:_e("max-w-full table-auto text-left min-w-full",e),...n})}):v.jsx(v.Fragment,{})})]})},sie=e=>{const t=e.split(/\r?\n/),n=t.find(s=>s.trim()!=="");if(!n||n.trim()!=="---")return e;let r=!1,a=-1;for(let s=0;s<t.length;s++)if(t[s].trim()==="---")if(r){a=s;break}else{r=!0;continue}return a>-1?t.slice(a+1).join(`
|
|
327
|
-
`):e},lie=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:a,...s}=r??{},l=sie(e);return v.jsx(Xre,{children:v.jsx(dee,{options:{overrides:{h1:u=>v.jsx(z8,{isClickable:!0,...u}),h2:u=>v.jsx(B8,{isClickable:!0,...u}),h3:u=>v.jsx(f0,{isClickable:!0,...u}),h4:u=>v.jsx(V8,{isClickable:!0,...u}),code:u=>typeof u.className>"u"?v.jsx("strong",{className:"bg-card/60 rounded p-1 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",children:u.children}):v.jsx(aie,{isDarkMode:t,language:u.className?.replace("lang-",""),...u}),blockquote:({className:u,...d})=>v.jsx("blockquote",{className:_e("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",u),...d}),ul:({className:u,...d})=>v.jsx("ul",{className:_e("mt-5 flex flex-col gap-3 pl-5 list-disc",u),...d}),ol:({className:u,...d})=>v.jsx("ol",{className:_e("mt-5 flex flex-col gap-3 pl-5 list-decimal",u),...d}),li:({className:u,...d})=>v.jsx("li",{className:_e("",u),...d}),img:({className:u,...d})=>v.jsx("img",{...d,loading:"lazy",className:_e("max-w-full rounded-md",u),src:`${d.src}?raw=true`}),a:u=>v.jsx(bb,{color:"neutral",isExternalLink:u.href?.startsWith("http"),underlined:!0,locale:n,...u}),pre:u=>u.children,table:u=>v.jsx(oie,{...u}),th:({className:u,...d})=>v.jsx("th",{className:_e("border-neutral bg-neutral/10 border-b p-4",u),...d}),tr:({className:u,...d})=>v.jsx("tr",{className:_e("hover:bg-neutral/10 hover:/10",u),...d}),td:({className:u,...d})=>v.jsx("td",{className:_e("border-b border-neutral-500/50 p-4",u),...d}),hr:({className:u,...d})=>v.jsx("hr",{className:_e("mt-16 mx-6 text-neutral",u),...d}),...a},...s},children:l??""})})},cie=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const a=["<=",">=","<",">","="].find(s=>e.startsWith(s));a&&(t=a,n=e.slice(a.length))}return{comparator:t,numberValue:n}},uie=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=E.useMemo(()=>cie(e),[e]),[a,s]=E.useState(n??null),[l,u]=E.useState(r??null);return E.useEffect(()=>{if(a&&l&&(a!==n||l!==r)){const d=`${a}${l}`;t(d)}},[a,n,r,l,t]),v.jsxs("div",{className:"flex gap-1",children:[v.jsxs(Re,{onValueChange:s,defaultValue:n,children:[v.jsx(Re.Trigger,{className:"w-20",children:v.jsx(Re.Value,{placeholder:"Select a comparator"})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:"<",children:"<"}),v.jsx(Re.Item,{value:"<=",children:"<="}),v.jsx(Re.Item,{value:"=",children:"="}),v.jsx(Re.Item,{value:">=",children:">="}),v.jsx(Re.Item,{value:">",children:">"})]})]}),v.jsx($s,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:d=>u(d.target.value),className:"min-w-4"})]})},die=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:a}=xn(),s=Gr(),{mutate:l,isPending:u}=WK();return v.jsx(rJ,{variant:la.DEFAULT,onContentChange:d=>a(t.localId,d,e),additionalButtons:v.jsx(ot,{Icon:I1,label:"Audit",variant:at.HOVERABLE,size:Kn.ICON_SM,color:it.TEXT,className:"cursor-pointer hover:scale-110",isLoading:u,onClick:()=>{l({fileContent:JSON.stringify({...t,...r?.[t.localId]??{}}),keyPath:e,locales:s.internationalization.locales??[],aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:d=>{if(d?.data)try{const f=d.data.fileContent;a(t.localId,f,e)}catch(f){console.error(f)}}})}}),...n})},fie=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=xn();return v.jsx(Bv,{variant:la.DEFAULT,onContentChange:a=>r(t.localId,a,e),...n})},hie=[{content:"False",value:!1},{content:"True",value:!0}],pie=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=xn();return v.jsx(hu,{choices:hie,value:!0,onChange:a=>r(e.localId,a,t),color:du.TEXT,size:fu.SM,...n})},mie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:a,defaultLocale:s}=ub(),{selectedLocales:l,availableLocales:u}=ID(),d=e[$.Translation],f=Object.keys(d),g=u.length>l.length?l:[...new Set([...u,...f])],y=e[$.Translation];return v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:g.map(_=>v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:sf(_,a)}),v.jsx("tr",{children:v.jsx(Ea,{section:y[_]??Gn(y[s]),keyPath:[...t,{type:$.Translation,key:_}],dictionary:n,renderSection:r})})]},_))})})},gie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=xn(),{addNewEnumeration:s,removeEnumeration:l}=cn("navigation-view"),u=e[$.Enumeration],d=Object.keys(u)[0];return v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[$.Enumeration]).map(f=>{const p=[...t,{type:$.Enumeration}];return v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 w-full",children:v.jsx("div",{className:"flex flex-1",children:v.jsx(ot,{label:l.label.value,variant:at.HOVERABLE,color:it.TEXT,Icon:mh,className:"ml-auto",onClick:()=>a(n.localId,void 0,p),children:l.text})})}),v.jsx("tr",{className:"w-full p-2",children:v.jsx(uie,{value:f,onChange:g=>{const y=e[$.Enumeration],_=JQ(y,f,g),x={...e,[$.Enumeration]:_};a(n.localId,x,t)}})}),v.jsx("tr",{className:"block w-full",children:v.jsx(a_,{section:u[f]??Gn(u[d]),keyPath:p,dictionary:n,renderSection:r})})]},f)})})}),v.jsx(ot,{label:s.label.value,variant:at.HOVERABLE,color:it.NEUTRAL,textAlign:ws.LEFT,isFullWidth:!0,onClick:()=>a(n.localId,Gn(u[d])??"",[...t,{type:$.Enumeration,key:"unknown"}]),Icon:ph,className:"m-2",children:s.text})]})},yie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[$.Condition];return v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(s=>v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),v.jsx("tr",{className:"block w-full",children:v.jsx(Ea,{section:a[s]??Gn(a.true),keyPath:[...t,{type:$.Condition,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},vie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[$.Gender];return v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["male","female","fallback"].map(s=>v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),v.jsx("tr",{className:"block w-full",children:v.jsx(Ea,{section:a[s]??Gn(a.male),keyPath:[...t,{type:$.Gender,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},bie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=xn(),{addNewElement:s,removeElement:l}=cn("navigation-view");return v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((u,d)=>v.jsxs(E.Fragment,{children:[v.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[v.jsx("span",{className:"text-xs",children:String(d)}),v.jsx(ot,{label:l.label.value,variant:at.HOVERABLE,color:it.NEUTRAL,className:"ml-auto",textAlign:ws.LEFT,onClick:()=>{const f=[...t,{type:$.Array,key:e.length}];a(n.localId,void 0,f)},Icon:mh,children:l.text})]}),v.jsx("tr",{className:"block w-full",children:v.jsx(Ea,{section:u??Gn(e[0]),keyPath:[...t,{type:$.Array,key:d}],dictionary:n,renderSection:r})})]},JSON.stringify(u)))})}),v.jsx(ot,{label:s.label.value,variant:at.HOVERABLE,color:it.NEUTRAL,textAlign:ws.LEFT,isFullWidth:!0,onClick:()=>{const u=[...t,{type:$.Array,key:e.length}];a(n.localId,Gn(e[0])??"",u,!1)},Icon:ph,children:s.text})]})},_ie=({section:e,keyPath:t,dictionary:n,renderSection:r})=>v.jsx(v.Fragment,{children:v.jsx("table",{className:"w-full",children:v.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(a=>{const s=[...t,{type:$.Object,key:a}],l=e,u=Object.keys(l)[0],d=l[a]??Gn(l[u]);return v.jsxs(E.Fragment,{children:[v.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(a)},JSON.stringify(d)),v.jsx("tr",{className:"block w-full",children:v.jsx(a_,{section:d,keyPath:s,dictionary:n,renderSection:r})},JSON.stringify(d))]},a)})})})}),Eie=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:a})=>{const[s,l]=E.useState(0),u=[{content:"Edit",value:0},{content:"Preview",value:1}],d=[...t,{type:$.Markdown}],f=e[$.Markdown];return v.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[v.jsx(hu,{choices:u,value:s,onChange:l,color:du.TEXT,size:fu.SM,className:"ml-auto"}),v.jsx(Ea,{section:f,keyPath:d,dictionary:n,renderSection:s===1?p=>v.jsx(lie,{isDarkMode:r,children:p}):void 0,onContentChange:a})]})},Sie=({section:e,keyPath:t,...n})=>{const r=[...t,{type:$.Insertion}],a=e[$.Insertion];return v.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:v.jsx(Ea,{section:a,keyPath:r,...n})})},xie=({section:e,keyPath:t,...n})=>{const r=[...t,{type:$.File}],a=e[$.File],{content:s}=e;return v.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[v.jsxs("span",{className:"text-neutral text-sm",children:[a," "]}),v.jsx(Ea,{section:s,keyPath:r,...n})]})},Aie=({keyPath:e,dictionary:t,renderSection:n,section:r,...a})=>{const{addEditedContent:s}=xn(),l=r[$.Nested],u=[...e,{type:$.Nested}];return v.jsxs("div",{className:"w-full p-2",children:[v.jsx(bv,{children:"Dictionary key"}),v.jsx(Bv,{"aria-label":"Edit field",type:"text",variant:la.DEFAULT,...a,onContentChange:d=>{s(t.localId,{...l,dictionaryKey:String(d)},u)},children:l.dictionaryKey??""}),v.jsx(bv,{children:"Path (optional)"}),v.jsx(Bv,{"aria-label":"Edit field",type:"text",variant:la.DEFAULT,...a,onContentChange:d=>{s(t.localId,{...l,path:d!==""?d:void 0},u)},children:l.path??""})]})},a_=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:a})=>{const{tsxNotEditable:s}=cn("navigation-view"),l=Os(e);return l===$.ReactNode?v.jsxs(v.Fragment,{children:[v.jsx("span",{children:"[React Node]"}),v.jsx("span",{className:"text-neutral text-xs",children:s})]}):l===$.Nested?v.jsx(Aie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Translation?v.jsx(mie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Enumeration?v.jsx(gie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Condition?v.jsx(yie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Gender?v.jsx(vie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Insertion?v.jsx(Sie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Markdown?v.jsx(Eie,{dictionary:n,keyPath:t,section:e,isDarkMode:a}):l===$.File?v.jsx(xie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Array?v.jsx(bie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Object?v.jsx(_ie,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===$.Number?v.jsx("div",{className:"w-full p-2",children:v.jsx(fie,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===$.Text?v.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):v.jsx(die,{variant:la.DEFAULT,"aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===$.Boolean?v.jsx("div",{className:"w-full p-2",children:v.jsx(pie,{dictionary:n,keyPath:t,value:e})}):v.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",l]})},Ea=e=>v.jsx(Ar,{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:v.jsx(a_,{...e})}),Gc=e=>{const t=FR(e),n=Os(e);return t&&(n===$.ReactNode||n===$.File)?!0:t&&typeof t.nodeType=="string"?Gc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},wie=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const a=[{text:t,onClick:()=>n([])},...e.map((s,l)=>({onClick:()=>n(e.slice(0,l+1)),text:s.key?.toString()??""}))];return v.jsx(WF,{links:a,locale:r,elementType:"location"})},Af=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),us=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=rt?.internationalization,a=sr(e,t),{addEditedContent:s}=Ds(),{setFocusedContentKeyPath:l,focusedContent:u}=da(),{addNewElement:d,goToField:f}=cn("navigation-view"),p=Os(a),g=_=>(u?.keyPath?.length??0)>0&&Wc(_,u?.keyPath??[]),y=Gc(a);if(!a)return v.jsx(v.Fragment,{});if(y)return v.jsx(ot,{label:f.label.value,variant:at.HOVERABLE,color:it.TEXT,className:"w-full",onClick:()=>l(t),IconRight:Nf,children:Af(t[t.length-1].key)});if(typeof a=="object"){if(p===$.ReactNode)return v.jsx(v.Fragment,{children:"React Node"});if(p===$.Translation)return v.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(x=>{const A=[...t,{type:$.Translation,key:x}];return v.jsx(us,{keyPath:A,section:e,dictionaryKey:n},x)})});if(p===$.Enumeration||p===$.Condition)return v.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(a[p]).map(x=>{const A=[...t,{type:p,key:x}];return v.jsx(us,{keyPath:A,section:e,dictionaryKey:n},x)})});if(p===$.Array)return v.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[a.map((x,A)=>{const C=[...t,{type:$.Array,key:A}];return v.jsx(us,{keyPath:C,section:e,dictionaryKey:n},JSON.stringify(C))}),v.jsx(ot,{label:d.label.value,variant:at.HOVERABLE,color:it.NEUTRAL,textAlign:ws.LEFT,onClick:()=>{const x=[...t,{type:$.Array,key:a.length}],A=a,C=Gn(A[A.length-1])??"";s(n,C,x,!1),l(x)},Icon:ph,children:d.text})]});if(typeof a.nodeType=="string"){const x=[...t,{type:a.nodeType}];return v.jsx(us,{keyPath:x,section:e,dictionaryKey:n})}const _=Object.keys(a);return v.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:_.map(x=>{const A=[...t,{type:$.Object,key:x}],C=sr(e,A);return Gc(C)?v.jsx(ot,{label:`${f.label.value} ${x}`,isActive:g(A),variant:at.HOVERABLE,color:it.TEXT,className:"w-full",onClick:()=>l(A),IconRight:Nf,children:Af(x)},x):v.jsx(H1,{label:`${f.label.value} ${x}`,isActive:g(A),onClick:()=>l(A),header:Af(x),children:v.jsx("div",{className:"mt-2 flex w-full max-w-full",children:v.jsx("div",{className:"flex-1 pl-10",children:v.jsx(us,{keyPath:A,section:e,dictionaryKey:n})})})},x)})})}return v.jsxs(v.Fragment,{children:["Error loading section --",p,"--",JSON.stringify(a),"--",JSON.stringify(t)]})},Tie=({dictionary:e,isDarkMode:t})=>{const{content:n,key:r}=e,{editedContent:a}=xn(),{focusedContent:s,setFocusedContentKeyPath:l}=da(),u=s?.keyPath,d=typeof a?.[r]?.content>"u"?n:a?.[r]?.content,f=sr(d,u??[]),p=Gc(d),g=Gc(f);return E.useEffect(()=>{typeof f>"u"&&l(s?.keyPath?.slice(0,-1)??[])},[]),v.jsxs("div",{children:[v.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[v.jsx(wie,{dictionaryKey:r,keyPath:u??[],onClickKeyPath:l}),v.jsx("div",{className:"flex items-center gap-2",children:v.jsx(QQ,{})})]}),v.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof d=="object"&&d&&!p&&Object.keys(d).length>0&&v.jsx(Ar,{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:v.jsx(us,{keyPath:[],section:d,dictionaryKey:r})}),(g||(u??[]).length>0)&&v.jsx(Ea,{keyPath:u??[],section:f,dictionary:e,isDarkMode:t})]})]})},Cie=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:a,keyInvalidTypeError:s,keySpaceError:l,keyMinLengthError:u,descriptionRequiredError:d,descriptionInvalidTypeError:f,requiredErrorProjectId:p,invalidTypeErrorProjectId:g,invalidTypeErrorTags:y}=cn("dictionary-detail-schema");return UX({title:lc({error:_=>_.input===void 0?t.value:n.value}).refine(_=>_.length===0||_.length>=4,{error:r.value}).optional(),key:lc({error:_=>_.input===void 0?a.value:s.value}).min(4,{error:u.value}).regex(/^[a-zA-Z0-9-_]+$/,{error:l.value}).default(""),description:lc({error:_=>_.input===void 0?d.value:f.value}).optional(),projectIds:Iv(lc({error:_=>_.input===void 0?p.value:g.value})).default([e]),tags:Iv(lc({error:()=>y.value})).default([])})},Rie=({dictionary:e})=>{const{session:t}=lu(),{project:n}=t??{},{data:r,isLoading:a}=$K(),{data:s}=KK(),l=Cie(String(n?.id)),{form:u,isSubmitting:d}=SW(l,{defaultValues:e}),{editedContent:f,setEditedDictionary:p}=xn(),{titleInput:g,keyInput:y,descriptionInput:_,projectInput:x,tagsSelect:A,auditButton:C}=cn("dictionary-details"),{mutate:w,isPending:S}=qK(),T=f?.[e.key];E.useEffect(()=>{u.reset(e)},[e,u?.reset]),E.useEffect(()=>{typeof T>"u"&&u.reset(e)},[T]);const N=()=>{const R={...e,...T};w({fileContent:JSON.stringify(R)},{onSuccess:O=>{if(O?.data)try{const D=JSON.parse(O.data.fileContent);p(j=>({...j,...R,...D})),u.reset({...R,...D})}catch(D){console.error(D)}}})};return v.jsx(Ar,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:v.jsxs($e,{className:"flex w-full flex-col gap-8",...u,schema:l,onChange:R=>p(O=>({...O,...R})),children:[v.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[v.jsx($e.EditableFieldInput,{name:"key",label:y.label,placeholder:y.label.value,description:y.description,disabled:d,isRequired:!0,onSave:R=>{u.setValue("key",R),p(O=>({...e,...O??{},key:R}))}}),v.jsx($e.EditableFieldInput,{name:"title",label:g.label,placeholder:g.placeholder.value,description:g.description,disabled:d,onSave:R=>{u.setValue("title",R),p(O=>({...e,...O??{},title:R}))}})]}),v.jsx($e.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:d,onSave:R=>{u.setValue("description",R),p(O=>({...e,...O??{},description:R}))}}),v.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[v.jsxs($e.MultiSelect,{name:"projectIds",label:x.label.value,description:x.description.value,onValueChange:R=>{const O=[R].flat();u.setValue("projectIds",O),p(D=>({...e,...D??{},projectIds:O}))},children:[v.jsx(mn.Trigger,{getBadgeValue:R=>r?.data?.find(O=>String(O.id)===R)?.name??R,children:v.jsx(mn.Input,{placeholder:x.placeholder.value})}),v.jsx(mn.Content,{children:v.jsx(As,{isLoading:a,children:v.jsx(mn.List,{children:r?.data?.map(R=>v.jsx(mn.Item,{value:String(R.id),children:R.name},String(R.id)))})})})]}),v.jsxs($e.MultiSelect,{name:"tags",label:A.label.value,description:A.description.value,onValueChange:R=>{u.setValue("tags",[R].flat()),p(O=>({...e,...O??{},tags:[R].flat()}))},children:[v.jsx(mn.Trigger,{getBadgeValue:R=>r?.data?.find(O=>String(O.id)===R)?.name??R,children:v.jsx(mn.Input,{placeholder:A.placeholder.value})}),v.jsx(mn.Content,{children:v.jsx(As,{isLoading:a,children:v.jsx(mn.List,{children:s?.data?.map(R=>v.jsx(mn.Item,{value:String(R.key),children:R.name??R.key},String(R.key)))})})})]})]}),v.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:v.jsx($e.Button,{type:"button",label:C.label.value,Icon:I1,variant:at.OUTLINE,color:it.TEXT,className:"max-md:w-full",onClick:N,disabled:d||S,isLoading:S,children:C.text})})]})})};function kie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AR(Object(n),!0).forEach(function(r){kie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nie(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Iie(e,t){if(e==null)return{};var n=Nie(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oie(e,t){return Die(e)||Lie(e,t)||jie(e,t)||Pie()}function Die(e){if(Array.isArray(e))return e}function Lie(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,s=void 0;try{for(var l=e[Symbol.iterator](),u;!(r=(u=l.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(d){a=!0,s=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw s}}return n}}function jie(e,t){if(e){if(typeof e=="string")return TR(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 TR(e,t)}}function TR(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 Pie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mie(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(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function RR(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){Mie(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 zie(){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(a,s){return s(a)},r)}}function pc(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(a,u))}}}function uh(e){return{}.toString.call(e).includes("Object")}function Bie(e){return!Object.keys(e).length}function Kc(e){return typeof e=="function"}function Vie(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Uie(e,t){return uh(t)||ra("changeType"),Object.keys(t).some(function(n){return!Vie(e,n)})&&ra("changeField"),t}function Fie(e){Kc(e)||ra("selectorType")}function $ie(e){Kc(e)||uh(e)||ra("handlerType"),uh(e)&&Object.values(e).some(function(t){return!Kc(t)})&&ra("handlersType")}function Hie(e){e||ra("initialIsRequired"),uh(e)||ra("initialType"),Bie(e)&&ra("initialContent")}function Gie(e,t){throw new Error(e[t]||e.default)}var Kie={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"},ra=pc(Gie)(Kie),tf={changes:Uie,selector:Fie,handler:$ie,initial:Hie};function qie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};tf.initial(e),tf.handler(t);var n={current:e},r=pc(Yie)(n,t),a=pc(Zie)(n),s=pc(tf.changes)(e),l=pc(Wie)(n);function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return tf.selector(f),f(n.current)}function d(f){zie(r,a,s,l)(f)}return[u,d]}function Wie(e,t){return Kc(t)?t(e.current):t}function Zie(e,t){return e.current=RR(RR({},e.current),t),t}function Yie(e,t,n){return Kc(t)?t(e.current):Object.keys(n).forEach(function(r){var a;return(a=t[r])===null||a===void 0?void 0:a.call(t,e.current[r])}),n}var Xie={create:qie},Qie={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Jie(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(a,u))}}}function eae(e){return{}.toString.call(e).includes("Object")}function tae(e){return e||kR("configIsRequired"),eae(e)||kR("configType"),e.urls?(nae(),{paths:{vs:e.urls.monacoBase}}):e}function nae(){console.warn(NL.deprecation)}function rae(e,t){throw new Error(e[t]||e.default)}var NL={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!
|
|
329
|
-
You are using deprecated way of configuration.
|
|
330
|
-
|
|
331
|
-
Instead of using
|
|
332
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
333
|
-
use
|
|
334
|
-
monaco.config({ paths: { vs: '...' } })
|
|
335
|
-
|
|
336
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
337
|
-
`},kR=Jie(rae)(NL),iae={config:tae},aae=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(a){return n.reduceRight(function(s,l){return l(s)},a)}};function IL(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],IL(e[n],t[n]))}),wR(wR({},e),t)}var oae={type:"cancelation",msg:"operation is manually canceled"};function wy(e){var t=!1,n=new Promise(function(r,a){e.then(function(s){return t?a(oae):r(s)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var sae=Xie.create({config:Qie,isInitialized:!1,resolve:null,reject:null,monaco:null}),OL=Oie(sae,2),yu=OL[0],Wh=OL[1];function lae(e){var t=iae.config(e),n=t.monaco,r=Iie(t,["monaco"]);Wh(function(a){return{config:IL(a.config,r),monaco:n}})}function cae(){var e=yu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Wh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),wy(Ty);if(window.monaco&&window.monaco.editor)return DL(window.monaco),e.resolve(window.monaco),wy(Ty);aae(uae,fae)(hae)}return wy(Ty)}function uae(e){return document.body.appendChild(e)}function dae(e){var t=document.createElement("script");return e&&(t.src=e),t}function fae(e){var t=yu(function(r){var a=r.config,s=r.reject;return{config:a,reject:s}}),n=dae("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function hae(){var e=yu(function(n){var r=n.config,a=n.resolve,s=n.reject;return{config:r,resolve:a,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){DL(n),e.resolve(n)},function(n){e.reject(n)})}function DL(e){yu().monaco||Wh({monaco:e})}function pae(){return yu(function(e){var t=e.monaco;return t})}var Ty=new Promise(function(e,t){return Wh({resolve:e,reject:t})}),LL={config:lae,init:cae,__getMonacoInstance:pae},mae={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Cy=mae,gae={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},yae=gae;function vae({children:e}){return Ie.createElement("div",{style:yae.container},e)}var bae=vae,_ae=bae;function Eae({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:s,wrapperProps:l}){return Ie.createElement("section",{style:{...Cy.wrapper,width:e,height:t},...l},!n&&Ie.createElement(_ae,null,r),Ie.createElement("div",{ref:a,style:{...Cy.fullWidth,...!n&&Cy.hide},className:s}))}var Sae=Eae,jL=E.memo(Sae);function xae(e){E.useEffect(e,[])}var PL=xae;function Aae(e,t,n=!0){let r=E.useRef(!0);E.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Fn=Aae;function Cc(){}function ys(e,t,n,r){return wae(e,r)||Tae(e,t,n,r)}function wae(e,t){return e.editor.getModel(ML(e,t))}function Tae(e,t,n,r){return e.editor.createModel(t,n,r?ML(e,r):void 0)}function ML(e,t){return e.Uri.parse(t)}function Cae({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:s,modifiedModelPath:l,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:p="Loading...",options:g={},height:y="100%",width:_="100%",className:x,wrapperProps:A={},beforeMount:C=Cc,onMount:w=Cc}){let[S,T]=E.useState(!1),[N,R]=E.useState(!0),O=E.useRef(null),D=E.useRef(null),j=E.useRef(null),H=E.useRef(w),Z=E.useRef(C),q=E.useRef(!1);PL(()=>{let ae=LL.init();return ae.then(M=>(D.current=M)&&R(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>O.current?W():ae.cancel()}),Fn(()=>{if(O.current&&D.current){let ae=O.current.getOriginalEditor(),M=ys(D.current,e||"",r||n||"text",s||"");M!==ae.getModel()&&ae.setModel(M)}},[s],S),Fn(()=>{if(O.current&&D.current){let ae=O.current.getModifiedEditor(),M=ys(D.current,t||"",a||n||"text",l||"");M!==ae.getModel()&&ae.setModel(M)}},[l],S),Fn(()=>{let ae=O.current.getModifiedEditor();ae.getOption(D.current.editor.EditorOption.readOnly)?ae.setValue(t||""):t!==ae.getValue()&&(ae.executeEdits("",[{range:ae.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),ae.pushUndoStop())},[t],S),Fn(()=>{O.current?.getModel()?.original.setValue(e||"")},[e],S),Fn(()=>{let{original:ae,modified:M}=O.current.getModel();D.current.editor.setModelLanguage(ae,r||n||"text"),D.current.editor.setModelLanguage(M,a||n||"text")},[n,r,a],S),Fn(()=>{D.current?.editor.setTheme(f)},[f],S),Fn(()=>{O.current?.updateOptions(g)},[g],S);let te=E.useCallback(()=>{if(!D.current)return;Z.current(D.current);let ae=ys(D.current,e||"",r||n||"text",s||""),M=ys(D.current,t||"",a||n||"text",l||"");O.current?.setModel({original:ae,modified:M})},[n,t,a,e,r,s,l]),ce=E.useCallback(()=>{!q.current&&j.current&&(O.current=D.current.editor.createDiffEditor(j.current,{automaticLayout:!0,...g}),te(),D.current?.editor.setTheme(f),T(!0),q.current=!0)},[g,f,te]);E.useEffect(()=>{S&&H.current(O.current,D.current)},[S]),E.useEffect(()=>{!N&&!S&&ce()},[N,S,ce]);function W(){let ae=O.current?.getModel();u||ae?.original?.dispose(),d||ae?.modified?.dispose(),O.current?.dispose()}return Ie.createElement(jL,{width:_,height:y,isEditorReady:S,loading:p,_ref:j,className:x,wrapperProps:A})}var Rae=Cae;E.memo(Rae);function kae(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var Nae=kae,nf=new Map;function Iae({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:s,theme:l="light",line:u,loading:d="Loading...",options:f={},overrideServices:p={},saveViewState:g=!0,keepCurrentModel:y=!1,width:_="100%",height:x="100%",className:A,wrapperProps:C={},beforeMount:w=Cc,onMount:S=Cc,onChange:T,onValidate:N=Cc}){let[R,O]=E.useState(!1),[D,j]=E.useState(!0),H=E.useRef(null),Z=E.useRef(null),q=E.useRef(null),te=E.useRef(S),ce=E.useRef(w),W=E.useRef(),ae=E.useRef(r),M=Nae(s),X=E.useRef(!1),G=E.useRef(!1);PL(()=>{let ie=LL.init();return ie.then(F=>(H.current=F)&&j(!1)).catch(F=>F?.type!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>Z.current?P():ie.cancel()}),Fn(()=>{let ie=ys(H.current,e||r||"",t||a||"",s||n||"");ie!==Z.current?.getModel()&&(g&&nf.set(M,Z.current?.saveViewState()),Z.current?.setModel(ie),g&&Z.current?.restoreViewState(nf.get(s)))},[s],R),Fn(()=>{Z.current?.updateOptions(f)},[f],R),Fn(()=>{!Z.current||r===void 0||(Z.current.getOption(H.current.editor.EditorOption.readOnly)?Z.current.setValue(r):r!==Z.current.getValue()&&(G.current=!0,Z.current.executeEdits("",[{range:Z.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),Z.current.pushUndoStop(),G.current=!1))},[r],R),Fn(()=>{let ie=Z.current?.getModel();ie&&a&&H.current?.editor.setModelLanguage(ie,a)},[a],R),Fn(()=>{u!==void 0&&Z.current?.revealLine(u)},[u],R),Fn(()=>{H.current?.editor.setTheme(l)},[l],R);let ge=E.useCallback(()=>{if(!(!q.current||!H.current)&&!X.current){ce.current(H.current);let ie=s||n,F=ys(H.current,r||e||"",t||a||"",ie||"");Z.current=H.current?.editor.create(q.current,{model:F,automaticLayout:!0,...f},p),g&&Z.current.restoreViewState(nf.get(ie)),H.current.editor.setTheme(l),u!==void 0&&Z.current.revealLine(u),O(!0),X.current=!0}},[e,t,n,r,a,s,f,p,g,l,u]);E.useEffect(()=>{R&&te.current(Z.current,H.current)},[R]),E.useEffect(()=>{!D&&!R&&ge()},[D,R,ge]),ae.current=r,E.useEffect(()=>{R&&T&&(W.current?.dispose(),W.current=Z.current?.onDidChangeModelContent(ie=>{G.current||T(Z.current.getValue(),ie)}))},[R,T]),E.useEffect(()=>{if(R){let ie=H.current.editor.onDidChangeMarkers(F=>{let J=Z.current.getModel()?.uri;if(J&&F.find(oe=>oe.path===J.path)){let oe=H.current.editor.getModelMarkers({resource:J});N?.(oe)}});return()=>{ie?.dispose()}}return()=>{}},[R,N]);function P(){W.current?.dispose(),y?g&&nf.set(s,Z.current.saveViewState()):Z.current.getModel()?.dispose(),Z.current.dispose()}return Ie.createElement(jL,{width:_,height:x,isEditorReady:R,loading:d,_ref:q,className:A,wrapperProps:C})}var Oae=Iae,Dae=E.memo(Oae);const Lae=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:a=!0,isReadOnly:s=!1,onChange:l})=>{const u=E.useRef(null),d=E.useRef(null),[f,p]=E.useState({height:0,width:0}),g=E.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),y=(x,A)=>{d.current=x;const C=(x.getContentHeight()??0)+25;A.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),A.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),A.editor.setTheme(g),A.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),A.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),A.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),A.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),p({height:C,width:u.current?.clientWidth??0})},_=r??e.split(`
|
|
338
|
-
`).length>1;return v.jsxs("div",{className:_e("relative h-full w-full text-sm",r&&"ml-0"),children:[a&&v.jsx("div",{className:"sticky top-5 z-10",children:v.jsx("div",{className:_e("absolute bottom-0 right-2 flex h-7 items-center"),children:v.jsx(kk,{content:e})})}),v.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:v.jsx(Dae,{...f,defaultLanguage:"typescript",language:t,loading:v.jsx(As,{}),defaultValue:String(e).replace(/\n$/,""),onMount:y,onChange:l,options:{readOnly:s,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:g,className:"my-2 rounded-md"})})]})},jae=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=xn(),a=l=>{try{return JSON.parse(l),!0}catch{return!1}},s=E.useMemo(()=>r?.[e.localId]?.content??e?.content??{},[e]);return v.jsx(Ar,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:v.jsx(Lae,{language:"json",onChange:l=>{a(l??"{}")&&n(e.localId,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},rf=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:s,node:l,array:u,enumeration:d,triggerPlaceHolder:f,nest:p,condition:g,markdown:y,insertion:_,reactNode:x,file:A}=cn("node-type-selector"),C=Os(e),[w,S]=E.useState(C),T=N=>{S(N),t(N)};return v.jsxs(Re,{value:w,onValueChange:T,children:[v.jsx(Re.Trigger,{children:v.jsx(Re.Value,{placeholder:f})}),v.jsxs(Re.Content,{children:[v.jsx(Re.Item,{value:$.Translation,children:n}),v.jsx(Re.Item,{value:$.Text,children:r}),v.jsx(Re.Item,{value:$.Number,children:a}),v.jsx(Re.Item,{value:$.Boolean,children:s}),v.jsx(Re.Item,{value:$.Object,children:l}),v.jsx(Re.Item,{value:$.Array,children:u}),v.jsx(Re.Item,{value:$.Enumeration,children:d}),v.jsx(Re.Item,{value:$.Insertion,children:_}),v.jsx(Re.Item,{value:$.Markdown,children:y}),v.jsx(Re.Item,{value:$.Nested,children:p}),v.jsx(Re.Item,{value:$.Condition,children:g}),v.jsx(Re.Item,{value:$.ReactNode,disabled:!0,children:x}),v.jsx(Re.Item,{value:$.File,children:A})]})]})},Jv=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{const a=Gr()?.internationalization.locales??[],s=Os(e),l=FR(e),u=d=>{const f=Wl(s,a,d);r(f)};if(s===$.Translation||s===$.Condition||s===$.Enumeration){const d=Object.keys(e[s])[0],f=[...n,{type:s,key:d}];return v.jsxs("div",{className:"flex w-full flex-col gap-1",children:[v.jsx(rf,{section:e,onValueChange:p=>r(Wl(p,a))}),v.jsx(Jv,{section:l,keyPath:f,dictionaryKey:t,onNodeTypeChange:u})]})}if(s===$.Array){const d=[...n,{type:s,key:0}];return v.jsxs("div",{className:"flex w-full flex-col gap-1",children:[v.jsx(rf,{section:e,onValueChange:f=>r(Wl(f,a))}),v.jsx(Jv,{section:l,keyPath:d,dictionaryKey:t,onNodeTypeChange:u})]})}return s===$.Object?v.jsxs(v.Fragment,{children:[v.jsx(rf,{section:e,onValueChange:d=>r(Wl(d,a))}),v.jsx("div",{className:"ml-10 mt-6",children:v.jsx(Mae,{keyPath:n,section:e,dictionaryKey:t})})]}):v.jsx(rf,{section:e,onValueChange:d=>r(Wl(d,a))})},o_=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:s}=da(),{renameEditedContent:l,addEditedContent:u}=Ds(),{titleInput:d,deleteButton:f}=cn("structure-view"),p=g=>{l(r,g,n);const y=n.slice(0,-1),_=n[n.length-1],x=[...y,{..._,key:g}];s(x)};return v.jsx(Ar,{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":Wc(n,a?.keyPath??[]),onClick:()=>s(n),children:v.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&v.jsxs("div",{className:"w-full",children:[v.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[v.jsx(YI,{name:"key","aria-label":"Key",placeholder:d.placeholder.value,defaultValue:e,onSave:g=>p(g),variant:la.INVISIBLE}),v.jsx(ot,{label:f.label.value,variant:at.HOVERABLE,size:Kn.ICON_SM,color:it.TEXT,className:"translate-x-2",Icon:mh,onClick:()=>{u(r,void 0,n);const g=n.slice(0,-1);s(g)}})]}),v.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",Af(e)," )"]})]}),v.jsx(Jv,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:g=>{u(r,g,n)}})]})})},Pae=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=cn("structure-view"),{setFocusedContentKeyPath:a}=lb(),{addEditedContent:s}=Ds();return!e||typeof e!="object"?v.jsx("div",{children:"Not an object"}):v.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto",children:[v.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>v.jsx("li",{className:"flex w-full",children:v.jsx(o_,{sectionKey:l,section:e?.[l],keyPath:[...t,{type:$.Object,key:l}],dictionaryKey:n})},l))}),v.jsx(ot,{label:r.label.value,variant:at.HOVERABLE,size:Kn.MD,color:it.TEXT,Icon:ph,className:"flex-1",onClick:()=>{const u=[...t,{type:$.Object,key:"newKey"}];s(n,"",u),a(u)},children:r.text})]})},Mae=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?v.jsx(o_,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):v.jsx(Pae,{section:e,keyPath:t,dictionaryKey:n}),zae=({dictionary:e})=>{const{content:t,key:n,localId:r}=e,{editedContent:a}=xn(),s=typeof a?.[r]?.content>"u"?t:a?.[r]?.content;return v.jsx(o_,{section:s,keyPath:[],dictionaryKey:n})},Bae=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r,onDelete:a})=>{const s=Gr(),[l,u]=E.useState(1),{returnToDictionaryList:d}=cn("dictionary-field-editor"),{setFocusedContent:f}=lb(),{setLocaleDictionaries:p}=dh();return E.useEffect(()=>{f(g=>({...g??{},dictionaryKey:e.key,dictionaryLocalId:e.localId})),p(g=>({...g,[e.localId]:e}))},[]),v.jsx(XQ,{availableLocales:s?.internationalization.locales??[],children:v.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[v.jsx(ot,{onClick:t,variant:at.HOVERABLE,className:"z-10 ml-5 mr-auto",color:it.TEXT,Icon:_2,label:d.label.value,children:d.text}),v.jsx(hu,{defaultValue:l,onChange:g=>u(g),color:du.TEXT,size:fu.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:g})=>!(!r.includes("remote")&&g===0))}),l===0&&v.jsx(Rie,{dictionary:e}),l===2&&v.jsx(zae,{dictionary:e}),l===1&&v.jsx(Tie,{dictionary:e,isDarkMode:n}),l===3&&v.jsx(jae,{dictionary:e,isDarkMode:n}),v.jsx(cD,{dictionary:e,mode:r,onDelete:()=>{f(null),a?.()}})]})})},Vae=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...s})=>v.jsx("div",{className:_e("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",a),"aria-hidden":t,...s,children:v.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:_e(r==="right"&&"ml-auto"),children:e})}),Uae=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}},Fae=()=>{if(typeof window>"u")return;const e=window.navigator?.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)},$ae=e=>{if(!(typeof window>"u"))return(window?.innerWidth??0)<=e},NR=(e="md")=>{const t=Uae(e),n=Fae(),r=$ae(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},Hae=(e="md")=>{const[t,n]=E.useState(NR(e));return E.useEffect(()=>{const r=()=>{n(NR(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},Gae=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom-1;if(n>=0&&r<=window.innerHeight){const s=t.left+t.width/2,l=t.top+10,u=document.elementFromPoint(s,l);return e===u||e.contains(u)}return!1},Zh=AI((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})),zL=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:s,isOpen:l,onClose:u})=>{const{isMobile:d}=Hae("md"),f=E.useRef(null),p=E.useRef(null),{close:g,open:y,isOpen:_}=Zh(wI(A=>({close:()=>A.close(t),open:()=>A.open(t),isOpen:A.isOpen(t)})));TI({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),E.useEffect(()=>{const A=C=>{try{if(!f.current)return;const w=_&&a,S=C.target&&!f.current.contains(C.target),T=Gae(f.current);(w&&S&&T||!C.target)&&(g(),u?.())}catch{g(),u?.()}};return window.addEventListener("mousedown",A),()=>window.removeEventListener("mousedown",A)},[_,g,u,a,t]),E.useEffect(()=>{l!==void 0&&(l?y():(g(),u?.()))},[g,y,u,l,t]);const x=A=>{A.target===A.currentTarget&&d&&(g(),u?.())};return v.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:v.jsx(Vae,{isHidden:!_,align:"right",children:v.jsxs(Ar,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:f,roundedSize:"none",children:[v.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[v.jsxs("div",{className:"flex justify-between gap-3",children:[v.jsx("div",{children:s&&v.jsx(ot,{variant:at.HOVERABLE,color:it.TEXT,label:s.text??"Go back",onClick:s.onBack,Icon:T2,children:s?.text})}),v.jsx("div",{children:v.jsx(ot,{variant:at.HOVERABLE,color:it.TEXT,label:"Close",className:"ml-auto",onClick:g,Icon:ho,size:Kn.ICON_MD})})]}),e&&v.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),v.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:v.jsx("div",{className:"flex flex-1 flex-col",onClick:x,ref:p,children:n})})]})})})};var s_="ToastProvider",[l_,Kae,qae]=eO("Toast"),[BL,Wae]=eu("Toast",[qae]),[Zae,Yh]=BL(s_),c_=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:l}=e,[u,d]=E.useState(null),[f,p]=E.useState(0),g=E.useRef(!1),y=E.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${s_}\`. Expected non-empty \`string\`.`),v.jsx(l_.Provider,{scope:t,children:v.jsx(Zae,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:s,toastCount:f,viewport:u,onViewportChange:d,onToastAdd:E.useCallback(()=>p(_=>_+1),[]),onToastRemove:E.useCallback(()=>p(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:y,children:l})})};c_.displayName=s_;var VL="ToastViewport",Yae=["F8"],eb="toast.viewportPause",tb="toast.viewportResume",u_=E.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Yae,label:a="Notifications ({hotkey})",...s}=e,l=Yh(VL,n),u=Kae(n),d=E.useRef(null),f=E.useRef(null),p=E.useRef(null),g=E.useRef(null),y=wt(t,g,l.onViewportChange),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;E.useEffect(()=>{const C=w=>{r.length!==0&&r.every(T=>w[T]||w.code===T)&&g.current?.focus()};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[r]),E.useEffect(()=>{const C=d.current,w=g.current;if(x&&C&&w){const S=()=>{if(!l.isClosePausedRef.current){const O=new CustomEvent(eb);w.dispatchEvent(O),l.isClosePausedRef.current=!0}},T=()=>{if(l.isClosePausedRef.current){const O=new CustomEvent(tb);w.dispatchEvent(O),l.isClosePausedRef.current=!1}},N=O=>{!C.contains(O.relatedTarget)&&T()},R=()=>{C.contains(document.activeElement)||T()};return C.addEventListener("focusin",S),C.addEventListener("focusout",N),C.addEventListener("pointermove",S),C.addEventListener("pointerleave",R),window.addEventListener("blur",S),window.addEventListener("focus",T),()=>{C.removeEventListener("focusin",S),C.removeEventListener("focusout",N),C.removeEventListener("pointermove",S),C.removeEventListener("pointerleave",R),window.removeEventListener("blur",S),window.removeEventListener("focus",T)}}},[x,l.isClosePausedRef]);const A=E.useCallback(({tabbingDirection:C})=>{const S=u().map(T=>{const N=T.ref.current,R=[N,...coe(N)];return C==="forwards"?R:R.reverse()});return(C==="forwards"?S.reverse():S).flat()},[u]);return E.useEffect(()=>{const C=g.current;if(C){const w=S=>{const T=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!T){const R=document.activeElement,O=S.shiftKey;if(S.target===C&&O){f.current?.focus();return}const H=A({tabbingDirection:O?"backwards":"forwards"}),Z=H.findIndex(q=>q===R);Ry(H.slice(Z+1))?S.preventDefault():O?f.current?.focus():p.current?.focus()}};return C.addEventListener("keydown",w),()=>C.removeEventListener("keydown",w)}},[u,A]),v.jsxs(y$,{ref:d,role:"region","aria-label":a.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&v.jsx(nb,{ref:f,onFocusFromOutsideViewport:()=>{const C=A({tabbingDirection:"forwards"});Ry(C)}}),v.jsx(l_.Slot,{scope:n,children:v.jsx(He.ol,{tabIndex:-1,...s,ref:y})}),x&&v.jsx(nb,{ref:p,onFocusFromOutsideViewport:()=>{const C=A({tabbingDirection:"backwards"});Ry(C)}})]})});u_.displayName=VL;var UL="ToastFocusProxy",nb=E.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,s=Yh(UL,n);return v.jsx(j0,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:l=>{const u=l.relatedTarget;!s.viewport?.contains(u)&&r()}})});nb.displayName=UL;var vu="Toast",Xae="toast.swipeStart",Qae="toast.swipeMove",Jae="toast.swipeCancel",eoe="toast.swipeEnd",d_=E.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:s,...l}=e,[u,d]=If({prop:r,defaultProp:a??!0,onChange:s,caller:vu});return v.jsx(tu,{present:n||u,children:v.jsx(roe,{open:u,...l,ref:t,onClose:()=>d(!1),onPause:_r(e.onPause),onResume:_r(e.onResume),onSwipeStart:Qe(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Qe(e.onSwipeMove,f=>{const{x:p,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Qe(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Qe(e.onSwipeEnd,f=>{const{x:p,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),d(!1)})})})});d_.displayName=vu;var[toe,noe]=BL(vu,{onClose(){}}),roe=E.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:s,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:g,onSwipeCancel:y,onSwipeEnd:_,...x}=e,A=Yh(vu,n),[C,w]=E.useState(null),S=wt(t,W=>w(W)),T=E.useRef(null),N=E.useRef(null),R=a||A.duration,O=E.useRef(0),D=E.useRef(R),j=E.useRef(0),{onToastAdd:H,onToastRemove:Z}=A,q=_r(()=>{C?.contains(document.activeElement)&&A.viewport?.focus(),l()}),te=E.useCallback(W=>{!W||W===1/0||(window.clearTimeout(j.current),O.current=new Date().getTime(),j.current=window.setTimeout(q,W))},[q]);E.useEffect(()=>{const W=A.viewport;if(W){const ae=()=>{te(D.current),f?.()},M=()=>{const X=new Date().getTime()-O.current;D.current=D.current-X,window.clearTimeout(j.current),d?.()};return W.addEventListener(eb,M),W.addEventListener(tb,ae),()=>{W.removeEventListener(eb,M),W.removeEventListener(tb,ae)}}},[A.viewport,R,d,f,te]),E.useEffect(()=>{s&&!A.isClosePausedRef.current&&te(R)},[s,R,A.isClosePausedRef,te]),E.useEffect(()=>(H(),()=>Z()),[H,Z]);const ce=E.useMemo(()=>C?GL(C):null,[C]);return A.viewport?v.jsxs(v.Fragment,{children:[ce&&v.jsx(ioe,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ce}),v.jsx(toe,{scope:n,onClose:q,children:fo.createPortal(v.jsx(l_.ItemSlot,{scope:n,children:v.jsx(g$,{asChild:!0,onEscapeKeyDown:Qe(u,()=>{A.isFocusedToastEscapeKeyDownRef.current||q(),A.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(He.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":A.swipeDirection,...x,ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Qe(e.onKeyDown,W=>{W.key==="Escape"&&(u?.(W.nativeEvent),W.nativeEvent.defaultPrevented||(A.isFocusedToastEscapeKeyDownRef.current=!0,q()))}),onPointerDown:Qe(e.onPointerDown,W=>{W.button===0&&(T.current={x:W.clientX,y:W.clientY})}),onPointerMove:Qe(e.onPointerMove,W=>{if(!T.current)return;const ae=W.clientX-T.current.x,M=W.clientY-T.current.y,X=!!N.current,G=["left","right"].includes(A.swipeDirection),ge=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,P=G?ge(0,ae):0,ie=G?0:ge(0,M),F=W.pointerType==="touch"?10:2,J={x:P,y:ie},oe={originalEvent:W,delta:J};X?(N.current=J,af(Qae,g,oe,{discrete:!1})):IR(J,A.swipeDirection,F)?(N.current=J,af(Xae,p,oe,{discrete:!1}),W.target.setPointerCapture(W.pointerId)):(Math.abs(ae)>F||Math.abs(M)>F)&&(T.current=null)}),onPointerUp:Qe(e.onPointerUp,W=>{const ae=N.current,M=W.target;if(M.hasPointerCapture(W.pointerId)&&M.releasePointerCapture(W.pointerId),N.current=null,T.current=null,ae){const X=W.currentTarget,G={originalEvent:W,delta:ae};IR(ae,A.swipeDirection,A.swipeThreshold)?af(eoe,_,G,{discrete:!0}):af(Jae,y,G,{discrete:!0}),X.addEventListener("click",ge=>ge.preventDefault(),{once:!0})}})})})}),A.viewport)})]}):null}),ioe=e=>{const{__scopeToast:t,children:n,...r}=e,a=Yh(vu,t),[s,l]=E.useState(!1),[u,d]=E.useState(!1);return soe(()=>l(!0)),E.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),u?null:v.jsx(vh,{asChild:!0,children:v.jsx(j0,{...r,children:s&&v.jsxs(v.Fragment,{children:[a.label," ",n]})})})},aoe="ToastTitle",f_=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(He.div,{...r,ref:t})});f_.displayName=aoe;var ooe="ToastDescription",h_=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(He.div,{...r,ref:t})});h_.displayName=ooe;var FL="ToastAction",p_=E.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(HL,{altText:n,asChild:!0,children:v.jsx(Xh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${FL}\`. Expected non-empty \`string\`.`),null)});p_.displayName=FL;var $L="ToastClose",Xh=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=noe($L,n);return v.jsx(HL,{asChild:!0,children:v.jsx(He.button,{type:"button",...r,ref:t,onClick:Qe(e.onClick,a.onClose)})})});Xh.displayName=$L;var HL=E.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return v.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function GL(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),loe(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!a)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...GL(r))}}),t}function af(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?q1(a,s):a.dispatchEvent(s)}var IR=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),s=r>a;return t==="left"||t==="right"?s&&r>n:!s&&a>n};function soe(e=()=>{}){const t=_r(e);ln(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function loe(e){return e.nodeType===e.ELEMENT_NODE}function coe(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ry(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var uoe=c_,KL=u_,qL=d_,WL=f_,ZL=h_,doe=p_,YL=Xh;const foe=Object.freeze(Object.defineProperty({__proto__:null,Action:doe,Close:YL,Description:ZL,Provider:uoe,Root:qL,Title:WL,Toast:d_,ToastAction:p_,ToastClose:Xh,ToastDescription:h_,ToastProvider:c_,ToastTitle:f_,ToastViewport:u_,Viewport:KL,createToastScope:Wae},Symbol.toStringTag,{value:"Module"})),hoe=foe,poe=({className:e,...t})=>v.jsx(KL,{className:_e("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}),moe=ur("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"}}),goe=({className:e,variant:t,...n})=>v.jsx(qL,{className:_e(moe({variant:t}),e),...n}),yoe=({className:e,...t})=>v.jsx(YL,{className:_e("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:v.jsx(ho,{className:"size-5"})}),voe=({className:e,...t})=>v.jsx(WL,{className:_e("text-sm font-semibold [&+div]:text-xs",e),...t}),boe=({className:e,...t})=>v.jsx(ZL,{className:_e("text-sm opacity-90",e),...t}),_oe=1,Eoe=900*1e3;let ky=0;const Soe=()=>(ky=(ky+1)%Number.MAX_SAFE_INTEGER,ky.toString()),Ny=new Map,OR=e=>{if(Ny.has(e))return;const t=setTimeout(()=>{Ny.delete(e),Rc({type:"REMOVE_TOAST",toastId:e})},Eoe);Ny.set(e,t)},xoe=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_oe)};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?OR(n):e.toasts.forEach(r=>{OR(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)}}},wf=[];let Tf={toasts:[]};const Rc=e=>{Tf=xoe(Tf,e),wf.forEach(t=>{t(Tf)})},Aoe=({...e})=>{const t=Soe(),n=a=>Rc({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Rc({type:"DISMISS_TOAST",toastId:t});return Rc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}},XL=()=>{const[e,t]=E.useState(Tf);return E.useEffect(()=>(wf.push(t),()=>{const n=wf.indexOf(t);n>-1&&wf.splice(n,1)}),[e]),{...e,toast:Aoe,dismiss:n=>Rc({type:"DISMISS_TOAST",toastId:n})}},woe=()=>{const{toasts:e}=XL();return v.jsxs(hoe.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...s})=>v.jsxs(goe,{...s,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(voe,{children:n}),r&&v.jsx(boe,{children:r})]}),a,v.jsx(yoe,{})]},t)),v.jsx(poe,{})]})};var Toe={};const Coe={queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0,gcTime:1e3*60*10},mutations:{retry:0}},DR=e=>e.split("_").join(" "),Roe=()=>{const{toast:e}=XL();return{onError:r=>{[(()=>{try{if(typeof r=="string")return JSON.parse(r)}catch{}return r})()].flat().forEach(s=>e({title:DR((Toe.NODE_ENV==="production"?s?.title:s?.code)??"Error"),description:s?.message??String(s??"An error occurred"),variant:"error"}))},onSuccess:r=>{r?.error&&e({title:DR(r.error.title??r.error.code??"Error"),description:r.error.message??r.error.code??"An error occurred",variant:"error"}),r?.message&&e({title:r.message,description:r.description,variant:"success"})}}},koe=({children:e})=>{const{onError:t,onSuccess:n}=Roe(),r=new bI({onSuccess:n,onError:t,onSettled:(s,l,u,d,f)=>{f.meta?.invalidateQueries&&f.meta.invalidateQueries.forEach(p=>{a.invalidateQueries({queryKey:p})})}}),a=new Q5({defaultOptions:Coe,mutationCache:r});return v.jsx(r8,{client:a,children:e})},Noe=({children:e})=>v.jsx(o4,{features:j5,children:e}),Ioe=({children:e})=>v.jsx(Noe,{children:v.jsxs(koe,{children:[v.jsx(woe,{}),e]})}),Ooe=({children:e})=>v.jsx(r2,{children:v.jsx(LU,{children:v.jsx(E1,{path:"*",element:e})})}),rb="dictionaryList",m_=e=>`dictionary_edition_${e}`,QL=e=>{const t=m_(e),{isOpen:n,open:r,close:a}=Zh(),{getEditedContentValue:s}=Ds(),{focusedContent:l,setFocusedContent:u}=da();return E.useEffect(()=>{l&&(l.keyPath?.length??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:s,close:()=>{a(t),u(d=>d?.dictionaryKey?{...d,keyPath:[]}:d)}}},Doe=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:s,noDictionaryFocused:l,focusedDictionaryNotFound:u}=Yc(ab),[d,f]=E.useState(!1),{focusedContent:p}=QL(t),{data:g}=DI(),y=E.useCallback(()=>{f(!1),n()},[n]),_=p?.dictionaryKey;if(!_)return v.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:l});const x=ZB(_,p.keyPath??[],g);return x?v.jsxs(v.Fragment,{children:[v.jsx(p0,{isOpen:d,onClose:()=>f(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:v.jsx("div",{className:"size-full px-3 pt-5",children:v.jsx(Bae,{dictionary:x,onClickDictionaryList:y,isDarkMode:r,mode:["local","remote"],onDelete:()=>{f(!1),n()}})})}),v.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[v.jsx("h3",{className:"w-full text-center text-lg",children:x.title?x.title:x.key}),v.jsx(ot,{variant:"hoverable",color:"text",size:"icon-md",IconRight:N1,label:s.label.value,onClick:()=>f(!0)})]}),v.jsx(KW,{dictionary:x,locale:e,mode:["local","remote"]})]}):v.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:u})},Loe=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=Yc(ab),a=m_(t),{focusedContent:s,close:l}=QL(t),{openDictionaryListDrawer:u}=Zh(f=>({openDictionaryListDrawer:()=>f.open(rb)})),d=()=>{l(),u()};return v.jsx(zL,{identifier:a,backButton:{onBack:d,text:r.value},onClose:l,children:s&&v.jsx(Doe,{focusedContent:s,locale:e,identifier:a,handleOnBack:d,isDarkMode:n})})},joe=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=da(),r=n?.dictionaryKey;return r?v.jsx(Loe,{locale:e,dictionaryKey:r,isDarkMode:t}):v.jsx(v.Fragment,{})},Poe=()=>{const{drawerTitle:e,buttonLabel:t}=Yc(PR),{close:n,open:r}=Zh(),{localeDictionaries:a}=ZR(),{editedContent:s}=xn(),{setFocusedContent:l}=da(),u=f=>{n(rb),l({dictionaryKey:f}),r(m_(f))},d=f=>Object.keys(s??{}).includes(f);return v.jsx(zL,{title:e.label.value,identifier:rb,children:Object.values(a).map(f=>v.jsx("div",{children:v.jsx(ot,{label:t.label({dictionaryLocalId:f.localId}).value,onClick:()=>u(f.localId),variant:"hoverable",color:"text",IconRight:Nf,size:"md",isFullWidth:!0,children:d(f.localId)?`✎ ${f.key}`:f.key})},f.localId))})},JL=(...e)=>$1(gh(e)),Moe=e=>{const{message:t}=Yc(MR);return v.jsx("div",{className:JL("bg-neutral/30 py-1 px-3 rounded-2xl font-bold text-text text-sm transition-opacity duration-100",e?.dictionaryKey?"opacity-100":"opacity-0"),children:e?.dictionaryKey?t({dictionaryKey:e.dictionaryKey}):""})},zoe=({children:e})=>{const[t]=ia(Sn.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=ia(Sn.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:r}=DI(),{setLocaleDictionaries:a}=dh();return E.useEffect(()=>{if(!r)return;const s=Object.fromEntries(Object.values(r).flat().map(l=>[l.localId,l]));a(s)},[r]),v.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,v.jsx("div",{className:"absolute bottom-2 right-2",children:v.jsx(Moe,{...n})}),v.jsx(joe,{locale:t}),v.jsx(Poe,{})]})},Boe=()=>{const[e,t]=E.useState();return E.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},Voe=({children:e,iframeRef:t})=>{const n=Boe(),r=n?.editor.applicationURL?n?.editor.applicationURL:"*",a=n?.editor.editorURL??"*";return n?v.jsx(wV,{postMessage:s=>{window?.postMessage(s,a),t.current?.contentWindow?.postMessage(s,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):v.jsx(As,{})},Uoe=()=>{const{editedContent:e,setEditedContentState:t}=xn(),n=()=>{const r=localStorage?.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const a=JSON.parse(r);t(a)}catch(a){console.error(a)}};return E.useEffect(()=>{typeof e>"u"||localStorage?.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),E.useEffect(()=>{typeof e<"u"||n()},[]),n},Foe=()=>{const{title:e,description:t,documentationLink:n}=Yc(zR);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsx(f0,{className:"mb-8",children:e}),v.jsx("strong",{className:"text-neutral block",children:t}),v.jsx(bb,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},$oe=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Gr(),r=()=>a(n.enabled),a=_V();JR(r),Uoe(),CV();const[s,l]=E.useState(!0),[u]=TV(void 0,{receive:!0,emit:!1});return E.useEffect(()=>{typeof u=="string"&&window.history.replaceState({},"",u)},[u]),n.applicationURL?v.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[v.jsx(As,{isLoading:s}),v.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:JL("size-full",s&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):v.jsx("div",{className:"flex size-full items-center justify-center",children:v.jsx(Ar,{className:"flex max-w-xl flex-col gap-4 p-6",children:v.jsx(Foe,{})})})},Hoe=()=>{const e=E.useRef(null),t=fa();return v.jsx(Voe,{iframeRef:e,children:v.jsx(OV,{disableEditor:!0,children:v.jsx(zoe,{children:v.jsx($oe,{iframeRef:e,applicationPath:t.pathname})})})})},Goe=()=>v.jsx(Ooe,{children:v.jsx(Ioe,{children:v.jsx(Hoe,{})})});EM.createRoot(document.getElementById("root")).render(v.jsx(E.StrictMode,{children:v.jsx(Goe,{})}));
|