intlayer-editor 6.1.4 → 6.1.6-canary.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.
@@ -0,0 +1,348 @@
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 jM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)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(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function fb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mg={exports:{}},Xl={};/**
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 fA;function PM(){if(fA)return Xl;fA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var l=null;if(s!==void 0&&(l=""+s),o.key!==void 0&&(l=""+o.key),"key"in o){s={};for(var u in o)u!=="key"&&(s[u]=o[u])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:s}}return Xl.Fragment=t,Xl.jsx=n,Xl.jsxs=n,Xl}var hA;function MM(){return hA||(hA=1,mg.exports=PM()),mg.exports}var y=MM(),gg={exports:{}},Fe={};/**
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 pA;function zM(){if(pA)return Fe;pA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=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"),m=Symbol.iterator;function v(P){return P===null||typeof P!="object"?null:(P=m&&P[m]||P["@@iterator"],typeof P=="function"?P:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,A={};function w(P,ie,G){this.props=P,this.context=ie,this.refs=A,this.updater=G||b}w.prototype.isReactComponent={},w.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")},w.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function k(){}k.prototype=w.prototype;function E(P,ie,G){this.props=P,this.context=ie,this.refs=A,this.updater=G||b}var T=E.prototype=new k;T.constructor=E,x(T,w.prototype),T.isPureReactComponent=!0;var R=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function D(P,ie,G,ne,ue,pe){return G=pe.ref,{$$typeof:e,type:P,key:ie,ref:G!==void 0?G:null,props:pe}}function L(P,ie){return D(P.type,ie,void 0,void 0,void 0,P.props)}function V(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function $(P){var ie={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(G){return ie[G]})}var Z=/\/+/g;function Q(P,ie){return typeof P=="object"&&P!==null&&P.key!=null?$(""+P.key):ie.toString(36)}function le(){}function q(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(le,le):(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 oe(P,ie,G,ne,ue){var pe=typeof P;(pe==="undefined"||pe==="boolean")&&(P=null);var ve=!1;if(P===null)ve=!0;else switch(pe){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(P.$$typeof){case e:case t:ve=!0;break;case p:return ve=P._init,oe(ve(P._payload),ie,G,ne,ue)}}if(ve)return ue=ue(P),ve=ne===""?"."+Q(P,0):ne,R(ue)?(G="",ve!=null&&(G=ve.replace(Z,"$&/")+"/"),oe(ue,ie,G,"",function(je){return je})):ue!=null&&(V(ue)&&(ue=L(ue,G+(ue.key==null||P&&P.key===ue.key?"":(""+ue.key).replace(Z,"$&/")+"/")+ve)),ie.push(ue)),1;ve=0;var fe=ne===""?".":ne+":";if(R(P))for(var xe=0;xe<P.length;xe++)ne=P[xe],pe=fe+Q(ne,xe),ve+=oe(ne,ie,G,pe,ue);else if(xe=v(P),typeof xe=="function")for(P=xe.call(P),xe=0;!(ne=P.next()).done;)ne=ne.value,pe=fe+Q(ne,xe++),ve+=oe(ne,ie,G,pe,ue);else if(pe==="object"){if(typeof P.then=="function")return oe(q(P),ie,G,ne,ue);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 ve}function z(P,ie,G){if(P==null)return P;var ne=[],ue=0;return oe(P,ne,"","",function(pe){return ie.call(G,pe,ue++)}),ne}function ee(P){if(P._status===-1){var ie=P._result;ie=ie(),ie.then(function(G){(P._status===0||P._status===-1)&&(P._status=1,P._result=G)},function(G){(P._status===0||P._status===-1)&&(P._status=2,P._result=G)}),P._status===-1&&(P._status=0,P._result=ie)}if(P._status===1)return P._result.default;throw P._result}var W=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 be(){}return Fe.Children={map:z,forEach:function(P,ie,G){z(P,function(){ie.apply(this,arguments)},G)},count:function(P){var ie=0;return z(P,function(){ie++}),ie},toArray:function(P){return z(P,function(ie){return ie})||[]},only:function(P){if(!V(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Fe.Component=w,Fe.Fragment=n,Fe.Profiler=o,Fe.PureComponent=E,Fe.StrictMode=r,Fe.Suspense=d,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(P){return C.H.useMemoCache(P)}},Fe.cache=function(P){return function(){return P.apply(null,arguments)}},Fe.cloneElement=function(P,ie,G){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var ne=x({},P.props),ue=P.key,pe=void 0;if(ie!=null)for(ve in ie.ref!==void 0&&(pe=void 0),ie.key!==void 0&&(ue=""+ie.key),ie)!I.call(ie,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&ie.ref===void 0||(ne[ve]=ie[ve]);var ve=arguments.length-2;if(ve===1)ne.children=G;else if(1<ve){for(var fe=Array(ve),xe=0;xe<ve;xe++)fe[xe]=arguments[xe+2];ne.children=fe}return D(P.type,ue,void 0,void 0,pe,ne)},Fe.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},Fe.createElement=function(P,ie,G){var ne,ue={},pe=null;if(ie!=null)for(ne in ie.key!==void 0&&(pe=""+ie.key),ie)I.call(ie,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ue[ne]=ie[ne]);var ve=arguments.length-2;if(ve===1)ue.children=G;else if(1<ve){for(var fe=Array(ve),xe=0;xe<ve;xe++)fe[xe]=arguments[xe+2];ue.children=fe}if(P&&P.defaultProps)for(ne in ve=P.defaultProps,ve)ue[ne]===void 0&&(ue[ne]=ve[ne]);return D(P,pe,void 0,void 0,null,ue)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(P){return{$$typeof:u,render:P}},Fe.isValidElement=V,Fe.lazy=function(P){return{$$typeof:p,_payload:{_status:-1,_result:P},_init:ee}},Fe.memo=function(P,ie){return{$$typeof:f,type:P,compare:ie===void 0?null:ie}},Fe.startTransition=function(P){var ie=C.T,G={};C.T=G;try{var ne=P(),ue=C.S;ue!==null&&ue(G,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(be,W)}catch(pe){W(pe)}finally{C.T=ie}},Fe.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Fe.use=function(P){return C.H.use(P)},Fe.useActionState=function(P,ie,G){return C.H.useActionState(P,ie,G)},Fe.useCallback=function(P,ie){return C.H.useCallback(P,ie)},Fe.useContext=function(P){return C.H.useContext(P)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(P,ie){return C.H.useDeferredValue(P,ie)},Fe.useEffect=function(P,ie,G){var ne=C.H;if(typeof G=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(P,ie)},Fe.useId=function(){return C.H.useId()},Fe.useImperativeHandle=function(P,ie,G){return C.H.useImperativeHandle(P,ie,G)},Fe.useInsertionEffect=function(P,ie){return C.H.useInsertionEffect(P,ie)},Fe.useLayoutEffect=function(P,ie){return C.H.useLayoutEffect(P,ie)},Fe.useMemo=function(P,ie){return C.H.useMemo(P,ie)},Fe.useOptimistic=function(P,ie){return C.H.useOptimistic(P,ie)},Fe.useReducer=function(P,ie,G){return C.H.useReducer(P,ie,G)},Fe.useRef=function(P){return C.H.useRef(P)},Fe.useState=function(P){return C.H.useState(P)},Fe.useSyncExternalStore=function(P,ie,G){return C.H.useSyncExternalStore(P,ie,G)},Fe.useTransition=function(){return C.H.useTransition()},Fe.version="19.1.1",Fe}var mA;function Qc(){return mA||(mA=1,gg.exports=zM()),gg.exports}var S=Qc();const Oe=fb(S),KR=jM({__proto__:null,default:Oe},[S]);var yg={exports:{}},Ql={},vg={exports:{}},bg={};/**
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 gA;function BM(){return gA||(gA=1,(function(e){function t(z,ee){var W=z.length;z.push(ee);e:for(;0<W;){var be=W-1>>>1,P=z[be];if(0<o(P,ee))z[be]=ee,z[W]=P,W=be;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var ee=z[0],W=z.pop();if(W!==ee){z[0]=W;e:for(var be=0,P=z.length,ie=P>>>1;be<ie;){var G=2*(be+1)-1,ne=z[G],ue=G+1,pe=z[ue];if(0>o(ne,W))ue<P&&0>o(pe,ne)?(z[be]=pe,z[ue]=W,be=ue):(z[be]=ne,z[G]=W,be=G);else if(ue<P&&0>o(pe,W))z[be]=pe,z[ue]=W,be=ue;else break e}}return ee}function o(z,ee){var W=z.sortIndex-ee.sortIndex;return W!==0?W:z.id-ee.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,m=null,v=3,b=!1,x=!1,A=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function R(z){for(var ee=n(f);ee!==null;){if(ee.callback===null)r(f);else if(ee.startTime<=z)r(f),ee.sortIndex=ee.expirationTime,t(d,ee);else break;ee=n(f)}}function C(z){if(A=!1,R(z),!x)if(n(d)!==null)x=!0,I||(I=!0,Q());else{var ee=n(f);ee!==null&&oe(C,ee.startTime-z)}}var I=!1,D=-1,L=5,V=-1;function $(){return w?!0:!(e.unstable_now()-V<L)}function Z(){if(w=!1,I){var z=e.unstable_now();V=z;var ee=!0;try{e:{x=!1,A&&(A=!1,E(D),D=-1),b=!0;var W=v;try{t:{for(R(z),m=n(d);m!==null&&!(m.expirationTime>z&&$());){var be=m.callback;if(typeof be=="function"){m.callback=null,v=m.priorityLevel;var P=be(m.expirationTime<=z);if(z=e.unstable_now(),typeof P=="function"){m.callback=P,R(z),ee=!0;break t}m===n(d)&&r(d),R(z)}else r(d);m=n(d)}if(m!==null)ee=!0;else{var ie=n(f);ie!==null&&oe(C,ie.startTime-z),ee=!1}}break e}finally{m=null,v=W,b=!1}ee=void 0}}finally{ee?Q():I=!1}}}var Q;if(typeof T=="function")Q=function(){T(Z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,q=le.port2;le.port1.onmessage=Z,Q=function(){q.postMessage(null)}}else Q=function(){k(Z,0)};function oe(z,ee){D=k(function(){z(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var ee=3;break;default:ee=v}var W=v;v=ee;try{return z()}finally{v=W}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(z,ee){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=v;v=z;try{return ee()}finally{v=W}},e.unstable_scheduleCallback=function(z,ee,W){var be=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?be+W:be):W=be,z){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=W+P,z={id:p++,callback:ee,priorityLevel:z,startTime:W,expirationTime:P,sortIndex:-1},W>be?(z.sortIndex=W,t(f,z),n(d)===null&&z===n(f)&&(A?(E(D),D=-1):A=!0,oe(C,W-be))):(z.sortIndex=P,t(d,z),x||b||(x=!0,I||(I=!0,Q()))),z},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(z){var ee=v;return function(){var W=v;v=ee;try{return z.apply(this,arguments)}finally{v=W}}}})(bg)),bg}var yA;function VM(){return yA||(yA=1,vg.exports=BM()),vg.exports}var _g={exports:{}},mn={};/**
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 vA;function UM(){if(vA)return mn;vA=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},o=Symbol.for("react.portal");function s(d,f,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,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 mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mn.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)},mn.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()}},mn.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))},mn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},mn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,m=u(p,f.crossOrigin),v=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:b}):p==="script"&&r.d.X(d,{crossOrigin:m,integrity:v,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},mn.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)},mn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,m=u(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:m,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})}},mn.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)},mn.requestFormReset=function(d){r.d.r(d)},mn.unstable_batchedUpdates=function(d,f){return d(f)},mn.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},mn.useFormStatus=function(){return l.H.useHostTransitionStatus()},mn.version="19.1.1",mn}var bA;function qR(){if(bA)return _g.exports;bA=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(),_g.exports=UM(),_g.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 _A;function FM(){if(_A)return Ql;_A=1;var e=VM(),t=Qc(),n=qR();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,c=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(c=a.return),i=a.return;while(i)}return a.tag===3?c:null}function l(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function u(i){if(s(i)!==i)throw Error(r(188))}function d(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var c=i,h=a;;){var g=c.return;if(g===null)break;var _=g.alternate;if(_===null){if(h=g.return,h!==null){c=h;continue}break}if(g.child===_.child){for(_=g.child;_;){if(_===c)return u(g),i;if(_===h)return u(g),a;_=_.sibling}throw Error(r(188))}if(c.return!==h.return)c=g,h=_;else{for(var N=!1,O=g.child;O;){if(O===c){N=!0,c=g,h=_;break}if(O===h){N=!0,h=g,c=_;break}O=O.sibling}if(!N){for(O=_.child;O;){if(O===c){N=!0,c=_,h=g;break}if(O===h){N=!0,h=_,c=g;break}O=O.sibling}if(!N)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:a}function f(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=f(i),a!==null)return a;i=i.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function Q(i){return i===null||typeof i!="object"?null:(i=Z&&i[Z]||i["@@iterator"],typeof i=="function"?i:null)}var le=Symbol.for("react.client.reference");function q(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===le?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case x:return"Fragment";case w:return"Profiler";case A:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList";case V:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case b:return"Portal";case T:return(i.displayName||"Context")+".Provider";case E:return(i._context.displayName||"Context")+".Consumer";case R:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case D:return a=i.displayName||null,a!==null?a:q(i.type)||"Memo";case L:a=i._payload,i=i._init;try{return q(i(a))}catch{}}return null}var oe=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},be=[],P=-1;function ie(i){return{current:i}}function G(i){0>P||(i.current=be[P],be[P]=null,P--)}function ne(i,a){P++,be[P]=i.current,i.current=a}var ue=ie(null),pe=ie(null),ve=ie(null),fe=ie(null);function xe(i,a){switch(ne(ve,a),ne(pe,i),ne(ue,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?Vx(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=Vx(a),i=Ux(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}G(ue),ne(ue,i)}function je(){G(ue),G(pe),G(ve)}function Ve(i){i.memoizedState!==null&&ne(fe,i);var a=ue.current,c=Ux(a,i.type);a!==c&&(ne(pe,i),ne(ue,c))}function Xe(i){pe.current===i&&(G(ue),G(pe)),fe.current===i&&(G(fe),Kl._currentValue=W)}var nt=Object.prototype.hasOwnProperty,Xt=e.unstable_scheduleCallback,Rn=e.unstable_cancelCallback,Ci=e.unstable_shouldYield,To=e.unstable_requestPaint,fn=e.unstable_now,S0=e.unstable_getCurrentPriorityLevel,tl=e.unstable_ImmediatePriority,U=e.unstable_UserBlockingPriority,J=e.unstable_NormalPriority,ae=e.unstable_LowPriority,Se=e.unstable_IdlePriority,_e=e.log,ye=e.unstable_setDisableYieldValue,Ce=null,Ue=null;function Qe(i){if(typeof _e=="function"&&ye(i),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(Ce,i)}catch{}}var gt=Math.clz32?Math.clz32:rp,_a=Math.log,Nr=Math.LN2;function rp(i){return i>>>=0,i===0?32:31-(_a(i)/Nr|0)|0}var Ri=256,ki=4194304;function Jr(i){var a=i&42;if(a!==0)return a;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 Co(i,a,c){var h=i.pendingLanes;if(h===0)return 0;var g=0,_=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var O=h&134217727;return O!==0?(h=O&~_,h!==0?g=Jr(h):(N&=O,N!==0?g=Jr(N):c||(c=O&~i,c!==0&&(g=Jr(c))))):(O=h&~_,O!==0?g=Jr(O):N!==0?g=Jr(N):c||(c=h&~i,c!==0&&(g=Jr(c)))),g===0?0:a!==0&&a!==g&&(a&_)===0&&(_=g&-g,c=a&-a,_>=c||_===32&&(c&4194048)!==0)?a:g}function Ro(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function Cu(i,a){switch(i){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 x0(){var i=Ri;return Ri<<=1,(Ri&4194048)===0&&(Ri=256),i}function A0(){var i=ki;return ki<<=1,(ki&62914560)===0&&(ki=4194304),i}function ip(i){for(var a=[],c=0;31>c;c++)a.push(i);return a}function nl(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function xj(i,a,c,h,g,_){var N=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 O=i.entanglements,M=i.expirationTimes,X=i.hiddenUpdates;for(c=N&~c;0<c;){var se=31-gt(c),de=1<<se;O[se]=0,M[se]=-1;var te=X[se];if(te!==null)for(X[se]=null,se=0;se<te.length;se++){var re=te[se];re!==null&&(re.lane&=-536870913)}c&=~de}h!==0&&w0(i,h,0),_!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=_&~(N&~a))}function w0(i,a,c){i.pendingLanes|=a,i.suspendedLanes&=~a;var h=31-gt(a);i.entangledLanes|=a,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194090}function T0(i,a){var c=i.entangledLanes|=a;for(i=i.entanglements;c;){var h=31-gt(c),g=1<<h;g&a|i[h]&a&&(i[h]|=a),c&=~g}}function op(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 ap(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function C0(){var i=ee.p;return i!==0?i:(i=window.event,i===void 0?32:aA(i.type))}function Aj(i,a){var c=ee.p;try{return ee.p=i,a()}finally{ee.p=c}}var Ni=Math.random().toString(36).slice(2),hn="__reactFiber$"+Ni,kn="__reactProps$"+Ni,Ea="__reactContainer$"+Ni,sp="__reactEvents$"+Ni,wj="__reactListeners$"+Ni,Tj="__reactHandles$"+Ni,R0="__reactResources$"+Ni,rl="__reactMarker$"+Ni;function lp(i){delete i[hn],delete i[kn],delete i[sp],delete i[wj],delete i[Tj]}function Sa(i){var a=i[hn];if(a)return a;for(var c=i.parentNode;c;){if(a=c[Ea]||c[hn]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(i=Gx(i);i!==null;){if(c=i[hn])return c;i=Gx(i)}return a}i=c,c=i.parentNode}return null}function xa(i){if(i=i[hn]||i[Ea]){var a=i.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return i}return null}function il(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(r(33))}function Aa(i){var a=i[R0];return a||(a=i[R0]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Qt(i){i[rl]=!0}var k0=new Set,N0={};function ko(i,a){wa(i,a),wa(i+"Capture",a)}function wa(i,a){for(N0[i]=a,i=0;i<a.length;i++)k0.add(a[i])}var Cj=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]*$"),I0={},O0={};function Rj(i){return nt.call(O0,i)?!0:nt.call(I0,i)?!1:Cj.test(i)?O0[i]=!0:(I0[i]=!0,!1)}function Ru(i,a,c){if(Rj(a))if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var h=a.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+c)}}function ku(i,a,c){if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+c)}}function ei(i,a,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(a,c,""+h)}}var cp,D0;function Ta(i){if(cp===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);cp=a&&a[1]||"",D0=-1<c.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+cp+i+D0}var up=!1;function dp(i,a){if(!i||up)return"";up=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){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 te=re}Reflect.construct(i,[],de)}else{try{de.call()}catch(re){te=re}i.call(de.prototype)}}else{try{throw Error()}catch(re){te=re}(de=i())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(re){if(re&&te&&typeof re.stack=="string")return[re.stack,te.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=h.DetermineComponentFrameRoot(),N=_[0],O=_[1];if(N&&O){var M=N.split(`
45
+ `),X=O.split(`
46
+ `);for(g=h=0;h<M.length&&!M[h].includes("DetermineComponentFrameRoot");)h++;for(;g<X.length&&!X[g].includes("DetermineComponentFrameRoot");)g++;if(h===M.length||g===X.length)for(h=M.length-1,g=X.length-1;1<=h&&0<=g&&M[h]!==X[g];)g--;for(;1<=h&&0<=g;h--,g--)if(M[h]!==X[g]){if(h!==1||g!==1)do if(h--,g--,0>g||M[h]!==X[g]){var se=`
47
+ `+M[h].replace(" at new "," at ");return i.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",i.displayName)),se}while(1<=h&&0<=g);break}}}finally{up=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?Ta(c):""}function kj(i){switch(i.tag){case 26:case 27:case 5:return Ta(i.type);case 16:return Ta("Lazy");case 13:return Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 15:return dp(i.type,!1);case 11:return dp(i.type.render,!1);case 1:return dp(i.type,!0);case 31:return Ta("Activity");default:return""}}function L0(i){try{var a="";do a+=kj(i),i=i.return;while(i);return a}catch(c){return`
48
+ Error generating stack: `+c.message+`
49
+ `+c.stack}}function Qn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function j0(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Nj(i){var a=j0(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),h=""+i[a];if(!i.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,_=c.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return g.call(this)},set:function(N){h=""+N,_.call(this,N)}}),Object.defineProperty(i,a,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(N){h=""+N},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function Nu(i){i._valueTracker||(i._valueTracker=Nj(i))}function P0(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var c=a.getValue(),h="";return i&&(h=j0(i)?i.checked?"true":"false":i.value),i=h,i!==c?(a.setValue(i),!0):!1}function Iu(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 Ij=/[\n"\\]/g;function Jn(i){return i.replace(Ij,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function fp(i,a,c,h,g,_,N,O){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),a!=null?N==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+Qn(a)):i.value!==""+Qn(a)&&(i.value=""+Qn(a)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),a!=null?hp(i,N,Qn(a)):c!=null?hp(i,N,Qn(c)):h!=null&&i.removeAttribute("value"),g==null&&_!=null&&(i.defaultChecked=!!_),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?i.name=""+Qn(O):i.removeAttribute("name")}function M0(i,a,c,h,g,_,N,O){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),a!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||a!=null))return;c=c!=null?""+Qn(c):"",a=a!=null?""+Qn(a):c,O||a===i.value||(i.value=a),i.defaultValue=a}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=O?i.checked:!!h,i.defaultChecked=!!h,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N)}function hp(i,a,c){a==="number"&&Iu(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Ca(i,a,c,h){if(i=i.options,a){a={};for(var g=0;g<c.length;g++)a["$"+c[g]]=!0;for(c=0;c<i.length;c++)g=a.hasOwnProperty("$"+i[c].value),i[c].selected!==g&&(i[c].selected=g),g&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Qn(c),a=null,g=0;g<i.length;g++){if(i[g].value===c){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}a!==null||i[g].disabled||(a=i[g])}a!==null&&(a.selected=!0)}}function z0(i,a,c){if(a!=null&&(a=""+Qn(a),a!==i.value&&(i.value=a),c==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=c!=null?""+Qn(c):""}function B0(i,a,c,h){if(a==null){if(h!=null){if(c!=null)throw Error(r(92));if(oe(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),a=c}c=Qn(a),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Ra(i,a){if(a){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=a;return}}i.textContent=a}var Oj=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 V0(i,a,c){var h=a.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":h?i.setProperty(a,c):typeof c!="number"||c===0||Oj.has(a)?a==="float"?i.cssFloat=c:i[a]=(""+c).trim():i[a]=c+"px"}function U0(i,a,c){if(a!=null&&typeof a!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||a!=null&&a.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in a)h=a[g],a.hasOwnProperty(g)&&c[g]!==h&&V0(i,g,h)}else for(var _ in a)a.hasOwnProperty(_)&&V0(i,_,a[_])}function pp(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 Dj=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"]]),Lj=/^[\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 Ou(i){return Lj.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var mp=null;function gp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ka=null,Na=null;function F0(i){var a=xa(i);if(a&&(i=a.stateNode)){var c=i[kn]||null;e:switch(i=a.stateNode,a.type){case"input":if(fp(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),a=c.name,c.type==="radio"&&a!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Jn(""+a)+'"][type="radio"]'),a=0;a<c.length;a++){var h=c[a];if(h!==i&&h.form===i.form){var g=h[kn]||null;if(!g)throw Error(r(90));fp(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<c.length;a++)h=c[a],h.form===i.form&&P0(h)}break e;case"textarea":z0(i,c.value,c.defaultValue);break e;case"select":a=c.value,a!=null&&Ca(i,!!c.multiple,a,!1)}}}var yp=!1;function $0(i,a,c){if(yp)return i(a,c);yp=!0;try{var h=i(a);return h}finally{if(yp=!1,(ka!==null||Na!==null)&&(yd(),ka&&(a=ka,i=Na,Na=ka=null,F0(a),i)))for(a=0;a<i.length;a++)F0(i[a])}}function ol(i,a){var c=i.stateNode;if(c===null)return null;var h=c[kn]||null;if(h===null)return null;c=h[a];e:switch(a){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,a,typeof c));return c}var ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vp=!1;if(ti)try{var al={};Object.defineProperty(al,"passive",{get:function(){vp=!0}}),window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{vp=!1}var Ii=null,bp=null,Du=null;function H0(){if(Du)return Du;var i,a=bp,c=a.length,h,g="value"in Ii?Ii.value:Ii.textContent,_=g.length;for(i=0;i<c&&a[i]===g[i];i++);var N=c-i;for(h=1;h<=N&&a[c-h]===g[_-h];h++);return Du=g.slice(i,1<h?1-h:void 0)}function Lu(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function ju(){return!0}function G0(){return!1}function Nn(i){function a(c,h,g,_,N){this._reactName=c,this._targetInst=g,this.type=h,this.nativeEvent=_,this.target=N,this.currentTarget=null;for(var O in i)i.hasOwnProperty(O)&&(c=i[O],this[O]=c?c(_):_[O]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?ju:G0,this.isPropagationStopped=G0,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=ju)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),a}var No={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=Nn(No),sl=p({},No,{view:0,detail:0}),jj=Nn(sl),_p,Ep,ll,Mu=p({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xp,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!==ll&&(ll&&i.type==="mousemove"?(_p=i.screenX-ll.screenX,Ep=i.screenY-ll.screenY):Ep=_p=0,ll=i),_p)},movementY:function(i){return"movementY"in i?i.movementY:Ep}}),K0=Nn(Mu),Pj=p({},Mu,{dataTransfer:0}),Mj=Nn(Pj),zj=p({},sl,{relatedTarget:0}),Sp=Nn(zj),Bj=p({},No,{animationName:0,elapsedTime:0,pseudoElement:0}),Vj=Nn(Bj),Uj=p({},No,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Fj=Nn(Uj),$j=p({},No,{data:0}),q0=Nn($j),Hj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gj={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"},Kj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qj(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=Kj[i])?!!a[i]:!1}function xp(){return qj}var Wj=p({},sl,{key:function(i){if(i.key){var a=Hj[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=Lu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Gj[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xp,charCode:function(i){return i.type==="keypress"?Lu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Lu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Zj=Nn(Wj),Yj=p({},Mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),W0=Nn(Yj),Xj=p({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xp}),Qj=Nn(Xj),Jj=p({},No,{propertyName:0,elapsedTime:0,pseudoElement:0}),eP=Nn(Jj),tP=p({},Mu,{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}),nP=Nn(tP),rP=p({},No,{newState:0,oldState:0}),iP=Nn(rP),oP=[9,13,27,32],Ap=ti&&"CompositionEvent"in window,cl=null;ti&&"documentMode"in document&&(cl=document.documentMode);var aP=ti&&"TextEvent"in window&&!cl,Z0=ti&&(!Ap||cl&&8<cl&&11>=cl),Y0=" ",X0=!1;function Q0(i,a){switch(i){case"keyup":return oP.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ia=!1;function sP(i,a){switch(i){case"compositionend":return J0(a);case"keypress":return a.which!==32?null:(X0=!0,Y0);case"textInput":return i=a.data,i===Y0&&X0?null:i;default:return null}}function lP(i,a){if(Ia)return i==="compositionend"||!Ap&&Q0(i,a)?(i=H0(),Du=bp=Ii=null,Ia=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Z0&&a.locale!=="ko"?null:a.data;default:return null}}var cP={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 eE(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!cP[i.type]:a==="textarea"}function tE(i,a,c,h){ka?Na?Na.push(h):Na=[h]:ka=h,a=xd(a,"onChange"),0<a.length&&(c=new Pu("onChange","change",null,c,h),i.push({event:c,listeners:a}))}var ul=null,dl=null;function uP(i){jx(i,0)}function zu(i){var a=il(i);if(P0(a))return i}function nE(i,a){if(i==="change")return a}var rE=!1;if(ti){var wp;if(ti){var Tp="oninput"in document;if(!Tp){var iE=document.createElement("div");iE.setAttribute("oninput","return;"),Tp=typeof iE.oninput=="function"}wp=Tp}else wp=!1;rE=wp&&(!document.documentMode||9<document.documentMode)}function oE(){ul&&(ul.detachEvent("onpropertychange",aE),dl=ul=null)}function aE(i){if(i.propertyName==="value"&&zu(dl)){var a=[];tE(a,dl,i,gp(i)),$0(uP,a)}}function dP(i,a,c){i==="focusin"?(oE(),ul=a,dl=c,ul.attachEvent("onpropertychange",aE)):i==="focusout"&&oE()}function fP(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return zu(dl)}function hP(i,a){if(i==="click")return zu(a)}function pP(i,a){if(i==="input"||i==="change")return zu(a)}function mP(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var Mn=typeof Object.is=="function"?Object.is:mP;function fl(i,a){if(Mn(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var c=Object.keys(i),h=Object.keys(a);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var g=c[h];if(!nt.call(a,g)||!Mn(i[g],a[g]))return!1}return!0}function sE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function lE(i,a){var c=sE(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=a&&h>=a)return{node:c,offset:a-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=sE(c)}}function cE(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?cE(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function uE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=Iu(i.document);a instanceof i.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)i=a.contentWindow;else break;a=Iu(i.document)}return a}function Cp(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}var gP=ti&&"documentMode"in document&&11>=document.documentMode,Oa=null,Rp=null,hl=null,kp=!1;function dE(i,a,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;kp||Oa==null||Oa!==Iu(h)||(h=Oa,"selectionStart"in h&&Cp(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}),hl&&fl(hl,h)||(hl=h,h=xd(Rp,"onSelect"),0<h.length&&(a=new Pu("onSelect","select",null,a,c),i.push({event:a,listeners:h}),a.target=Oa)))}function Io(i,a){var c={};return c[i.toLowerCase()]=a.toLowerCase(),c["Webkit"+i]="webkit"+a,c["Moz"+i]="moz"+a,c}var Da={animationend:Io("Animation","AnimationEnd"),animationiteration:Io("Animation","AnimationIteration"),animationstart:Io("Animation","AnimationStart"),transitionrun:Io("Transition","TransitionRun"),transitionstart:Io("Transition","TransitionStart"),transitioncancel:Io("Transition","TransitionCancel"),transitionend:Io("Transition","TransitionEnd")},Np={},fE={};ti&&(fE=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function Oo(i){if(Np[i])return Np[i];if(!Da[i])return i;var a=Da[i],c;for(c in a)if(a.hasOwnProperty(c)&&c in fE)return Np[i]=a[c];return i}var hE=Oo("animationend"),pE=Oo("animationiteration"),mE=Oo("animationstart"),yP=Oo("transitionrun"),vP=Oo("transitionstart"),bP=Oo("transitioncancel"),gE=Oo("transitionend"),yE=new Map,Ip="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(" ");Ip.push("scrollEnd");function mr(i,a){yE.set(i,a),ko(a,[i])}var vE=new WeakMap;function er(i,a){if(typeof i=="object"&&i!==null){var c=vE.get(i);return c!==void 0?c:(a={value:i,source:a,stack:L0(a)},vE.set(i,a),a)}return{value:i,source:a,stack:L0(a)}}var tr=[],La=0,Op=0;function Bu(){for(var i=La,a=Op=La=0;a<i;){var c=tr[a];tr[a++]=null;var h=tr[a];tr[a++]=null;var g=tr[a];tr[a++]=null;var _=tr[a];if(tr[a++]=null,h!==null&&g!==null){var N=h.pending;N===null?g.next=g:(g.next=N.next,N.next=g),h.pending=g}_!==0&&bE(c,g,_)}}function Vu(i,a,c,h){tr[La++]=i,tr[La++]=a,tr[La++]=c,tr[La++]=h,Op|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Dp(i,a,c,h){return Vu(i,a,c,h),Uu(i)}function ja(i,a){return Vu(i,null,null,a),Uu(i)}function bE(i,a,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var g=!1,_=i.return;_!==null;)_.childLanes|=c,h=_.alternate,h!==null&&(h.childLanes|=c),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(g=!0)),i=_,_=_.return;return i.tag===3?(_=i.stateNode,g&&a!==null&&(g=31-gt(c),i=_.hiddenUpdates,h=i[g],h===null?i[g]=[a]:h.push(a),a.lane=c|536870912),_):null}function Uu(i){if(50<zl)throw zl=0,Bm=null,Error(r(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var Pa={};function _P(i,a,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=a,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 zn(i,a,c,h){return new _P(i,a,c,h)}function Lp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ni(i,a){var c=i.alternate;return c===null?(c=zn(i.tag,a,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=a,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,a=i.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function _E(i,a){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=a,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,a=c.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function Fu(i,a,c,h,g,_){var N=0;if(h=i,typeof i=="function")Lp(i)&&(N=1);else if(typeof i=="string")N=SM(i,c,ue.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case V:return i=zn(31,c,a,g),i.elementType=V,i.lanes=_,i;case x:return Do(c.children,g,_,a);case A:N=8,g|=24;break;case w:return i=zn(12,c,a,g|2),i.elementType=w,i.lanes=_,i;case C:return i=zn(13,c,a,g),i.elementType=C,i.lanes=_,i;case I:return i=zn(19,c,a,g),i.elementType=I,i.lanes=_,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:case T:N=10;break e;case E:N=9;break e;case R:N=11;break e;case D:N=14;break e;case L:N=16,h=null;break e}N=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return a=zn(N,c,a,g),a.elementType=i,a.type=h,a.lanes=_,a}function Do(i,a,c,h){return i=zn(7,i,h,a),i.lanes=c,i}function jp(i,a,c){return i=zn(6,i,null,a),i.lanes=c,i}function Pp(i,a,c){return a=zn(4,i.children!==null?i.children:[],i.key,a),a.lanes=c,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}var Ma=[],za=0,$u=null,Hu=0,nr=[],rr=0,Lo=null,ri=1,ii="";function jo(i,a){Ma[za++]=Hu,Ma[za++]=$u,$u=i,Hu=a}function EE(i,a,c){nr[rr++]=ri,nr[rr++]=ii,nr[rr++]=Lo,Lo=i;var h=ri;i=ii;var g=32-gt(h)-1;h&=~(1<<g),c+=1;var _=32-gt(a)+g;if(30<_){var N=g-g%5;_=(h&(1<<N)-1).toString(32),h>>=N,g-=N,ri=1<<32-gt(a)+g|c<<g|h,ii=_+i}else ri=1<<_|c<<g|h,ii=i}function Mp(i){i.return!==null&&(jo(i,1),EE(i,1,0))}function zp(i){for(;i===$u;)$u=Ma[--za],Ma[za]=null,Hu=Ma[--za],Ma[za]=null;for(;i===Lo;)Lo=nr[--rr],nr[rr]=null,ii=nr[--rr],nr[rr]=null,ri=nr[--rr],nr[rr]=null}var En=null,kt=null,at=!1,Po=null,Ir=!1,Bp=Error(r(519));function Mo(i){var a=Error(r(418,""));throw gl(er(a,i)),Bp}function SE(i){var a=i.stateNode,c=i.type,h=i.memoizedProps;switch(a[hn]=i,a[kn]=h,c){case"dialog":Ye("cancel",a),Ye("close",a);break;case"iframe":case"object":case"embed":Ye("load",a);break;case"video":case"audio":for(c=0;c<Vl.length;c++)Ye(Vl[c],a);break;case"source":Ye("error",a);break;case"img":case"image":case"link":Ye("error",a),Ye("load",a);break;case"details":Ye("toggle",a);break;case"input":Ye("invalid",a),M0(a,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Nu(a);break;case"select":Ye("invalid",a);break;case"textarea":Ye("invalid",a),B0(a,h.value,h.defaultValue,h.children),Nu(a)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||a.textContent===""+c||h.suppressHydrationWarning===!0||Bx(a.textContent,c)?(h.popover!=null&&(Ye("beforetoggle",a),Ye("toggle",a)),h.onScroll!=null&&Ye("scroll",a),h.onScrollEnd!=null&&Ye("scrollend",a),h.onClick!=null&&(a.onclick=Ad),a=!0):a=!1,a||Mo(i)}function xE(i){for(En=i.return;En;)switch(En.tag){case 5:case 13:Ir=!1;return;case 27:case 3:Ir=!0;return;default:En=En.return}}function pl(i){if(i!==En)return!1;if(!at)return xE(i),at=!0,!1;var a=i.tag,c;if((c=a!==3&&a!==27)&&((c=a===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||tg(i.type,i.memoizedProps)),c=!c),c&&kt&&Mo(i),xE(i),a===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(a===0){kt=yr(i.nextSibling);break e}a--}else c!=="$"&&c!=="$!"&&c!=="$?"||a++;i=i.nextSibling}kt=null}}else a===27?(a=kt,qi(i.type)?(i=og,og=null,kt=i):kt=a):kt=En?yr(i.stateNode.nextSibling):null;return!0}function ml(){kt=En=null,at=!1}function AE(){var i=Po;return i!==null&&(Dn===null?Dn=i:Dn.push.apply(Dn,i),Po=null),i}function gl(i){Po===null?Po=[i]:Po.push(i)}var Vp=ie(null),zo=null,oi=null;function Oi(i,a,c){ne(Vp,a._currentValue),a._currentValue=c}function ai(i){i._currentValue=Vp.current,G(Vp)}function Up(i,a,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),i===c)break;i=i.return}}function Fp(i,a,c,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var _=g.dependencies;if(_!==null){var N=g.child;_=_.firstContext;e:for(;_!==null;){var O=_;_=g;for(var M=0;M<a.length;M++)if(O.context===a[M]){_.lanes|=c,O=_.alternate,O!==null&&(O.lanes|=c),Up(_.return,c,i),h||(N=null);break e}_=O.next}}else if(g.tag===18){if(N=g.return,N===null)throw Error(r(341));N.lanes|=c,_=N.alternate,_!==null&&(_.lanes|=c),Up(N,c,i),N=null}else N=g.child;if(N!==null)N.return=g;else for(N=g;N!==null;){if(N===i){N=null;break}if(g=N.sibling,g!==null){g.return=N.return,N=g;break}N=N.return}g=N}}function yl(i,a,c,h){i=null;for(var g=a,_=!1;g!==null;){if(!_){if((g.flags&524288)!==0)_=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var N=g.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var O=g.type;Mn(g.pendingProps.value,N.value)||(i!==null?i.push(O):i=[O])}}else if(g===fe.current){if(N=g.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(Kl):i=[Kl])}g=g.return}i!==null&&Fp(a,i,c,h),a.flags|=262144}function Gu(i){for(i=i.firstContext;i!==null;){if(!Mn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Bo(i){zo=i,oi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function pn(i){return wE(zo,i)}function Ku(i,a){return zo===null&&Bo(i),wE(i,a)}function wE(i,a){var c=a._currentValue;if(a={context:a,memoizedValue:c,next:null},oi===null){if(i===null)throw Error(r(308));oi=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else oi=oi.next=a;return c}var EP=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){a.aborted=!0,i.forEach(function(c){return c()})}},SP=e.unstable_scheduleCallback,xP=e.unstable_NormalPriority,Ht={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $p(){return{controller:new EP,data:new Map,refCount:0}}function vl(i){i.refCount--,i.refCount===0&&SP(xP,function(){i.controller.abort()})}var bl=null,Hp=0,Ba=0,Va=null;function AP(i,a){if(bl===null){var c=bl=[];Hp=0,Ba=Km(),Va={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Hp++,a.then(TE,TE),a}function TE(){if(--Hp===0&&bl!==null){Va!==null&&(Va.status="fulfilled");var i=bl;bl=null,Ba=0,Va=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function wP(i,a){var c=[],h={status:"pending",value:null,reason:null,then:function(g){c.push(g)}};return i.then(function(){h.status="fulfilled",h.value=a;for(var g=0;g<c.length;g++)(0,c[g])(a)},function(g){for(h.status="rejected",h.reason=g,g=0;g<c.length;g++)(0,c[g])(void 0)}),h}var CE=z.S;z.S=function(i,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&AP(i,a),CE!==null&&CE(i,a)};var Vo=ie(null);function Gp(){var i=Vo.current;return i!==null?i:yt.pooledCache}function qu(i,a){a===null?ne(Vo,Vo.current):ne(Vo,a.pool)}function RE(){var i=Gp();return i===null?null:{parent:Ht._currentValue,pool:i}}var _l=Error(r(460)),kE=Error(r(474)),Wu=Error(r(542)),Kp={then:function(){}};function NE(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Zu(){}function IE(i,a,c){switch(c=i[c],c===void 0?i.push(a):c!==a&&(a.then(Zu,Zu),a=c),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,DE(i),i;default:if(typeof a.status=="string")a.then(Zu,Zu);else{if(i=yt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=a,i.status="pending",i.then(function(h){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=h}},function(h){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=h}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,DE(i),i}throw El=a,_l}}var El=null;function OE(){if(El===null)throw Error(r(459));var i=El;return El=null,i}function DE(i){if(i===_l||i===Wu)throw Error(r(483))}var Di=!1;function qp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wp(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Li(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function ji(i,a,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(ct&2)!==0){var g=h.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),h.pending=a,a=Uu(i),bE(i,null,c),a}return Vu(i,h,a,c),Uu(i)}function Sl(i,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194048)!==0)){var h=a.lanes;h&=i.pendingLanes,c|=h,a.lanes=c,T0(i,c)}}function Zp(i,a){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var g=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var N={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?g=_=N:_=_.next=N,c=c.next}while(c!==null);_===null?g=_=a:_=_.next=a}else g=_=a;c={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:_,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=a:i.next=a,c.lastBaseUpdate=a}var Yp=!1;function xl(){if(Yp){var i=Va;if(i!==null)throw i}}function Al(i,a,c,h){Yp=!1;var g=i.updateQueue;Di=!1;var _=g.firstBaseUpdate,N=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var M=O,X=M.next;M.next=null,N===null?_=X:N.next=X,N=M;var se=i.alternate;se!==null&&(se=se.updateQueue,O=se.lastBaseUpdate,O!==N&&(O===null?se.firstBaseUpdate=X:O.next=X,se.lastBaseUpdate=M))}if(_!==null){var de=g.baseState;N=0,se=X=M=null,O=_;do{var te=O.lane&-536870913,re=te!==O.lane;if(re?(et&te)===te:(h&te)===te){te!==0&&te===Ba&&(Yp=!0),se!==null&&(se=se.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Pe=i,De=O;te=a;var pt=c;switch(De.tag){case 1:if(Pe=De.payload,typeof Pe=="function"){de=Pe.call(pt,de,te);break e}de=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=De.payload,te=typeof Pe=="function"?Pe.call(pt,de,te):Pe,te==null)break e;de=p({},de,te);break e;case 2:Di=!0}}te=O.callback,te!==null&&(i.flags|=64,re&&(i.flags|=8192),re=g.callbacks,re===null?g.callbacks=[te]:re.push(te))}else re={lane:te,tag:O.tag,payload:O.payload,callback:O.callback,next:null},se===null?(X=se=re,M=de):se=se.next=re,N|=te;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;re=O,O=re.next,re.next=null,g.lastBaseUpdate=re,g.shared.pending=null}}while(!0);se===null&&(M=de),g.baseState=M,g.firstBaseUpdate=X,g.lastBaseUpdate=se,_===null&&(g.shared.lanes=0),$i|=N,i.lanes=N,i.memoizedState=de}}function LE(i,a){if(typeof i!="function")throw Error(r(191,i));i.call(a)}function jE(i,a){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)LE(c[i],a)}var Ua=ie(null),Yu=ie(0);function PE(i,a){i=hi,ne(Yu,i),ne(Ua,a),hi=i|a.baseLanes}function Xp(){ne(Yu,hi),ne(Ua,Ua.current)}function Qp(){hi=Yu.current,G(Ua),G(Yu)}var Pi=0,Ke=null,ft=null,Pt=null,Xu=!1,Fa=!1,Uo=!1,Qu=0,wl=0,$a=null,TP=0;function Ot(){throw Error(r(321))}function Jp(i,a){if(a===null)return!1;for(var c=0;c<a.length&&c<i.length;c++)if(!Mn(i[c],a[c]))return!1;return!0}function em(i,a,c,h,g,_){return Pi=_,Ke=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=i===null||i.memoizedState===null?bS:_S,Uo=!1,_=c(h,g),Uo=!1,Fa&&(_=zE(a,c,h,g)),ME(i),_}function ME(i){z.H=id;var a=ft!==null&&ft.next!==null;if(Pi=0,Pt=ft=Ke=null,Xu=!1,wl=0,$a=null,a)throw Error(r(300));i===null||Jt||(i=i.dependencies,i!==null&&Gu(i)&&(Jt=!0))}function zE(i,a,c,h){Ke=i;var g=0;do{if(Fa&&($a=null),wl=0,Fa=!1,25<=g)throw Error(r(301));if(g+=1,Pt=ft=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}z.H=DP,_=a(c,h)}while(Fa);return _}function CP(){var i=z.H,a=i.useState()[0];return a=typeof a.then=="function"?Tl(a):a,i=i.useState()[0],(ft!==null?ft.memoizedState:null)!==i&&(Ke.flags|=1024),a}function tm(){var i=Qu!==0;return Qu=0,i}function nm(i,a,c){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~c}function rm(i){if(Xu){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Xu=!1}Pi=0,Pt=ft=Ke=null,Fa=!1,wl=Qu=0,$a=null}function In(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Ke.memoizedState=Pt=i:Pt=Pt.next=i,Pt}function Mt(){if(ft===null){var i=Ke.alternate;i=i!==null?i.memoizedState:null}else i=ft.next;var a=Pt===null?Ke.memoizedState:Pt.next;if(a!==null)Pt=a,ft=i;else{if(i===null)throw Ke.alternate===null?Error(r(467)):Error(r(310));ft=i,i={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Pt===null?Ke.memoizedState=Pt=i:Pt=Pt.next=i}return Pt}function im(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tl(i){var a=wl;return wl+=1,$a===null&&($a=[]),i=IE($a,i,a),a=Ke,(Pt===null?a.memoizedState:Pt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?bS:_S),i}function Ju(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Tl(i);if(i.$$typeof===T)return pn(i)}throw Error(r(438,String(i)))}function om(i){var a=null,c=Ke.updateQueue;if(c!==null&&(a=c.memoCache),a==null){var h=Ke.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(a={data:h.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),c===null&&(c=im(),Ke.updateQueue=c),c.memoCache=a,c=a.data[a.index],c===void 0)for(c=a.data[a.index]=Array(i),h=0;h<i;h++)c[h]=$;return a.index++,c}function si(i,a){return typeof a=="function"?a(i):a}function ed(i){var a=Mt();return am(a,ft,i)}function am(i,a,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var g=i.baseQueue,_=h.pending;if(_!==null){if(g!==null){var N=g.next;g.next=_.next,_.next=N}a.baseQueue=g=_,h.pending=null}if(_=i.baseState,g===null)i.memoizedState=_;else{a=g.next;var O=N=null,M=null,X=a,se=!1;do{var de=X.lane&-536870913;if(de!==X.lane?(et&de)===de:(Pi&de)===de){var te=X.revertLane;if(te===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),de===Ba&&(se=!0);else if((Pi&te)===te){X=X.next,te===Ba&&(se=!0);continue}else de={lane:0,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},M===null?(O=M=de,N=_):M=M.next=de,Ke.lanes|=te,$i|=te;de=X.action,Uo&&c(_,de),_=X.hasEagerState?X.eagerState:c(_,de)}else te={lane:de,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},M===null?(O=M=te,N=_):M=M.next=te,Ke.lanes|=de,$i|=de;X=X.next}while(X!==null&&X!==a);if(M===null?N=_:M.next=O,!Mn(_,i.memoizedState)&&(Jt=!0,se&&(c=Va,c!==null)))throw c;i.memoizedState=_,i.baseState=N,i.baseQueue=M,h.lastRenderedState=_}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function sm(i){var a=Mt(),c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,g=c.pending,_=a.memoizedState;if(g!==null){c.pending=null;var N=g=g.next;do _=i(_,N.action),N=N.next;while(N!==g);Mn(_,a.memoizedState)||(Jt=!0),a.memoizedState=_,a.baseQueue===null&&(a.baseState=_),c.lastRenderedState=_}return[_,h]}function BE(i,a,c){var h=Ke,g=Mt(),_=at;if(_){if(c===void 0)throw Error(r(407));c=c()}else c=a();var N=!Mn((ft||g).memoizedState,c);N&&(g.memoizedState=c,Jt=!0),g=g.queue;var O=FE.bind(null,h,g,i);if(Cl(2048,8,O,[i]),g.getSnapshot!==a||N||Pt!==null&&Pt.memoizedState.tag&1){if(h.flags|=2048,Ha(9,td(),UE.bind(null,h,g,c,a),null),yt===null)throw Error(r(349));_||(Pi&124)!==0||VE(h,a,c)}return c}function VE(i,a,c){i.flags|=16384,i={getSnapshot:a,value:c},a=Ke.updateQueue,a===null?(a=im(),Ke.updateQueue=a,a.stores=[i]):(c=a.stores,c===null?a.stores=[i]:c.push(i))}function UE(i,a,c,h){a.value=c,a.getSnapshot=h,$E(a)&&HE(i)}function FE(i,a,c){return c(function(){$E(a)&&HE(i)})}function $E(i){var a=i.getSnapshot;i=i.value;try{var c=a();return!Mn(i,c)}catch{return!0}}function HE(i){var a=ja(i,2);a!==null&&$n(a,i,2)}function lm(i){var a=In();if(typeof i=="function"){var c=i;if(i=c(),Uo){Qe(!0);try{c()}finally{Qe(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:i},a}function GE(i,a,c,h){return i.baseState=c,am(i,ft,typeof h=="function"?h:si)}function RP(i,a,c,h,g){if(rd(i))throw Error(r(485));if(i=a.action,i!==null){var _={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){_.listeners.push(N)}};z.T!==null?c(!0):_.isTransition=!1,h(_),c=a.pending,c===null?(_.next=a.pending=_,KE(a,_)):(_.next=c.next,a.pending=c.next=_)}}function KE(i,a){var c=a.action,h=a.payload,g=i.state;if(a.isTransition){var _=z.T,N={};z.T=N;try{var O=c(g,h),M=z.S;M!==null&&M(N,O),qE(i,a,O)}catch(X){cm(i,a,X)}finally{z.T=_}}else try{_=c(g,h),qE(i,a,_)}catch(X){cm(i,a,X)}}function qE(i,a,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){WE(i,a,h)},function(h){return cm(i,a,h)}):WE(i,a,c)}function WE(i,a,c){a.status="fulfilled",a.value=c,ZE(a),i.state=c,a=i.pending,a!==null&&(c=a.next,c===a?i.pending=null:(c=c.next,a.next=c,KE(i,c)))}function cm(i,a,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do a.status="rejected",a.reason=c,ZE(a),a=a.next;while(a!==h)}i.action=null}function ZE(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function YE(i,a){return a}function XE(i,a){if(at){var c=yt.formState;if(c!==null){e:{var h=Ke;if(at){if(kt){t:{for(var g=kt,_=Ir;g.nodeType!==8;){if(!_){g=null;break t}if(g=yr(g.nextSibling),g===null){g=null;break t}}_=g.data,g=_==="F!"||_==="F"?g:null}if(g){kt=yr(g.nextSibling),h=g.data==="F!";break e}}Mo(h)}h=!1}h&&(a=c[0])}}return c=In(),c.memoizedState=c.baseState=a,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:YE,lastRenderedState:a},c.queue=h,c=gS.bind(null,Ke,h),h.dispatch=c,h=lm(!1),_=pm.bind(null,Ke,!1,h.queue),h=In(),g={state:a,dispatch:null,action:i,pending:null},h.queue=g,c=RP.bind(null,Ke,g,_,c),g.dispatch=c,h.memoizedState=i,[a,c,!1]}function QE(i){var a=Mt();return JE(a,ft,i)}function JE(i,a,c){if(a=am(i,a,YE)[0],i=ed(si)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var h=Tl(a)}catch(N){throw N===_l?Wu:N}else h=a;a=Mt();var g=a.queue,_=g.dispatch;return c!==a.memoizedState&&(Ke.flags|=2048,Ha(9,td(),kP.bind(null,g,c),null)),[h,_,i]}function kP(i,a){i.action=a}function eS(i){var a=Mt(),c=ft;if(c!==null)return JE(a,c,i);Mt(),a=a.memoizedState,c=Mt();var h=c.queue.dispatch;return c.memoizedState=i,[a,h,!1]}function Ha(i,a,c,h){return i={tag:i,create:c,deps:h,inst:a,next:null},a=Ke.updateQueue,a===null&&(a=im(),Ke.updateQueue=a),c=a.lastEffect,c===null?a.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,a.lastEffect=i),i}function td(){return{destroy:void 0,resource:void 0}}function tS(){return Mt().memoizedState}function nd(i,a,c,h){var g=In();h=h===void 0?null:h,Ke.flags|=i,g.memoizedState=Ha(1|a,td(),c,h)}function Cl(i,a,c,h){var g=Mt();h=h===void 0?null:h;var _=g.memoizedState.inst;ft!==null&&h!==null&&Jp(h,ft.memoizedState.deps)?g.memoizedState=Ha(a,_,c,h):(Ke.flags|=i,g.memoizedState=Ha(1|a,_,c,h))}function nS(i,a){nd(8390656,8,i,a)}function rS(i,a){Cl(2048,8,i,a)}function iS(i,a){return Cl(4,2,i,a)}function oS(i,a){return Cl(4,4,i,a)}function aS(i,a){if(typeof a=="function"){i=i();var c=a(i);return function(){typeof c=="function"?c():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function sS(i,a,c){c=c!=null?c.concat([i]):null,Cl(4,4,aS.bind(null,a,i),c)}function um(){}function lS(i,a){var c=Mt();a=a===void 0?null:a;var h=c.memoizedState;return a!==null&&Jp(a,h[1])?h[0]:(c.memoizedState=[i,a],i)}function cS(i,a){var c=Mt();a=a===void 0?null:a;var h=c.memoizedState;if(a!==null&&Jp(a,h[1]))return h[0];if(h=i(),Uo){Qe(!0);try{i()}finally{Qe(!1)}}return c.memoizedState=[h,a],h}function dm(i,a,c){return c===void 0||(Pi&1073741824)!==0?i.memoizedState=a:(i.memoizedState=c,i=fx(),Ke.lanes|=i,$i|=i,c)}function uS(i,a,c,h){return Mn(c,a)?c:Ua.current!==null?(i=dm(i,c,h),Mn(i,a)||(Jt=!0),i):(Pi&42)===0?(Jt=!0,i.memoizedState=c):(i=fx(),Ke.lanes|=i,$i|=i,a)}function dS(i,a,c,h,g){var _=ee.p;ee.p=_!==0&&8>_?_:8;var N=z.T,O={};z.T=O,pm(i,!1,a,c);try{var M=g(),X=z.S;if(X!==null&&X(O,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var se=wP(M,h);Rl(i,a,se,Fn(i))}else Rl(i,a,h,Fn(i))}catch(de){Rl(i,a,{then:function(){},status:"rejected",reason:de},Fn())}finally{ee.p=_,z.T=N}}function NP(){}function fm(i,a,c,h){if(i.tag!==5)throw Error(r(476));var g=fS(i).queue;dS(i,g,a,W,c===null?NP:function(){return hS(i),c(h)})}function fS(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:W},next:null};var c={};return a.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:c},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function hS(i){var a=fS(i).next.queue;Rl(i,a,{},Fn())}function hm(){return pn(Kl)}function pS(){return Mt().memoizedState}function mS(){return Mt().memoizedState}function IP(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var c=Fn();i=Li(c);var h=ji(a,i,c);h!==null&&($n(h,a,c),Sl(h,a,c)),a={cache:$p()},i.payload=a;return}a=a.return}}function OP(i,a,c){var h=Fn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},rd(i)?yS(a,c):(c=Dp(i,a,c,h),c!==null&&($n(c,i,h),vS(c,a,h)))}function gS(i,a,c){var h=Fn();Rl(i,a,c,h)}function Rl(i,a,c,h){var g={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(rd(i))yS(a,g);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=a.lastRenderedReducer,_!==null))try{var N=a.lastRenderedState,O=_(N,c);if(g.hasEagerState=!0,g.eagerState=O,Mn(O,N))return Vu(i,a,g,0),yt===null&&Bu(),!1}catch{}finally{}if(c=Dp(i,a,g,h),c!==null)return $n(c,i,h),vS(c,a,h),!0}return!1}function pm(i,a,c,h){if(h={lane:2,revertLane:Km(),action:h,hasEagerState:!1,eagerState:null,next:null},rd(i)){if(a)throw Error(r(479))}else a=Dp(i,c,h,2),a!==null&&$n(a,i,2)}function rd(i){var a=i.alternate;return i===Ke||a!==null&&a===Ke}function yS(i,a){Fa=Xu=!0;var c=i.pending;c===null?a.next=a:(a.next=c.next,c.next=a),i.pending=a}function vS(i,a,c){if((c&4194048)!==0){var h=a.lanes;h&=i.pendingLanes,c|=h,a.lanes=c,T0(i,c)}}var id={readContext:pn,use:Ju,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot},bS={readContext:pn,use:Ju,useCallback:function(i,a){return In().memoizedState=[i,a===void 0?null:a],i},useContext:pn,useEffect:nS,useImperativeHandle:function(i,a,c){c=c!=null?c.concat([i]):null,nd(4194308,4,aS.bind(null,a,i),c)},useLayoutEffect:function(i,a){return nd(4194308,4,i,a)},useInsertionEffect:function(i,a){nd(4,2,i,a)},useMemo:function(i,a){var c=In();a=a===void 0?null:a;var h=i();if(Uo){Qe(!0);try{i()}finally{Qe(!1)}}return c.memoizedState=[h,a],h},useReducer:function(i,a,c){var h=In();if(c!==void 0){var g=c(a);if(Uo){Qe(!0);try{c(a)}finally{Qe(!1)}}}else g=a;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=OP.bind(null,Ke,i),[h.memoizedState,i]},useRef:function(i){var a=In();return i={current:i},a.memoizedState=i},useState:function(i){i=lm(i);var a=i.queue,c=gS.bind(null,Ke,a);return a.dispatch=c,[i.memoizedState,c]},useDebugValue:um,useDeferredValue:function(i,a){var c=In();return dm(c,i,a)},useTransition:function(){var i=lm(!1);return i=dS.bind(null,Ke,i.queue,!0,!1),In().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,c){var h=Ke,g=In();if(at){if(c===void 0)throw Error(r(407));c=c()}else{if(c=a(),yt===null)throw Error(r(349));(et&124)!==0||VE(h,a,c)}g.memoizedState=c;var _={value:c,getSnapshot:a};return g.queue=_,nS(FE.bind(null,h,_,i),[i]),h.flags|=2048,Ha(9,td(),UE.bind(null,h,_,c,a),null),c},useId:function(){var i=In(),a=yt.identifierPrefix;if(at){var c=ii,h=ri;c=(h&~(1<<32-gt(h)-1)).toString(32)+c,a="«"+a+"R"+c,c=Qu++,0<c&&(a+="H"+c.toString(32)),a+="»"}else c=TP++,a="«"+a+"r"+c.toString(32)+"»";return i.memoizedState=a},useHostTransitionStatus:hm,useFormState:XE,useActionState:XE,useOptimistic:function(i){var a=In();a.memoizedState=a.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=c,a=pm.bind(null,Ke,!0,c),c.dispatch=a,[i,a]},useMemoCache:om,useCacheRefresh:function(){return In().memoizedState=IP.bind(null,Ke)}},_S={readContext:pn,use:Ju,useCallback:lS,useContext:pn,useEffect:rS,useImperativeHandle:sS,useInsertionEffect:iS,useLayoutEffect:oS,useMemo:cS,useReducer:ed,useRef:tS,useState:function(){return ed(si)},useDebugValue:um,useDeferredValue:function(i,a){var c=Mt();return uS(c,ft.memoizedState,i,a)},useTransition:function(){var i=ed(si)[0],a=Mt().memoizedState;return[typeof i=="boolean"?i:Tl(i),a]},useSyncExternalStore:BE,useId:pS,useHostTransitionStatus:hm,useFormState:QE,useActionState:QE,useOptimistic:function(i,a){var c=Mt();return GE(c,ft,i,a)},useMemoCache:om,useCacheRefresh:mS},DP={readContext:pn,use:Ju,useCallback:lS,useContext:pn,useEffect:rS,useImperativeHandle:sS,useInsertionEffect:iS,useLayoutEffect:oS,useMemo:cS,useReducer:sm,useRef:tS,useState:function(){return sm(si)},useDebugValue:um,useDeferredValue:function(i,a){var c=Mt();return ft===null?dm(c,i,a):uS(c,ft.memoizedState,i,a)},useTransition:function(){var i=sm(si)[0],a=Mt().memoizedState;return[typeof i=="boolean"?i:Tl(i),a]},useSyncExternalStore:BE,useId:pS,useHostTransitionStatus:hm,useFormState:eS,useActionState:eS,useOptimistic:function(i,a){var c=Mt();return ft!==null?GE(c,ft,i,a):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:om,useCacheRefresh:mS},Ga=null,kl=0;function od(i){var a=kl;return kl+=1,Ga===null&&(Ga=[]),IE(Ga,i,a)}function Nl(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function ad(i,a){throw a.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function ES(i){var a=i._init;return a(i._payload)}function SS(i){function a(K,F){if(i){var Y=K.deletions;Y===null?(K.deletions=[F],K.flags|=16):Y.push(F)}}function c(K,F){if(!i)return null;for(;F!==null;)a(K,F),F=F.sibling;return null}function h(K){for(var F=new Map;K!==null;)K.key!==null?F.set(K.key,K):F.set(K.index,K),K=K.sibling;return F}function g(K,F){return K=ni(K,F),K.index=0,K.sibling=null,K}function _(K,F,Y){return K.index=Y,i?(Y=K.alternate,Y!==null?(Y=Y.index,Y<F?(K.flags|=67108866,F):Y):(K.flags|=67108866,F)):(K.flags|=1048576,F)}function N(K){return i&&K.alternate===null&&(K.flags|=67108866),K}function O(K,F,Y,ce){return F===null||F.tag!==6?(F=jp(Y,K.mode,ce),F.return=K,F):(F=g(F,Y),F.return=K,F)}function M(K,F,Y,ce){var Ae=Y.type;return Ae===x?se(K,F,Y.props.children,ce,Y.key):F!==null&&(F.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===L&&ES(Ae)===F.type)?(F=g(F,Y.props),Nl(F,Y),F.return=K,F):(F=Fu(Y.type,Y.key,Y.props,null,K.mode,ce),Nl(F,Y),F.return=K,F)}function X(K,F,Y,ce){return F===null||F.tag!==4||F.stateNode.containerInfo!==Y.containerInfo||F.stateNode.implementation!==Y.implementation?(F=Pp(Y,K.mode,ce),F.return=K,F):(F=g(F,Y.children||[]),F.return=K,F)}function se(K,F,Y,ce,Ae){return F===null||F.tag!==7?(F=Do(Y,K.mode,ce,Ae),F.return=K,F):(F=g(F,Y),F.return=K,F)}function de(K,F,Y){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=jp(""+F,K.mode,Y),F.return=K,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case v:return Y=Fu(F.type,F.key,F.props,null,K.mode,Y),Nl(Y,F),Y.return=K,Y;case b:return F=Pp(F,K.mode,Y),F.return=K,F;case L:var ce=F._init;return F=ce(F._payload),de(K,F,Y)}if(oe(F)||Q(F))return F=Do(F,K.mode,Y,null),F.return=K,F;if(typeof F.then=="function")return de(K,od(F),Y);if(F.$$typeof===T)return de(K,Ku(K,F),Y);ad(K,F)}return null}function te(K,F,Y,ce){var Ae=F!==null?F.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Ae!==null?null:O(K,F,""+Y,ce);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:return Y.key===Ae?M(K,F,Y,ce):null;case b:return Y.key===Ae?X(K,F,Y,ce):null;case L:return Ae=Y._init,Y=Ae(Y._payload),te(K,F,Y,ce)}if(oe(Y)||Q(Y))return Ae!==null?null:se(K,F,Y,ce,null);if(typeof Y.then=="function")return te(K,F,od(Y),ce);if(Y.$$typeof===T)return te(K,F,Ku(K,Y),ce);ad(K,Y)}return null}function re(K,F,Y,ce,Ae){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return K=K.get(Y)||null,O(F,K,""+ce,Ae);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case v:return K=K.get(ce.key===null?Y:ce.key)||null,M(F,K,ce,Ae);case b:return K=K.get(ce.key===null?Y:ce.key)||null,X(F,K,ce,Ae);case L:var We=ce._init;return ce=We(ce._payload),re(K,F,Y,ce,Ae)}if(oe(ce)||Q(ce))return K=K.get(Y)||null,se(F,K,ce,Ae,null);if(typeof ce.then=="function")return re(K,F,Y,od(ce),Ae);if(ce.$$typeof===T)return re(K,F,Y,Ku(F,ce),Ae);ad(F,ce)}return null}function Pe(K,F,Y,ce){for(var Ae=null,We=null,ke=F,Le=F=0,tn=null;ke!==null&&Le<Y.length;Le++){ke.index>Le?(tn=ke,ke=null):tn=ke.sibling;var rt=te(K,ke,Y[Le],ce);if(rt===null){ke===null&&(ke=tn);break}i&&ke&&rt.alternate===null&&a(K,ke),F=_(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt,ke=tn}if(Le===Y.length)return c(K,ke),at&&jo(K,Le),Ae;if(ke===null){for(;Le<Y.length;Le++)ke=de(K,Y[Le],ce),ke!==null&&(F=_(ke,F,Le),We===null?Ae=ke:We.sibling=ke,We=ke);return at&&jo(K,Le),Ae}for(ke=h(ke);Le<Y.length;Le++)tn=re(ke,K,Le,Y[Le],ce),tn!==null&&(i&&tn.alternate!==null&&ke.delete(tn.key===null?Le:tn.key),F=_(tn,F,Le),We===null?Ae=tn:We.sibling=tn,We=tn);return i&&ke.forEach(function(Qi){return a(K,Qi)}),at&&jo(K,Le),Ae}function De(K,F,Y,ce){if(Y==null)throw Error(r(151));for(var Ae=null,We=null,ke=F,Le=F=0,tn=null,rt=Y.next();ke!==null&&!rt.done;Le++,rt=Y.next()){ke.index>Le?(tn=ke,ke=null):tn=ke.sibling;var Qi=te(K,ke,rt.value,ce);if(Qi===null){ke===null&&(ke=tn);break}i&&ke&&Qi.alternate===null&&a(K,ke),F=_(Qi,F,Le),We===null?Ae=Qi:We.sibling=Qi,We=Qi,ke=tn}if(rt.done)return c(K,ke),at&&jo(K,Le),Ae;if(ke===null){for(;!rt.done;Le++,rt=Y.next())rt=de(K,rt.value,ce),rt!==null&&(F=_(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt);return at&&jo(K,Le),Ae}for(ke=h(ke);!rt.done;Le++,rt=Y.next())rt=re(ke,K,Le,rt.value,ce),rt!==null&&(i&&rt.alternate!==null&&ke.delete(rt.key===null?Le:rt.key),F=_(rt,F,Le),We===null?Ae=rt:We.sibling=rt,We=rt);return i&&ke.forEach(function(LM){return a(K,LM)}),at&&jo(K,Le),Ae}function pt(K,F,Y,ce){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 v:e:{for(var Ae=Y.key;F!==null;){if(F.key===Ae){if(Ae=Y.type,Ae===x){if(F.tag===7){c(K,F.sibling),ce=g(F,Y.props.children),ce.return=K,K=ce;break e}}else if(F.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===L&&ES(Ae)===F.type){c(K,F.sibling),ce=g(F,Y.props),Nl(ce,Y),ce.return=K,K=ce;break e}c(K,F);break}else a(K,F);F=F.sibling}Y.type===x?(ce=Do(Y.props.children,K.mode,ce,Y.key),ce.return=K,K=ce):(ce=Fu(Y.type,Y.key,Y.props,null,K.mode,ce),Nl(ce,Y),ce.return=K,K=ce)}return N(K);case b:e:{for(Ae=Y.key;F!==null;){if(F.key===Ae)if(F.tag===4&&F.stateNode.containerInfo===Y.containerInfo&&F.stateNode.implementation===Y.implementation){c(K,F.sibling),ce=g(F,Y.children||[]),ce.return=K,K=ce;break e}else{c(K,F);break}else a(K,F);F=F.sibling}ce=Pp(Y,K.mode,ce),ce.return=K,K=ce}return N(K);case L:return Ae=Y._init,Y=Ae(Y._payload),pt(K,F,Y,ce)}if(oe(Y))return Pe(K,F,Y,ce);if(Q(Y)){if(Ae=Q(Y),typeof Ae!="function")throw Error(r(150));return Y=Ae.call(Y),De(K,F,Y,ce)}if(typeof Y.then=="function")return pt(K,F,od(Y),ce);if(Y.$$typeof===T)return pt(K,F,Ku(K,Y),ce);ad(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,F!==null&&F.tag===6?(c(K,F.sibling),ce=g(F,Y),ce.return=K,K=ce):(c(K,F),ce=jp(Y,K.mode,ce),ce.return=K,K=ce),N(K)):c(K,F)}return function(K,F,Y,ce){try{kl=0;var Ae=pt(K,F,Y,ce);return Ga=null,Ae}catch(ke){if(ke===_l||ke===Wu)throw ke;var We=zn(29,ke,null,K.mode);return We.lanes=ce,We.return=K,We}finally{}}}var Ka=SS(!0),xS=SS(!1),ir=ie(null),Or=null;function Mi(i){var a=i.alternate;ne(Gt,Gt.current&1),ne(ir,i),Or===null&&(a===null||Ua.current!==null||a.memoizedState!==null)&&(Or=i)}function AS(i){if(i.tag===22){if(ne(Gt,Gt.current),ne(ir,i),Or===null){var a=i.alternate;a!==null&&a.memoizedState!==null&&(Or=i)}}else zi()}function zi(){ne(Gt,Gt.current),ne(ir,ir.current)}function li(i){G(ir),Or===i&&(Or=null),G(Gt)}var Gt=ie(0);function sd(i){for(var a=i;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||ig(c)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function mm(i,a,c,h){a=i.memoizedState,c=c(h,a),c=c==null?a:p({},a,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var gm={enqueueSetState:function(i,a,c){i=i._reactInternals;var h=Fn(),g=Li(h);g.payload=a,c!=null&&(g.callback=c),a=ji(i,g,h),a!==null&&($n(a,i,h),Sl(a,i,h))},enqueueReplaceState:function(i,a,c){i=i._reactInternals;var h=Fn(),g=Li(h);g.tag=1,g.payload=a,c!=null&&(g.callback=c),a=ji(i,g,h),a!==null&&($n(a,i,h),Sl(a,i,h))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var c=Fn(),h=Li(c);h.tag=2,a!=null&&(h.callback=a),a=ji(i,h,c),a!==null&&($n(a,i,c),Sl(a,i,c))}};function wS(i,a,c,h,g,_,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,_,N):a.prototype&&a.prototype.isPureReactComponent?!fl(c,h)||!fl(g,_):!0}function TS(i,a,c,h){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,h),a.state!==i&&gm.enqueueReplaceState(a,a.state,null)}function Fo(i,a){var c=a;if("ref"in a){c={};for(var h in a)h!=="ref"&&(c[h]=a[h])}if(i=i.defaultProps){c===a&&(c=p({},c));for(var g in i)c[g]===void 0&&(c[g]=i[g])}return c}var ld=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function CS(i){ld(i)}function RS(i){console.error(i)}function kS(i){ld(i)}function cd(i,a){try{var c=i.onUncaughtError;c(a.value,{componentStack:a.stack})}catch(h){setTimeout(function(){throw h})}}function NS(i,a,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function ym(i,a,c){return c=Li(c),c.tag=3,c.payload={element:null},c.callback=function(){cd(i,a)},c}function IS(i){return i=Li(i),i.tag=3,i}function OS(i,a,c,h){var g=c.type.getDerivedStateFromError;if(typeof g=="function"){var _=h.value;i.payload=function(){return g(_)},i.callback=function(){NS(a,c,h)}}var N=c.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){NS(a,c,h),typeof g!="function"&&(Hi===null?Hi=new Set([this]):Hi.add(this));var O=h.stack;this.componentDidCatch(h.value,{componentStack:O!==null?O:""})})}function LP(i,a,c,h,g){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(a=c.alternate,a!==null&&yl(a,c,g,!0),c=ir.current,c!==null){switch(c.tag){case 13:return Or===null?Um():c.alternate===null&&Nt===0&&(Nt=3),c.flags&=-257,c.flags|=65536,c.lanes=g,h===Kp?c.flags|=16384:(a=c.updateQueue,a===null?c.updateQueue=new Set([h]):a.add(h),$m(i,h,g)),!1;case 22:return c.flags|=65536,h===Kp?c.flags|=16384:(a=c.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=a):(c=a.retryQueue,c===null?a.retryQueue=new Set([h]):c.add(h)),$m(i,h,g)),!1}throw Error(r(435,c.tag))}return $m(i,h,g),Um(),!1}if(at)return a=ir.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,h!==Bp&&(i=Error(r(422),{cause:h}),gl(er(i,c)))):(h!==Bp&&(a=Error(r(423),{cause:h}),gl(er(a,c))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=er(h,c),g=ym(i.stateNode,h,g),Zp(i,g),Nt!==4&&(Nt=2)),!1;var _=Error(r(520),{cause:h});if(_=er(_,c),Ml===null?Ml=[_]:Ml.push(_),Nt!==4&&(Nt=2),a===null)return!0;h=er(h,c),c=a;do{switch(c.tag){case 3:return c.flags|=65536,i=g&-g,c.lanes|=i,i=ym(c.stateNode,h,i),Zp(c,i),!1;case 1:if(a=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Hi===null||!Hi.has(_))))return c.flags|=65536,g&=-g,c.lanes|=g,g=IS(g),OS(g,i,c,h),Zp(c,g),!1}c=c.return}while(c!==null);return!1}var DS=Error(r(461)),Jt=!1;function on(i,a,c,h){a.child=i===null?xS(a,null,c,h):Ka(a,i.child,c,h)}function LS(i,a,c,h,g){c=c.render;var _=a.ref;if("ref"in h){var N={};for(var O in h)O!=="ref"&&(N[O]=h[O])}else N=h;return Bo(a),h=em(i,a,c,N,_,g),O=tm(),i!==null&&!Jt?(nm(i,a,g),ci(i,a,g)):(at&&O&&Mp(a),a.flags|=1,on(i,a,h,g),a.child)}function jS(i,a,c,h,g){if(i===null){var _=c.type;return typeof _=="function"&&!Lp(_)&&_.defaultProps===void 0&&c.compare===null?(a.tag=15,a.type=_,PS(i,a,_,h,g)):(i=Fu(c.type,null,h,a,a.mode,g),i.ref=a.ref,i.return=a,a.child=i)}if(_=i.child,!wm(i,g)){var N=_.memoizedProps;if(c=c.compare,c=c!==null?c:fl,c(N,h)&&i.ref===a.ref)return ci(i,a,g)}return a.flags|=1,i=ni(_,h),i.ref=a.ref,i.return=a,a.child=i}function PS(i,a,c,h,g){if(i!==null){var _=i.memoizedProps;if(fl(_,h)&&i.ref===a.ref)if(Jt=!1,a.pendingProps=h=_,wm(i,g))(i.flags&131072)!==0&&(Jt=!0);else return a.lanes=i.lanes,ci(i,a,g)}return vm(i,a,c,h,g)}function MS(i,a,c){var h=a.pendingProps,g=h.children,_=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((a.flags&128)!==0){if(h=_!==null?_.baseLanes|c:c,i!==null){for(g=a.child=i.child,_=0;g!==null;)_=_|g.lanes|g.childLanes,g=g.sibling;a.childLanes=_&~h}else a.childLanes=0,a.child=null;return zS(i,a,h,c)}if((c&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&qu(a,_!==null?_.cachePool:null),_!==null?PE(a,_):Xp(),AS(a);else return a.lanes=a.childLanes=536870912,zS(i,a,_!==null?_.baseLanes|c:c,c)}else _!==null?(qu(a,_.cachePool),PE(a,_),zi(),a.memoizedState=null):(i!==null&&qu(a,null),Xp(),zi());return on(i,a,g,c),a.child}function zS(i,a,c,h){var g=Gp();return g=g===null?null:{parent:Ht._currentValue,pool:g},a.memoizedState={baseLanes:c,cachePool:g},i!==null&&qu(a,null),Xp(),AS(a),i!==null&&yl(i,a,h,!0),null}function ud(i,a){var c=a.ref;if(c===null)i!==null&&i.ref!==null&&(a.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(a.flags|=4194816)}}function vm(i,a,c,h,g){return Bo(a),c=em(i,a,c,h,void 0,g),h=tm(),i!==null&&!Jt?(nm(i,a,g),ci(i,a,g)):(at&&h&&Mp(a),a.flags|=1,on(i,a,c,g),a.child)}function BS(i,a,c,h,g,_){return Bo(a),a.updateQueue=null,c=zE(a,h,c,g),ME(i),h=tm(),i!==null&&!Jt?(nm(i,a,_),ci(i,a,_)):(at&&h&&Mp(a),a.flags|=1,on(i,a,c,_),a.child)}function VS(i,a,c,h,g){if(Bo(a),a.stateNode===null){var _=Pa,N=c.contextType;typeof N=="object"&&N!==null&&(_=pn(N)),_=new c(h,_),a.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=gm,a.stateNode=_,_._reactInternals=a,_=a.stateNode,_.props=h,_.state=a.memoizedState,_.refs={},qp(a),N=c.contextType,_.context=typeof N=="object"&&N!==null?pn(N):Pa,_.state=a.memoizedState,N=c.getDerivedStateFromProps,typeof N=="function"&&(mm(a,c,N,h),_.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(N=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),N!==_.state&&gm.enqueueReplaceState(_,_.state,null),Al(a,h,_,g),xl(),_.state=a.memoizedState),typeof _.componentDidMount=="function"&&(a.flags|=4194308),h=!0}else if(i===null){_=a.stateNode;var O=a.memoizedProps,M=Fo(c,O);_.props=M;var X=_.context,se=c.contextType;N=Pa,typeof se=="object"&&se!==null&&(N=pn(se));var de=c.getDerivedStateFromProps;se=typeof de=="function"||typeof _.getSnapshotBeforeUpdate=="function",O=a.pendingProps!==O,se||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(O||X!==N)&&TS(a,_,h,N),Di=!1;var te=a.memoizedState;_.state=te,Al(a,h,_,g),xl(),X=a.memoizedState,O||te!==X||Di?(typeof de=="function"&&(mm(a,c,de,h),X=a.memoizedState),(M=Di||wS(a,c,M,h,te,X,N))?(se||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(a.flags|=4194308)):(typeof _.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=X),_.props=h,_.state=X,_.context=N,h=M):(typeof _.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{_=a.stateNode,Wp(i,a),N=a.memoizedProps,se=Fo(c,N),_.props=se,de=a.pendingProps,te=_.context,X=c.contextType,M=Pa,typeof X=="object"&&X!==null&&(M=pn(X)),O=c.getDerivedStateFromProps,(X=typeof O=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(N!==de||te!==M)&&TS(a,_,h,M),Di=!1,te=a.memoizedState,_.state=te,Al(a,h,_,g),xl();var re=a.memoizedState;N!==de||te!==re||Di||i!==null&&i.dependencies!==null&&Gu(i.dependencies)?(typeof O=="function"&&(mm(a,c,O,h),re=a.memoizedState),(se=Di||wS(a,c,se,h,te,re,M)||i!==null&&i.dependencies!==null&&Gu(i.dependencies))?(X||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(h,re,M),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(h,re,M)),typeof _.componentDidUpdate=="function"&&(a.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof _.componentDidUpdate!="function"||N===i.memoizedProps&&te===i.memoizedState||(a.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&te===i.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=re),_.props=h,_.state=re,_.context=M,h=se):(typeof _.componentDidUpdate!="function"||N===i.memoizedProps&&te===i.memoizedState||(a.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&te===i.memoizedState||(a.flags|=1024),h=!1)}return _=h,ud(i,a),h=(a.flags&128)!==0,_||h?(_=a.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:_.render(),a.flags|=1,i!==null&&h?(a.child=Ka(a,i.child,null,g),a.child=Ka(a,null,c,g)):on(i,a,c,g),a.memoizedState=_.state,i=a.child):i=ci(i,a,g),i}function US(i,a,c,h){return ml(),a.flags|=256,on(i,a,c,h),a.child}var bm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _m(i){return{baseLanes:i,cachePool:RE()}}function Em(i,a,c){return i=i!==null?i.childLanes&~c:0,a&&(i|=or),i}function FS(i,a,c){var h=a.pendingProps,g=!1,_=(a.flags&128)!==0,N;if((N=_)||(N=i!==null&&i.memoizedState===null?!1:(Gt.current&2)!==0),N&&(g=!0,a.flags&=-129),N=(a.flags&32)!==0,a.flags&=-33,i===null){if(at){if(g?Mi(a):zi(),at){var O=kt,M;if(M=O){e:{for(M=O,O=Ir;M.nodeType!==8;){if(!O){O=null;break e}if(M=yr(M.nextSibling),M===null){O=null;break e}}O=M}O!==null?(a.memoizedState={dehydrated:O,treeContext:Lo!==null?{id:ri,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},M=zn(18,null,null,0),M.stateNode=O,M.return=a,a.child=M,En=a,kt=null,M=!0):M=!1}M||Mo(a)}if(O=a.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return ig(O)?a.lanes=32:a.lanes=536870912,null;li(a)}return O=h.children,h=h.fallback,g?(zi(),g=a.mode,O=dd({mode:"hidden",children:O},g),h=Do(h,g,c,null),O.return=a,h.return=a,O.sibling=h,a.child=O,g=a.child,g.memoizedState=_m(c),g.childLanes=Em(i,N,c),a.memoizedState=bm,h):(Mi(a),Sm(a,O))}if(M=i.memoizedState,M!==null&&(O=M.dehydrated,O!==null)){if(_)a.flags&256?(Mi(a),a.flags&=-257,a=xm(i,a,c)):a.memoizedState!==null?(zi(),a.child=i.child,a.flags|=128,a=null):(zi(),g=h.fallback,O=a.mode,h=dd({mode:"visible",children:h.children},O),g=Do(g,O,c,null),g.flags|=2,h.return=a,g.return=a,h.sibling=g,a.child=h,Ka(a,i.child,null,c),h=a.child,h.memoizedState=_m(c),h.childLanes=Em(i,N,c),a.memoizedState=bm,a=g);else if(Mi(a),ig(O)){if(N=O.nextSibling&&O.nextSibling.dataset,N)var X=N.dgst;N=X,h=Error(r(419)),h.stack="",h.digest=N,gl({value:h,source:null,stack:null}),a=xm(i,a,c)}else if(Jt||yl(i,a,c,!1),N=(c&i.childLanes)!==0,Jt||N){if(N=yt,N!==null&&(h=c&-c,h=(h&42)!==0?1:op(h),h=(h&(N.suspendedLanes|c))!==0?0:h,h!==0&&h!==M.retryLane))throw M.retryLane=h,ja(i,h),$n(N,i,h),DS;O.data==="$?"||Um(),a=xm(i,a,c)}else O.data==="$?"?(a.flags|=192,a.child=i.child,a=null):(i=M.treeContext,kt=yr(O.nextSibling),En=a,at=!0,Po=null,Ir=!1,i!==null&&(nr[rr++]=ri,nr[rr++]=ii,nr[rr++]=Lo,ri=i.id,ii=i.overflow,Lo=a),a=Sm(a,h.children),a.flags|=4096);return a}return g?(zi(),g=h.fallback,O=a.mode,M=i.child,X=M.sibling,h=ni(M,{mode:"hidden",children:h.children}),h.subtreeFlags=M.subtreeFlags&65011712,X!==null?g=ni(X,g):(g=Do(g,O,c,null),g.flags|=2),g.return=a,h.return=a,h.sibling=g,a.child=h,h=g,g=a.child,O=i.child.memoizedState,O===null?O=_m(c):(M=O.cachePool,M!==null?(X=Ht._currentValue,M=M.parent!==X?{parent:X,pool:X}:M):M=RE(),O={baseLanes:O.baseLanes|c,cachePool:M}),g.memoizedState=O,g.childLanes=Em(i,N,c),a.memoizedState=bm,h):(Mi(a),c=i.child,i=c.sibling,c=ni(c,{mode:"visible",children:h.children}),c.return=a,c.sibling=null,i!==null&&(N=a.deletions,N===null?(a.deletions=[i],a.flags|=16):N.push(i)),a.child=c,a.memoizedState=null,c)}function Sm(i,a){return a=dd({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function dd(i,a){return i=zn(22,i,null,a),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function xm(i,a,c){return Ka(a,i.child,null,c),i=Sm(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function $S(i,a,c){i.lanes|=a;var h=i.alternate;h!==null&&(h.lanes|=a),Up(i.return,a,c)}function Am(i,a,c,h,g){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:g}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=h,_.tail=c,_.tailMode=g)}function HS(i,a,c){var h=a.pendingProps,g=h.revealOrder,_=h.tail;if(on(i,a,h.children,c),h=Gt.current,(h&2)!==0)h=h&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&$S(i,c,a);else if(i.tag===19)$S(i,c,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(ne(Gt,h),g){case"forwards":for(c=a.child,g=null;c!==null;)i=c.alternate,i!==null&&sd(i)===null&&(g=c),c=c.sibling;c=g,c===null?(g=a.child,a.child=null):(g=c.sibling,c.sibling=null),Am(a,!1,g,c,_);break;case"backwards":for(c=null,g=a.child,a.child=null;g!==null;){if(i=g.alternate,i!==null&&sd(i)===null){a.child=g;break}i=g.sibling,g.sibling=c,c=g,g=i}Am(a,!0,c,null,_);break;case"together":Am(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ci(i,a,c){if(i!==null&&(a.dependencies=i.dependencies),$i|=a.lanes,(c&a.childLanes)===0)if(i!==null){if(yl(i,a,c,!1),(c&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,c=ni(i,i.pendingProps),a.child=c,c.return=a;i.sibling!==null;)i=i.sibling,c=c.sibling=ni(i,i.pendingProps),c.return=a;c.sibling=null}return a.child}function wm(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&Gu(i)))}function jP(i,a,c){switch(a.tag){case 3:xe(a,a.stateNode.containerInfo),Oi(a,Ht,i.memoizedState.cache),ml();break;case 27:case 5:Ve(a);break;case 4:xe(a,a.stateNode.containerInfo);break;case 10:Oi(a,a.type,a.memoizedProps.value);break;case 13:var h=a.memoizedState;if(h!==null)return h.dehydrated!==null?(Mi(a),a.flags|=128,null):(c&a.child.childLanes)!==0?FS(i,a,c):(Mi(a),i=ci(i,a,c),i!==null?i.sibling:null);Mi(a);break;case 19:var g=(i.flags&128)!==0;if(h=(c&a.childLanes)!==0,h||(yl(i,a,c,!1),h=(c&a.childLanes)!==0),g){if(h)return HS(i,a,c);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),ne(Gt,Gt.current),h)break;return null;case 22:case 23:return a.lanes=0,MS(i,a,c);case 24:Oi(a,Ht,i.memoizedState.cache)}return ci(i,a,c)}function GS(i,a,c){if(i!==null)if(i.memoizedProps!==a.pendingProps)Jt=!0;else{if(!wm(i,c)&&(a.flags&128)===0)return Jt=!1,jP(i,a,c);Jt=(i.flags&131072)!==0}else Jt=!1,at&&(a.flags&1048576)!==0&&EE(a,Hu,a.index);switch(a.lanes=0,a.tag){case 16:e:{i=a.pendingProps;var h=a.elementType,g=h._init;if(h=g(h._payload),a.type=h,typeof h=="function")Lp(h)?(i=Fo(h,i),a.tag=1,a=VS(null,a,h,i,c)):(a.tag=0,a=vm(null,a,h,i,c));else{if(h!=null){if(g=h.$$typeof,g===R){a.tag=11,a=LS(null,a,h,i,c);break e}else if(g===D){a.tag=14,a=jS(null,a,h,i,c);break e}}throw a=q(h)||h,Error(r(306,a,""))}}return a;case 0:return vm(i,a,a.type,a.pendingProps,c);case 1:return h=a.type,g=Fo(h,a.pendingProps),VS(i,a,h,g,c);case 3:e:{if(xe(a,a.stateNode.containerInfo),i===null)throw Error(r(387));h=a.pendingProps;var _=a.memoizedState;g=_.element,Wp(i,a),Al(a,h,null,c);var N=a.memoizedState;if(h=N.cache,Oi(a,Ht,h),h!==_.cache&&Fp(a,[Ht],c,!0),xl(),h=N.element,_.isDehydrated)if(_={element:h,isDehydrated:!1,cache:N.cache},a.updateQueue.baseState=_,a.memoizedState=_,a.flags&256){a=US(i,a,h,c);break e}else if(h!==g){g=er(Error(r(424)),a),gl(g),a=US(i,a,h,c);break e}else{switch(i=a.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(kt=yr(i.firstChild),En=a,at=!0,Po=null,Ir=!0,c=xS(a,null,h,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(ml(),h===g){a=ci(i,a,c);break e}on(i,a,h,c)}a=a.child}return a;case 26:return ud(i,a),i===null?(c=Zx(a.type,null,a.pendingProps,null))?a.memoizedState=c:at||(c=a.type,i=a.pendingProps,h=wd(ve.current).createElement(c),h[hn]=a,h[kn]=i,sn(h,c,i),Qt(h),a.stateNode=h):a.memoizedState=Zx(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return Ve(a),i===null&&at&&(h=a.stateNode=Kx(a.type,a.pendingProps,ve.current),En=a,Ir=!0,g=kt,qi(a.type)?(og=g,kt=yr(h.firstChild)):kt=g),on(i,a,a.pendingProps.children,c),ud(i,a),i===null&&(a.flags|=4194304),a.child;case 5:return i===null&&at&&((g=h=kt)&&(h=cM(h,a.type,a.pendingProps,Ir),h!==null?(a.stateNode=h,En=a,kt=yr(h.firstChild),Ir=!1,g=!0):g=!1),g||Mo(a)),Ve(a),g=a.type,_=a.pendingProps,N=i!==null?i.memoizedProps:null,h=_.children,tg(g,_)?h=null:N!==null&&tg(g,N)&&(a.flags|=32),a.memoizedState!==null&&(g=em(i,a,CP,null,null,c),Kl._currentValue=g),ud(i,a),on(i,a,h,c),a.child;case 6:return i===null&&at&&((i=c=kt)&&(c=uM(c,a.pendingProps,Ir),c!==null?(a.stateNode=c,En=a,kt=null,i=!0):i=!1),i||Mo(a)),null;case 13:return FS(i,a,c);case 4:return xe(a,a.stateNode.containerInfo),h=a.pendingProps,i===null?a.child=Ka(a,null,h,c):on(i,a,h,c),a.child;case 11:return LS(i,a,a.type,a.pendingProps,c);case 7:return on(i,a,a.pendingProps,c),a.child;case 8:return on(i,a,a.pendingProps.children,c),a.child;case 12:return on(i,a,a.pendingProps.children,c),a.child;case 10:return h=a.pendingProps,Oi(a,a.type,h.value),on(i,a,h.children,c),a.child;case 9:return g=a.type._context,h=a.pendingProps.children,Bo(a),g=pn(g),h=h(g),a.flags|=1,on(i,a,h,c),a.child;case 14:return jS(i,a,a.type,a.pendingProps,c);case 15:return PS(i,a,a.type,a.pendingProps,c);case 19:return HS(i,a,c);case 31:return h=a.pendingProps,c=a.mode,h={mode:h.mode,children:h.children},i===null?(c=dd(h,c),c.ref=a.ref,a.child=c,c.return=a,a=c):(c=ni(i.child,h),c.ref=a.ref,a.child=c,c.return=a,a=c),a;case 22:return MS(i,a,c);case 24:return Bo(a),h=pn(Ht),i===null?(g=Gp(),g===null&&(g=yt,_=$p(),g.pooledCache=_,_.refCount++,_!==null&&(g.pooledCacheLanes|=c),g=_),a.memoizedState={parent:h,cache:g},qp(a),Oi(a,Ht,g)):((i.lanes&c)!==0&&(Wp(i,a),Al(a,null,null,c),xl()),g=i.memoizedState,_=a.memoizedState,g.parent!==h?(g={parent:h,cache:h},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),Oi(a,Ht,h)):(h=_.cache,Oi(a,Ht,h),h!==g.cache&&Fp(a,[Ht],c,!0))),on(i,a,a.pendingProps.children,c),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function ui(i){i.flags|=4}function KS(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!eA(a)){if(a=ir.current,a!==null&&((et&4194048)===et?Or!==null:(et&62914560)!==et&&(et&536870912)===0||a!==Or))throw El=Kp,kE;i.flags|=8192}}function fd(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?A0():536870912,i.lanes|=a,Ya|=a)}function Il(i,a){if(!at)switch(i.tailMode){case"hidden":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.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?a||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function At(i){var a=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(a)for(var g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=c,a}function PP(i,a,c){var h=a.pendingProps;switch(zp(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(a),null;case 1:return At(a),null;case 3:return c=a.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),a.memoizedState.cache!==h&&(a.flags|=2048),ai(Ht),je(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(pl(a)?ui(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,AE())),At(a),null;case 26:return c=a.memoizedState,i===null?(ui(a),c!==null?(At(a),KS(a,c)):(At(a),a.flags&=-16777217)):c?c!==i.memoizedState?(ui(a),At(a),KS(a,c)):(At(a),a.flags&=-16777217):(i.memoizedProps!==h&&ui(a),At(a),a.flags&=-16777217),null;case 27:Xe(a),c=ve.current;var g=a.type;if(i!==null&&a.stateNode!=null)i.memoizedProps!==h&&ui(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return At(a),null}i=ue.current,pl(a)?SE(a):(i=Kx(g,h,c),a.stateNode=i,ui(a))}return At(a),null;case 5:if(Xe(a),c=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==h&&ui(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return At(a),null}if(i=ue.current,pl(a))SE(a);else{switch(g=wd(ve.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(c,{is:h.is}):g.createElement(c)}}i[hn]=a,i[kn]=h;e:for(g=a.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===a)break e;for(;g.sibling===null;){if(g.return===null||g.return===a)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}a.stateNode=i;e:switch(sn(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&&ui(a)}}return At(a),a.flags&=-16777217,null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==h&&ui(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error(r(166));if(i=ve.current,pl(a)){if(i=a.stateNode,c=a.memoizedProps,h=null,g=En,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[hn]=a,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||Bx(i.nodeValue,c)),i||Mo(a)}else i=wd(i).createTextNode(h),i[hn]=a,a.stateNode=i}return At(a),null;case 13:if(h=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=pl(a),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[hn]=a}else ml(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;At(a),g=!1}else g=AE(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(li(a),a):(li(a),null)}if(li(a),(a.flags&128)!==0)return a.lanes=c,a;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=a.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var _=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==g&&(h.flags|=2048)}return c!==i&&c&&(a.child.flags|=8192),fd(a,a.updateQueue),At(a),null;case 4:return je(),i===null&&Ym(a.stateNode.containerInfo),At(a),null;case 10:return ai(a.type),At(a),null;case 19:if(G(Gt),g=a.memoizedState,g===null)return At(a),null;if(h=(a.flags&128)!==0,_=g.rendering,_===null)if(h)Il(g,!1);else{if(Nt!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(_=sd(i),_!==null){for(a.flags|=128,Il(g,!1),i=_.updateQueue,a.updateQueue=i,fd(a,i),a.subtreeFlags=0,i=c,c=a.child;c!==null;)_E(c,i),c=c.sibling;return ne(Gt,Gt.current&1|2),a.child}i=i.sibling}g.tail!==null&&fn()>md&&(a.flags|=128,h=!0,Il(g,!1),a.lanes=4194304)}else{if(!h)if(i=sd(_),i!==null){if(a.flags|=128,h=!0,i=i.updateQueue,a.updateQueue=i,fd(a,i),Il(g,!0),g.tail===null&&g.tailMode==="hidden"&&!_.alternate&&!at)return At(a),null}else 2*fn()-g.renderingStartTime>md&&c!==536870912&&(a.flags|=128,h=!0,Il(g,!1),a.lanes=4194304);g.isBackwards?(_.sibling=a.child,a.child=_):(i=g.last,i!==null?i.sibling=_:a.child=_,g.last=_)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=fn(),a.sibling=null,i=Gt.current,ne(Gt,h?i&1|2:i&1),a):(At(a),null);case 22:case 23:return li(a),Qp(),h=a.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(c&536870912)!==0&&(a.flags&128)===0&&(At(a),a.subtreeFlags&6&&(a.flags|=8192)):At(a),c=a.updateQueue,c!==null&&fd(a,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==c&&(a.flags|=2048),i!==null&&G(Vo),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ai(Ht),At(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function MP(i,a){switch(zp(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return ai(Ht),je(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return Xe(a),null;case 13:if(li(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));ml()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return G(Gt),null;case 4:return je(),null;case 10:return ai(a.type),null;case 22:case 23:return li(a),Qp(),i!==null&&G(Vo),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return ai(Ht),null;case 25:return null;default:return null}}function qS(i,a){switch(zp(a),a.tag){case 3:ai(Ht),je();break;case 26:case 27:case 5:Xe(a);break;case 4:je();break;case 13:li(a);break;case 19:G(Gt);break;case 10:ai(a.type);break;case 22:case 23:li(a),Qp(),i!==null&&G(Vo);break;case 24:ai(Ht)}}function Ol(i,a){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var g=h.next;c=g;do{if((c.tag&i)===i){h=void 0;var _=c.create,N=c.inst;h=_(),N.destroy=h}c=c.next}while(c!==g)}}catch(O){mt(a,a.return,O)}}function Bi(i,a,c){try{var h=a.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var _=g.next;h=_;do{if((h.tag&i)===i){var N=h.inst,O=N.destroy;if(O!==void 0){N.destroy=void 0,g=a;var M=c,X=O;try{X()}catch(se){mt(g,M,se)}}}h=h.next}while(h!==_)}}catch(se){mt(a,a.return,se)}}function WS(i){var a=i.updateQueue;if(a!==null){var c=i.stateNode;try{jE(a,c)}catch(h){mt(i,i.return,h)}}}function ZS(i,a,c){c.props=Fo(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){mt(i,a,h)}}function Dl(i,a){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(g){mt(i,a,g)}}function Dr(i,a){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(g){mt(i,a,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(g){mt(i,a,g)}else c.current=null}function YS(i){var a=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(a){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(g){mt(i,i.return,g)}}function Tm(i,a,c){try{var h=i.stateNode;iM(h,i.type,c,a),h[kn]=a}catch(g){mt(i,i.return,g)}}function XS(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&qi(i.type)||i.tag===4}function Cm(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||XS(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&&qi(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 Rm(i,a,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,a):(a=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,a.appendChild(i),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=Ad));else if(h!==4&&(h===27&&qi(i.type)&&(c=i.stateNode,a=null),i=i.child,i!==null))for(Rm(i,a,c),i=i.sibling;i!==null;)Rm(i,a,c),i=i.sibling}function hd(i,a,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?c.insertBefore(i,a):c.appendChild(i);else if(h!==4&&(h===27&&qi(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(hd(i,a,c),i=i.sibling;i!==null;)hd(i,a,c),i=i.sibling}function QS(i){var a=i.stateNode,c=i.memoizedProps;try{for(var h=i.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);sn(a,h,c),a[hn]=i,a[kn]=c}catch(_){mt(i,i.return,_)}}var di=!1,Dt=!1,km=!1,JS=typeof WeakSet=="function"?WeakSet:Set,en=null;function zP(i,a){if(i=i.containerInfo,Jm=Id,i=uE(i),Cp(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 g=h.anchorOffset,_=h.focusNode;h=h.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var N=0,O=-1,M=-1,X=0,se=0,de=i,te=null;t:for(;;){for(var re;de!==c||g!==0&&de.nodeType!==3||(O=N+g),de!==_||h!==0&&de.nodeType!==3||(M=N+h),de.nodeType===3&&(N+=de.nodeValue.length),(re=de.firstChild)!==null;)te=de,de=re;for(;;){if(de===i)break t;if(te===c&&++X===g&&(O=N),te===_&&++se===h&&(M=N),(re=de.nextSibling)!==null)break;de=te,te=de.parentNode}de=re}c=O===-1||M===-1?null:{start:O,end:M}}else c=null}c=c||{start:0,end:0}}else c=null;for(eg={focusedElem:i,selectionRange:c},Id=!1,en=a;en!==null;)if(a=en,i=a.child,(a.subtreeFlags&1024)!==0&&i!==null)i.return=a,en=i;else for(;en!==null;){switch(a=en,_=a.alternate,i=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,c=a,g=_.memoizedProps,_=_.memoizedState,h=c.stateNode;try{var Pe=Fo(c.type,g,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Pe,_),h.__reactInternalSnapshotBeforeUpdate=i}catch(De){mt(c,c.return,De)}}break;case 3:if((i&1024)!==0){if(i=a.stateNode.containerInfo,c=i.nodeType,c===9)rg(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":rg(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=a.sibling,i!==null){i.return=a.return,en=i;break}en=a.return}}function ex(i,a,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:Vi(i,c),h&4&&Ol(5,c);break;case 1:if(Vi(i,c),h&4)if(i=c.stateNode,a===null)try{i.componentDidMount()}catch(N){mt(c,c.return,N)}else{var g=Fo(c.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(g,a,i.__reactInternalSnapshotBeforeUpdate)}catch(N){mt(c,c.return,N)}}h&64&&WS(c),h&512&&Dl(c,c.return);break;case 3:if(Vi(i,c),h&64&&(i=c.updateQueue,i!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{jE(i,a)}catch(N){mt(c,c.return,N)}}break;case 27:a===null&&h&4&&QS(c);case 26:case 5:Vi(i,c),a===null&&h&4&&YS(c),h&512&&Dl(c,c.return);break;case 12:Vi(i,c);break;case 13:Vi(i,c),h&4&&rx(i,c),h&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=qP.bind(null,c),dM(i,c))));break;case 22:if(h=c.memoizedState!==null||di,!h){a=a!==null&&a.memoizedState!==null||Dt,g=di;var _=Dt;di=h,(Dt=a)&&!_?Ui(i,c,(c.subtreeFlags&8772)!==0):Vi(i,c),di=g,Dt=_}break;case 30:break;default:Vi(i,c)}}function tx(i){var a=i.alternate;a!==null&&(i.alternate=null,tx(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&lp(a)),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 _t=null,On=!1;function fi(i,a,c){for(c=c.child;c!==null;)nx(i,a,c),c=c.sibling}function nx(i,a,c){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(Ce,c)}catch{}switch(c.tag){case 26:Dt||Dr(c,a),fi(i,a,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Dt||Dr(c,a);var h=_t,g=On;qi(c.type)&&(_t=c.stateNode,On=!1),fi(i,a,c),Fl(c.stateNode),_t=h,On=g;break;case 5:Dt||Dr(c,a);case 6:if(h=_t,g=On,_t=null,fi(i,a,c),_t=h,On=g,_t!==null)if(On)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(c.stateNode)}catch(_){mt(c,a,_)}else try{_t.removeChild(c.stateNode)}catch(_){mt(c,a,_)}break;case 18:_t!==null&&(On?(i=_t,Hx(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),Yl(i)):Hx(_t,c.stateNode));break;case 4:h=_t,g=On,_t=c.stateNode.containerInfo,On=!0,fi(i,a,c),_t=h,On=g;break;case 0:case 11:case 14:case 15:Dt||Bi(2,c,a),Dt||Bi(4,c,a),fi(i,a,c);break;case 1:Dt||(Dr(c,a),h=c.stateNode,typeof h.componentWillUnmount=="function"&&ZS(c,a,h)),fi(i,a,c);break;case 21:fi(i,a,c);break;case 22:Dt=(h=Dt)||c.memoizedState!==null,fi(i,a,c),Dt=h;break;default:fi(i,a,c)}}function rx(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Yl(i)}catch(c){mt(a,a.return,c)}}function BP(i){switch(i.tag){case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new JS),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new JS),a;default:throw Error(r(435,i.tag))}}function Nm(i,a){var c=BP(i);a.forEach(function(h){var g=WP.bind(null,i,h);c.has(h)||(c.add(h),h.then(g,g))})}function Bn(i,a){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var g=c[h],_=i,N=a,O=N;e:for(;O!==null;){switch(O.tag){case 27:if(qi(O.type)){_t=O.stateNode,On=!1;break e}break;case 5:_t=O.stateNode,On=!1;break e;case 3:case 4:_t=O.stateNode.containerInfo,On=!0;break e}O=O.return}if(_t===null)throw Error(r(160));nx(_,N,g),_t=null,On=!1,_=g.alternate,_!==null&&(_.return=null),g.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)ix(a,i),a=a.sibling}var gr=null;function ix(i,a){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Bn(a,i),Vn(i),h&4&&(Bi(3,i,i.return),Ol(3,i),Bi(5,i,i.return));break;case 1:Bn(a,i),Vn(i),h&512&&(Dt||c===null||Dr(c,c.return)),h&64&&di&&(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 g=gr;if(Bn(a,i),Vn(i),h&512&&(Dt||c===null||Dr(c,c.return)),h&4){var _=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,g=g.ownerDocument||g;t:switch(h){case"title":_=g.getElementsByTagName("title")[0],(!_||_[rl]||_[hn]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=g.createElement(h),g.head.insertBefore(_,g.querySelector("head > title"))),sn(_,h,c),_[hn]=i,Qt(_),h=_;break e;case"link":var N=Qx("link","href",g).get(h+(c.href||""));if(N){for(var O=0;O<N.length;O++)if(_=N[O],_.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){N.splice(O,1);break t}}_=g.createElement(h),sn(_,h,c),g.head.appendChild(_);break;case"meta":if(N=Qx("meta","content",g).get(h+(c.content||""))){for(O=0;O<N.length;O++)if(_=N[O],_.getAttribute("content")===(c.content==null?null:""+c.content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){N.splice(O,1);break t}}_=g.createElement(h),sn(_,h,c),g.head.appendChild(_);break;default:throw Error(r(468,h))}_[hn]=i,Qt(_),h=_}i.stateNode=h}else Jx(g,i.type,i.stateNode);else i.stateNode=Xx(g,h,i.memoizedProps);else _!==h?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,h===null?Jx(g,i.type,i.stateNode):Xx(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Tm(i,i.memoizedProps,c.memoizedProps)}break;case 27:Bn(a,i),Vn(i),h&512&&(Dt||c===null||Dr(c,c.return)),c!==null&&h&4&&Tm(i,i.memoizedProps,c.memoizedProps);break;case 5:if(Bn(a,i),Vn(i),h&512&&(Dt||c===null||Dr(c,c.return)),i.flags&32){g=i.stateNode;try{Ra(g,"")}catch(re){mt(i,i.return,re)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,Tm(i,g,c!==null?c.memoizedProps:g)),h&1024&&(km=!0);break;case 6:if(Bn(a,i),Vn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(re){mt(i,i.return,re)}}break;case 3:if(Rd=null,g=gr,gr=Td(a.containerInfo),Bn(a,i),gr=g,Vn(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Yl(a.containerInfo)}catch(re){mt(i,i.return,re)}km&&(km=!1,ox(i));break;case 4:h=gr,gr=Td(i.stateNode.containerInfo),Bn(a,i),Vn(i),gr=h;break;case 12:Bn(a,i),Vn(i);break;case 13:Bn(a,i),Vn(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Pm=fn()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Nm(i,h)));break;case 22:g=i.memoizedState!==null;var M=c!==null&&c.memoizedState!==null,X=di,se=Dt;if(di=X||g,Dt=se||M,Bn(a,i),Dt=se,di=X,Vn(i),h&8192)e:for(a=i.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(c===null||M||di||Dt||$o(i)),c=null,a=i;;){if(a.tag===5||a.tag===26){if(c===null){M=c=a;try{if(_=M.stateNode,g)N=_.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{O=M.stateNode;var de=M.memoizedProps.style,te=de!=null&&de.hasOwnProperty("display")?de.display:null;O.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(re){mt(M,M.return,re)}}}else if(a.tag===6){if(c===null){M=a;try{M.stateNode.nodeValue=g?"":M.memoizedProps}catch(re){mt(M,M.return,re)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;c===a&&(c=null),a=a.return}c===a&&(c=null),a.sibling.return=a.return,a=a.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,Nm(i,c))));break;case 19:Bn(a,i),Vn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Nm(i,h)));break;case 30:break;case 21:break;default:Bn(a,i),Vn(i)}}function Vn(i){var a=i.flags;if(a&2){try{for(var c,h=i.return;h!==null;){if(XS(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var g=c.stateNode,_=Cm(i);hd(i,_,g);break;case 5:var N=c.stateNode;c.flags&32&&(Ra(N,""),c.flags&=-33);var O=Cm(i);hd(i,O,N);break;case 3:case 4:var M=c.stateNode.containerInfo,X=Cm(i);Rm(i,X,M);break;default:throw Error(r(161))}}catch(se){mt(i,i.return,se)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function ox(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;ox(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function Vi(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)ex(i,a.alternate,a),a=a.sibling}function $o(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:Bi(4,a,a.return),$o(a);break;case 1:Dr(a,a.return);var c=a.stateNode;typeof c.componentWillUnmount=="function"&&ZS(a,a.return,c),$o(a);break;case 27:Fl(a.stateNode);case 26:case 5:Dr(a,a.return),$o(a);break;case 22:a.memoizedState===null&&$o(a);break;case 30:$o(a);break;default:$o(a)}i=i.sibling}}function Ui(i,a,c){for(c=c&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var h=a.alternate,g=i,_=a,N=_.flags;switch(_.tag){case 0:case 11:case 15:Ui(g,_,c),Ol(4,_);break;case 1:if(Ui(g,_,c),h=_,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(X){mt(h,h.return,X)}if(h=_,g=h.updateQueue,g!==null){var O=h.stateNode;try{var M=g.shared.hiddenCallbacks;if(M!==null)for(g.shared.hiddenCallbacks=null,g=0;g<M.length;g++)LE(M[g],O)}catch(X){mt(h,h.return,X)}}c&&N&64&&WS(_),Dl(_,_.return);break;case 27:QS(_);case 26:case 5:Ui(g,_,c),c&&h===null&&N&4&&YS(_),Dl(_,_.return);break;case 12:Ui(g,_,c);break;case 13:Ui(g,_,c),c&&N&4&&rx(g,_);break;case 22:_.memoizedState===null&&Ui(g,_,c),Dl(_,_.return);break;case 30:break;default:Ui(g,_,c)}a=a.sibling}}function Im(i,a){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&vl(c))}function Om(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&vl(i))}function Lr(i,a,c,h){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ax(i,a,c,h),a=a.sibling}function ax(i,a,c,h){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Lr(i,a,c,h),g&2048&&Ol(9,a);break;case 1:Lr(i,a,c,h);break;case 3:Lr(i,a,c,h),g&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&vl(i)));break;case 12:if(g&2048){Lr(i,a,c,h),i=a.stateNode;try{var _=a.memoizedProps,N=_.id,O=_.onPostCommit;typeof O=="function"&&O(N,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(M){mt(a,a.return,M)}}else Lr(i,a,c,h);break;case 13:Lr(i,a,c,h);break;case 23:break;case 22:_=a.stateNode,N=a.alternate,a.memoizedState!==null?_._visibility&2?Lr(i,a,c,h):Ll(i,a):_._visibility&2?Lr(i,a,c,h):(_._visibility|=2,qa(i,a,c,h,(a.subtreeFlags&10256)!==0)),g&2048&&Im(N,a);break;case 24:Lr(i,a,c,h),g&2048&&Om(a.alternate,a);break;default:Lr(i,a,c,h)}}function qa(i,a,c,h,g){for(g=g&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var _=i,N=a,O=c,M=h,X=N.flags;switch(N.tag){case 0:case 11:case 15:qa(_,N,O,M,g),Ol(8,N);break;case 23:break;case 22:var se=N.stateNode;N.memoizedState!==null?se._visibility&2?qa(_,N,O,M,g):Ll(_,N):(se._visibility|=2,qa(_,N,O,M,g)),g&&X&2048&&Im(N.alternate,N);break;case 24:qa(_,N,O,M,g),g&&X&2048&&Om(N.alternate,N);break;default:qa(_,N,O,M,g)}a=a.sibling}}function Ll(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var c=i,h=a,g=h.flags;switch(h.tag){case 22:Ll(c,h),g&2048&&Im(h.alternate,h);break;case 24:Ll(c,h),g&2048&&Om(h.alternate,h);break;default:Ll(c,h)}a=a.sibling}}var jl=8192;function Wa(i){if(i.subtreeFlags&jl)for(i=i.child;i!==null;)sx(i),i=i.sibling}function sx(i){switch(i.tag){case 26:Wa(i),i.flags&jl&&i.memoizedState!==null&&AM(gr,i.memoizedState,i.memoizedProps);break;case 5:Wa(i);break;case 3:case 4:var a=gr;gr=Td(i.stateNode.containerInfo),Wa(i),gr=a;break;case 22:i.memoizedState===null&&(a=i.alternate,a!==null&&a.memoizedState!==null?(a=jl,jl=16777216,Wa(i),jl=a):Wa(i));break;default:Wa(i)}}function lx(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function Pl(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];en=h,ux(h,i)}lx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)cx(i),i=i.sibling}function cx(i){switch(i.tag){case 0:case 11:case 15:Pl(i),i.flags&2048&&Bi(9,i,i.return);break;case 3:Pl(i);break;case 12:Pl(i);break;case 22:var a=i.stateNode;i.memoizedState!==null&&a._visibility&2&&(i.return===null||i.return.tag!==13)?(a._visibility&=-3,pd(i)):Pl(i);break;default:Pl(i)}}function pd(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];en=h,ux(h,i)}lx(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:Bi(8,a,a.return),pd(a);break;case 22:c=a.stateNode,c._visibility&2&&(c._visibility&=-3,pd(a));break;default:pd(a)}i=i.sibling}}function ux(i,a){for(;en!==null;){var c=en;switch(c.tag){case 0:case 11:case 15:Bi(8,c,a);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:vl(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,en=h;else e:for(c=i;en!==null;){h=en;var g=h.sibling,_=h.return;if(tx(h),h===c){en=null;break e}if(g!==null){g.return=_,en=g;break e}en=_}}}var VP={getCacheForType:function(i){var a=pn(Ht),c=a.data.get(i);return c===void 0&&(c=i(),a.data.set(i,c)),c}},UP=typeof WeakMap=="function"?WeakMap:Map,ct=0,yt=null,Ze=null,et=0,ut=0,Un=null,Fi=!1,Za=!1,Dm=!1,hi=0,Nt=0,$i=0,Ho=0,Lm=0,or=0,Ya=0,Ml=null,Dn=null,jm=!1,Pm=0,md=1/0,gd=null,Hi=null,an=0,Gi=null,Xa=null,Qa=0,Mm=0,zm=null,dx=null,zl=0,Bm=null;function Fn(){if((ct&2)!==0&&et!==0)return et&-et;if(z.T!==null){var i=Ba;return i!==0?i:Km()}return C0()}function fx(){or===0&&(or=(et&536870912)===0||at?x0():536870912);var i=ir.current;return i!==null&&(i.flags|=32),or}function $n(i,a,c){(i===yt&&(ut===2||ut===9)||i.cancelPendingCommit!==null)&&(Ja(i,0),Ki(i,et,or,!1)),nl(i,c),((ct&2)===0||i!==yt)&&(i===yt&&((ct&2)===0&&(Ho|=c),Nt===4&&Ki(i,et,or,!1)),jr(i))}function hx(i,a,c){if((ct&6)!==0)throw Error(r(327));var h=!c&&(a&124)===0&&(a&i.expiredLanes)===0||Ro(i,a),g=h?HP(i,a):Fm(i,a,!0),_=h;do{if(g===0){Za&&!h&&Ki(i,a,0,!1);break}else{if(c=i.current.alternate,_&&!FP(c)){g=Fm(i,a,!1),_=!1;continue}if(g===2){if(_=a,i.errorRecoveryDisabledLanes&_)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){a=N;e:{var O=i;g=Ml;var M=O.current.memoizedState.isDehydrated;if(M&&(Ja(O,N).flags|=256),N=Fm(O,N,!1),N!==2){if(Dm&&!M){O.errorRecoveryDisabledLanes|=_,Ho|=_,g=4;break e}_=Dn,Dn=g,_!==null&&(Dn===null?Dn=_:Dn.push.apply(Dn,_))}g=N}if(_=!1,g!==2)continue}}if(g===1){Ja(i,0),Ki(i,a,0,!0);break}e:{switch(h=i,_=g,_){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Ki(h,a,or,!Fi);break e;case 2:Dn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(g=Pm+300-fn(),10<g)){if(Ki(h,a,or,!Fi),Co(h,0,!0)!==0)break e;h.timeoutHandle=Fx(px.bind(null,h,c,Dn,gd,jm,a,or,Ho,Ya,Fi,_,2,-0,0),g);break e}px(h,c,Dn,gd,jm,a,or,Ho,Ya,Fi,_,0,-0,0)}}break}while(!0);jr(i)}function px(i,a,c,h,g,_,N,O,M,X,se,de,te,re){if(i.timeoutHandle=-1,de=a.subtreeFlags,(de&8192||(de&16785408)===16785408)&&(Gl={stylesheets:null,count:0,unsuspend:xM},sx(a),de=wM(),de!==null)){i.cancelPendingCommit=de(Ex.bind(null,i,a,_,c,h,g,N,O,M,se,1,te,re)),Ki(i,_,N,!X);return}Ex(i,a,_,c,h,g,N,O,M)}function FP(i){for(var a=i;;){var c=a.tag;if((c===0||c===11||c===15)&&a.flags&16384&&(c=a.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var g=c[h],_=g.getSnapshot;g=g.value;try{if(!Mn(_(),g))return!1}catch{return!1}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ki(i,a,c,h){a&=~Lm,a&=~Ho,i.suspendedLanes|=a,i.pingedLanes&=~a,h&&(i.warmLanes|=a),h=i.expirationTimes;for(var g=a;0<g;){var _=31-gt(g),N=1<<_;h[_]=-1,g&=~N}c!==0&&w0(i,c,a)}function yd(){return(ct&6)===0?(Bl(0),!1):!0}function Vm(){if(Ze!==null){if(ut===0)var i=Ze.return;else i=Ze,oi=zo=null,rm(i),Ga=null,kl=0,i=Ze;for(;i!==null;)qS(i.alternate,i),i=i.return;Ze=null}}function Ja(i,a){var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,aM(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),Vm(),yt=i,Ze=c=ni(i.current,null),et=a,ut=0,Un=null,Fi=!1,Za=Ro(i,a),Dm=!1,Ya=or=Lm=Ho=$i=Nt=0,Dn=Ml=null,jm=!1,(a&8)!==0&&(a|=a&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=a;0<h;){var g=31-gt(h),_=1<<g;a|=i[g],h&=~_}return hi=a,Bu(),c}function mx(i,a){Ke=null,z.H=id,a===_l||a===Wu?(a=OE(),ut=3):a===kE?(a=OE(),ut=4):ut=a===DS?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Un=a,Ze===null&&(Nt=1,cd(i,er(a,i.current)))}function gx(){var i=z.H;return z.H=id,i===null?id:i}function yx(){var i=z.A;return z.A=VP,i}function Um(){Nt=4,Fi||(et&4194048)!==et&&ir.current!==null||(Za=!0),($i&134217727)===0&&(Ho&134217727)===0||yt===null||Ki(yt,et,or,!1)}function Fm(i,a,c){var h=ct;ct|=2;var g=gx(),_=yx();(yt!==i||et!==a)&&(gd=null,Ja(i,a)),a=!1;var N=Nt;e:do try{if(ut!==0&&Ze!==null){var O=Ze,M=Un;switch(ut){case 8:Vm(),N=6;break e;case 3:case 2:case 9:case 6:ir.current===null&&(a=!0);var X=ut;if(ut=0,Un=null,es(i,O,M,X),c&&Za){N=0;break e}break;default:X=ut,ut=0,Un=null,es(i,O,M,X)}}$P(),N=Nt;break}catch(se){mx(i,se)}while(!0);return a&&i.shellSuspendCounter++,oi=zo=null,ct=h,z.H=g,z.A=_,Ze===null&&(yt=null,et=0,Bu()),N}function $P(){for(;Ze!==null;)vx(Ze)}function HP(i,a){var c=ct;ct|=2;var h=gx(),g=yx();yt!==i||et!==a?(gd=null,md=fn()+500,Ja(i,a)):Za=Ro(i,a);e:do try{if(ut!==0&&Ze!==null){a=Ze;var _=Un;t:switch(ut){case 1:ut=0,Un=null,es(i,a,_,1);break;case 2:case 9:if(NE(_)){ut=0,Un=null,bx(a);break}a=function(){ut!==2&&ut!==9||yt!==i||(ut=7),jr(i)},_.then(a,a);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:NE(_)?(ut=0,Un=null,bx(a)):(ut=0,Un=null,es(i,a,_,7));break;case 5:var N=null;switch(Ze.tag){case 26:N=Ze.memoizedState;case 5:case 27:var O=Ze;if(!N||eA(N)){ut=0,Un=null;var M=O.sibling;if(M!==null)Ze=M;else{var X=O.return;X!==null?(Ze=X,vd(X)):Ze=null}break t}}ut=0,Un=null,es(i,a,_,5);break;case 6:ut=0,Un=null,es(i,a,_,6);break;case 8:Vm(),Nt=6;break e;default:throw Error(r(462))}}GP();break}catch(se){mx(i,se)}while(!0);return oi=zo=null,z.H=h,z.A=g,ct=c,Ze!==null?0:(yt=null,et=0,Bu(),Nt)}function GP(){for(;Ze!==null&&!Ci();)vx(Ze)}function vx(i){var a=GS(i.alternate,i,hi);i.memoizedProps=i.pendingProps,a===null?vd(i):Ze=a}function bx(i){var a=i,c=a.alternate;switch(a.tag){case 15:case 0:a=BS(c,a,a.pendingProps,a.type,void 0,et);break;case 11:a=BS(c,a,a.pendingProps,a.type.render,a.ref,et);break;case 5:rm(a);default:qS(c,a),a=Ze=_E(a,hi),a=GS(c,a,hi)}i.memoizedProps=i.pendingProps,a===null?vd(i):Ze=a}function es(i,a,c,h){oi=zo=null,rm(a),Ga=null,kl=0;var g=a.return;try{if(LP(i,g,a,c,et)){Nt=1,cd(i,er(c,i.current)),Ze=null;return}}catch(_){if(g!==null)throw Ze=g,_;Nt=1,cd(i,er(c,i.current)),Ze=null;return}a.flags&32768?(at||h===1?i=!0:Za||(et&536870912)!==0?i=!1:(Fi=i=!0,(h===2||h===9||h===3||h===6)&&(h=ir.current,h!==null&&h.tag===13&&(h.flags|=16384))),_x(a,i)):vd(a)}function vd(i){var a=i;do{if((a.flags&32768)!==0){_x(a,Fi);return}i=a.return;var c=PP(a.alternate,a,hi);if(c!==null){Ze=c;return}if(a=a.sibling,a!==null){Ze=a;return}Ze=a=i}while(a!==null);Nt===0&&(Nt=5)}function _x(i,a){do{var c=MP(i.alternate,i);if(c!==null){c.flags&=32767,Ze=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!a&&(i=i.sibling,i!==null)){Ze=i;return}Ze=i=c}while(i!==null);Nt=6,Ze=null}function Ex(i,a,c,h,g,_,N,O,M){i.cancelPendingCommit=null;do bd();while(an!==0);if((ct&6)!==0)throw Error(r(327));if(a!==null){if(a===i.current)throw Error(r(177));if(_=a.lanes|a.childLanes,_|=Op,xj(i,c,_,N,O,M),i===yt&&(Ze=yt=null,et=0),Xa=a,Gi=i,Qa=c,Mm=_,zm=g,dx=h,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,ZP(J,function(){return Tx(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||h){h=z.T,z.T=null,g=ee.p,ee.p=2,N=ct,ct|=4;try{zP(i,a,c)}finally{ct=N,ee.p=g,z.T=h}}an=1,Sx(),xx(),Ax()}}function Sx(){if(an===1){an=0;var i=Gi,a=Xa,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=z.T,z.T=null;var h=ee.p;ee.p=2;var g=ct;ct|=4;try{ix(a,i);var _=eg,N=uE(i.containerInfo),O=_.focusedElem,M=_.selectionRange;if(N!==O&&O&&O.ownerDocument&&cE(O.ownerDocument.documentElement,O)){if(M!==null&&Cp(O)){var X=M.start,se=M.end;if(se===void 0&&(se=X),"selectionStart"in O)O.selectionStart=X,O.selectionEnd=Math.min(se,O.value.length);else{var de=O.ownerDocument||document,te=de&&de.defaultView||window;if(te.getSelection){var re=te.getSelection(),Pe=O.textContent.length,De=Math.min(M.start,Pe),pt=M.end===void 0?De:Math.min(M.end,Pe);!re.extend&&De>pt&&(N=pt,pt=De,De=N);var K=lE(O,De),F=lE(O,pt);if(K&&F&&(re.rangeCount!==1||re.anchorNode!==K.node||re.anchorOffset!==K.offset||re.focusNode!==F.node||re.focusOffset!==F.offset)){var Y=de.createRange();Y.setStart(K.node,K.offset),re.removeAllRanges(),De>pt?(re.addRange(Y),re.extend(F.node,F.offset)):(Y.setEnd(F.node,F.offset),re.addRange(Y))}}}}for(de=[],re=O;re=re.parentNode;)re.nodeType===1&&de.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<de.length;O++){var ce=de[O];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}Id=!!Jm,eg=Jm=null}finally{ct=g,ee.p=h,z.T=c}}i.current=a,an=2}}function xx(){if(an===2){an=0;var i=Gi,a=Xa,c=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||c){c=z.T,z.T=null;var h=ee.p;ee.p=2;var g=ct;ct|=4;try{ex(i,a.alternate,a)}finally{ct=g,ee.p=h,z.T=c}}an=3}}function Ax(){if(an===4||an===3){an=0,To();var i=Gi,a=Xa,c=Qa,h=dx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?an=5:(an=0,Xa=Gi=null,wx(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(Hi=null),ap(c),a=a.stateNode,Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(Ce,a,void 0,(a.current.flags&128)===128)}catch{}if(h!==null){a=z.T,g=ee.p,ee.p=2,z.T=null;try{for(var _=i.onRecoverableError,N=0;N<h.length;N++){var O=h[N];_(O.value,{componentStack:O.stack})}}finally{z.T=a,ee.p=g}}(Qa&3)!==0&&bd(),jr(i),g=i.pendingLanes,(c&4194090)!==0&&(g&42)!==0?i===Bm?zl++:(zl=0,Bm=i):zl=0,Bl(0)}}function wx(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,vl(a)))}function bd(i){return Sx(),xx(),Ax(),Tx()}function Tx(){if(an!==5)return!1;var i=Gi,a=Mm;Mm=0;var c=ap(Qa),h=z.T,g=ee.p;try{ee.p=32>c?32:c,z.T=null,c=zm,zm=null;var _=Gi,N=Qa;if(an=0,Xa=Gi=null,Qa=0,(ct&6)!==0)throw Error(r(331));var O=ct;if(ct|=4,cx(_.current),ax(_,_.current,N,c),ct=O,Bl(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(Ce,_)}catch{}return!0}finally{ee.p=g,z.T=h,wx(i,a)}}function Cx(i,a,c){a=er(c,a),a=ym(i.stateNode,a,2),i=ji(i,a,2),i!==null&&(nl(i,2),jr(i))}function mt(i,a,c){if(i.tag===3)Cx(i,i,c);else for(;a!==null;){if(a.tag===3){Cx(a,i,c);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Hi===null||!Hi.has(h))){i=er(c,i),c=IS(2),h=ji(a,c,2),h!==null&&(OS(c,h,a,i),nl(h,2),jr(h));break}}a=a.return}}function $m(i,a,c){var h=i.pingCache;if(h===null){h=i.pingCache=new UP;var g=new Set;h.set(a,g)}else g=h.get(a),g===void 0&&(g=new Set,h.set(a,g));g.has(c)||(Dm=!0,g.add(c),i=KP.bind(null,i,a,c),a.then(i,i))}function KP(i,a,c){var h=i.pingCache;h!==null&&h.delete(a),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,yt===i&&(et&c)===c&&(Nt===4||Nt===3&&(et&62914560)===et&&300>fn()-Pm?(ct&2)===0&&Ja(i,0):Lm|=c,Ya===et&&(Ya=0)),jr(i)}function Rx(i,a){a===0&&(a=A0()),i=ja(i,a),i!==null&&(nl(i,a),jr(i))}function qP(i){var a=i.memoizedState,c=0;a!==null&&(c=a.retryLane),Rx(i,c)}function WP(i,a){var c=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(c=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(a),Rx(i,c)}function ZP(i,a){return Xt(i,a)}var _d=null,ts=null,Hm=!1,Ed=!1,Gm=!1,Go=0;function jr(i){i!==ts&&i.next===null&&(ts===null?_d=ts=i:ts=ts.next=i),Ed=!0,Hm||(Hm=!0,XP())}function Bl(i,a){if(!Gm&&Ed){Gm=!0;do for(var c=!1,h=_d;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var _=0;else{var N=h.suspendedLanes,O=h.pingedLanes;_=(1<<31-gt(42|i)+1)-1,_&=g&~(N&~O),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(c=!0,Ox(h,_))}else _=et,_=Co(h,h===yt?_:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(_&3)===0||Ro(h,_)||(c=!0,Ox(h,_));h=h.next}while(c);Gm=!1}}function YP(){kx()}function kx(){Ed=Hm=!1;var i=0;Go!==0&&(oM()&&(i=Go),Go=0);for(var a=fn(),c=null,h=_d;h!==null;){var g=h.next,_=Nx(h,a);_===0?(h.next=null,c===null?_d=g:c.next=g,g===null&&(ts=c)):(c=h,(i!==0||(_&3)!==0)&&(Ed=!0)),h=g}Bl(i)}function Nx(i,a){for(var c=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var N=31-gt(_),O=1<<N,M=g[N];M===-1?((O&c)===0||(O&h)!==0)&&(g[N]=Cu(O,a)):M<=a&&(i.expiredLanes|=O),_&=~O}if(a=yt,c=et,c=Co(i,i===a?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,c===0||i===a&&(ut===2||ut===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&Rn(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Ro(i,c)){if(a=c&-c,a===i.callbackPriority)return a;switch(h!==null&&Rn(h),ap(c)){case 2:case 8:c=U;break;case 32:c=J;break;case 268435456:c=Se;break;default:c=J}return h=Ix.bind(null,i),c=Xt(c,h),i.callbackPriority=a,i.callbackNode=c,a}return h!==null&&h!==null&&Rn(h),i.callbackPriority=2,i.callbackNode=null,2}function Ix(i,a){if(an!==0&&an!==5)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(bd()&&i.callbackNode!==c)return null;var h=et;return h=Co(i,i===yt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(hx(i,h,a),Nx(i,fn()),i.callbackNode!=null&&i.callbackNode===c?Ix.bind(null,i):null)}function Ox(i,a){if(bd())return null;hx(i,a,!0)}function XP(){sM(function(){(ct&6)!==0?Xt(tl,YP):kx()})}function Km(){return Go===0&&(Go=x0()),Go}function Dx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Ou(""+i)}function Lx(i,a){var c=a.ownerDocument.createElement("input");return c.name=a.name,c.value=a.value,i.id&&c.setAttribute("form",i.id),a.parentNode.insertBefore(c,a),i=new FormData(i),c.parentNode.removeChild(c),i}function QP(i,a,c,h,g){if(a==="submit"&&c&&c.stateNode===g){var _=Dx((g[kn]||null).action),N=h.submitter;N&&(a=(a=N[kn]||null)?Dx(a.formAction):N.getAttribute("formAction"),a!==null&&(_=a,N=null));var O=new Pu("action","action",null,h,g);i.push({event:O,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Go!==0){var M=N?Lx(g,N):new FormData(g);fm(c,{pending:!0,data:M,method:g.method,action:_},null,M)}}else typeof _=="function"&&(O.preventDefault(),M=N?Lx(g,N):new FormData(g),fm(c,{pending:!0,data:M,method:g.method,action:_},_,M))},currentTarget:g}]})}}for(var qm=0;qm<Ip.length;qm++){var Wm=Ip[qm],JP=Wm.toLowerCase(),eM=Wm[0].toUpperCase()+Wm.slice(1);mr(JP,"on"+eM)}mr(hE,"onAnimationEnd"),mr(pE,"onAnimationIteration"),mr(mE,"onAnimationStart"),mr("dblclick","onDoubleClick"),mr("focusin","onFocus"),mr("focusout","onBlur"),mr(yP,"onTransitionRun"),mr(vP,"onTransitionStart"),mr(bP,"onTransitionCancel"),mr(gE,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),ko("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ko("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ko("onBeforeInput",["compositionend","keypress","textInput","paste"]),ko("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ko("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ko("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vl="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(" "),tM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function jx(i,a){a=(a&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],g=h.event;h=h.listeners;e:{var _=void 0;if(a)for(var N=h.length-1;0<=N;N--){var O=h[N],M=O.instance,X=O.currentTarget;if(O=O.listener,M!==_&&g.isPropagationStopped())break e;_=O,g.currentTarget=X;try{_(g)}catch(se){ld(se)}g.currentTarget=null,_=M}else for(N=0;N<h.length;N++){if(O=h[N],M=O.instance,X=O.currentTarget,O=O.listener,M!==_&&g.isPropagationStopped())break e;_=O,g.currentTarget=X;try{_(g)}catch(se){ld(se)}g.currentTarget=null,_=M}}}}function Ye(i,a){var c=a[sp];c===void 0&&(c=a[sp]=new Set);var h=i+"__bubble";c.has(h)||(Px(a,i,2,!1),c.add(h))}function Zm(i,a,c){var h=0;a&&(h|=4),Px(c,i,h,a)}var Sd="_reactListening"+Math.random().toString(36).slice(2);function Ym(i){if(!i[Sd]){i[Sd]=!0,k0.forEach(function(c){c!=="selectionchange"&&(tM.has(c)||Zm(c,!1,i),Zm(c,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Sd]||(a[Sd]=!0,Zm("selectionchange",!1,a))}}function Px(i,a,c,h){switch(aA(a)){case 2:var g=RM;break;case 8:g=kM;break;default:g=ug}c=g.bind(null,a,c,i),g=void 0,!vp||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(a,c,{capture:!0,passive:g}):i.addEventListener(a,c,!0):g!==void 0?i.addEventListener(a,c,{passive:g}):i.addEventListener(a,c,!1)}function Xm(i,a,c,h,g){var _=h;if((a&1)===0&&(a&2)===0&&h!==null)e:for(;;){if(h===null)return;var N=h.tag;if(N===3||N===4){var O=h.stateNode.containerInfo;if(O===g)break;if(N===4)for(N=h.return;N!==null;){var M=N.tag;if((M===3||M===4)&&N.stateNode.containerInfo===g)return;N=N.return}for(;O!==null;){if(N=Sa(O),N===null)return;if(M=N.tag,M===5||M===6||M===26||M===27){h=_=N;continue e}O=O.parentNode}}h=h.return}$0(function(){var X=_,se=gp(c),de=[];e:{var te=yE.get(i);if(te!==void 0){var re=Pu,Pe=i;switch(i){case"keypress":if(Lu(c)===0)break e;case"keydown":case"keyup":re=Zj;break;case"focusin":Pe="focus",re=Sp;break;case"focusout":Pe="blur",re=Sp;break;case"beforeblur":case"afterblur":re=Sp;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=K0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=Mj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=Qj;break;case hE:case pE:case mE:re=Vj;break;case gE:re=eP;break;case"scroll":case"scrollend":re=jj;break;case"wheel":re=nP;break;case"copy":case"cut":case"paste":re=Fj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=W0;break;case"toggle":case"beforetoggle":re=iP}var De=(a&4)!==0,pt=!De&&(i==="scroll"||i==="scrollend"),K=De?te!==null?te+"Capture":null:te;De=[];for(var F=X,Y;F!==null;){var ce=F;if(Y=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||Y===null||K===null||(ce=ol(F,K),ce!=null&&De.push(Ul(F,ce,Y))),pt)break;F=F.return}0<De.length&&(te=new re(te,Pe,null,c,se),de.push({event:te,listeners:De}))}}if((a&7)===0){e:{if(te=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",te&&c!==mp&&(Pe=c.relatedTarget||c.fromElement)&&(Sa(Pe)||Pe[Ea]))break e;if((re||te)&&(te=se.window===se?se:(te=se.ownerDocument)?te.defaultView||te.parentWindow:window,re?(Pe=c.relatedTarget||c.toElement,re=X,Pe=Pe?Sa(Pe):null,Pe!==null&&(pt=s(Pe),De=Pe.tag,Pe!==pt||De!==5&&De!==27&&De!==6)&&(Pe=null)):(re=null,Pe=X),re!==Pe)){if(De=K0,ce="onMouseLeave",K="onMouseEnter",F="mouse",(i==="pointerout"||i==="pointerover")&&(De=W0,ce="onPointerLeave",K="onPointerEnter",F="pointer"),pt=re==null?te:il(re),Y=Pe==null?te:il(Pe),te=new De(ce,F+"leave",re,c,se),te.target=pt,te.relatedTarget=Y,ce=null,Sa(se)===X&&(De=new De(K,F+"enter",Pe,c,se),De.target=Y,De.relatedTarget=pt,ce=De),pt=ce,re&&Pe)t:{for(De=re,K=Pe,F=0,Y=De;Y;Y=ns(Y))F++;for(Y=0,ce=K;ce;ce=ns(ce))Y++;for(;0<F-Y;)De=ns(De),F--;for(;0<Y-F;)K=ns(K),Y--;for(;F--;){if(De===K||K!==null&&De===K.alternate)break t;De=ns(De),K=ns(K)}De=null}else De=null;re!==null&&Mx(de,te,re,De,!1),Pe!==null&&pt!==null&&Mx(de,pt,Pe,De,!0)}}e:{if(te=X?il(X):window,re=te.nodeName&&te.nodeName.toLowerCase(),re==="select"||re==="input"&&te.type==="file")var Ae=nE;else if(eE(te))if(rE)Ae=pP;else{Ae=fP;var We=dP}else re=te.nodeName,!re||re.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?X&&pp(X.elementType)&&(Ae=nE):Ae=hP;if(Ae&&(Ae=Ae(i,X))){tE(de,Ae,c,se);break e}We&&We(i,te,X),i==="focusout"&&X&&te.type==="number"&&X.memoizedProps.value!=null&&hp(te,"number",te.value)}switch(We=X?il(X):window,i){case"focusin":(eE(We)||We.contentEditable==="true")&&(Oa=We,Rp=X,hl=null);break;case"focusout":hl=Rp=Oa=null;break;case"mousedown":kp=!0;break;case"contextmenu":case"mouseup":case"dragend":kp=!1,dE(de,c,se);break;case"selectionchange":if(gP)break;case"keydown":case"keyup":dE(de,c,se)}var ke;if(Ap)e:{switch(i){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Ia?Q0(i,c)&&(Le="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Le="onCompositionStart");Le&&(Z0&&c.locale!=="ko"&&(Ia||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Ia&&(ke=H0()):(Ii=se,bp="value"in Ii?Ii.value:Ii.textContent,Ia=!0)),We=xd(X,Le),0<We.length&&(Le=new q0(Le,i,null,c,se),de.push({event:Le,listeners:We}),ke?Le.data=ke:(ke=J0(c),ke!==null&&(Le.data=ke)))),(ke=aP?sP(i,c):lP(i,c))&&(Le=xd(X,"onBeforeInput"),0<Le.length&&(We=new q0("onBeforeInput","beforeinput",null,c,se),de.push({event:We,listeners:Le}),We.data=ke)),QP(de,i,X,c,se)}jx(de,a)})}function Ul(i,a,c){return{instance:i,listener:a,currentTarget:c}}function xd(i,a){for(var c=a+"Capture",h=[];i!==null;){var g=i,_=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||_===null||(g=ol(i,c),g!=null&&h.unshift(Ul(i,g,_)),g=ol(i,a),g!=null&&h.push(Ul(i,g,_))),i.tag===3)return h;i=i.return}return[]}function ns(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Mx(i,a,c,h,g){for(var _=a._reactName,N=[];c!==null&&c!==h;){var O=c,M=O.alternate,X=O.stateNode;if(O=O.tag,M!==null&&M===h)break;O!==5&&O!==26&&O!==27||X===null||(M=X,g?(X=ol(c,_),X!=null&&N.unshift(Ul(c,X,M))):g||(X=ol(c,_),X!=null&&N.push(Ul(c,X,M)))),c=c.return}N.length!==0&&i.push({event:a,listeners:N})}var nM=/\r\n?/g,rM=/\u0000|\uFFFD/g;function zx(i){return(typeof i=="string"?i:""+i).replace(nM,`
50
+ `).replace(rM,"")}function Bx(i,a){return a=zx(a),zx(i)===a}function Ad(){}function ht(i,a,c,h,g,_){switch(c){case"children":typeof h=="string"?a==="body"||a==="textarea"&&h===""||Ra(i,h):(typeof h=="number"||typeof h=="bigint")&&a!=="body"&&Ra(i,""+h);break;case"className":ku(i,"class",h);break;case"tabIndex":ku(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":ku(i,c,h);break;case"style":U0(i,h,_);break;case"data":if(a!=="object"){ku(i,"data",h);break}case"src":case"href":if(h===""&&(a!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Ou(""+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 _=="function"&&(c==="formAction"?(a!=="input"&&ht(i,a,"name",g.name,g,null),ht(i,a,"formEncType",g.formEncType,g,null),ht(i,a,"formMethod",g.formMethod,g,null),ht(i,a,"formTarget",g.formTarget,g,null)):(ht(i,a,"encType",g.encType,g,null),ht(i,a,"method",g.method,g,null),ht(i,a,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Ou(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=Ad);break;case"onScroll":h!=null&&Ye("scroll",i);break;case"onScrollEnd":h!=null&&Ye("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(g.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=Ou(""+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":Ye("beforetoggle",i),Ye("toggle",i),Ru(i,"popover",h);break;case"xlinkActuate":ei(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ei(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ei(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ei(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ei(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ei(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ei(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ei(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ei(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Ru(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=Dj.get(c)||c,Ru(i,c,h))}}function Qm(i,a,c,h,g,_){switch(c){case"style":U0(i,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Ra(i,h):(typeof h=="number"||typeof h=="bigint")&&Ra(i,""+h);break;case"onScroll":h!=null&&Ye("scroll",i);break;case"onScrollEnd":h!=null&&Ye("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Ad);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!N0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),a=c.slice(2,g?c.length-7:void 0),_=i[kn]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(a,_,g),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(a,h,g);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):Ru(i,c,h)}}}function sn(i,a,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",i),Ye("load",i);var h=!1,g=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var N=c[_];if(N!=null)switch(_){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:ht(i,a,_,N,c,null)}}g&&ht(i,a,"srcSet",c.srcSet,c,null),h&&ht(i,a,"src",c.src,c,null);return;case"input":Ye("invalid",i);var O=_=N=g=null,M=null,X=null;for(h in c)if(c.hasOwnProperty(h)){var se=c[h];if(se!=null)switch(h){case"name":g=se;break;case"type":N=se;break;case"checked":M=se;break;case"defaultChecked":X=se;break;case"value":_=se;break;case"defaultValue":O=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,a));break;default:ht(i,a,h,se,c,null)}}M0(i,_,O,M,X,N,g,!1),Nu(i);return;case"select":Ye("invalid",i),h=N=_=null;for(g in c)if(c.hasOwnProperty(g)&&(O=c[g],O!=null))switch(g){case"value":_=O;break;case"defaultValue":N=O;break;case"multiple":h=O;default:ht(i,a,g,O,c,null)}a=_,c=N,i.multiple=!!h,a!=null?Ca(i,!!h,a,!1):c!=null&&Ca(i,!!h,c,!0);return;case"textarea":Ye("invalid",i),_=g=h=null;for(N in c)if(c.hasOwnProperty(N)&&(O=c[N],O!=null))switch(N){case"value":h=O;break;case"defaultValue":g=O;break;case"children":_=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:ht(i,a,N,O,c,null)}B0(i,h,g,_),Nu(i);return;case"option":for(M in c)if(c.hasOwnProperty(M)&&(h=c[M],h!=null))switch(M){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ht(i,a,M,h,c,null)}return;case"dialog":Ye("beforetoggle",i),Ye("toggle",i),Ye("cancel",i),Ye("close",i);break;case"iframe":case"object":Ye("load",i);break;case"video":case"audio":for(h=0;h<Vl.length;h++)Ye(Vl[h],i);break;case"image":Ye("error",i),Ye("load",i);break;case"details":Ye("toggle",i);break;case"embed":case"source":case"link":Ye("error",i),Ye("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(X in c)if(c.hasOwnProperty(X)&&(h=c[X],h!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:ht(i,a,X,h,c,null)}return;default:if(pp(a)){for(se in c)c.hasOwnProperty(se)&&(h=c[se],h!==void 0&&Qm(i,a,se,h,c,void 0));return}}for(O in c)c.hasOwnProperty(O)&&(h=c[O],h!=null&&ht(i,a,O,h,c,null))}function iM(i,a,c,h){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,_=null,N=null,O=null,M=null,X=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":M=de;default:h.hasOwnProperty(re)||ht(i,a,re,null,h,de)}}for(var te in h){var re=h[te];if(de=c[te],h.hasOwnProperty(te)&&(re!=null||de!=null))switch(te){case"type":_=re;break;case"name":g=re;break;case"checked":X=re;break;case"defaultChecked":se=re;break;case"value":N=re;break;case"defaultValue":O=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,a));break;default:re!==de&&ht(i,a,te,re,h,de)}}fp(i,N,O,M,X,se,_,g);return;case"select":re=N=O=te=null;for(_ in c)if(M=c[_],c.hasOwnProperty(_)&&M!=null)switch(_){case"value":break;case"multiple":re=M;default:h.hasOwnProperty(_)||ht(i,a,_,null,h,M)}for(g in h)if(_=h[g],M=c[g],h.hasOwnProperty(g)&&(_!=null||M!=null))switch(g){case"value":te=_;break;case"defaultValue":O=_;break;case"multiple":N=_;default:_!==M&&ht(i,a,g,_,h,M)}a=O,c=N,h=re,te!=null?Ca(i,!!c,te,!1):!!h!=!!c&&(a!=null?Ca(i,!!c,a,!0):Ca(i,!!c,c?[]:"",!1));return;case"textarea":re=te=null;for(O in c)if(g=c[O],c.hasOwnProperty(O)&&g!=null&&!h.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:ht(i,a,O,null,h,g)}for(N in h)if(g=h[N],_=c[N],h.hasOwnProperty(N)&&(g!=null||_!=null))switch(N){case"value":te=g;break;case"defaultValue":re=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==_&&ht(i,a,N,g,h,_)}z0(i,te,re);return;case"option":for(var Pe in c)if(te=c[Pe],c.hasOwnProperty(Pe)&&te!=null&&!h.hasOwnProperty(Pe))switch(Pe){case"selected":i.selected=!1;break;default:ht(i,a,Pe,null,h,te)}for(M in h)if(te=h[M],re=c[M],h.hasOwnProperty(M)&&te!==re&&(te!=null||re!=null))switch(M){case"selected":i.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:ht(i,a,M,te,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 De in c)te=c[De],c.hasOwnProperty(De)&&te!=null&&!h.hasOwnProperty(De)&&ht(i,a,De,null,h,te);for(X in h)if(te=h[X],re=c[X],h.hasOwnProperty(X)&&te!==re&&(te!=null||re!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,a));break;default:ht(i,a,X,te,h,re)}return;default:if(pp(a)){for(var pt in c)te=c[pt],c.hasOwnProperty(pt)&&te!==void 0&&!h.hasOwnProperty(pt)&&Qm(i,a,pt,void 0,h,te);for(se in h)te=h[se],re=c[se],!h.hasOwnProperty(se)||te===re||te===void 0&&re===void 0||Qm(i,a,se,te,h,re);return}}for(var K in c)te=c[K],c.hasOwnProperty(K)&&te!=null&&!h.hasOwnProperty(K)&&ht(i,a,K,null,h,te);for(de in h)te=h[de],re=c[de],!h.hasOwnProperty(de)||te===re||te==null&&re==null||ht(i,a,de,te,h,re)}var Jm=null,eg=null;function wd(i){return i.nodeType===9?i:i.ownerDocument}function Vx(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 Ux(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function tg(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ng=null;function oM(){var i=window.event;return i&&i.type==="popstate"?i===ng?!1:(ng=i,!0):(ng=null,!1)}var Fx=typeof setTimeout=="function"?setTimeout:void 0,aM=typeof clearTimeout=="function"?clearTimeout:void 0,$x=typeof Promise=="function"?Promise:void 0,sM=typeof queueMicrotask=="function"?queueMicrotask:typeof $x<"u"?function(i){return $x.resolve(null).then(i).catch(lM)}:Fx;function lM(i){setTimeout(function(){throw i})}function qi(i){return i==="head"}function Hx(i,a){var c=a,h=0,g=0;do{var _=c.nextSibling;if(i.removeChild(c),_&&_.nodeType===8)if(c=_.data,c==="/$"){if(0<h&&8>h){c=h;var N=i.ownerDocument;if(c&1&&Fl(N.documentElement),c&2&&Fl(N.body),c&4)for(c=N.head,Fl(c),N=c.firstChild;N;){var O=N.nextSibling,M=N.nodeName;N[rl]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&N.rel.toLowerCase()==="stylesheet"||c.removeChild(N),N=O}}if(g===0){i.removeChild(_),Yl(a);return}g--}else c==="$"||c==="$?"||c==="$!"?g++:h=c.charCodeAt(0)-48;else h=0;c=_}while(c);Yl(a)}function rg(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var c=a;switch(a=a.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":rg(c),lp(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function cM(i,a,c,h){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[rl])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var _=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=yr(i.nextSibling),i===null)break}return null}function uM(i,a,c){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=yr(i.nextSibling),i===null))return null;return i}function ig(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function dM(i,a){var c=i.ownerDocument;if(i.data!=="$?"||c.readyState==="complete")a();else{var h=function(){a(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function yr(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return i}var og=null;function Gx(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(a===0)return i;a--}else c==="/$"&&a++}i=i.previousSibling}return null}function Kx(i,a,c){switch(a=wd(c),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Fl(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);lp(i)}var ar=new Map,qx=new Set;function Td(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var pi=ee.d;ee.d={f:fM,r:hM,D:pM,C:mM,L:gM,m:yM,X:bM,S:vM,M:_M};function fM(){var i=pi.f(),a=yd();return i||a}function hM(i){var a=xa(i);a!==null&&a.tag===5&&a.type==="form"?hS(a):pi.r(i)}var rs=typeof document>"u"?null:document;function Wx(i,a,c){var h=rs;if(h&&typeof a=="string"&&a){var g=Jn(a);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),qx.has(g)||(qx.add(g),i={rel:i,crossOrigin:c,href:a},h.querySelector(g)===null&&(a=h.createElement("link"),sn(a,"link",i),Qt(a),h.head.appendChild(a)))}}function pM(i){pi.D(i),Wx("dns-prefetch",i,null)}function mM(i,a){pi.C(i,a),Wx("preconnect",i,a)}function gM(i,a,c){pi.L(i,a,c);var h=rs;if(h&&i&&a){var g='link[rel="preload"][as="'+Jn(a)+'"]';a==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+Jn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+Jn(c.imageSizes)+'"]')):g+='[href="'+Jn(i)+'"]';var _=g;switch(a){case"style":_=is(i);break;case"script":_=os(i)}ar.has(_)||(i=p({rel:"preload",href:a==="image"&&c&&c.imageSrcSet?void 0:i,as:a},c),ar.set(_,i),h.querySelector(g)!==null||a==="style"&&h.querySelector($l(_))||a==="script"&&h.querySelector(Hl(_))||(a=h.createElement("link"),sn(a,"link",i),Qt(a),h.head.appendChild(a)))}}function yM(i,a){pi.m(i,a);var c=rs;if(c&&i){var h=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+Jn(h)+'"][href="'+Jn(i)+'"]',_=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=os(i)}if(!ar.has(_)&&(i=p({rel:"modulepreload",href:i},a),ar.set(_,i),c.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Hl(_)))return}h=c.createElement("link"),sn(h,"link",i),Qt(h),c.head.appendChild(h)}}}function vM(i,a,c){pi.S(i,a,c);var h=rs;if(h&&i){var g=Aa(h).hoistableStyles,_=is(i);a=a||"default";var N=g.get(_);if(!N){var O={loading:0,preload:null};if(N=h.querySelector($l(_)))O.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":a},c),(c=ar.get(_))&&ag(i,c);var M=N=h.createElement("link");Qt(M),sn(M,"link",i),M._p=new Promise(function(X,se){M.onload=X,M.onerror=se}),M.addEventListener("load",function(){O.loading|=1}),M.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Cd(N,a,h)}N={type:"stylesheet",instance:N,count:1,state:O},g.set(_,N)}}}function bM(i,a){pi.X(i,a);var c=rs;if(c&&i){var h=Aa(c).hoistableScripts,g=os(i),_=h.get(g);_||(_=c.querySelector(Hl(g)),_||(i=p({src:i,async:!0},a),(a=ar.get(g))&&sg(i,a),_=c.createElement("script"),Qt(_),sn(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function _M(i,a){pi.M(i,a);var c=rs;if(c&&i){var h=Aa(c).hoistableScripts,g=os(i),_=h.get(g);_||(_=c.querySelector(Hl(g)),_||(i=p({src:i,async:!0,type:"module"},a),(a=ar.get(g))&&sg(i,a),_=c.createElement("script"),Qt(_),sn(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function Zx(i,a,c,h){var g=(g=ve.current)?Td(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(a=is(c.href),c=Aa(g).hoistableStyles,h=c.get(a),h||(h={type:"style",instance:null,count:0,state:null},c.set(a,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=is(c.href);var _=Aa(g).hoistableStyles,N=_.get(i);if(N||(g=g.ownerDocument||g,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,N),(_=g.querySelector($l(i)))&&!_._p&&(N.instance=_,N.state.loading=5),ar.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},ar.set(i,c),_||EM(g,i,c,N.state))),a&&h===null)throw Error(r(528,""));return N}if(a&&h!==null)throw Error(r(529,""));return null;case"script":return a=c.async,c=c.src,typeof c=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=os(c),c=Aa(g).hoistableScripts,h=c.get(a),h||(h={type:"script",instance:null,count:0,state:null},c.set(a,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function is(i){return'href="'+Jn(i)+'"'}function $l(i){return'link[rel="stylesheet"]['+i+"]"}function Yx(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function EM(i,a,c,h){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=1:(a=i.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=1}),a.addEventListener("error",function(){return h.loading|=2}),sn(a,"link",c),Qt(a),i.head.appendChild(a))}function os(i){return'[src="'+Jn(i)+'"]'}function Hl(i){return"script[async]"+i}function Xx(i,a,c){if(a.count++,a.instance===null)switch(a.type){case"style":var h=i.querySelector('style[data-href~="'+Jn(c.href)+'"]');if(h)return a.instance=h,Qt(h),h;var g=p({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Qt(h),sn(h,"style",g),Cd(h,c.precedence,i),a.instance=h;case"stylesheet":g=is(c.href);var _=i.querySelector($l(g));if(_)return a.state.loading|=4,a.instance=_,Qt(_),_;h=Yx(c),(g=ar.get(g))&&ag(h,g),_=(i.ownerDocument||i).createElement("link"),Qt(_);var N=_;return N._p=new Promise(function(O,M){N.onload=O,N.onerror=M}),sn(_,"link",h),a.state.loading|=4,Cd(_,c.precedence,i),a.instance=_;case"script":return _=os(c.src),(g=i.querySelector(Hl(_)))?(a.instance=g,Qt(g),g):(h=c,(g=ar.get(_))&&(h=p({},c),sg(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),Qt(g),sn(g,"link",h),i.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(h=a.instance,a.state.loading|=4,Cd(h,c.precedence,i));return a.instance}function Cd(i,a,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,_=g,N=0;N<h.length;N++){var O=h[N];if(O.dataset.precedence===a)_=O;else if(_!==g)break}_?_.parentNode.insertBefore(i,_.nextSibling):(a=c.nodeType===9?c.head:c,a.insertBefore(i,a.firstChild))}function ag(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function sg(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var Rd=null;function Qx(i,a,c){if(Rd===null){var h=new Map,g=Rd=new Map;g.set(c,h)}else g=Rd,h=g.get(c),h||(h=new Map,g.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),g=0;g<c.length;g++){var _=c[g];if(!(_[rl]||_[hn]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var N=_.getAttribute(a)||"";N=i+N;var O=h.get(N);O?O.push(_):h.set(N,[_])}}return h}function Jx(i,a,c){i=i.ownerDocument||i,i.head.insertBefore(c,a==="title"?i.querySelector("head > title"):null)}function SM(i,a,c){if(c===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return i=a.disabled,typeof a.precedence=="string"&&i==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function eA(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Gl=null;function xM(){}function AM(i,a,c){if(Gl===null)throw Error(r(475));var h=Gl;if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var g=is(c.href),_=i.querySelector($l(g));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=kd.bind(h),i.then(h,h)),a.state.loading|=4,a.instance=_,Qt(_);return}_=i.ownerDocument||i,c=Yx(c),(g=ar.get(g))&&ag(c,g),_=_.createElement("link"),Qt(_);var N=_;N._p=new Promise(function(O,M){N.onload=O,N.onerror=M}),sn(_,"link",c),a.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(h.count++,a=kd.bind(h),i.addEventListener("load",a),i.addEventListener("error",a))}}function wM(){if(Gl===null)throw Error(r(475));var i=Gl;return i.stylesheets&&i.count===0&&lg(i,i.stylesheets),0<i.count?function(a){var c=setTimeout(function(){if(i.stylesheets&&lg(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=a,function(){i.unsuspend=null,clearTimeout(c)}}:null}function kd(){if(this.count--,this.count===0){if(this.stylesheets)lg(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Nd=null;function lg(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Nd=new Map,a.forEach(TM,i),Nd=null,kd.call(i))}function TM(i,a){if(!(a.state.loading&4)){var c=Nd.get(i);if(c)var h=c.get(null);else{c=new Map,Nd.set(i,c);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<g.length;_++){var N=g[_];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(c.set(N.dataset.precedence,N),h=N)}h&&c.set(null,h)}g=a.instance,N=g.getAttribute("data-precedence"),_=c.get(N)||h,_===h&&c.set(null,g),c.set(N,g),this.count++,h=kd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),_?_.parentNode.insertBefore(g,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),a.state.loading|=4}}var Kl={$$typeof:T,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function CM(i,a,c,h,g,_,N,O){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=ip(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ip(0),this.hiddenUpdates=ip(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=_,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function tA(i,a,c,h,g,_,N,O,M,X,se,de){return i=new CM(i,a,c,N,O,M,X,de),a=1,_===!0&&(a|=24),_=zn(3,null,null,a),i.current=_,_.stateNode=i,a=$p(),a.refCount++,i.pooledCache=a,a.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:a},qp(_),i}function nA(i){return i?(i=Pa,i):Pa}function rA(i,a,c,h,g,_){g=nA(g),h.context===null?h.context=g:h.pendingContext=g,h=Li(a),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=ji(i,h,a),c!==null&&($n(c,i,a),Sl(c,i,a))}function iA(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<a?c:a}}function cg(i,a){iA(i,a),(i=i.alternate)&&iA(i,a)}function oA(i){if(i.tag===13){var a=ja(i,67108864);a!==null&&$n(a,i,67108864),cg(i,67108864)}}var Id=!0;function RM(i,a,c,h){var g=z.T;z.T=null;var _=ee.p;try{ee.p=2,ug(i,a,c,h)}finally{ee.p=_,z.T=g}}function kM(i,a,c,h){var g=z.T;z.T=null;var _=ee.p;try{ee.p=8,ug(i,a,c,h)}finally{ee.p=_,z.T=g}}function ug(i,a,c,h){if(Id){var g=dg(h);if(g===null)Xm(i,a,h,Od,c),sA(i,h);else if(IM(g,i,a,c,h))h.stopPropagation();else if(sA(i,h),a&4&&-1<NM.indexOf(i)){for(;g!==null;){var _=xa(g);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var N=Jr(_.pendingLanes);if(N!==0){var O=_;for(O.pendingLanes|=2,O.entangledLanes|=2;N;){var M=1<<31-gt(N);O.entanglements[1]|=M,N&=~M}jr(_),(ct&6)===0&&(md=fn()+500,Bl(0))}}break;case 13:O=ja(_,2),O!==null&&$n(O,_,2),yd(),cg(_,2)}if(_=dg(h),_===null&&Xm(i,a,h,Od,c),_===g)break;g=_}g!==null&&h.stopPropagation()}else Xm(i,a,h,null,c)}}function dg(i){return i=gp(i),fg(i)}var Od=null;function fg(i){if(Od=null,i=Sa(i),i!==null){var a=s(i);if(a===null)i=null;else{var c=a.tag;if(c===13){if(i=l(a),i!==null)return i;i=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Od=i,null}function aA(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(S0()){case tl:return 2;case U:return 8;case J:case ae:return 32;case Se:return 268435456;default:return 32}default:return 32}}var hg=!1,Wi=null,Zi=null,Yi=null,ql=new Map,Wl=new Map,Xi=[],NM="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 sA(i,a){switch(i){case"focusin":case"focusout":Wi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Yi=null;break;case"pointerover":case"pointerout":ql.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wl.delete(a.pointerId)}}function Zl(i,a,c,h,g,_){return i===null||i.nativeEvent!==_?(i={blockedOn:a,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[g]},a!==null&&(a=xa(a),a!==null&&oA(a)),i):(i.eventSystemFlags|=h,a=i.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),i)}function IM(i,a,c,h,g){switch(a){case"focusin":return Wi=Zl(Wi,i,a,c,h,g),!0;case"dragenter":return Zi=Zl(Zi,i,a,c,h,g),!0;case"mouseover":return Yi=Zl(Yi,i,a,c,h,g),!0;case"pointerover":var _=g.pointerId;return ql.set(_,Zl(ql.get(_)||null,i,a,c,h,g)),!0;case"gotpointercapture":return _=g.pointerId,Wl.set(_,Zl(Wl.get(_)||null,i,a,c,h,g)),!0}return!1}function lA(i){var a=Sa(i.target);if(a!==null){var c=s(a);if(c!==null){if(a=c.tag,a===13){if(a=l(c),a!==null){i.blockedOn=a,Aj(i.priority,function(){if(c.tag===13){var h=Fn();h=op(h);var g=ja(c,h);g!==null&&$n(g,c,h),cg(c,h)}});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Dd(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var c=dg(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);mp=h,c.target.dispatchEvent(h),mp=null}else return a=xa(c),a!==null&&oA(a),i.blockedOn=c,!1;a.shift()}return!0}function cA(i,a,c){Dd(i)&&c.delete(a)}function OM(){hg=!1,Wi!==null&&Dd(Wi)&&(Wi=null),Zi!==null&&Dd(Zi)&&(Zi=null),Yi!==null&&Dd(Yi)&&(Yi=null),ql.forEach(cA),Wl.forEach(cA)}function Ld(i,a){i.blockedOn===a&&(i.blockedOn=null,hg||(hg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,OM)))}var jd=null;function uA(i){jd!==i&&(jd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){jd===i&&(jd=null);for(var a=0;a<i.length;a+=3){var c=i[a],h=i[a+1],g=i[a+2];if(typeof h!="function"){if(fg(h||c)===null)continue;break}var _=xa(c);_!==null&&(i.splice(a,3),a-=3,fm(_,{pending:!0,data:g,method:c.method,action:h},h,g))}}))}function Yl(i){function a(M){return Ld(M,i)}Wi!==null&&Ld(Wi,i),Zi!==null&&Ld(Zi,i),Yi!==null&&Ld(Yi,i),ql.forEach(a),Wl.forEach(a);for(var c=0;c<Xi.length;c++){var h=Xi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Xi.length&&(c=Xi[0],c.blockedOn===null);)lA(c),c.blockedOn===null&&Xi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var g=c[h],_=c[h+1],N=g[kn]||null;if(typeof _=="function")N||uA(c);else if(N){var O=null;if(_&&_.hasAttribute("formAction")){if(g=_,N=_[kn]||null)O=N.formAction;else if(fg(g)!==null)continue}else O=N.action;typeof O=="function"?c[h+1]=O:(c.splice(h,3),h-=3),uA(c)}}}function pg(i){this._internalRoot=i}Pd.prototype.render=pg.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var c=a.current,h=Fn();rA(c,h,i,a,null,null)},Pd.prototype.unmount=pg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;rA(i.current,2,null,i,null,null),yd(),a[Ea]=null}};function Pd(i){this._internalRoot=i}Pd.prototype.unstable_scheduleHydration=function(i){if(i){var a=C0();i={blockedOn:null,target:i,priority:a};for(var c=0;c<Xi.length&&a!==0&&a<Xi[c].priority;c++);Xi.splice(c,0,i),c===0&&lA(i)}};var dA=t.version;if(dA!=="19.1.1")throw Error(r(527,dA,"19.1.1"));ee.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(a),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var DM={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Md=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Md.isDisabled&&Md.supportsFiber)try{Ce=Md.inject(DM),Ue=Md}catch{}}return Ql.createRoot=function(i,a){if(!o(i))throw Error(r(299));var c=!1,h="",g=CS,_=RS,N=kS,O=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(_=a.onCaughtError),a.onRecoverableError!==void 0&&(N=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(O=a.unstable_transitionCallbacks)),a=tA(i,1,!1,null,null,c,h,g,_,N,O,null),i[Ea]=a.current,Ym(i),new pg(a)},Ql.hydrateRoot=function(i,a,c){if(!o(i))throw Error(r(299));var h=!1,g="",_=CS,N=RS,O=kS,M=null,X=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(N=c.onCaughtError),c.onRecoverableError!==void 0&&(O=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(M=c.unstable_transitionCallbacks),c.formState!==void 0&&(X=c.formState)),a=tA(i,1,!0,a,c??null,h,g,_,N,O,M,X),a.context=nA(null),c=a.current,h=Fn(),h=op(h),g=Li(h),g.callback=null,ji(c,g,h),c=h,a.current.lanes=c,nl(a,c),jr(a),i[Ea]=a.current,Ym(i),new Pd(a)},Ql.version="19.1.1",Ql}var EA;function $M(){if(EA)return yg.exports;EA=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(),yg.exports=FM(),yg.exports}var HM=$M();const GM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},KM={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},qM={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"},st={internationalization:GM,middleware:KM,editor:qM};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||{}),H=(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))(H||{});const mf=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(o,s)=>mf(o,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,o)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:H.Array,key:o}]};return mf(r,s)});const n={};for(const r in e){const o={...t,children:e[r],keyPath:[...t.keyPath,{type:H.Object,key:r}]};n[r]=mf(e[r],o)}return n},WM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},ZM=(e,t)=>{const n=Object.keys(e);for(const r of n){const o=!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(o||s||l||u||d)return r}},YM=(e,t)=>{const n=ZM(e,t)??"fallback";return e[n]},XM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),QM="breadcrumb",JM={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"}}},ez=["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"],tz={key:QM,content:JM,localIds:ez},nz="code",rz={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"}}},iz=["code::local::../@intlayer/design-system/src/components/IDE/code.content.ts","code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts"],oz={key:nz,content:rz,localIds:iz},az="copy-button",sz={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"}}},lz=["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"],cz={key:az,content:sz,localIds:lz},uz="dictionary-detail-schema",dz={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"}}},fz=["dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],hz={key:uz,content:dz,localIds:fz},pz="dictionary-details",mz=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"}}}}`),gz=["dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],yz={key:pz,content:mz,localIds:gz},vz="dictionary-edition-drawer",bz={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"}}},_z=["dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"],hb={key:vz,content:bz,localIds:_z},Ez="dictionary-field-editor",Sz={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"}}}},xz=["dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],Az={key:Ez,content:Sz,localIds:xz},wz="dictionary-form-schema",Tz={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"}}},Cz=["dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"],Rz={key:wz,content:Tz,localIds:Cz},kz="dictionary-form",Nz={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"}}}},Iz=["dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],Oz={key:kz,content:Nz,localIds:Iz},Dz="dictionary-list-drawer",Lz={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:"शब्दकोश सूची",tr:"Sözlük listesi"}}},buttonLabel:{label:{fields:["dictionaryLocalId","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}}",tr:"Sözlük düzenleyiciyi aç {{dictionaryLocalId}}"}}}}},jz=["dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"],WR={key:Dz,content:Lz,localIds:jz},Pz="expand-collapse",Mz={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"}}}}},zz=["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"],Bz={key:Pz,content:Mz,localIds:zz},Vz="loader",Uz={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"}}},Fz=["loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts"],$z={key:Vz,content:Uz,localIds:Fz},Hz="locale-switcher-content",Gz={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"}}}},Kz=["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"],qz={key:Hz,content:Gz,localIds:Kz},Wz="locale-switcher",Zz={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"}}}},Yz=["locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"],Xz={key:Wz,content:Zz,localIds:Yz},Qz="long-press-message",Jz={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}}"'}}}},eB=["long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts"],ZR={key:Qz,content:Jz,localIds:eB},tB="navigation-view",nB={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"}}}},rB=["navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],iB={key:tB,content:nB,localIds:rB},oB="no-application-url-view",aB={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:"查看如何配置编辑器"}}}},sB=["no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"],YR={key:oB,content:aB,localIds:sB},lB="node-type-selector",cB={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"}}},uB=["node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"],dB={key:lB,content:cB,localIds:uB},fB="save-dictionary-details",hB={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"}}}}},pB=["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],mB={key:fB,content:hB,localIds:pB},gB="structure-view",yB={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"}}}},vB=["structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"],bB={key:gB,content:yB,localIds:vB},_B="table",EB={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"}}},SB=["table::local::../@intlayer/design-system/src/components/Table/table.content.ts"],xB={key:_B,content:EB,localIds:SB},AB="version-switcher",wB={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"}}},TB=["version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"],CB={key:AB,content:wB,localIds:TB},SA={breadcrumb:tz,code:oz,"copy-button":cz,"dictionary-detail-schema":hz,"dictionary-details":yz,"dictionary-edition-drawer":hb,"dictionary-field-editor":Az,"dictionary-form-schema":Rz,"dictionary-form":Oz,"dictionary-list-drawer":WR,"expand-collapse":Bz,loader:$z,"locale-switcher-content":qz,"locale-switcher":Xz,"long-press-message":ZR,"navigation-view":iB,"no-application-url-view":YR,"node-type-selector":dB,"save-dictionary-details":mB,"structure-view":bB,table:xB,"version-switcher":CB},XR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return pb(e.content,r,t)},QR=(e,t,n)=>{const r=SA[e];if(!r)throw new Error(`Dictionary ${e} not found`,SA);return XR(r,t,n)},RB=(e,t,n)=>{const r=QR(e,n?.locale,n?.plugins);if(typeof t=="string"){const o=t.split(".");let s=r;for(const l of o)if(s=s?.[l],s===void 0)return r;return s}return r},kB=(e,t,n)=>e[t??n],NB=(e,t)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&n?.nodeType===H.Translation,transform:(n,r,o)=>{const s=structuredClone(n[H.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:H.Translation,key:l}]};s[l]=o(s[l],u)}return kB(s,e,t)}}),IB={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[H.Enumeration]);for(const o in r){const s=r[o],l={...t,children:s,keyPath:[...t.keyPath,{type:H.Enumeration,key:o}]};r[o]=n(s,l)}return o=>YM(r,o)}},OB={id:"condition-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Condition,transform:(e,t,n)=>{const r=structuredClone(e[H.Condition]);for(const o in r){const s=r[o],l={...t,children:s,keyPath:[...t.keyPath,{type:H.Condition,key:o}]};r[o]=n(s,l)}return o=>WM(r,o)}},DB={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:H.Insertion}],o=e[H.Insertion];return n(o,{...t,children:o,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 m=XM(f,p);return d(m,{...u,plugins:t.plugins,children:m})}}},...t.plugins??[]]})}},LB={id:"nested-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Nested,transform:(e,t)=>RB(e.nested.dictionaryKey,e.nested.path,t)},jB={id:"file-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},pb=(e,t,n=st?.internationalization.defaultLocale)=>{const r=[DB,NB(n),IB,OB,LB,jB,...t.plugins??[]];return mf(e,{...t,plugins:r})},xA={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},PB=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),zd=e=>e.reduce((t,n)=>{const r=t??{},o=PB(n??{});return typeof r=="object"&&typeof o=="object"?{...r,...o}:o??r},{}),Ne=async(e,...t)=>{const{signal:n}=new AbortController;let r="",o;const s=t.map(({body:b,params:x,headers:A,...w})=>w),l=zd([xA,...s]),u=zd([xA.headers,...t.map(b=>b.headers)]),d=zd(t.map(b=>b.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const b=zd(t.map(x=>x.body));u?.["Content-Type"]==="application/x-www-form-urlencoded"?o=new URLSearchParams(b).toString():o=JSON.stringify(b)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const p={...l,headers:u,body:o,signal:n},m=`${e}${r}`,v=await fetch(m,p);if(!v.ok){const b=await v.json();throw new Error(JSON.stringify(b.error)??"An error occurred")}return await v.json()},MB=(e={},t)=>{const n=t?.editor?.backendURL??st.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{customQuery:async(v,b={})=>await Ne(r,e,b,{method:"POST",body:v}),translateJSON:async(v,b={})=>await Ne(`${r}/translate/json`,e,b,{method:"POST",body:v}),auditContentDeclaration:async(v,b={})=>await Ne(`${r}/audit/dictionary`,e,b,{method:"POST",body:v}),auditContentDeclarationField:async(v,b={})=>await Ne(`${r}/audit/dictionary/field`,e,b,{method:"POST",body:v}),auditContentDeclarationMetadata:async(v,b={})=>await Ne(`${r}/audit/dictionary/metadata`,e,b,{method:"POST",body:v}),auditTag:async(v,b={})=>await Ne(`${r}/audit/tag`,e,b,{method:"POST",body:v}),askDocQuestion:async(v,b={})=>{if(!v)return;const{onMessage:x,onDone:A,...w}=v,k=new AbortController;try{const E=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...b.headers},body:JSON.stringify({...w,...e.body,...b.body}),signal:k.signal,credentials:"include"});if(!E.ok){let I="An error occurred";try{const D=await E.json();I=JSON.stringify(D.error)??"An error occurred"}catch{try{const D=await E.text();D&&(I=D)}catch{}}throw new Error(I)}const T=E.body?.getReader();if(!T)throw new Error("No reader available");const R=new TextDecoder;let C="";for(;;){const{done:I,value:D}=await T.read();if(I)break;C+=R.decode(D,{stream:!0});const L=C.split(`
51
+ `);C=L.pop()??"";for(const V of L)if(V.startsWith("data: "))try{const $=JSON.parse(V.slice(6));$.chunk&&x?.($.chunk),$.done&&$.response&&A?.($.response)}catch($){console.error("Failed to parse SSE data:",$)}}}catch(E){throw console.error("Error in askDocQuestion:",E),E}},autocomplete:async(v,b={})=>await Ne(`${r}/autocomplete`,e,b,{method:"POST",body:v})}},zB=(e={},t)=>{const n=t?.editor?.backendURL??st.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(v,b={})=>await Ne(r,e,b,{params:v}),getDictionariesKeys:async(v={})=>await Ne(`${r}/keys`,e,v),getDictionariesUpdateTimestamp:async(v={})=>await Ne(`${r}/update`,e,v),getDictionary:async(v,b,x={})=>await Ne(`${r}/${v}`,e,x,{params:b?{version:b.toString()}:void 0}),pushDictionaries:async(v,b={})=>await Ne(`${r}`,e,b,{method:"PATCH",body:{dictionaries:v}}),addDictionary:async(v,b={})=>await Ne(`${r}`,e,b,{method:"POST",body:v}),updateDictionary:async(v,b={})=>await Ne(`${r}/${v.id}`,e,b,{method:"PUT",body:v}),deleteDictionary:async(v,b={})=>await Ne(`${r}/${v}`,e,b,{method:"DELETE"})}},BB=(e={},t)=>{const n=t?.editor?.editorURL??st.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})}},VB=(e={},t)=>{const n=t?.editor?.backendURL??st.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"})}},JR=e=>{const t=e?.editor?.backendURL??st.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}})}},UB=(e={},t)=>{const n=t?.editor?.backendURL??st.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(b,x={})=>await Ne(r,e,x,{params:b}),getOrganization:async(b,x={})=>await Ne(`${r}/${String(b)}`,e,x),addOrganization:async(b,x={})=>await Ne(r,e,x,{method:"POST",body:b}),addOrganizationMember:async(b,x={})=>Ne(`${r}/member`,e,x,{method:"POST",body:b}),updateOrganization:async(b,x={})=>Ne(r,e,x,{method:"PUT",body:b}),updateOrganizationMembers:async(b,x={})=>Ne(`${r}/members`,e,x,{method:"PUT",body:b}),deleteOrganization:async(b={})=>await Ne(r,e,b,{method:"DELETE"}),selectOrganization:async(b,x={})=>await Ne(`${r}/${String(b)}`,e,x,{method:"PUT"}),unselectOrganization:async(b={})=>await Ne(`${r}/logout`,e,b,{method:"POST"})}},FB=(e={},t)=>{const n=t?.editor?.backendURL??st.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,w={})=>await Ne(r,e,w,{params:A}),addProject:async(A,w={})=>await Ne(`${r}`,e,w,{method:"POST",body:A}),updateProject:async(A,w={})=>await Ne(`${r}`,e,w,{method:"PUT",body:A}),updateProjectMembers:async(A,w={})=>await Ne(`${r}/members`,e,w,{method:"PUT",body:A}),pushProjectConfiguration:async(A,w={})=>await Ne(`${r}/configuration`,e,w,{method:"PUT",body:A}),deleteProject:async(A={})=>await Ne(`${r}`,e,A,{method:"DELETE"}),selectProject:async(A,w={})=>await Ne(`${r}/${String(A)}`,e,w,{method:"PUT"}),unselectProject:async(A={})=>await Ne(`${r}/logout`,e,A,{method:"POST"}),addNewAccessKey:async(A,w={})=>await Ne(`${r}/access_key`,e,w,{method:"POST",body:A}),deleteAccessKey:async(A,w={})=>await Ne(`${r}/access_key`,e,w,{method:"DELETE",body:{clientId:A}}),refreshAccessKey:async(A,w={})=>await Ne(`${r}/access_key`,e,w,{method:"PATCH",body:{clientId:A}})}},$B=(e={},t)=>{const n=t?.editor?.backendURL??st.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})}},HB=(e={},t)=>{const n=t?.editor?.backendURL??st.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"})}},GB=(e={},t)=>{const n=t?.editor?.backendURL??st.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"})}},KB=(e={},t)=>{const n=t?.editor?.backendURL??st.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(v,b={})=>await Ne(`${r}/`,e,b,{method:"POST",body:v}),getUsers:async(v,b={})=>await Ne(r,e,b,{params:v}),getUserById:async(v,b={})=>await Ne(`${r}/${v}`,e,b),getUserByAccount:async(v,b,x={})=>await Ne(`${r}/account/${b}/${v}`,e,x),getUserByEmail:async(v,b={})=>await Ne(`${r}/email/${v}`,e,b),updateUser:async(v,b={})=>await Ne(`${r}`,e,b,{method:"PUT",body:v}),deleteUser:async(v,b={})=>await Ne(`${r}/${v}`,e,b,{method:"DELETE"}),getVerifyEmailStatusURL:v=>`${r}/verify-email-status/${String(v)}`}},qB=(e={},t)=>({organization:UB(e,t),project:FB(e,t),user:KB(e,t),oAuth:JR(t),dictionary:zB(e,t),stripe:HB(e,t),ai:MB(e,t),tag:GB(e,t),search:$B(e,t),editor:BB(e,t),newsletter:VB(e,t)}),AA=(e,t,n)=>{let r=e,o=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(o=r,(u.type===H.Object||u.type===H.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===H.Translation||u.type===H.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===H.Enumeration||u.type===H.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===H.Markdown||u.type===H.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===H.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&o&&s.length>0){let d=o;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},dr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===H.Object||r.type===H.Array?n=n?.[r.key]:r.type===H.Translation||r.type===H.Condition||r.type===H.Enumeration?n=n?.[r.type][r.key]:(r.type===H.Markdown||r.type===H.Insertion||r.type===H.File)&&(n=n?.[r.type]);return n},Jl=(e,t,n)=>{const r=structuredClone(n);switch(e){case H.Translation:return{nodeType:H.Translation,[H.Translation]:Object.assign({},...t.map(o=>({[o]:structuredClone(r)??""})))};case H.Enumeration:return{nodeType:H.Enumeration,[H.Enumeration]:{1:r??""}};case H.Condition:return{nodeType:H.Condition,[H.Condition]:{true:r??"",false:r??""}};case H.Insertion:return{nodeType:H.Insertion,[H.Insertion]:{insertion:r??""}};case H.Nested:return{nodeType:H.Nested,[H.Nested]:{dictionaryKey:""}};case H.Markdown:return{nodeType:H.Markdown,[H.Markdown]:r??""};case H.File:return{nodeType:H.File,[H.File]:r??""};case H.Object:return{newKey:r??""};case H.Array:return[r??""];case H.Text:return r??"";case H.Number:return r??0;case H.Boolean:return r??!0;default:return r??""}},Yn=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,o=r[r.nodeType];return r.nodeType===H.Translation||r.nodeType===H.Enumeration||r.nodeType===H.Condition||r.nodeType===H.Insertion?Yn(o):r.nodeType===H.Nested?"dictionary-key":r.nodeType===H.File?"file/path":r.nodeType===H.Markdown?Yn(r):o}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(Yn);const t=Object.entries(e).map(([r,o])=>[r,Yn(o)]);return Object.fromEntries(t)},e1=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===H.Translation||t.nodeType===H.Enumeration||t.nodeType===H.Condition||t.nodeType===H.Insertion||t.nodeType===H.Gender||t.nodeType===H.File||t.nodeType===H.Markdown){const r=Object.keys(n)[0];return n[r]}return t.nodeType===H.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",Ms=e=>typeof e=="string"?H.Text:typeof e?.nodeType=="string"?e.nodeType:Array.isArray(e)?H.Array:WB(e)?H.ReactNode:typeof e=="number"?H.Number:typeof e=="boolean"?H.Boolean:e&&typeof e=="object"?H.Object:H.Unknown,ZB=[{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"}],YB=[{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"}],XB=[{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"}],QB=[{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"}],JB=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"}]`),eV=[{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"}],tV=[{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"}],nV=[{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"}],rV=[{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"}],iV=[{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:"शब्दकोश सूची",tr:"Sözlük listesi"}}},buttonLabel:{label:{fields:["dictionaryLocalId","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}}",tr:"Sözlük düzenleyiciyi aç {{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"}],oV=[{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"}],aV=[{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"}],sV=[{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"}],lV=[{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"}],cV=[{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"}],uV=[{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"}],dV=[{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"}],fV=[{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"}],hV=[{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"}],pV=[{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"}],mV=[{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"}],gV=[{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"}],yV={breadcrumb:ZB,code:YB,"copy-button":XB,"dictionary-detail-schema":QB,"dictionary-details":JB,"dictionary-edition-drawer":eV,"dictionary-field-editor":tV,"dictionary-form-schema":nV,"dictionary-form":rV,"dictionary-list-drawer":iV,"expand-collapse":oV,loader:aV,"locale-switcher-content":sV,"locale-switcher":lV,"long-press-message":cV,"navigation-view":uV,"no-application-url-view":dV,"node-type-selector":fV,"save-dictionary-details":hV,"structure-view":pV,table:mV,"version-switcher":gV},vV=(e,t,n=yV)=>{const r=n?.[e];if(!r)return null;for(const o of r)if(dr(o.content,t))return o},bV=(e,t,n)=>{let r=e,o=null,s=null;for(const l of n)o=r,(l.type===H.Object||l.type===H.Array)&&(s=l.key,r=r[l.key]),(l.type===H.Translation||l.type===H.Enumeration||l.type===H.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===H.Markdown||l.type===H.ReactNode||l.type===H.Insertion||l.type===H.File)&&(s=l.type,r=r[l.type]);if(o&&s!==null)if(Array.isArray(o))o[s]=r;else{const l={};for(const u of Object.keys(o))u===s&&typeof t<"u"?l[t]=r:l[u]=o[u];Object.keys(o).forEach(u=>delete o[u]),Object.assign(o,l)}return e},_V=(e,t)=>JSON.stringify([e,t]),EV=e=>{const t=new Map;function n(r,o){if(e.name==="DisplayNames"&&typeof Intl?.DisplayNames!="function")return r;const s=_V(r??B.ENGLISH,o);let l=t.get(s);return l||(l=new e(r,o),t.set(s,l)),l}return n.prototype=e.prototype,n},SV=()=>new Proxy(Intl,{get:(e,t,n)=>{const r=Reflect.get(e,t,n);return typeof r=="function"&&/^[A-Z]/.test(String(t))?EV(r):r}}),xV=SV(),AV=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"}},t1=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),gf=(e,t=e)=>new xV.DisplayNames(t,{type:"language"}).of(e)??"Unknown locale",wV=(e,t=st.internationalization.locales)=>{const n=t1(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const o=n?new URL(r):new URL(r,"http://example.com"),s=o.pathname;s.startsWith("/")||(o.pathname=`/${s}`);const l=s.split("/"),u=l[1];if(t.includes(u)){l.splice(1,1);const d=l.join("/")??"/";o.pathname=d}return n?o.toString():o.toString().replace("http://example.com","")},TV=(e,t=st.internationalization.locales,n=st.internationalization.defaultLocale,r=st.middleware.prefixDefault)=>{const o=wV(e,t),s=t1(o),l=s?new URL(o):new URL(o,"http://example.com");let u=l.pathname;u.startsWith("/")||(u=`/${u}`);const d=s?`${l.protocol}//${l.host}`:"";return t.reduce((p,m)=>{const v=m.toString()===n.toString();let x=r||!v?`/${m}${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[m]=A,p},{})},CV=(e,t,n=st.internationalization.locales,r=st.internationalization.defaultLocale,o=st.middleware.prefixDefault)=>TV(e,n,r,o)[t],RV=(e,t=st.internationalization.locales,n=st.internationalization.defaultLocale)=>{const r=[e].flat(),o=s=>s.trim().toLowerCase();try{for(const s of r){const l=o(s),u=t.find(p=>o(p)===l);if(u)return u;const[d]=l.split("-"),f=t.find(p=>o(p).split("-")[0]===d);if(f)return f}}catch{}return n},kV=e=>{const t=e.trim();if(!t)return null;if(!t.startsWith("[")&&!t.startsWith("{"))return!isNaN(Number(t))||t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?JSON.parse(t):t;let n=t.replace(/^\[/,"[").replace(/^\{/,"{").replace(/\]$/,"]").replace(/\}$/,"}").replace(/([\w\d_]+)\s*:/g,'"$1":').replace(/:\s*([a-zA-Z_][\w\d_]*)/g,': "$1"');return n=n.replace(/\[([^\[\]]+?)\]/g,(r,o)=>`[${o.split(",").map(l=>{const u=l.trim();return u.startsWith('"')&&u.endsWith('"')||!isNaN(Number(u))?u:`"${u}"`}).join(", ")}]`),JSON.parse(n)},n1=e=>{try{const t=e.split(/\r?\n/),n=t.find(u=>u.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let o=!1,s=null,l=[];for(let u=0;u<t.length;u++){const d=t[u];if(d.trim()==="---")if(o){s&&l.length>0&&(r[s]=l);break}else{o=!0;continue}if(o){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 m=d.match(/^([^:]+)\s*:\s*(.*)$/);if(m){const v=m[1].trim(),b=m[2].trim();if(b==="")s=v,l=[];else try{r[v]=kV(b)}catch{r[v]=b}}}}return r}catch{return{}}},Jc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),NV=(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 o=n.pathname.replace(/\/$/,""),s=r.pathname.replace(/\/$/,"");return!(o!==""&&s!==""&&o!==s)}catch(n){return console.error("Invalid URL(s)",n),!1}},IV=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 Tn=(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))(Tn||{});const ln=[];for(let e=0;e<256;++e)ln.push((e+256).toString(16).slice(1));function OV(e,t=0){return(ln[e[t+0]]+ln[e[t+1]]+ln[e[t+2]]+ln[e[t+3]]+"-"+ln[e[t+4]]+ln[e[t+5]]+"-"+ln[e[t+6]]+ln[e[t+7]]+"-"+ln[e[t+8]]+ln[e[t+9]]+"-"+ln[e[t+10]]+ln[e[t+11]]+ln[e[t+12]]+ln[e[t+13]]+ln[e[t+14]]+ln[e[t+15]]).toLowerCase()}let Eg;const DV=new Uint8Array(16);function LV(){if(!Eg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Eg=crypto.getRandomValues.bind(crypto)}return Eg(DV)}const jV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wA={randomUUID:jV};function PV(e,t,n){if(wA.randomUUID&&!e)return wA.randomUUID();e=e||{};const r=e.random??e.rng?.()??LV();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,OV(r)}const{editor:Sg}=st,r1=S.createContext({postMessage:()=>null,allowedOrigins:[Sg?.applicationURL,Sg?.editorURL,Sg?.cmsURL],senderId:""}),TA=({children:e,allowedOrigins:t,postMessage:n})=>{const r=S.useRef(PV()),o=S.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return y.jsx(r1.Provider,{value:o,children:e})},mb=()=>S.useContext(r1),Cs=(e,t,n)=>{const{allowedOrigins:r,postMessage:o,senderId:s}=mb();return S.useEffect(()=>{if(t){const u=d=>{const{type:f,data:p,senderId:m}=d.data;f===e&&m!==s&&(typeof r>"u"||r?.some(v=>NV(v,d.origin))||r?.includes("*"))&&t(p)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,o,s,n]),u=>{o({type:e,data:u,senderId:s})}},MV=(e,t)=>typeof e=="function"?e(t):e,so=(e,t,n)=>{const{postMessage:r,senderId:o}=mb(),{emit:s,receive:l}=n??{emit:!0,receive:!0},u=(b,x)=>{const A=MV(b,x);return s&&typeof r=="function"&&typeof A<"u"&&r({type:`${e}/post`,data:A,senderId:o}),A},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:o})},[f,p]=S.useState(()=>u(t)),m=b=>p(x=>u(b,x));Cs(`${e}/post`,l?b=>{p(b)}:void 0);const v=(b,x)=>{s&&typeof r=="function"&&x!==o&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:o}))};return Cs(`${e}/get`,s?v:void 0,f),S.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:o})},[]),[f,m,d]},i1=S.createContext(void 0),zV=({children:e,configuration:t})=>y.jsx(i1.Provider,{value:t,children:e}),Zr=()=>S.useContext(i1),o1=S.createContext(void 0),a1=S.createContext(void 0),BV=({children:e})=>{const[t,n]=so(Tn.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=S.useMemo(()=>({localeDictionaries:t??{}}),[t]),o=S.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{s.localId&&n(l=>({...l,[s.localId]:s}))}}),[n]);return y.jsx(o1.Provider,{value:r,children:y.jsx(a1.Provider,{value:o,children:e})})},yh=()=>S.useContext(a1),s1=()=>{const e=yh(),t=S.useContext(o1);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},l1=S.createContext(void 0),VV=e=>Cs(`${Tn.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),c1=S.createContext(void 0),CA=(e,t)=>typeof e=="function"?e(t):e,UV=({children:e})=>{const{localeDictionaries:t}=s1(),[n,r]=so(Tn.INTLAYER_EDITED_CONTENT_CHANGED),o=b=>{let x=CA(b);return r(A=>(x=CA(b,A?.[x.key]),{...A,[x.key]:x})),x},s=(b,x)=>{r(A=>({...A,[b]:{...A?.[b],content:x}}))},l=(b,x,A=[],w=!0)=>{r(k=>{const E=t[b]?.content,T=structuredClone(k?.[b]?.content??E);let R=A;if(!w){let I=0;const D=A.slice(0,-1),L=A[A.length-1];let V=L.key;for(;typeof dr(T,R)<"u";)I++,V=I===0?L.key:`${L.key} (${I})`,R=[...D,{...L,key:V}]}const C=AA(T,R,x);return{...k,[b]:{...k?.[b],content:C}}})},u=(b,x,A=[])=>{r(w=>{const k=t[b]?.content,E=structuredClone(w?.[b]?.content??k),T=bV(E,x,A);return{...w,[b]:{...w?.[b],content:T}}})},d=(b,x)=>{r(A=>{const w=t[b]?.content,k=structuredClone(A?.[b]?.content??w),E=dr(w,x),T=AA(k,x,E);return{...A,[b]:{...A?.[b],content:T}}})},f=b=>{r(x=>{const A={...x};return delete A[b],A})},p=b=>{r(x=>Object.entries(x).reduce((w,[k,E])=>k===b?w:{...w,[k]:E},{}))},m=()=>{r({})},v=(b,x)=>{if(!n)return;if(b.includes(":local:")||b.includes(":remote:")){const k=n?.[b]?.content??{};return dr(k,x)}const w=Object.keys(n).filter(k=>k.startsWith(`${b}:`));for(const k of w){const E=n?.[k]?.content??{},T=dr(E,x);if(T)return T}};return y.jsx(l1.Provider,{value:{editedContent:n},children:y.jsx(c1.Provider,{value:{setEditedContentState:r,setEditedDictionary:o,setEditedContent:s,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:p,clearEditedContent:m,getEditedContentValue:v},children:e})})},zs=()=>S.useContext(c1),Cn=()=>{const e=S.useContext(l1),t=zs();return{...e,...t}},u1=S.createContext({enabled:!1}),FV=e=>so(Tn.INTLAYER_EDITOR_ENABLED,!1,e),$V=e=>Cs(`${Tn.INTLAYER_EDITOR_ENABLED}/post`,e),d1=e=>Cs(`${Tn.INTLAYER_EDITOR_ENABLED}/get`,e),HV=({children:e})=>{const[t]=FV({emit:!1,receive:!0});return y.jsx(u1.Provider,{value:{enabled:t},children:e})},f1=()=>S.useContext(u1),h1=S.createContext(void 0),p1=S.createContext(void 0),GV=({children:e})=>{const[t,n]=so(Tn.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=o=>{n(s=>s&&{...s,keyPath:o})};return y.jsx(h1.Provider,{value:{focusedContent:t},children:y.jsx(p1.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},gb=()=>{const e=S.useContext(p1);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},mo=()=>{const e=gb(),t=S.useContext(h1);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},RA=({children:e})=>{const t=VV();return S.useEffect(()=>{t()},[]),y.jsx(BV,{children:y.jsx(UV,{children:y.jsx(GV,{children:e})})})},KV=({children:e,fallback:t})=>{const n=d1(),{enabled:r}=f1();return S.useEffect(()=>{r||n()},[r]),r?e:t},qV=({children:e,fallback:t})=>{const[n,r]=S.useState(!1);return S.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},WV=({children:e,configuration:t,...n})=>y.jsx(HV,{children:y.jsx(zV,{configuration:t,children:n.mode==="editor"?y.jsx(TA,{...n,children:y.jsx(RA,{children:e})}):y.jsx(qV,{fallback:e,children:y.jsx(TA,{...n,children:y.jsx(KV,{fallback:e,children:y.jsx(RA,{children:e})})})})})}),ZV=(e,t)=>so(Tn.INTLAYER_URL_CHANGE,e,t),YV=()=>Cs(Tn.INTLAYER_IFRAME_CLICKED,IV);/*! js-cookie v3.0.5 | MIT */function Bd(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 XV={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 My(e,t){function n(o,s,l){if(!(typeof document>"u")){l=Bd({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),o=encodeURIComponent(o).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=o+"="+e.write(s,o)+u}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){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),o===p)break}catch{}}return o?l[o]:l}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Bd({},s,{expires:-1}))},withAttributes:function(o){return My(this.converter,Bd({},this.attributes,o))},withConverter:function(o){return My(Bd({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var m1=My(XV,{path:"/"});const{cookieName:g1}=st.middleware,QV={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},yb=m1.get(g1),y1=e=>{m1.set(g1,e,QV)},JV=()=>({localeCookie:yb,setLocaleCookie:y1}),eu=S.createContext({locale:yb??st?.internationalization?.defaultLocale,setLocale:()=>null,disableEditor:!1}),eU=()=>S.useContext(eu),tU=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:o})=>{const{internationalization:s}=st??{},{defaultLocale:l,locales:u}=s??{},d=e??yb??t??l,[f,p]=so(Tn.INTLAYER_CURRENT_LOCALE,d),v=r??(x=>{if(f.toString()!==x.toString()){if(!u?.map(String).includes(x)){console.error(`Locale ${x} is not available`);return}p(x),y1(x)}}),b=RV(e??f);return y.jsx(eu.Provider,{value:{locale:b,setLocale:v,disableEditor:o},children:n})},Lf=({children:e,value:t,additionalProps:n})=>{const r=S.isValidElement(e)?e:y.jsx(y.Fragment,{children:e});return new Proxy(r,{get(o,s,l){return s==="value"?t:n&&Object.keys(n).includes(s)?n[s]:Reflect.get(o,s,l)}})},nU=(e,t,n)=>QR(e,t,[b1,_1,E1]),dn=(e,t)=>{const{locale:n}=S.useContext(eu);return S.useMemo(()=>nU(e,n),[e,n,t])},vb=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=st?.internationalization??{},{locale:r,setLocale:o}=S.useContext(eu),{setLocaleCookie:s}=JV(),l=S.useCallback(u=>{if(!n?.map(String).includes(u)){console.error(`Locale ${u} is not available`);return}o(u),s(u),e?.(u)},[n,e,s,o]);return{locale:r,defaultLocale:t,availableLocales:n,setLocale:l}},rU=250,iU=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:o,pressDuration:s=rU,isSelecting:l,...u})=>{const d=S.useRef(null),[f,p]=S.useState(!1),[m,v]=S.useState(l),b=S.useRef(null),x=typeof e=="string",A=()=>{v(!0),t()},w=()=>{b.current=setTimeout(()=>{A()},s)},k=()=>{b.current&&(clearTimeout(b.current),b.current=null)},E=()=>{k(),w()},T=()=>{p(!0),n?.()},R=()=>{r?.(),p(!1),k()},C=S.useCallback(L=>{d.current&&!d.current.contains(L.target)&&(v(!1),o?.())},[o]);S.useEffect(()=>(document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}),[C]);const I=L=>{m&&(L.preventDefault(),L.stopPropagation())},D=()=>{v(!1)};return y.jsx("span",{style:{display:x?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:l||m||f?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:I,onMouseDown:E,onMouseUp:R,onMouseLeave:R,onTouchStart:E,onTouchEnd:R,onTouchCancel:R,onBlur:D,onMouseEnter:T,ref:d,...u,children:e})},oU=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:o}=mo(),{postMessage:s,senderId:l}=mb(),u=S.useCallback(()=>o({dictionaryKey:t,keyPath:n}),[t,n]),d=S.useCallback(()=>s({type:`${Tn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:n},senderId:l}),[t,n]),f=S.useCallback(()=>s({type:`${Tn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:l}),[l]),p=S.useMemo(()=>(r?.dictionaryKey===t&&(r?.keyPath?.length??0)>0&&Jc(r?.keyPath??[],n))??!1,[r,n,t]);return y.jsx(iU,{onPress:u,onHover:d,onUnhover:f,isSelecting:p,children:e})},jf=({children:e,...t})=>{const{enabled:n}=f1(),{disableEditor:r}=eU();return n&&!r?y.jsx(oU,{...t,children:e}):e},bb=({dictionaryKey:e,keyPath:t,children:n})=>{const r=zs();return r?r.getEditedContentValue(e,t)??n:n},aU=e=>{const t=bb(e);if(typeof t=="object"){const n=pb(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},sU=S.createContext({renderMarkdown:e=>e}),lU=()=>S.useContext(sU),cU=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:o}=lU(),s=bb({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const l=pb(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)}`),o(n)):o(l)}return o(s)},uU=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const o=bb({dictionaryKey:e,keyPath:t,children:n}),s=n1(o);return dr(s,r)},v1=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(v1((u??{})[d]))}),{...s,props:{...s.props,children:l}}}return{...s,props:{...s.props,children:s.props?.children??[]}}})(e),{type:r,props:o}=n;return S.createElement(r??"span",o,...o.children)},b1={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>Lf({...n,value:n.children,children:S.createElement(jf,{...n,key:n.children},y.jsx(aU,{...n,children:n.children}))})},_1={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>Lf({...n,value:"[[react-element]]",children:y.jsx(jf,{...n,children:v1(e)})})},dU={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...o}=t,s=n1(e),u=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>Lf({...f,value:d,children:y.jsx(jf,{...o,children:y.jsx(uU,{...o,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:o.dictionaryKey,keyPath:[]});return Lf({...t,value:e,children:y.jsx(jf,{...o,children:y.jsx(cU,{...o,children:e})}),additionalProps:{metadata:u}})}},E1={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===H.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:H.Markdown}],o=e[H.Markdown];return n(o,{...t,children:o,keyPath:r,plugins:[dU,...t.plugins??[]]})}},fU=(e,t,n)=>XR(e,t,[b1,_1,E1]),tu=(e,t)=>{const{locale:n}=S.useContext(eu);return S.useMemo(()=>fU(e,n),[e,n,t])};/**
52
+ * react-router v7.9.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 kA="popstate";function hU(e={}){function t(r,o){let{pathname:s,search:l,hash:u}=r.location;return zy("",{pathname:s,search:l,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Lc(o)}return mU(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pU(){return Math.random().toString(36).substring(2,10)}function NA(e,t){return{usr:e.state,key:e.key,idx:t}}function zy(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Bs(t):t,state:n,key:t&&t.key||r||pU()}}function Lc({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 Bs(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 mU(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.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 m(){u="POP";let w=p(),k=w==null?null:w-f;f=w,d&&d({action:u,location:A.location,delta:k})}function v(w,k){u="PUSH";let E=zy(A.location,w,k);f=p()+1;let T=NA(E,f),R=A.createHref(E);try{l.pushState(T,"",R)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(R)}s&&d&&d({action:u,location:A.location,delta:1})}function b(w,k){u="REPLACE";let E=zy(A.location,w,k);f=p();let T=NA(E,f),R=A.createHref(E);l.replaceState(T,"",R),s&&d&&d({action:u,location:A.location,delta:0})}function x(w){return gU(w)}let A={get action(){return u},get location(){return e(o,l)},listen(w){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(kA,m),d=w,()=>{o.removeEventListener(kA,m),d=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let k=x(w);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:v,replace:b,go(w){return l.go(w)}};return A}function gU(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Lc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function S1(e,t,n="/"){return yU(e,t,n,!1)}function yU(e,t,n,r){let o=typeof t=="string"?Bs(t):t,s=bi(o.pathname||"/",n);if(s==null)return null;let l=x1(e);vU(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=kU(s);u=CU(l[d],f,r)}return u}function x1(e,t=[],n=[],r="",o=!1){let s=(l,u,d=o,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;Tt(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 m=vi([r,p.relativePath]),v=n.concat(p);l.children&&l.children.length>0&&(Tt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),x1(l.children,t,v,m,d)),!(l.path==null&&!l.index)&&t.push({path:m,score:wU(m,l.index),routesMeta:v})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))s(l,u);else for(let d of A1(l.path))s(l,u,!0,d)}),t}function A1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=A1(r.join("/")),u=[];return u.push(...l.map(d=>d===""?s:[s,d].join("/"))),o&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function vU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var bU=/^:[\w-]+$/,_U=3,EU=2,SU=1,xU=10,AU=-2,IA=e=>e==="*";function wU(e,t){let n=e.split("/"),r=n.length;return n.some(IA)&&(r+=AU),t&&(r+=EU),n.filter(o=>!IA(o)).reduce((o,s)=>o+(bU.test(s)?_U:s===""?SU:xU),r)}function TU(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function CU(e,t,n=!1){let{routesMeta:r}=e,o={},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)||"/",m=Pf({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),v=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=Pf({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!m)return null;Object.assign(o,m.params),l.push({params:o,pathname:vi([s,m.pathname]),pathnameBase:DU(vi([s,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(s=vi([s,m.pathnameBase]))}return l}function Pf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=RU(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:m},v)=>{if(p==="*"){let x=u[v]||"";l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const b=u[v];return m&&!b?f[p]=void 0:f[p]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function RU(e,t=!1,n=!0){qr(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=[],o="^"+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:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function kU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qr(!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 bi(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 NU(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Bs(e):e;return{pathname:n?n.startsWith("/")?n:IU(n,t):t,search:LU(r),hash:jU(o)}}function IU(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function xg(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 OU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function w1(e){let t=OU(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function T1(e,t,n,r=!1){let o;typeof e=="string"?o=Bs(e):(o={...e},Tt(!o.pathname||!o.pathname.includes("?"),xg("?","pathname","search",o)),Tt(!o.pathname||!o.pathname.includes("#"),xg("#","pathname","hash",o)),Tt(!o.search||!o.search.includes("#"),xg("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),m-=1;o.pathname=v.join("/")}u=m>=0?t[m]:"/"}let d=NU(o,u),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var vi=e=>e.join("/").replace(/\/\/+/g,"/"),DU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function PU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var C1=["POST","PUT","PATCH","DELETE"];new Set(C1);var MU=["GET",...C1];new Set(MU);var Vs=S.createContext(null);Vs.displayName="DataRouter";var vh=S.createContext(null);vh.displayName="DataRouterState";S.createContext(!1);var R1=S.createContext({isTransitioning:!1});R1.displayName="ViewTransition";var zU=S.createContext(new Map);zU.displayName="Fetchers";var BU=S.createContext(null);BU.displayName="Await";var Yr=S.createContext(null);Yr.displayName="Navigation";var nu=S.createContext(null);nu.displayName="Location";var wi=S.createContext({outlet:null,matches:[],isDataRoute:!1});wi.displayName="Route";var _b=S.createContext(null);_b.displayName="RouteError";function VU(e,{relative:t}={}){Tt(ru(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Yr),{hash:o,pathname:s,search:l}=iu(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:vi([n,s])),r.createHref({pathname:u,search:l,hash:o})}function ru(){return S.useContext(nu)!=null}function go(){return Tt(ru(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(nu).location}var k1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function N1(e){S.useContext(Yr).static||S.useLayoutEffect(e)}function UU(){let{isDataRoute:e}=S.useContext(wi);return e?eF():FU()}function FU(){Tt(ru(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Vs),{basename:t,navigator:n}=S.useContext(Yr),{matches:r}=S.useContext(wi),{pathname:o}=go(),s=JSON.stringify(w1(r)),l=S.useRef(!1);return N1(()=>{l.current=!0}),S.useCallback((d,f={})=>{if(qr(l.current,k1),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=T1(d,JSON.parse(s),o,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:vi([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,s,o,e])}S.createContext(null);function iu(e,{relative:t}={}){let{matches:n}=S.useContext(wi),{pathname:r}=go(),o=JSON.stringify(w1(n));return S.useMemo(()=>T1(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function $U(e,t){return I1(e,t)}function I1(e,t,n,r,o){Tt(ru(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(Yr),{matches:l}=S.useContext(wi),u=l[l.length-1],d=u?u.params:{},f=u?u.pathname:"/",p=u?u.pathnameBase:"/",m=u&&u.route;{let E=m&&m.path||"";O1(f,!m||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${E}">) 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="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let v=go(),b;if(t){let E=typeof t=="string"?Bs(t):t;Tt(p==="/"||E.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 "${E.pathname}" was given in the \`location\` prop.`),b=E}else b=v;let x=b.pathname||"/",A=x;if(p!=="/"){let E=p.replace(/^\//,"").split("/");A="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=S1(e,{pathname:A});qr(m||w!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),qr(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 k=WU(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:vi([p,s.encodeLocation?s.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?p:vi([p,s.encodeLocation?s.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),l,n,r,o);return t&&k?S.createElement(nu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},k):k}function HU(){let e=JU(),t=PU(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)",o={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=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,l)}var GU=S.createElement(HU,null),KU=class extends S.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?S.createElement(wi.Provider,{value:this.props.routeContext},S.createElement(_b.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qU({routeContext:e,match:t,children:n}){let r=S.useContext(Vs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(wi.Provider,{value:e},n)}function WU(e,t=[],n=null,r=null,o=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);Tt(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:m,errors:v}=n,b=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||b){u=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((f,p,m)=>{let v,b=!1,x=null,A=null;n&&(v=l&&p.route.id?l[p.route.id]:void 0,x=p.route.errorElement||GU,u&&(d<0&&m===0?(O1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,A=null):d===m&&(b=!0,A=p.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,m+1)),k=()=>{let E;return v?E=x:b?E=A:p.route.Component?E=S.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=f,S.createElement(qU,{match:p,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:E})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?S.createElement(KU,{location:n.location,revalidation:n.revalidation,component:x,error:v,children:k(),routeContext:{outlet:null,matches:w,isDataRoute:!0},unstable_onError:r}):k()},null)}function Eb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZU(e){let t=S.useContext(Vs);return Tt(t,Eb(e)),t}function YU(e){let t=S.useContext(vh);return Tt(t,Eb(e)),t}function XU(e){let t=S.useContext(wi);return Tt(t,Eb(e)),t}function Sb(e){let t=XU(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function QU(){return Sb("useRouteId")}function JU(){let e=S.useContext(_b),t=YU("useRouteError"),n=Sb("useRouteError");return e!==void 0?e:t.errors?.[n]}function eF(){let{router:e}=ZU("useNavigate"),t=Sb("useNavigate"),n=S.useRef(!1);return N1(()=>{n.current=!0}),S.useCallback(async(o,s={})=>{qr(n.current,k1),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var OA={};function O1(e,t,n){!t&&!OA[e]&&(OA[e]=!0,qr(!1,n))}S.memo(tF);function tF({routes:e,future:t,state:n,unstable_onError:r}){return I1(e,void 0,n,r,t)}function D1(e){Tt(!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 nF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1}){Tt(!ru(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:l,navigator:o,static:s,future:{}}),[l,o,s]);typeof n=="string"&&(n=Bs(n));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:v="default"}=n,b=S.useMemo(()=>{let x=bi(d,l);return x==null?null:{location:{pathname:x,search:f,hash:p,state:m,key:v},navigationType:r}},[l,d,f,p,m,v,r]);return qr(b!=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.`),b==null?null:S.createElement(Yr.Provider,{value:u},S.createElement(nu.Provider,{children:t,value:b}))}function rF({children:e,location:t}){return $U(By(e),t)}function By(e,t=[]){let n=[];return S.Children.forEach(e,(r,o)=>{if(!S.isValidElement(r))return;let s=[...t,o];if(r.type===S.Fragment){n.push.apply(n,By(r.props.children,s));return}Tt(r.type===D1,`[${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>`),Tt(!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,middleware:r.props.middleware,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=By(r.props.children,s)),n.push(l)}),n}var yf="get",vf="application/x-www-form-urlencoded";function bh(e){return e!=null&&typeof e.tagName=="string"}function iF(e){return bh(e)&&e.tagName.toLowerCase()==="button"}function oF(e){return bh(e)&&e.tagName.toLowerCase()==="form"}function aF(e){return bh(e)&&e.tagName.toLowerCase()==="input"}function sF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lF(e,t){return e.button===0&&(!t||t==="_self")&&!sF(e)}var Vd=null;function cF(){if(Vd===null)try{new FormData(document.createElement("form"),0),Vd=!1}catch{Vd=!0}return Vd}var uF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ag(e){return e!=null&&!uF.has(e)?(qr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vf}"`),null):e}function dF(e,t){let n,r,o,s,l;if(oF(e)){let u=e.getAttribute("action");r=u?bi(u,t):null,n=e.getAttribute("method")||yf,o=Ag(e.getAttribute("enctype"))||vf,s=new FormData(e)}else if(iF(e)||aF(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?bi(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||yf,o=Ag(e.getAttribute("formenctype"))||Ag(u.getAttribute("enctype"))||vf,s=new FormData(u,e),!cF()){let{name:f,type:p,value:m}=e;if(p==="image"){let v=f?`${f}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else f&&s.append(f,m)}}else{if(bh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yf,r=null,o=vf,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fF(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&&bi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function hF(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 pF(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 mF(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let l=await hF(s,n);return l.links?l.links():[]}return[]}));return bF(r.flat(1).filter(pF).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function DA(e,t,n,r,o,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 m=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function gF(e,t,{includeHydrateFallback:n}={}){return yF(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function yF(e){return[...new Set(e)]}function vF(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function bF(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(vF(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function L1(){let e=S.useContext(Vs);return xb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function _F(){let e=S.useContext(vh);return xb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ab=S.createContext(void 0);Ab.displayName="FrameworkContext";function j1(){let e=S.useContext(Ab);return xb(e,"You must render this element inside a <HydratedRouter> element"),e}function EF(e,t){let n=S.useContext(Ab),[r,o]=S.useState(!1),[s,l]=S.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:m}=t,v=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=k=>{k.forEach(E=>{l(E.isIntersecting)})},w=new IntersectionObserver(A,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),S.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let b=()=>{o(!0)},x=()=>{o(!1),l(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:ec(u,b),onBlur:ec(d,x),onMouseEnter:ec(f,b),onMouseLeave:ec(p,x),onTouchStart:ec(m,b)}]:[!1,v,{}]}function ec(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function SF({page:e,...t}){let{router:n}=L1(),r=S.useMemo(()=>S1(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(AF,{page:e,matches:r,...t}):null}function xF(e){let{manifest:t,routeModules:n}=j1(),[r,o]=S.useState([]);return S.useEffect(()=>{let s=!1;return mF(e,t,n).then(l=>{s||o(l)}),()=>{s=!0}},[e,t,n]),r}function AF({page:e,matches:t,...n}){let r=go(),{manifest:o,routeModules:s}=j1(),{basename:l}=L1(),{loaderData:u,matches:d}=_F(),f=S.useMemo(()=>DA(e,t,d,o,r,"data"),[e,t,d,o,r]),p=S.useMemo(()=>DA(e,t,d,o,r,"assets"),[e,t,d,o,r]),m=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,A=!1;if(t.forEach(k=>{let E=o.routes[k.route.id];!E||!E.hasLoader||(!f.some(T=>T.route.id===k.route.id)&&k.route.id in u&&s[k.route.id]?.shouldRevalidate||E.hasClientLoader?A=!0:x.add(k.route.id))}),x.size===0)return[];let w=fF(e,l,"data");return A&&x.size>0&&w.searchParams.set("_routes",t.filter(k=>x.has(k.route.id)).map(k=>k.route.id).join(",")),[w.pathname+w.search]},[l,u,r,o,f,t,e,s]),v=S.useMemo(()=>gF(p,o),[p,o]),b=xF(p);return S.createElement(S.Fragment,null,m.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),v.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),b.map(({key:x,link:A})=>S.createElement("link",{key:x,nonce:n.nonce,...A})))}function wF(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var P1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{P1&&(window.__reactRouterVersion="7.9.2")}catch{}function TF({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=hU({window:n,v5Compat:!0}));let o=r.current,[s,l]=S.useState({action:o.action,location:o.location}),u=S.useCallback(d=>{S.startTransition(()=>l(d))},[l]);return S.useLayoutEffect(()=>o.listen(u),[o,u]),S.createElement(nF,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}var M1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z1=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:l,state:u,target:d,to:f,preventScrollReset:p,viewTransition:m,...v},b){let{basename:x}=S.useContext(Yr),A=typeof f=="string"&&M1.test(f),w,k=!1;if(typeof f=="string"&&A&&(w=f,P1))try{let V=new URL(window.location.href),$=f.startsWith("//")?new URL(V.protocol+f):new URL(f),Z=bi($.pathname,x);$.origin===V.origin&&Z!=null?f=Z+$.search+$.hash:k=!0}catch{qr(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let E=VU(f,{relative:o}),[T,R,C]=EF(r,v),I=NF(f,{replace:l,state:u,target:d,preventScrollReset:p,relative:o,viewTransition:m});function D(V){t&&t(V),V.defaultPrevented||I(V)}let L=S.createElement("a",{...v,...C,href:w||E,onClick:k||s?t:D,ref:wF(b,R),target:d,"data-discover":!A&&n==="render"?"true":void 0});return T&&!A?S.createElement(S.Fragment,null,L,S.createElement(SF,{page:E})):L});z1.displayName="Link";var CF=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:l,viewTransition:u,children:d,...f},p){let m=iu(l,{relative:f.relative}),v=go(),b=S.useContext(vh),{navigator:x,basename:A}=S.useContext(Yr),w=b!=null&&jF(m)&&u===!0,k=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,E=v.pathname,T=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(E=E.toLowerCase(),T=T?T.toLowerCase():null,k=k.toLowerCase()),T&&A&&(T=bi(T,A)||T);const R=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let C=E===k||!o&&E.startsWith(k)&&E.charAt(R)==="/",I=T!=null&&(T===k||!o&&T.startsWith(k)&&T.charAt(k.length)==="/"),D={isActive:C,isPending:I,isTransitioning:w},L=C?t:void 0,V;typeof r=="function"?V=r(D):V=[r,C?"active":null,I?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let $=typeof s=="function"?s(D):s;return S.createElement(z1,{...f,"aria-current":L,className:V,ref:p,style:$,to:l,viewTransition:u},typeof d=="function"?d(D):d)});CF.displayName="NavLink";var RF=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:l=yf,action:u,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:m,...v},b)=>{let x=DF(),A=LF(u,{relative:f}),w=l.toLowerCase()==="get"?"get":"post",k=typeof u=="string"&&M1.test(u),E=T=>{if(d&&d(T),T.defaultPrevented)return;T.preventDefault();let R=T.nativeEvent.submitter,C=R?.getAttribute("formmethod")||l;x(R||T.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:o,state:s,relative:f,preventScrollReset:p,viewTransition:m})};return S.createElement("form",{ref:b,method:w,action:A,onSubmit:r?d:E,...v,"data-discover":!k&&e==="render"?"true":void 0})});RF.displayName="Form";function kF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function B1(e){let t=S.useContext(Vs);return Tt(t,kF(e)),t}function NF(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:l}={}){let u=UU(),d=go(),f=iu(e,{relative:s});return S.useCallback(p=>{if(lF(p,t)){p.preventDefault();let m=n!==void 0?n:Lc(d)===Lc(f);u(e,{replace:m,state:r,preventScrollReset:o,relative:s,viewTransition:l})}},[d,u,f,n,r,t,e,o,s,l])}var IF=0,OF=()=>`__${String(++IF)}__`;function DF(){let{router:e}=B1("useSubmit"),{basename:t}=S.useContext(Yr),n=QU();return S.useCallback(async(r,o={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=dF(r,t);if(o.navigate===!1){let p=o.fetcherKey||OF();await e.fetch(p,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||l,formEncType:o.encType||u,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function LF(e,{relative:t}={}){let{basename:n}=S.useContext(Yr),r=S.useContext(wi);Tt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...iu(e||".",{relative:t})},l=go();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(m=>m).forEach(m=>u.append("index",m));let p=u.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:vi([n,s.pathname])),Lc(s)}function jF(e,{relative:t}={}){let n=S.useContext(R1);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=B1("useViewTransitionState"),o=iu(e,{relative:t});if(!n.isTransitioning)return!1;let s=bi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=bi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pf(o.pathname,l)!=null||Pf(o.pathname,s)!=null}var ma=qR();const PF=fb(ma);/**
63
+ * @license lucide-react v0.544.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 MF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zF=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),LA=e=>{const t=zF(e);return t.charAt(0).toUpperCase()+t.slice(1)},V1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),BF=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
68
+ * @license lucide-react v0.544.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 VF={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.544.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 UF=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...u},d)=>S.createElement("svg",{ref:d,...VF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:V1("lucide",o),...!s&&!BF(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,p])=>S.createElement(f,p)),...Array.isArray(s)?s:[s]]));/**
78
+ * @license lucide-react v0.544.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 bt=(e,t)=>{const n=S.forwardRef(({className:r,...o},s)=>S.createElement(UF,{ref:s,iconNode:t,className:V1(`lucide-${MF(LA(e))}`,`lucide-${e}`,r),...o}));return n.displayName=LA(e),n};/**
83
+ * @license lucide-react v0.544.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 FF=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],$F=bt("arrow-left",FF);/**
88
+ * @license lucide-react v0.544.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 HF=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],GF=bt("arrow-up-from-line",HF);/**
93
+ * @license lucide-react v0.544.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 KF=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Us=bt("check",KF);/**
98
+ * @license lucide-react v0.544.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 qF=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],U1=bt("chevron-down",qF);/**
103
+ * @license lucide-react v0.544.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 WF=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ZF=bt("chevron-left",WF);/**
108
+ * @license lucide-react v0.544.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 YF=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Mf=bt("chevron-right",YF);/**
113
+ * @license lucide-react v0.544.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 XF=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],QF=bt("chevron-up",XF);/**
118
+ * @license lucide-react v0.544.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 JF=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],e$=bt("chevrons-up-down",JF);/**
123
+ * @license lucide-react v0.544.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 t$=[["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"}]],n$=bt("copy-check",t$);/**
128
+ * @license lucide-react v0.544.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 r$=[["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"}]],i$=bt("copy",r$);/**
133
+ * @license lucide-react v0.544.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 o$=[["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"}]],a$=bt("download",o$);/**
138
+ * @license lucide-react v0.544.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 s$=[["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"}]],l$=bt("external-link",s$);/**
143
+ * @license lucide-react v0.544.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 c$=[["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"}]],u$=bt("eye-off",c$);/**
148
+ * @license lucide-react v0.544.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 d$=[["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"}]],f$=bt("eye",d$);/**
153
+ * @license lucide-react v0.544.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 h$=[["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"}]],p$=bt("globe",h$);/**
158
+ * @license lucide-react v0.544.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 m$=[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]],g$=bt("move-diagonal",m$);/**
163
+ * @license lucide-react v0.544.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 y$=[["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"}]],v$=bt("move-vertical",y$);/**
168
+ * @license lucide-react v0.544.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 b$=[["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"}]],F1=bt("pencil",b$);/**
173
+ * @license lucide-react v0.544.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 _$=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_h=bt("plus",_$);/**
178
+ * @license lucide-react v0.544.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 E$=[["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"}]],S$=bt("rotate-ccw",E$);/**
183
+ * @license lucide-react v0.544.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 x$=[["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"}]],jA=bt("save",x$);/**
188
+ * @license lucide-react v0.544.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 A$=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],w$=bt("search",A$);/**
193
+ * @license lucide-react v0.544.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 T$=[["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"}]],Eh=bt("trash",T$);/**
198
+ * @license lucide-react v0.544.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 C$=[["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"}]],$1=bt("wand-sparkles",C$);/**
203
+ * @license lucide-react v0.544.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 R$=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ga=bt("x",R$);function H1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=H1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sh(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=H1(e))&&(r&&(r+=" "),r+=t);return r}const wb="-",k$=e=>{const t=I$(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(wb);return u[0]===""&&u.length!==1&&u.shift(),G1(u,t)||N$(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},G1=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?G1(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(wb);return t.validators.find(({validator:l})=>l(s))?.classGroupId},PA=/^\[(.+)\]$/,N$=e=>{if(PA.test(e)){const t=PA.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},I$=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Vy(n[o],r,o,t);return r},Vy=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:MA(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(O$(o)){Vy(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,l])=>{Vy(l,MA(t,s),n,r)})})},MA=(e,t)=>{let n=e;return t.split(wb).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},O$=e=>e.isThemeGetter,D$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(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 o(s,l),l},set(s,l){n.has(s)?n.set(s,l):o(s,l)}}},Uy="!",Fy=":",L$=Fy.length,j$=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let l=0,u=0,d=0,f;for(let x=0;x<o.length;x++){let A=o[x];if(l===0&&u===0){if(A===Fy){s.push(o.slice(d,x)),d=x+L$;continue}if(A==="/"){f=x;continue}}A==="["?l++:A==="]"?l--:A==="("?u++:A===")"&&u--}const p=s.length===0?o:o.substring(d),m=P$(p),v=m!==p,b=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:v,baseClassName:m,maybePostfixModifierPosition:b}};if(t){const o=t+Fy,s=r;r=l=>l.startsWith(o)?s(l.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},P$=e=>e.endsWith(Uy)?e.substring(0,e.length-1):e.startsWith(Uy)?e.substring(1):e,M$=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(l=>{l[0]==="["||t[l]?(o.push(...s.sort(),l),s=[]):s.push(l)}),o.push(...s.sort()),o}},z$=e=>({cache:D$(e.cacheSize),parseClassName:j$(e),sortModifiers:M$(e),...k$(e)}),B$=/\s+/,V$=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,l=[],u=e.trim().split(B$);let d="";for(let f=u.length-1;f>=0;f-=1){const p=u[f],{isExternal:m,modifiers:v,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:A}=n(p);if(m){d=p+(d.length>0?" "+d:d);continue}let w=!!A,k=r(w?x.substring(0,A):x);if(!k){if(!w){d=p+(d.length>0?" "+d:d);continue}if(k=r(x),!k){d=p+(d.length>0?" "+d:d);continue}w=!1}const E=s(v).join(":"),T=b?E+Uy:E,R=T+k;if(l.includes(R))continue;l.push(R);const C=o(k,w);for(let I=0;I<C.length;++I){const D=C[I];l.push(T+D)}d=p+(d.length>0?" "+d:d)}return d};function U$(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=K1(t))&&(r&&(r+=" "),r+=n);return r}const K1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=K1(e[r]))&&(n&&(n+=" "),n+=t);return n};function F$(e,...t){let n,r,o,s=l;function l(d){const f=t.reduce((p,m)=>m(p),e());return n=z$(f),r=n.cache.get,o=n.cache.set,s=u,u(d)}function u(d){const f=r(d);if(f)return f;const p=V$(d,n);return o(d,p),p}return function(){return s(U$.apply(null,arguments))}}const Kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},q1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,W1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$$=/^\d+\/\d+$/,H$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G$=/\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$/,K$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,q$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,W$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,as=e=>$$.test(e),qe=e=>!!e&&!Number.isNaN(Number(e)),Ji=e=>!!e&&Number.isInteger(Number(e)),wg=e=>e.endsWith("%")&&qe(e.slice(0,-1)),mi=e=>H$.test(e),Z$=()=>!0,Y$=e=>G$.test(e)&&!K$.test(e),Z1=()=>!1,X$=e=>q$.test(e),Q$=e=>W$.test(e),J$=e=>!we(e)&&!Te(e),eH=e=>Fs(e,Q1,Z1),we=e=>q1.test(e),Ko=e=>Fs(e,J1,Y$),Tg=e=>Fs(e,oH,qe),zA=e=>Fs(e,Y1,Z1),tH=e=>Fs(e,X1,Q$),Ud=e=>Fs(e,ek,X$),Te=e=>W1.test(e),tc=e=>$s(e,J1),nH=e=>$s(e,aH),BA=e=>$s(e,Y1),rH=e=>$s(e,Q1),iH=e=>$s(e,X1),Fd=e=>$s(e,ek,!0),Fs=(e,t,n)=>{const r=q1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$s=(e,t,n=!1)=>{const r=W1.exec(e);return r?r[1]?t(r[1]):n:!1},Y1=e=>e==="position"||e==="percentage",X1=e=>e==="image"||e==="url",Q1=e=>e==="length"||e==="size"||e==="bg-size",J1=e=>e==="length",oH=e=>e==="number",aH=e=>e==="family-name",ek=e=>e==="shadow",sH=()=>{const e=Kt("color"),t=Kt("font"),n=Kt("text"),r=Kt("font-weight"),o=Kt("tracking"),s=Kt("leading"),l=Kt("breakpoint"),u=Kt("container"),d=Kt("spacing"),f=Kt("radius"),p=Kt("shadow"),m=Kt("inset-shadow"),v=Kt("text-shadow"),b=Kt("drop-shadow"),x=Kt("blur"),A=Kt("perspective"),w=Kt("aspect"),k=Kt("ease"),E=Kt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...R(),Te,we],I=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],L=()=>[Te,we,d],V=()=>[as,"full","auto",...L()],$=()=>[Ji,"none","subgrid",Te,we],Z=()=>["auto",{span:["full",Ji,Te,we]},Ji,Te,we],Q=()=>[Ji,"auto",Te,we],le=()=>["auto","min","max","fr",Te,we],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...L()],ee=()=>[as,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],W=()=>[e,Te,we],be=()=>[...R(),BA,zA,{position:[Te,we]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",rH,eH,{size:[Te,we]}],G=()=>[wg,tc,Ko],ne=()=>["","none","full",f,Te,we],ue=()=>["",qe,tc,Ko],pe=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[qe,wg,BA,zA],xe=()=>["","none",x,Te,we],je=()=>["none",qe,Te,we],Ve=()=>["none",qe,Te,we],Xe=()=>[qe,Te,we],nt=()=>[as,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mi],breakpoint:[mi],color:[Z$],container:[mi],"drop-shadow":[mi],ease:["in","out","in-out"],font:[J$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mi],shadow:[mi],spacing:["px",qe],text:[mi],"text-shadow":[mi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",as,we,Te,w]}],container:["container"],columns:[{columns:[qe,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:C()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Ji,"auto",Te,we]}],basis:[{basis:[as,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[qe,as,"auto","initial","none",we]}],grow:[{grow:["",qe,Te,we]}],shrink:[{shrink:["",qe,Te,we]}],order:[{order:[Ji,"first","last","none",Te,we]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[u,"screen",...ee()]}],"min-w":[{"min-w":[u,"screen","none",...ee()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,tc,Ko]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Te,Tg]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wg,we]}],"font-family":[{font:[nH,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:[o,Te,we]}],"line-clamp":[{"line-clamp":[qe,"none",Te,Tg]}],leading:[{leading:[s,...L()]}],"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:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[qe,"from-font","auto",Te,Ko]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[qe,"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:L()}],"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:be()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ji,Te,we],radial:["",Te,we],conic:[Ji,Te,we]},iH,tH]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[qe,Te,we]}],"outline-w":[{outline:["",qe,tc,Ko]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",p,Fd,Ud]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",m,Fd,Ud]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[qe,Ko]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",v,Fd,Ud]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[qe,Te,we]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"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":[qe]}],"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":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"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":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"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":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"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":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"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":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"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":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"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":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"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":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[qe]}],"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":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"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:[qe,Te,we]}],contrast:[{contrast:[qe,Te,we]}],"drop-shadow":[{"drop-shadow":["","none",b,Fd,Ud]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",qe,Te,we]}],"hue-rotate":[{"hue-rotate":[qe,Te,we]}],invert:[{invert:["",qe,Te,we]}],saturate:[{saturate:[qe,Te,we]}],sepia:[{sepia:["",qe,Te,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,we]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[qe,Te,we]}],"backdrop-contrast":[{"backdrop-contrast":[qe,Te,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",qe,Te,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qe,Te,we]}],"backdrop-invert":[{"backdrop-invert":["",qe,Te,we]}],"backdrop-opacity":[{"backdrop-opacity":[qe,Te,we]}],"backdrop-saturate":[{"backdrop-saturate":[qe,Te,we]}],"backdrop-sepia":[{"backdrop-sepia":["",qe,Te,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"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:[qe,"initial",Te,we]}],ease:[{ease:["linear","initial",k,Te,we]}],delay:[{delay:[qe,Te,we]}],animate:[{animate:["none",E,Te,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Te,we]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:je()}],"rotate-x":[{"rotate-x":je()}],"rotate-y":[{"rotate-y":je()}],"rotate-z":[{"rotate-z":je()}],scale:[{scale:Ve()}],"scale-x":[{"scale-x":Ve()}],"scale-y":[{"scale-y":Ve()}],"scale-z":[{"scale-z":Ve()}],"scale-3d":["scale-3d"],skew:[{skew:Xe()}],"skew-x":[{"skew-x":Xe()}],"skew-y":[{"skew-y":Xe()}],transform:[{transform:[Te,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:nt()}],"translate-x":[{"translate-x":nt()}],"translate-y":[{"translate-y":nt()}],"translate-z":[{"translate-z":nt()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",...W()]}],"stroke-w":[{stroke:[qe,tc,Ko,Tg]}],stroke:[{stroke:["none",...W()]}],"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"]}},tk=F$(sH),me=(...e)=>tk(Sh(e)),VA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,UA=Sh,_n=(e,t)=>n=>{var r;if(t?.variants==null)return UA(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(f=>{const p=n?.[f],m=s?.[f];if(p===null)return null;const v=VA(p)||VA(m);return o[f][v]}),u=n&&Object.entries(n).reduce((f,p)=>{let[m,v]=p;return v===void 0||(f[m]=v),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,p)=>{let{class:m,className:v,...b}=p;return Object.entries(b).every(x=>{let[A,w]=x;return Array.isArray(w)?w.includes({...s,...u}[A]):{...s,...u}[A]===w})?[...f,m,v]:f},[]);return UA(e,l,d,n?.class,n?.className)},lH=({className:e,strokeWidth:t=4})=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:me("size-full",e),children:y.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[y.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[y.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"}),y.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"})]}),y.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[y.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"}),y.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"})]})]})}),Rs=({children:e,isLoading:t=!0,className:n,...r})=>y.jsx(y.Fragment,{children:t?y.jsx("div",{className:me("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:y.jsx(lH,{className:"size-10 max-h-full max-w-full"})}):e??y.jsx(y.Fragment,{})});var wn=(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))(wn||{});const Cg=_n("",{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 ot=(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))(ot||{}),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||{}),ks=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(ks||{});const cH=_n("relative cursor-pointer truncate whitespace-nowrap font-medium transition-all duration-200 focus-visible:outline-none 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 focus:ring-primary-500",secondary:"text-secondary *:text-text-light focus:ring-secondary-500",destructive:"text-destructive *:text-text-light focus:ring-destructive-500",neutral:"text-neutral *:text-text-light focus:ring-neutral-500",light:"text-white *:text-text-light focus:ring-white/50",dark:"text-neutral-800 *:text-text-light focus:ring-neutral-800/50",text:"text-text *:text-text-opposite focus:ring-neutral-500","text-inverse":"text-text-opposite *:text-text focus:ring-neutral-500",error:"text-error *:text-text-light focus:ring-error/50",success:"text-success *:text-text-light focus:ring-success/50",custom:"focus:ring-primary-500"},variant:{default:"rounded-lg bg-current hover:bg-current/90",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 border-current",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}}),lt=({variant:e,size:t,color:n,children:r,Icon:o,IconRight:s,iconClassName:l,isLoading:u=!1,isActive:d=!1,isFullWidth:f=!1,textAlign:p,disabled:m,label:v,className:b,type:x="button","aria-describedby":A,"aria-expanded":w,"aria-haspopup":k,"aria-pressed":E,...T})=>{const R=e==="link"||e==="invisible-link",C=!r&&(o||s),I={"aria-label":C?v:void 0,"aria-labelledby":void 0,"aria-describedby":A,"aria-expanded":w,"aria-haspopup":k,"aria-pressed":d!==void 0?d:E,"aria-busy":u,"aria-current":d?"page":void 0,"aria-disabled":m||u};return y.jsxs("button",{disabled:u||m,role:R?"link":"button",type:x,className:cH({variant:e,size:t,color:n,isFullWidth:f,textAlign:p??(s?"left":"center"),hasIconLeft:!!(typeof r<"u"&&(typeof o<"u"||u)),hasIconRight:typeof r<"u"&&typeof s<"u",className:b}),...I,...T,children:[o&&!u&&y.jsx(o,{className:Cg({size:t,className:l,position:"left"}),"aria-hidden":"true"}),y.jsx(Rs,{className:Cg({size:t,className:l,position:"left"}),isLoading:u,"aria-hidden":"true","data-testid":"loader"}),r&&y.jsx("span",{children:r}),!r&&C&&y.jsx("span",{className:"sr-only",children:v}),s&&y.jsx(s,{className:Cg({size:t,className:l,position:"right"}),"aria-hidden":"true"})]})},Tb=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:o=!1,minHeight:s=0,...l})=>y.jsx("div",{"aria-hidden":o?t:void 0,tabIndex:o?0:void 0,role:o?"button":"none",className:me("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",o&&"focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto",n),...l,children:y.jsx("div",{style:{minHeight:`${s}px`},className:me(r&&"group-hover/height-smoother:visible",o&&"group-focus/height-smoother:visible",n),children:e})}),nk=({children:e,header:t,isOpen:n,defaultIsOpen:r=!1,onToggle:o,onClick:s,disabled:l=!1,contentClassName:u,headerClassName:d,contentId:f,"aria-label":p,...m})=>{const v=n!==void 0,[b,x]=S.useState(r),A=v?n:b,w=!A,k=f||`accordion-content-${Math.random().toString(36).substr(2,9)}`,E=S.useCallback(R=>{if(l)return;const C=!A;v||x(C),o?.(C),s?.(R)},[l,A,v,o,s]),T=S.useCallback(R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),E(R))},[E]);return y.jsxs("div",{className:"w-full",children:[y.jsx(lt,{variant:ot.HOVERABLE,color:it.TEXT,onClick:E,onKeyDown:T,disabled:l,isFullWidth:!0,className:me("flex items-center justify-between gap-2",d),IconRight:U1,iconClassName:me("transform transition-transform duration-500 ease-in-out",A?"rotate-0":"-rotate-180"),"aria-expanded":A,"aria-controls":k,"aria-label":p,role:"button",...m,children:t}),y.jsx(Tb,{id:k,tabIndex:w?-1:void 0,isHidden:w,className:u,role:"region","aria-labelledby":k,children:e})]})};var rk=(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))(rk||{});const uH=_n("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"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{variant:"default",color:"primary",size:"md"}}),dH=({className:e,variant:t="default",color:n="primary",size:r="md",children:o,clickable:s=!1,dismissible:l=!1,onClick:u,onDismiss:d,role:f,tabIndex:p,"aria-label":m,...v})=>{const b=s?"button":"span",x=w=>{s&&u&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),u(w))},A=w=>{w.stopPropagation(),d?.()};return y.jsxs(b,{className:me(uH({variant:t,color:n,size:r}),s&&"cursor-pointer hover:opacity-80 focus-visible:ring-2 focus-visible:ring-offset-2",l&&"pr-1",e),onClick:s?u:void 0,onKeyDown:s?x:void 0,role:f||(s?"button":"status"),tabIndex:s?p??0:p,"aria-label":m||(s?`${o} button`:void 0),...v,children:[o,l&&y.jsx("button",{type:"button",className:"ml-1 inline-flex h-4 w-4 items-center justify-center rounded-full hover:bg-black/10 focus:outline-none focus:ring-1 focus:ring-offset-1",onClick:A,"aria-label":`Remove ${o} badge`,children:y.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 20 20",fill:"currentColor",children:y.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})};var ik=(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))(ik||{});const fH=_n("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"}}),hH=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},Cb=e=>{const{variant:t="default",color:n="primary",children:r,label:o,className:s,isActive:l,underlined:u,locale:d,isExternalLink:f,href:p,...m}=e,{internationalization:v}=st,b=hH(e),x=typeof r=="string",A=b?"noopener noreferrer nofollow":void 0,w=b?"_blank":"_self",k=d?d===v.defaultLocale?"x-default":d:void 0,E=d&&p&&!b?CV(p,d):p;return y.jsxs("a",{href:E,hrefLang:k,"aria-label":o,rel:A,target:w,"aria-current":l?"page":void 0,className:me(fH({variant:t,color:n,underlined:u,className:s})),...m,children:[t==="button"?y.jsx("span",{children:r}):r,b&&x&&y.jsx(l$,{className:"ml-2 inline-block size-4"})]})},pH=_n("flex flex-row flex-wrap items-center text-sm",{variants:{size:{small:"gap-1 text-xs",medium:"gap-2 text-sm",large:"gap-3 text-base"},spacing:{compact:"gap-1",normal:"gap-2",loose:"gap-4"}},defaultVariants:{size:"medium",spacing:"normal"}}),mH=({href:e,lang:t,children:n,onClick:r,color:o,position:s,locale:l,className:u,...d})=>{const{linkLabel:f}=dn("breadcrumb");return y.jsxs(y.Fragment,{children:[y.jsx(Cb,{href:e,locale:l,color:o,onClick:r,itemProp:"item",isExternalLink:!1,itemScope:!0,itemType:"https://schema.org/WebPage",...d,label:`${f} ${n}`,itemID:e,children:y.jsx("span",{itemProp:"name",children:n})}),y.jsx("meta",{itemProp:"position",content:s.toString()})]})},gH=({children:e,onClick:t,color:n,position:r,className:o,...s})=>{const{linkLabel:l}=dn("breadcrumb");return y.jsxs(y.Fragment,{children:[y.jsx(lt,{onClick:t,variant:ot.LINK,label:`${l} ${e}`,color:n,itemProp:"item",...s,children:y.jsx("span",{itemProp:"name",children:e})}),y.jsx("meta",{itemProp:"position",content:r.toString()})]})},yH=({children:e,position:t,className:n,...r})=>y.jsxs("span",{itemProp:"item",className:me("inline-flex items-center","text-neutral-700 font-medium","transition-colors duration-200",n),children:[y.jsx("span",{itemProp:"name",...r,children:e}),y.jsx("meta",{itemProp:"position",content:t.toString()})]}),vH=({links:e,className:t,color:n=ik.TEXT,locale:r,elementType:o="page",separator:s=y.jsx(Mf,{size:10}),ariaLabel:l="breadcrumb",includeStructuredData:u=!0,maxItems:d,size:f,spacing:p,...m})=>{const v=d&&e.length>d?[...e.slice(0,1),"...",...e.slice(-(d-2))]:e;return y.jsx("nav",{"aria-label":l,role:"navigation",children:y.jsx("ol",{className:me(pH({size:f,spacing:p}),t),...u&&{itemScope:!0,itemType:"http://schema.org/BreadcrumbList"},...m,children:v.map((b,x)=>{const A=x===v.length-1,w=typeof b=="object"&&typeof b.href=="string",k=typeof b=="object"&&typeof b.onClick=="function",E=x===v.length-1,T=E?o:void 0,R=b==="...",C=b.text??b;if(R)return y.jsxs(S.Fragment,{children:[y.jsx("li",{className:"flex items-center","aria-hidden":"true",children:y.jsx("span",{className:"text-neutral-500",children:"…"})}),!A&&y.jsx("li",{"aria-hidden":"true",className:"flex items-center",children:s})]},`truncated-${x}`);let I=y.jsx(yH,{position:x+1,"aria-current":T,className:me("transition-colors duration-200",E&&"text-neutral-900"),children:C},C);w?I=y.jsx(mH,{href:b.href,color:n,position:x+1,locale:r,"aria-current":T,className:me(E&&"text-neutral-900 cursor-default"),children:C},C):k&&(I=y.jsx(gH,{onClick:b.onClick,color:n,position:x+1,"aria-current":T,className:me(E&&"text-neutral-900 cursor-default"),children:C},C));const D=S.createElement("li",{...u&&{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem"},key:C,className:"flex items-center"},I);return A?D:y.jsxs(S.Fragment,{children:[D,y.jsx("li",{"aria-hidden":"true",className:"flex items-center",children:s})]},C)})})})};function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function FA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oa(...e){return t=>{let n=!1;const r=e.map(o=>{const s=FA(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():FA(e[o],null)}}}}function Ct(...e){return S.useCallback(oa(...e),e)}function bH(e,t){const n=S.createContext(t),r=s=>{const{children:l,...u}=s,d=S.useMemo(()=>u,Object.values(u));return y.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function o(s){const l=S.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ou(e,t=[]){let n=[];function r(s,l){const u=S.createContext(l),d=n.length;n=[...n,l];const f=m=>{const{scope:v,children:b,...x}=m,A=v?.[e]?.[d]||u,w=S.useMemo(()=>x,Object.values(x));return y.jsx(A.Provider,{value:w,children:b})};f.displayName=s+"Provider";function p(m,v){const b=v?.[e]?.[d]||u,x=S.useContext(b);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[f,p]}const o=()=>{const s=n.map(l=>S.createContext(l));return function(u){const d=u?.[e]||s;return S.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return o.scopeName=e,[r,_H(o,...t)]}function _H(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const m=d(s)[`__scope${f}`];return{...u,...m}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var un=globalThis?.document?S.useLayoutEffect:()=>{},EH=KR[" useId ".trim().toString()]||(()=>{}),SH=0;function hr(e){const[t,n]=S.useState(EH());return un(()=>{n(r=>r??String(SH++))},[e]),t?`radix-${t}`:""}var xH=KR[" useInsertionEffect ".trim().toString()]||un;function zf({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,l]=AH({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:o;{const p=S.useRef(e!==void 0);S.useEffect(()=>{const m=p.current;m!==u&&console.warn(`${r} is changing from ${m?"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=S.useCallback(p=>{if(u){const m=wH(p)?p(e):p;m!==e&&l.current?.(m)}else s(p)},[u,e,s,l]);return[d,f]}function AH({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),s=S.useRef(t);return xH(()=>{s.current=t},[t]),S.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function wH(e){return typeof e=="function"}function Ns(e){const t=CH(e),n=S.forwardRef((r,o)=>{const{children:s,...l}=r,u=S.Children.toArray(s),d=u.find(kH);if(d){const f=d.props.children,p=u.map(m=>m===d?S.Children.count(f)>1?S.Children.only(null):S.isValidElement(f)?f.props.children:null:m);return y.jsx(t,{...l,ref:o,children:S.isValidElement(f)?S.cloneElement(f,void 0,p):null})}return y.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var TH=Ns("Slot");function CH(e){const t=S.forwardRef((n,r)=>{const{children:o,...s}=n;if(S.isValidElement(o)){const l=IH(o),u=NH(s,o.props);return o.type!==S.Fragment&&(u.ref=r?oa(r,l):l),S.cloneElement(o,u)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var RH=Symbol("radix.slottable");function kH(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===RH}function NH(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...u)=>{const d=s(...u);return o(...u),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function IH(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 OH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ge=OH.reduce((e,t)=>{const n=Ns(`Primitive.${t}`),r=S.forwardRef((o,s)=>{const{asChild:l,...u}=o,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ok(e,t){e&&ma.flushSync(()=>e.dispatchEvent(t))}function Ar(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>t.current?.(...n),[])}function DH(e,t=globalThis?.document){const n=Ar(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var LH="DismissableLayer",$y="dismissableLayer.update",jH="dismissableLayer.pointerDownOutside",PH="dismissableLayer.focusOutside",$A,ak=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xh=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=S.useContext(ak),[p,m]=S.useState(null),v=p?.ownerDocument??globalThis?.document,[,b]=S.useState({}),x=Ct(t,D=>m(D)),A=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),k=A.indexOf(w),E=p?A.indexOf(p):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,R=E>=k,C=zH(D=>{const L=D.target,V=[...f.branches].some($=>$.contains(L));!R||V||(o?.(D),l?.(D),D.defaultPrevented||u?.())},v),I=BH(D=>{const L=D.target;[...f.branches].some($=>$.contains(L))||(s?.(D),l?.(D),D.defaultPrevented||u?.())},v);return DH(D=>{E===f.layers.size-1&&(r?.(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},v),S.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&($A=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),HA(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=$A)}},[p,v,n,f]),S.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),HA())},[p,f]),S.useEffect(()=>{const D=()=>b({});return document.addEventListener($y,D),()=>document.removeEventListener($y,D)},[]),y.jsx(Ge.div,{...d,ref:x,style:{pointerEvents:T?R?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,I.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,C.onPointerDownCapture)})});xh.displayName=LH;var MH="DismissableLayerBranch",sk=S.forwardRef((e,t)=>{const n=S.useContext(ak),r=S.useRef(null),o=Ct(t,r);return S.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),y.jsx(Ge.div,{...e,ref:o})});sk.displayName=MH;function zH(e,t=globalThis?.document){const n=Ar(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){lk(jH,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function BH(e,t=globalThis?.document){const n=Ar(e),r=S.useRef(!1);return S.useEffect(()=>{const o=s=>{s.target&&!r.current&&lk(PH,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function HA(){const e=new CustomEvent($y);document.dispatchEvent(e)}function lk(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ok(o,s):o.dispatchEvent(s)}var VH=xh,UH=sk,Rg="focusScope.autoFocusOnMount",kg="focusScope.autoFocusOnUnmount",GA={bubbles:!1,cancelable:!0},FH="FocusScope",Rb=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[u,d]=S.useState(null),f=Ar(o),p=Ar(s),m=S.useRef(null),v=Ct(t,A=>d(A)),b=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let A=function(T){if(b.paused||!u)return;const R=T.target;u.contains(R)?m.current=R:no(m.current,{select:!0})},w=function(T){if(b.paused||!u)return;const R=T.relatedTarget;R!==null&&(u.contains(R)||no(m.current,{select:!0}))},k=function(T){if(document.activeElement===document.body)for(const C of T)C.removedNodes.length>0&&no(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",w);const E=new MutationObserver(k);return u&&E.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",w),E.disconnect()}}},[r,u,b.paused]),S.useEffect(()=>{if(u){qA.add(b);const A=document.activeElement;if(!u.contains(A)){const k=new CustomEvent(Rg,GA);u.addEventListener(Rg,f),u.dispatchEvent(k),k.defaultPrevented||($H(WH(ck(u)),{select:!0}),document.activeElement===A&&no(u))}return()=>{u.removeEventListener(Rg,f),setTimeout(()=>{const k=new CustomEvent(kg,GA);u.addEventListener(kg,p),u.dispatchEvent(k),k.defaultPrevented||no(A??document.body,{select:!0}),u.removeEventListener(kg,p),qA.remove(b)},0)}}},[u,f,p,b]);const x=S.useCallback(A=>{if(!n&&!r||b.paused)return;const w=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,k=document.activeElement;if(w&&k){const E=A.currentTarget,[T,R]=HH(E);T&&R?!A.shiftKey&&k===R?(A.preventDefault(),n&&no(T,{select:!0})):A.shiftKey&&k===T&&(A.preventDefault(),n&&no(R,{select:!0})):k===E&&A.preventDefault()}},[n,r,b.paused]);return y.jsx(Ge.div,{tabIndex:-1,...l,ref:v,onKeyDown:x})});Rb.displayName=FH;function $H(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(no(r,{select:t}),document.activeElement!==n)return}function HH(e){const t=ck(e),n=KA(t,e),r=KA(t.reverse(),e);return[n,r]}function ck(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function KA(e,t){for(const n of e)if(!GH(n,{upTo:t}))return n}function GH(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 KH(e){return e instanceof HTMLInputElement&&"select"in e}function no(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&KH(e)&&t&&e.select()}}var qA=qH();function qH(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=WA(e,t),e.unshift(t)},remove(t){e=WA(e,t),e[0]?.resume()}}}function WA(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function WH(e){return e.filter(t=>t.tagName!=="A")}var ZH="Portal",Ah=S.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=S.useState(!1);un(()=>s(!0),[]);const l=n||o&&globalThis?.document?.body;return l?PF.createPortal(y.jsx(Ge.div,{...r,ref:t}),l):null});Ah.displayName=ZH;function YH(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var au=e=>{const{present:t,children:n}=e,r=XH(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),s=Ct(r.ref,QH(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:s}):null};au.displayName="Presence";function XH(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),s=S.useRef("none"),l=e?"mounted":"unmounted",[u,d]=YH(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const f=$d(r.current);s.current=u==="mounted"?f:"none"},[u]),un(()=>{const f=r.current,p=o.current;if(p!==e){const v=s.current,b=$d(f);e?d("MOUNT"):b==="none"||f?.display==="none"?d("UNMOUNT"):d(p&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),un(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,m=b=>{const A=$d(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&A&&(d("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},v=b=>{b.target===t&&(s.current=$d(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:S.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function $d(e){return e?.animationName||"none"}function QH(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 Ng=0;function uk(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ZA()),document.body.insertAdjacentElement("beforeend",e[1]??ZA()),Ng++,()=>{Ng===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ng--}},[])}function ZA(){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 Ur=function(){return Ur=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ur.apply(this,arguments)};function dk(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function JH(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;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 bf="right-scroll-bar-position",_f="width-before-scroll-bar",e2="with-scroll-bars-hidden",t2="--removed-body-scroll-bar-size";function Ig(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function n2(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var r2=typeof window<"u"?S.useLayoutEffect:S.useEffect,YA=new WeakMap;function i2(e,t){var n=n2(null,function(r){return e.forEach(function(o){return Ig(o,r)})});return r2(function(){var r=YA.get(n);if(r){var o=new Set(r),s=new Set(e),l=n.current;o.forEach(function(u){s.has(u)||Ig(u,null)}),s.forEach(function(u){o.has(u)||Ig(u,l)})}YA.set(n,e)},[e]),n}function o2(e){return e}function a2(e,t){t===void 0&&(t=o2);var n=[],r=!1,o={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 o}function s2(e){e===void 0&&(e={});var t=a2(null);return t.options=Ur({async:!0,ssr:!1},e),t}var fk=function(e){var t=e.sideCar,n=dk(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 S.createElement(r,Ur({},n))};fk.isSideCarExport=!0;function l2(e,t){return e.useMedium(t),fk}var hk=s2(),Og=function(){},wh=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:Og,onWheelCapture:Og,onTouchMoveCapture:Og}),o=r[0],s=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,b=e.noRelative,x=e.noIsolation,A=e.inert,w=e.allowPinchZoom,k=e.as,E=k===void 0?"div":k,T=e.gapMode,R=dk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,I=i2([n,t]),D=Ur(Ur({},R),o);return S.createElement(S.Fragment,null,p&&S.createElement(C,{sideCar:hk,removeScrollBar:f,shards:m,noRelative:b,noIsolation:x,inert:A,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:T}),l?S.cloneElement(S.Children.only(u),Ur(Ur({},D),{ref:I})):S.createElement(E,Ur({},D,{className:d,ref:I}),u))});wh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wh.classNames={fullWidth:_f,zeroRight:bf};var c2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function u2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c2();return t&&e.setAttribute("nonce",t),e}function d2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function f2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var h2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=u2())&&(d2(t,n),f2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},p2=function(){var e=h2();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pk=function(){var e=p2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},m2={left:0,top:0,right:0,gap:0},Dg=function(e){return parseInt(e||"",10)||0},g2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Dg(n),Dg(r),Dg(o)]},y2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return m2;var t=g2(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])}},v2=pk(),Ss="data-scroll-locked",b2=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
208
+ .`.concat(e2,` {
209
+ overflow: hidden `).concat(r,`;
210
+ padding-right: `).concat(u,"px ").concat(r,`;
211
+ }
212
+ body[`).concat(Ss,`] {
213
+ overflow: hidden `).concat(r,`;
214
+ overscroll-behavior: contain;
215
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
216
+ padding-left: `.concat(o,`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(bf,` {
226
+ right: `).concat(u,"px ").concat(r,`;
227
+ }
228
+
229
+ .`).concat(_f,` {
230
+ margin-right: `).concat(u,"px ").concat(r,`;
231
+ }
232
+
233
+ .`).concat(bf," .").concat(bf,` {
234
+ right: 0 `).concat(r,`;
235
+ }
236
+
237
+ .`).concat(_f," .").concat(_f,` {
238
+ margin-right: 0 `).concat(r,`;
239
+ }
240
+
241
+ body[`).concat(Ss,`] {
242
+ `).concat(t2,": ").concat(u,`px;
243
+ }
244
+ `)},XA=function(){var e=parseInt(document.body.getAttribute(Ss)||"0",10);return isFinite(e)?e:0},_2=function(){S.useEffect(function(){return document.body.setAttribute(Ss,(XA()+1).toString()),function(){var e=XA()-1;e<=0?document.body.removeAttribute(Ss):document.body.setAttribute(Ss,e.toString())}},[])},E2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;_2();var s=S.useMemo(function(){return y2(o)},[o]);return S.createElement(v2,{styles:b2(s,!t,o,n?"":"!important")})},Hy=!1;if(typeof window<"u")try{var Hd=Object.defineProperty({},"passive",{get:function(){return Hy=!0,!0}});window.addEventListener("test",Hd,Hd),window.removeEventListener("test",Hd,Hd)}catch{Hy=!1}var ss=Hy?{passive:!1}:!1,S2=function(e){return e.tagName==="TEXTAREA"},mk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!S2(e)&&n[t]==="visible")},x2=function(e){return mk(e,"overflowY")},A2=function(e){return mk(e,"overflowX")},QA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=gk(e,r);if(o){var s=yk(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},w2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},T2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},gk=function(e,t){return e==="v"?x2(t):A2(t)},yk=function(e,t){return e==="v"?w2(t):T2(t)},C2=function(e,t){return e==="h"&&t==="rtl"?-1:1},R2=function(e,t,n,r,o){var s=C2(e,window.getComputedStyle(t).direction),l=s*r,u=n.target,d=t.contains(u),f=!1,p=l>0,m=0,v=0;do{if(!u)break;var b=yk(e,u),x=b[0],A=b[1],w=b[2],k=A-w-s*x;(x||k)&&gk(e,u)&&(m+=k,v+=x);var E=u.parentNode;u=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(p&&Math.abs(m)<1||!p&&Math.abs(v)<1)&&(f=!0),f},Gd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},JA=function(e){return[e.deltaX,e.deltaY]},ew=function(e){return e&&"current"in e?e.current:e},k2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},N2=function(e){return`
245
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
246
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
247
+ `)},I2=0,ls=[];function O2(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(I2++)[0],s=S.useState(pk)[0],l=S.useRef(e);S.useEffect(function(){l.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var A=JH([e.lockRef.current],(e.shards||[]).map(ew),!0).filter(Boolean);return A.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=S.useCallback(function(A,w){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!l.current.allowPinchZoom;var k=Gd(A),E=n.current,T="deltaX"in A?A.deltaX:E[0]-k[0],R="deltaY"in A?A.deltaY:E[1]-k[1],C,I=A.target,D=Math.abs(T)>Math.abs(R)?"h":"v";if("touches"in A&&D==="h"&&I.type==="range")return!1;var L=QA(D,I);if(!L)return!0;if(L?C=D:(C=D==="v"?"h":"v",L=QA(D,I)),!L)return!1;if(!r.current&&"changedTouches"in A&&(T||R)&&(r.current=C),!C)return!0;var V=r.current||C;return R2(V,w,A,V==="h"?T:R)},[]),d=S.useCallback(function(A){var w=A;if(!(!ls.length||ls[ls.length-1]!==s)){var k="deltaY"in w?JA(w):Gd(w),E=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&k2(C.delta,k)})[0];if(E&&E.should){w.cancelable&&w.preventDefault();return}if(!E){var T=(l.current.shards||[]).map(ew).filter(Boolean).filter(function(C){return C.contains(w.target)}),R=T.length>0?u(w,T[0]):!l.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),f=S.useCallback(function(A,w,k,E){var T={name:A,delta:w,target:k,should:E,shadowParent:D2(k)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(R){return R!==T})},1)},[]),p=S.useCallback(function(A){n.current=Gd(A),r.current=void 0},[]),m=S.useCallback(function(A){f(A.type,JA(A),A.target,u(A,e.lockRef.current))},[]),v=S.useCallback(function(A){f(A.type,Gd(A),A.target,u(A,e.lockRef.current))},[]);S.useEffect(function(){return ls.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,ss),document.addEventListener("touchmove",d,ss),document.addEventListener("touchstart",p,ss),function(){ls=ls.filter(function(A){return A!==s}),document.removeEventListener("wheel",d,ss),document.removeEventListener("touchmove",d,ss),document.removeEventListener("touchstart",p,ss)}},[]);var b=e.removeScrollBar,x=e.inert;return S.createElement(S.Fragment,null,x?S.createElement(s,{styles:N2(o)}):null,b?S.createElement(E2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function D2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const L2=l2(hk,O2);var kb=S.forwardRef(function(e,t){return S.createElement(wh,Ur({},e,{ref:t,sideCar:L2}))});kb.classNames=wh.classNames;var j2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cs=new WeakMap,Kd=new WeakMap,qd={},Lg=0,vk=function(e){return e&&(e.host||vk(e.parentNode))},P2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vk(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})},M2=function(e,t,n,r){var o=P2(t,Array.isArray(e)?e:[e]);qd[n]||(qd[n]=new WeakMap);var s=qd[n],l=[],u=new Set,d=new Set(o),f=function(m){!m||u.has(m)||(u.add(m),f(m.parentNode))};o.forEach(f);var p=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(u.has(v))p(v);else try{var b=v.getAttribute(r),x=b!==null&&b!=="false",A=(cs.get(v)||0)+1,w=(s.get(v)||0)+1;cs.set(v,A),s.set(v,w),l.push(v),A===1&&x&&Kd.set(v,!0),w===1&&v.setAttribute(n,"true"),x||v.setAttribute(r,"true")}catch(k){console.error("aria-hidden: cannot operate on ",v,k)}})};return p(t),u.clear(),Lg++,function(){l.forEach(function(m){var v=cs.get(m)-1,b=s.get(m)-1;cs.set(m,v),s.set(m,b),v||(Kd.has(m)||m.removeAttribute(r),Kd.delete(m)),b||m.removeAttribute(n)}),Lg--,Lg||(cs=new WeakMap,cs=new WeakMap,Kd=new WeakMap,qd={})}},bk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=j2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),M2(r,o,n,"aria-hidden")):function(){return null}},Th="Dialog",[_k]=ou(Th),[z2,Rr]=_k(Th),Ek=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,u=S.useRef(null),d=S.useRef(null),[f,p]=zf({prop:r,defaultProp:o??!1,onChange:s,caller:Th});return y.jsx(z2,{scope:t,triggerRef:u,contentRef:d,contentId:hr(),titleId:hr(),descriptionId:hr(),open:f,onOpenChange:p,onOpenToggle:S.useCallback(()=>p(m=>!m),[p]),modal:l,children:n})};Ek.displayName=Th;var Sk="DialogTrigger",B2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(Sk,n),s=Ct(t,o.triggerRef);return y.jsx(Ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ob(o.open),...r,ref:s,onClick:Je(e.onClick,o.onOpenToggle)})});B2.displayName=Sk;var Nb="DialogPortal",[V2,xk]=_k(Nb,{forceMount:void 0}),Ak=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Rr(Nb,t);return y.jsx(V2,{scope:t,forceMount:n,children:S.Children.map(r,l=>y.jsx(au,{present:n||s.open,children:y.jsx(Ah,{asChild:!0,container:o,children:l})}))})};Ak.displayName=Nb;var Bf="DialogOverlay",wk=S.forwardRef((e,t)=>{const n=xk(Bf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Rr(Bf,e.__scopeDialog);return s.modal?y.jsx(au,{present:r||s.open,children:y.jsx(F2,{...o,ref:t})}):null});wk.displayName=Bf;var U2=Ns("DialogOverlay.RemoveScroll"),F2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(Bf,n);return y.jsx(kb,{as:U2,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Ge.div,{"data-state":Ob(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),aa="DialogContent",Tk=S.forwardRef((e,t)=>{const n=xk(aa,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Rr(aa,e.__scopeDialog);return y.jsx(au,{present:r||s.open,children:s.modal?y.jsx($2,{...o,ref:t}):y.jsx(H2,{...o,ref:t})})});Tk.displayName=aa;var $2=S.forwardRef((e,t)=>{const n=Rr(aa,e.__scopeDialog),r=S.useRef(null),o=Ct(t,n.contentRef,r);return S.useEffect(()=>{const s=r.current;if(s)return bk(s)},[]),y.jsx(Ck,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&s.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,s=>s.preventDefault())})}),H2=S.forwardRef((e,t)=>{const n=Rr(aa,e.__scopeDialog),r=S.useRef(!1),o=S.useRef(!1);return y.jsx(Ck,{...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,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ck=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,u=Rr(aa,n),d=S.useRef(null),f=Ct(t,d);return uk(),y.jsxs(y.Fragment,{children:[y.jsx(Rb,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:y.jsx(xh,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Ob(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(W2,{titleId:u.titleId}),y.jsx(Y2,{contentRef:d,descriptionId:u.descriptionId})]})]})}),Ib="DialogTitle",G2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(Ib,n);return y.jsx(Ge.h2,{id:o.titleId,...r,ref:t})});G2.displayName=Ib;var Rk="DialogDescription",K2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(Rk,n);return y.jsx(Ge.p,{id:o.descriptionId,...r,ref:t})});K2.displayName=Rk;var kk="DialogClose",q2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rr(kk,n);return y.jsx(Ge.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>o.onOpenChange(!1))})});q2.displayName=kk;function Ob(e){return e?"open":"closed"}var Nk="DialogTitleWarning",[Gse,Ik]=bH(Nk,{contentName:aa,titleName:Ib,docsSlug:"dialog"}),W2=({titleId:e})=>{const t=Ik(Nk),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 S.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Z2="DialogDescriptionWarning",Y2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ik(Z2).contentName}}.`;return S.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},X2=Ek,Q2=Ak,J2=wk,eG=Tk,tw=1,tG=.9,nG=.8,rG=.17,jg=.1,Pg=.999,iG=.9999,oG=.99,aG=/[\\\/_+.#"@\[\(\{&]/,sG=/[\\\/_+.#"@\[\(\{&]/g,lG=/[\s-]/,Ok=/[\s-]/g;function Gy(e,t,n,r,o,s,l){if(s===t.length)return o===e.length?tw:oG;var u=`${o},${s}`;if(l[u]!==void 0)return l[u];for(var d=r.charAt(s),f=n.indexOf(d,o),p=0,m,v,b,x;f>=0;)m=Gy(e,t,n,r,f+1,s+1,l),m>p&&(f===o?m*=tw:aG.test(e.charAt(f-1))?(m*=nG,b=e.slice(o,f-1).match(sG),b&&o>0&&(m*=Math.pow(Pg,b.length))):lG.test(e.charAt(f-1))?(m*=tG,x=e.slice(o,f-1).match(Ok),x&&o>0&&(m*=Math.pow(Pg,x.length))):(m*=rG,o>0&&(m*=Math.pow(Pg,f-o))),e.charAt(f)!==t.charAt(s)&&(m*=iG)),(m<jg&&n.charAt(f-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(f-1)!==r.charAt(s))&&(v=Gy(e,t,n,r,f+1,s+2,l),v*jg>m&&(m=v*jg)),m>p&&(p=m),f=n.indexOf(d,f+1);return l[u]=p,p}function nw(e){return e.toLowerCase().replace(Ok," ")}function cG(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Gy(e,t,nw(e),nw(t),0,0,{})}var nc='[cmdk-group=""]',Mg='[cmdk-group-items=""]',uG='[cmdk-group-heading=""]',Dk='[cmdk-item=""]',rw=`${Dk}:not([aria-disabled="true"])`,Ky="cmdk-item-select",ds="data-value",dG=(e,t,n)=>cG(e,t,n),Lk=S.createContext(void 0),su=()=>S.useContext(Lk),jk=S.createContext(void 0),Db=()=>S.useContext(jk),Pk=S.createContext(void 0),Mk=S.forwardRef((e,t)=>{let n=fs(()=>{var G,ne;return{search:"",value:(ne=(G=e.value)!=null?G:e.defaultValue)!=null?ne:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=fs(()=>new Set),o=fs(()=>new Map),s=fs(()=>new Map),l=fs(()=>new Set),u=zk(e),{label:d,children:f,value:p,onValueChange:m,filter:v,shouldFilter:b,loop:x,disablePointerSelection:A=!1,vimBindings:w=!0,...k}=e,E=hr(),T=hr(),R=hr(),C=S.useRef(null),I=SG();sa(()=>{if(p!==void 0){let G=p.trim();n.current.value=G,D.emit()}},[p]),sa(()=>{I(6,le)},[]);let D=S.useMemo(()=>({subscribe:G=>(l.current.add(G),()=>l.current.delete(G)),snapshot:()=>n.current,setState:(G,ne,ue)=>{var pe,ve,fe,xe;if(!Object.is(n.current[G],ne)){if(n.current[G]=ne,G==="search")Q(),$(),I(1,Z);else if(G==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let je=document.getElementById(R);je?je.focus():(pe=document.getElementById(E))==null||pe.focus()}if(I(7,()=>{var je;n.current.selectedItemId=(je=q())==null?void 0:je.id,D.emit()}),ue||I(5,le),((ve=u.current)==null?void 0:ve.value)!==void 0){let je=ne??"";(xe=(fe=u.current).onValueChange)==null||xe.call(fe,je);return}}D.emit()}},emit:()=>{l.current.forEach(G=>G())}}),[]),L=S.useMemo(()=>({value:(G,ne,ue)=>{var pe;ne!==((pe=s.current.get(G))==null?void 0:pe.value)&&(s.current.set(G,{value:ne,keywords:ue}),n.current.filtered.items.set(G,V(ne,ue)),I(2,()=>{$(),D.emit()}))},item:(G,ne)=>(r.current.add(G),ne&&(o.current.has(ne)?o.current.get(ne).add(G):o.current.set(ne,new Set([G]))),I(3,()=>{Q(),$(),n.current.value||Z(),D.emit()}),()=>{s.current.delete(G),r.current.delete(G),n.current.filtered.items.delete(G);let ue=q();I(4,()=>{Q(),ue?.getAttribute("id")===G&&Z(),D.emit()})}),group:G=>(o.current.has(G)||o.current.set(G,new Set),()=>{s.current.delete(G),o.current.delete(G)}),filter:()=>u.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:E,inputId:R,labelId:T,listInnerRef:C}),[]);function V(G,ne){var ue,pe;let ve=(pe=(ue=u.current)==null?void 0:ue.filter)!=null?pe:dG;return G?ve(G,n.current.search,ne):0}function $(){if(!n.current.search||u.current.shouldFilter===!1)return;let G=n.current.filtered.items,ne=[];n.current.filtered.groups.forEach(pe=>{let ve=o.current.get(pe),fe=0;ve.forEach(xe=>{let je=G.get(xe);fe=Math.max(je,fe)}),ne.push([pe,fe])});let ue=C.current;oe().sort((pe,ve)=>{var fe,xe;let je=pe.getAttribute("id"),Ve=ve.getAttribute("id");return((fe=G.get(Ve))!=null?fe:0)-((xe=G.get(je))!=null?xe:0)}).forEach(pe=>{let ve=pe.closest(Mg);ve?ve.appendChild(pe.parentElement===ve?pe:pe.closest(`${Mg} > *`)):ue.appendChild(pe.parentElement===ue?pe:pe.closest(`${Mg} > *`))}),ne.sort((pe,ve)=>ve[1]-pe[1]).forEach(pe=>{var ve;let fe=(ve=C.current)==null?void 0:ve.querySelector(`${nc}[${ds}="${encodeURIComponent(pe[0])}"]`);fe?.parentElement.appendChild(fe)})}function Z(){let G=oe().find(ue=>ue.getAttribute("aria-disabled")!=="true"),ne=G?.getAttribute(ds);D.setState("value",ne||void 0)}function Q(){var G,ne,ue,pe;if(!n.current.search||u.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ve=0;for(let fe of r.current){let xe=(ne=(G=s.current.get(fe))==null?void 0:G.value)!=null?ne:"",je=(pe=(ue=s.current.get(fe))==null?void 0:ue.keywords)!=null?pe:[],Ve=V(xe,je);n.current.filtered.items.set(fe,Ve),Ve>0&&ve++}for(let[fe,xe]of o.current)for(let je of xe)if(n.current.filtered.items.get(je)>0){n.current.filtered.groups.add(fe);break}n.current.filtered.count=ve}function le(){var G,ne,ue;let pe=q();pe&&(((G=pe.parentElement)==null?void 0:G.firstChild)===pe&&((ue=(ne=pe.closest(nc))==null?void 0:ne.querySelector(uG))==null||ue.scrollIntoView({block:"nearest"})),pe.scrollIntoView({block:"nearest"}))}function q(){var G;return(G=C.current)==null?void 0:G.querySelector(`${Dk}[aria-selected="true"]`)}function oe(){var G;return Array.from(((G=C.current)==null?void 0:G.querySelectorAll(rw))||[])}function z(G){let ne=oe()[G];ne&&D.setState("value",ne.getAttribute(ds))}function ee(G){var ne;let ue=q(),pe=oe(),ve=pe.findIndex(xe=>xe===ue),fe=pe[ve+G];(ne=u.current)!=null&&ne.loop&&(fe=ve+G<0?pe[pe.length-1]:ve+G===pe.length?pe[0]:pe[ve+G]),fe&&D.setState("value",fe.getAttribute(ds))}function W(G){let ne=q(),ue=ne?.closest(nc),pe;for(;ue&&!pe;)ue=G>0?_G(ue,nc):EG(ue,nc),pe=ue?.querySelector(rw);pe?D.setState("value",pe.getAttribute(ds)):ee(G)}let be=()=>z(oe().length-1),P=G=>{G.preventDefault(),G.metaKey?be():G.altKey?W(1):ee(1)},ie=G=>{G.preventDefault(),G.metaKey?z(0):G.altKey?W(-1):ee(-1)};return S.createElement(Ge.div,{ref:t,tabIndex:-1,...k,"cmdk-root":"",onKeyDown:G=>{var ne;(ne=k.onKeyDown)==null||ne.call(k,G);let ue=G.nativeEvent.isComposing||G.keyCode===229;if(!(G.defaultPrevented||ue))switch(G.key){case"n":case"j":{w&&G.ctrlKey&&P(G);break}case"ArrowDown":{P(G);break}case"p":case"k":{w&&G.ctrlKey&&ie(G);break}case"ArrowUp":{ie(G);break}case"Home":{G.preventDefault(),z(0);break}case"End":{G.preventDefault(),be();break}case"Enter":{G.preventDefault();let pe=q();if(pe){let ve=new Event(Ky);pe.dispatchEvent(ve)}}}}},S.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:AG},d),Ch(e,G=>S.createElement(jk.Provider,{value:D},S.createElement(Lk.Provider,{value:L},G))))}),fG=S.forwardRef((e,t)=>{var n,r;let o=hr(),s=S.useRef(null),l=S.useContext(Pk),u=su(),d=zk(e),f=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:l?.forceMount;sa(()=>{if(!f)return u.item(o,l?.id)},[f]);let p=Bk(o,s,[e.value,e.children,s],e.keywords),m=Db(),v=lo(I=>I.value&&I.value===p.current),b=lo(I=>f||u.filter()===!1?!0:I.search?I.filtered.items.get(o)>0:!0);S.useEffect(()=>{let I=s.current;if(!(!I||e.disabled))return I.addEventListener(Ky,x),()=>I.removeEventListener(Ky,x)},[b,e.onSelect,e.disabled]);function x(){var I,D;A(),(D=(I=d.current).onSelect)==null||D.call(I,p.current)}function A(){m.setState("value",p.current,!0)}if(!b)return null;let{disabled:w,value:k,onSelect:E,forceMount:T,keywords:R,...C}=e;return S.createElement(Ge.div,{ref:oa(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!v,"data-disabled":!!w,"data-selected":!!v,onPointerMove:w||u.getDisablePointerSelection()?void 0:A,onClick:w?void 0:x},e.children)}),hG=S.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,l=hr(),u=S.useRef(null),d=S.useRef(null),f=hr(),p=su(),m=lo(b=>o||p.filter()===!1?!0:b.search?b.filtered.groups.has(l):!0);sa(()=>p.group(l),[]),Bk(l,u,[e.value,e.heading,d]);let v=S.useMemo(()=>({id:l,forceMount:o}),[o]);return S.createElement(Ge.div,{ref:oa(u,t),...s,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&S.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),Ch(e,b=>S.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},S.createElement(Pk.Provider,{value:v},b))))}),pG=S.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=S.useRef(null),s=lo(l=>!l.search);return!n&&!s?null:S.createElement(Ge.div,{ref:oa(o,t),...r,"cmdk-separator":"",role:"separator"})}),mG=S.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=Db(),l=lo(f=>f.search),u=lo(f=>f.selectedItemId),d=su();return S.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),S.createElement(Ge.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:o?e.value:l,onChange:f=>{o||s.setState("search",f.target.value),n?.(f.target.value)}})}),gG=S.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=S.useRef(null),l=S.useRef(null),u=lo(f=>f.selectedItemId),d=su();return S.useEffect(()=>{if(l.current&&s.current){let f=l.current,p=s.current,m,v=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let b=f.offsetHeight;p.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return v.observe(f),()=>{cancelAnimationFrame(m),v.unobserve(f)}}},[]),S.createElement(Ge.div,{ref:oa(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":r,id:d.listId},Ch(e,f=>S.createElement("div",{ref:oa(l,d.listInnerRef),"cmdk-list-sizer":""},f)))}),yG=S.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:l,...u}=e;return S.createElement(X2,{open:n,onOpenChange:r},S.createElement(Q2,{container:l},S.createElement(J2,{"cmdk-overlay":"",className:o}),S.createElement(eG,{"aria-label":e.label,"cmdk-dialog":"",className:s},S.createElement(Mk,{ref:t,...u}))))}),vG=S.forwardRef((e,t)=>lo(n=>n.filtered.count===0)?S.createElement(Ge.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),bG=S.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return S.createElement(Ge.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ch(e,l=>S.createElement("div",{"aria-hidden":!0},l)))}),lu=Object.assign(Mk,{List:gG,Item:fG,Input:mG,Group:hG,Separator:pG,Dialog:yG,Empty:vG,Loading:bG});function _G(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function EG(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function zk(e){let t=S.useRef(e);return sa(()=>{t.current=e}),t}var sa=typeof window>"u"?S.useEffect:S.useLayoutEffect;function fs(e){let t=S.useRef();return t.current===void 0&&(t.current=e()),t}function lo(e){let t=Db(),n=()=>e(t.snapshot());return S.useSyncExternalStore(t.subscribe,n,n)}function Bk(e,t,n,r=[]){let o=S.useRef(),s=su();return sa(()=>{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():o.current}})(),d=r.map(f=>f.trim());s.value(e,u,d),(l=t.current)==null||l.setAttribute(ds,u),o.current=u}),o}var SG=()=>{let[e,t]=S.useState(),n=fs(()=>new Map);return sa(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function xG(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Ch({asChild:e,children:t},n){return e&&S.isValidElement(t)?S.cloneElement(xG(t),{ref:t.ref},n(t.props.children)):n(t)}var AG={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Vk=({className:e,...t})=>y.jsx(lu,{className:me("flex size-full flex-col overflow-hidden rounded-md",e),...t}),wG=({className:e,...t})=>y.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[y.jsx(w$,{className:"mr-2 size-4 shrink-0 opacity-50"}),y.jsx(lu.Input,{className:me("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),TG=({className:e,...t})=>y.jsx(lu.List,{className:me("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),CG=e=>y.jsx(lu.Empty,{className:"py-6 text-center text-sm",...e}),RG=({className:e,...t})=>y.jsx(lu.Item,{className:me("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}),Vf={...Vk,Input:wG,List:TG,Empty:CG,Item:RG},kG=_n("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"}}),kr=({children:e,roundedSize:t,padding:n,transparency:r,separator:o,className:s,border:l,borderColor:u,background:d,gap:f,...p})=>y.jsx("div",{className:me(kG({roundedSize:t,transparency:r,padding:n,separator:o,border:typeof l=="boolean"?l?"with":"none":void 0,background:d,borderColor:u,gap:f,className:s})),...p,children:e}),Uk=({content:e,...t})=>{const[n,r]=S.useState(!1),[o,s]=S.useState(!1),{label:l}=dn("copy-button"),u=async()=>{try{s(!1),await navigator.clipboard.writeText(e),r(!0)}catch(f){console.error("Failed to copy text: ",f),s(!0)}};S.useEffect(()=>{if(n||o){const f=setTimeout(()=>{r(!1),s(!1)},1e3);return()=>clearTimeout(f)}},[n,o]);const d=()=>n?"Content copied to clipboard":o?"Failed to copy content":t.label??l.value;return y.jsx(lt,{Icon:n?n$:i$,onClick:u,variant:ot.HOVERABLE,color:it.TEXT,size:wn.ICON_SM,tabIndex:0,title:d(),...t,label:d(),"aria-describedby":n?"copy-success":o?"copy-error":void 0,className:`${t.className||""} ${o?"text-red-500":n?"text-green-500":""}`})},Fk=S.createContext({});function NG(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Lb=typeof window<"u",IG=Lb?S.useLayoutEffect:S.useEffect,jb=S.createContext(null);function Pb(e,t){e.indexOf(t)===-1&&e.push(t)}function Mb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const _i=(e,t,n)=>n>t?t:n<e?e:n;let zb=()=>{};const Ei={},$k=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Hk(e){return typeof e=="object"&&e!==null}const Gk=e=>/^0[^.\s]+$/u.test(e);function Bb(e){let t;return()=>(t===void 0&&(t=e()),t)}const pr=e=>e,OG=(e,t)=>n=>t(e(n)),cu=(...e)=>e.reduce(OG),jc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Vb{constructor(){this.subscriptions=[]}add(t){return Pb(this.subscriptions,t),()=>Mb(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hr=e=>e*1e3,fr=e=>e/1e3;function Kk(e,t){return t?e*(1e3/t):0}const qk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,DG=1e-7,LG=12;function jG(e,t,n,r,o){let s,l,u=0;do l=t+(n-t)/2,s=qk(l,r,o)-e,s>0?n=l:t=l;while(Math.abs(s)>DG&&++u<LG);return l}function uu(e,t,n,r){if(e===t&&n===r)return pr;const o=s=>jG(s,0,1,e,n);return s=>s===0||s===1?s:qk(o(s),t,r)}const Wk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zk=e=>t=>1-e(1-t),Yk=uu(.33,1.53,.69,.99),Ub=Zk(Yk),Xk=Wk(Ub),Qk=e=>(e*=2)<1?.5*Ub(e):.5*(2-Math.pow(2,-10*(e-1))),Fb=e=>1-Math.sin(Math.acos(e)),Jk=Zk(Fb),eN=Wk(Fb),PG=uu(.42,0,1,1),MG=uu(0,0,.58,1),tN=uu(.42,0,.58,1),zG=e=>Array.isArray(e)&&typeof e[0]!="number",nN=e=>Array.isArray(e)&&typeof e[0]=="number",BG={linear:pr,easeIn:PG,easeInOut:tN,easeOut:MG,circIn:Fb,circInOut:eN,circOut:Jk,backIn:Ub,backInOut:Xk,backOut:Yk,anticipate:Qk},VG=e=>typeof e=="string",iw=e=>{if(nN(e)){zb(e.length===4);const[t,n,r,o]=e;return uu(t,n,r,o)}else if(VG(e))return BG[e];return e},Wd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function UG(e,t){let n=new Set,r=new Set,o=!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,m=!1,v=!1)=>{const x=v&&o?n:r;return m&&l.add(p),x.has(p)||x.add(p),p},cancel:p=>{r.delete(p),l.delete(p)},process:p=>{if(u=p,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(d),n.clear(),o=!1,s&&(s=!1,f.process(p))}};return f}const FG=40;function rN(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Wd.reduce((T,R)=>(T[R]=UG(s),T),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:p,update:m,preRender:v,render:b,postRender:x}=l,A=()=>{const T=Ei.useManualTiming?o.timestamp:performance.now();n=!1,Ei.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,FG),1)),o.timestamp=T,o.isProcessing=!0,u.process(o),d.process(o),f.process(o),p.process(o),m.process(o),v.process(o),b.process(o),x.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(A))},w=()=>{n=!0,r=!0,o.isProcessing||e(A)};return{schedule:Wd.reduce((T,R)=>{const C=l[R];return T[R]=(I,D=!1,L=!1)=>(n||w(),C.schedule(I,D,L)),T},{}),cancel:T=>{for(let R=0;R<Wd.length;R++)l[Wd[R]].cancel(T)},state:o,steps:l}}const{schedule:Et,cancel:co,state:cn,steps:zg}=rN(typeof requestAnimationFrame<"u"?requestAnimationFrame:pr,!0);let Ef;function $G(){Ef=void 0}const jn={now:()=>(Ef===void 0&&jn.set(cn.isProcessing||Ei.useManualTiming?cn.timestamp:performance.now()),Ef),set:e=>{Ef=e,queueMicrotask($G)}},iN=e=>t=>typeof t=="string"&&t.startsWith(e),$b=iN("--"),HG=iN("var(--"),Hb=e=>HG(e)?GG.test(e.split("/*")[0].trim()):!1,GG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pc={...Hs,transform:e=>_i(0,1,e)},Zd={...Hs,default:1},_c=e=>Math.round(e*1e5)/1e5,Gb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function KG(e){return e==null}const qG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kb=(e,t)=>n=>!!(typeof n=="string"&&qG.test(n)&&n.startsWith(e)||t&&!KG(n)&&Object.prototype.hasOwnProperty.call(n,t)),oN=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,l,u]=r.match(Gb);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},WG=e=>_i(0,255,e),Bg={...Hs,transform:e=>Math.round(WG(e))},Qo={test:Kb("rgb","red"),parse:oN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bg.transform(e)+", "+Bg.transform(t)+", "+Bg.transform(n)+", "+_c(Pc.transform(r))+")"};function ZG(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const qy={test:Kb("#"),parse:ZG,transform:Qo.transform},du=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ro=du("deg"),Gr=du("%"),Me=du("px"),YG=du("vh"),XG=du("vw"),ow={...Gr,parse:e=>Gr.parse(e)/100,transform:e=>Gr.transform(e*100)},ms={test:Kb("hsl","hue"),parse:oN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gr.transform(_c(t))+", "+Gr.transform(_c(n))+", "+_c(Pc.transform(r))+")"},Vt={test:e=>Qo.test(e)||qy.test(e)||ms.test(e),parse:e=>Qo.test(e)?Qo.parse(e):ms.test(e)?ms.parse(e):qy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qo.transform(e):ms.transform(e),getAnimatableNone:e=>{const t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}},QG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function JG(e){return isNaN(e)&&typeof e=="string"&&(e.match(Gb)?.length||0)+(e.match(QG)?.length||0)>0}const aN="number",sN="color",e3="var",t3="var(",aw="${}",n3=/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 Mc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const u=t.replace(n3,d=>(Vt.test(d)?(r.color.push(s),o.push(sN),n.push(Vt.parse(d))):d.startsWith(t3)?(r.var.push(s),o.push(e3),n.push(d)):(r.number.push(s),o.push(aN),n.push(parseFloat(d))),++s,aw)).split(aw);return{values:n,split:u,indexes:r,types:o}}function lN(e){return Mc(e).values}function cN(e){const{split:t,types:n}=Mc(e),r=t.length;return o=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],o[l]!==void 0){const u=n[l];u===aN?s+=_c(o[l]):u===sN?s+=Vt.transform(o[l]):s+=o[l]}return s}}const r3=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e;function i3(e){const t=lN(e);return cN(e)(t.map(r3))}const uo={test:JG,parse:lN,createTransformer:cN,getAnimatableNone:i3};function Vg(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 o3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,l=0;if(!t)o=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;o=Vg(d,u,e+1/3),s=Vg(d,u,e),l=Vg(d,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function Uf(e,t){return n=>n>0?t:e}const wt=(e,t,n)=>e+(t-e)*n,Ug=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},a3=[qy,Qo,ms],s3=e=>a3.find(t=>t.test(e));function sw(e){const t=s3(e);if(!t)return!1;let n=t.parse(e);return t===ms&&(n=o3(n)),n}const lw=(e,t)=>{const n=sw(e),r=sw(t);if(!n||!r)return Uf(e,t);const o={...n};return s=>(o.red=Ug(n.red,r.red,s),o.green=Ug(n.green,r.green,s),o.blue=Ug(n.blue,r.blue,s),o.alpha=wt(n.alpha,r.alpha,s),Qo.transform(o))},Wy=new Set(["none","hidden"]);function l3(e,t){return Wy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function c3(e,t){return n=>wt(e,t,n)}function qb(e){return typeof e=="number"?c3:typeof e=="string"?Hb(e)?Uf:Vt.test(e)?lw:f3:Array.isArray(e)?uN:typeof e=="object"?Vt.test(e)?lw:u3:Uf}function uN(e,t){const n=[...e],r=n.length,o=e.map((s,l)=>qb(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=o[l](s);return n}}function u3(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=qb(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function d3(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][r[s]],u=e.values[l]??0;n[o]=u,r[s]++}return n}const f3=(e,t)=>{const n=uo.createTransformer(t),r=Mc(e),o=Mc(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Wy.has(e)&&!o.values.length||Wy.has(t)&&!r.values.length?l3(e,t):cu(uN(d3(r,o),o.values),n):Uf(e,t)};function dN(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?wt(e,t,n):qb(e)(e,t)}const h3=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Et.update(t,n),stop:()=>co(t),now:()=>cn.isProcessing?cn.timestamp:jn.now()}},fN=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ff=2e4;function Wb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ff;)t+=n,r=e.next(t);return t>=Ff?1/0:t}function p3(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Wb(r),Ff);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:fr(o)}}const m3=5;function hN(e,t,n){const r=Math.max(t-m3,0);return Kk(n-e(r),t-r)}const It={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},Fg=.001;function g3({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let o,s,l=1-t;l=_i(It.minDamping,It.maxDamping,l),e=_i(It.minDuration,It.maxDuration,fr(e)),l<1?(o=f=>{const p=f*l,m=p*e,v=p-n,b=Zy(f,l),x=Math.exp(-m);return Fg-v/b*x},s=f=>{const m=f*l*e,v=m*n+n,b=Math.pow(l,2)*Math.pow(f,2)*e,x=Math.exp(-m),A=Zy(Math.pow(f,2),l);return(-o(f)+Fg>0?-1:1)*((v-b)*x)/A}):(o=f=>{const p=Math.exp(-f*e),m=(f-n)*e+1;return-Fg+p*m},s=f=>{const p=Math.exp(-f*e),m=(n-f)*(e*e);return p*m});const u=5/e,d=v3(o,s,u);if(e=Hr(e),isNaN(d))return{stiffness:It.stiffness,damping:It.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const y3=12;function v3(e,t,n){let r=n;for(let o=1;o<y3;o++)r=r-e(r)/t(r);return r}function Zy(e,t){return e*Math.sqrt(1-t*t)}const b3=["duration","bounce"],_3=["stiffness","damping","mass"];function cw(e,t){return t.some(n=>e[n]!==void 0)}function E3(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!cw(e,_3)&&cw(e,b3))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*_i(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:It.mass,stiffness:o,damping:s}}else{const n=g3(e);t={...t,...n,mass:It.mass},t.isResolvedFromDuration=!0}return t}function $f(e=It.visualDuration,t=It.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=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:m,velocity:v,isResolvedFromDuration:b}=E3({...n,velocity:-fr(n.velocity||0)}),x=v||0,A=f/(2*Math.sqrt(d*p)),w=l-s,k=fr(Math.sqrt(d/p)),E=Math.abs(w)<5;r||(r=E?It.restSpeed.granular:It.restSpeed.default),o||(o=E?It.restDelta.granular:It.restDelta.default);let T;if(A<1){const C=Zy(k,A);T=I=>{const D=Math.exp(-A*k*I);return l-D*((x+A*k*w)/C*Math.sin(C*I)+w*Math.cos(C*I))}}else if(A===1)T=C=>l-Math.exp(-k*C)*(w+(x+k*w)*C);else{const C=k*Math.sqrt(A*A-1);T=I=>{const D=Math.exp(-A*k*I),L=Math.min(C*I,300);return l-D*((x+A*k*w)*Math.sinh(L)+C*w*Math.cosh(L))/C}}const R={calculatedDuration:b&&m||null,next:C=>{const I=T(C);if(b)u.done=C>=m;else{let D=C===0?x:0;A<1&&(D=C===0?Hr(x):hN(T,C,I));const L=Math.abs(D)<=r,V=Math.abs(l-I)<=o;u.done=L&&V}return u.value=u.done?l:I,u},toString:()=>{const C=Math.min(Wb(R),Ff),I=fN(D=>R.next(C*D).value,C,30);return C+"ms "+I},toTransition:()=>{}};return R}$f.applyToOptions=e=>{const t=p3(e,100,$f);return e.ease=t.ease,e.duration=Hr(t.duration),e.type="keyframes",e};function Yy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:d,restDelta:f=.5,restSpeed:p}){const m=e[0],v={done:!1,value:m},b=L=>u!==void 0&&L<u||d!==void 0&&L>d,x=L=>u===void 0?d:d===void 0||Math.abs(u-L)<Math.abs(d-L)?u:d;let A=n*t;const w=m+A,k=l===void 0?w:l(w);k!==w&&(A=k-m);const E=L=>-A*Math.exp(-L/r),T=L=>k+E(L),R=L=>{const V=E(L),$=T(L);v.done=Math.abs(V)<=f,v.value=v.done?k:$};let C,I;const D=L=>{b(v.value)&&(C=L,I=$f({keyframes:[v.value,x(v.value)],velocity:hN(T,L,v.value),damping:o,stiffness:s,restDelta:f,restSpeed:p}))};return D(0),{calculatedDuration:null,next:L=>{let V=!1;return!I&&C===void 0&&(V=!0,R(L),D(L)),C!==void 0&&L>=C?I.next(L-C):(!V&&R(L),v)}}}function S3(e,t,n){const r=[],o=n||Ei.mix||dN,s=e.length-1;for(let l=0;l<s;l++){let u=o(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||pr:t;u=cu(d,u)}r.push(u)}return r}function x3(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(zb(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=S3(t,r,o),d=u.length,f=p=>{if(l&&p<e[0])return t[0];let m=0;if(d>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const v=jc(e[m],e[m+1],p);return u[m](v)};return n?p=>f(_i(e[0],e[s-1],p)):f}function A3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=jc(0,t,r);e.push(wt(n,1,o))}}function w3(e){const t=[0];return A3(t,e.length-1),t}function T3(e,t){return e.map(n=>n*t)}function C3(e,t){return e.map(()=>t||tN).splice(0,e.length-1)}function Ec({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=zG(r)?r.map(iw):iw(r),s={done:!1,value:t[0]},l=T3(n&&n.length===t.length?n:w3(t),e),u=x3(l,t,{ease:Array.isArray(o)?o:C3(t,o)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const R3=e=>e!==null;function Zb(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(R3),u=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const k3={decay:Yy,inertia:Yy,tween:Ec,keyframes:Ec,spring:$f};function pN(e){typeof e.type=="string"&&(e.type=k3[e.type])}class Yb{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 N3=e=>e/100;class Xb extends Yb{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!==jn.now()&&this.tick(jn.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;pN(t);const{type:n=Ec,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||Ec;d!==Ec&&typeof u[0]!="number"&&(this.mixKeyframes=cu(N3,dN(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=Wb(f));const{calculatedDuration:p}=f;this.calculatedDuration=p,this.resolvedDuration=p+o,this.totalDuration=this.resolvedDuration*(r+1)-o,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:o,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:p,repeat:m,repeatType:v,repeatDelay:b,type:x,onUpdate:A,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const k=this.currentTime-f*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?k<0:k>o;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,R=r;if(m){const L=Math.min(this.currentTime,o)/u;let V=Math.floor(L),$=L%1;!$&&L>=1&&($=1),$===1&&V--,V=Math.min(V,m+1),!!(V%2)&&(v==="reverse"?($=1-$,b&&($-=b/u)):v==="mirror"&&(R=l)),T=_i(0,1,$)*u}const C=E?{done:!1,value:p[0]}:R.next(T);s&&(C.value=s(C.value));let{done:I}=C;!E&&d!==null&&(I=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return D&&x!==Yy&&(C.value=Zb(p,this.options,w,this.speed)),A&&A(C.value),D&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return fr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+fr(t)}get time(){return fr(this.currentTime)}set time(t){t=Hr(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(jn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=fr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=h3,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),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(jn.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 I3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Jo=e=>e*180/Math.PI,Xy=e=>{const t=Jo(Math.atan2(e[1],e[0]));return Qy(t)},O3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xy,rotateZ:Xy,skewX:e=>Jo(Math.atan(e[1])),skewY:e=>Jo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Qy=e=>(e=e%360,e<0&&(e+=360),e),uw=Xy,dw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),D3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dw,scaleY:fw,scale:e=>(dw(e)+fw(e))/2,rotateX:e=>Qy(Jo(Math.atan2(e[6],e[5]))),rotateY:e=>Qy(Jo(Math.atan2(-e[2],e[0]))),rotateZ:uw,rotate:uw,skewX:e=>Jo(Math.atan(e[4])),skewY:e=>Jo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jy(e){return e.includes("scale")?1:0}function ev(e,t){if(!e||e==="none")return Jy(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=D3,o=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=O3,o=u}if(!o)return Jy(t);const s=r[t],l=o[1].split(",").map(j3);return typeof s=="function"?s(l):l[s]}const L3=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ev(n,t)};function j3(e){return parseFloat(e.trim())}const Gs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ks=new Set(Gs),hw=e=>e===Hs||e===Me,P3=new Set(["x","y","z"]),M3=Gs.filter(e=>!P3.has(e));function z3(e){const t=[];return M3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ra={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})=>ev(t,"x"),y:(e,{transform:t})=>ev(t,"y")};ra.translateX=ra.x;ra.translateY=ra.y;const ia=new Set;let tv=!1,nv=!1,rv=!1;function mN(){if(nv){const e=Array.from(ia).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=z3(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.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)})}nv=!1,tv=!1,ia.forEach(e=>e.complete(rv)),ia.clear()}function gN(){ia.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nv=!0)})}function B3(){rv=!0,gN(),mN(),rv=!1}class Qb{constructor(t,n,r,o,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(ia.add(this),tv||(tv=!0,Et.read(gN),Et.resolveKeyframes(mN))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.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),o&&s===void 0&&o.set(t[0])}I3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ia.delete(this)}cancel(){this.state==="scheduled"&&(ia.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const V3=e=>e.startsWith("--");function U3(e,t,n){V3(t)?e.style.setProperty(t,n):e.style[t]=n}const F3=Bb(()=>window.ScrollTimeline!==void 0),$3={};function H3(e,t){const n=Bb(e);return()=>$3[t]??n()}const yN=H3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mc([0,.65,.55,1]),circOut:mc([.55,0,1,.45]),backIn:mc([.31,.01,.66,-.59]),backOut:mc([.33,1.53,.69,.99])};function vN(e,t){if(e)return typeof e=="function"?yN()?fN(e,t):"ease-out":nN(e)?mc(e):Array.isArray(e)?e.map(n=>vN(n,t)||pw.easeOut):pw[e]}function G3(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:d}={},f=void 0){const p={[t]:n};d&&(p.offset=d);const m=vN(u,o);Array.isArray(m)&&(p.easing=m);const v={delay:r,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(v.pseudoElement=f),e.animate(p,v)}function bN(e){return typeof e=="function"&&"applyToOptions"in e}function K3({type:e,...t}){return bN(e)&&yN()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class q3 extends Yb{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,zb(typeof t.type!="string");const f=K3(t);this.animation=G3(n,r,o,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=Zb(o,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):U3(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 fr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+fr(t)}get time(){return fr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Hr(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&&F3()?(this.animation.timeline=t,pr):n(this)}}const _N={anticipate:Qk,backInOut:Xk,circInOut:eN};function W3(e){return e in _N}function Z3(e){typeof e.ease=="string"&&W3(e.ease)&&(e.ease=_N[e.ease])}const mw=10;class Y3 extends q3{constructor(t){Z3(t),pN(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new Xb({...l,autoplay:!1}),d=Hr(this.finishedTime??this.time);n.setWithVelocity(u.sample(d-mw).value,u.sample(d).value,mw),u.stop()}}const gw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(uo.test(e)||e==="0")&&!e.startsWith("url("));function X3(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 Q3(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=gw(o,t),u=gw(s,t);return!l||!u?!1:X3(e)||(n==="spring"||bN(n))&&r}function iv(e){e.duration=0,e.type="keyframes"}const J3=new Set(["opacity","clipPath","filter","transform"]),e4=Bb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function t4(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:f}=t.owner.getProps();return e4()&&n&&J3.has(n)&&(n!=="transform"||!f)&&!d&&!r&&o!=="mirror"&&s!==0&&l!=="inertia"}const n4=40;class r4 extends Yb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,name:d,motionValue:f,element:p,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=jn.now();const v={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:p,...m},b=p?.KeyframeResolver||Qb;this.keyframeResolver=new b(u,(x,A,w)=>this.onKeyframesResolved(x,A,v,!w),d,f,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:d,isHandoff:f,onUpdate:p}=r;this.resolvedAt=jn.now(),Q3(t,s,l,u)||((Ei.instantAnimations||!d)&&p?.(Zb(t,r,n)),t[0]=t[t.length-1],iv(r),r.repeat=0);const v={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>n4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&t4(v)?new Y3({...v,element:v.motionValue.owner.current}):new Xb(v);b.finished.then(()=>this.notifyFinished()).catch(pr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}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(),B3()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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 i4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function o4(e){const t=i4.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function EN(e,t,n=1){const[r,o]=o4(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return $k(l)?parseFloat(l):l}return Hb(o)?EN(o,t,n+1):o}function Jb(e,t){return e?.[t]??e?.default??e}const SN=new Set(["width","height","top","left","right","bottom",...Gs]),a4={test:e=>e==="auto",parse:e=>e},xN=e=>t=>t.test(e),AN=[Hs,Me,Gr,ro,XG,YG,a4],yw=e=>AN.find(xN(e));function s4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Gk(e):!0}const l4=new Set(["brightness","contrast","saturate","opacity"]);function c4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gb)||[];if(!r)return e;const o=n.replace(r,"");let s=l4.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const u4=/\b([a-z-]*)\(.*?\)/gu,ov={...uo,getAnimatableNone:e=>{const t=e.match(u4);return t?t.map(c4).join(" "):e}},vw={...Hs,transform:Math.round},d4={rotate:ro,rotateX:ro,rotateY:ro,rotateZ:ro,scale:Zd,scaleX:Zd,scaleY:Zd,scaleZ:Zd,skew:ro,skewX:ro,skewY:ro,distance:Me,translateX:Me,translateY:Me,translateZ:Me,x:Me,y:Me,z:Me,perspective:Me,transformPerspective:Me,opacity:Pc,originX:ow,originY:ow,originZ:Me},e_={borderWidth:Me,borderTopWidth:Me,borderRightWidth:Me,borderBottomWidth:Me,borderLeftWidth:Me,borderRadius:Me,radius:Me,borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomRightRadius:Me,borderBottomLeftRadius:Me,width:Me,maxWidth:Me,height:Me,maxHeight:Me,top:Me,right:Me,bottom:Me,left:Me,padding:Me,paddingTop:Me,paddingRight:Me,paddingBottom:Me,paddingLeft:Me,margin:Me,marginTop:Me,marginRight:Me,marginBottom:Me,marginLeft:Me,backgroundPositionX:Me,backgroundPositionY:Me,...d4,zIndex:vw,fillOpacity:Pc,strokeOpacity:Pc,numOctaves:vw},f4={...e_,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:ov,WebkitFilter:ov},wN=e=>f4[e];function TN(e,t){let n=wN(e);return n!==ov&&(n=uo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const h4=new Set(["auto","none","0"]);function p4(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!h4.has(s)&&Mc(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=TN(n,o)}class m4 extends Qb{constructor(t,n,r,o,s){super(t,n,r,o,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(),Hb(f))){const p=EN(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!SN.has(r)||t.length!==2)return;const[o,s]=t,l=yw(o),u=yw(s);if(l!==u)if(hw(l)&&hw(u))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else ra[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||s4(t[o]))&&r.push(o);r.length&&p4(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=ra[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=ra[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 g4(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const CN=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function y4(e){return Hk(e)&&"offsetHeight"in e}const bw=30,v4=e=>!isNaN(parseFloat(e));class b4{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=jn.now();if(this.updatedAt!==o&&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=jn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=v4(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 Vb);const r=this.events[t].add(n);return t==="change"?()=>{r(),Et.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=jn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,bw);return Kk(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 Is(e,t){return new b4(e,t)}const{schedule:t_}=rN(queueMicrotask,!1),br={x:!1,y:!1};function RN(){return br.x||br.y}function _4(e){return e==="x"||e==="y"?br[e]?null:(br[e]=!0,()=>{br[e]=!1}):br.x||br.y?null:(br.x=br.y=!0,()=>{br.x=br.y=!1})}function kN(e,t){const n=g4(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function _w(e){return!(e.pointerType==="touch"||RN())}function E4(e,t,n={}){const[r,o,s]=kN(e,n),l=u=>{if(!_w(u))return;const{target:d}=u,f=t(d,u);if(typeof f!="function"||!d)return;const p=m=>{_w(m)&&(f(m),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,o)};return r.forEach(u=>{u.addEventListener("pointerenter",l,o)}),s}const NN=(e,t)=>t?e===t?!0:NN(e,t.parentElement):!1,n_=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,S4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function x4(e){return S4.has(e.tagName)||e.tabIndex!==-1}const Sf=new WeakSet;function Ew(e){return t=>{t.key==="Enter"&&e(t)}}function $g(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const A4=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ew(()=>{if(Sf.has(n))return;$g(n,"down");const o=Ew(()=>{$g(n,"up")}),s=()=>$g(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Sw(e){return n_(e)&&!RN()}function w4(e,t,n={}){const[r,o,s]=kN(e,n),l=u=>{const d=u.currentTarget;if(!Sw(u))return;Sf.add(d);const f=t(d,u),p=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),Sf.has(d)&&Sf.delete(d),Sw(b)&&typeof f=="function"&&f(b,{success:x})},m=b=>{p(b,d===window||d===document||n.useGlobalTarget||NN(d,b.target))},v=b=>{p(b,!1)};window.addEventListener("pointerup",m,o),window.addEventListener("pointercancel",v,o)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,o),y4(u)&&(u.addEventListener("focus",f=>A4(f,o)),!x4(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function IN(e){return Hk(e)&&"ownerSVGElement"in e}function T4(e){return IN(e)&&e.tagName==="svg"}const bn=e=>!!(e&&e.getVelocity),C4=[...AN,Vt,uo],R4=e=>C4.find(xN(e)),ON=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function k4(e=!0){const t=S.useContext(jb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=S.useId();S.useEffect(()=>{if(e)return o(s)},[e]);const l=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const r_=S.createContext({strict:!1}),xw={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"]},Os={};for(const e in xw)Os[e]={isEnabled:t=>xw[e].some(n=>!!t[n])};function av(e){for(const t in e)Os[t]={...Os[t],...e[t]}}function N4({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!Hg(t)),o=S.useRef(void 0);if(!Hg(t)){const{renderer:s,...l}=t;o.current=s,av(l)}return S.useEffect(()=>{Hg(t)&&t().then(({renderer:s,...l})=>{av(l),o.current=s,r(!0)})},[]),y.jsx(r_.Provider,{value:{renderer:o.current,strict:n},children:e})}function Hg(e){return typeof e=="function"}const I4=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 Hf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||I4.has(e)}let DN=e=>!Hf(e);function O4(e){typeof e=="function"&&(DN=t=>t.startsWith("on")?!Hf(t):e(t))}try{O4(require("@emotion/is-prop-valid").default)}catch{}function D4(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(DN(o)||n===!0&&Hf(o)||!t&&!Hf(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Rh=S.createContext({});function kh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zc(e){return typeof e=="string"||Array.isArray(e)}const i_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],o_=["initial",...i_];function Nh(e){return kh(e.animate)||o_.some(t=>zc(e[t]))}function LN(e){return!!(Nh(e)||e.variants)}function L4(e,t){if(Nh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||zc(n)?n:void 0,animate:zc(r)?r:void 0}}return e.inherit!==!1?t:{}}function j4(e){const{initial:t,animate:n}=L4(e,S.useContext(Rh));return S.useMemo(()=>({initial:t,animate:n}),[Aw(t),Aw(n)])}function Aw(e){return Array.isArray(e)?e.join(" "):e}const Bc={};function P4(e){for(const t in e)Bc[t]=e[t],$b(t)&&(Bc[t].isCSSVariable=!0)}function jN(e,{layout:t,layoutId:n}){return Ks.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bc[e]||e==="opacity")}const M4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z4=Gs.length;function B4(e,t,n){let r="",o=!0;for(let s=0;s<z4;s++){const l=Gs[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=CN(u,e_[l]);if(!d){o=!1;const p=M4[l]||l;r+=`${p}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function a_(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let l=!1,u=!1;for(const d in t){const f=t[d];if(Ks.has(d)){l=!0;continue}else if($b(d)){o[d]=f;continue}else{const p=CN(f,e_[d]);d.startsWith("origin")?(u=!0,s[d]=p):r[d]=p}}if(t.transform||(l||n?r.transform=B4(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 s_=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function PN(e,t,n){for(const r in t)!bn(t[r])&&!jN(r,n)&&(e[r]=t[r])}function V4({transformTemplate:e},t){return S.useMemo(()=>{const n=s_();return a_(n,t,e),Object.assign({},n.vars,n.style)},[t])}function U4(e,t){const n=e.style||{},r={};return PN(r,n,e),Object.assign(r,V4(e,t)),r}function F4(e,t){const n={},r=U4(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 $4={offset:"stroke-dashoffset",array:"stroke-dasharray"},H4={offset:"strokeDashoffset",array:"strokeDasharray"};function G4(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?$4:H4;e[s.offset]=Me.transform(-r);const l=Me.transform(t),u=Me.transform(n);e[s.array]=`${l} ${u}`}function MN(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...u},d,f,p){if(a_(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v}=e;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),o!==void 0&&G4(m,o,s,l,!1)}const zN=()=>({...s_(),attrs:{}}),BN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function K4(e,t,n,r){const o=S.useMemo(()=>{const s=zN();return MN(s,t,BN(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};PN(s,e.style,e),o.style={...s,...o.style}}return o}const q4=["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 l_(e){return typeof e!="string"||e.includes("-")?!1:!!(q4.indexOf(e)>-1||/[A-Z]/u.test(e))}function W4(e,t,n,{latestValues:r},o,s=!1){const u=(l_(e)?K4:F4)(t,r,o,e),d=D4(t,typeof e=="string",s),f=e!==S.Fragment?{...d,...u,ref:n}:{},{children:p}=t,m=S.useMemo(()=>bn(p)?p.get():p,[p]);return S.createElement(e,{...f,children:m})}function ww(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function c_(e,t,n,r){if(typeof t=="function"){const[o,s]=ww(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=ww(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function xf(e){return bn(e)?e.get():e}function Z4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Y4(n,r,o,e),renderState:t()}}function Y4(e,t,n,r){const o={},s=r(e,{});for(const v in s)o[v]=xf(s[v]);let{initial:l,animate:u}=e;const d=Nh(e),f=LN(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 m=p?u:l;if(m&&typeof m!="boolean"&&!kh(m)){const v=Array.isArray(m)?m:[m];for(let b=0;b<v.length;b++){const x=c_(e,v[b]);if(x){const{transitionEnd:A,transition:w,...k}=x;for(const E in k){let T=k[E];if(Array.isArray(T)){const R=p?T.length-1:0;T=T[R]}T!==null&&(o[E]=T)}for(const E in A)o[E]=A[E]}}}return o}const VN=e=>(t,n)=>{const r=S.useContext(Rh),o=S.useContext(jb),s=()=>Z4(e,t,r,o);return n?s():NG(s)};function u_(e,t,n){const{style:r}=e,o={};for(const s in r)(bn(r[s])||t.style&&bn(t.style[s])||jN(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const X4=VN({scrapeMotionValuesFromProps:u_,createRenderState:s_});function UN(e,t,n){const r=u_(e,t,n);for(const o in e)if(bn(e[o])||bn(t[o])){const s=Gs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const Q4=VN({scrapeMotionValuesFromProps:UN,createRenderState:zN}),J4=Symbol.for("motionComponentSymbol");function gs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function e6(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):gs(n)&&(n.current=r))},[t])}const d_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),t6="framerAppearId",FN="data-"+d_(t6),$N=S.createContext({});function n6(e,t,n,r,o){const{visualElement:s}=S.useContext(Rh),l=S.useContext(r_),u=S.useContext(jb),d=S.useContext(ON).reducedMotion,f=S.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,m=S.useContext($N);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&r6(f.current,n,o,m);const v=S.useRef(!1);S.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const b=n[FN],x=S.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return IG(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),S.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),x.current=!1),p.enteringChildren=void 0)}),p}function r6(e,t,n,r){const{layoutId:o,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:HN(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||u&&gs(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:d,layoutRoot:f})}function HN(e){if(e)return e.options.allowProjection!==!1?e.projection:HN(e.parent)}function Gg(e,{forwardMotionProps:t=!1}={},n,r){n&&av(n);const o=l_(e)?Q4:X4;function s(u,d){let f;const p={...S.useContext(ON),...u,layoutId:i6(u)},{isStatic:m}=p,v=j4(u),b=o(u,m);if(!m&&Lb){o6();const x=a6(p);f=x.MeasureLayout,v.visualElement=n6(e,b,p,r,x.ProjectionNode)}return y.jsxs(Rh.Provider,{value:v,children:[f&&v.visualElement?y.jsx(f,{visualElement:v.visualElement,...p}):null,W4(e,u,e6(b,v.visualElement,d),b,m,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=S.forwardRef(s);return l[J4]=e,l}function i6({layoutId:e}){const t=S.useContext(Fk).id;return t&&e!==void 0?t+"-"+e:e}function o6(e,t){S.useContext(r_).strict}function a6(e){const{drag:t,layout:n}=Os;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function s6(e,t){if(typeof Proxy>"u")return Gg;const n=new Map,r=(s,l)=>Gg(s,l,e,t),o=(s,l)=>r(s,l);return new Proxy(o,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,Gg(l,void 0,e,t)),n.get(l))})}function GN({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function l6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function c6(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 Kg(e){return e===void 0||e===1}function sv({scale:e,scaleX:t,scaleY:n}){return!Kg(e)||!Kg(t)||!Kg(n)}function Zo(e){return sv(e)||KN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function KN(e){return Tw(e.x)||Tw(e.y)}function Tw(e){return e&&e!=="0%"}function Gf(e,t,n){const r=e-n,o=t*r;return n+o}function Cw(e,t,n,r,o){return o!==void 0&&(e=Gf(e,o,r)),Gf(e,n,r)+t}function lv(e,t=0,n=1,r,o){e.min=Cw(e.min,t,n,r,o),e.max=Cw(e.max,t,n,r,o)}function qN(e,{x:t,y:n}){lv(e.x,t.translate,t.scale,t.originPoint),lv(e.y,n.translate,n.scale,n.originPoint)}const Rw=.999999999999,kw=1.0000000000001;function u6(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,l;for(let u=0;u<o;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&&vs(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,qN(e,l)),r&&Zo(s.latestValues)&&vs(e,s.latestValues))}t.x<kw&&t.x>Rw&&(t.x=1),t.y<kw&&t.y>Rw&&(t.y=1)}function ys(e,t){e.min=e.min+t,e.max=e.max+t}function Nw(e,t,n,r,o=.5){const s=wt(e.min,e.max,o);lv(e,t,n,s,r)}function vs(e,t){Nw(e.x,t.x,t.scaleX,t.scale,t.originX),Nw(e.y,t.y,t.scaleY,t.scale,t.originY)}function WN(e,t){return GN(c6(e.getBoundingClientRect(),t))}function d6(e,t,n){const r=WN(e,n),{scroll:o}=t;return o&&(ys(r.x,o.offset.x),ys(r.y,o.offset.y)),r}const Iw=()=>({translate:0,scale:1,origin:0,originPoint:0}),bs=()=>({x:Iw(),y:Iw()}),Ow=()=>({min:0,max:0}),Lt=()=>({x:Ow(),y:Ow()}),cv={current:null},ZN={current:!1};function f6(){if(ZN.current=!0,!!Lb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cv.current=e.matches;e.addEventListener("change",t),t()}else cv.current=!1}const h6=new WeakMap;function p6(e,t,n){for(const r in t){const o=t[r],s=n[r];if(bn(o))e.addValue(r,o);else if(bn(s))e.addValue(r,Is(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,Is(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Dw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class m6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,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=Qb,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 v=jn.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Et.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=o,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=Nh(n),this.isVariantNode=LN(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const b=m[v];d[v]!==void 0&&bn(b)&&b.set(d[v])}}mount(t){this.current=t,h6.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)),ZN.current||f6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cv.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),co(this.notifyUpdate),co(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=Ks.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Et.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,()=>{o(),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 Os){const n=Os[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(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):Lt()}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<Dw.length;r++){const o=Dw[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,l=t[s];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=p6(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=Is(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"&&($k(r)||Gk(r))?r=parseFloat(r):!R4(r)&&uo.test(n)&&(r=TN(t,n)),this.setBaseTarget(t,bn(r)?r.get():r)),bn(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=c_(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!bn(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){t_.render(this.render)}}class YN extends m6{constructor(){super(...arguments),this.KeyframeResolver=m4}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;bn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function XN(e,{style:t,vars:n},r,o){const s=e.style;let l;for(l in t)s[l]=t[l];o?.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function g6(e){return window.getComputedStyle(e)}class y6 extends YN{constructor(){super(...arguments),this.type="html",this.renderInstance=XN}readValueFromInstance(t,n){if(Ks.has(n))return this.projection?.isProjecting?Jy(n):L3(t,n);{const r=g6(t),o=($b(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return WN(t,n)}build(t,n,r){a_(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return u_(t,n,r)}}const QN=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 v6(e,t,n,r){XN(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(QN.has(o)?o:d_(o),t.attrs[o])}class b6 extends YN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Lt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ks.has(n)){const r=wN(n);return r&&r.default||0}return n=QN.has(n)?n:d_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return UN(t,n,r)}build(t,n,r){MN(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){v6(t,n,r,o)}mount(t){this.isSVGTag=BN(t.tagName),super.mount(t)}}const JN=(e,t)=>l_(e)?new b6(t):new y6(t,{allowProjection:e!==S.Fragment});function xs(e,t,n){const r=e.getProps();return c_(r,t,n!==void 0?n:r.custom,e)}const uv=e=>Array.isArray(e);function _6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Is(n))}function E6(e){return uv(e)?e[e.length-1]||0:e}function S6(e,t){const n=xs(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const l in s){const u=E6(s[l]);_6(e,l,u)}}function x6(e){return!!(bn(e)&&e.add)}function dv(e,t){const n=e.getValue("willChange");if(x6(n))return n.add(t);if(!n&&Ei.WillChange){const r=new Ei.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function eI(e){return e.props[FN]}const A6=e=>e!==null;function w6(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(A6),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const T6={type:"spring",stiffness:500,damping:25,restSpeed:10},C6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),R6={type:"keyframes",duration:.8},k6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},N6=(e,{keyframes:t})=>t.length>2?R6:Ks.has(e)?e.startsWith("scale")?C6(t[1]):T6:k6;function I6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:l,repeatDelay:u,from:d,elapsed:f,...p}){return!!Object.keys(p).length}const f_=(e,t,n,r={},o,s)=>l=>{const u=Jb(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Hr(d);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:o};I6(u)||Object.assign(p,N6(e,p)),p.duration&&(p.duration=Hr(p.duration)),p.repeatDelay&&(p.repeatDelay=Hr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(iv(p),p.delay===0&&(m=!0)),(Ei.instantAnimations||Ei.skipAnimations)&&(m=!0,iv(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,m&&!s&&t.get()!==void 0){const v=w6(p.keyframes,u);if(v!==void 0){Et.update(()=>{p.onUpdate(v),p.onComplete()});return}}return u.isSync?new Xb(p):new r4(p)};function O6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tI(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const d=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in u){const m=e.getValue(p,e.latestValues[p]??null),v=u[p];if(v===void 0||f&&O6(f,p))continue;const b={delay:n,...Jb(s||{},p)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(v)&&v===x&&!b.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const k=eI(e);if(k){const E=window.MotionHandoffAnimation(k,p,Et);E!==null&&(b.startTime=E,A=!0)}}dv(e,p),m.start(f_(p,m,v,e.shouldReduceMotion&&SN.has(p)?{type:!1}:b,e,A));const w=m.animation;w&&d.push(w)}return l&&Promise.all(d).then(()=>{Et.update(()=>{l&&S6(e,l)})}),d}function nI(e,t,n,r=0,o=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):o===1?s*r:u-s*r}function fv(e,t,n={}){const r=xs(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(tI(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:m}=o;return D6(e,t,d,f,p,m,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,f]=u==="beforeChildren"?[s,l]:[l,s];return d().then(()=>f())}else return Promise.all([s(),l(n.delay)])}function D6(e,t,n=0,r=0,o=0,s=1,l){const u=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),u.push(fv(d,t,{...l,delay:n+(typeof r=="function"?0:r)+nI(e.variantChildren,d,r,o,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(u)}function L6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>fv(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=fv(e,t,n);else{const o=typeof t=="function"?xs(e,t,n.custom):t;r=Promise.all(tI(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function rI(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 j6=o_.length;function iI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?iI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<j6;n++){const r=o_[n],o=e.props[r];(zc(o)||o===!1)&&(t[r]=o)}return t}const P6=[...i_].reverse(),M6=i_.length;function z6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>L6(e,n,r)))}function B6(e){let t=z6(e),n=Lw(),r=!0;const o=d=>(f,p)=>{const m=xs(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(m){const{transition:v,transitionEnd:b,...x}=m;f={...f,...x,...b}}return f};function s(d){t=d(e)}function l(d){const{props:f}=e,p=iI(e.parent)||{},m=[],v=new Set;let b={},x=1/0;for(let w=0;w<M6;w++){const k=P6[w],E=n[k],T=f[k]!==void 0?f[k]:p[k],R=zc(T),C=k===d?E.isActive:null;C===!1&&(x=w);let I=T===p[k]&&T!==f[k]&&R;if(I&&r&&e.manuallyAnimateOnMount&&(I=!1),E.protectedKeys={...b},!E.isActive&&C===null||!T&&!E.prevProp||kh(T)||typeof T=="boolean")continue;const D=V6(E.prevProp,T);let L=D||k===d&&E.isActive&&!I&&R||w>x&&R,V=!1;const $=Array.isArray(T)?T:[T];let Z=$.reduce(o(k),{});C===!1&&(Z={});const{prevResolvedValues:Q={}}=E,le={...Q,...Z},q=ee=>{L=!0,v.has(ee)&&(V=!0,v.delete(ee)),E.needsAnimating[ee]=!0;const W=e.getValue(ee);W&&(W.liveStyle=!1)};for(const ee in le){const W=Z[ee],be=Q[ee];if(b.hasOwnProperty(ee))continue;let P=!1;uv(W)&&uv(be)?P=!rI(W,be):P=W!==be,P?W!=null?q(ee):v.add(ee):W!==void 0&&v.has(ee)?q(ee):E.protectedKeys[ee]=!0}E.prevProp=T,E.prevResolvedValues=Z,E.isActive&&(b={...b,...Z}),r&&e.blockInitialAnimation&&(L=!1);const oe=I&&D;L&&(!oe||V)&&m.push(...$.map(ee=>{const W={type:k};if(typeof ee=="string"&&r&&!oe&&e.manuallyAnimateOnMount&&e.parent){const{parent:be}=e,P=xs(be,ee);if(be.enteringChildren&&P){const{delayChildren:ie}=P.transition||{};W.delay=nI(be.enteringChildren,e,ie)}}return{animation:ee,options:W}}))}if(v.size){const w={};if(typeof f.initial!="boolean"){const k=xs(e,Array.isArray(f.initial)?f.initial[0]:f.initial);k&&k.transition&&(w.transition=k.transition)}v.forEach(k=>{const E=e.getBaseTarget(k),T=e.getValue(k);T&&(T.liveStyle=!0),w[k]=E??null}),m.push({animation:w})}let A=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(A=!1),r=!1,A?t(m):Promise.resolve()}function u(d,f){if(n[d].isActive===f)return Promise.resolve();e.variantChildren?.forEach(m=>m.animationState?.setActive(d,f)),n[d].isActive=f;const p=l(d);for(const m in n)n[m].protectedKeys={};return p}return{animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Lw(),r=!0}}}function V6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rI(t,e):!1}function qo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lw(){return{animate:qo(!0),whileInView:qo(),whileHover:qo(),whileTap:qo(),whileDrag:qo(),whileFocus:qo(),exit:qo()}}class yo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class U6 extends yo{constructor(t){super(t),t.animationState||(t.animationState=B6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();kh(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 F6=0;class $6 extends yo{constructor(){super(...arguments),this.id=F6++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.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 oI={animation:{Feature:U6},exit:{Feature:$6}};function Vc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function fu(e){return{point:{x:e.pageX,y:e.pageY}}}const H6=e=>t=>n_(t)&&e(t,fu(t));function Sc(e,t,n,r){return Vc(e,t,H6(n),r)}const aI=1e-4,G6=1-aI,K6=1+aI,sI=.01,q6=0-sI,W6=0+sI;function An(e){return e.max-e.min}function Z6(e,t,n){return Math.abs(e-t)<=n}function jw(e,t,n,r=.5){e.origin=r,e.originPoint=wt(t.min,t.max,e.origin),e.scale=An(n)/An(t),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=G6&&e.scale<=K6||isNaN(e.scale))&&(e.scale=1),(e.translate>=q6&&e.translate<=W6||isNaN(e.translate))&&(e.translate=0)}function xc(e,t,n,r){jw(e.x,t.x,n.x,r?r.originX:void 0),jw(e.y,t.y,n.y,r?r.originY:void 0)}function Pw(e,t,n){e.min=n.min+t.min,e.max=e.min+An(t)}function Y6(e,t,n){Pw(e.x,t.x,n.x),Pw(e.y,t.y,n.y)}function Mw(e,t,n){e.min=t.min-n.min,e.max=e.min+An(t)}function Ac(e,t,n){Mw(e.x,t.x,n.x),Mw(e.y,t.y,n.y)}function cr(e){return[e("x"),e("y")]}const lI=({current:e})=>e?e.ownerDocument.defaultView:null,zw=(e,t)=>Math.abs(e-t);function X6(e,t){const n=zw(e.x,t.x),r=zw(e.y,t.y);return Math.sqrt(n**2+r**2)}class cI{constructor(t,n,{transformPagePoint:r,contextWindow:o=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 v=Wg(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,x=X6(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!x)return;const{point:A}=v,{timestamp:w}=cn;this.history.push({...A,timestamp:w});const{onStart:k,onMove:E}=this.handlers;b||(k&&k(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=qg(b,this.transformPagePoint),Et.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:x,onSessionEnd:A,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Wg(v.type==="pointercancel"?this.lastMoveEventInfo:qg(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,k),A&&A(v,k)},!n_(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=o||window;const u=fu(t),d=qg(u,this.transformPagePoint),{point:f}=d,{timestamp:p}=cn;this.history=[{...f,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,Wg(d,this.history)),this.removeListeners=cu(Sc(this.contextWindow,"pointermove",this.handlePointerMove),Sc(this.contextWindow,"pointerup",this.handlePointerUp),Sc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),co(this.updatePoint)}}function qg(e,t){return t?{point:t(e.point)}:e}function Bw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wg({point:e},t){return{point:e,delta:Bw(e,uI(t)),offset:Bw(e,Q6(t)),velocity:J6(t,.1)}}function Q6(e){return e[0]}function uI(e){return e[e.length-1]}function J6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=uI(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Hr(t)));)n--;if(!r)return{x:0,y:0};const s=fr(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function e5(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?wt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?wt(n,e,r.max):Math.min(e,n)),e}function Vw(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 t5(e,{top:t,left:n,bottom:r,right:o}){return{x:Vw(e.x,n,o),y:Vw(e.y,t,r)}}function Uw(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 n5(e,t){return{x:Uw(e.x,t.x),y:Uw(e.y,t.y)}}function r5(e,t){let n=.5;const r=An(e),o=An(t);return o>r?n=jc(t.min,t.max-r,e.min):r>o&&(n=jc(e.min,e.max-o,t.min)),_i(0,1,n)}function i5(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 hv=.35;function o5(e=hv){return e===!1?e=0:e===!0&&(e=hv),{x:Fw(e,"left","right"),y:Fw(e,"top","bottom")}}function Fw(e,t,n){return{min:$w(e,t),max:$w(e,n)}}function $w(e,t){return typeof e=="number"?e:e[t]||0}const a5=new WeakMap;class s5{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=Lt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fu(m).point)},l=(m,v)=>{const{drag:b,dragPropagation:x,onDragStart:A}=this.getProps();if(b&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_4(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),cr(k=>{let E=this.getAxisMotionValue(k).get()||0;if(Gr.test(E)){const{projection:T}=this.visualElement;if(T&&T.layout){const R=T.layout.layoutBox[k];R&&(E=An(R)*(parseFloat(E)/100))}}this.originPoint[k]=E}),A&&Et.postRender(()=>A(m,v)),dv(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},u=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v;const{dragPropagation:b,dragDirectionLock:x,onDirectionLock:A,onDrag:w}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:k}=v;if(x&&this.currentDirection===null){this.currentDirection=l5(k),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",v.point,k),this.updateAxis("y",v.point,k),this.visualElement.render(),w&&w(m,v)},d=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v,this.stop(m,v),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>cr(m=>this.getAnimationState(m)==="paused"&&this.getAxisMotionValue(m).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new cI(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:lI(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&Et.postRender(()=>u(r,o))}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:o}=this.getProps();if(!r||!Yd(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=e5(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,o=this.constraints;t&&gs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=t5(r.layoutBox,t):this.constraints=!1,this.elastic=o5(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&cr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=i5(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!gs(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=d6(r,o.root,this.visualElement.getTransformPagePoint());let l=n5(o.layout.layoutBox,s);if(n){const u=n(l6(l));this.hasMutatedConstraints=!!u,u&&(l=GN(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=cr(p=>{if(!Yd(p,n,this.currentDirection))return;let m=d&&d[p]||{};l&&(m={min:0,max:0});const v=o?200:1e6,b=o?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dv(this.visualElement,t),r.start(f_(t,r,0,n,this.visualElement,!1))}stopAnimation(){cr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){cr(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(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){cr(n=>{const{drag:r}=this.getProps();if(!Yd(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:u}=o.layout.layoutBox[n];s.set(t[n]-wt(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!gs(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};cr(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();o[l]=r5({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(),cr(l=>{if(!Yd(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];u.set(wt(d,f,o[l]))})}addListeners(){if(!this.visualElement.current)return;a5.set(this.visualElement,this);const t=this.visualElement.current,n=Sc(t,"pointerdown",d=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();gs(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Et.read(r);const l=Vc(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(cr(p=>{const m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=d[p].translate,m.set(m.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:o=!1,dragConstraints:s=!1,dragElastic:l=hv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function Yd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function l5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class c5 extends yo{constructor(t){super(t),this.removeGroupControls=pr,this.removeListeners=pr,this.controls=new s5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hw=e=>(t,n)=>{e&&Et.postRender(()=>e(t,n))};class u5 extends yo{constructor(){super(...arguments),this.removePointerDownListener=pr}onPointerDown(t){this.session=new cI(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lI(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Hw(t),onStart:Hw(n),onMove:r,onEnd:(s,l)=>{delete this.session,o&&Et.postRender(()=>o(s,l))}}}mount(){this.removePointerDownListener=Sc(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 Af={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Me.test(e))e=parseFloat(e);else return e;const n=Gw(e,t.target.x),r=Gw(e,t.target.y);return`${n}% ${r}%`}},d5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=uo.parse(e);if(o.length>5)return r;const s=uo.createTransformer(e),l=typeof o[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=d;const f=wt(u,d,.5);return typeof o[2+l]=="number"&&(o[2+l]/=f),typeof o[3+l]=="number"&&(o[3+l]/=f),s(o)}};let Zg=!1;class f5 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;P4(h5),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Zg&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Af.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,Zg=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||Et.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t_.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Zg=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function dI(e){const[t,n]=k4(),r=S.useContext(Fk);return y.jsx(f5,{...e,layoutGroup:r,switchLayoutGroup:S.useContext($N),isPresent:t,safeToRemove:n})}const h5={borderRadius:{...rc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rc,borderTopRightRadius:rc,borderBottomLeftRadius:rc,borderBottomRightRadius:rc,boxShadow:d5};function p5(e,t,n){const r=bn(e)?e:Is(e);return r.start(f_("",r,t,n)),r.animation}const m5=(e,t)=>e.depth-t.depth;class g5{constructor(){this.children=[],this.isDirty=!1}add(t){Pb(this.children,t),this.isDirty=!0}remove(t){Mb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(m5),this.isDirty=!1,this.children.forEach(t)}}function y5(e,t){const n=jn.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(co(r),e(s-t))};return Et.setup(r,!0),()=>co(r)}const fI=["TopLeft","TopRight","BottomLeft","BottomRight"],v5=fI.length,Kw=e=>typeof e=="string"?parseFloat(e):e,qw=e=>typeof e=="number"||Me.test(e);function b5(e,t,n,r,o,s){o?(e.opacity=wt(0,n.opacity??1,_5(r)),e.opacityExit=wt(t.opacity??1,0,E5(r))):s&&(e.opacity=wt(t.opacity??1,n.opacity??1,r));for(let l=0;l<v5;l++){const u=`border${fI[l]}Radius`;let d=Ww(t,u),f=Ww(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||qw(d)===qw(f)?(e[u]=Math.max(wt(Kw(d),Kw(f),r),0),(Gr.test(f)||Gr.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,r))}function Ww(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const _5=hI(0,.5,Jk),E5=hI(.5,.95,pr);function hI(e,t,n){return r=>r<e?0:r>t?1:n(jc(e,t,r))}function Zw(e,t){e.min=t.min,e.max=t.max}function sr(e,t){Zw(e.x,t.x),Zw(e.y,t.y)}function Yw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xw(e,t,n,r,o){return e-=t,e=Gf(e,1/n,r),o!==void 0&&(e=Gf(e,1/o,r)),e}function S5(e,t=0,n=1,r=.5,o,s=e,l=e){if(Gr.test(t)&&(t=parseFloat(t),t=wt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=wt(s.min,s.max,r);e===s&&(u-=t),e.min=Xw(e.min,t,n,u,o),e.max=Xw(e.max,t,n,u,o)}function Qw(e,t,[n,r,o],s,l){S5(e,t[n],t[r],t[o],t.scale,s,l)}const x5=["x","scaleX","originX"],A5=["y","scaleY","originY"];function Jw(e,t,n,r){Qw(e.x,t,x5,n?n.x:void 0,r?r.x:void 0),Qw(e.y,t,A5,n?n.y:void 0,r?r.y:void 0)}function eT(e){return e.translate===0&&e.scale===1}function pI(e){return eT(e.x)&&eT(e.y)}function tT(e,t){return e.min===t.min&&e.max===t.max}function w5(e,t){return tT(e.x,t.x)&&tT(e.y,t.y)}function nT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mI(e,t){return nT(e.x,t.x)&&nT(e.y,t.y)}function rT(e){return An(e.x)/An(e.y)}function iT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class T5{constructor(){this.members=[]}add(t){Pb(this.members,t),t.scheduleRender()}remove(t){if(Mb(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];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:o}=t.options;o===!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 C5(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((o||s||l)&&(r=`translate3d(${o}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:m,rotateY:v,skewX:b,skewY:x}=n;f&&(r=`perspective(${f}px) ${r}`),p&&(r+=`rotate(${p}deg) `),m&&(r+=`rotateX(${m}deg) `),v&&(r+=`rotateY(${v}deg) `),b&&(r+=`skewX(${b}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 Yg=["","X","Y","Z"],R5=1e3;let k5=0;function Xg(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gI(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eI(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Et,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gI(r)}function yI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(l={},u=t?.()){this.id=k5++,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(O5),this.nodes.forEach(P5),this.nodes.forEach(M5),this.nodes.forEach(D5)},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 g5)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Vb),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=IN(l)&&!T4(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,m=0;const v=()=>this.root.updateBlockedByResize=!1;Et.read(()=>{m=window.innerWidth}),e(l,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,p&&p(),p=y5(v,250),Af.hasAnimatedSinceResize&&(Af.hasAnimatedSinceResize=!1,this.nodes.forEach(sT)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||F5,{onLayoutAnimationStart:A,onLayoutAnimationComplete:w}=f.getProps(),k=!this.targetLayout||!mI(this.targetLayout,b),E=!m&&v;if(this.options.layoutRoot||this.resumeFrom||E||m&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Jb(x,"layout"),onPlay:A,onComplete:w};(f.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,E)}else m||sT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}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(),co(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(z5),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&&gI(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.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(oT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(aT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(j5),this.nodes.forEach(N5),this.nodes.forEach(I5)):this.nodes.forEach(aT),this.clearAllSnapshots();const u=jn.now();cn.delta=_i(0,1e3/60,u-cn.timestamp),cn.timestamp=u,cn.isProcessing=!0,zg.update.process(cn),zg.preRender.process(cn),zg.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(L5),this.sharedNodes.forEach(B5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!An(this.snapshot.measuredBox.x)&&!An(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=Lt(),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(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!pI(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,p=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Zo(this.latestValues)||p)&&(o(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)),$5(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Lt();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(H5))){const{scroll:f}=this.root;f&&(ys(u.x,f.offset.x),ys(u.y,f.offset.y))}return u}removeElementScroll(l){const u=Lt();if(sr(u,l),this.scroll?.wasRoot)return u;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:p,options:m}=f;f!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&sr(u,l),ys(u.x,p.offset.x),ys(u.y,p.offset.y))}return u}applyTransform(l,u=!1){const d=Lt();sr(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&&vs(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Zo(p.latestValues)&&vs(d,p.latestValues)}return Zo(this.latestValues)&&vs(d,this.latestValues),d}removeTransform(l){const u=Lt();sr(u,l);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!Zo(f.latestValues))continue;sv(f.latestValues)&&f.updateSnapshot();const p=Lt(),m=f.measurePageBox();sr(p,m),Jw(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,p)}return Zo(this.latestValues)&&Jw(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!==cn.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:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Ac(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),sr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Lt(),this.targetWithTransforms=Lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Y6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sr(this.target,this.layout.layoutBox),qN(this.target,this.targetDelta)):sr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Ac(this.relativeTargetOrigin,this.target,v.target),sr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||sv(this.parent.latestValues)||KN(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===cn.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;sr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;u6(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=Lt());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Yw(this.prevProjectionDelta.x,this.projectionDelta.x),Yw(this.prevProjectionDelta.y,this.projectionDelta.y)),xc(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!iT(this.projectionDelta.x,this.prevProjectionDelta.x)||!iT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}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=bs(),this.projectionDelta=bs(),this.projectionDeltaWithTransform=bs()}setAnimationOrigin(l,u=!1){const d=this.snapshot,f=d?d.latestValues:{},p={...this.latestValues},m=bs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=Lt(),b=d?d.source:void 0,x=this.layout?this.layout.source:void 0,A=b!==x,w=this.getStack(),k=!w||w.members.length<=1,E=!!(A&&!k&&this.options.crossfade===!0&&!this.path.some(U5));this.animationProgress=0;let T;this.mixTargetDelta=R=>{const C=R/1e3;lT(m.x,l.x,C),lT(m.y,l.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ac(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),V5(this.relativeTarget,this.relativeTargetOrigin,v,C),T&&w5(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Lt()),sr(T,this.relativeTarget)),A&&(this.animationValues=p,b5(p,f,this.latestValues,C,E,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update(()=>{Af.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Is(0)),this.currentAnimation=p5(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(R5),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&&vI(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||Lt();const m=An(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+m;const v=An(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+v}sr(u,d),vs(u,p),xc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new T5),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&&Xg("z",l,f,this.animationValues);for(let p=0;p<Yg.length;p++)Xg(`rotate${Yg[p]}`,l,f,this.animationValues),Xg(`skew${Yg[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=xf(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=xf(u?.pointerEvents)||""),this.hasProjected&&!Zo(this.latestValues)&&(l.transform=d?d({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=f.animationValues||f.latestValues;this.applyTransformsToTarget();let m=C5(this.projectionDeltaWithTransform,this.treeScale,p);d&&(m=d(p,m)),l.transform=m;const{x:v,y:b}=this.projectionDelta;l.transformOrigin=`${v.origin*100}% ${b.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 Bc){if(p[x]===void 0)continue;const{correct:A,applyTo:w,isCSSVariable:k}=Bc[x],E=m==="none"?p[x]:A(p[x],f);if(w){const T=w.length;for(let R=0;R<T;R++)l[w[R]]=E}else k?this.options.visualElement.renderState.vars[x]=E:l[x]=E}this.options.layoutId&&(l.pointerEvents=f===this?xf(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(oT),this.root.sharedNodes.clear()}}}function N5(e){e.updateLayout()}function I5(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:o}=e.options,s=t.source!==e.layout.source;o==="size"?cr(p=>{const m=s?t.measuredBox[p]:t.layoutBox[p],v=An(m);m.min=n[p].min,m.max=m.min+v}):vI(o,t.layoutBox,n)&&cr(p=>{const m=s?t.measuredBox[p]:t.layoutBox[p],v=An(n[p]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+v)});const l=bs();xc(l,n,t.layoutBox);const u=bs();s?xc(u,e.applyTransform(r,!0),t.measuredBox):xc(u,n,t.layoutBox);const d=!pI(l);let f=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:v}=p;if(m&&v){const b=Lt();Ac(b,t.layoutBox,m.layoutBox);const x=Lt();Ac(x,n,v.layoutBox),mI(b,x)||(f=!0),p.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,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 O5(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 D5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function L5(e){e.clearSnapshot()}function oT(e){e.clearMeasurements()}function aT(e){e.isLayoutDirty=!1}function j5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function P5(e){e.resolveTargetDelta()}function M5(e){e.calcProjection()}function z5(e){e.resetSkewAndRotation()}function B5(e){e.removeLeadSnapshot()}function lT(e,t,n){e.translate=wt(t.translate,0,n),e.scale=wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cT(e,t,n,r){e.min=wt(t.min,n.min,r),e.max=wt(t.max,n.max,r)}function V5(e,t,n,r){cT(e.x,t.x,n.x,r),cT(e.y,t.y,n.y,r)}function U5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const F5={duration:.45,ease:[.4,0,.1,1]},uT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dT=uT("applewebkit/")&&!uT("chrome/")?Math.round:pr;function fT(e){e.min=dT(e.min),e.max=dT(e.max)}function $5(e){fT(e.x),fT(e.y)}function vI(e,t,n){return e==="position"||e==="preserve-aspect"&&!Z6(rT(t),rT(n),.2)}function H5(e){return e!==e.root&&e.scroll?.wasRoot}const G5=yI({attachResizeListener:(e,t)=>Vc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qg={current:void 0},bI=yI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qg.current){const e=new G5({});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"}),K5={pan:{Feature:u5},drag:{Feature:c5,ProjectionNode:bI,MeasureLayout:dI}};function hT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&Et.postRender(()=>s(t,fu(t)))}class q5 extends yo{mount(){const{current:t}=this.node;t&&(this.unmount=E4(t,(n,r)=>(hT(this.node,r,"Start"),o=>hT(this.node,o,"End"))))}unmount(){}}class W5 extends yo{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=cu(Vc(this.node.current,"focus",()=>this.onFocus()),Vc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pT(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 o="onTap"+(n==="End"?"":n),s=r[o];s&&Et.postRender(()=>s(t,fu(t)))}class Z5 extends yo{mount(){const{current:t}=this.node;t&&(this.unmount=w4(t,(n,r)=>(pT(this.node,r,"Start"),(o,{success:s})=>pT(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pv=new WeakMap,Jg=new WeakMap,Y5=e=>{const t=pv.get(e.target);t&&t(e)},X5=e=>{e.forEach(Y5)};function Q5({root:e,...t}){const n=e||document;Jg.has(n)||Jg.set(n,{});const r=Jg.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(X5,{root:e,...t})),r[o]}function J5(e,t,n){const r=Q5(t);return pv.set(e,n),r.observe(e),()=>{pv.delete(e),r.unobserve(e)}}const eK={some:0,all:1};class tK extends yo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:eK[o]},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:m}=this.node.getProps(),v=f?p:m;v&&v(d)};return J5(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(nK(t,n))&&this.startObserver()}unmount(){}}function nK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const _I={inView:{Feature:tK},tap:{Feature:Z5},focus:{Feature:W5},hover:{Feature:q5}},rK={layout:{ProjectionNode:bI,MeasureLayout:dI}},iK={...oI,..._I,...K5,...rK},EI=s6(iK,JN),oK={renderer:JN,...oI,..._I};var aK={};const wf=Object.create(null),ic=e=>aK||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?wf:globalThis),Wo=new Proxy(wf,{get(e,t){return ic()[t]??wf[t]},has(e,t){const n=ic();return t in n||t in wf},set(e,t,n){const r=ic(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=ic(!0);return delete n[t],!0},ownKeys(){const e=ic(!0);return Object.keys(e)}});var qs=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(){}},sK={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},lK=class{#e=sK;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},ea=new lK;function cK(e){setTimeout(e,0)}var la=typeof window>"u"||"Deno"in globalThis;function Sn(){}function uK(e,t){return typeof e=="function"?e(t):e}function mv(e){return typeof e=="number"&&e>=0&&e!==1/0}function SI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function io(e,t){return typeof e=="function"?e(t):e}function ur(e,t){return typeof e=="function"?e(t):e}function mT(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==h_(l,t.options))return!1}else if(!Uc(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||o&&o!==t.state.fetchStatus||s&&!s(t))}function gT(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ca(t.options.mutationKey)!==ca(s))return!1}else if(!Uc(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function h_(e,t){return(t?.queryKeyHashFn||ca)(e)}function ca(e){return JSON.stringify(e,(t,n)=>gv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Uc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Uc(e[n],t[n])):!1}var dK=Object.prototype.hasOwnProperty;function xI(e,t){if(e===t)return e;const n=yT(e)&&yT(t);if(!n&&!(gv(e)&&gv(t)))return t;const o=(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],m=e[p],v=t[p];if(m===v){u[p]=m,(n?f<o:dK.call(e,p))&&d++;continue}if(m===null||v===null||typeof m!="object"||typeof v!="object"){u[p]=v;continue}const b=xI(m,v);u[p]=b,b===m&&d++}return o===l&&d===o?e:u}function Kf(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 yT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gv(e){if(!vT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vT(e){return Object.prototype.toString.call(e)==="[object Object]"}function fK(e){return new Promise(t=>{ea.setTimeout(t,e)})}function yv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xI(e,t):t}function hK(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pK(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var p_=Symbol();function AI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===p_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function wI(e,t){return typeof e=="function"?e(...t):!!e}var mK=class extends qs{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!la&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},m_=new mK;function vv(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var gK=cK;function yK(){let e=[],t=0,n=u=>{u()},r=u=>{u()},o=gK;const s=u=>{t?e.push(u):o(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&o(()=>{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=>{o=u}}}var Zt=yK(),vK=class extends qs{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!la&&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.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},qf=new vK;function bK(e){return Math.min(1e3*2**e,3e4)}function TI(e){return(e??"online")==="online"?qf.isOnline():!0}var bv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function CI(e){let t=!1,n=0,r;const o=vv(),s=()=>o.status!=="pending",l=A=>{if(!s()){const w=new bv(A);v(w),e.onCancel?.(w)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>m_.isFocused()&&(e.networkMode==="always"||qf.isOnline())&&e.canRun(),p=()=>TI(e.networkMode)&&e.canRun(),m=A=>{s()||(r?.(),o.resolve(A))},v=A=>{s()||(r?.(),o.reject(A))},b=()=>new Promise(A=>{r=w=>{(s()||f())&&A(w)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),x=()=>{if(s())return;let A;const w=n===0?e.initialPromise:void 0;try{A=w??e.fn()}catch(k){A=Promise.reject(k)}Promise.resolve(A).then(m).catch(k=>{if(s())return;const E=e.retry??(la?0:3),T=e.retryDelay??bK,R=typeof T=="function"?T(n,k):T,C=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,k);if(t||!C){v(k);return}n++,e.onFail?.(n,k),fK(R).then(()=>f()?void 0:b()).then(()=>{t?v(k):x()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r?.(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?x():b().then(x),o)}}var RI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mv(this.gcTime)&&(this.#e=ea.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(la?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ea.clearTimeout(this.#e),this.#e=void 0)}},_K=class extends RI{#e;#t;#n;#i;#r;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=bT(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=bT(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=yv(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Sn).catch(Sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ur(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===p_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>io(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:!SI(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.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.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.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)})},o=()=>{const u=AI(this.options,t),f=(()=>{const p={client:this.#i,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.#i,state:this.state,fetchFn:o};return r(u),u})();this.options.behavior?.onFetch(l,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=CI({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:u=>{u instanceof bv&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,d)=>{this.#o({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const u=await this.#r.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 bv){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#o({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#o(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,...kI(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.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Zt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function kI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:TI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bT(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 EK=class extends qs{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#s=vv(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#a;#s;#o;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),_T(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _v(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _v(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#E(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ur(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Kf(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&ET(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||ur(this.options.enabled,this.#t)!==ur(t.enabled,this.#t)||io(this.options.staleTime,this.#t)!==io(t.staleTime,this.#t))&&this.#g();const o=this.#y();r&&(this.#t!==n||ur(this.options.enabled,this.#t)!==ur(t.enabled,this.#t)||o!==this.#l)&&this.#v(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return xK(this,n)&&(this.#i=n,this.#a=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}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.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Sn)),t}#g(){this.#_();const e=io(this.options.staleTime,this.#t);if(la||this.#i.isStale||!mv(e))return;const n=SI(this.#i.dataUpdatedAt,e)+1;this.#c=ea.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#E(),this.#l=e,!(la||ur(this.options.enabled,this.#t)===!1||!mv(this.#l)||this.#l===0)&&(this.#u=ea.setInterval(()=>{(this.options.refetchIntervalInBackground||m_.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#_(){this.#c&&(ea.clearTimeout(this.#c),this.#c=void 0)}#E(){this.#u&&(ea.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#i,s=this.#r,l=this.#a,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,v;if(t._optimisticResults){const L=this.hasListeners(),V=!L&&_T(e,t),$=L&&ET(e,n,t,r);(V||$)&&(p={...p,...kI(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:A}=p;v=p.data;let w=!1;if(t.placeholderData!==void 0&&v===void 0&&A==="pending"){let L;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(L=o.data,w=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(A="success",v=yv(o?.data,L,t),m=!0)}if(t.select&&v!==void 0&&!w)if(o&&v===s?.data&&t.select===this.#m)v=this.#f;else try{this.#m=t.select,v=t.select(v),v=yv(o?.data,v,t),this.#f=v,this.#o=null}catch(L){this.#o=L}this.#o&&(b=this.#o,v=this.#f,x=Date.now(),A="error");const k=p.fetchStatus==="fetching",E=A==="pending",T=A==="error",R=E&&k,C=v!==void 0,D={status:A,fetchStatus:p.fetchStatus,isPending:E,isSuccess:A==="success",isError:T,isInitialLoading:R,isLoading:R,data:v,dataUpdatedAt:p.dataUpdatedAt,error:b,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:k,isRefetching:k&&!E,isLoadingError:T&&!C,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:T&&C,isStale:g_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ur(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=Z=>{D.status==="error"?Z.reject(D.error):D.data!==void 0&&Z.resolve(D.data)},V=()=>{const Z=this.#s=D.promise=vv();L(Z)},$=this.#s;switch($.status){case"pending":e.queryHash===n.queryHash&&L($);break;case"fulfilled":(D.status==="error"||D.data!==$.value)&&V();break;case"rejected":(D.status!=="error"||D.error!==$.reason)&&V();break}}return D}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#h=this.#t),Kf(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#p.size)return!0;const s=new Set(o??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(l=>{const u=l;return this.#i[u]!==e[u]&&s.has(u)})};this.#x({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){Zt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function SK(e,t){return ur(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _T(e,t){return SK(e,t)||e.state.data!==void 0&&_v(e,t,t.refetchOnMount)}function _v(e,t,n){if(ur(t.enabled,e)!==!1&&io(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&g_(e,t)}return!1}function ET(e,t,n,r){return(e!==t||ur(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&g_(e,n)}function g_(e,t){return ur(t.enabled,e)!==!1&&e.isStaleByTime(io(t.staleTime,e))}function xK(e,t){return!Kf(e.getCurrentResult(),t)}function ST(e){return{onFetch:(t,n)=>{const r=t.options,o=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 m=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=AI(t.options,t.fetchOptions),b=async(x,A,w)=>{if(p)return Promise.reject();if(A==null&&x.pages.length)return Promise.resolve(x);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:w?"backward":"forward",meta:t.options.meta};return m(I),I})(),T=await v(E),{maxPages:R}=t.options,C=w?pK:hK;return{pages:C(x.pages,T,R),pageParams:C(x.pageParams,A,R)}};if(o&&s.length){const x=o==="backward",A=x?AK:xT,w={pages:s,pageParams:l},k=A(r,w);u=await b(w,k,x)}else{const x=e??s.length;do{const A=d===0?l[0]??r.initialPageParam:xT(r,u);if(d>0&&A==null)break;u=await b(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 xT(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 AK(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var wK=class extends RI{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||NI(),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.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=CI({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{this.#r({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:o})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.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),Zt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function NI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var II=class extends qs{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new wK({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Xd(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Xd(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Xd(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Xd(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>gT(t,n))}findAll(e={}){return this.getAll().filter(t=>gT(e,t))}notify(e){Zt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Zt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Sn))))}};function Xd(e){return e.options.scope?.id}var TK=class extends qs{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Kf(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ca(n.mutationKey)!==ca(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.#r(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#a()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??NI();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){Zt.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,r,o),this.#i.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#i.onError?.(t.error,n,r,o),this.#i.onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(this.#t)})})}},CK=class extends qs{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??h_(r,t);let s=this.get(o);return s||(s=new _K({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Zt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>mT(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>mT(e,n)):t}notify(e){Zt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},RK=class{#e;#t;#n;#i;#r;#a;#s;#o;constructor(e={}){this.#e=e.queryCache||new CK,this.#t=e.mutationCache||new II,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=m_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=qf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(io(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.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.#e.get(r.queryHash)?.state.data,l=uK(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Zt.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Zt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Zt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Zt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Sn).catch(Sn)}invalidateQueries(e,t={}){return Zt.batch(()=>(this.#e.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=Zt.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Sn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Sn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(io(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Sn).catch(Sn)}fetchInfiniteQuery(e){return e.behavior=ST(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Sn).catch(Sn)}ensureInfiniteQueryData(e){return e.behavior=ST(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qf.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(ca(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{Uc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ca(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Uc(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=h_(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===p_&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},OI=S.createContext(void 0),y_=e=>{const t=S.useContext(OI);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kK=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(OI.Provider,{value:e,children:t})),DI=S.createContext(!1),NK=()=>S.useContext(DI);DI.Provider;function IK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var OK=S.createContext(IK()),DK=()=>S.useContext(OK),LK=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},jK=e=>{S.useEffect(()=>{e.clearReset()},[e])},PK=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||wI(n,[e.error,r])),MK=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},zK=(e,t)=>e.isLoading&&e.isFetching&&!t,BK=(e,t)=>e?.suspense&&t.isPending,AT=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function VK(e,t,n){const r=NK(),o=DK(),s=y_(),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",MK(l),LK(l,o),jK(o);const u=!s.getQueryCache().get(l.queryHash),[d]=S.useState(()=>new t(s,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(m=>{const v=p?d.subscribe(Zt.batchCalls(m)):Sn;return d.updateResult(),v},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),S.useEffect(()=>{d.setOptions(l)},[l,d]),BK(l,f))throw AT(l,d,o);if(PK({result:f,errorResetBoundary:o,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&&!la&&zK(f,r)&&(u?AT(l,d,o):s.getQueryCache().get(l.queryHash)?.promise)?.catch(Sn).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function Ih(e,t){return VK(e,EK)}function ya(e,t){const n=y_(),[r]=S.useState(()=>new TK(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const o=S.useSyncExternalStore(S.useCallback(l=>r.subscribe(Zt.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((l,u)=>{r.mutate(l,u).catch(Sn)},[r]);if(o.error&&wI(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const LI=e=>{const[t,n]=S.useState(e);return S.useEffect(()=>{n(e??window.document.body)},[e]),t},UK={},wT=e=>{let t;const n=new Set,r=(p,m)=>{const v=typeof p=="function"?p(t):p;if(!Object.is(v,t)){const b=t;t=m??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(x=>x(t,b))}},o=()=>t,d={setState:r,getState:o,getInitialState:()=>f,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(UK?"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,o,d);return d},FK=e=>e?wT(e):wT;var ey={exports:{}},ty={},ny={exports:{}},ry={};/**
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 TT;function $K(){if(TT)return ry;TT=1;var e=Qc();function t(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(m,v){var b=v(),x=r({inst:{value:b,getSnapshot:v}}),A=x[0].inst,w=x[1];return s(function(){A.value=b,A.getSnapshot=v,d(A)&&w({inst:A})},[m,b,v]),o(function(){return d(A)&&w({inst:A}),m(function(){d(A)&&w({inst:A})})},[m]),l(b),b}function d(m){var v=m.getSnapshot;m=m.value;try{var b=v();return!n(m,b)}catch{return!0}}function f(m,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return ry.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,ry}var CT;function HK(){return CT||(CT=1,ny.exports=$K()),ny.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 RT;function GK(){if(RT)return ty;RT=1;var e=Qc(),t=HK();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,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,d=e.useDebugValue;return ty.useSyncExternalStoreWithSelector=function(f,p,m,v,b){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 k(I){if(!E){if(E=!0,T=I,I=v(I),b!==void 0&&A.hasValue){var D=A.value;if(b(D,I))return R=D}return R=I}if(D=R,r(T,I))return D;var L=v(I);return b!==void 0&&b(D,L)?(T=I,D):(T=I,R=L)}var E=!1,T,R,C=m===void 0?null:m;return[function(){return k(p())},C===null?void 0:function(){return k(C())}]},[p,m,v,b]);var w=o(f,x[0],x[1]);return l(function(){A.hasValue=!0,A.value=w},[w]),d(w),w},ty}var kT;function KK(){return kT||(kT=1,ey.exports=GK()),ey.exports}var qK=KK();const WK=fb(qK),jI={},{useDebugValue:ZK}=Oe,{useSyncExternalStoreWithSelector:YK}=WK;let NT=!1;const XK=e=>e;function QK(e,t=XK,n){(jI?"production":void 0)!=="production"&&n&&!NT&&(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"),NT=!0);const r=YK(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return ZK(r),r}const IT=e=>{(jI?"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"?FK(e):e,n=(r,o)=>QK(t,r,o);return Object.assign(n,t),n},PI=e=>e?IT(e):IT,JK=PI((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(o=>{const s=o.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(o=>{const s=o.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 e8(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,o]of e)if(!Object.is(o,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:t8}=Oe;function MI(e){const t=t8();return n=>{const r=e(n);return e8(t.current,r)?t.current:t.current=r}}const zI=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:o,addBlockage:s,removeBlockage:l}=JK(MI(f=>({isElementScrollBlocked:f.isElementScrollBlocked,addBlockage:f.addBlockage,removeBlockage:f.removeBlockage}))),u=LI(n);return S.useEffect(()=>{const f=n??window.document.body;t?s(r,f):l(r,f)},[s,t,n,r,l]),{isScrollBlocked:u?o(u):!1}},hu="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",r8=({className:e,...t})=>y.jsx("h1",{className:me("mt-5 text-2xl font-bold",e),...t}),i8=({className:e,...t})=>y.jsx("h2",{className:me("mt-16 mb-2 text-2xl font-bold",hu,e),...t}),o8=({className:e,...t})=>y.jsx("h3",{className:me("mt-5 mb-2 text-xl font-bold",hu,e),...t}),a8=({className:e,...t})=>y.jsx("h4",{className:me("mt-3 text-lg font-bold",hu,e),...t}),s8=({className:e,...t})=>y.jsx("h5",{className:me("mt-3 text-base font-bold",hu,e),...t}),l8=({className:e,...t})=>y.jsx("h6",{className:me("mt-3 ml-3 text-base font-bold",hu,e),...t}),c8=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),u8=e=>{const r=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},d8=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,o=window.getComputedStyle(e,":after"),s=n+parseInt(o.getPropertyValue("left"),10),l=s+parseInt(o.width,10),u=r+parseInt(o.getPropertyValue("top"),10),d=u+parseInt(o.height,10),f=t.clientX,p=t.clientY;return f>=s&&f<=l&&p>=u&&p<=d},pu=({H:e,children:t,className:n,isClickable:r,...o})=>{const s=typeof t=="string"?c8(t):void 0,l=u=>{const{id:d}=u.currentTarget;if(d8(u.currentTarget,u)&&typeof d=="string"){const m=`${window.location.href.split("#")[0]}#${d}`;navigator.clipboard.writeText(m),u8(d)}};return y.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:me(r&&n8,n),...o,children:t})},f8=({isClickable:e,...t})=>y.jsx(r8,{...t}),h8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:i8,isClickable:e,...t}),v_=({isClickable:e=!1,...t})=>y.jsx(pu,{H:o8,isClickable:e,...t}),p8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:a8,isClickable:e,...t}),m8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:s8,isClickable:e,...t}),g8=({isClickable:e=!1,...t})=>y.jsx(pu,{H:l8,isClickable:e,...t});var b_=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.UNSET="unset",e))(b_||{});const y8=_n("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"}}),v8=EI.create(kr),__=({children:e,isOpen:t,container:n,disableScroll:r=!0,onClose:o,hasCloseButton:s=!1,title:l,size:u="md",className:d,...f})=>{const p=LI(n);if(zI({key:"modal",disableScroll:t&&r}),!p)return y.jsx(y.Fragment,{});const m=typeof l=="string";return ma.createPortal(y.jsx(EI.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:v=>{v.stopPropagation(),o?.()},"aria-hidden":!t,children:y.jsx("div",{className:"flex justify-center p-4",children:y.jsxs(v8,{onClick:v=>v.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:y8({size:u,className:d}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...f,children:[y.jsxs("div",{className:me("cursor-default px-4",s&&m?"flex items-center justify-center":s?"flex items-center justify-end":m?"items-center":"hidden"),children:[m&&y.jsx(v_,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),s&&y.jsx(lt,{variant:ot.HOVERABLE,color:it.TEXT,label:"Close modal",className:"ml-auto",onClick:v=>{v.stopPropagation(),o?.()},Icon:ga,size:wn.ICON_MD})]}),y.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),p)},b8=e=>{const t=Zr(),n=e??t??st,r=JR(n),{data:o}=Ih({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:o?.data}};var _8=Object.defineProperty,E8=Object.defineProperties,S8=Object.getOwnPropertyDescriptors,OT=Object.getOwnPropertySymbols,x8=Object.prototype.hasOwnProperty,A8=Object.prototype.propertyIsEnumerable,DT=(e,t,n)=>t in e?_8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Er=(e,t)=>{for(var n in t||(t={}))x8.call(t,n)&&DT(e,n,t[n]);if(OT)for(var n of OT(t))A8.call(t,n)&&DT(e,n,t[n]);return e},Vr=(e,t)=>E8(e,S8(t)),w8=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},T8=async(e,t)=>{var n,r,o,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 m=await((n=p.init)==null?void 0:n.call(p,e.toString(),t));d=m.options||d,e=m.url}f.onRequest.push((r=p.hooks)==null?void 0:r.onRequest),f.onResponse.push((o=p.hooks)==null?void 0:o.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}},LT=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}},C8=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 R8(e){if(typeof e=="number")return new LT({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new LT(e);case"exponential":return new C8(e);default:throw new Error("Invalid retry strategy")}}var k8=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),o=n(e.auth.password);if(!r||!o)return t;t.authorization=`Basic ${btoa(`${r}:${o}`)}`}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},N8=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function I8(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 N8.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function O8(e){try{return JSON.parse(e),!0}catch{return!1}}function BI(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 jT(e){try{return JSON.parse(e)}catch{return e}}function PT(e){return typeof e=="function"}function D8(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&PT(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&PT(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function L8(e){const t=new Headers(e?.headers),n=await k8(e);for(const[r,o]of Object.entries(n||{}))t.set(r,o);if(!t.has("content-type")){const r=j8(e?.body);r&&t.set("content-type",r)}return t}function j8(e){return BI(e)?"application/json":null}function P8(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(BI(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 M8(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 UI.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function z8(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var B8=class VI extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,VI.prototype)}};async function Tf(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new B8(n.issues);return n.value}var UI=["get","post","put","patch","delete"],V8=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,o,s,l;const u=((o=(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:o.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=Vr(Er({},n),{method:f.method,output:f.output});return n?.disableValidation||(p=Vr(Er({},p),{body:f.input?await Tf(f.input,n?.body):n?.body,params:f.params?await Tf(f.params,n?.params):n?.params,query:f.query?await Tf(f.query,n?.query):n?.query})),{url:t,options:p}}}return{url:t,options:n}}}),U8=e=>{async function t(n,r){const o=Vr(Er(Er({},e),r),{plugins:[...e?.plugins||[],V8(e||{})]});if(e?.catchAllError)try{return await Ev(n,o)}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 Ev(n,o)}return t};function F8(e,t){let{baseURL:n,params:r,query:o}=t||{query:{},params:{},baseURL:""},s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const m=e.toString().split("@")[1].split("/")[0];UI.includes(m)&&(e=e.replace(`@${m}/`,"/"))}s.endsWith("/")||(s+="/");let[l,u]=e.replace(s,"").split("?");const d=new URLSearchParams(u);for(const[m,v]of Object.entries(o||{}))v!=null&&d.set(m,String(v));if(r)if(Array.isArray(r)){const m=l.split("/").filter(v=>v.startsWith(":"));for(const[v,b]of m.entries()){const x=r[v];l=l.replace(b,x)}}else for(const[m,v]of Object.entries(r))l=l.replace(`:${m}`,String(v));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 Ev=async(e,t)=>{var n,r,o,s,l,u,d,f;const{hooks:p,url:m,options:v}=await T8(e,t),b=D8(v),x=new AbortController,A=(n=v.signal)!=null?n:x.signal,w=F8(m,v),k=P8(v),E=await L8(v),T=M8(m,v);let R=Vr(Er({},v),{url:w,headers:E,body:k,method:T,signal:A});for(const le of p.onRequest)if(le){const q=await le(R);q instanceof Object&&(R=q)}("pipeTo"in R&&typeof R.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in R||(R.duplex="half"));const{clearTimeout:C}=z8(v,x);let I=await b(R.url,R);C();const D={response:I,request:R};for(const le of p.onResponse)if(le){const q=await le(Vr(Er({},D),{response:(o=t?.hookOptions)!=null&&o.cloneResponse?I.clone():I}));q instanceof Response?I=q:q instanceof Object&&(I=q.response)}if(I.ok){if(!(R.method!=="HEAD"))return{data:"",error:null};const q=I8(I),oe={data:"",response:I,request:R};if(q==="json"||q==="text"){const z=await I.text(),W=await((s=R.jsonParser)!=null?s:jT)(z);oe.data=W}else oe.data=await I[q]();R?.output&&R.output&&!R.disableValidation&&(oe.data=await Tf(R.output,oe.data));for(const z of p.onSuccess)z&&await z(Vr(Er({},oe),{response:(l=t?.hookOptions)!=null&&l.cloneResponse?I.clone():I}));return t?.throw?oe.data:{data:oe.data,error:null}}const L=(u=t?.jsonParser)!=null?u:jT,V=await I.text(),$=O8(V),Z=$?await L(V):null,Q={response:I,responseText:V,request:R,error:Vr(Er({},Z),{status:I.status,statusText:I.statusText})};for(const le of p.onError)le&&await le(Vr(Er({},Q),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?I.clone():I}));if(t?.retry){const le=R8(t.retry),q=(f=t.retryAttempt)!=null?f:0;if(await le.shouldAttemptRetry(q,I)){for(const z of p.onRetry)z&&await z(D);const oe=le.getDelay(q);return await new Promise(z=>setTimeout(z,oe)),await Ev(e,Vr(Er({},t),{retryAttempt:q+1}))}}if(t?.throw)throw new w8(I.status,I.statusText,$?Z:V);return{data:null,error:Vr(Er({},Z),{status:I.status,statusText:I.statusText})}};class $8 extends Error{constructor(t,n){super(t),this.name="BetterAuthError",this.message=t,this.cause=n,this.stack=""}}function H8(e){try{return new URL(e).pathname!=="/"}catch{throw new $8(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function iy(e,t="/api/auth"){return H8(e)?e:(t=t.startsWith("/")?t:`/${t}`,`${e.replace(/\/+$/,"")}${t}`)}function G8(e,t,n,r){if(e)return iy(e,t);{const o=Wo.BETTER_AUTH_URL||Wo.NEXT_PUBLIC_BETTER_AUTH_URL||Wo.PUBLIC_BETTER_AUTH_URL||Wo.NUXT_PUBLIC_BETTER_AUTH_URL||Wo.NUXT_PUBLIC_AUTH_URL||(Wo.BASE_URL!=="/"?Wo.BASE_URL:void 0);if(o)return iy(o,t)}if(typeof window<"u"&&window.location)return iy(window.location.origin,t)}var oy={},ay={},sy={},vr={},MT;function E_(){if(MT)return vr;MT=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.cleanTasks=vr.allTasks=vr.task=vr.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()}}}vr.startTask=n;function r(l){let u=n();return l().finally(u)}vr.task=r;function o(){return e===0?Promise.resolve():new Promise(l=>{t.push(l)})}vr.allTasks=o;function s(){e=0}return vr.cleanTasks=s,vr}var zT;function Oh(){return zT||(zT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.cleanStores=e.clean=void 0;const n=E_();e.clean=Symbol("clean");let r=(...o)=>{if(t.NODE_ENV==="production")throw new Error("cleanStores() can be used only during development or tests");(0,n.cleanTasks)();for(let s of o)s&&(s.mocked&&delete s.mocked,s[e.clean]&&s[e.clean]())};e.cleanStores=r})(sy)),sy}var BT;function S_(){return BT||(BT=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=Oh(),r=0,o=1,s=2,l=3,u=4,d=5,f=6,p=10;let m=(E,T,R,C)=>(E.events=E.events||{},E.events[R+p]||(E.events[R+p]=C(I=>{E.events[R].reduceRight((D,L)=>(L(D),D),{shared:{},...I})})),E.events[R]=E.events[R]||[],E.events[R].push(T),()=>{let I=E.events[R],D=I.indexOf(T);I.splice(D,1),I.length||(delete E.events[R],E.events[R+p](),delete E.events[R+p])}),v=(E,T)=>m(E,T,r,R=>{let C=E.listen;return E.listen=I=>(!E.lc&&!E.starting&&(E.starting=!0,R(),delete E.starting),C(I)),()=>{E.listen=C}});e.onStart=v;let b=(E,T)=>m(E,T,o,R=>{let C=E.off;return E.off=()=>{R(),C()},()=>{E.off=C}});e.onStop=b;let x=(E,T)=>m(E,T,s,R=>{let C=E.set,I=E.setKey;return E.setKey&&(E.setKey=(D,L)=>{let V;if(R({abort:()=>{V=!0},changed:D,newValue:{...E.value,[D]:L}}),!V)return I(D,L)}),E.set=D=>{let L;if(R({abort:()=>{L=!0},newValue:D}),!L)return C(D)},()=>{E.set=C,E.setKey=I}});e.onSet=x;let A=(E,T)=>m(E,T,l,R=>{let C=E.notify;return E.notify=I=>{let D;if(R({abort:()=>{D=!0},changed:I}),!D)return C(I)},()=>{E.notify=C}});e.onNotify=A;let w=(E,T)=>m(E,T,u,R=>{let C=E.build;return E.build=(...I)=>{let D=C(...I);return R({store:D}),D},()=>{E.build=C}});e.onBuild=w,e.STORE_UNMOUNT_DELAY=1e3;let k=(E,T)=>m(E,C=>{let I=T(C);I&&E.events[f].push(I)},d,C=>{let I=E.listen;E.listen=L=>(!E.lc&&!E.active&&(E.active=!0,C()),I(L));let D=E.off;if(E.events[f]=[],E.off=()=>{setTimeout(()=>{if(E.active&&!E.lc){E.active=!1;for(let L of E.events[f])L();E.events[f]=[],D()}},e.STORE_UNMOUNT_DELAY)},t.NODE_ENV!=="production"){let L=E[n.clean];E[n.clean]=()=>{for(let V of E.events[f])V();E.events[f]=[],E.active=!1,L()}}return()=>{E.listen=I,E.off=D}});e.onMount=k})(ay)),ay}var ly={},VT;function K8(){return VT||(VT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.actionFor=e.action=e.lastAction=void 0;const t=E_();e.lastAction=Symbol();let n=(s,l,u,d)=>{let f={...s};f.set=(...m)=>{s[e.lastAction]=l,s.set(...m),delete s[e.lastAction]},s.setKey&&(f.setKey=(...m)=>{s[e.lastAction]=l,s.setKey(...m),delete s[e.lastAction]});let p=u(f,...d);if(p instanceof Promise){let m=(0,t.startTask)();return p.finally(m)}return p},r=(s,l,u)=>(...d)=>n(s,l,u,d);e.action=r;let o=(s,l,u)=>(d,...f)=>n(d,l,u,f);e.actionFor=o})(ly)),ly}var oc={},ac={},cy={},UT;function x_(){return UT||(UT=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.atom=e.notifyId=void 0;const n=Oh();let r=[];e.notifyId=0;let o=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 m=0;m<l.length;m++)r.push(l[m],d.value,f);if(p){e.notifyId++;for(let m=0;m<r.length;m+=3)r[m](r[m+1],r[m+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=o})(cy)),cy}var FT;function FI(){if(FT)return ac;FT=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.map=void 0;const e=x_();let t=(n={})=>{let r=(0,e.atom)(n);return r.setKey=function(o,s){typeof s>"u"?o in r.value&&(r.value={...r.value},delete r.value[o],r.notify(o)):r.value[o]!==s&&(r.value={...r.value,[o]:s},r.notify(o))},r};return ac.map=t,ac}var $T;function q8(){if($T)return oc;$T=1;var e={};Object.defineProperty(oc,"__esModule",{value:!0}),oc.mapTemplate=void 0;const t=S_(),n=Oh(),r=FI();function o(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 oc.mapTemplate=o,oc}var sc={},HT;function W8(){if(HT)return sc;HT=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.listenKeys=void 0;function e(t,n,r){let o=new Set([...n,void 0]);return t.listen((s,l)=>{o.has(l)&&r(s,l)})}return sc.listenKeys=e,sc}var lc={},GT;function Z8(){if(GT)return lc;GT=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.keepMount=void 0;let e=t=>{t.listen(()=>{})};return lc.keepMount=e,lc}var cc={},KT;function Y8(){if(KT)return cc;KT=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.computed=void 0;const e=S_(),t=x_();let n=(r,o)=>{Array.isArray(r)||(r=[r]);let s,l=[],u=()=>{let f=r.map(p=>p.get());(s!==t.notifyId||f.some((p,m)=>p!==l[m]))&&(s=t.notifyId,l=f,d.set(o(...f)))},d=(0,t.atom)();return(0,e.onMount)(d,()=>{let f=r.map(p=>p.listen(u,o));return u(),()=>{for(let p of f)p()}}),d};return cc.computed=n,cc}var qT;function X8(){return qT||(qT=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=S_();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=E_();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=K8();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 o=Oh();Object.defineProperty(e,"clean",{enumerable:!0,get:function(){return o.clean}}),Object.defineProperty(e,"cleanStores",{enumerable:!0,get:function(){return o.cleanStores}});var s=q8();Object.defineProperty(e,"mapTemplate",{enumerable:!0,get:function(){return s.mapTemplate}});var l=W8();Object.defineProperty(e,"listenKeys",{enumerable:!0,get:function(){return l.listenKeys}});var u=Z8();Object.defineProperty(e,"keepMount",{enumerable:!0,get:function(){return u.keepMount}});var d=Y8();Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return d.computed}});var f=x_();Object.defineProperty(e,"atom",{enumerable:!0,get:function(){return f.atom}});var p=FI();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return p.map}})})(oy)),oy}var Sv=X8();const Q8=typeof window>"u",J8=(e,t,n,r)=>{const o=Sv.atom({data:null,error:null,isPending:!0,isRefetching:!1,refetch:u=>s(u)}),s=u=>{const d=typeof r=="function"?r({data:o.get().data,error:o.get().error,isPending:o.get().isPending}):r;n(t,{...d,query:{...d?.query,...u?.query},async onSuccess(f){o.set({data:f.data,error:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch}),await d?.onSuccess?.(f)},async onError(f){const{request:p}=f,m=typeof p.retry=="number"?p.retry:p.retry?.attempts,v=p.retryAttempt||0;m&&v<m||(o.set({error:f.error,data:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch}),await d?.onError?.(f))},async onRequest(f){const p=o.get();o.set({isPending:p.data===null,data:p.data,error:null,isRefetching:!0,refetch:o.value.refetch}),await d?.onRequest?.(f)}}).catch(f=>{o.set({error:f,data:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch})})};e=Array.isArray(e)?e:[e];let l=!1;for(const u of e)u.subscribe(()=>{Q8||(l?s():Sv.onMount(o,()=>{const d=setTimeout(()=>{l||(s(),l=!0)},0);return()=>{o.off(),u.off(),clearTimeout(d)}}))});return o},eq={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*:/},tq=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,WT={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},nq=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function rq(e){return e instanceof Date&&!isNaN(e.getTime())}function iq(e){const t=nq.exec(e);if(!t)return null;const[,n,r,o,s,l,u,d,f,p,m]=t;let v=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(o,10),parseInt(s,10),parseInt(l,10),parseInt(u,10),d?parseInt(d.padEnd(3,"0"),10):0));if(f){const b=(parseInt(p,10)*60+parseInt(m,10))*(f==="+"?-1:1);v.setUTCMinutes(v.getUTCMinutes()+b)}return rq(v)?v:null}function oq(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:o,parseDates:s=!0}=t;if(typeof e!="string")return e;const l=e.trim();if(l.length>0&&l[0]==='"'&&l.endsWith('"')&&!l.slice(1,-1).includes('"'))return l.slice(1,-1);const u=l.toLowerCase();if(u.length<=9&&u in WT)return WT[u];if(!tq.test(l)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(eq).some(([f,p])=>{const m=p.test(l);return m&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${f} pattern`),m})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(l,(p,m)=>{if(p==="__proto__"||p==="constructor"&&m&&typeof m=="object"&&"prototype"in m){r&&console.warn(`[better-json] Dropping "${p}" key to prevent prototype pollution`);return}if(s&&typeof m=="string"){const v=iq(m);if(v)return v}return o?o(p,m):m})}catch(f){if(n)throw f;return e}}function aq(e,t={strict:!0}){return oq(e,t)}const sq={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 lq(e){const t=Sv.atom(!1);return{session:J8(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}const cq=(e,t)=>{const n="credentials"in Request.prototype,r=G8(e?.baseURL,e?.basePath)??"/api/auth",o=e?.plugins?.flatMap(R=>R.fetchPlugins).filter(R=>R!==void 0)||[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:l,onError:u,onRequest:d,onResponse:f,...p}=e?.fetchOptions||{},m=U8({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(R){return R?aq(R,{strict:!1}):null},customFetchImpl:fetch,...p,plugins:[s,...p.plugins||[],...e?.disableDefaultFetchPlugins?[]:[sq],...o]}),{$sessionSignal:v,session:b}=lq(m),x=e?.plugins||[];let A={},w={$sessionSignal:v,session:b},k={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const E=[{signal:"$sessionSignal",matcher(R){return R==="/sign-out"||R==="/update-user"||R.startsWith("/sign-in")||R.startsWith("/sign-up")||R==="/delete-user"||R==="/verify-email"}}];for(const R of x)R.getAtoms&&Object.assign(w,R.getAtoms?.(m)),R.pathMethods&&Object.assign(k,R.pathMethods),R.atomListeners&&E.push(...R.atomListeners);const T={notify:R=>{w[R].set(!w[R].get())},listen:(R,C)=>{w[R].subscribe(C)},atoms:w};for(const R of x)R.getActions&&Object.assign(A,R.getActions?.(m,T,e));return{get baseURL(){return r},pluginsActions:A,pluginsAtoms:w,pluginPathMethods:k,atomListeners:E,$fetch:m,$store:T}};function uq(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function dq(e,t,n){const r=t[e],{fetchOptions:o,query:s,...l}=n||{};return r||(o?.method?o.method:l&&Object.keys(l).length>0?"POST":"GET")}function fq(e,t,n,r,o){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 m of f)if(p&&typeof p=="object"&&m in p)p=p[m];else{p=void 0;break}return typeof p=="function"||uq(p)?p:s(f)},apply:async(u,d,f)=>{const p="/"+l.map(E=>E.replace(/[A-Z]/g,T=>`-${T.toLowerCase()}`)).join("/"),m=f[0]||{},v=f[1]||{},{query:b,fetchOptions:x,...A}=m,w={...v,...x},k=dq(p,n,m);return await t(p,{...w,body:k==="GET"?void 0:{...A,...w?.body||{}},query:b||w?.query,method:k,async onSuccess(E){await w?.onSuccess?.(E);const T=o?.find(I=>I.matcher(p));if(!T)return;const R=r[T.signal];if(!R)return;const C=R.get();setTimeout(()=>{R.set(!C)},10)}})}})}return s()}function hq(e){return e.charAt(0).toUpperCase()+e.slice(1)}function pq(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:o,atomListeners:s,$store:l}=cq(e);let u={};for(const[p,m]of Object.entries(r))u[`use${hq(p)}`]=m;const d={...n,...u,$fetch:o,$store:l};return fq(d,o,t,r,s)}const $I=e=>{const t=e?.editor?.backendURL??st.editor?.backendURL;if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");const n=()=>pq({baseURL:t,withCredentials:!0});return{signInEmail:async(...Z)=>n().signIn.email(...Z),signUpEmail:async(...Z)=>n().signUp.email(...Z),signOut:async(...Z)=>n().signOut(...Z),signInSocial:async(...Z)=>n().signIn.social(...Z),linkSocial:async(...Z)=>n().linkSocial(...Z),changePasswordSession:async(...Z)=>n().changePassword(...Z),requestPasswordResetSession:async(...Z)=>n().requestPasswordReset(...Z),resetPassword:async(...Z)=>n().resetPassword(...Z),verifyEmailSession:async(...Z)=>n().verifyEmail(...Z),getSession:async(...Z)=>n().getSession(...Z),forgetPassword:async(...Z)=>n().forgetPassword(...Z),sendVerificationEmail:async(...Z)=>n().sendVerificationEmail(...Z),changeEmail:async(...Z)=>n().changeEmail(...Z),deleteUser:async(...Z)=>n().deleteUser(...Z),revokeSession:async(...Z)=>n().revokeSession(...Z),revokeSessions:async(...Z)=>n().revokeSessions(...Z),revokeOtherSessions:async(...Z)=>n().revokeOtherSessions(...Z),listAccounts:async(...Z)=>n().listAccounts(...Z),unlinkAccount:async(...Z)=>n().unlinkAccount(...Z),refreshToken:async(...Z)=>n().refreshToken(...Z),getAccessToken:async(...Z)=>n().getAccessToken(...Z),accountInfo:async(...Z)=>n().accountInfo(...Z),updateUser:async(...Z)=>n().updateUser(...Z),listSessions:async(...Z)=>n().listSessions(...Z)}},mq=(e,t)=>{const n=Zr(),r=t??n??st,o=y_(),{data:s,isFetched:l,refetch:u}=Ih({queryKey:["session"],queryFn:async()=>(await $I(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=v=>o.setQueryData(["session"],v),p=async()=>(await u()).data;return{session:d,fetchSession:p,revalidateSession:p,setSession:f}},mu=({session:e,intlayerConfiguration:t}={})=>{const{session:n,fetchSession:r,revalidateSession:o,setSession:s}=mq(e,t),{oAuth2AccessToken:l}=b8(t);return{session:n,fetchSession:r,setSession:s,revalidateSession:o,oAuth2AccessToken:l,isAuthenticated:!!(n?.user||l)}},Ti=e=>{const t=Zr(),{oAuth2AccessToken:n}=mu();return qB({...n&&{headers:{Authorization:`Bearer ${n.accessToken}`}}},t)},gq=e=>{const t=Zr();return $I(t)},yq=({requireUser:e,requireProject:t,requireOrganization:n})=>{const r=Zr(),{oAuth2AccessToken:o,session:s}=mu({intlayerConfiguration:r}),l=s?s.user:o?.user,u=s?s.organization:o?.organization,d=s?s.project:o?.project;return{enable:(e?!!l:!0)&&(t?!!d:!0)&&(n?!!u:!0)}},HI=e=>{const{requireUser:t,requireProject:n,requireOrganization:r,...o}=e,{enable:s}=yq({requireUser:t,requireProject:n,requireOrganization:r});return Ih({...o,enabled:o.enabled===!1?!1:s})},vq=()=>{const e=gq();return ya({mutationKey:["logout"],mutationFn:(...t)=>e.signOut(...t),meta:{invalidateQueries:[["session"],["users"],["organizations"],["projects"],["dictionaries"],["tags"]]}})},bq=e=>{const t=Ti();return HI({queryKey:["projects",e],queryFn:({signal:n})=>t.project.getProjects(e,{signal:n}),requireUser:!0,requireOrganization:!0})},_q=()=>{const e=Ti();return ya({mutationKey:["dictionaries"],mutationFn:e.dictionary.pushDictionaries,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},Eq=()=>{const e=Ti();return ya({mutationKey:["dictionaries"],mutationFn:e.dictionary.deleteDictionary,meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},Sq=e=>{const t=Ti();return HI({queryKey:["tags",e],queryFn:({signal:n})=>t.tag.getTags(e,{signal:n}),requireUser:!0,requireOrganization:!0,requireProject:!0})},xq=()=>{const e=Ti();return ya({mutationKey:["ai-auditContentDeclarationMetadata"],mutationFn:e.ai.auditContentDeclarationMetadata})},Aq=()=>{const e=Ti();return ya({mutationKey:["ai-auditContentDeclarationField"],mutationFn:e.ai.auditContentDeclarationField})},wq=()=>{const e=Ti();return ya({mutationKey:["ai-autocomplete"],mutationFn:e.ai.autocomplete})},GI=()=>{const e=Ti();return Ih({queryKey:["editor","dictionaries"],queryFn:e.editor.getDictionaries})},Tq=()=>{const e=Ti();return ya({mutationKey:["editor","dictionaries"],mutationFn:e.editor.writeDictionary})};var gu=e=>e.type==="checkbox",ta=e=>e instanceof Date,xn=e=>e==null;const KI=e=>typeof e=="object";var Ft=e=>!xn(e)&&!Array.isArray(e)&&KI(e)&&!ta(e),qI=e=>Ft(e)&&e.target?gu(e.target)?e.target.checked:e.target.value:e,Cq=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,WI=(e,t)=>e.has(Cq(t)),Rq=e=>{const t=e.constructor&&e.constructor.prototype;return Ft(t)&&t.hasOwnProperty("isPrototypeOf")},A_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function qt(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(!(A_&&(e instanceof Blob||r))&&(n||Ft(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Rq(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=qt(e[o]));else return e;return t}var Dh=e=>/^\w*$/.test(e),jt=e=>e===void 0,w_=e=>Array.isArray(e)?e.filter(Boolean):[],T_=e=>w_(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ee=(e,t,n)=>{if(!t||!Ft(e))return n;const r=(Dh(t)?[t]:T_(t)).reduce((o,s)=>xn(o)?o:o[s],e);return jt(r)||r===e?jt(e[t])?n:e[t]:r},Gn=e=>typeof e=="boolean",dt=(e,t,n)=>{let r=-1;const o=Dh(t)?[t]:T_(t),s=o.length,l=s-1;for(;++r<s;){const u=o[r];let d=n;if(r!==l){const f=e[u];d=Ft(f)||Array.isArray(f)?f:isNaN(+o[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const Wf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Sr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},gi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},C_=Oe.createContext(null);C_.displayName="HookFormContext";const vo=()=>Oe.useContext(C_),kq=e=>{const{children:t,...n}=e;return Oe.createElement(C_.Provider,{value:n},t)};var ZI=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const l=s;return t._proxyFormState[l]!==Sr.all&&(t._proxyFormState[l]=!r||Sr.all),n&&(n[l]=!0),e[l]}});return o};const R_=typeof window<"u"?Oe.useLayoutEffect:Oe.useEffect;function Nq(e){const t=vo(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[l,u]=Oe.useState(n._formState),d=Oe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return R_(()=>n._subscribe({name:o,formState:d.current,exact:s,callback:f=>{!r&&u({...n._formState,...f})}}),[o,r,s]),Oe.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),Oe.useMemo(()=>ZI(l,n,d.current,!1),[l,n])}var Zn=e=>typeof e=="string",YI=(e,t,n,r,o)=>Zn(e)?(r&&t.watch.add(e),Ee(n,e,o)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),Ee(n,s))):(r&&(t.watchAll=!0),n),xv=e=>xn(e)||!KI(e);function yi(e,t,n=new WeakSet){if(xv(e)||xv(t))return e===t;if(ta(e)&&ta(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.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(!o.includes(s))return!1;if(s!=="ref"){const u=t[s];if(ta(l)&&ta(u)||Ft(l)&&Ft(u)||Array.isArray(l)&&Array.isArray(u)?!yi(l,u,n):l!==u)return!1}}return!0}function Iq(e){const t=vo(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:l,compute:u}=e||{},d=Oe.useRef(o),f=Oe.useRef(u),p=Oe.useRef(void 0);f.current=u;const m=Oe.useMemo(()=>n._getWatch(r,d.current),[n,r]),[v,b]=Oe.useState(f.current?f.current(m):m);return R_(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:x=>{if(!s){const A=YI(r,n._names,x.values||n._formValues,!1,d.current);if(f.current){const w=f.current(A);yi(w,p.current)||(b(w),p.current=w)}else b(A)}}}),[n,s,r,l]),Oe.useEffect(()=>n._removeUnmounted()),v}function Oq(e){const t=vo(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s,defaultValue:l}=e,u=WI(o._names.array,n),d=Oe.useMemo(()=>Ee(o._formValues,n,Ee(o._defaultValues,n,l)),[o,n,l]),f=Iq({control:o,name:n,defaultValue:d,exact:!0}),p=Nq({control:o,name:n,exact:!0}),m=Oe.useRef(e),v=Oe.useRef(void 0),b=Oe.useRef(o.register(n,{...e.rules,value:f,...Gn(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const x=Oe.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]),A=Oe.useCallback(T=>b.current.onChange({target:{value:qI(T),name:n},type:Wf.CHANGE}),[n]),w=Oe.useCallback(()=>b.current.onBlur({target:{value:Ee(o._formValues,n),name:n},type:Wf.BLUR}),[n,o._formValues]),k=Oe.useCallback(T=>{const R=Ee(o._fields,n);R&&T&&(R._f.ref={focus:()=>T.focus&&T.focus(),select:()=>T.select&&T.select(),setCustomValidity:C=>T.setCustomValidity(C),reportValidity:()=>T.reportValidity()})},[o._fields,n]),E=Oe.useMemo(()=>({name:n,value:f,...Gn(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:A,onBlur:w,ref:k}),[n,r,p.disabled,A,w,k,f]);return Oe.useEffect(()=>{const T=o._options.shouldUnregister||s,R=v.current;R&&R!==n&&!u&&o.unregister(R),o.register(n,{...m.current.rules,...Gn(m.current.disabled)?{disabled:m.current.disabled}:{}});const C=(I,D)=>{const L=Ee(o._fields,I);L&&L._f&&(L._f.mount=D)};if(C(n,!0),T){const I=qt(Ee(o._options.defaultValues,n));dt(o._defaultValues,n,I),jt(Ee(o._formValues,n))&&dt(o._formValues,n,I)}return!u&&o.register(n),v.current=n,()=>{(u?T&&!o._state.action:T)?o.unregister(n):C(n,!1)}},[n,o,u,s]),Oe.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),Oe.useMemo(()=>({field:E,formState:p,fieldState:x}),[E,p,x])}const Dq=e=>e.render(Oq(e));var k_=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},wc=e=>Array.isArray(e)?e:[e],ZT=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}};function XI(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],s=t[r];if(o&&Ft(o)&&s){const l=XI(o,s);Ft(l)&&(n[r]=l)}else e[r]&&(n[r]=s)}return n}var Ln=e=>Ft(e)&&!Object.keys(e).length,N_=e=>e.type==="file",xr=e=>typeof e=="function",Zf=e=>{if(!A_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},QI=e=>e.type==="select-multiple",I_=e=>e.type==="radio",Lq=e=>I_(e)||gu(e),uy=e=>Zf(e)&&e.isConnected;function jq(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=jt(e)?r++:e[t[r++]];return e}function Pq(e){for(const t in e)if(e.hasOwnProperty(t)&&!jt(e[t]))return!1;return!0}function zt(e,t){const n=Array.isArray(t)?t:Dh(t)?[t]:T_(t),r=n.length===1?e:jq(e,n),o=n.length-1,s=n[o];return r&&delete r[s],o!==0&&(Ft(r)&&Ln(r)||Array.isArray(r)&&Pq(r))&&zt(e,n.slice(0,-1)),e}var Mq=e=>{for(const t in e)if(xr(e[t]))return!0;return!1};function JI(e){return Array.isArray(e)||Ft(e)&&!Mq(e)}function Av(e,t={}){for(const n in e)JI(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Av(e[n],t[n])):xn(e[n])||(t[n]=!0);return t}function hs(e,t,n){n||(n=Av(t));for(const r in e)JI(e[r])?jt(t)||xv(n[r])?n[r]=Av(e[r],Array.isArray(e[r])?[]:{}):hs(e[r],xn(t)?{}:t[r],n[r]):n[r]=!yi(e[r],t[r]);return n}const YT={value:!1,isValid:!1},XT={value:!0,isValid:!0};var eO=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&&!jt(e[0].attributes.value)?jt(e[0].value)||e[0].value===""?XT:{value:e[0].value,isValid:!0}:XT:YT}return YT},tO=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>jt(e)?e:t?e===""?NaN:e&&+e:n&&Zn(e)?new Date(e):r?r(e):e;const QT={isValid:!1,value:null};var nO=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,QT):QT;function JT(e){const t=e.ref;return N_(t)?t.files:I_(t)?nO(e.refs).value:QI(t)?[...t.selectedOptions].map(({value:n})=>n):gu(t)?eO(e.refs).value:tO(jt(t.value)?e.ref.value:t.value,e)}var zq=(e,t,n,r)=>{const o={};for(const s of e){const l=Ee(t,s);l&&dt(o,s,l._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Yf=e=>e instanceof RegExp,uc=e=>jt(e)?e:Yf(e)?e.source:Ft(e)?Yf(e.value)?e.value.source:e.value:e,eC=e=>({isOnSubmit:!e||e===Sr.onSubmit,isOnBlur:e===Sr.onBlur,isOnChange:e===Sr.onChange,isOnAll:e===Sr.all,isOnTouch:e===Sr.onTouched});const tC="AsyncFunction";var Bq=e=>!!e&&!!e.validate&&!!(xr(e.validate)&&e.validate.constructor.name===tC||Ft(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===tC)),Vq=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),nC=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Tc=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const s=Ee(e,o);if(s){const{_f:l,...u}=s;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],o)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Tc(u,t))break}else if(Ft(u)&&Tc(u,t))break}}};function rC(e,t,n){const r=Ee(e,n);if(r||Dh(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const s=o.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};o.pop()}return{name:n}}var Uq=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return Ln(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||Sr.all))},Fq=(e,t,n)=>!e||!t||e===t||wc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),$q=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Hq=(e,t)=>!w_(Ee(e,t)).length&&zt(e,t),Gq=(e,t,n)=>{const r=wc(Ee(e,n));return dt(r,"root",t[n]),dt(e,n,r),e};function iC(e,t,n="validate"){if(Zn(e)||Array.isArray(e)&&e.every(Zn)||Gn(e)&&!e)return{type:n,message:Zn(e)?e:"",ref:t}}var us=e=>Ft(e)&&!Yf(e)?e:{value:e,message:""},oC=async(e,t,n,r,o,s)=>{const{ref:l,refs:u,required:d,maxLength:f,minLength:p,min:m,max:v,pattern:b,validate:x,name:A,valueAsNumber:w,mount:k}=e._f,E=Ee(n,A);if(!k||t.has(A))return{};const T=u?u[0]:l,R=Q=>{o&&T.reportValidity&&(T.setCustomValidity(Gn(Q)?"":Q||""),T.reportValidity())},C={},I=I_(l),D=gu(l),L=I||D,V=(w||N_(l))&&jt(l.value)&&jt(E)||Zf(l)&&l.value===""||E===""||Array.isArray(E)&&!E.length,$=k_.bind(null,A,r,C),Z=(Q,le,q,oe=gi.maxLength,z=gi.minLength)=>{const ee=Q?le:q;C[A]={type:Q?oe:z,message:ee,ref:l,...$(Q?oe:z,ee)}};if(s?!Array.isArray(E)||!E.length:d&&(!L&&(V||xn(E))||Gn(E)&&!E||D&&!eO(u).isValid||I&&!nO(u).isValid)){const{value:Q,message:le}=Zn(d)?{value:!!d,message:d}:us(d);if(Q&&(C[A]={type:gi.required,message:le,ref:T,...$(gi.required,le)},!r))return R(le),C}if(!V&&(!xn(m)||!xn(v))){let Q,le;const q=us(v),oe=us(m);if(!xn(E)&&!isNaN(E)){const z=l.valueAsNumber||E&&+E;xn(q.value)||(Q=z>q.value),xn(oe.value)||(le=z<oe.value)}else{const z=l.valueAsDate||new Date(E),ee=P=>new Date(new Date().toDateString()+" "+P),W=l.type=="time",be=l.type=="week";Zn(q.value)&&E&&(Q=W?ee(E)>ee(q.value):be?E>q.value:z>new Date(q.value)),Zn(oe.value)&&E&&(le=W?ee(E)<ee(oe.value):be?E<oe.value:z<new Date(oe.value))}if((Q||le)&&(Z(!!Q,q.message,oe.message,gi.max,gi.min),!r))return R(C[A].message),C}if((f||p)&&!V&&(Zn(E)||s&&Array.isArray(E))){const Q=us(f),le=us(p),q=!xn(Q.value)&&E.length>+Q.value,oe=!xn(le.value)&&E.length<+le.value;if((q||oe)&&(Z(q,Q.message,le.message),!r))return R(C[A].message),C}if(b&&!V&&Zn(E)){const{value:Q,message:le}=us(b);if(Yf(Q)&&!E.match(Q)&&(C[A]={type:gi.pattern,message:le,ref:l,...$(gi.pattern,le)},!r))return R(le),C}if(x){if(xr(x)){const Q=await x(E,n),le=iC(Q,T);if(le&&(C[A]={...le,...$(gi.validate,le.message)},!r))return R(le.message),C}else if(Ft(x)){let Q={};for(const le in x){if(!Ln(Q)&&!r)break;const q=iC(await x[le](E,n),T,le);q&&(Q={...q,...$(le,q.message)},R(q.message),r&&(C[A]=Q))}if(!Ln(Q)&&(C[A]={ref:T,...Q},!r))return C}}return R(!0),C};const Kq={mode:Sr.onSubmit,reValidateMode:Sr.onChange,shouldFocusError:!0};function qq(e={}){let t={...Kq,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:xr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Ft(t.defaultValues)||Ft(t.values)?qt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:qt(o),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 m={...p};const v={array:ZT(),state:ZT()},b=t.criteriaMode===Sr.all,x=U=>J=>{clearTimeout(f),f=setTimeout(U,J)},A=async U=>{if(!t.disabled&&(p.isValid||m.isValid||U)){const J=t.resolver?Ln((await D()).errors):await V(r,!0);J!==n.isValid&&v.state.next({isValid:J})}},w=(U,J)=>{!t.disabled&&(p.isValidating||p.validatingFields||m.isValidating||m.validatingFields)&&((U||Array.from(u.mount)).forEach(ae=>{ae&&(J?dt(n.validatingFields,ae,J):zt(n.validatingFields,ae))}),v.state.next({validatingFields:n.validatingFields,isValidating:!Ln(n.validatingFields)}))},k=(U,J=[],ae,Se,_e=!0,ye=!0)=>{if(Se&&ae&&!t.disabled){if(l.action=!0,ye&&Array.isArray(Ee(r,U))){const Ce=ae(Ee(r,U),Se.argA,Se.argB);_e&&dt(r,U,Ce)}if(ye&&Array.isArray(Ee(n.errors,U))){const Ce=ae(Ee(n.errors,U),Se.argA,Se.argB);_e&&dt(n.errors,U,Ce),Hq(n.errors,U)}if((p.touchedFields||m.touchedFields)&&ye&&Array.isArray(Ee(n.touchedFields,U))){const Ce=ae(Ee(n.touchedFields,U),Se.argA,Se.argB);_e&&dt(n.touchedFields,U,Ce)}(p.dirtyFields||m.dirtyFields)&&(n.dirtyFields=hs(o,s)),v.state.next({name:U,isDirty:Z(U,J),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else dt(s,U,J)},E=(U,J)=>{dt(n.errors,U,J),v.state.next({errors:n.errors})},T=U=>{n.errors=U,v.state.next({errors:n.errors,isValid:!1})},R=(U,J,ae,Se)=>{const _e=Ee(r,U);if(_e){const ye=Ee(s,U,jt(ae)?Ee(o,U):ae);jt(ye)||Se&&Se.defaultChecked||J?dt(s,U,J?ye:JT(_e._f)):q(U,ye),l.mount&&A()}},C=(U,J,ae,Se,_e)=>{let ye=!1,Ce=!1;const Ue={name:U};if(!t.disabled){if(!ae||Se){(p.isDirty||m.isDirty)&&(Ce=n.isDirty,n.isDirty=Ue.isDirty=Z(),ye=Ce!==Ue.isDirty);const Qe=yi(Ee(o,U),J);Ce=!!Ee(n.dirtyFields,U),Qe?zt(n.dirtyFields,U):dt(n.dirtyFields,U,!0),Ue.dirtyFields=n.dirtyFields,ye=ye||(p.dirtyFields||m.dirtyFields)&&Ce!==!Qe}if(ae){const Qe=Ee(n.touchedFields,U);Qe||(dt(n.touchedFields,U,ae),Ue.touchedFields=n.touchedFields,ye=ye||(p.touchedFields||m.touchedFields)&&Qe!==ae)}ye&&_e&&v.state.next(Ue)}return ye?Ue:{}},I=(U,J,ae,Se)=>{const _e=Ee(n.errors,U),ye=(p.isValid||m.isValid)&&Gn(J)&&n.isValid!==J;if(t.delayError&&ae?(d=x(()=>E(U,ae)),d(t.delayError)):(clearTimeout(f),d=null,ae?dt(n.errors,U,ae):zt(n.errors,U)),(ae?!yi(_e,ae):_e)||!Ln(Se)||ye){const Ce={...Se,...ye&&Gn(J)?{isValid:J}:{},errors:n.errors,name:U};n={...n,...Ce},v.state.next(Ce)}},D=async U=>{w(U,!0);const J=await t.resolver(s,t.context,zq(U||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(U),J},L=async U=>{const{errors:J}=await D(U);if(U)for(const ae of U){const Se=Ee(J,ae);Se?dt(n.errors,ae,Se):zt(n.errors,ae)}else n.errors=J;return J},V=async(U,J,ae={valid:!0})=>{for(const Se in U){const _e=U[Se];if(_e){const{_f:ye,...Ce}=_e;if(ye){const Ue=u.array.has(ye.name),Qe=_e._f&&Bq(_e._f);Qe&&p.validatingFields&&w([ye.name],!0);const gt=await oC(_e,u.disabled,s,b,t.shouldUseNativeValidation&&!J,Ue);if(Qe&&p.validatingFields&&w([ye.name]),gt[ye.name]&&(ae.valid=!1,J))break;!J&&(Ee(gt,ye.name)?Ue?Gq(n.errors,gt,ye.name):dt(n.errors,ye.name,gt[ye.name]):zt(n.errors,ye.name))}!Ln(Ce)&&await V(Ce,J,ae)}}return ae.valid},$=()=>{for(const U of u.unMount){const J=Ee(r,U);J&&(J._f.refs?J._f.refs.every(ae=>!uy(ae)):!uy(J._f.ref))&&fe(U)}u.unMount=new Set},Z=(U,J)=>!t.disabled&&(U&&J&&dt(s,U,J),!yi(P(),o)),Q=(U,J,ae)=>YI(U,u,{...l.mount?s:jt(J)?o:Zn(U)?{[U]:J}:J},ae,J),le=U=>w_(Ee(l.mount?s:o,U,t.shouldUnregister?Ee(o,U,[]):[])),q=(U,J,ae={})=>{const Se=Ee(r,U);let _e=J;if(Se){const ye=Se._f;ye&&(!ye.disabled&&dt(s,U,tO(J,ye)),_e=Zf(ye.ref)&&xn(J)?"":J,QI(ye.ref)?[...ye.ref.options].forEach(Ce=>Ce.selected=_e.includes(Ce.value)):ye.refs?gu(ye.ref)?ye.refs.forEach(Ce=>{(!Ce.defaultChecked||!Ce.disabled)&&(Array.isArray(_e)?Ce.checked=!!_e.find(Ue=>Ue===Ce.value):Ce.checked=_e===Ce.value||!!_e)}):ye.refs.forEach(Ce=>Ce.checked=Ce.value===_e):N_(ye.ref)?ye.ref.value="":(ye.ref.value=_e,ye.ref.type||v.state.next({name:U,values:qt(s)})))}(ae.shouldDirty||ae.shouldTouch)&&C(U,_e,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&be(U)},oe=(U,J,ae)=>{for(const Se in J){if(!J.hasOwnProperty(Se))return;const _e=J[Se],ye=U+"."+Se,Ce=Ee(r,ye);(u.array.has(U)||Ft(_e)||Ce&&!Ce._f)&&!ta(_e)?oe(ye,_e,ae):q(ye,_e,ae)}},z=(U,J,ae={})=>{const Se=Ee(r,U),_e=u.array.has(U),ye=qt(J);dt(s,U,ye),_e?(v.array.next({name:U,values:qt(s)}),(p.isDirty||p.dirtyFields||m.isDirty||m.dirtyFields)&&ae.shouldDirty&&v.state.next({name:U,dirtyFields:hs(o,s),isDirty:Z(U,ye)})):Se&&!Se._f&&!xn(ye)?oe(U,ye,ae):q(U,ye,ae),nC(U,u)&&v.state.next({...n,name:U}),v.state.next({name:l.mount?U:void 0,values:qt(s)})},ee=async U=>{l.mount=!0;const J=U.target;let ae=J.name,Se=!0;const _e=Ee(r,ae),ye=Qe=>{Se=Number.isNaN(Qe)||ta(Qe)&&isNaN(Qe.getTime())||yi(Qe,Ee(s,ae,Qe))},Ce=eC(t.mode),Ue=eC(t.reValidateMode);if(_e){let Qe,gt;const _a=J.type?JT(_e._f):qI(U),Nr=U.type===Wf.BLUR||U.type===Wf.FOCUS_OUT,rp=!Vq(_e._f)&&!t.resolver&&!Ee(n.errors,ae)&&!_e._f.deps||$q(Nr,Ee(n.touchedFields,ae),n.isSubmitted,Ue,Ce),Ri=nC(ae,u,Nr);dt(s,ae,_a),Nr?(!J||!J.readOnly)&&(_e._f.onBlur&&_e._f.onBlur(U),d&&d(0)):_e._f.onChange&&_e._f.onChange(U);const ki=C(ae,_a,Nr),Jr=!Ln(ki)||Ri;if(!Nr&&v.state.next({name:ae,type:U.type,values:qt(s)}),rp)return(p.isValid||m.isValid)&&(t.mode==="onBlur"?Nr&&A():Nr||A()),Jr&&v.state.next({name:ae,...Ri?{}:ki});if(!Nr&&Ri&&v.state.next({...n}),t.resolver){const{errors:Co}=await D([ae]);if(ye(_a),Se){const Ro=rC(n.errors,r,ae),Cu=rC(Co,r,Ro.name||ae);Qe=Cu.error,ae=Cu.name,gt=Ln(Co)}}else w([ae],!0),Qe=(await oC(_e,u.disabled,s,b,t.shouldUseNativeValidation))[ae],w([ae]),ye(_a),Se&&(Qe?gt=!1:(p.isValid||m.isValid)&&(gt=await V(r,!0)));Se&&(_e._f.deps&&(!Array.isArray(_e._f.deps)||_e._f.deps.length>0)&&be(_e._f.deps),I(ae,gt,Qe,ki))}},W=(U,J)=>{if(Ee(n.errors,J)&&U.focus)return U.focus(),1},be=async(U,J={})=>{let ae,Se;const _e=wc(U);if(t.resolver){const ye=await L(jt(U)?U:_e);ae=Ln(ye),Se=U?!_e.some(Ce=>Ee(ye,Ce)):ae}else U?(Se=(await Promise.all(_e.map(async ye=>{const Ce=Ee(r,ye);return await V(Ce&&Ce._f?{[ye]:Ce}:Ce)}))).every(Boolean),!(!Se&&!n.isValid)&&A()):Se=ae=await V(r);return v.state.next({...!Zn(U)||(p.isValid||m.isValid)&&ae!==n.isValid?{}:{name:U},...t.resolver||!U?{isValid:ae}:{},errors:n.errors}),J.shouldFocus&&!Se&&Tc(r,W,U?_e:u.mount),Se},P=(U,J)=>{let ae={...l.mount?s:o};return J&&(ae=XI(J.dirtyFields?n.dirtyFields:n.touchedFields,ae)),jt(U)?ae:Zn(U)?Ee(ae,U):U.map(Se=>Ee(ae,Se))},ie=(U,J)=>({invalid:!!Ee((J||n).errors,U),isDirty:!!Ee((J||n).dirtyFields,U),error:Ee((J||n).errors,U),isValidating:!!Ee(n.validatingFields,U),isTouched:!!Ee((J||n).touchedFields,U)}),G=U=>{U&&wc(U).forEach(J=>zt(n.errors,J)),v.state.next({errors:U?n.errors:{}})},ne=(U,J,ae)=>{const Se=(Ee(r,U,{_f:{}})._f||{}).ref,_e=Ee(n.errors,U)||{},{ref:ye,message:Ce,type:Ue,...Qe}=_e;dt(n.errors,U,{...Qe,...J,ref:Se}),v.state.next({name:U,errors:n.errors,isValid:!1}),ae&&ae.shouldFocus&&Se&&Se.focus&&Se.focus()},ue=(U,J)=>xr(U)?v.state.subscribe({next:ae=>"values"in ae&&U(Q(void 0,J),ae)}):Q(U,J,!0),pe=U=>v.state.subscribe({next:J=>{Fq(U.name,J.name,U.exact)&&Uq(J,U.formState||p,fn,U.reRenderRoot)&&U.callback({values:{...s},...n,...J,defaultValues:o})}}).unsubscribe,ve=U=>(l.mount=!0,m={...m,...U.formState},pe({...U,formState:m})),fe=(U,J={})=>{for(const ae of U?wc(U):u.mount)u.mount.delete(ae),u.array.delete(ae),J.keepValue||(zt(r,ae),zt(s,ae)),!J.keepError&&zt(n.errors,ae),!J.keepDirty&&zt(n.dirtyFields,ae),!J.keepTouched&&zt(n.touchedFields,ae),!J.keepIsValidating&&zt(n.validatingFields,ae),!t.shouldUnregister&&!J.keepDefaultValue&&zt(o,ae);v.state.next({values:qt(s)}),v.state.next({...n,...J.keepDirty?{isDirty:Z()}:{}}),!J.keepIsValid&&A()},xe=({disabled:U,name:J})=>{(Gn(U)&&l.mount||U||u.disabled.has(J))&&(U?u.disabled.add(J):u.disabled.delete(J))},je=(U,J={})=>{let ae=Ee(r,U);const Se=Gn(J.disabled)||Gn(t.disabled);return dt(r,U,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:U}},name:U,mount:!0,...J}}),u.mount.add(U),ae?xe({disabled:Gn(J.disabled)?J.disabled:t.disabled,name:U}):R(U,!0,J.value),{...Se?{disabled:J.disabled||t.disabled}:{},...t.progressive?{required:!!J.required,min:uc(J.min),max:uc(J.max),minLength:uc(J.minLength),maxLength:uc(J.maxLength),pattern:uc(J.pattern)}:{},name:U,onChange:ee,onBlur:ee,ref:_e=>{if(_e){je(U,J),ae=Ee(r,U);const ye=jt(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,Ce=Lq(ye),Ue=ae._f.refs||[];if(Ce?Ue.find(Qe=>Qe===ye):ye===ae._f.ref)return;dt(r,U,{_f:{...ae._f,...Ce?{refs:[...Ue.filter(uy),ye,...Array.isArray(Ee(o,U))?[{}]:[]],ref:{type:ye.type,name:U}}:{ref:ye}}}),R(U,!1,void 0,ye)}else ae=Ee(r,U,{}),ae._f&&(ae._f.mount=!1),(t.shouldUnregister||J.shouldUnregister)&&!(WI(u.array,U)&&l.action)&&u.unMount.add(U)}}},Ve=()=>t.shouldFocusError&&Tc(r,W,u.mount),Xe=U=>{Gn(U)&&(v.state.next({disabled:U}),Tc(r,(J,ae)=>{const Se=Ee(r,ae);Se&&(J.disabled=Se._f.disabled||U,Array.isArray(Se._f.refs)&&Se._f.refs.forEach(_e=>{_e.disabled=Se._f.disabled||U}))},0,!1))},nt=(U,J)=>async ae=>{let Se;ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let _e=qt(s);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:ye,values:Ce}=await D();n.errors=ye,_e=qt(Ce)}else await V(r);if(u.disabled.size)for(const ye of u.disabled)zt(_e,ye);if(zt(n.errors,"root"),Ln(n.errors)){v.state.next({errors:{}});try{await U(_e,ae)}catch(ye){Se=ye}}else J&&await J({...n.errors},ae),Ve(),setTimeout(Ve);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ln(n.errors)&&!Se,submitCount:n.submitCount+1,errors:n.errors}),Se)throw Se},Xt=(U,J={})=>{Ee(r,U)&&(jt(J.defaultValue)?z(U,qt(Ee(o,U))):(z(U,J.defaultValue),dt(o,U,qt(J.defaultValue))),J.keepTouched||zt(n.touchedFields,U),J.keepDirty||(zt(n.dirtyFields,U),n.isDirty=J.defaultValue?Z(U,qt(Ee(o,U))):Z()),J.keepError||(zt(n.errors,U),p.isValid&&A()),v.state.next({...n}))},Rn=(U,J={})=>{const ae=U?qt(U):o,Se=qt(ae),_e=Ln(U),ye=_e?o:Se;if(J.keepDefaultValues||(o=ae),!J.keepValues){if(J.keepDirtyValues){const Ce=new Set([...u.mount,...Object.keys(hs(o,s))]);for(const Ue of Array.from(Ce))Ee(n.dirtyFields,Ue)?dt(ye,Ue,Ee(s,Ue)):z(Ue,Ee(ye,Ue))}else{if(A_&&jt(U))for(const Ce of u.mount){const Ue=Ee(r,Ce);if(Ue&&Ue._f){const Qe=Array.isArray(Ue._f.refs)?Ue._f.refs[0]:Ue._f.ref;if(Zf(Qe)){const gt=Qe.closest("form");if(gt){gt.reset();break}}}}if(J.keepFieldsRef)for(const Ce of u.mount)z(Ce,Ee(ye,Ce));else r={}}s=t.shouldUnregister?J.keepDefaultValues?qt(o):{}:qt(ye),v.array.next({values:{...ye}}),v.state.next({values:{...ye}})}u={mount:J.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!J.keepIsValid||!!J.keepDirtyValues,l.watch=!!t.shouldUnregister,v.state.next({submitCount:J.keepSubmitCount?n.submitCount:0,isDirty:_e?!1:J.keepDirty?n.isDirty:!!(J.keepDefaultValues&&!yi(U,o)),isSubmitted:J.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:_e?{}:J.keepDirtyValues?J.keepDefaultValues&&s?hs(o,s):n.dirtyFields:J.keepDefaultValues&&U?hs(o,U):J.keepDirty?n.dirtyFields:{},touchedFields:J.keepTouched?n.touchedFields:{},errors:J.keepErrors?n.errors:{},isSubmitSuccessful:J.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Ci=(U,J)=>Rn(xr(U)?U(s):U,J),To=(U,J={})=>{const ae=Ee(r,U),Se=ae&&ae._f;if(Se){const _e=Se.refs?Se.refs[0]:Se.ref;_e.focus&&(_e.focus(),J.shouldSelect&&xr(_e.select)&&_e.select())}},fn=U=>{n={...n,...U}},tl={control:{register:je,unregister:fe,getFieldState:ie,handleSubmit:nt,setError:ne,_subscribe:pe,_runSchema:D,_focusError:Ve,_getWatch:Q,_getDirty:Z,_setValid:A,_setFieldArray:k,_setDisabledField:xe,_setErrors:T,_getFieldArray:le,_reset:Rn,_resetDefaultValues:()=>xr(t.defaultValues)&&t.defaultValues().then(U=>{Ci(U,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:$,_disableForm:Xe,_subjects:v,_proxyFormState:p,get _fields(){return r},get _formValues(){return s},get _state(){return l},set _state(U){l=U},get _defaultValues(){return o},get _names(){return u},set _names(U){u=U},get _formState(){return n},get _options(){return t},set _options(U){t={...t,...U}}},subscribe:ve,trigger:be,register:je,handleSubmit:nt,watch:ue,setValue:z,getValues:P,reset:Ci,resetField:Xt,clearErrors:G,unregister:fe,setError:ne,setFocus:To,getFieldState:ie};return{...tl,formControl:tl}}function Wq(e={}){const t=Oe.useRef(void 0),n=Oe.useRef(void 0),[r,o]=Oe.useState({isDirty:!1,isValidating:!1,isLoading:xr(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:xr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!xr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=qq(e);t.current={...u,formState:r}}const s=t.current.control;return s._options=e,R_(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(u=>({...u,isReady:!0})),s._formState.isReady=!0,l},[s]),Oe.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),Oe.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),Oe.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),Oe.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),Oe.useEffect(()=>{if(s._proxyFormState.isDirty){const l=s._getDirty();l!==r.isDirty&&s._subjects.state.next({isDirty:l})}},[s,r.isDirty]),Oe.useEffect(()=>{e.values&&!yi(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),n.current=e.values,o(l=>({...l}))):s._resetDefaultValues()},[s,e.values]),Oe.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=ZI(r,s),t.current}const aC=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ee(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},wv=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?aC(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>aC(o,n,e))}},sC=(e,t)=>{t.shouldUseNativeValidation&&wv(e,t);const n={};for(const r in e){const o=Ee(t.fields,r),s=Object.assign(e[r]||{},{ref:o&&o.ref});if(Zq(t.names||Object.keys(e),r)){const l=Object.assign({},Ee(n,r));dt(l,"root",s),dt(n,r,l)}else dt(n,r,s)}return n},Zq=(e,t)=>{const n=lC(t);return e.some(r=>lC(r).match(`^${n}\\.\\d+`))};function lC(e){return e.replace(/\]|\[/g,"")}const Yq=e=>{const t=S.useId(),n=S.useMemo(()=>({id:t}),[t]);return y.jsx(rO,{value:n,children:y.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},rO=S.createContext({}),iO=S.createContext({}),Xq=({...e})=>{const t=S.useMemo(()=>({name:e.name}),[e.name]);return y.jsx(iO,{value:t,children:y.jsx(Dq,{...e})})},bo=()=>{const e=S.useContext(iO),t=S.useContext(rO),{getFieldState:n,formState:r}=vo(),o=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`,...o}},oO=_n("",{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 fo=(e=>(e.DEFAULT="default",e.INVISIBLE="invisible",e))(fo||{});const Ws=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...o})=>y.jsx("input",{className:oO({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...o}),Qq=_n("",{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"}}),cC=({validationStyleEnabled:e=!1,label:t,size:n,color:r,name:o,variant:s,className:l,...u})=>y.jsx("input",{type:"checkbox",className:Qq({variant:s,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:l}),...u}),Jq=e=>{const{label:t,name:n,id:r}=e;return t?y.jsxs("label",{htmlFor:r??n,className:"flex items-center gap-x-4 font-medium text-sm cursor-pointer",children:[y.jsx(cC,{id:r??n,...e}),t]}):y.jsx(cC,{id:r??n,...e})},e9=e=>{const[t,n]=S.useState(!1),r=s=>{s.preventDefault(),s.stopPropagation(),n(l=>!l)},o=t?f$:u$;return y.jsxs("div",{className:"relative",children:[y.jsx(Ws,{...e,"aria-label":"password",type:t?"text":"password"}),y.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:y.jsx(o,{className:"text-neutral mr-2 inline-block",size:20})})]})},aO=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>y.jsx("textarea",{className:me("resize-none",oO({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),sO=({value:e="",onCancel:t,onSave:n,onClick:r,children:o,isDisabled:s,...l})=>{const[u,d]=S.useState(!1),f=S.useRef(null),p=x=>{x.stopPropagation(),d(!1),n()},m=x=>{x.stopPropagation(),d(!1),t()},v=!e||e===""?"-":e,b=S.useCallback(x=>{const A=window.getSelection();A&&A.toString().trim()!==""||f.current&&!f.current.contains(x.target)&&(d(!1),n())},[n]);return S.useEffect(()=>(u?document.addEventListener("click",b):document.removeEventListener("click",b),()=>document.removeEventListener("click",b)),[b,u]),y.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:x=>{d(!0),r?.(x)},ref:f,...l,children:[y.jsxs("div",{className:me("flex flex-1 gap-2",u?"display":"hidden"),children:[o,y.jsx(lt,{label:"Save",variant:ot.HOVERABLE,size:wn.ICON_SM,color:it.TEXT,Icon:Us,onClick:p,disabled:s,className:"!text-current",role:"button",tabIndex:0,"aria-label":"Save changes","data-testid":"editable-field-save-button"}),y.jsx(lt,{label:"Cancel",color:it.TEXT,variant:ot.HOVERABLE,className:"!text-current",size:wn.ICON_SM,Icon:ga,onClick:m,disabled:s,role:"button",tabIndex:0,"aria-label":"Cancel changes","data-testid":"editable-field-cancel-button"})]},String(u)),y.jsxs("div",{className:me("flex flex-1 gap-2",u?"hidden":"display"),children:[y.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:v}),y.jsx(lt,{label:"Edit",Icon:F1,color:it.TEXT,variant:ot.HOVERABLE,size:wn.ICON_SM,className:"invisible !text-current group-hover/editable-field:visible",disabled:s,onClick:x=>{x.stopPropagation(),d(!0)}})]})]})},lO=({onSave:e,onCancel:t,ref:n,...r})=>{const o=S.useRef(null),s=()=>{e?.(o.current?.value??"")},l=()=>{o.current&&(o.current.value=o.current.defaultValue??""),t?.()};S.useImperativeHandle(n,()=>o.current);const u=S.useMemo(()=>r.value??o.current?.value??r.defaultValue,[r.value,r.defaultValue,o.current?.value]);return y.jsx(sO,{value:u,onCancel:l,onSave:s,children:y.jsx(Ws,{ref:o,...r})})},uC=24,dC=12,O_=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:o,...s})=>{const l=S.useRef(null);S.useImperativeHandle(o,()=>l.current);const u=()=>{const p=l.current;if(!p||!t)return;const m=p.style;m.height="auto";const v=p.scrollHeight,b=uC*r+dC,x=uC+dC;m.height=Math.max(Math.min(v,b),x)+"px"};S.useEffect(()=>{u()},[s.value,s.defaultValue,u]);const d=p=>{n?.(p),u()},f=p=>{l.current=p,p&&u()};return y.jsx(aO,{ref:f,onChange:d,className:me("overflow-y-auto",t?"resize-none":"",e),...s})},cO=({onSave:e,onCancel:t,ref:n,...r})=>{const o=S.useRef(null);S.useImperativeHandle(n,()=>o.current);const s=()=>{e?.(o.current?.value??"")},l=()=>{o.current&&(o.current.value=o.current.defaultValue??""),t?.()},u=r.value??o.current?.value??r.defaultValue??"";return y.jsx(sO,{value:u,onCancel:l,onSave:s,onClick:d=>{d.preventDefault(),d.stopPropagation()},children:y.jsx(O_,{className:"leading-6",ref:o,onClick:d=>{d.preventDefault(),d.stopPropagation()},...r})})},uO=S.createContext(null),Lh=()=>{const e=S.useContext(uO);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},t9=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:o,children:s,dir:l,...u})=>{const[d,f]=S.useState(t??[]),[p,m]=S.useState(""),[v,b]=S.useState(!1),[x,A]=S.useState(-1),w=S.useRef(null),[k,E]=S.useState(!1),[T,R]=S.useState("");S.useEffect(()=>{e&&f(e)},[e]);const C=S.useCallback(V=>{if(d.includes(V)){const $=d.filter(Z=>Z!==V);f($),n?.($)}else{const $=[...d,V];f($),n?.($)}},[d]),I=S.useCallback(V=>{V.preventDefault();const $=V.currentTarget,Z=$.value.substring($.selectionStart??0,$.selectionEnd??0);R(Z),E(Z===p)},[p]),D=S.useCallback(V=>{V.stopPropagation();const $=w.current;if(!$)return;const Z=()=>{const q=x+1;A(q>d.length-1?r?0:-1:q)},Q=()=>{const q=x-1;A(q<0?d.length-1:q)},le=()=>{const q=x-1<=0?d.length-1===0?-1:0:x-1;A(q)};switch(V.key){case"ArrowLeft":l==="rtl"?d.length>0&&(x!==-1||r)&&Z():d.length>0&&$.selectionStart===0&&Q();break;case"ArrowRight":l==="rtl"?d.length>0&&$.selectionStart===0&&Q():d.length>0&&(x!==-1||r)&&Z();break;case"Backspace":case"Delete":d.length>0&&(x!==-1&&x<d.length?(C(d[x]),le()):($.selectionStart===0&&T===p||k)&&C(d[d.length-1]));break;case"Enter":b(!0);break;case"Escape":x!==-1?A(-1):v&&b(!1);break}},[d,p,x,r]),L=S.useMemo(()=>({value:d,onValueChange:C,open:v,setOpen:b,inputValue:p,setInputValue:m,activeIndex:x,setActiveIndex:A,ref:w,handleSelect:I}),[d,C,v,b,p,m,x,A,w,I]);return y.jsx(uO,{value:L,children:y.jsx(Vk,{onKeyDown:D,className:me("flex w-full flex-col gap-2 overflow-visible bg-transparent",o),dir:l,...u,children:s})})},n9=({className:e,getBadgeValue:t=s=>s,validationStyleEnabled:n=!1,children:r,...o})=>{const{value:s,onValueChange:l,activeIndex:u}=Lh(),d=S.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return y.jsxs("div",{className:me("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),...o,children:[s.length>0&&y.jsx("div",{className:"flex w-full flex-wrap gap-1",children:s.map((f,p)=>y.jsxs(dH,{className:me("flex items-center gap-1 rounded-xl px-1",u===p&&"ring-muted-foreground ring-2"),color:rk.TEXT,children:[y.jsx("span",{className:"text-xs",children:t(f)}),y.jsxs("button",{"aria-label":`Remove ${f} option`,"aria-roledescription":"button to remove option",onMouseDown:d,onClick:()=>l(f),children:[y.jsxs("span",{className:"sr-only",children:["Remove ",f," option"]}),y.jsx(ga,{className:"size-4 cursor-pointer"})]})]},f))}),r]})},r9=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:o,activeIndex:s,setActiveIndex:l,handleSelect:u,ref:d}=Lh();return y.jsx(Vf.Input,{...t,tabIndex:0,ref:d,value:r,onValueChange:s===-1?o:void 0,onSelect:u,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:me("outline-hidden ml-2 flex-1 cursor-pointer",e,s!==-1&&"caret-transparent")})},i9=({children:e})=>{const{open:t}=Lh();return y.jsx("div",{className:"relative",children:t&&e})},o9=({className:e,children:t})=>y.jsxs(Vf.List,{className:me("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,y.jsx(Vf.Empty,{children:y.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),a9=({className:e,value:t,children:n,...r})=>{const{value:o,onValueChange:s,setInputValue:l}=Lh(),u=S.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]),d=o.includes(t);return y.jsxs(Vf.Item,{...r,onSelect:()=>{s(t),l("")},className:me("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&&y.jsx(Us,{className:"size-4"})]})},yn=t9;yn.Trigger=n9;yn.Input=r9;yn.Content=i9;yn.List=o9;yn.Item=a9;const s9=({className:e,children:t,...n})=>y.jsxs("i",{className:me("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),Tv=({htmlFor:e,required:t=!1,disabled:n=!1,className:r,children:o,...s})=>y.jsxs("label",{className:me("text-sm font-medium leading-none select-none","peer-disabled:cursor-not-allowed peer-disabled:opacity-70",n&&"cursor-not-allowed opacity-70 text-muted-foreground",r),htmlFor:e,...s,children:[o,t&&y.jsx("span",{className:"text-destructive ml-1","aria-label":"required",title:"This field is required",children:"*"})]}),l9=({className:e,...t})=>{const{error:n,formItemId:r}=bo();return y.jsx(Tv,{className:me("mb-2",n&&"text-error",e),htmlFor:r,...t})},c9=({isRequired:e})=>e?y.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):y.jsx(y.Fragment,{}),dO=({children:e,isRequired:t,info:n,htmlFor:r,className:o})=>y.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&y.jsxs(l9,{htmlFor:r,id:`${r}-label`,className:Sh("font-bold",o),children:[e,y.jsx(c9,{isRequired:t})]}),n&&y.jsx(s9,{content:n})]});function fC(e,[t,n]){return Math.min(n,Math.max(t,e))}function fO(e){const t=e+"CollectionProvider",[n,r]=ou(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=A=>{const{scope:w,children:k}=A,E=Oe.useRef(null),T=Oe.useRef(new Map).current;return y.jsx(o,{scope:w,itemMap:T,collectionRef:E,children:k})};l.displayName=t;const u=e+"CollectionSlot",d=Ns(u),f=Oe.forwardRef((A,w)=>{const{scope:k,children:E}=A,T=s(u,k),R=Ct(w,T.collectionRef);return y.jsx(d,{ref:R,children:E})});f.displayName=u;const p=e+"CollectionItemSlot",m="data-radix-collection-item",v=Ns(p),b=Oe.forwardRef((A,w)=>{const{scope:k,children:E,...T}=A,R=Oe.useRef(null),C=Ct(w,R),I=s(p,k);return Oe.useEffect(()=>(I.itemMap.set(R,{ref:R,...T}),()=>void I.itemMap.delete(R))),y.jsx(v,{[m]:"",ref:C,children:E})});b.displayName=p;function x(A){const w=s(e+"CollectionConsumer",A);return Oe.useCallback(()=>{const E=w.collectionRef.current;if(!E)return[];const T=Array.from(E.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((I,D)=>T.indexOf(I.ref.current)-T.indexOf(D.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:f,ItemSlot:b},x,r]}var u9=S.createContext(void 0);function d9(e){const t=S.useContext(u9);return e||t||"ltr"}const f9=["top","right","bottom","left"],ho=Math.min,qn=Math.max,Xf=Math.round,Qd=Math.floor,Kr=e=>({x:e,y:e}),h9={left:"right",right:"left",bottom:"top",top:"bottom"},p9={start:"end",end:"start"};function Cv(e,t,n){return qn(e,ho(t,n))}function Si(e,t){return typeof e=="function"?e(t):e}function xi(e){return e.split("-")[0]}function Zs(e){return e.split("-")[1]}function D_(e){return e==="x"?"y":"x"}function L_(e){return e==="y"?"height":"width"}const m9=new Set(["top","bottom"]);function Fr(e){return m9.has(xi(e))?"y":"x"}function j_(e){return D_(Fr(e))}function g9(e,t,n){n===void 0&&(n=!1);const r=Zs(e),o=j_(e),s=L_(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Qf(l)),[l,Qf(l)]}function y9(e){const t=Qf(e);return[Rv(e),t,Rv(t)]}function Rv(e){return e.replace(/start|end/g,t=>p9[t])}const hC=["left","right"],pC=["right","left"],v9=["top","bottom"],b9=["bottom","top"];function _9(e,t,n){switch(e){case"top":case"bottom":return n?t?pC:hC:t?hC:pC;case"left":case"right":return t?v9:b9;default:return[]}}function E9(e,t,n,r){const o=Zs(e);let s=_9(xi(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(Rv)))),s}function Qf(e){return e.replace(/left|right|bottom|top/g,t=>h9[t])}function S9(e){return{top:0,right:0,bottom:0,left:0,...e}}function hO(e){return typeof e!="number"?S9(e):{top:e,right:e,bottom:e,left:e}}function Jf(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function mC(e,t,n){let{reference:r,floating:o}=e;const s=Fr(t),l=j_(t),u=L_(l),d=xi(t),f=s==="y",p=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,v=r[u]/2-o[u]/2;let b;switch(d){case"top":b={x:p,y:r.y-o.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-o.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Zs(t)){case"start":b[l]-=v*(n&&f?-1:1);break;case"end":b[l]+=v*(n&&f?-1:1);break}return b}const x9=async(e,t,n)=>{const{placement:r="bottom",strategy:o="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:o}),{x:p,y:m}=mC(f,r,d),v=r,b={},x=0;for(let A=0;A<u.length;A++){const{name:w,fn:k}=u[A],{x:E,y:T,data:R,reset:C}=await k({x:p,y:m,initialPlacement:r,placement:v,strategy:o,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:t}});p=E??p,m=T??m,b={...b,[w]:{...b[w],...R}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(f=C.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:m}=mC(f,v,d)),A=-1)}return{x:p,y:m,placement:v,strategy:o,middlewareData:b}};async function Fc(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:v=!1,padding:b=0}=Si(t,e),x=hO(b),w=u[v?m==="floating"?"reference":"floating":m],k=Jf(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:f,rootBoundary:p,strategy:d})),E=m==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),R=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},C=Jf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:T,strategy:d}):E);return{top:(k.top-C.top+x.top)/R.y,bottom:(C.bottom-k.bottom+x.bottom)/R.y,left:(k.left-C.left+x.left)/R.x,right:(C.right-k.right+x.right)/R.x}}const A9=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:f,padding:p=0}=Si(e,t)||{};if(f==null)return{};const m=hO(p),v={x:n,y:r},b=j_(o),x=L_(b),A=await l.getDimensions(f),w=b==="y",k=w?"top":"left",E=w?"bottom":"right",T=w?"clientHeight":"clientWidth",R=s.reference[x]+s.reference[b]-v[b]-s.floating[x],C=v[b]-s.reference[b],I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let D=I?I[T]:0;(!D||!await(l.isElement==null?void 0:l.isElement(I)))&&(D=u.floating[T]||s.floating[x]);const L=R/2-C/2,V=D/2-A[x]/2-1,$=ho(m[k],V),Z=ho(m[E],V),Q=$,le=D-A[x]-Z,q=D/2-A[x]/2+L,oe=Cv(Q,q,le),z=!d.arrow&&Zs(o)!=null&&q!==oe&&s.reference[x]/2-(q<Q?$:Z)-A[x]/2<0,ee=z?q<Q?q-Q:q-le:0;return{[b]:v[b]+ee,data:{[b]:oe,centerOffset:q-oe-ee,...z&&{alignmentOffset:ee}},reset:z}}}),w9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:A=!0,...w}=Si(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const k=xi(o),E=Fr(u),T=xi(u)===u,R=await(d.isRTL==null?void 0:d.isRTL(f.floating)),C=v||(T||!A?[Qf(u)]:y9(u)),I=x!=="none";!v&&I&&C.push(...E9(u,A,x,R));const D=[u,...C],L=await Fc(t,w),V=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&V.push(L[k]),m){const q=g9(o,l,R);V.push(L[q[0]],L[q[1]])}if($=[...$,{placement:o,overflows:V}],!V.every(q=>q<=0)){var Z,Q;const q=(((Z=s.flip)==null?void 0:Z.index)||0)+1,oe=D[q];if(oe&&(!(m==="alignment"?E!==Fr(oe):!1)||$.every(W=>Fr(W.placement)===E?W.overflows[0]>0:!0)))return{data:{index:q,overflows:$},reset:{placement:oe}};let z=(Q=$.filter(ee=>ee.overflows[0]<=0).sort((ee,W)=>ee.overflows[1]-W.overflows[1])[0])==null?void 0:Q.placement;if(!z)switch(b){case"bestFit":{var le;const ee=(le=$.filter(W=>{if(I){const be=Fr(W.placement);return be===E||be==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(be=>be>0).reduce((be,P)=>be+P,0)]).sort((W,be)=>W[1]-be[1])[0])==null?void 0:le[0];ee&&(z=ee);break}case"initialPlacement":z=u;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function gC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yC(e){return f9.some(t=>e[t]>=0)}const T9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Si(e,t);switch(r){case"referenceHidden":{const s=await Fc(t,{...o,elementContext:"reference"}),l=gC(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:yC(l)}}}case"escaped":{const s=await Fc(t,{...o,altBoundary:!0}),l=gC(s,n.floating);return{data:{escapedOffsets:l,escaped:yC(l)}}}default:return{}}}}},pO=new Set(["left","top"]);async function C9(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=xi(n),u=Zs(n),d=Fr(n)==="y",f=pO.has(l)?-1:1,p=s&&d?-1:1,m=Si(t,e);let{mainAxis:v,crossAxis:b,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof x=="number"&&(b=u==="end"?x*-1:x),d?{x:b*p,y:v*f}:{x:v*f,y:b*p}}const R9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:l,middlewareData:u}=t,d=await C9(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:l}}}}},k9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:w=>{let{x:k,y:E}=w;return{x:k,y:E}}},...d}=Si(e,t),f={x:n,y:r},p=await Fc(t,d),m=Fr(xi(o)),v=D_(m);let b=f[v],x=f[m];if(s){const w=v==="y"?"top":"left",k=v==="y"?"bottom":"right",E=b+p[w],T=b-p[k];b=Cv(E,b,T)}if(l){const w=m==="y"?"top":"left",k=m==="y"?"bottom":"right",E=x+p[w],T=x-p[k];x=Cv(E,x,T)}const A=u.fn({...t,[v]:b,[m]:x});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[v]:s,[m]:l}}}}}},N9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=Si(e,t),p={x:n,y:r},m=Fr(o),v=D_(m);let b=p[v],x=p[m];const A=Si(u,t),w=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const T=v==="y"?"height":"width",R=s.reference[v]-s.floating[T]+w.mainAxis,C=s.reference[v]+s.reference[T]-w.mainAxis;b<R?b=R:b>C&&(b=C)}if(f){var k,E;const T=v==="y"?"width":"height",R=pO.has(xi(o)),C=s.reference[m]-s.floating[T]+(R&&((k=l.offset)==null?void 0:k[m])||0)+(R?0:w.crossAxis),I=s.reference[m]+s.reference[T]+(R?0:((E=l.offset)==null?void 0:E[m])||0)-(R?w.crossAxis:0);x<C?x=C:x>I&&(x=I)}return{[v]:b,[m]:x}}}},I9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:u}=t,{apply:d=()=>{},...f}=Si(e,t),p=await Fc(t,f),m=xi(o),v=Zs(o),b=Fr(o)==="y",{width:x,height:A}=s.floating;let w,k;m==="top"||m==="bottom"?(w=m,k=v===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(k=m,w=v==="end"?"top":"bottom");const E=A-p.top-p.bottom,T=x-p.left-p.right,R=ho(A-p[w],E),C=ho(x-p[k],T),I=!t.middlewareData.shift;let D=R,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=E),I&&!v){const $=qn(p.left,0),Z=qn(p.right,0),Q=qn(p.top,0),le=qn(p.bottom,0);b?L=x-2*($!==0||Z!==0?$+Z:qn(p.left,p.right)):D=A-2*(Q!==0||le!==0?Q+le:qn(p.top,p.bottom))}await d({...t,availableWidth:L,availableHeight:D});const V=await l.getDimensions(u.floating);return x!==V.width||A!==V.height?{reset:{rects:!0}}:{}}}};function jh(){return typeof window<"u"}function Ys(e){return mO(e)?(e.nodeName||"").toLowerCase():"#document"}function Xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xr(e){var t;return(t=(mO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mO(e){return jh()?e instanceof Node||e instanceof Xn(e).Node:!1}function wr(e){return jh()?e instanceof Element||e instanceof Xn(e).Element:!1}function Wr(e){return jh()?e instanceof HTMLElement||e instanceof Xn(e).HTMLElement:!1}function vC(e){return!jh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xn(e).ShadowRoot}const O9=new Set(["inline","contents"]);function yu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!O9.has(o)}const D9=new Set(["table","td","th"]);function L9(e){return D9.has(Ys(e))}const j9=[":popover-open",":modal"];function Ph(e){return j9.some(t=>{try{return e.matches(t)}catch{return!1}})}const P9=["transform","translate","scale","rotate","perspective"],M9=["transform","translate","scale","rotate","perspective","filter"],z9=["paint","layout","strict","content"];function P_(e){const t=M_(),n=wr(e)?Tr(e):e;return P9.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)||M9.some(r=>(n.willChange||"").includes(r))||z9.some(r=>(n.contain||"").includes(r))}function B9(e){let t=po(e);for(;Wr(t)&&!Ds(t);){if(P_(t))return t;if(Ph(t))return null;t=po(t)}return null}function M_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const V9=new Set(["html","body","#document"]);function Ds(e){return V9.has(Ys(e))}function Tr(e){return Xn(e).getComputedStyle(e)}function Mh(e){return wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function po(e){if(Ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vC(e)&&e.host||Xr(e);return vC(t)?t.host:t}function gO(e){const t=po(e);return Ds(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wr(t)&&yu(t)?t:gO(t)}function $c(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=gO(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=Xn(o);if(s){const u=kv(l);return t.concat(l,l.visualViewport||[],yu(o)?o:[],u&&n?$c(u):[])}return t.concat(o,$c(o,[],n))}function kv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yO(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Wr(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=Xf(n)!==s||Xf(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function z_(e){return wr(e)?e:e.contextElement}function As(e){const t=z_(e);if(!Wr(t))return Kr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=yO(t);let l=(s?Xf(n.width):n.width)/r,u=(s?Xf(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const U9=Kr(0);function vO(e){const t=Xn(e);return!M_()||!t.visualViewport?U9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function F9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xn(e)?!1:t}function ua(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=z_(e);let l=Kr(1);t&&(r?wr(r)&&(l=As(r)):l=As(e));const u=F9(s,n,r)?vO(s):Kr(0);let d=(o.left+u.x)/l.x,f=(o.top+u.y)/l.y,p=o.width/l.x,m=o.height/l.y;if(s){const v=Xn(s),b=r&&wr(r)?Xn(r):r;let x=v,A=kv(x);for(;A&&r&&b!==x;){const w=As(A),k=A.getBoundingClientRect(),E=Tr(A),T=k.left+(A.clientLeft+parseFloat(E.paddingLeft))*w.x,R=k.top+(A.clientTop+parseFloat(E.paddingTop))*w.y;d*=w.x,f*=w.y,p*=w.x,m*=w.y,d+=T,f+=R,x=Xn(A),A=kv(x)}}return Jf({width:p,height:m,x:d,y:f})}function zh(e,t){const n=Mh(e).scrollLeft;return t?t.left+n:ua(Xr(e)).left+n}function bO(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zh(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function $9(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=Xr(r),u=t?Ph(t.floating):!1;if(r===l||u&&s)return n;let d={scrollLeft:0,scrollTop:0},f=Kr(1);const p=Kr(0),m=Wr(r);if((m||!m&&!s)&&((Ys(r)!=="body"||yu(l))&&(d=Mh(r)),Wr(r))){const b=ua(r);f=As(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}const v=l&&!m&&!s?bO(l,d):Kr(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+p.x+v.x,y:n.y*f.y-d.scrollTop*f.y+p.y+v.y}}function H9(e){return Array.from(e.getClientRects())}function G9(e){const t=Xr(e),n=Mh(e),r=e.ownerDocument.body,o=qn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=qn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+zh(e);const u=-n.scrollTop;return Tr(r).direction==="rtl"&&(l+=qn(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:u}}const bC=25;function K9(e,t){const n=Xn(e),r=Xr(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,u=0,d=0;if(o){s=o.width,l=o.height;const p=M_();(!p||p&&t==="fixed")&&(u=o.offsetLeft,d=o.offsetTop)}const f=zh(r);if(f<=0){const p=r.ownerDocument,m=p.body,v=getComputedStyle(m),b=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(r.clientWidth-m.clientWidth-b);x<=bC&&(s-=x)}else f<=bC&&(s+=f);return{width:s,height:l,x:u,y:d}}const q9=new Set(["absolute","fixed"]);function W9(e,t){const n=ua(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Wr(e)?As(e):Kr(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,d=o*s.x,f=r*s.y;return{width:l,height:u,x:d,y:f}}function _C(e,t,n){let r;if(t==="viewport")r=K9(e,n);else if(t==="document")r=G9(Xr(e));else if(wr(t))r=W9(t,n);else{const o=vO(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Jf(r)}function _O(e,t){const n=po(e);return n===t||!wr(n)||Ds(n)?!1:Tr(n).position==="fixed"||_O(n,t)}function Z9(e,t){const n=t.get(e);if(n)return n;let r=$c(e,[],!1).filter(u=>wr(u)&&Ys(u)!=="body"),o=null;const s=Tr(e).position==="fixed";let l=s?po(e):e;for(;wr(l)&&!Ds(l);){const u=Tr(l),d=P_(l);!d&&u.position==="fixed"&&(o=null),(s?!d&&!o:!d&&u.position==="static"&&!!o&&q9.has(o.position)||yu(l)&&!d&&_O(e,l))?r=r.filter(p=>p!==l):o=u,l=po(l)}return t.set(e,r),r}function Y9(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Ph(t)?[]:Z9(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((f,p)=>{const m=_C(t,p,o);return f.top=qn(m.top,f.top),f.right=ho(m.right,f.right),f.bottom=ho(m.bottom,f.bottom),f.left=qn(m.left,f.left),f},_C(t,u,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function X9(e){const{width:t,height:n}=yO(e);return{width:t,height:n}}function Q9(e,t,n){const r=Wr(t),o=Xr(t),s=n==="fixed",l=ua(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const d=Kr(0);function f(){d.x=zh(o)}if(r||!r&&!s)if((Ys(t)!=="body"||yu(o))&&(u=Mh(t)),r){const b=ua(t,!0,s,t);d.x=b.x+t.clientLeft,d.y=b.y+t.clientTop}else o&&f();s&&!r&&o&&f();const p=o&&!r&&!s?bO(o,u):Kr(0),m=l.left+u.scrollLeft-d.x-p.x,v=l.top+u.scrollTop-d.y-p.y;return{x:m,y:v,width:l.width,height:l.height}}function dy(e){return Tr(e).position==="static"}function EC(e,t){if(!Wr(e)||Tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xr(e)===n&&(n=n.ownerDocument.body),n}function EO(e,t){const n=Xn(e);if(Ph(e))return n;if(!Wr(e)){let o=po(e);for(;o&&!Ds(o);){if(wr(o)&&!dy(o))return o;o=po(o)}return n}let r=EC(e,t);for(;r&&L9(r)&&dy(r);)r=EC(r,t);return r&&Ds(r)&&dy(r)&&!P_(r)?n:r||B9(e)||n}const J9=async function(e){const t=this.getOffsetParent||EO,n=this.getDimensions,r=await n(e.floating);return{reference:Q9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function eW(e){return Tr(e).direction==="rtl"}const tW={convertOffsetParentRelativeRectToViewportRelativeRect:$9,getDocumentElement:Xr,getClippingRect:Y9,getOffsetParent:EO,getElementRects:J9,getClientRects:H9,getDimensions:X9,getScale:As,isElement:wr,isRTL:eW};function SO(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nW(e,t){let n=null,r;const o=Xr(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:m,width:v,height:b}=f;if(u||t(),!v||!b)return;const x=Qd(m),A=Qd(o.clientWidth-(p+v)),w=Qd(o.clientHeight-(m+b)),k=Qd(p),T={rootMargin:-x+"px "+-A+"px "+-w+"px "+-k+"px",threshold:qn(0,ho(1,d))||1};let R=!0;function C(I){const D=I[0].intersectionRatio;if(D!==d){if(!R)return l();D?l(!1,D):r=setTimeout(()=>{l(!1,1e-7)},1e3)}D===1&&!SO(f,e.getBoundingClientRect())&&l(),R=!1}try{n=new IntersectionObserver(C,{...T,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,T)}n.observe(e)}return l(!0),s}function rW(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=z_(e),p=o||s?[...f?$c(f):[],...$c(t)]:[];p.forEach(k=>{o&&k.addEventListener("scroll",n,{passive:!0}),s&&k.addEventListener("resize",n)});const m=f&&u?nW(f,n):null;let v=-1,b=null;l&&(b=new ResizeObserver(k=>{let[E]=k;E&&E.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var T;(T=b)==null||T.observe(t)})),n()}),f&&!d&&b.observe(f),b.observe(t));let x,A=d?ua(e):null;d&&w();function w(){const k=ua(e);A&&!SO(A,k)&&n(),A=k,x=requestAnimationFrame(w)}return n(),()=>{var k;p.forEach(E=>{o&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),m?.(),(k=b)==null||k.disconnect(),b=null,d&&cancelAnimationFrame(x)}}const iW=R9,oW=k9,aW=w9,sW=I9,lW=T9,SC=A9,cW=N9,uW=(e,t,n)=>{const r=new Map,o={platform:tW,...n},s={...o.platform,_c:r};return x9(e,t,{...o,platform:s})};var dW=typeof document<"u",fW=function(){},Cf=dW?S.useLayoutEffect:fW;function eh(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,o;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(!eh(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!eh(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function xO(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xC(e,t){const n=xO(e);return Math.round(t*n)/n}function fy(e){const t=S.useRef(e);return Cf(()=>{t.current=e}),t}function hW(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[p,m]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=S.useState(r);eh(v,r)||b(r);const[x,A]=S.useState(null),[w,k]=S.useState(null),E=S.useCallback(W=>{W!==I.current&&(I.current=W,A(W))},[]),T=S.useCallback(W=>{W!==D.current&&(D.current=W,k(W))},[]),R=s||x,C=l||w,I=S.useRef(null),D=S.useRef(null),L=S.useRef(p),V=d!=null,$=fy(d),Z=fy(o),Q=fy(f),le=S.useCallback(()=>{if(!I.current||!D.current)return;const W={placement:t,strategy:n,middleware:v};Z.current&&(W.platform=Z.current),uW(I.current,D.current,W).then(be=>{const P={...be,isPositioned:Q.current!==!1};q.current&&!eh(L.current,P)&&(L.current=P,ma.flushSync(()=>{m(P)}))})},[v,t,n,Z,Q]);Cf(()=>{f===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[f]);const q=S.useRef(!1);Cf(()=>(q.current=!0,()=>{q.current=!1}),[]),Cf(()=>{if(R&&(I.current=R),C&&(D.current=C),R&&C){if($.current)return $.current(R,C,le);le()}},[R,C,le,$,V]);const oe=S.useMemo(()=>({reference:I,floating:D,setReference:E,setFloating:T}),[E,T]),z=S.useMemo(()=>({reference:R,floating:C}),[R,C]),ee=S.useMemo(()=>{const W={position:n,left:0,top:0};if(!z.floating)return W;const be=xC(z.floating,p.x),P=xC(z.floating,p.y);return u?{...W,transform:"translate("+be+"px, "+P+"px)",...xO(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:be,top:P}},[n,u,z.floating,p.x,p.y]);return S.useMemo(()=>({...p,update:le,refs:oe,elements:z,floatingStyles:ee}),[p,le,oe,z,ee])}const pW=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?SC({element:r.current,padding:o}).fn(n):{}:r?SC({element:r,padding:o}).fn(n):{}}}},mW=(e,t)=>({...iW(e),options:[e,t]}),gW=(e,t)=>({...oW(e),options:[e,t]}),yW=(e,t)=>({...cW(e),options:[e,t]}),vW=(e,t)=>({...aW(e),options:[e,t]}),bW=(e,t)=>({...sW(e),options:[e,t]}),_W=(e,t)=>({...lW(e),options:[e,t]}),EW=(e,t)=>({...pW(e),options:[e,t]});var SW="Arrow",AO=S.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return y.jsx(Ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});AO.displayName=SW;var xW=AO;function AW(e){const[t,n]=S.useState(void 0);return un(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[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 B_="Popper",[wO,TO]=ou(B_),[wW,CO]=wO(B_),RO=e=>{const{__scopePopper:t,children:n}=e,[r,o]=S.useState(null);return y.jsx(wW,{scope:t,anchor:r,onAnchorChange:o,children:n})};RO.displayName=B_;var kO="PopperAnchor",NO=S.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=CO(kO,n),l=S.useRef(null),u=Ct(t,l),d=S.useRef(null);return S.useEffect(()=>{const f=d.current;d.current=r?.current||l.current,f!==d.current&&s.onAnchorChange(d.current)}),r?null:y.jsx(Ge.div,{...o,ref:u})});NO.displayName=kO;var V_="PopperContent",[TW,CW]=wO(V_),IO=S.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:x,...A}=e,w=CO(V_,n),[k,E]=S.useState(null),T=Ct(t,fe=>E(fe)),[R,C]=S.useState(null),I=AW(R),D=I?.width??0,L=I?.height??0,V=r+(s!=="center"?"-"+s:""),$=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Z=Array.isArray(f)?f:[f],Q=Z.length>0,le={padding:$,boundary:Z.filter(kW),altBoundary:Q},{refs:q,floatingStyles:oe,placement:z,isPositioned:ee,middlewareData:W}=hW({strategy:"fixed",placement:V,whileElementsMounted:(...fe)=>rW(...fe,{animationFrame:b==="always"}),elements:{reference:w.anchor},middleware:[mW({mainAxis:o+L,alignmentAxis:l}),d&&gW({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?yW():void 0,...le}),d&&vW({...le}),bW({...le,apply:({elements:fe,rects:xe,availableWidth:je,availableHeight:Ve})=>{const{width:Xe,height:nt}=xe.reference,Xt=fe.floating.style;Xt.setProperty("--radix-popper-available-width",`${je}px`),Xt.setProperty("--radix-popper-available-height",`${Ve}px`),Xt.setProperty("--radix-popper-anchor-width",`${Xe}px`),Xt.setProperty("--radix-popper-anchor-height",`${nt}px`)}}),R&&EW({element:R,padding:u}),NW({arrowWidth:D,arrowHeight:L}),v&&_W({strategy:"referenceHidden",...le})]}),[be,P]=LO(z),ie=Ar(x);un(()=>{ee&&ie?.()},[ee,ie]);const G=W.arrow?.x,ne=W.arrow?.y,ue=W.arrow?.centerOffset!==0,[pe,ve]=S.useState();return un(()=>{k&&ve(window.getComputedStyle(k).zIndex)},[k]),y.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:ee?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(TW,{scope:n,placedSide:be,onArrowChange:C,arrowX:G,arrowY:ne,shouldHideArrow:ue,children:y.jsx(Ge.div,{"data-side":be,"data-align":P,...A,ref:T,style:{...A.style,animation:ee?void 0:"none"}})})})});IO.displayName=V_;var OO="PopperArrow",RW={top:"bottom",right:"left",bottom:"top",left:"right"},DO=S.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=CW(OO,r),l=RW[s.placedSide];return y.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:y.jsx(xW,{...o,ref:n,style:{...o.style,display:"block"}})})});DO.displayName=OO;function kW(e){return e!==null}var NW=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,l=o.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,p]=LO(n),m={start:"0%",center:"50%",end:"100%"}[p],v=(o.arrow?.x??0)+u/2,b=(o.arrow?.y??0)+d/2;let x="",A="";return f==="bottom"?(x=l?m:`${v}px`,A=`${-d}px`):f==="top"?(x=l?m:`${v}px`,A=`${r.floating.height+d}px`):f==="right"?(x=`${-d}px`,A=l?m:`${b}px`):f==="left"&&(x=`${r.floating.width+d}px`,A=l?m:`${b}px`),{data:{x,y:A}}}});function LO(e){const[t,n="center"]=e.split("-");return[t,n]}var IW=RO,OW=NO,DW=IO,LW=DO;function jW(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var jO=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"}),PW="VisuallyHidden",U_=S.forwardRef((e,t)=>y.jsx(Ge.span,{...e,ref:t,style:{...jO,...e.style}}));U_.displayName=PW;var MW=[" ","Enter","ArrowUp","ArrowDown"],zW=[" ","Enter"],da="Select",[Bh,Vh,BW]=fO(da),[Xs]=ou(da,[BW,TO]),Uh=TO(),[VW,_o]=Xs(da),[UW,FW]=Xs(da),PO=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:l,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:m,disabled:v,required:b,form:x}=e,A=Uh(t),[w,k]=S.useState(null),[E,T]=S.useState(null),[R,C]=S.useState(!1),I=d9(f),[D,L]=zf({prop:r,defaultProp:o??!1,onChange:s,caller:da}),[V,$]=zf({prop:l,defaultProp:u,onChange:d,caller:da}),Z=S.useRef(null),Q=w?x||!!w.closest("form"):!0,[le,q]=S.useState(new Set),oe=Array.from(le).map(z=>z.props.value).join(";");return y.jsx(IW,{...A,children:y.jsxs(VW,{required:b,scope:t,trigger:w,onTriggerChange:k,valueNode:E,onValueNodeChange:T,valueNodeHasChildren:R,onValueNodeHasChildrenChange:C,contentId:hr(),value:V,onValueChange:$,open:D,onOpenChange:L,dir:I,triggerPointerDownPosRef:Z,disabled:v,children:[y.jsx(Bh.Provider,{scope:t,children:y.jsx(UW,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(z=>{q(ee=>new Set(ee).add(z))},[]),onNativeOptionRemove:S.useCallback(z=>{q(ee=>{const W=new Set(ee);return W.delete(z),W})},[]),children:n})}),Q?y.jsxs(sD,{"aria-hidden":!0,required:b,tabIndex:-1,name:p,autoComplete:m,value:V,onChange:z=>$(z.target.value),disabled:v,form:x,children:[V===void 0?y.jsx("option",{value:""}):null,Array.from(le)]},oe):null]})})};PO.displayName=da;var MO="SelectTrigger",zO=S.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Uh(n),l=_o(MO,n),u=l.disabled||r,d=Ct(t,l.onTriggerChange),f=Vh(n),p=S.useRef("touch"),[m,v,b]=cD(A=>{const w=f().filter(T=>!T.disabled),k=w.find(T=>T.value===l.value),E=uD(w,A,k);E!==void 0&&l.onValueChange(E.value)}),x=A=>{u||(l.onOpenChange(!0),b()),A&&(l.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})};return y.jsx(OW,{asChild:!0,...s,children:y.jsx(Ge.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":lD(l.value)?"":void 0,...o,ref:d,onClick:Je(o.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&x(A)}),onPointerDown:Je(o.onPointerDown,A=>{p.current=A.pointerType;const w=A.target;w.hasPointerCapture(A.pointerId)&&w.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(x(A),A.preventDefault())}),onKeyDown:Je(o.onKeyDown,A=>{const w=m.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&v(A.key),!(w&&A.key===" ")&&MW.includes(A.key)&&(x(),A.preventDefault())})})})});zO.displayName=MO;var BO="SelectValue",VO=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:l="",...u}=e,d=_o(BO,n),{onValueNodeHasChildrenChange:f}=d,p=s!==void 0,m=Ct(t,d.onValueNodeChange);return un(()=>{f(p)},[f,p]),y.jsx(Ge.span,{...u,ref:m,style:{pointerEvents:"none"},children:lD(d.value)?y.jsx(y.Fragment,{children:l}):s})});VO.displayName=BO;var $W="SelectIcon",UO=S.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return y.jsx(Ge.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});UO.displayName=$W;var HW="SelectPortal",FO=e=>y.jsx(Ah,{asChild:!0,...e});FO.displayName=HW;var fa="SelectContent",$O=S.forwardRef((e,t)=>{const n=_o(fa,e.__scopeSelect),[r,o]=S.useState();if(un(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?ma.createPortal(y.jsx(HO,{scope:e.__scopeSelect,children:y.jsx(Bh.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),s):null}return y.jsx(GO,{...e,ref:t})});$O.displayName=fa;var _r=10,[HO,Eo]=Xs(fa),GW="SelectContentImpl",KW=Ns("SelectContent.RemoveScroll"),GO=S.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:b,sticky:x,hideWhenDetached:A,avoidCollisions:w,...k}=e,E=_o(fa,n),[T,R]=S.useState(null),[C,I]=S.useState(null),D=Ct(t,fe=>R(fe)),[L,V]=S.useState(null),[$,Z]=S.useState(null),Q=Vh(n),[le,q]=S.useState(!1),oe=S.useRef(!1);S.useEffect(()=>{if(T)return bk(T)},[T]),uk();const z=S.useCallback(fe=>{const[xe,...je]=Q().map(nt=>nt.ref.current),[Ve]=je.slice(-1),Xe=document.activeElement;for(const nt of fe)if(nt===Xe||(nt?.scrollIntoView({block:"nearest"}),nt===xe&&C&&(C.scrollTop=0),nt===Ve&&C&&(C.scrollTop=C.scrollHeight),nt?.focus(),document.activeElement!==Xe))return},[Q,C]),ee=S.useCallback(()=>z([L,T]),[z,L,T]);S.useEffect(()=>{le&&ee()},[le,ee]);const{onOpenChange:W,triggerPointerDownPosRef:be}=E;S.useEffect(()=>{if(T){let fe={x:0,y:0};const xe=Ve=>{fe={x:Math.abs(Math.round(Ve.pageX)-(be.current?.x??0)),y:Math.abs(Math.round(Ve.pageY)-(be.current?.y??0))}},je=Ve=>{fe.x<=10&&fe.y<=10?Ve.preventDefault():T.contains(Ve.target)||W(!1),document.removeEventListener("pointermove",xe),be.current=null};return be.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",je,{capture:!0})}}},[T,W,be]),S.useEffect(()=>{const fe=()=>W(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[W]);const[P,ie]=cD(fe=>{const xe=Q().filter(Xe=>!Xe.disabled),je=xe.find(Xe=>Xe.ref.current===document.activeElement),Ve=uD(xe,fe,je);Ve&&setTimeout(()=>Ve.ref.current.focus())}),G=S.useCallback((fe,xe,je)=>{const Ve=!oe.current&&!je;(E.value!==void 0&&E.value===xe||Ve)&&(V(fe),Ve&&(oe.current=!0))},[E.value]),ne=S.useCallback(()=>T?.focus(),[T]),ue=S.useCallback((fe,xe,je)=>{const Ve=!oe.current&&!je;(E.value!==void 0&&E.value===xe||Ve)&&Z(fe)},[E.value]),pe=r==="popper"?Nv:KO,ve=pe===Nv?{side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:b,sticky:x,hideWhenDetached:A,avoidCollisions:w}:{};return y.jsx(HO,{scope:n,content:T,viewport:C,onViewportChange:I,itemRefCallback:G,selectedItem:L,onItemLeave:ne,itemTextRefCallback:ue,focusSelectedItem:ee,selectedItemText:$,position:r,isPositioned:le,searchRef:P,children:y.jsx(kb,{as:KW,allowPinchZoom:!0,children:y.jsx(Rb,{asChild:!0,trapped:E.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:Je(o,fe=>{E.trigger?.focus({preventScroll:!0}),fe.preventDefault()}),children:y.jsx(xh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:y.jsx(pe,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:fe=>fe.preventDefault(),...k,...ve,onPlaced:()=>q(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:Je(k.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 Ve=Q().filter(Xe=>!Xe.disabled).map(Xe=>Xe.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(Ve=Ve.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const Xe=fe.target,nt=Ve.indexOf(Xe);Ve=Ve.slice(nt+1)}setTimeout(()=>z(Ve)),fe.preventDefault()}})})})})})})});GO.displayName=GW;var qW="SelectItemAlignedPosition",KO=S.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=_o(fa,n),l=Eo(fa,n),[u,d]=S.useState(null),[f,p]=S.useState(null),m=Ct(t,D=>p(D)),v=Vh(n),b=S.useRef(!1),x=S.useRef(!0),{viewport:A,selectedItem:w,selectedItemText:k,focusSelectedItem:E}=l,T=S.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&A&&w&&k){const D=s.trigger.getBoundingClientRect(),L=f.getBoundingClientRect(),V=s.valueNode.getBoundingClientRect(),$=k.getBoundingClientRect();if(s.dir!=="rtl"){const Xe=$.left-L.left,nt=V.left-Xe,Xt=D.left-nt,Rn=D.width+Xt,Ci=Math.max(Rn,L.width),To=window.innerWidth-_r,fn=fC(nt,[_r,Math.max(_r,To-Ci)]);u.style.minWidth=Rn+"px",u.style.left=fn+"px"}else{const Xe=L.right-$.right,nt=window.innerWidth-V.right-Xe,Xt=window.innerWidth-D.right-nt,Rn=D.width+Xt,Ci=Math.max(Rn,L.width),To=window.innerWidth-_r,fn=fC(nt,[_r,Math.max(_r,To-Ci)]);u.style.minWidth=Rn+"px",u.style.right=fn+"px"}const Z=v(),Q=window.innerHeight-_r*2,le=A.scrollHeight,q=window.getComputedStyle(f),oe=parseInt(q.borderTopWidth,10),z=parseInt(q.paddingTop,10),ee=parseInt(q.borderBottomWidth,10),W=parseInt(q.paddingBottom,10),be=oe+z+le+W+ee,P=Math.min(w.offsetHeight*5,be),ie=window.getComputedStyle(A),G=parseInt(ie.paddingTop,10),ne=parseInt(ie.paddingBottom,10),ue=D.top+D.height/2-_r,pe=Q-ue,ve=w.offsetHeight/2,fe=w.offsetTop+ve,xe=oe+z+fe,je=be-xe;if(xe<=ue){const Xe=Z.length>0&&w===Z[Z.length-1].ref.current;u.style.bottom="0px";const nt=f.clientHeight-A.offsetTop-A.offsetHeight,Xt=Math.max(pe,ve+(Xe?ne:0)+nt+ee),Rn=xe+Xt;u.style.height=Rn+"px"}else{const Xe=Z.length>0&&w===Z[0].ref.current;u.style.top="0px";const Xt=Math.max(ue,oe+A.offsetTop+(Xe?G:0)+ve)+je;u.style.height=Xt+"px",A.scrollTop=xe-ue+A.offsetTop}u.style.margin=`${_r}px 0`,u.style.minHeight=P+"px",u.style.maxHeight=Q+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[v,s.trigger,s.valueNode,u,f,A,w,k,s.dir,r]);un(()=>T(),[T]);const[R,C]=S.useState();un(()=>{f&&C(window.getComputedStyle(f).zIndex)},[f]);const I=S.useCallback(D=>{D&&x.current===!0&&(T(),E?.(),x.current=!1)},[T,E]);return y.jsx(ZW,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:b,onScrollButtonChange:I,children:y.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:y.jsx(Ge.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});KO.displayName=qW;var WW="SelectPopperPosition",Nv=S.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=_r,...s}=e,l=Uh(n);return y.jsx(DW,{...l,...s,ref:t,align:r,collisionPadding:o,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)"}})});Nv.displayName=WW;var[ZW,F_]=Xs(fa,{}),Iv="SelectViewport",qO=S.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Eo(Iv,n),l=F_(Iv,n),u=Ct(t,s.onViewportChange),d=S.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(Bh.Slot,{scope:n,children:y.jsx(Ge.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Je(o.onScroll,f=>{const p=f.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=l;if(v?.current&&m){const b=Math.abs(d.current-p.scrollTop);if(b>0){const x=window.innerHeight-_r*2,A=parseFloat(m.style.minHeight),w=parseFloat(m.style.height),k=Math.max(A,w);if(k<x){const E=k+b,T=Math.min(x,E),R=E-T;m.style.height=T+"px",m.style.bottom==="0px"&&(p.scrollTop=R>0?R:0,m.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})});qO.displayName=Iv;var WO="SelectGroup",[YW,XW]=Xs(WO),ZO=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hr();return y.jsx(YW,{scope:n,id:o,children:y.jsx(Ge.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ZO.displayName=WO;var YO="SelectLabel",XO=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=XW(YO,n);return y.jsx(Ge.div,{id:o.id,...r,ref:t})});XO.displayName=YO;var th="SelectItem",[QW,QO]=Xs(th),JO=S.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...l}=e,u=_o(th,n),d=Eo(th,n),f=u.value===r,[p,m]=S.useState(s??""),[v,b]=S.useState(!1),x=Ct(t,E=>d.itemRefCallback?.(E,r,o)),A=hr(),w=S.useRef("touch"),k=()=>{o||(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 y.jsx(QW,{scope:n,value:r,disabled:o,textId:A,isSelected:f,onItemTextChange:S.useCallback(E=>{m(T=>T||(E?.textContent??"").trim())},[]),children:y.jsx(Bh.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:y.jsx(Ge.div,{role:"option","aria-labelledby":A,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:x,onFocus:Je(l.onFocus,()=>b(!0)),onBlur:Je(l.onBlur,()=>b(!1)),onClick:Je(l.onClick,()=>{w.current!=="mouse"&&k()}),onPointerUp:Je(l.onPointerUp,()=>{w.current==="mouse"&&k()}),onPointerDown:Je(l.onPointerDown,E=>{w.current=E.pointerType}),onPointerMove:Je(l.onPointerMove,E=>{w.current=E.pointerType,o?d.onItemLeave?.():w.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(l.onPointerLeave,E=>{E.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:Je(l.onKeyDown,E=>{d.searchRef?.current!==""&&E.key===" "||(zW.includes(E.key)&&k(),E.key===" "&&E.preventDefault())})})})})});JO.displayName=th;var gc="SelectItemText",eD=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,l=_o(gc,n),u=Eo(gc,n),d=QO(gc,n),f=FW(gc,n),[p,m]=S.useState(null),v=Ct(t,k=>m(k),d.onItemTextChange,k=>u.itemTextRefCallback?.(k,d.value,d.disabled)),b=p?.textContent,x=S.useMemo(()=>y.jsx("option",{value:d.value,disabled:d.disabled,children:b},d.value),[d.disabled,d.value,b]),{onNativeOptionAdd:A,onNativeOptionRemove:w}=f;return un(()=>(A(x),()=>w(x)),[A,w,x]),y.jsxs(y.Fragment,{children:[y.jsx(Ge.span,{id:d.textId,...s,ref:v}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ma.createPortal(s.children,l.valueNode):null]})});eD.displayName=gc;var tD="SelectItemIndicator",nD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return QO(tD,n).isSelected?y.jsx(Ge.span,{"aria-hidden":!0,...r,ref:t}):null});nD.displayName=tD;var Ov="SelectScrollUpButton",rD=S.forwardRef((e,t)=>{const n=Eo(Ov,e.__scopeSelect),r=F_(Ov,e.__scopeSelect),[o,s]=S.useState(!1),l=Ct(t,r.onScrollButtonChange);return un(()=>{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]),o?y.jsx(oD,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});rD.displayName=Ov;var Dv="SelectScrollDownButton",iD=S.forwardRef((e,t)=>{const n=Eo(Dv,e.__scopeSelect),r=F_(Dv,e.__scopeSelect),[o,s]=S.useState(!1),l=Ct(t,r.onScrollButtonChange);return un(()=>{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]),o?y.jsx(oD,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});iD.displayName=Dv;var oD=S.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Eo("SelectScrollButton",n),l=S.useRef(null),u=Vh(n),d=S.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return S.useEffect(()=>()=>d(),[d]),un(()=>{u().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),y.jsx(Ge.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Je(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Je(o.onPointerMove,()=>{s.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Je(o.onPointerLeave,()=>{d()})})}),JW="SelectSeparator",aD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx(Ge.div,{"aria-hidden":!0,...r,ref:t})});aD.displayName=JW;var Lv="SelectArrow",eZ=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Uh(n),s=_o(Lv,n),l=Eo(Lv,n);return s.open&&l.position==="popper"?y.jsx(LW,{...o,...r,ref:t}):null});eZ.displayName=Lv;var tZ="SelectBubbleInput",sD=S.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=S.useRef(null),s=Ct(r,o),l=jW(t);return S.useEffect(()=>{const u=o.current;if(!u)return;const d=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&p){const m=new Event("change",{bubbles:!0});p.call(u,t),u.dispatchEvent(m)}},[l,t]),y.jsx(Ge.select,{...n,style:{...jO,...n.style},ref:s,defaultValue:t})});sD.displayName=tZ;function lD(e){return e===""||e===void 0}function cD(e){const t=Ar(e),n=S.useRef(""),r=S.useRef(0),o=S.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=S.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function uD(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=nZ(e,Math.max(s,0));o.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function nZ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rZ=PO,iZ=zO,oZ=VO,aZ=UO,sZ=FO,lZ=$O,cZ=qO,uZ=ZO,dZ=XO,fZ=JO,hZ=eD,pZ=nD,mZ=rD,gZ=iD,yZ=aD;const vZ=rZ,bZ=uZ,_Z=oZ,EZ=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>y.jsxs(iZ,{className:me("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,y.jsx(aZ,{asChild:!0,children:y.jsx(e$,{className:"size-4 opacity-50"})})]}),dD=({className:e,...t})=>y.jsx(mZ,{className:me("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(QF,{})}),fD=({className:e,...t})=>y.jsx(gZ,{className:me("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(U1,{})}),SZ=({className:e,children:t,position:n="popper",...r})=>y.jsx(sZ,{children:y.jsxs(lZ,{className:me("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:[y.jsx(dD,{}),y.jsx(cZ,{className:me("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(fD,{})]})}),xZ=({className:e,...t})=>y.jsx(dZ,{className:me("px-1 py-0.5 text-sm font-semibold",e),...t}),AZ=({className:e,children:t,...n})=>y.jsxs(fZ,{className:me("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:[y.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(pZ,{children:y.jsx(Us,{className:"size-4"})})}),y.jsx(hZ,{children:t})]}),wZ=({className:e,...t})=>y.jsx(yZ,{className:me("-mx-1 my-1 h-px bg-red-300",e),...t}),Re=vZ;Re.Group=bZ;Re.Value=_Z;Re.Trigger=EZ;Re.ScrollUpButton=dD;Re.ScrollDownButton=fD;Re.Content=SZ;Re.Label=xZ;Re.Item=AZ;Re.Separator=wZ;const TZ=e=>e?.getAttribute("aria-selected")==="true",hD=(e,t=TZ,n=!1)=>{const[r,o]=S.useState(null),[s,l]=S.useState(null),u=e.current.length;return S.useEffect(()=>{const d=()=>{let A=null;if(s?A=s:A=e.current.find(t)??null,!A){o(E=>({left:0,width:0,...E,opacity:0}));return}const w=A.offsetLeft,k=A.offsetWidth;o({left:w,width:k,opacity:1})};d(),window.addEventListener("resize",d),window.addEventListener("DOMContentLoaded",d);const f=[];e.current.forEach(A=>{if(A){const w=new MutationObserver(k=>{for(const E of k)if(E.type==="attributes"&&E.attributeName==="aria-selected"){d();break}});w.observe(A,{attributes:!0,attributeFilter:["aria-selected"]}),f.push(w)}});const p=[],m=A=>{if(!A)return;const w=new ResizeObserver(()=>{d()});w.observe(A),p.push(w)},v=e.current.find(t)??null;v&&m(v),s&&m(s);const b=A=>{l(A.currentTarget)},x=()=>{l(null)};return n&&e.current.forEach(A=>{A?.addEventListener("mouseenter",b,{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",b),A?.removeEventListener("mouseleave",x)})}},[e,t,s,u]),{choiceIndicatorPosition:r}},CZ=[{content:"Off",value:!1},{content:"On",value:!0}];var vu=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e))(vu||{});const RZ=_n("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 bu=(e=>(e.SM="sm",e.MD="md",e.LG="lg",e))(bu||{});const kZ=_n("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"}}),NZ=_n("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"}}}),_u=({choices:e=CZ,value:t,defaultValue:n,onChange:r,color:o="primary",size:s="md",className:l})=>{const[u,d]=S.useState(t??n??e[0].value),f=S.useRef([]),p=S.useRef(null),{choiceIndicatorPosition:m}=hD(f),v=b=>{d(b),r?.(b)};return S.useEffect(()=>{t!==void 0&&d(t)},[t]),y.jsx("div",{className:RZ({color:o,className:l}),role:"tablist",children:y.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((b,x)=>{const{content:A,value:w,...k}=b,E=typeof w=="string"||typeof w=="number",T=w===u;return S.createElement("button",{...k,className:me(kZ({size:s})),key:E?w:x,role:"tab",onClick:()=>v(w),"aria-selected":T,disabled:T,ref:R=>{f.current[x]=R}},A)}),m&&y.jsx("div",{className:me(NZ({color:o})),style:m,ref:p})]})})};function pD(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 o=n?.Parent??Object;class s extends o{}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}let IZ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};const OZ={};function mD(e){return OZ}function DZ(e,t){return typeof t=="bigint"?t.toString():t}const gD="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jd(e){return typeof e=="string"?e:e?.message}function yD(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Jd(e.inst?._zod.def?.error?.(e))??Jd(t?.error?.(e))??Jd(n.customError?.(e))??Jd(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const vD=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,DZ,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},LZ=pD("$ZodError",vD),bD=pD("$ZodError",vD,{Parent:Error}),jZ=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new IZ;if(l.issues.length){const u=new(o?.Err??e)(l.issues.map(d=>yD(d,s,mD())));throw gD(u,o?.callee),u}return l.value},PZ=jZ(bD),MZ=e=>async(t,n,r,o)=>{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(o?.Err??e)(l.issues.map(d=>yD(d,s,mD())));throw gD(u,o?.callee),u}return l.value},zZ=MZ(bD);function AC(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function BZ(e,t){for(var n={};e.length;){var r=e[0],o=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:o};if("unionErrors"in r&&r.unionErrors.forEach(function(p){return p.errors.forEach(function(m){return e.push(m)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=k_(l,t,n,o,f?[].concat(f,r.message):r.message)}e.shift()}return n}function VZ(e,t){for(var n={};e.length;){var r=e[0],o=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:o};if(r.code==="invalid_union"&&r.errors.forEach(function(p){return p.forEach(function(m){return e.push(m)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=k_(l,t,n,o,f?[].concat(f,r.message):r.message)}e.shift()}return n}function UZ(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,o,s){try{return Promise.resolve(AC(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return s.shouldUseNativeValidation&&wv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return Array.isArray(u?.issues)})(l))return{values:{},errors:sC(BZ(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,o,s){try{return Promise.resolve(AC(function(){return Promise.resolve((n.mode==="sync"?PZ:zZ)(e,r,t)).then(function(l){return s.shouldUseNativeValidation&&wv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(u){return u instanceof LZ})(l))return{values:{},errors:sC(VZ(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 hy=async e=>e&&typeof e.then=="function"?await e:e,FZ=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:o,children:s,autoComplete:l,...u})=>{const d=async f=>{const p=e?.safeParse(f)??{success:!0,data:void 0};await hy(t?.(f)),p.success?await hy(n?.(p.data)):await hy(r?.(new Error(p.error.issues.map(m=>m.message).join(", "))))};return y.jsx(kq,{...u,children:y.jsx("form",{className:me("flex size-full flex-col gap-y-6",o),onSubmit:u.handleSubmit(d),autoComplete:l?"on":"off",noValidate:!0,children:s})})},$Z=(e,t)=>{const n=Wq({resolver:UZ(e),...t}),r=n.formState.isSubmitting,o=n.formState.isSubmitted,s=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:o,isLoading:s,isValid:l}},HZ=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=bo();return y.jsx(TH,{id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})},GZ=e=>{const{formDescriptionId:t}=bo();return y.jsx("p",{className:"text-neutral text-sm",id:t,...e})},KZ=({children:e,...t})=>{const{error:n,formMessageId:r}=bo(),o=n?String(n?.message??""):e;return o?y.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:o}):null},Fh=({label:e,description:t,isRequired:n,info:r,children:o,showErrorMessage:s=!0,htmlFor:l})=>y.jsxs(He.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&y.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&y.jsx(dO,{isRequired:n,info:r,htmlFor:l,children:e}),t&&y.jsx(He.Description,{children:t})]}),y.jsx(He.Control,{children:o}),s&&y.jsx(He.Message,{"data-testid":"error-message"})]}),qZ=({field:e,name:t,label:n,Element:r,isRequired:o=!1,info:s,description:l,showErrorMessage:u=!0,...d})=>{const{error:f}=bo();return y.jsx(Fh,{htmlFor:t,label:n,description:l,isRequired:o,info:s,showErrorMessage:u,"aria-invalid":!!f,children:y.jsx(r,{"data-testid":"element",id:t,...e,...d,children:d.children})})},So=e=>{const{control:t}=vo();return y.jsx(He.Field,{control:t,name:e.name,render:({field:n})=>y.jsx(qZ,{...e,field:n})})},WZ=e=>y.jsx(So,{id:e.name,"data-testid":e.name,Element:Ws,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),ZZ=({autoComplete:e,...t})=>y.jsx(So,{Element:e9,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}),YZ=e=>y.jsx(So,{Element:aO,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}),XZ=e=>y.jsx(So,{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:lO,...e}),QZ=e=>y.jsx(So,{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:cO,...e}),JZ=e=>y.jsx(So,{Element:O_,id:e.name,"data-testid":e.name,...e}),e7=({inputLabel:e,...t})=>y.jsx(Jq,{...t,label:e}),t7=({autoComplete:e,...t})=>y.jsx(So,{Element:e7,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),n7=({name:e,description:t,label:n,isRequired:r,info:o,showErrorMessage:s,children:l,...u})=>{const{control:d}=vo();return y.jsx(He.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=bo();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(yn,{onValueChange:f.onChange,values:f.value,...u,children:l})})}})},r7=({name:e,description:t,label:n,isRequired:r,info:o,showErrorMessage:s,children:l,...u})=>{const{control:d}=vo();return y.jsx(He.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=bo();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(Re,{onValueChange:f.onChange,defaultValue:f.value,...u,children:l})})}})},i7=({name:e,description:t,label:n,isRequired:r,info:o,showErrorMessage:s,children:l,...u})=>{const{control:d}=vo();return y.jsx(He.Field,{control:d,name:e,render:({field:f})=>{const{error:p}=bo();return y.jsx(Fh,{htmlFor:e,label:n,description:t,isRequired:r,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(_u,{...f,...u,children:l})})}})},He=FZ;He.Description=GZ;He.Control=HZ;He.Field=Xq;He.Item=Yq;He.Label=dO;He.Message=KZ;He.Element=So;He.Input=WZ;He.InputPassword=ZZ;He.Checkbox=t7;He.TextArea=YZ;He.AutoSizedTextArea=JZ;He.Button=lt;He.Select=r7;He.MultiSelect=n7;He.EditableFieldInput=XZ;He.EditableFieldTextArea=QZ;He.SwitchSelector=i7;const _D=({dictionary:e,mode:t,className:n,onDelete:r,...o})=>{const[s,l]=S.useState(!1),{setLocaleDictionary:u}=yh(),{mutate:d,isPending:f}=Eq(),{mutate:p,isPending:m}=Tq(),{mutate:v,isPending:b}=_q(),x=m||b,{editedContent:A,restoreEditedContent:w}=Cn(),{deleteButton:k,resetButton:E,saveButton:T,publishButton:R,downloadButton:C,confirmation:I}=dn("save-dictionary-details"),{isAuthenticated:D}=mu(),L=A?.[e.localId],V=L&&JSON.stringify(L)!==JSON.stringify(e),$=typeof e?.id<"u",Z=async()=>{if(!A?.[e.localId])return;const q={...e,...A?.[e.localId]};p({dictionary:q},{onSuccess:()=>{u(A?.[e.localId]),w(e.localId)}})},Q=()=>{if(!A?.[e.localId])return;const q={...e,...A?.[e.localId]};v([q],{onSuccess:oe=>{oe&&(u(A?.[e.localId]),w(e.localId))}})},le=()=>{e.id&&d(e.id.toString(),{onSuccess:q=>{q&&r?.()}})};return y.jsxs(y.Fragment,{children:[y.jsx(__,{isOpen:s,title:I.title.value,size:b_.MD,children:y.jsxs("form",{className:"size-full px-3",children:[y.jsx("p",{className:"text-neutral py-4 text-sm",children:I.message}),y.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[y.jsx(He.Button,{label:I.cancelButton.label.value,disabled:!V||x,color:it.TEXT,className:"max-md:w-full",variant:ot.OUTLINE,onClick:()=>l(!1),children:I.cancelButton.text}),y.jsx(He.Button,{label:I.confirmButton.label.value,disabled:!V||x,Icon:jA,color:it.TEXT,className:"max-md:w-full",isLoading:b,onClick:Z,children:I.confirmButton.text})]})]})}),y.jsxs("form",{className:me("flex justify-end gap-2 max-md:flex-col",n),...o,children:[t.includes("remote")&&$&&r&&D&&y.jsx(He.Button,{label:k.label.value,Icon:Eh,color:it.ERROR,variant:ot.OUTLINE,className:"max-md:w-full",isLoading:f,onClick:le,children:k.text}),V&&y.jsx(He.Button,{label:E.label.value,disabled:!V,Icon:S$,variant:ot.OUTLINE,color:it.TEXT,className:"max-md:w-full",onClick:()=>w(e.localId),children:E.text}),t.includes("local")&&y.jsx(He.Button,{label:C.label.value,disabled:!V||x,Icon:a$,color:it.TEXT,variant:D?ot.OUTLINE:ot.DEFAULT,className:"max-md:w-full",isLoading:m,onClick:()=>l(!0),children:C.text}),t.includes("remote")&&D&&!$&&y.jsx(He.Button,{label:R.label.value,disabled:x,Icon:GF,color:it.TEXT,className:"max-md:w-full",isLoading:b,onClick:Q,children:R.text}),t.includes("remote")&&D&&$&&V&&y.jsx(He.Button,{label:T.label.value,disabled:!V||x,Icon:jA,color:"text",className:"max-md:w-full",isLoading:b,onClick:Q,children:T.text})]})]})},ED=({level:e,title:t,description:n,children:r,rightParam:o,isSelected:s,...l})=>y.jsx("div",{className:me("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:y.jsx(nk,{isOpen:s,label:t,header:y.jsxs("div",{className:"flex w-full",children:[y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("span",{className:me(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),o&&y.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:o})]}),n&&y.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),SD=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:o,onFocusKeyPath:s,renderSection:l})=>{const u=r??dr(n,e);if(u&&typeof u!="string")return y.jsx(y.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const d=e.length,f=String(u??t);return y.jsx("span",{role:"button",tabIndex:0,className:me("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):y.jsx(cO,{"aria-label":"Editable field",defaultValue:f,onSave:p=>o({keyPath:e,newValue:p}),onCancel:()=>null})})},o7=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=Cn(),o=dr(e.editedContent,t),s=n[H.File],{content:l}=n,u=[...t,{type:H.File}];return y.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[y.jsxs("span",{className:"text-neutral text-sm",children:[s," "]}),y.jsx(SD,{...e,keyPath:u,section:l,editedContentValue:o?.content,onContentChange:d=>{r(e.dictionary.key,{...n,content:d.newValue},t)}})]})},a7=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:o=[]}=e;return n.map((s,l)=>{const u={key:l,type:H.Array},d=[...t,u];return y.jsx(ED,{level:t.length,title:`${l}`,description:"",isSelected:Jc(d,o),onClick:f=>{f.stopPropagation(),r(d)},children:y.jsx(xo,{...e,keyPath:d,section:s})},JSON.stringify(s))})},s7=e=>{const{keyPath:t,section:n}=e;return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!$_.includes(r)).map(r=>{const o={type:H.Condition,key:r},s=[...t,o],l=n[H.Condition][r];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:r}),S.createElement(xo,{...e,key:r,keyPath:s,section:l})]})})})},l7=e=>{const{keyPath:t,section:n}=e;return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!$_.includes(r)).map(r=>{const o={type:H.Enumeration,key:r},s=[...t,o],l=n[H.Enumeration][r];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:r}),S.createElement(xo,{...e,key:r,keyPath:s,section:l})]})})})},c7=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:H.Insertion}],o=n[H.Insertion];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(xo,{...e,keyPath:r,section:o})})},u7=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:H.Markdown}],o=n[H.Markdown];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(xo,{...e,keyPath:r,section:o})})},d7=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:o}=e;return Object.keys(n).filter(s=>!$_.includes(s)).map(s=>{const l={key:s,type:H.Object},u=[...t,l];return y.jsx(ED,{level:t.length,title:s,description:"",isSelected:Jc(u,r),onClick:d=>{d.stopPropagation(),o(u)},children:y.jsx(xo,{...e,keyPath:u,section:n[s]})},s)})},f7=e=>{const{keyPath:t,section:n,locale:r}=e,o={type:H.Translation,key:r},s=[...t,o],l=n.translation[r];return y.jsx(xo,{...e,keyPath:s,section:l})},$_=["filePath","id","nodeType"],xo=e=>{const n=dr(e.editedContent,e.keyPath)??e.section,r=Ms(n);if(typeof n=="object")return r===H.ReactNode?y.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):r===H.Nested?y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):r===H.Markdown?y.jsx(u7,{...e,section:n}):r===H.Translation?y.jsx(f7,{...e,section:n}):r===H.Enumeration?y.jsx(l7,{...e,section:n}):r===H.Condition?y.jsx(s7,{...e,section:n}):r===H.Insertion?y.jsx(c7,{...e,section:n}):r===H.Array?y.jsx(a7,{...e,section:n}):r===H.File?y.jsx(o7,{...e,section:n}):y.jsx(d7,{...e,section:n});if(typeof n=="string")return y.jsx(SD,{...e,section:n})},h7=({dictionary:e,mode:t,onDelete:n,...r})=>{const{editedContent:o,addEditedContent:s}=Cn(),{focusedContent:l,setFocusedContentKeyPath:u,setFocusedContent:d}=mo(),f=l?.keyPath;return y.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[y.jsx("div",{children:S.createElement(xo,{...r,keyPath:[],dictionary:e,key:JSON.stringify((o?.[e.localId]??e).content),editedContent:o?.[e.localId]?.content,focusedKeyPath:f,section:e.content,onContentChange:p=>{s(e.localId,p.newValue,p.keyPath)},onFocusKeyPath:u})}),y.jsx(_D,{dictionary:e,mode:t,className:"mb-4 flex-col",onDelete:()=>{d(null),n?.()}})]})};function he(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 o=n?.Parent??Object;class s extends o{}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 Hc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const xD={};function ha(e){return xD}function p7(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function m7(e,t){return typeof t=="bigint"?t.toString():t}function AD(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function H_(e){return e==null}function G_(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function St(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 K_(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function dc(e){return JSON.stringify(e)}const wD=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function jv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const g7=AD(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Pv(e){if(jv(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(jv(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const y7=new Set(["string","number","symbol"]);function $h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function va(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Be(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 v7(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function b7(e,t){const n={},r=e._zod.def;for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(n[o]=r.shape[o])}return va(e,{...e._zod.def,shape:n,checks:[]})}function _7(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete n[o]}return va(e,{...e._zod.def,shape:n,checks:[]})}function E7(e,t){if(!Pv(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 K_(this,"shape",r),r},checks:[]};return va(e,n)}function S7(e,t){return va(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return K_(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function x7(e,t,n){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=e?new e({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)o[s]=e?new e({type:"optional",innerType:r[s]}):r[s];return va(t,{...t._zod.def,shape:o,checks:[]})}function A7(e,t,n){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)o[s]=new e({type:"nonoptional",innerType:r[s]});return va(t,{...t._zod.def,shape:o,checks:[]})}function Cc(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function q_(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ef(e){return typeof e=="string"?e:e?.message}function pa(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=ef(e.inst?._zod.def?.error?.(e))??ef(t?.error?.(e))??ef(n.customError?.(e))??ef(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function W_(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Gc(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const TD=(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,m7,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},CD=he("$ZodError",TD),RD=he("$ZodError",TD,{Parent:Error});function w7(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function T7(e,t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const l of s.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>o({issues:u}));else if(l.code==="invalid_key")o({issues:l.issues});else if(l.code==="invalid_element")o({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 o(e),r}const C7=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new Hc;if(l.issues.length){const u=new(o?.Err??e)(l.issues.map(d=>pa(d,s,ha())));throw wD(u,o?.callee),u}return l.value},R7=e=>async(t,n,r,o)=>{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(o?.Err??e)(l.issues.map(d=>pa(d,s,ha())));throw wD(u,o?.callee),u}return l.value},kD=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Hc;return s.issues.length?{success:!1,error:new(e??CD)(s.issues.map(l=>pa(l,o,ha())))}:{success:!0,data:s.value}},k7=kD(RD),ND=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>pa(l,o,ha())))}:{success:!0,data:s.value}},N7=ND(RD),I7=/^[cC][^\s-]{8,}$/,O7=/^[0-9a-z]+$/,D7=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,L7=/^[0-9a-vA-V]{20}$/,j7=/^[A-Za-z0-9]{27}$/,P7=/^[a-zA-Z0-9_-]{21}$/,M7=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,z7=/^([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})$/,wC=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)$/,B7=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,V7="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function U7(){return new RegExp(V7,"u")}const F7=/^(?:(?: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])$/,$7=/^(([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})$/,H7=/^((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])$/,G7=/^(([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])$/,K7=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ID=/^[A-Za-z0-9_-]*$/,q7=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,W7=/^\+(?:[0-9]){6,14}[0-9]$/,OD="(?:(?:\\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])))",Z7=new RegExp(`^${OD}$`);function DD(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 Y7(e){return new RegExp(`^${DD(e)}$`)}function X7(e){const t=DD({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(`^${OD}T(?:${r})$`)}const Q7=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},J7=/^[^A-Z]*$/,eY=/^[^a-z]*$/,Qr=he("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tY=he("$ZodCheckMaxLength",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!H_(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const l=W_(o);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),nY=he("$ZodCheckMinLength",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!H_(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const l=W_(o);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),rY=he("$ZodCheckLengthEquals",(e,t)=>{var n;Qr.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!H_(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const l=W_(o),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})}}),Hh=he("$ZodCheckStringFormat",(e,t)=>{var n,r;Qr.init(e,t),e._zod.onattach.push(o=>{const s=o._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=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),iY=he("$ZodCheckRegex",(e,t)=>{Hh.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})}}),oY=he("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=J7),Hh.init(e,t)}),aY=he("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=eY),Hh.init(e,t)}),sY=he("$ZodCheckIncludes",(e,t)=>{Qr.init(e,t);const n=$h(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),lY=he("$ZodCheckStartsWith",(e,t)=>{Qr.init(e,t);const n=new RegExp(`^${$h(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),cY=he("$ZodCheckEndsWith",(e,t)=>{Qr.init(e,t);const n=new RegExp(`.*${$h(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),uY=he("$ZodCheckOverwrite",(e,t)=>{Qr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class dY{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),o=Math.min(...r.map(l=>l.length-l.trimStart().length)),s=r.map(l=>l.slice(o)).map(l=>" ".repeat(this.indent*2)+l);for(const l of s)this.content.push(l)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
269
+ `))}}const fY={major:4,minor:0,patch:0},$t=he("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=fY;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._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 o=(s,l,u)=>{let d=Cc(s),f;for(const p of l){if(p._zod.def.when){if(!p._zod.def.when(s))continue}else if(d)continue;const m=s.issues.length,v=p._zod.check(s);if(v instanceof Promise&&u?.async===!1)throw new Hc;if(f||v instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await v,s.issues.length!==m&&(d||(d=Cc(s,m)))});else{if(s.issues.length===m)continue;d||(d=Cc(s,m))}}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 Hc;return u.then(d=>o(d,r,l))}return o(u,r,l)}}e["~standard"]={validate:o=>{try{const s=k7(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return N7(e,o).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}}),Z_=he("$ZodString",(e,t)=>{$t.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Q7(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}}),xt=he("$ZodStringFormat",(e,t)=>{Hh.init(e,t),Z_.init(e,t)}),hY=he("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=z7),xt.init(e,t)}),pY=he("$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=wC(r))}else t.pattern??(t.pattern=wC());xt.init(e,t)}),mY=he("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=B7),xt.init(e,t)}),gY=he("$ZodURL",(e,t)=>{xt.init(e,t),e._zod.check=n=>{try{const r=n.value,o=new URL(r),s=o.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:q7.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.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})}}}),yY=he("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=U7()),xt.init(e,t)}),vY=he("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=P7),xt.init(e,t)}),bY=he("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=I7),xt.init(e,t)}),_Y=he("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=O7),xt.init(e,t)}),EY=he("$ZodULID",(e,t)=>{t.pattern??(t.pattern=D7),xt.init(e,t)}),SY=he("$ZodXID",(e,t)=>{t.pattern??(t.pattern=L7),xt.init(e,t)}),xY=he("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=j7),xt.init(e,t)}),AY=he("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=X7(t)),xt.init(e,t)}),wY=he("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Z7),xt.init(e,t)}),TY=he("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Y7(t)),xt.init(e,t)}),CY=he("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=M7),xt.init(e,t)}),RY=he("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=F7),xt.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),kY=he("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=$7),xt.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})}}}),NY=he("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=H7),xt.init(e,t)}),IY=he("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=G7),xt.init(e,t),e._zod.check=n=>{const[r,o]=n.value.split("/");try{if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)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 LD(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const OY=he("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=K7),xt.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{LD(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function DY(e){if(!ID.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return LD(n)}const LY=he("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ID),xt.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{DY(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),jY=he("$ZodE164",(e,t)=>{t.pattern??(t.pattern=W7),xt.init(e,t)});function PY(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const MY=he("$ZodJWT",(e,t)=>{xt.init(e,t),e._zod.check=n=>{PY(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),zY=he("$ZodUnknown",(e,t)=>{$t.init(e,t),e._zod.parse=n=>n}),BY=he("$ZodNever",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function TC(e,t,n){e.issues.length&&t.issues.push(...q_(n,e.issues)),t.value[n]=e.value}const VY=he("$ZodArray",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let l=0;l<o.length;l++){const u=o[l],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?s.push(d.then(f=>TC(f,n,l))):TC(d,n,l)}return s.length?Promise.all(s).then(()=>n):n}});function tf(e,t,n){e.issues.length&&t.issues.push(...q_(n,e.issues)),t.value[n]=e.value}function CC(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(...q_(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const UY=he("$ZodObject",(e,t)=>{$t.init(e,t);const n=AD(()=>{const m=Object.keys(t.shape);for(const b of m)if(!(t.shape[b]instanceof $t))throw new Error(`Invalid element at key "${b}": expected a Zod schema`);const v=v7(t.shape);return{shape:t.shape,keys:m,keySet:new Set(m),numKeys:m.length,optionalKeys:new Set(v)}});St(e._zod,"propValues",()=>{const m=t.shape,v={};for(const b in m){const x=m[b]._zod;if(x.values){v[b]??(v[b]=new Set);for(const A of x.values)v[b].add(A)}}return v});const r=m=>{const v=new dY(["shape","payload","ctx"]),b=n.value,x=E=>{const T=dc(E);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};v.write("const input = payload.value;");const A=Object.create(null);let w=0;for(const E of b.keys)A[E]=`key_${w++}`;v.write("const newResult = {}");for(const E of b.keys)if(b.optionalKeys.has(E)){const T=A[E];v.write(`const ${T} = ${x(E)};`);const R=dc(E);v.write(`
270
+ if (${T}.issues.length) {
271
+ if (input[${R}] === undefined) {
272
+ if (${R} in input) {
273
+ newResult[${R}] = undefined;
274
+ }
275
+ } else {
276
+ payload.issues = payload.issues.concat(
277
+ ${T}.issues.map((iss) => ({
278
+ ...iss,
279
+ path: iss.path ? [${R}, ...iss.path] : [${R}],
280
+ }))
281
+ );
282
+ }
283
+ } else if (${T}.value === undefined) {
284
+ if (${R} in input) newResult[${R}] = undefined;
285
+ } else {
286
+ newResult[${R}] = ${T}.value;
287
+ }
288
+ `)}else{const T=A[E];v.write(`const ${T} = ${x(E)};`),v.write(`
289
+ if (${T}.issues.length) payload.issues = payload.issues.concat(${T}.issues.map(iss => ({
290
+ ...iss,
291
+ path: iss.path ? [${dc(E)}, ...iss.path] : [${dc(E)}]
292
+ })));`),v.write(`newResult[${dc(E)}] = ${T}.value`)}v.write("payload.value = newResult;"),v.write("return payload;");const k=v.compile();return(E,T)=>k(m,E,T)};let o;const s=jv,l=!xD.jitless,d=l&&g7.value,f=t.catchall;let p;e._zod.parse=(m,v)=>{p??(p=n.value);const b=m.value;if(!s(b))return m.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),m;const x=[];if(l&&d&&v?.async===!1&&v.jitless!==!0)o||(o=r(t.shape)),m=o(m,v);else{m.value={};const T=p.shape;for(const R of p.keys){const C=T[R],I=C._zod.run({value:b[R],issues:[]},v),D=C._zod.optin==="optional"&&C._zod.optout==="optional";I instanceof Promise?x.push(I.then(L=>D?CC(L,m,R,b):tf(L,m,R))):D?CC(I,m,R,b):tf(I,m,R)}}if(!f)return x.length?Promise.all(x).then(()=>m):m;const A=[],w=p.keySet,k=f._zod,E=k.def.type;for(const T of Object.keys(b)){if(w.has(T))continue;if(E==="never"){A.push(T);continue}const R=k.run({value:b[T],issues:[]},v);R instanceof Promise?x.push(R.then(C=>tf(C,m,T))):tf(R,m,T)}return A.length&&m.issues.push({code:"unrecognized_keys",keys:A,input:b,inst:e}),x.length?Promise.all(x).then(()=>m):m}});function RC(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>pa(s,r,ha())))}),t}const FY=he("$ZodUnion",(e,t)=>{$t.init(e,t),St(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),St(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),St(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),St(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=>G_(r.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let o=!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),o=!0;else{if(u.issues.length===0)return u;s.push(u)}}return o?Promise.all(s).then(l=>RC(l,n,e,r)):RC(s,n,e,r)}}),$Y=he("$ZodIntersection",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),l=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||l instanceof Promise?Promise.all([s,l]).then(([d,f])=>kC(n,d,f)):kC(n,s,l)}});function Mv(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(Pv(e)&&Pv(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const l=Mv(e[s],t[s]);if(!l.valid)return{valid:!1,mergeErrorPath:[s,...l.mergeErrorPath]};o[s]=l.data}return{valid:!0,data:o}}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 o=e[r],s=t[r],l=Mv(o,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 kC(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Cc(e))return e;const r=Mv(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 HY=he("$ZodEnum",(e,t)=>{$t.init(e,t);const n=p7(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(r=>y7.has(typeof r)).map(r=>typeof r=="string"?$h(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return e._zod.values.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),GY=he("$ZodTransform",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(l=>(n.value=l,n));if(o instanceof Promise)throw new Hc;return n.value=o,n}}),KY=he("$ZodOptional",(e,t)=>{$t.init(e,t),e._zod.optin="optional",e._zod.optout="optional",St(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),St(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${G_(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)}),qY=he("$ZodNullable",(e,t)=>{$t.init(e,t),St(e._zod,"optin",()=>t.innerType._zod.optin),St(e._zod,"optout",()=>t.innerType._zod.optout),St(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${G_(n.source)}|null)$`):void 0}),St(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)}),WY=he("$ZodDefault",(e,t)=>{$t.init(e,t),e._zod.optin="optional",St(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>NC(s,t)):NC(o,t)}});function NC(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const ZY=he("$ZodPrefault",(e,t)=>{$t.init(e,t),e._zod.optin="optional",St(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))}),YY=he("$ZodNonOptional",(e,t)=>{$t.init(e,t),St(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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>IC(s,e)):IC(o,e)}});function IC(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 XY=he("$ZodCatch",(e,t)=>{$t.init(e,t),e._zod.optin="optional",St(e._zod,"optout",()=>t.innerType._zod.optout),St(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(l=>pa(l,r,ha()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>pa(s,r,ha()))},input:n.value}),n.issues=[]),n)}}),QY=he("$ZodPipe",(e,t)=>{$t.init(e,t),St(e._zod,"values",()=>t.in._zod.values),St(e._zod,"optin",()=>t.in._zod.optin),St(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,r)=>{const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>OC(s,t,r)):OC(o,t,r)}});function OC(e,t,n){return Cc(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const JY=he("$ZodReadonly",(e,t)=>{$t.init(e,t),St(e._zod,"propValues",()=>t.innerType._zod.propValues),St(e._zod,"values",()=>t.innerType._zod.values),St(e._zod,"optin",()=>t.innerType._zod.optin),St(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(DC):DC(o)}});function DC(e){return e.value=Object.freeze(e.value),e}const eX=he("$ZodCustom",(e,t)=>{Qr.init(e,t),$t.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>LC(s,n,r,e));LC(o,n,r,e)}});function LC(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Gc(o))}}class tX{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 nX(){return new tX}const nf=nX();function rX(e,t){return new e({type:"string",...Be(t)})}function iX(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Be(t)})}function jC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Be(t)})}function oX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Be(t)})}function aX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Be(t)})}function sX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Be(t)})}function lX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Be(t)})}function cX(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Be(t)})}function uX(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Be(t)})}function dX(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Be(t)})}function fX(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Be(t)})}function hX(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Be(t)})}function pX(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Be(t)})}function mX(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Be(t)})}function gX(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Be(t)})}function yX(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Be(t)})}function vX(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Be(t)})}function bX(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Be(t)})}function _X(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Be(t)})}function EX(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Be(t)})}function SX(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Be(t)})}function xX(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Be(t)})}function AX(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Be(t)})}function wX(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Be(t)})}function TX(e,t){return new e({type:"string",format:"date",check:"string_format",...Be(t)})}function CX(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Be(t)})}function RX(e,t){return new e({type:"string",format:"duration",check:"string_format",...Be(t)})}function kX(e){return new e({type:"unknown"})}function NX(e,t){return new e({type:"never",...Be(t)})}function jD(e,t){return new tY({check:"max_length",...Be(t),maximum:e})}function nh(e,t){return new nY({check:"min_length",...Be(t),minimum:e})}function PD(e,t){return new rY({check:"length_equals",...Be(t),length:e})}function IX(e,t){return new iY({check:"string_format",format:"regex",...Be(t),pattern:e})}function OX(e){return new oY({check:"string_format",format:"lowercase",...Be(e)})}function DX(e){return new aY({check:"string_format",format:"uppercase",...Be(e)})}function LX(e,t){return new sY({check:"string_format",format:"includes",...Be(t),includes:e})}function jX(e,t){return new lY({check:"string_format",format:"starts_with",...Be(t),prefix:e})}function PX(e,t){return new cY({check:"string_format",format:"ends_with",...Be(t),suffix:e})}function Eu(e){return new uY({check:"overwrite",tx:e})}function MX(e){return Eu(t=>t.normalize(e))}function zX(){return Eu(e=>e.trim())}function BX(){return Eu(e=>e.toLowerCase())}function VX(){return Eu(e=>e.toUpperCase())}function UX(e,t,n){return new e({type:"array",element:t,...Be(n)})}function FX(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Be(n)})}const $X=he("ZodISODateTime",(e,t)=>{AY.init(e,t),Rt.init(e,t)});function HX(e){return wX($X,e)}const GX=he("ZodISODate",(e,t)=>{wY.init(e,t),Rt.init(e,t)});function KX(e){return TX(GX,e)}const qX=he("ZodISOTime",(e,t)=>{TY.init(e,t),Rt.init(e,t)});function WX(e){return CX(qX,e)}const ZX=he("ZodISODuration",(e,t)=>{CY.init(e,t),Rt.init(e,t)});function YX(e){return RX(ZX,e)}const XX=(e,t)=>{CD.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>T7(e,n)},flatten:{value:n=>w7(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Gh=he("ZodError",XX,{Parent:Error}),QX=C7(Gh),JX=R7(Gh),eQ=kD(Gh),tQ=ND(Gh),rn=he("ZodType",(e,t)=>($t.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)=>va(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>QX(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>eQ(e,n,r),e.parseAsync=async(n,r)=>JX(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>tQ(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check(KQ(n,r)),e.superRefine=n=>e.check(qQ(n)),e.overwrite=n=>e.check(Eu(n)),e.optional=()=>zC(e),e.nullable=()=>BC(e),e.nullish=()=>zC(BC(e)),e.nonoptional=n=>zQ(e,n),e.array=()=>zv(e),e.or=n=>CQ([e,n]),e.and=n=>kQ(e,n),e.transform=n=>VC(e,OQ(n)),e.default=n=>jQ(e,n),e.prefault=n=>MQ(e,n),e.catch=n=>VQ(e,n),e.pipe=n=>VC(e,n),e.readonly=()=>$Q(e),e.describe=n=>{const r=e.clone();return nf.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return nf.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return nf.get(e);const r=e.clone();return nf.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),MD=he("_ZodString",(e,t)=>{Z_.init(e,t),rn.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(IX(...r)),e.includes=(...r)=>e.check(LX(...r)),e.startsWith=(...r)=>e.check(jX(...r)),e.endsWith=(...r)=>e.check(PX(...r)),e.min=(...r)=>e.check(nh(...r)),e.max=(...r)=>e.check(jD(...r)),e.length=(...r)=>e.check(PD(...r)),e.nonempty=(...r)=>e.check(nh(1,...r)),e.lowercase=r=>e.check(OX(r)),e.uppercase=r=>e.check(DX(r)),e.trim=()=>e.check(zX()),e.normalize=(...r)=>e.check(MX(...r)),e.toLowerCase=()=>e.check(BX()),e.toUpperCase=()=>e.check(VX())}),nQ=he("ZodString",(e,t)=>{Z_.init(e,t),MD.init(e,t),e.email=n=>e.check(iX(rQ,n)),e.url=n=>e.check(cX(iQ,n)),e.jwt=n=>e.check(AX(bQ,n)),e.emoji=n=>e.check(uX(oQ,n)),e.guid=n=>e.check(jC(PC,n)),e.uuid=n=>e.check(oX(rf,n)),e.uuidv4=n=>e.check(aX(rf,n)),e.uuidv6=n=>e.check(sX(rf,n)),e.uuidv7=n=>e.check(lX(rf,n)),e.nanoid=n=>e.check(dX(aQ,n)),e.guid=n=>e.check(jC(PC,n)),e.cuid=n=>e.check(fX(sQ,n)),e.cuid2=n=>e.check(hX(lQ,n)),e.ulid=n=>e.check(pX(cQ,n)),e.base64=n=>e.check(EX(gQ,n)),e.base64url=n=>e.check(SX(yQ,n)),e.xid=n=>e.check(mX(uQ,n)),e.ksuid=n=>e.check(gX(dQ,n)),e.ipv4=n=>e.check(yX(fQ,n)),e.ipv6=n=>e.check(vX(hQ,n)),e.cidrv4=n=>e.check(bX(pQ,n)),e.cidrv6=n=>e.check(_X(mQ,n)),e.e164=n=>e.check(xX(vQ,n)),e.datetime=n=>e.check(HX(n)),e.date=n=>e.check(KX(n)),e.time=n=>e.check(WX(n)),e.duration=n=>e.check(YX(n))});function fc(e){return rX(nQ,e)}const Rt=he("ZodStringFormat",(e,t)=>{xt.init(e,t),MD.init(e,t)}),rQ=he("ZodEmail",(e,t)=>{mY.init(e,t),Rt.init(e,t)}),PC=he("ZodGUID",(e,t)=>{hY.init(e,t),Rt.init(e,t)}),rf=he("ZodUUID",(e,t)=>{pY.init(e,t),Rt.init(e,t)}),iQ=he("ZodURL",(e,t)=>{gY.init(e,t),Rt.init(e,t)}),oQ=he("ZodEmoji",(e,t)=>{yY.init(e,t),Rt.init(e,t)}),aQ=he("ZodNanoID",(e,t)=>{vY.init(e,t),Rt.init(e,t)}),sQ=he("ZodCUID",(e,t)=>{bY.init(e,t),Rt.init(e,t)}),lQ=he("ZodCUID2",(e,t)=>{_Y.init(e,t),Rt.init(e,t)}),cQ=he("ZodULID",(e,t)=>{EY.init(e,t),Rt.init(e,t)}),uQ=he("ZodXID",(e,t)=>{SY.init(e,t),Rt.init(e,t)}),dQ=he("ZodKSUID",(e,t)=>{xY.init(e,t),Rt.init(e,t)}),fQ=he("ZodIPv4",(e,t)=>{RY.init(e,t),Rt.init(e,t)}),hQ=he("ZodIPv6",(e,t)=>{kY.init(e,t),Rt.init(e,t)}),pQ=he("ZodCIDRv4",(e,t)=>{NY.init(e,t),Rt.init(e,t)}),mQ=he("ZodCIDRv6",(e,t)=>{IY.init(e,t),Rt.init(e,t)}),gQ=he("ZodBase64",(e,t)=>{OY.init(e,t),Rt.init(e,t)}),yQ=he("ZodBase64URL",(e,t)=>{LY.init(e,t),Rt.init(e,t)}),vQ=he("ZodE164",(e,t)=>{jY.init(e,t),Rt.init(e,t)}),bQ=he("ZodJWT",(e,t)=>{MY.init(e,t),Rt.init(e,t)}),_Q=he("ZodUnknown",(e,t)=>{zY.init(e,t),rn.init(e,t)});function MC(){return kX(_Q)}const EQ=he("ZodNever",(e,t)=>{BY.init(e,t),rn.init(e,t)});function SQ(e){return NX(EQ,e)}const xQ=he("ZodArray",(e,t)=>{VY.init(e,t),rn.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(nh(n,r)),e.nonempty=n=>e.check(nh(1,n)),e.max=(n,r)=>e.check(jD(n,r)),e.length=(n,r)=>e.check(PD(n,r)),e.unwrap=()=>e.element});function zv(e,t){return UX(xQ,e,t)}const AQ=he("ZodObject",(e,t)=>{UY.init(e,t),rn.init(e,t),St(e,"shape",()=>t.shape),e.keyof=()=>NQ(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:MC()}),e.loose=()=>e.clone({...e._zod.def,catchall:MC()}),e.strict=()=>e.clone({...e._zod.def,catchall:SQ()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>E7(e,n),e.merge=n=>S7(e,n),e.pick=n=>b7(e,n),e.omit=n=>_7(e,n),e.partial=(...n)=>x7(zD,e,n[0]),e.required=(...n)=>A7(BD,e,n[0])});function wQ(e,t){const n={type:"object",get shape(){return K_(this,"shape",{...e}),this.shape},...Be(t)};return new AQ(n)}const TQ=he("ZodUnion",(e,t)=>{FY.init(e,t),rn.init(e,t),e.options=t.options});function CQ(e,t){return new TQ({type:"union",options:e,...Be(t)})}const RQ=he("ZodIntersection",(e,t)=>{$Y.init(e,t),rn.init(e,t)});function kQ(e,t){return new RQ({type:"intersection",left:e,right:t})}const Bv=he("ZodEnum",(e,t)=>{HY.init(e,t),rn.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{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 Bv({...t,checks:[],...Be(o),entries:s})},e.exclude=(r,o)=>{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 Bv({...t,checks:[],...Be(o),entries:s})}});function NQ(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Bv({type:"enum",entries:n,...Be(t)})}const IQ=he("ZodTransform",(e,t)=>{GY.init(e,t),rn.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=s=>{if(typeof s=="string")n.issues.push(Gc(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(Gc(l))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function OQ(e){return new IQ({type:"transform",transform:e})}const zD=he("ZodOptional",(e,t)=>{KY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zC(e){return new zD({type:"optional",innerType:e})}const DQ=he("ZodNullable",(e,t)=>{qY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function BC(e){return new DQ({type:"nullable",innerType:e})}const LQ=he("ZodDefault",(e,t)=>{WY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function jQ(e,t){return new LQ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const PQ=he("ZodPrefault",(e,t)=>{ZY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function MQ(e,t){return new PQ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const BD=he("ZodNonOptional",(e,t)=>{YY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zQ(e,t){return new BD({type:"nonoptional",innerType:e,...Be(t)})}const BQ=he("ZodCatch",(e,t)=>{XY.init(e,t),rn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function VQ(e,t){return new BQ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const UQ=he("ZodPipe",(e,t)=>{QY.init(e,t),rn.init(e,t),e.in=t.in,e.out=t.out});function VC(e,t){return new UQ({type:"pipe",in:e,out:t})}const FQ=he("ZodReadonly",(e,t)=>{JY.init(e,t),rn.init(e,t)});function $Q(e){return new FQ({type:"readonly",innerType:e})}const HQ=he("ZodCustom",(e,t)=>{eX.init(e,t),rn.init(e,t)});function GQ(e){const t=new Qr({check:"custom"});return t._zod.check=e,t}function KQ(e,t={}){return FX(HQ,e,t)}function qQ(e){const t=GQ(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Gc(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Gc(o))}},e(n.value,n)));return t}function Ai(e){return Array.isArray?Array.isArray(e):FD(e)==="[object Array]"}function WQ(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ZQ(e){return e==null?"":WQ(e)}function $r(e){return typeof e=="string"}function VD(e){return typeof e=="number"}function YQ(e){return e===!0||e===!1||XQ(e)&&FD(e)=="[object Boolean]"}function UD(e){return typeof e=="object"}function XQ(e){return UD(e)&&e!==null}function Wn(e){return e!=null}function py(e){return!e.trim().length}function FD(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const QQ="Incorrect 'index' type",JQ=e=>`Invalid value for key ${e}`,eJ=e=>`Pattern length exceeds max of ${e}.`,tJ=e=>`Missing ${e} property in key`,nJ=e=>`Property 'weight' in key '${e}' must be a positive integer`,UC=Object.prototype.hasOwnProperty;class rJ{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=$D(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.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 $D(e){let t=null,n=null,r=null,o=1,s=null;if($r(e)||Ai(e))r=e,t=FC(e),n=Vv(e);else{if(!UC.call(e,"name"))throw new Error(tJ("name"));const l=e.name;if(r=l,UC.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(nJ(l));t=FC(l),n=Vv(l),s=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:s}}function FC(e){return Ai(e)?e:e.split(".")}function Vv(e){return Ai(e)?e.join("."):e}function iJ(e,t){let n=[],r=!1;const o=(s,l,u)=>{if(Wn(s))if(!l[u])n.push(s);else{let d=l[u];const f=s[d];if(!Wn(f))return;if(u===l.length-1&&($r(f)||VD(f)||YQ(f)))n.push(ZQ(f));else if(Ai(f)){r=!0;for(let p=0,m=f.length;p<m;p+=1)o(f[p],l,u+1)}else l.length&&o(f,l,u+1)}};return o(e,$r(t)?t.split("."):t,0),r?n:n[0]}const oJ={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},aJ={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},sJ={location:0,threshold:.6,distance:100},lJ={useExtendedSearch:!1,getFn:iJ,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ze={...aJ,...oJ,...sJ,...lJ};const cJ=/[^ ]+/g;function uJ(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const s=o.match(cJ).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 Y_{constructor({getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){this.norm=uJ(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,$r(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();$r(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(!Wn(t)||py(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((o,s)=>{let l=o.getFn?o.getFn(t):this.getFn(t,o.path);if(Wn(l)){if(Ai(l)){let u=[];const d=[{nestedArrIndex:-1,value:l}];for(;d.length;){const{nestedArrIndex:f,value:p}=d.pop();if(Wn(p))if($r(p)&&!py(p)){let m={v:p,i:f,n:this.norm.get(p)};u.push(m)}else Ai(p)&&p.forEach((m,v)=>{d.push({nestedArrIndex:v,value:m})})}r.$[s]=u}else if($r(l)&&!py(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 HD(e,t,{getFn:n=ze.getFn,fieldNormWeight:r=ze.fieldNormWeight}={}){const o=new Y_({getFn:n,fieldNormWeight:r});return o.setKeys(e.map($D)),o.setSources(t),o.create(),o}function dJ(e,{getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){const{keys:r,records:o}=e,s=new Y_({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(o),s}function of(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=ze.distance,ignoreLocation:s=ze.ignoreLocation}={}){const l=t/e.length;if(s)return l;const u=Math.abs(r-n);return o?l+u/o:u?1:l}function fJ(e=[],t=ze.minMatchCharLength){let n=[],r=-1,o=-1,s=0;for(let l=e.length;s<l;s+=1){let u=e[s];u&&r===-1?r=s:!u&&r!==-1&&(o=s-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const Xo=32;function hJ(e,t,n,{location:r=ze.location,distance:o=ze.distance,threshold:s=ze.threshold,findAllMatches:l=ze.findAllMatches,minMatchCharLength:u=ze.minMatchCharLength,includeMatches:d=ze.includeMatches,ignoreLocation:f=ze.ignoreLocation}={}){if(t.length>Xo)throw new Error(eJ(Xo));const p=t.length,m=e.length,v=Math.max(0,Math.min(r,m));let b=s,x=v;const A=u>1||d,w=A?Array(m):[];let k;for(;(k=e.indexOf(t,x))>-1;){let D=of(t,{currentLocation:k,expectedLocation:v,distance:o,ignoreLocation:f});if(b=Math.min(D,b),x=k+p,A){let L=0;for(;L<p;)w[k+L]=1,L+=1}}x=-1;let E=[],T=1,R=p+m;const C=1<<p-1;for(let D=0;D<p;D+=1){let L=0,V=R;for(;L<V;)of(t,{errors:D,currentLocation:v+V,expectedLocation:v,distance:o,ignoreLocation:f})<=b?L=V:R=V,V=Math.floor((R-L)/2+L);R=V;let $=Math.max(1,v-V+1),Z=l?m:Math.min(v+V,m)+p,Q=Array(Z+2);Q[Z+1]=(1<<D)-1;for(let q=Z;q>=$;q-=1){let oe=q-1,z=n[e.charAt(oe)];if(A&&(w[oe]=+!!z),Q[q]=(Q[q+1]<<1|1)&z,D&&(Q[q]|=(E[q+1]|E[q])<<1|1|E[q+1]),Q[q]&C&&(T=of(t,{errors:D,currentLocation:oe,expectedLocation:v,distance:o,ignoreLocation:f}),T<=b)){if(b=T,x=oe,x<=v)break;$=Math.max(1,2*v-x)}}if(of(t,{errors:D+1,currentLocation:v,expectedLocation:v,distance:o,ignoreLocation:f})>b)break;E=Q}const I={isMatch:x>=0,score:Math.max(.001,T)};if(A){const D=fJ(w,u);D.length?d&&(I.indices=D):I.isMatch=!1}return I}function pJ(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}const rh=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 GD{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:o=ze.distance,includeMatches:s=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:u=ze.minMatchCharLength,isCaseSensitive:d=ze.isCaseSensitive,ignoreDiacritics:f=ze.ignoreDiacritics,ignoreLocation:p=ze.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:l,minMatchCharLength:u,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:p},t=d?t:t.toLowerCase(),t=f?rh(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const m=(b,x)=>{this.chunks.push({pattern:b,alphabet:pJ(b),startIndex:x})},v=this.pattern.length;if(v>Xo){let b=0;const x=v%Xo,A=v-x;for(;b<A;)m(this.pattern.substr(b,Xo),b),b+=Xo;if(x){const w=v-Xo;m(this.pattern.substr(w),w)}}else m(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o}=this.options;if(t=n?t:t.toLowerCase(),t=r?rh(t):t,this.pattern===t){let A={isMatch:!0,score:0};return o&&(A.indices=[[0,t.length-1]]),A}const{location:s,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,ignoreLocation:p}=this.options;let m=[],v=0,b=!1;this.chunks.forEach(({pattern:A,alphabet:w,startIndex:k})=>{const{isMatch:E,score:T,indices:R}=hJ(t,A,w,{location:s+k,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,includeMatches:o,ignoreLocation:p});E&&(b=!0),v+=T,E&&R&&(m=[...m,...R])});let x={isMatch:b,score:b?v/this.chunks.length:1};return b&&o&&(x.indices=m),x}}class Ao{constructor(t){this.pattern=t}static isMultiMatch(t){return $C(t,this.multiRegex)}static isSingleMatch(t){return $C(t,this.singleRegex)}search(){}}function $C(e,t){const n=e.match(t);return n?n[1]:null}class mJ extends Ao{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 gJ extends Ao{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 yJ extends Ao{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 vJ extends Ao{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 bJ extends Ao{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 _J extends Ao{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 KD extends Ao{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:o=ze.distance,includeMatches:s=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:u=ze.minMatchCharLength,isCaseSensitive:d=ze.isCaseSensitive,ignoreDiacritics:f=ze.ignoreDiacritics,ignoreLocation:p=ze.ignoreLocation}={}){super(t),this._bitapSearch=new GD(t,{location:n,threshold:r,distance:o,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 qD extends Ao{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,o.push([r,n-1]);const l=!!o.length;return{isMatch:l,score:l?0:1,indices:o}}}const Uv=[mJ,qD,yJ,vJ,_J,bJ,gJ,KD],HC=Uv.length,EJ=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,SJ="|";function xJ(e,t={}){return e.split(SJ).map(n=>{let r=n.trim().split(EJ).filter(s=>s&&!!s.trim()),o=[];for(let s=0,l=r.length;s<l;s+=1){const u=r[s];let d=!1,f=-1;for(;!d&&++f<HC;){const p=Uv[f];let m=p.isMultiMatch(u);m&&(o.push(new p(m,t)),d=!0)}if(!d)for(f=-1;++f<HC;){const p=Uv[f];let m=p.isSingleMatch(u);if(m){o.push(new p(m,t));break}}}return o})}const AJ=new Set([KD.type,qD.type]);class wJ{constructor(t,{isCaseSensitive:n=ze.isCaseSensitive,ignoreDiacritics:r=ze.ignoreDiacritics,includeMatches:o=ze.includeMatches,minMatchCharLength:s=ze.minMatchCharLength,ignoreLocation:l=ze.ignoreLocation,findAllMatches:u=ze.findAllMatches,location:d=ze.location,threshold:f=ze.threshold,distance:p=ze.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o,minMatchCharLength:s,findAllMatches:u,ignoreLocation:l,location:d,threshold:f,distance:p},t=n?t:t.toLowerCase(),t=r?rh(t):t,this.pattern=t,this.query=xJ(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:o,ignoreDiacritics:s}=this.options;t=o?t:t.toLowerCase(),t=s?rh(t):t;let l=0,u=[],d=0;for(let f=0,p=n.length;f<p;f+=1){const m=n[f];u.length=0,l=0;for(let v=0,b=m.length;v<b;v+=1){const x=m[v],{isMatch:A,indices:w,score:k}=x.search(t);if(A){if(l+=1,d+=k,r){const E=x.constructor.type;AJ.has(E)?u=[...u,...w]:u.push(w)}}else{d=0,l=0,u.length=0;break}}if(l){let v={isMatch:!0,score:d/l};return r&&(v.indices=u),v}}return{isMatch:!1,score:1}}}const Fv=[];function TJ(...e){Fv.push(...e)}function $v(e,t){for(let n=0,r=Fv.length;n<r;n+=1){let o=Fv[n];if(o.condition(e,t))return new o(e,t)}return new GD(e,t)}const ih={AND:"$and",OR:"$or"},Hv={PATH:"$path",PATTERN:"$val"},Gv=e=>!!(e[ih.AND]||e[ih.OR]),CJ=e=>!!e[Hv.PATH],RJ=e=>!Ai(e)&&UD(e)&&!Gv(e),GC=e=>({[ih.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function WD(e,t,{auto:n=!0}={}){const r=o=>{let s=Object.keys(o);const l=CJ(o);if(!l&&s.length>1&&!Gv(o))return r(GC(o));if(RJ(o)){const d=l?o[Hv.PATH]:s[0],f=l?o[Hv.PATTERN]:o[d];if(!$r(f))throw new Error(JQ(d));const p={keyId:Vv(d),pattern:f};return n&&(p.searcher=$v(f,t)),p}let u={children:[],operator:s[0]};return s.forEach(d=>{const f=o[d];Ai(f)&&f.forEach(p=>{u.children.push(r(p))})}),u};return Gv(e)||(e=GC(e)),r(e)}function kJ(e,{ignoreFieldNorm:t=ze.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:s,score:l})=>{const u=o?o.weight:null;r*=Math.pow(l===0&&u?Number.EPSILON:l,(u||1)*(t?1:s))}),n.score=r})}function NJ(e,t){const n=e.matches;t.matches=[],Wn(n)&&n.forEach(r=>{if(!Wn(r.indices)||!r.indices.length)return;const{indices:o,value:s}=r;let l={indices:o,value:s};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function IJ(e,t){t.score=e.score}function OJ(e,t,{includeMatches:n=ze.includeMatches,includeScore:r=ze.includeScore}={}){const o=[];return n&&o.push(NJ),r&&o.push(IJ),e.map(s=>{const{idx:l}=s,u={item:t[l],refIndex:l};return o.length&&o.forEach(d=>{d(s,u)}),u})}class Qs{constructor(t,n={},r){this.options={...ze,...n},this.options.useExtendedSearch,this._keyStore=new rJ(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Y_))throw new Error(QQ);this._myIndex=n||HD(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Wn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,o-=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:o,shouldSort:s,sortFn:l,ignoreFieldNorm:u}=this.options;let d=$r(t)?$r(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return kJ(d,{ignoreFieldNorm:u}),s&&d.sort(l),VD(n)&&n>-1&&(d=d.slice(0,n)),OJ(d,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=$v(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:s,i:l,n:u})=>{if(!Wn(s))return;const{isMatch:d,score:f,indices:p}=n.searchIn(s);d&&o.push({item:s,idx:l,matches:[{score:f,value:s,norm:u,indices:p}]})}),o}_searchLogical(t){const n=WD(t,this.options),r=(u,d,f)=>{if(!u.children){const{keyId:m,searcher:v}=u,b=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(d,m),searcher:v});return b&&b.length?[{idx:f,item:d,matches:b}]:[]}const p=[];for(let m=0,v=u.children.length;m<v;m+=1){const b=u.children[m],x=r(b,d,f);if(x.length)p.push(...x);else if(u.operator===ih.AND)return[]}return p},o=this._myIndex.records,s={},l=[];return o.forEach(({$:u,i:d})=>{if(Wn(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=$v(t,this.options),{keys:r,records:o}=this._myIndex,s=[];return o.forEach(({$:l,i:u})=>{if(!Wn(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(!Wn(n))return[];let o=[];if(Ai(n))n.forEach(({v:s,i:l,n:u})=>{if(!Wn(s))return;const{isMatch:d,score:f,indices:p}=r.searchIn(s);d&&o.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&&o.push({score:d,key:t,value:s,norm:l,indices:f})}return o}}Qs.version="7.1.0";Qs.createIndex=HD;Qs.parseIndex=dJ;Qs.config=ze;Qs.parseQuery=WD;TJ(wJ);const Rc=({children:e,className:t,identifier:n,...r})=>y.jsx("div",{className:me("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`dropdown-container-${n}`,...r,children:e}),DJ=({children:e,identifier:t,className:n,label:r,...o})=>y.jsx(lt,{className:me("w-full cursor-pointer",n),label:r??`Open panel ${t}`,"aria-haspopup":"true","aria-controls":`dropdown-panel-${t}`,id:`dropdown-trigger-${t}`,onClick:s=>{s.currentTarget.focus()},variant:"none",...o,children:e}),LJ=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:o="start",identifier:s,className:l,...u})=>y.jsx("div",{className:me("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",o==="start"&&"left-0",o==="end"&&"right-0",l),"aria-hidden":t,role:"region","aria-labelledby":`dropdown-trigger-${s}`,id:`dropdown-panel-${s}`,children:y.jsx(Tb,{isHidden:t,className:me("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})});Rc.Trigger=DJ;Rc.Panel=LJ;const kc=(e,t)=>{const[n,r]=S.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}});S.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 o=S.useCallback(l=>{r(u=>{const d=typeof l=="function"?l(u):l;return localStorage?.setItem(e,JSON.stringify(d)),d})},[e,r]),s=S.useCallback(()=>{const l=localStorage?.getItem(e);l&&r(JSON.parse(l))},[e,r]);return S.useMemo(()=>[n,o,s],[n,o,s])},ZD=S.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),YD=()=>S.useContext(ZD),jJ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=vb(),[o,s]=kc("locale-content-selector-selected-locales",t??[r]);return y.jsx(ZD,{value:{availableLocales:e,selectedLocales:o,setSelectedLocales:s},children:n})},my="locale-switcher-content",PJ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:o,languageListLabel:s,seeAllLocalesSwitch:l}=dn("locale-switcher-content"),u=S.useRef(null),{locale:d}=vb(),{availableLocales:f,selectedLocales:p,setSelectedLocales:m}=YD(),v=S.useMemo(()=>f.map(C=>{const I=gf(C,B.ENGLISH),D=gf(C,d),L=gf(C);return{locale:C,englishName:I,currentLocaleName:D,ownLocaleName:L}}),[f,d]),[b,x]=S.useState(v),[A,w]=kc("locale-content-selector-see-all-locales",!1),k=S.useMemo(()=>{const C={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new Qs(v,C)},[v]),E=S.useCallback(C=>{if(C){const I=k.search(C).map(D=>D.item);x(I)}else x(v)},[k,v]),T=C=>{t?p.includes(C)?p.length>1&&m(I=>I.filter(D=>D!==C)):m(I=>[...I,C]):m([C])},R=C=>{w(C),m(C?f:[d])};return y.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":o.value,children:y.jsxs(Rc,{identifier:my,children:[y.jsx(Rc.Trigger,{identifier:my,children:y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("div",{className:"px-2 py-1",children:y.jsx(p$,{size:18})}),y.jsx(v$,{className:"self-center",size:18})]})}),y.jsx(Rc.Panel,{identifier:my,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:y.jsxs(kr,{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&&y.jsx("div",{className:"m-auto p-2",children:y.jsx(_u,{defaultValue:!1,onChange:R,color:vu.TEXT,size:bu.SM,className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&A)&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"p-3",children:y.jsx(Ws,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:C=>E(C.target.value),ref:u})}),y.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:b.map(({locale:C,currentLocaleName:I,ownLocaleName:D})=>y.jsx("li",{className:"px-1.5 py-1",children:y.jsx(lt,{onClick:()=>T(C),label:`${n} ${I}`,disabled:!(f??f).includes(C),isActive:p.includes(C),variant:ot.HOVERABLE,color:it.TEXT,isFullWidth:!0,textAlign:ks.LEFT,size:wn.SM,children:y.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&y.jsx("div",{className:"w-4",children:p.includes(C)&&y.jsx(Us,{className:"size-full"})}),y.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[y.jsxs("div",{className:"flex flex-col text-nowrap",children:[y.jsx("span",{dir:AV(C),lang:C,children:D}),y.jsx("span",{className:"text-neutral text-xs",children:I})]}),y.jsx("span",{className:"text-neutral text-sm",children:C.toUpperCase()})]})]})})},C))})]})]})})]})})},MJ=(e,t,n)=>{const r={...e};for(const o of Object.keys(e))o===t?(r[n]=e[t],delete r[t]):r[o]=e[o];return r},Kv=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:o,...s})=>{const[l,u]=S.useState(e),[d,f]=S.useState(0),p=l!==e,m=()=>{u(e),f(w=>w+1)},v=()=>{t(l)},b=w=>{u(w.currentTarget.value)},x=w=>{w.key==="Enter"&&!n&&A?(w.preventDefault(),v()):w.key==="Escape"&&(w.preventDefault(),m())};S.useEffect(()=>{u(e),f(w=>w+1)},[e]);const A=r?.(l)??!0;return y.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",role:"group","aria-label":"Content editor input",children:[y.jsx(Ws,{onChange:b,onKeyDown:x,"aria-label":"Editable input value","aria-describedby":p||o?"content-editor-input-actions":void 0,"aria-invalid":!A,variant:fo.INVISIBLE,className:"size-full",defaultValue:e,disabled:n,...s},d),(p||o)&&y.jsxs("div",{id:"content-editor-input-actions",className:"flex w-full items-center justify-end gap-2",role:"group","aria-label":"Edit actions",children:[p&&y.jsxs(y.Fragment,{children:[y.jsx(lt,{Icon:Us,label:`Save changes${A?"":" (invalid content)"}`,variant:ot.HOVERABLE,color:it.TEXT,size:wn.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!A,onClick:v,"aria-describedby":A?void 0:"validation-error"}),y.jsx(lt,{Icon:ga,label:"Cancel changes",variant:ot.HOVERABLE,size:wn.ICON_SM,color:it.TEXT,className:"cursor-pointer hover:scale-110",onClick:m,disabled:n})]}),o]})]},String(e))},zJ=()=>{const{session:e,revalidateSession:t,setSession:n}=mu(),{mutate:r}=vq(),o=e?.user?"authenticated":"unauthenticated",s=o==="authenticated",l=o==="unauthenticated",u=e?.user;return{isAuthenticated:s,isUnauthenticated:l,user:u,revalidateSession:t,logout:async()=>{n(null),r({})}}},BJ=(e,t)=>{const[n,r]=S.useState(e);return S.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>clearTimeout(o)},[e,t]),n},VJ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{mutate:o}=wq(),s=Zr(),[l,u]=S.useState(!1),[d,f]=S.useState(r),[p,m]=S.useState(""),v=S.useRef(null),b=S.useRef(null),x=S.useRef(null),[A,w]=S.useState(null),[k,E]=S.useState(-1),T=BJ(d,200);S.useEffect(()=>{typeof n.value>"u"||f(r)},[n.value,n.defaultValue]),S.useEffect(()=>{if(!e||!l)return;const C=async()=>{try{const I=v.current?.selectionStart??T.length,D=T.slice(0,I),L=T.slice(I),V=5,$=D.split(`
293
+ `),Q=$.slice(Math.max(0,$.length-V-1),-1).join(`
294
+ `),le=$[$.length-1]??"",oe=L.split(`
295
+ `).slice(1,V+1).join(`
296
+ `);o({text:D,contextBefore:Q,currentLine:le,contextAfter:oe,aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:z=>{m(z.data?.autocompletion??""),E(I)}})}catch(I){console.error("Autocomplete error:",I)}};T.length>3?(m(""),C()):m("")},[T,e,o,s]),S.useEffect(()=>{if(!p||k===-1||!b.current||!x.current){w(null);return}const C=b.current.getBoundingClientRect(),I=x.current.getBoundingClientRect();w({left:C.left-I.left,top:C.top-I.top})},[p,k,d]);const R=()=>{const C=v.current?.selectionStart??k;if(C!==k)return;const I=d.slice(0,C)+p+d.slice(C);f(I),m(""),E(-1),setTimeout(()=>{v.current?.focus();const D=C+p.length;v.current?.setSelectionRange(D,D)},0)};return y.jsxs("div",{className:"relative w-full",children:[y.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&&k!==-1?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"align-text-top text-transparent",children:d.slice(0,k)}),y.jsx("span",{ref:b,style:{visibility:"hidden"},"aria-hidden":"true",children:p}),y.jsx("span",{className:"align-text-top text-transparent",children:d.slice(k)})]}):y.jsx("span",{className:"align-text-top text-transparent",children:d}),t&&y.jsx("span",{className:"text-neutral align-text-top",children:t})]}),p&&A&&y.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}),y.jsx(O_,{...n,ref:v,value:d,onChange:C=>{u(!0),f(C.target.value),m(""),n.onChange?.(C)},onKeyDown:C=>{C.key==="Tab"&&p&&(C.preventDefault(),R()),n.onKeyDown?.(C)},onSelect:C=>{p&&C.target.selectionStart!==k&&(m(""),E(-1)),n.onSelect?.(C)}})]})},UJ=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:o,...s})=>{const{isAuthenticated:l}=zJ(),[u,d]=S.useState(e),[f,p]=S.useState(0),m=u!==e,v=()=>{d(e),p(k=>k+1)},b=()=>{t(u)},x=k=>d(k.currentTarget.value??""),A=k=>{k.key==="Enter"&&(k.metaKey||k.ctrlKey)&&!n&&w?(k.preventDefault(),b()):k.key==="Escape"&&(k.preventDefault(),v())};S.useEffect(()=>{d(e),p(k=>k+1)},[e]);const w=r?.(u)??!0;return y.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",role:"group","aria-label":"Content editor textarea",children:[y.jsx(VJ,{onChange:x,onKeyDown:A,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,disabled:n,"aria-label":"Editable textarea content","aria-describedby":m||o?"content-editor-textarea-actions":void 0,"aria-invalid":!w,...s},f),(m||o)&&y.jsxs("div",{id:"content-editor-textarea-actions",className:"flex w-full items-center justify-end gap-2",role:"group","aria-label":"Edit actions",children:[m&&y.jsxs(y.Fragment,{children:[y.jsx(lt,{Icon:Us,label:`Save changes${w?"":" (invalid content)"}`,variant:ot.HOVERABLE,color:it.TEXT,size:wn.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!w,onClick:b,"aria-describedby":w?void 0:"textarea-validation-error"}),y.jsx(lt,{Icon:ga,label:"Cancel changes",variant:ot.HOVERABLE,size:wn.ICON_SM,color:it.TEXT,className:"cursor-pointer hover:scale-110",onClick:v,disabled:n})]}),o]})]},e)},FJ=700,XD=({isRollable:e=!0,minHeight:t=FJ,children:n,className:r})=>{const[o,s]=S.useState(0),[l,u]=S.useState(!0),d=S.useRef(null),{expandCollapseContent:f}=dn("expand-collapse"),p=o>t;return S.useEffect(()=>{d.current&&s(d.current.clientHeight)},[]),e?p?y.jsxs(Tb,{isHidden:l,minHeight:t,className:"w-full overflow-x-scroll overflow-y-hidden",children:[y.jsx("div",{className:me("grid w-full",r),ref:d,children:n}),y.jsx("button",{className:me("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(m=>!m),children:f(l)})]}):y.jsx("div",{className:me("grid w-full",r),ref:d,children:n}):n},$J=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function HJ(e,t,n){const r=[];for(const o of e){if(n==="v3"){const u=o.children.flatMap((d,f)=>{if(d.type!=="element")return d;const p=d.children[0];if(p.type!=="text")return d;const m=f===o.children.length-1;if(!qC(p.value,m))return d;const b=p.value.split(/(\s+\/\/)/);if(b.length<=1)return d;let x=[b[0]];for(let A=1;A<b.length;A+=2)x.push(b[A]+(b[A+1]||""));return x=x.filter(Boolean),x.length<=1?d:x.map(A=>({...d,children:[{type:"text",value:A}]}))});u.length!==o.children.length&&(o.children=u)}const s=o.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,m=qC(f.value,p);if(m)if(t&&!p&&u!==0){const v=KC(s[u-1],"{")&&KC(s[u+1],"}");r.push({info:m,line:o,token:d,isLineCommentOnly:s.length===3&&d.children.length===1,isJsxStyle:v})}else r.push({info:m,line:o,token:d,isLineCommentOnly:s.length===1&&d.children.length===1,isJsxStyle:!1})}}return r}function KC(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function qC(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const o=e.length-n.length-r;for(const[s,l]of $J){if(l&&!t)continue;const u=s.exec(n);if(u)return[" ".repeat(r)+u[1],u[2],u[3]?u[3]+" ".repeat(o):void 0]}}function GJ(e){const t=e.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return t&&t[1].trim().length===0?e.slice(0,t.index):e}function QD(e,t,n,r){return r==null&&(r="v3"),{name:e,code(o){const s=o.children.filter(f=>f.type==="element"),l=[];o.data??={};const u=o.data;u._shiki_notation??=HJ(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 m=!1;if(f.info[1]=f.info[1].replace(t,(...b)=>n.call(this,b,f.line,f.token,s,p)?(m=!0,""):b[0]),!m)continue;r==="v1"&&(f.info[1]=GJ(f.info[1]));const v=f.info[1].trim().length===0;if(v&&(f.info[1]=""),v&&f.isLineCommentOnly)l.push(f.line);else if(v&&f.isJsxStyle)f.line.children.splice(f.line.children.indexOf(f.token)-1,3);else if(v)f.line.children.splice(f.line.children.indexOf(f.token),1);else{const b=f.token.children[0];b.type==="text"&&(b.value=f.info.join(""))}}for(const f of l){const p=o.children.indexOf(f),m=o.children[p+1];let v=1;m?.type==="text"&&m?.value===`
297
+ `&&(v=2),o.children.splice(p,v)}}}}function KJ(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const o=r.split("-").map(s=>Number.parseInt(s,10));return o.length===1?[o[0]]:Array.from({length:o[1]-o[0]+1},(s,l)=>l+o[0])}):null}const WC=Symbol("highlighted-lines");function qJ(e={}){const{className:t="highlighted"}=e;return{name:"@shikijs/transformers:meta-highlight",line(n,r){if(!this.options.meta?.__raw)return;const o=this.meta;return o[WC]??=KJ(this.options.meta.__raw),(o[WC]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function WJ(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function ZJ(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){if(!this.options.meta?.__raw)return;const o=WJ(this.options.meta.__raw);r.decorations||=[];for(const s of o){const l=YJ(n,s);for(const u of l)r.decorations.push({start:u,end:u+s.length,properties:{class:t}})}}}}function YJ(e,t){const n=[];let r=0;for(;;){const o=e.indexOf(t,r);if(o===-1||o>=e.length||o<r)break;n.push(o),r=o+t.length}return n}function XJ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function X_(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return QD(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(XJ).join("|")})(:\\d+)?\\]`),function([o,s,l=":1"],u,d,f,p){const m=Number.parseInt(l.slice(1),10);for(let v=p;v<Math.min(p+m,f.length);v++)this.addClassToHast(f[v],n[s]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function QJ(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return X_({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function JJ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return X_({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function eee(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return X_({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function tee(e,t,n,r){const o=JD(e);let s=o.indexOf(n);for(;s!==-1;)nee.call(this,e.children,t,s,n.length,r),s=o.indexOf(n,s+1)}function JD(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(JD).join(""):""}function nee(e,t,n,r,o){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(ree([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 m=iee(u,d,f,p);this.addClassToHast(m[1],o);const v=m.filter(Boolean);e.splice(l,1,...v),l+=v.length-1}s+=d.value.length}}}function ree(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function iee(e,t,n,r){const o=t.value,s=l=>oee(e,{children:[{type:"text",value:l}]});return[n>0?s(o.slice(0,n)):void 0,s(o.slice(n,n+r)),n+r<o.length?s(o.slice(n+r)):void 0]}function oee(e,t){return{...e,properties:{...e.properties},...t}}function aee(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return QD("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,o,s],l,u,d,f){const p=s?Number.parseInt(s.slice(1),10):d.length;o=o.replace(/\\(.)/g,"$1");for(let m=f;m<Math.min(f+p,d.length);m++)tee.call(this,d[m],u,o,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const see="modulepreload",lee=function(e){return"/"+e},ZC={},j=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let f=function(p){return Promise.all(p.map(m=>Promise.resolve(m).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};var l=f;document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=f(n.map(p=>{if(p=lee(p),p in ZC)return;ZC[p]=!0;const m=p.endsWith(".css"),v=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":see,m||(b.as="script"),b.crossOrigin="",b.href=p,d&&b.setAttribute("nonce",d),document.head.appendChild(b),m)return new Promise((x,A)=>{b.addEventListener("load",x),b.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 o.then(u=>{for(const d of u||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})};let Ut=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function cee(e){return Q_(e)}function Q_(e){return Array.isArray(e)?uee(e):e instanceof RegExp?e:typeof e=="object"?dee(e):e}function uee(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Q_(e[n]);return t}function dee(e){let t={};for(let n in e)t[n]=Q_(e[n]);return t}function eL(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function tL(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?tL(e.substring(0,e.length-1)):e.substr(~t+1)}var gy=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,af=class{static hasCaptures(e){return e===null?!1:(gy.lastIndex=0,gy.test(e))}static replaceCaptures(e,t,n){return e.replace(gy,(r,o,s,l)=>{let u=n[parseInt(o||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 nL(e,t){return e<t?-1:e>t?1:0}function rL(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 o=0;o<n;o++){let s=nL(e[o],t[o]);if(s!==0)return s}return 0}return n-r}function YC(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 iL(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var oL=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}},oh=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(pee(e),t)}static createFromParsedTheme(e,t){return gee(e,t)}_cachedMatchRoot=new oL(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(o=>fee(e.parent,o.parentScopes));return r?new aL(r.fontStyle,r.foreground,r.background):null}},yy=class Rf{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Rf(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Rf(n,t[r]);return n}push(t){return new Rf(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 fee(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!hee(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function hee(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var aL=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function pee(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,s=t.length;o<s;o++){let l=t[o];if(!l.settings)continue;let u;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),u=m.split(",")}else Array.isArray(l.scope)?u=l.scope:u=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let v=0,b=m.length;v<b;v++)switch(m[v]){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"&&YC(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&YC(l.settings.background)&&(p=l.settings.background);for(let m=0,v=u.length;m<v;m++){let x=u[m].trim().split(" "),A=x[x.length-1],w=null;x.length>1&&(w=x.slice(0,x.length-1),w.reverse()),n[r++]=new mee(A,w,o,d,f,p)}}return n}var mee=class{constructor(e,t,n,r,o,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=s}},vn=(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))(vn||{});function gee(e,t){e.sort((d,f)=>{let p=nL(d.scope,f.scope);return p!==0||(p=rL(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",o="#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&&(o=d.background)}let s=new yee(t),l=new aL(n,s.getId(r),s.getId(o)),u=new bee(new qv(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 oh(s,l,u)}var yee=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)}},vee=Object.freeze([]),qv=class sL{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,s){this.scopeDepth=t,this.parentScopes=n||vee,this.fontStyle=r,this.foreground=o,this.background=s}clone(){return new sL(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},bee=class Wv{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,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const s=n.parentScopes[o].length-t.parentScopes[r].length;if(s!==0)return s;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,s;if(r===-1?(o=t,s=""):(o=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Wv._cmpBySpecificity),n}insert(t,n,r,o,s,l){if(n===""){this._doInsertHere(t,r,o,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 Wv(this._mainRule.clone(),qv.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,o,s,l)}_doInsertHere(t,n,r,o,s){if(n===null){this._mainRule.acceptOverwrite(t,r,o,s);return}for(let l=0,u=this._rulesWithParentScopes.length;l<u;l++){let d=this._rulesWithParentScopes[l];if(rL(d.parentScopes,n)===0){d.acceptOverwrite(t,r,o,s);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new qv(t,n,r,o,s))}},Ls=class lr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=lr.getLanguageId(t),r=lr.getTokenType(t),o=lr.getFontStyle(t),s=lr.getForeground(t),l=lr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,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,o,s,l,u){let d=lr.getLanguageId(t),f=lr.getTokenType(t),p=lr.containsBalancedBrackets(t)?1:0,m=lr.getFontStyle(t),v=lr.getForeground(t),b=lr.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),o!==null&&(p=o?1:0),s!==-1&&(m=s),l!==0&&(v=l),u!==0&&(b=u),(d<<0|f<<8|p<<10|m<<11|v<<15|b<<24)>>>0}};function ah(e,t){const n=[],r=_ee(e);let o=r.next();for(;o!==null;){let d=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let f=l();if(n.push({matcher:f,priority:d}),o!==",")break;o=r.next()}return n;function s(){if(o==="-"){o=r.next();const d=s();return f=>!!d&&!d(f)}if(o==="("){o=r.next();const d=u();return o===")"&&(o=r.next()),d}if(XC(o)){const d=[];do d.push(o),o=r.next();while(XC(o));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(m=>m(p))}function u(){const d=[];let f=l();for(;f&&(d.push(f),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");f=l()}return p=>d.some(m=>m(p))}}function XC(e){return!!e&&!!e.match(/[\w\.:]+/)}function _ee(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 lL(e){typeof e.dispose=="function"&&e.dispose()}var Kc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Eee=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},See=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))}},xee=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Kc(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new See;for(const n of e)Aee(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Kc){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 Aee(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof Kc?kf({baseGrammar:s,selfGrammar:o},r):Zv(e.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},r);const l=n.injections(e.scopeName);if(l)for(const u of l)r.add(new Kc(u))}function Zv(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];sh([r],t,n)}}function kf(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&sh(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&sh(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function sh(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?eL({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&sh(r.patterns,{...t,repository:o},n);const s=r.include;if(!s)continue;const l=cL(s);switch(l.kind){case 0:kf({...t,selfGrammar:t.baseGrammar},n);break;case 1:kf(t,n);break;case 2:Zv(l.ruleName,{...t,repository:o},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:o};l.kind===4?Zv(l.ruleName,d,n):kf(d,n)}else l.kind===4?n.add(new Eee(l.scopeName,l.ruleName)):n.add(new Kc(l.scopeName));break}}}var wee=class{kind=0},Tee=class{kind=1},Cee=class{constructor(e){this.ruleName=e}kind=2},Ree=class{constructor(e){this.scopeName=e}kind=3},kee=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function cL(e){if(e==="$base")return new wee;if(e==="$self")return new Tee;const t=e.indexOf("#");if(t===-1)return new Ree(e);if(t===0)return new Cee(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new kee(n,r)}}var Nee=/\\(\d+)/,QC=/\\(\d+)/g,Iee=-1,uL=-2;var Su=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=af.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=af.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${tL(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:af.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:af.replaceCaptures(this._contentName,e,t)}},Oee=class extends Su{retokenizeCapturedWithRuleId;constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}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!")}},Dee=class extends Su{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new qc(r,this.id),this.captures=o,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 Wc,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},JC=class extends Su{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.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 Wc,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yv=class extends Su{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,s,l,u,d,f){super(e,t,n,r),this._begin=new qc(o,this.id),this.beginCaptures=s,this._end=new qc(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 Wc;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}},lh=class extends Su{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,s,l,u,d){super(e,t,n,r),this._begin=new qc(o,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new qc(l,uL),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 Wc;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 Wc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},dL=class gn{static createCaptureRule(t,n,r,o,s){return t.registerRule(l=>new Oee(n,l,r,o,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new Dee(t.$vscodeTextmateLocation,t.id,t.name,t.match,gn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=eL({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new JC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,gn._compilePatterns(s,n,r))}return t.while?new lh(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,gn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,gn._compileCaptures(t.whileCaptures||t.captures,n,r),gn._compilePatterns(t.patterns,n,r)):new Yv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,gn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,gn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,gn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];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++)o[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);let d=0;t[l].patterns&&(d=gn.getCompiledRuleId(t[l],n,r)),o[u]=gn.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let s=0,l=t.length;s<l;s++){const u=t[s];let d=-1;if(u.include){const f=cL(u.include);switch(f.kind){case 0:case 1:d=gn.getCompiledRuleId(r[u.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=gn.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,v=f.kind===4?f.ruleName:null,b=n.getExternalGrammar(m,r);if(b)if(v){let x=b.repository[v];x&&(d=gn.getCompiledRuleId(x,n,b.repository))}else d=gn.getCompiledRuleId(b.repository.$self,n,b.repository);break}}else d=gn.getCompiledRuleId(u,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof JC||f instanceof Yv||f instanceof lh)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;o.push(d)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},qc=class fL{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let o=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(o,u)),s.push("$(?!\\n)(?<!\\n)"),o=u+2):(f==="A"||f==="G")&&(l=!0),u++}this.hasAnchor=l,o===0?this.source=t:(s.push(t.substring(o,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=Nee.test(this.source):this.hasBackReferences=!1}clone(){return new fL(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(o=>t.substring(o.start,o.end));return QC.lastIndex=0,this.source.replace(QC,(o,s)=>iL(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=[],o=[],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,o[s]=u,u==="\\"&&s+1<l&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="￿",n[s+1]="￿",r[s+1]="A",o[s+1]="A"):d==="G"?(t[s+1]="￿",n[s+1]="G",r[s+1]="￿",o[s+1]="G"):(t[s+1]=d,n[s+1]=d,r[s+1]=d,o[s+1]=d),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.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}},Wc=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 eR(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(o=>o.resolveAnchors(t,n));return new eR(e,r,this._items.map(o=>o.ruleId))}},eR=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(`
298
+ `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},vy=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Lee=class Xv{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new vy(t,8),this._embeddedLanguagesMatcher=new jee(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Xv._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new vy(0,0);_getBasicScopeAttributes=new oL(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new vy(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Xv.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/},jee=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])=>iL(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])}},tR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function hL(e,t,n,r,o,s,l,u){const d=t.content.length;let f=!1,p=-1;if(l){const b=Pee(e,t,n,r,o,s);o=b.stack,r=b.linePos,n=b.isFirstLine,p=b.anchorPosition}const m=Date.now();for(;!f;){if(u!==0&&Date.now()-m>u)return new tR(o,!0);v()}return new tR(o,!1);function v(){const b=Mee(e,t,n,r,o,p);if(!b){s.produce(o,d),f=!0;return}const x=b.captureIndices,A=b.matchedRuleId,w=x&&x.length>0?x[0].end>r:!1;if(A===Iee){const k=o.getRule(e);s.produce(o,x[0].start),o=o.withContentNameScopesList(o.nameScopesList),yc(e,t,n,o,s,k.endCaptures,x),s.produce(o,x[0].end);const E=o;if(o=o.parent,p=E.getAnchorPos(),!w&&E.getEnterPos()===r){o=E,s.produce(o,d),f=!0;return}}else{const k=e.getRule(A);s.produce(o,x[0].start);const E=o,T=k.getName(t.content,x),R=o.contentNameScopesList.pushAttributed(T,e);if(o=o.push(A,r,p,x[0].end===d,null,R,R),k instanceof Yv){const C=k;yc(e,t,n,o,s,C.beginCaptures,x),s.produce(o,x[0].end),p=x[0].end;const I=C.getContentName(t.content,x),D=R.pushAttributed(I,e);if(o=o.withContentNameScopesList(D),C.endHasBackReferences&&(o=o.withEndRule(C.getEndWithResolvedBackReferences(t.content,x))),!w&&E.hasSameRuleAs(o)){o=o.pop(),s.produce(o,d),f=!0;return}}else if(k instanceof lh){const C=k;yc(e,t,n,o,s,C.beginCaptures,x),s.produce(o,x[0].end),p=x[0].end;const I=C.getContentName(t.content,x),D=R.pushAttributed(I,e);if(o=o.withContentNameScopesList(D),C.whileHasBackReferences&&(o=o.withEndRule(C.getWhileWithResolvedBackReferences(t.content,x))),!w&&E.hasSameRuleAs(o)){o=o.pop(),s.produce(o,d),f=!0;return}}else if(yc(e,t,n,o,s,k.captures,x),s.produce(o,x[0].end),o=o.pop(),!w){o=o.safePop(),s.produce(o,d),f=!0;return}}x[0].end>r&&(r=x[0].end,n=!1)}}function Pee(e,t,n,r,o,s){let l=o.beginRuleCapturedEOL?0:-1;const u=[];for(let d=o;d;d=d.pop()){const f=d.getRule(e);f instanceof lh&&u.push({rule:f,stack:d})}for(let d=u.pop();d;d=u.pop()){const{ruleScanner:f,findOptions:p}=Vee(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==uL){o=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(d.stack,m.captureIndices[0].start),yc(e,t,n,d.stack,s,d.rule.whileCaptures,m.captureIndices),s.produce(d.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{o=d.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}function Mee(e,t,n,r,o,s){const l=zee(e,t,n,r,o,s),u=e.getInjections();if(u.length===0)return l;const d=Bee(u,e,t,n,r,o,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 zee(e,t,n,r,o,s){const l=o.getRule(e),{ruleScanner:u,findOptions:d}=pL(l,e,o.endRule,n,r===s),f=u.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function Bee(e,t,n,r,o,s,l){let u=Number.MAX_VALUE,d=null,f,p=0;const m=s.contentNameScopesList.getScopeNames();for(let v=0,b=e.length;v<b;v++){const x=e[v];if(!x.matcher(m))continue;const A=t.getRule(x.ruleId),{ruleScanner:w,findOptions:k}=pL(A,t,null,r,o===l),E=w.findNextMatchSync(n,o,k);if(!E)continue;const T=E.captureIndices[0].start;if(!(T>=u)&&(u=T,d=E.captureIndices,f=E.ruleId,p=x.priority,u===o))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function pL(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function Vee(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function yc(e,t,n,r,o,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 m=0;m<d;m++){const v=s[m];if(v===null)continue;const b=l[m];if(b.length===0)continue;if(b.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=b.start;)o.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?o.produceFromScopes(f[f.length-1].scopes,b.start):o.produce(r,b.start),v.retokenizeCapturedWithRuleId){const A=v.getName(u,l),w=r.contentNameScopesList.pushAttributed(A,e),k=v.getContentName(u,l),E=w.pushAttributed(k,e),T=r.push(v.retokenizeCapturedWithRuleId,b.start,-1,!1,null,w,E),R=e.createOnigString(u.substring(0,b.end));hL(e,R,n&&b.start===0,b.start,T,o,!1,0),lL(R);continue}const x=v.getName(u,l);if(x!==null){const w=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(x,e);f.push(new Uee(w,b.end))}}for(;f.length>0;)o.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var Uee=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Fee(e,t,n,r,o,s,l,u){return new Hee(e,t,n,r,o,s,l,u)}function nR(e,t,n,r,o){const s=ah(t,ch),l=dL.getCompiledRuleId(n,r,o.repository);for(const u of s)e.push({debugSelector:t,matcher:u.matcher,ruleId:l,grammar:o,priority:u.priority})}function ch(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if($ee(t[o],r))return n=o+1,!0;return!1})}function $ee(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 Hee=class{constructor(e,t,n,r,o,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new Lee(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=rR(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const d of Object.keys(o)){const f=ah(d,ch);for(const p of f)this._tokenTypeMatchers.push({matcher:p.matcher,type:o[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:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const o=r.injections;if(o)for(let l in o)nR(t,l,o[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&&nR(t,d,u,this,u)}})}return t.sort((o,s)=>o.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]=rR(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=dL.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===Qv.NULL){o=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=Ls.set(0,f.languageId,f.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),v=this.getRule(this._rootId).getName(null,null);let b;v?b=Nc.createRootAndLookUpScopeName(v,m,this):b=Nc.createRoot("unknown",m),t=new Qv(null,this._rootId,-1,-1,!1,null,b,b)}else o=!1,t.reset();e=e+`
299
+ `;const s=this.createOnigString(e),l=s.content.length,u=new Kee(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=hL(this,s,o,0,t,u,!0,r);return lL(s),{lineLength:l,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function rR(e,t){return e=cee(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 Nc=class Mr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,o=t?.scopePath??null;for(const s of n)o=yy.push(o,s.scopeNames),r=new Mr(r,o,s.encodedTokenAttributes);return r}static createRoot(t,n){return new Mr(null,new yy(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),s=new yy(null,t),l=r.themeProvider.themeMatch(s),u=Mr.mergeAttributes(n,o,l);return new Mr(null,s,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Mr.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 o=-1,s=0,l=0;return r!==null&&(o=r.fontStyle,s=r.foregroundId,l=r.backgroundId),Ls.set(t,n.languageId,n.tokenType,null,o,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Mr._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const s of r)o=Mr._pushAttributed(o,s,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),u=Mr.mergeAttributes(t.tokenAttributes,o,l);return new Mr(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}},Qv=class Yo{constructor(t,n,r,o,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=o}_stackElementBrand=void 0;static NULL=new Yo(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Yo._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Nc.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(){Yo._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,s,l,u){return new Yo(this,t,n,r,o,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 Yo(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=Nc.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Yo(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Nc.fromExtension(r,n.contentNameScopesList))}},Gee=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ah(n,ch).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ah(n,ch).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}},Kee=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,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!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=Ls.set(r,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(r=Ls.set(r,0,8,o,-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,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}},qee=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,o){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,Fee(e,s,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},Wee=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new qee(oh.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(oh.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 Gee(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,o,s){const l=new xee(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(u=>this._loadSingleGrammar(u.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,o,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,o=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,o)}_grammarForScopeName(t,n=0,r=null,o=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,o,s)}},Jv=Qv.NULL;const Zee=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class xu{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}xu.prototype.normal={};xu.prototype.property={};xu.prototype.space=void 0;function mL(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new xu(n,r,t)}function eb(e){return e.toLowerCase()}class Pn{constructor(t,n){this.attribute=n,this.property=t}}Pn.prototype.attribute="";Pn.prototype.booleanish=!1;Pn.prototype.boolean=!1;Pn.prototype.commaOrSpaceSeparated=!1;Pn.prototype.commaSeparated=!1;Pn.prototype.defined=!1;Pn.prototype.mustUseProperty=!1;Pn.prototype.number=!1;Pn.prototype.overloadedBoolean=!1;Pn.prototype.property="";Pn.prototype.spaceSeparated=!1;Pn.prototype.space=void 0;let Yee=0;const $e=ba(),Bt=ba(),tb=ba(),ge=ba(),vt=ba(),ws=ba(),Hn=ba();function ba(){return 2**++Yee}const nb=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:Bt,commaOrSpaceSeparated:Hn,commaSeparated:ws,number:ge,overloadedBoolean:tb,spaceSeparated:vt},Symbol.toStringTag,{value:"Module"})),by=Object.keys(nb);class J_ extends Pn{constructor(t,n,r,o){let s=-1;if(super(t,n),iR(this,"space",o),typeof r=="number")for(;++s<by.length;){const l=by[s];iR(this,by[s],(r&nb[l])===nb[l])}}}J_.prototype.defined=!0;function iR(e,t,n){n&&(e[t]=n)}function Js(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const s=new J_(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[eb(r)]=r,n[eb(s.attribute)]=r}return new xu(t,n,e.space)}const gL=Js({properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:vt,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:ge,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:vt,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:Bt,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yL(e,t){return t in e?e[t]:t}function vL(e,t){return yL(e,t.toLowerCase())}const Xee=Js({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ws,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:vt,autoFocus:$e,autoPlay:$e,blocking:vt,capture:null,charSet:null,checked:$e,cite:null,className:vt,cols:ge,colSpan:null,content:null,contentEditable:Bt,controls:$e,controlsList:vt,coords:ge|ws,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:tb,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:vt,height:ge,hidden:tb,high:ge,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:vt,itemRef:vt,itemScope:$e,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,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:$e,optimum:ge,pattern:null,ping:vt,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:vt,required:$e,reversed:$e,rows:ge,rowSpan:ge,sandbox:vt,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:Bt,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:vL}),Qee=Js({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:Hn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:vt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ws,g2:ws,glyphName:ws,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ge,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hn,rev:Hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hn,requiredFeatures:Hn,requiredFonts:Hn,requiredFormats:Hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yL}),bL=Js({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()}}),_L=Js({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vL}),EL=Js({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Jee=/[A-Z]/g,oR=/-[a-z]/g,ete=/^data[-\w.:]+$/i;function tte(e,t){const n=eb(t);let r=t,o=Pn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ete.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(oR,rte);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!oR.test(s)){let l=s.replace(Jee,nte);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=J_}return new o(r,t)}function nte(e){return"-"+e.toLowerCase()}function rte(e){return e.charAt(1).toUpperCase()}const ite=mL([gL,Xee,bL,_L,EL],"html"),SL=mL([gL,Qee,bL,_L,EL],"svg"),aR={}.hasOwnProperty;function ote(e,t){const n=t||{};function r(o,...s){let l=r.invalid;const u=r.handlers;if(o&&aR.call(o,e)){const d=String(o[e]);l=aR.call(u,d)?u[d]:r.unknown}if(l)return l.call(this,o,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ate=/["&'<>`]/g,ste=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lte=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,cte=/[|\\{}()[\]^$+*?.]/g,sR=new WeakMap;function ute(e,t){if(e=e.replace(t.subset?dte(t.subset):ate,r),t.subset||t.escapeOnly)return e;return e.replace(ste,n).replace(lte,r);function n(o,s,l){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(o,s,l){return t.format(o.charCodeAt(0),l.charCodeAt(s+1),t)}}function dte(e){let t=sR.get(e);return t||(t=fte(e),sR.set(e,t)),t}function fte(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(cte,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const hte=/[\dA-Fa-f]/;function pte(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!hte.test(String.fromCharCode(t))?r:r+";"}const mte=/\d/;function gte(e,t,n){const r="&#"+String(e);return n&&t&&!mte.test(String.fromCharCode(t))?r:r+";"}const yte=["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"],_y={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:"€"},vte=["cent","copy","divide","gt","lt","not","para","times"],xL={}.hasOwnProperty,rb={};let sf;for(sf in _y)xL.call(_y,sf)&&(rb[_y[sf]]=sf);const bte=/[^\dA-Za-z]/;function _te(e,t,n,r){const o=String.fromCharCode(e);if(xL.call(rb,o)){const s=rb[o],l="&"+s;return n&&yte.includes(s)&&!vte.includes(s)&&(!r||t&&t!==61&&bte.test(String.fromCharCode(t)))?l:l+";"}return""}function Ete(e,t,n){let r=pte(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=_te(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const s=gte(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function Ts(e,t){return ute(e,Object.assign({format:Ete},t))}const Ste=/^>|^->|<!--|-->|--!>|<!-$/g,xte=[">"],Ate=["<",">"];function wte(e,t,n,r){return r.settings.bogusComments?"<?"+Ts(e.value,Object.assign({},r.settings.characterReferences,{subset:xte}))+">":"<!--"+e.value.replace(Ste,o)+"-->";function o(s){return Ts(s,Object.assign({},r.settings.characterReferences,{subset:Ate}))}}function Tte(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function lR(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function Cte(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Rte(e){return e.join(" ").trim()}const kte=/[ \t\n\f\r]/g;function e0(e){return typeof e=="object"?e.type==="text"?cR(e.value):!1:cR(e)}function cR(e){return e.replace(kte,"")===""}const Yt=wL(1),AL=wL(-1),Nte=[];function wL(e){return t;function t(n,r,o){const s=n?n.children:Nte;let l=(r||0)+e,u=s[l];if(!o)for(;u&&e0(u);)l+=e,u=s[l];return u}}const Ite={}.hasOwnProperty;function TL(e){return t;function t(n,r,o){return Ite.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const t0=TL({body:Dte,caption:Ey,colgroup:Ey,dd:Mte,dt:Pte,head:Ey,html:Ote,li:jte,optgroup:zte,option:Bte,p:Lte,rp:uR,rt:uR,tbody:Ute,td:dR,tfoot:Fte,th:dR,thead:Vte,tr:$te});function Ey(e,t,n){const r=Yt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&e0(r.value.charAt(0)))}function Ote(e,t,n){const r=Yt(n,t);return!r||r.type!=="comment"}function Dte(e,t,n){const r=Yt(n,t);return!r||r.type!=="comment"}function Lte(e,t,n){const r=Yt(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 jte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Pte(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Mte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function uR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function zte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Bte(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Vte(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ute(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Fte(e,t,n){return!Yt(n,t)}function $te(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function dR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Hte=TL({body:qte,colgroup:Wte,head:Kte,html:Gte,tbody:Zte});function Gte(e){const t=Yt(e,-1);return!t||t.type!=="comment"}function Kte(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 qte(e){const t=Yt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&e0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Wte(e,t,n){const r=AL(n,t),o=Yt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&t0(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function Zte(e,t,n){const r=AL(n,t),o=Yt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&t0(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const lf={name:[[`
300
+ \f\r &/=>`.split(""),`
301
+ \f\r "&'/=>\``.split("")],[`\0
302
+ \f\r "&'/<=>`.split(""),`\0
303
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
304
+ \f\r &>`.split(""),`\0
305
+ \f\r "&'<=>\``.split("")],[`\0
306
+ \f\r "&'<=>\``.split(""),`\0
307
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Yte(e,t,n,r){const o=r.schema,s=o.space==="svg"?!1:r.settings.omitOptionalTags;let l=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let d;o.space==="html"&&e.tagName==="svg"&&(r.schema=SL);const f=Xte(r,e.properties),p=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,p&&(l=!1),(f||!s||!Hte(e,t,n))&&(u.push("<",e.tagName,f?" "+f:""),l&&(o.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||!t0(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function Xte(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const s=Qte(e,o,t[o]);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 Qte(e,t,n){const r=tte(e.schema,t),o=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=Ts(r.attribute,Object.assign({},e.settings.characterReferences,{subset:lf.name[o][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Cte:Rte)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=Ts(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:lf.unquoted[o][s]}))),u!==n&&(e.settings.quoteSmart&&lR(n,l)>lR(n,e.alternative)&&(l=e.alternative),u=l+Ts(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?lf.single:lf.double)[o][s],attribute:!0}))+l),d+(u&&"="+u))}const Jte=["<","&"];function CL(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ts(e.value,Object.assign({},r.settings.characterReferences,{subset:Jte}))}function ene(e,t,n,r){return r.settings.allowDangerousHtml?e.value:CL(e,t,n,r)}function tne(e,t,n,r){return r.all(e)}const nne=ote("type",{invalid:rne,unknown:ine,handlers:{comment:wte,doctype:Tte,element:Yte,raw:ene,root:tne,text:CL}});function rne(e){throw new Error("Expected node, not `"+e+"`")}function ine(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const one={},ane={},sne=[];function lne(e,t){const n=t||one,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:cne,all:une,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||Zee,characterReferences:n.characterReferences||ane,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?SL:ite,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function cne(e,t,n){return nne(e,t,n,this)}function une(e){const t=[],n=e&&e.children||sne;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function uh(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[o]=s:o===r&&Object.assign(n,s);return n}function oo(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function dne(e){return Array.isArray(e)?e:[e]}async function RL(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function n0(e){return!e||["plaintext","txt","text","plain"].includes(e)}function kL(e){return e==="ansi"||n0(e)}function r0(e){return e==="none"}function NL(e){return r0(e)}function IL(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 Kh(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const o=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];o.push([l,r]),r+=n[s].length,r+=n[s+1]?.length||0}return o}function fne(e){const t=Kh(e,!0).map(([o])=>o);function n(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=o,l=0;for(const u of t){if(s<u.length)break;s-=u.length,l++}return{line:l,character:s}}function r(o,s){let l=0;for(let u=0;u<o;u++)l+=t[u].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}function hne(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 o=n.getBundledLanguages();return Array.from(r).filter(s=>s&&o[s])}const i0="light-dark()",pne=["color","background-color"];function mne(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function gne(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const s=n.filter(l=>o.offset<l&&l<o.offset+o.content.length).map(l=>l-o.offset).sort((l,u)=>l-u);return s.length?mne(o,s):o})):e}function yne(e,t,n,r,o="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(p=>dh(e.variants[p])),u=new Set(l.flatMap(p=>Object.keys(p))),d={},f=(p,m)=>{const v=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return n+t[p]+(m==="color"?"":v)};return l.forEach((p,m)=>{for(const v of u){const b=p[v]||"inherit";if(m===0&&r&&pne.includes(v))if(r===i0&&l.length>1){const x=t.findIndex(E=>E==="light"),A=t.findIndex(E=>E==="dark");if(x===-1||A===-1)throw new Ut('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const w=l[x][v]||"inherit",k=l[A][v]||"inherit";d[v]=`light-dark(${w}, ${k})`,o==="css-vars"&&(d[f(m,v)]=b)}else d[v]=b;else o==="css-vars"&&(d[f(m,v)]=b)}}),s.htmlStyle=d,s}function dh(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&vn.Italic&&(t["font-style"]="italic"),e.fontStyle&vn.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&vn.Underline&&n.push("underline"),e.fontStyle&vn.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function ib(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const OL=new WeakMap;function qh(e,t){OL.set(e,t)}function Zc(e){return OL.get(e)}class el{_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 el(Object.fromEntries(dne(n).map(r=>[r,Jv])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,o]=t;this.lang=r,this._stacks={[o]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return vne(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function vne(e){const t=[],n=new Set;function r(o){if(n.has(o))return;n.add(o);const s=o?.nameScopesList?.scopeName;s&&t.push(s),o.parent&&r(o.parent)}return r(e),t}function bne(e,t){if(!(e instanceof el))throw new Ut("Invalid grammar state");return e.getInternalStack(t)}function _ne(){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 Ut(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...o.indexToPos(l),offset:l}}else{const u=o.lines[l.line];if(u===void 0)throw new Ut(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${o.lines.length}`);let d=l.character;if(d<0&&(d=u.length+d),d<0||d>u.length)throw new Ut(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${u.length}`);return{...l,character:d,offset:o.posToIndex(l.line,d)}}};const o=fne(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));Ene(s),e.set(n.meta,{decorations:s,converter:o,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const o=t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return gne(n,o)},code(n){if(!this.options.decorations?.length)return;const r=t(this),o=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(o.length!==r.converter.lines.length)throw new Ut(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(p,m,v,b){const x=o[p];let A="",w=-1,k=-1;if(m===0&&(w=0),v===0&&(k=0),v===Number.POSITIVE_INFINITY&&(k=x.children.length),w===-1||k===-1)for(let T=0;T<x.children.length;T++)A+=DL(x.children[T]),w===-1&&A.length===m&&(w=T+1),k===-1&&A.length===v&&(k=T+1);if(w===-1)throw new Ut(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(k===-1)throw new Ut(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const E=x.children.slice(w,k);if(!b.alwaysWrap&&E.length===x.children.length)u(x,b,"line");else if(!b.alwaysWrap&&E.length===1&&E[0].type==="element")u(E[0],b,"token");else{const T={type:"element",tagName:"span",properties:{},children:E};u(T,b,"wrapper"),x.children.splice(w,E.length,T)}}function l(p,m){o[p]=u(o[p],m,"line")}function u(p,m,v){const b=m.properties||{},x=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,...b,class:p.properties.class},m.properties?.class&&IL(p,m.properties.class),p=x(p,v)||p,p}const d=[],f=r.decorations.sort((p,m)=>m.start.offset-p.start.offset||p.end.offset-m.end.offset);for(const p of f){const{start:m,end:v}=p;if(m.line===v.line)s(m.line,m.character,v.character,p);else if(m.line<v.line){s(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let b=m.line+1;b<v.line;b++)d.unshift(()=>l(b,p));s(v.line,0,v.character,p)}}d.forEach(p=>p())}}}function Ene(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ut(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const o=e[r],s=n.start.offset<=o.start.offset&&o.start.offset<n.end.offset,l=n.start.offset<o.end.offset&&o.end.offset<=n.end.offset,u=o.start.offset<=n.start.offset&&n.start.offset<o.end.offset,d=o.start.offset<n.end.offset&&n.end.offset<=o.end.offset;if(s||l||u||d){if(s&&l||u&&d||u&&n.start.offset===n.end.offset||l&&o.start.offset===o.end.offset)continue;throw new Ut(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function DL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(DL).join(""):""}const Sne=[_ne()];function fh(e){const t=xne(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Sne]}function xne(e){const t=[],n=[],r=[];for(const o of e)switch(o.enforce){case"pre":t.push(o);break;case"post":n.push(o);break;default:r.push(o)}return{pre:t,post:n,normal:r}}var na=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Sy={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ane(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 fR(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 wne(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)Sy[r]&&t.push({type:"setDecoration",value:Sy[r]});else if(r<=29){const o=Sy[r-20];o&&(t.push({type:"resetDecoration",value:o}),o==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:na[r-30]}});else if(r===38){const o=fR(e);o&&t.push({type:"setForegroundColor",value:o})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:na[r-40]}});else if(r===48){const o=fR(e);o&&t.push({type:"setBackgroundColor",value:o})}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:na[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:na[r-100+8]}})}return t}function Tne(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let s=0;do{const l=Ane(r,s),u=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(u.length>0&&o.push({value:u,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=wne(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 o}}}var Cne={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 Rne(e=Cne){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 o(){if(r)return r;r=[];for(let f=0;f<na.length;f++)r.push(t(na[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 m=0;m<6;m++)r.push(n([u[f],u[p],u[m]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function s(u){return o()[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 kne(e,t,n){const r=uh(e,n),o=Kh(t),s=Rne(Object.fromEntries(na.map(u=>[u,e.colors?.[`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`]]))),l=Tne();return o.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=oo(f,r),p=oo(p,r),d.decorations.has("dim")&&(f=Nne(f));let m=vn.None;return d.decorations.has("bold")&&(m|=vn.Bold),d.decorations.has("italic")&&(m|=vn.Italic),d.decorations.has("underline")&&(m|=vn.Underline),d.decorations.has("strikethrough")&&(m|=vn.Strikethrough),{content:d.value,offset:u[1],color:f,bgColor:p,fontStyle:m}}))}function Nne(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 o0(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(n0(r)||r0(o))return Kh(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:s,colorMap:l}=e.setTheme(o);if(r==="ansi")return kne(s,t,n);const u=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==u.name)throw new Ut(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Ut(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return One(t,u,s,l,n)}function Ine(...e){if(e.length===2)return Zc(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:s=t.getLoadedThemes()[0]}=r;if(n0(o)||r0(s))throw new Ut("Plain language does not have grammar state");if(o==="ansi")throw new Ut("ANSI language does not have grammar state");const{theme:l,colorMap:u}=t.setTheme(s),d=t.getLanguage(o);return new el(hh(n,d,l,u,r).stateStack,d.name,l.name)}function One(e,t,n,r,o){const s=hh(e,t,n,r,o),l=new el(hh(e,t,n,r,o).stateStack,t.name,n.name);return qh(s.tokens,l),s.tokens}function hh(e,t,n,r,o){const s=uh(n,o),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:u=500}=o,d=Kh(e);let f=o.grammarState?bne(o.grammarState,n.name)??Jv:o.grammarContextCode!=null?hh(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:Jv,p=[];const m=[];for(let v=0,b=d.length;v<b;v++){const[x,A]=d[v];if(x===""){p=[],m.push([]);continue}if(l>0&&x.length>=l){p=[],m.push([{content:x,offset:A,color:"",fontStyle:0}]);continue}let w,k,E;o.includeExplanation&&(w=t.tokenizeLine(x,f,u),k=w.tokens,E=0);const T=t.tokenizeLine2(x,f,u),R=T.tokens.length/2;for(let C=0;C<R;C++){const I=T.tokens[2*C],D=C+1<R?T.tokens[2*C+2]:x.length;if(I===D)continue;const L=T.tokens[2*C+1],V=oo(r[Ls.getForeground(L)],s),$=Ls.getFontStyle(L),Z={content:x.substring(I,D),offset:A+I,color:V,fontStyle:$};if(o.includeExplanation){const Q=[];if(o.includeExplanation!=="scopeName")for(const q of n.settings){let oe;switch(typeof q.scope){case"string":oe=q.scope.split(/,/).map(z=>z.trim());break;case"object":oe=q.scope;break;default:continue}Q.push({settings:q,selectors:oe.map(z=>z.split(/ /))})}Z.explanation=[];let le=0;for(;I+le<D;){const q=k[E],oe=x.substring(q.startIndex,q.endIndex);le+=oe.length,Z.explanation.push({content:oe,scopes:o.includeExplanation==="scopeName"?Dne(q.scopes):Lne(Q,q.scopes)}),E+=1}}p.push(Z)}m.push(p),p=[],f=T.ruleStack}return{tokens:m,stateStack:f}}function Dne(e){return e.map(t=>({scopeName:t}))}function Lne(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const s=t[r];n[r]={scopeName:s,themeMatches:Pne(e,s,t.slice(0,r))}}return n}function hR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function jne(e,t,n){if(!hR(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)hR(e[r],n[o])&&(r-=1),o-=1;return r===-1}function Pne(e,t,n){const r=[];for(const{selectors:o,settings:s}of e)for(const l of o)if(jne(l,t,n)){r.push(s);break}return r}function LL(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),o=r.map(d=>{const f=o0(e,t,{...n,theme:d.theme}),p=Zc(f),m=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:m}}),s=Mne(...o.map(d=>d.tokens)),l=s[0].map((d,f)=>d.map((p,m)=>{const v={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(v.explanation=p.explanation),s.forEach((b,x)=>{const{content:A,explanation:w,offset:k,...E}=b[f][m];v.variants[r[x].color]=E}),v})),u=o[0].state?new el(Object.fromEntries(o.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),o[0].state.lang):void 0;return u&&qh(l,u),l}function Mne(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(d=>d[r]),s=t.map(()=>[]);t.forEach((d,f)=>d.push(s[f]));const l=o.map(()=>0),u=o.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]=o[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 ph(e,t,n){let r,o,s,l,u,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-",colorsRendering:m="css-vars"}=n,v=Object.entries(n.themes).filter(k=>k[1]).map(k=>({color:k[0],theme:k[1]})).sort((k,E)=>k.color===f?-1:E.color===f?1:0);if(v.length===0)throw new Ut("`themes` option must not be empty");const b=LL(e,t,n);if(d=Zc(b),f&&i0!==f&&!v.find(k=>k.color===f))throw new Ut(`\`themes\` option must contain the defaultColor key \`${f}\``);const x=v.map(k=>e.getTheme(k.theme)),A=v.map(k=>k.color);s=b.map(k=>k.map(E=>yne(E,A,p,f,m))),d&&qh(s,d);const w=v.map(k=>uh(k.theme,n));o=pR(v,x,w,p,f,"fg",m),r=pR(v,x,w,p,f,"bg",m),l=`shiki-themes ${x.map(k=>k.name).join(" ")}`,u=f?void 0:[o,r].join(";")}else if("theme"in n){const f=uh(n.theme,n);s=o0(e,t,n);const p=e.getTheme(n.theme);r=oo(p.bg,f),o=oo(p.fg,f),l=p.name,d=Zc(s)}else throw new Ut("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:o,bg:r,themeName:l,rootStyle:u,grammarState:d}}function pR(e,t,n,r,o,s,l){return e.map((u,d)=>{const f=oo(t[d][s],n[d])||"inherit",p=`${r+u.color}${s==="bg"?"-bg":""}:${f}`;if(d===0&&o){if(o===i0&&e.length>1){const m=e.findIndex(A=>A.color==="light"),v=e.findIndex(A=>A.color==="dark");if(m===-1||v===-1)throw new Ut('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=oo(t[m][s],n[m])||"inherit",x=oo(t[v][s],n[v])||"inherit";return`light-dark(${b}, ${x});${p}`}return f}return l==="css-vars"?p:null}).filter(u=>!!u).join(";")}function mh(e,t,n,r={meta:{},options:n,codeToHast:(o,s)=>mh(e,o,s),codeToTokens:(o,s)=>ph(e,o,s)}){let o=t;for(const x of fh(n))o=x.preprocess?.call(r,o,n)||o;let{tokens:s,fg:l,bg:u,themeName:d,rootStyle:f,grammarState:p}=ph(e,o,n);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:v=!1}=n;m===!0?s=Bne(s):m==="never"&&(s=Vne(s)),v&&(s=Une(s));const b={...r,get source(){return o}};for(const x of fh(n))s=x.tokens?.call(b,s)||s;return zne(s,{...n,fg:l,bg:u,themeName:d,rootStyle:f},b,p)}function zne(e,t,n,r=Zc(e)){const o=fh(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 m=[],v={...n,structure:u,addClassToHast:IL,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 m}};if(e.forEach((x,A)=>{A&&(u==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&s.push({type:"text",value:`
308
+ `}));let w={type:"element",tagName:"span",properties:{class:"line"},children:[]},k=0;for(const E of x){let T={type:"element",tagName:"span",properties:{...E.htmlAttrs},children:[{type:"text",value:E.content}]};const R=ib(E.htmlStyle||dh(E));R&&(T.properties.style=R);for(const C of o)T=C?.span?.call(v,T,A+1,k,w,E)||T;u==="inline"?l.children.push(T):u==="classic"&&w.children.push(T),k+=E.content.length}if(u==="classic"){for(const E of o)w=E?.line?.call(v,w,A+1)||w;m.push(w),s.push(w)}}),u==="classic"){for(const x of o)p=x?.code?.call(v,p)||p;f.children.push(p);for(const x of o)f=x?.pre?.call(v,f)||f;l.children.push(f)}let b=l;for(const x of o)b=x?.root?.call(v,b)||b;return r&&qh(b,r),b}function Bne(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((s,l)=>{const d=!(s.fontStyle&&(s.fontStyle&vn.Underline||s.fontStyle&vn.Strikethrough));d&&s.content.match(/^\s+$/)&&t[l+1]?(o||(o=s.offset),r+=s.content):r?(d?n.push({...s,offset:o,content:r+s.content}):n.push({content:r,offset:o},s),o=0,r=""):n.push(s)}),n})}function Vne(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[,o,s,l]=r;if(!o&&!l)return n;const u=[{...n,offset:n.offset+o.length,content:s}];return o&&u.unshift({content:o,offset:n.offset}),l&&u.push({content:l,offset:n.offset+o.length+s.length}),u}))}function Une(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const o=n[n.length-1],s=ib(o.htmlStyle||dh(o)),l=ib(r.htmlStyle||dh(r)),u=o.fontStyle&&(o.fontStyle&vn.Underline||o.fontStyle&vn.Strikethrough),d=r.fontStyle&&(r.fontStyle&vn.Underline||r.fontStyle&vn.Strikethrough);!u&&!d&&s===l?o.content+=r.content:n.push({...r})}return n})}const Fne=lne;function $ne(e,t,n){const r={meta:{},options:n,codeToHast:(s,l)=>mh(e,s,l),codeToTokens:(s,l)=>ph(e,s,l)};let o=Fne(mh(e,t,n,r));for(const s of fh(n))o=s.postprocess?.call(r,o,n)||o;return o}const mR={light:"#333333",dark:"#bbbbbb"},gR={light:"#fffffe",dark:"#1e1e1e"},yR="__shiki_resolved";function a0(e){if(e?.[yR])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"?mR.light:mR.dark),n||(n=t.type==="light"?gR.light:gR.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 o=0;const s=new Map;function l(u){if(s.has(u))return s.get(u);o+=1;const d=`#${o.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 m=l(u.settings.foreground);t.colorReplacements[m]=u.settings.foreground,p.settings.foreground=m}if(f){const m=l(u.settings.background);t.colorReplacements[m]=u.settings.background,p.settings.background=m}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,yR,{enumerable:!1,writable:!1,value:!0}),t}async function jL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!kL(t)).map(async t=>await RL(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function PL(e){return(await Promise.all(e.map(async n=>NL(n)?null:a0(await RL(n))))).filter(n=>!!n)}let Hne=3;function Gne(e,t=3){t>Hne||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let _s=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class Kne extends Wee{constructor(t,n,r,o={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=o,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=a0(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=oh.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 _s(`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 o=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(o.name=t.name,this._resolvedGrammars.set(t.name,o),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 o of t)this.resolveEmbeddedLanguages(o);const n=Array.from(this._langGraph.entries()),r=n.filter(([o,s])=>!s);if(r.length){const o=n.filter(([s,l])=>l&&l.embeddedLangs?.some(u=>r.map(([d])=>d).includes(u))).filter(s=>!r.includes(s));throw new _s(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${o.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[o,s]of n)this._resolver.addLanguage(s);for(const[o,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 qne{_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 o=1;o<=n.length;o++){const s=n.slice(0,o).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let hc=0;function Wne(e){hc+=1,e.warnings!==!1&&hc>=10&&hc%10===0&&console.warn(`[Shiki] ${hc} 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 _s("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(a0),o=new qne(e.engine,n),s=new Kne(o,r,n,e.langAlias);let l;function u(E){w();const T=s.getGrammar(typeof E=="string"?E:E.name);if(!T)throw new _s(`Language \`${E}\` not found, you may need to load it first`);return T}function d(E){if(E==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();const T=s.getTheme(E);if(!T)throw new _s(`Theme \`${E}\` not found, you may need to load it first`);return T}function f(E){w();const T=d(E);l!==E&&(s.setTheme(T),l=E);const R=s.getColorMap();return{theme:T,colorMap:R}}function p(){return w(),s.getLoadedThemes()}function m(){return w(),s.getLoadedLanguages()}function v(...E){w(),s.loadLanguages(E.flat(1))}async function b(...E){return v(await jL(E))}function x(...E){w();for(const T of E.flat(1))s.loadTheme(T)}async function A(...E){return w(),x(await PL(E))}function w(){if(t)throw new _s("Shiki instance has been disposed")}function k(){t||(t=!0,s.dispose(),hc-=1)}return{setTheme:f,getTheme:d,getLanguage:u,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:b,loadLanguageSync:v,loadTheme:A,loadThemeSync:x,dispose:k,[Symbol.dispose]:k}}async function Zne(e){e.engine||Gne("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([PL(e.themes||[]),jL(e.langs||[]),e.engine]);return Wne({...e,themes:t,langs:n,engine:r})}async function Yne(e){const t=await Zne(e);return{getLastGrammarState:(...n)=>Ine(t,...n),codeToTokensBase:(n,r)=>o0(t,n,r),codeToTokensWithThemes:(n,r)=>LL(t,n,r),codeToTokens:(n,r)=>ph(t,n,r),codeToHast:(n,r)=>mh(t,n,r),codeToHtml:(n,r)=>$ne(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Xne(e){const t=e.langs,n=e.themes,r=e.engine;async function o(s){function l(m){if(typeof m=="string"){if(kL(m))return[];m=s.langAlias?.[m]||m;const v=t[m];if(!v)throw new Ut(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return v}return m}function u(m){if(NL(m))return"none";if(typeof m=="string"){const v=n[m];if(!v)throw new Ut(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return v}return m}const d=(s.themes??[]).map(m=>u(m)),f=(s.langs??[]).map(m=>l(m)),p=await Yne({engine:s.engine??r(),...s,themes:d,langs:f});return{...p,loadLanguage(...m){return p.loadLanguage(...m.map(l))},loadTheme(...m){return p.loadTheme(...m.map(u))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return o}function Qne(e){let t;async function n(r={}){if(t){const o=await t;return await Promise.all([o.loadTheme(...r.themes||[]),o.loadLanguage(...r.langs||[])]),o}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function Jne(e,t){const n=Qne(e);async function r(o,s){const l=await n({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),u=await t?.guessEmbeddedLanguages?.(o,s.lang,l);return u&&await l.loadLanguage(...u),l}return{getSingletonHighlighter(o){return n(o)},async codeToHtml(o,s){return(await r(o,s)).codeToHtml(o,s)},async codeToHast(o,s){return(await r(o,s)).codeToHast(o,s)},async codeToTokens(o,s){return(await r(o,s)).codeToTokens(o,s)},async codeToTokensBase(o,s){return(await r(o,s)).codeToTokensBase(o,s)},async codeToTokensWithThemes(o,s){return(await r(o,s)).codeToTokensWithThemes(o,s)},async getLastGrammarState(o,s){return(await n({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(o,s)}}}const ML=[{id:"abap",name:"ABAP",import:(()=>j(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>j(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>j(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>j(()=>import("./angular-html-Bbf3ZyxA.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>j(()=>import("./angular-ts-C26w9mnW.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>j(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>j(()=>import("./apex-C7Pw0Ztw.js"),[]))},{id:"apl",name:"APL",import:(()=>j(()=>import("./apl-e980N3t4.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>j(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>j(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>j(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>j(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>j(()=>import("./astro-CjFzhNUq.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>j(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>j(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>j(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>j(()=>import("./beancount-BoKiGodi.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>j(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>j(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>j(()=>import("./bicep-6nHXG8SA.js"),[]))},{id:"blade",name:"Blade",import:(()=>j(()=>import("./blade-B2ZbN0F_.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>j(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>j(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>j(()=>import("./cadence-D2CYqzqI.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>j(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>j(()=>import("./clarity-CHh-QcGE.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>j(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>j(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>j(()=>import("./cobol-DwXMNnPA.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>j(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>j(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>j(()=>import("./coffee-JUOWOZUj.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>j(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>j(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>j(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>j(()=>import("./crystal-DVs0tusA.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>j(()=>import("./csharp-CHadp7IV.js"),[]))},{id:"css",name:"CSS",import:(()=>j(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>j(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>j(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>j(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>j(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>j(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>j(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>j(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>j(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>j(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>j(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>j(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>j(()=>import("./edge-CKszZCnI.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>j(()=>import("./elixir-Cc7HHYVZ.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>j(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>j(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>j(()=>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:(()=>j(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>j(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>j(()=>import("./fish-Bl2oy6fF.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>j(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>j(()=>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:(()=>j(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>j(()=>import("./fsharp-CufqaIoK.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>j(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>j(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>j(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>j(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>j(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>j(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>j(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>j(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>j(()=>import("./glimmer-js-Dz9X99Cm.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>j(()=>import("./glimmer-ts-aQ3p29eY.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>j(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>j(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>j(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>j(()=>import("./graphql-Caa12_AY.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>j(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>j(()=>import("./hack-D_o3P2UH.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>j(()=>import("./haml-AZXGPtNI.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>j(()=>import("./handlebars-YebKLiTq.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>j(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>j(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>j(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>j(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>j(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>j(()=>import("./html-B8pBdPMQ.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>j(()=>import("./html-derivative-ZQ8onl8Z.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>j(()=>import("./http-C38VWM-o.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hxml",name:"HXML",import:(()=>j(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([55,56])))},{id:"hy",name:"Hy",import:(()=>j(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>j(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>j(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>j(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js"],import:(()=>j(()=>import("./javascript-BMMyXqK5.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>j(()=>import("./jinja-BJmZiE_F.js"),__vite__mapDeps([57,1,2,3])))},{id:"jison",name:"Jison",import:(()=>j(()=>import("./jison-BCRtk9Os.js"),__vite__mapDeps([58,2])))},{id:"json",name:"JSON",import:(()=>j(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>j(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>j(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>j(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>j(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>j(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>j(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>j(()=>import("./julia-353pQ8cl.js"),__vite__mapDeps([59,23,24,25,26,16,20,2,60])))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>j(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>j(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>j(()=>import("./latex-CPEt12BK.js"),__vite__mapDeps([61,62,60])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>j(()=>import("./lean-qliWkHmV.js"),[]))},{id:"less",name:"Less",import:(()=>j(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>j(()=>import("./liquid-DFk8BABL.js"),__vite__mapDeps([63,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>j(()=>import("./llvm-D32k8WzR.js"),[]))},{id:"log",name:"Log file",import:(()=>j(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>j(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>j(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>j(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>j(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>j(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>j(()=>import("./marko-BM38lbjI.js"),__vite__mapDeps([64,3,65,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>j(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>j(()=>import("./mdc-DvHMhoCT.js"),__vite__mapDeps([66,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>j(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>j(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>j(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>j(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>j(()=>import("./move-DNEoBllO.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>j(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>j(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>j(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([67,37,26])))},{id:"nim",name:"Nim",import:(()=>j(()=>import("./nim-BZI_8mFl.js"),__vite__mapDeps([68,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>j(()=>import("./nix-BepWV7mh.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>j(()=>import("./nushell-ChH_ziBE.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>j(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>j(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>j(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>j(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>j(()=>import("./perl-g0D2lH3a.js"),__vite__mapDeps([69,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>j(()=>import("./php-Gk5eUrPQ.js"),__vite__mapDeps([70,1,2,3,7,8,16,9])))},{id:"plsql",name:"PL/SQL",import:(()=>j(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>j(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>j(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>j(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>j(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>j(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>j(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>j(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>j(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>j(()=>import("./pug-Ch9lOoSd.js"),__vite__mapDeps([71,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>j(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>j(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>j(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>j(()=>import("./qml-CHzV51_b.js"),__vite__mapDeps([72,2])))},{id:"qmldir",name:"QML Directory",import:(()=>j(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>j(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>j(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>j(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>j(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>j(()=>import("./razor-CNXmhs1n.js"),__vite__mapDeps([73,1,2,3,74])))},{id:"reg",name:"Windows Registry Script",import:(()=>j(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>j(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>j(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>j(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>j(()=>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:(()=>j(()=>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:(()=>j(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>j(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([77,16])))},{id:"sass",name:"Sass",import:(()=>j(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>j(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>j(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>j(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>j(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>j(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([78,79])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>j(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>j(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([80,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>j(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>j(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>j(()=>import("./soy-B_7ge1HE.js"),__vite__mapDeps([81,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>j(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([82,83])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>j(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>j(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>j(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>j(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([84,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>j(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>j(()=>import("./svelte-Dt5jNKfG.js"),__vite__mapDeps([85,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>j(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>j(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>j(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>j(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>j(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>j(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>j(()=>import("./templ-0CNLO7il.js"),__vite__mapDeps([86,87,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>j(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>j(()=>import("./tex-B5i3u9ba.js"),__vite__mapDeps([62,60])))},{id:"toml",name:"TOML",import:(()=>j(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>j(()=>import("./ts-tags-B9XN6NYQ.js"),__vite__mapDeps([88,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>j(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>j(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>j(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>j(()=>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:(()=>j(()=>import("./typescript-DlfHMoPT.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>j(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>j(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>j(()=>import("./v-DljmTZ5-.js"),[]))},{id:"vala",name:"Vala",import:(()=>j(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>j(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>j(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>j(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>j(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>j(()=>import("./vue-BEetzCYT.js"),__vite__mapDeps([90,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>j(()=>import("./vue-html-BsD9fJC1.js"),__vite__mapDeps([91,90,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>j(()=>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:(()=>j(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>j(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>j(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>j(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>j(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>j(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>j(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>j(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>j(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([94,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>j(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>j(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>j(()=>import("./zig-VOosw3JB.js"),[]))}],ere=Object.fromEntries(ML.map(e=>[e.id,e.import])),tre=Object.fromEntries(ML.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),nre={...ere,...tre},rre=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>j(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>j(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>j(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>j(()=>import("./catppuccin-frappe-BBxmzUt6.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>j(()=>import("./catppuccin-latte-Jep7L2Wt.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>j(()=>import("./catppuccin-macchiato-CIUZ1G5V.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>j(()=>import("./catppuccin-mocha-NBseiqgx.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>j(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>j(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>j(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>j(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>j(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>j(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>j(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>j(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>j(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>j(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>j(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>j(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>j(()=>import("./gruvbox-dark-hard-D1uDOp7C.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>j(()=>import("./gruvbox-dark-medium-DkhsQLT2.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>j(()=>import("./gruvbox-dark-soft-CcyOm34o.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>j(()=>import("./gruvbox-light-hard-DKzvysjW.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>j(()=>import("./gruvbox-light-medium-DPcUKYIF.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>j(()=>import("./gruvbox-light-soft-CGqH5EJj.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>j(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>j(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>j(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>j(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>j(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>j(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>j(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>j(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>j(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>j(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>j(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>j(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>j(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>j(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>j(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>j(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>j(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>j(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>j(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>j(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>j(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>j(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>j(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>j(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>j(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>j(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>j(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>j(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>j(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>j(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>j(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>j(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>j(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>j(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>j(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],ire=Object.fromEntries(rre.map(e=>[e.id,e.import]));class s0 extends Error{constructor(t){super(t),this.name="ShikiError"}}function ore(){return 2147483648}function are(){return typeof performance<"u"?performance.now():Date.now()}const sre=(e,t)=>e+(t-e%t)%t;async function lre(e){let t,n;const r={};function o(b){n=b,r.HEAPU8=new Uint8Array(b),r.HEAPU32=new Uint32Array(b)}function s(b,x,A){r.HEAPU8.copyWithin(b,x,x+A)}function l(b){try{return t.grow(b-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function u(b){const x=r.HEAPU8.length;b=b>>>0;const A=ore();if(b>A)return!1;for(let w=1;w<=4;w*=2){let k=x*(1+.2/w);k=Math.min(k,b+100663296);const E=Math.min(A,sre(Math.max(b,k),65536));if(l(E))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(b,x,A=1024){const w=x+A;let k=x;for(;b[k]&&!(k>=w);)++k;if(k-x>16&&b.buffer&&d)return d.decode(b.subarray(x,k));let E="";for(;x<k;){let T=b[x++];if(!(T&128)){E+=String.fromCharCode(T);continue}const R=b[x++]&63;if((T&224)===192){E+=String.fromCharCode((T&31)<<6|R);continue}const C=b[x++]&63;if((T&240)===224?T=(T&15)<<12|R<<6|C:T=(T&7)<<18|R<<12|C<<6|b[x++]&63,T<65536)E+=String.fromCharCode(T);else{const I=T-65536;E+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return E}function p(b,x){return b?f(r.HEAPU8,b,x):""}const m={emscripten_get_now:are,emscripten_memcpy_big:s,emscripten_resize_heap:u,fd_write:()=>0};async function v(){const x=await e({env:m,wasi_snapshot_preview1:m});t=x.memory,o(t.buffer),Object.assign(r,x),r.UTF8ToString=p}return await v(),r}var cre=Object.defineProperty,ure=(e,t,n)=>t in e?cre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>ure(e,typeof t!="symbol"?t+"":t,n);let nn=null;function dre(e){throw new s0(e.UTF8ToString(e.getLastOnigError()))}class Wh{constructor(t){Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16Value"),Wt(this,"utf8Value"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16");const n=t.length,r=Wh._utf8ByteLength(t),o=r!==n,s=o?new Uint32Array(n+1):null;o&&(s[n]=r);const l=o?new Uint32Array(r+1):null;o&&(l[r]=n);const u=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let m=p,v=!1;if(p>=55296&&p<=56319&&f+1<n){const b=t.charCodeAt(f+1);b>=56320&&b<=57343&&(m=(p-55296<<10)+65536|b-56320,v=!0)}o&&(s[f]=d,v&&(s[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=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)),m<=127?u[d++]=m:m<=2047?(u[d++]=192|(m&1984)>>>6,u[d++]=128|(m&63)>>>0):m<=65535?(u[d++]=224|(m&61440)>>>12,u[d++]=128|(m&4032)>>>6,u[d++]=128|(m&63)>>>0):(u[d++]=240|(m&1835008)>>>18,u[d++]=128|(m&258048)>>>12,u[d++]=128|(m&4032)>>>6,u[d++]=128|(m&63)>>>0),v&&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,o=t.length;r<o;r++){const s=t.charCodeAt(r);let l=s,u=!1;if(s>=55296&&s<=56319&&r+1<o){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 Zh=class zr{constructor(t){if(Wt(this,"id",++zr.LAST_ID),Wt(this,"_onigBinding"),Wt(this,"content"),Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16"),Wt(this,"ptr"),!nn)throw new s0("Must invoke loadWasm first.");this._onigBinding=nn,this.content=t;const n=new Wh(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!zr._sharedPtrInUse?(zr._sharedPtr||(zr._sharedPtr=nn.omalloc(1e4)),zr._sharedPtrInUse=!0,nn.HEAPU8.set(n.utf8Value,zr._sharedPtr),this.ptr=zr._sharedPtr):this.ptr=n.createString(nn)}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===zr._sharedPtr?zr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Wt(Zh,"LAST_ID",0);Wt(Zh,"_sharedPtr",0);Wt(Zh,"_sharedPtrInUse",!1);let zL=Zh;class fre{constructor(t){if(Wt(this,"_onigBinding"),Wt(this,"_ptr"),!nn)throw new s0("Must invoke loadWasm first.");const n=[],r=[];for(let u=0,d=t.length;u<d;u++){const f=new Wh(t[u]);n[u]=f.createString(nn),r[u]=f.utf8Length}const o=nn.omalloc(4*t.length);nn.HEAPU32.set(n,o/4);const s=nn.omalloc(4*t.length);nn.HEAPU32.set(r,s/4);const l=nn.createOnigScanner(o,s,t.length);for(let u=0,d=t.length;u<d;u++)nn.ofree(n[u]);nn.ofree(s),nn.ofree(o),l===0&&dre(nn),this._onigBinding=nn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let o=0;if(typeof r=="number"&&(o=r),typeof t=="string"){t=new zL(t);const s=this._findNextMatchSync(t,n,!1,o);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,o)}_findNextMatchSync(t,n,r,o){const s=this._onigBinding,l=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o);if(l===0)return null;const u=s.HEAPU32;let d=l/4;const f=u[d++],p=u[d++],m=[];for(let v=0;v<p;v++){const b=t.convertUtf8OffsetToUtf16(u[d++]),x=t.convertUtf8OffsetToUtf16(u[d++]);m[v]={start:b,end:x,length:x-b}}return{index:f,captureIndices:m}}}function hre(e){return typeof e.instantiator=="function"}function pre(e){return typeof e.default=="function"}function mre(e){return typeof e.data<"u"}function gre(e){return typeof Response<"u"&&e instanceof Response}function yre(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 cf;function vre(e){if(cf)return cf;async function t(){nn=await lre(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),hre(r)?r=await r.instantiator(n):pre(r)?r=await r.default(n):(mre(r)&&(r=r.data),gre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await bre(r)(n):r=await _re(r)(n):yre(r)?r=await xy(r)(n):r instanceof WebAssembly.Module?r=await xy(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await xy(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return cf=t(),cf}function xy(e){return t=>WebAssembly.instantiate(e,t)}function bre(e){return t=>WebAssembly.instantiateStreaming(e,t)}function _re(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Ere(e){return e&&await vre(e),{createScanner(t){return new fre(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new zL(t)}}}const Sre=Xne({langs:nre,themes:ire,engine:()=>Ere(j(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:xre}=Jne(Sre,{guessEmbeddedLanguages:hne}),Are=({children:e})=>y.jsx("div",{children:y.jsx("pre",{children:y.jsx("code",{children:e.split(`
309
+ `).map((t,n)=>y.jsx("span",{className:"line block w-full",children:t},n))})})}),wre=(({children:e,lang:t,isDarkMode:n,onChange:r,...o})=>{const[s,l]=S.useState(null),u=S.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[QJ(),eee(),aee(),JJ(),qJ(),ZJ()]}),[t,n]);return S.useEffect(()=>{xre(e,u).then(d=>l(d)).catch(d=>console.error(d))},[u,e]),s?y.jsx("div",{dangerouslySetInnerHTML:{__html:s},...o,style:{backgroundColor:"transparent",minWidth:0,overflow:"auto"}}):y.jsx(Are,{children:e})}),Tre=({className:e,onChange:t,isEditable:n,...r})=>y.jsx(wre,{className:me("flex w-full",e),contentEditable:n,onInput:o=>t?.(o.currentTarget.textContent??""),...r}),BL=S.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Yh=()=>S.useContext(BL),Cre=({children:e})=>{const[t,n]=kc("packageManager","npm"),[r,o]=kc("codeFormat","typescript"),[s,l]=kc("contentDeclarationFormat","typescript");return y.jsx(BL,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:o,contentDeclarationFormat:s,setContentDeclarationFormat:l},children:e})},Rre=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:o}=Yh(),s=typeof t.packageManager>"u",l=n===t.packageManager,u=typeof t.codeFormat>"u",d=r===t.codeFormat,f=typeof t.contentDeclarationFormat>"u",p=o===t.contentDeclarationFormat;return(s||l)&&(u||d)&&(f||p)?e:y.jsx(y.Fragment,{})},kre=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=Yh();return y.jsxs(Re,{value:e,onValueChange:r=>{t(r),n(r)},children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:"Code Format"})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:"typescript",children:"TypeScript"}),y.jsx(Re.Item,{value:"esm",children:"ESM"}),y.jsx(Re.Item,{value:"commonjs",children:"CommonJS"})]})]})},Nre=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=Yh();return y.jsxs(Re,{value:e,onValueChange:t,children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:"Dictionary Format"})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:"typescript",children:"TypeScript"}),y.jsx(Re.Item,{value:"commonjs",children:"CommonJS"}),y.jsx(Re.Item,{value:"esm",children:"ESM"}),y.jsx(Re.Item,{value:"json",children:"JSON"})]})]})};var VL=(e=>(e.START="start",e.END="end",e))(VL||{});const ob=({children:e,className:t,identifier:n,...r})=>y.jsx("div",{className:me("group/popover relative flex cursor-pointer",t),"aria-label":`Popover ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),Ire=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:o="start",yAlign:s="bellow",identifier:l,className:u,displayArrow:d=!0,...f})=>y.jsx(kr,{transparency:"sm","aria-hidden":t,"aria-labelledby":`unrollable-panel-button-${l}`,id:`unrollable-panel-${l}`,className:me("absolute z-[1000] min-w-full ring-neutral ring-1 rounded-md",o==="start"&&"left-0",o==="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&&o==="start"&&"before:left-2",d&&o==="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});ob.Detail=Ire;const Ore=({code:e})=>{const{title:t,description:n}=dn("code");return y.jsxs(ob,{identifier:"copy",children:[y.jsx(Uk,{content:e}),y.jsxs(ob.Detail,{identifier:"copy",className:"flex flex-col gap-3 p-3 min-w-64 text-sm",xAlign:VL.END,children:[y.jsx("strong",{children:t}),y.jsx("p",{className:"text-neutral",children:n})]})]})},Dre=()=>{const{packageManager:e,setPackageManager:t}=Yh();return y.jsxs(Re,{value:e,onValueChange:t,children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:"Package Manager"})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:"npm",children:"npm"}),y.jsx(Re.Item,{value:"pnpm",children:"pnpm"}),y.jsx(Re.Item,{value:"yarn",children:"yarn"})]})]})},Lre=700,jre=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:o=!0,className:s,fileName:l,packageManager:u,codeFormat:d,contentDeclarationFormat:f,isRollable:p=!0,...m})=>{const v=e?.endsWith(`
310
+ `)?e.slice(0,-1):e,b=u||d||f;return y.jsx(Rre,{packageManager:u,codeFormat:d,contentDeclarationFormat:f,children:y.jsxs(kr,{className:me("relative text-sm leading-6",o&&"with-line-number ml-0",s),transparency:"lg",...m,children:[r&&y.jsxs(y.Fragment,{children:[y.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:[y.jsx("span",{className:"truncate",children:l??t}),y.jsxs("div",{className:"flex items-center gap-2",children:[u&&y.jsx(Dre,{}),d&&y.jsx(kre,{}),f&&y.jsx(Nre,{})]})]}),y.jsx("div",{className:"sticky top-46 z-20",children:y.jsx("div",{className:me("absolute bottom-0 right-2 flex h-7 items-center",b&&"h-11"),children:y.jsx(Ore,{code:v})})})]}),y.jsx(XD,{minHeight:Lre,isRollable:p,className:"p-2 overflow-x-auto",children:y.jsx(Tre,{lang:t,isDarkMode:n,children:v})})]})})},Pre=e=>{const{enable:t=!0,onSwipeLeft:n,onSwipeRight:r,itemIndex:o,itemCount:s,thresholdPct:l=20,touchAction:u="pan-y",disableWhenSelectingText:d=!0}=e,f=S.useRef(null),[p,m]=S.useState(!1),[v,b]=S.useState(0),x=S.useRef({pointerId:null,startX:0,startY:0,lastX:0,axisLocked:!1,isHorizontal:!1}),A=S.useRef(!1),w=()=>{const L=f.current;return L?L.clientWidth:0},k=L=>{const V=o<=0,$=o>=s-1;if(V&&L>0||$&&L<0){const Q=1+Math.abs(L)/30;return L/Q}return L},E=L=>{t&&x.current.pointerId===null&&(x.current.pointerId=L.pointerId,x.current.startX=L.clientX,x.current.startY=L.clientY,x.current.lastX=L.clientX,x.current.axisLocked=!1,x.current.isHorizontal=!1,A.current=!1,m(!1),b(0))},T=L=>{if(!t||x.current.pointerId!==L.pointerId)return;const V=w();if(!V)return;const $=L.clientX-x.current.startX,Z=L.clientY-x.current.startY;if(d){const le=typeof window<"u"?window.getSelection?.():null;if(!!le&&le.rangeCount>0&&!le.isCollapsed){A.current=!0;return}}if(!x.current.axisLocked){const le=Math.abs($),q=Math.abs(Z);(le>6||q>6)&&(x.current.axisLocked=!0,x.current.isHorizontal=le>q)}if(!x.current.isHorizontal)return;try{L.currentTarget.setPointerCapture(L.pointerId)}catch{}L.preventDefault(),p||m(!0);const Q=$/V*100;b(k(Q)),x.current.lastX=L.clientX},R=L=>{try{L.currentTarget.releasePointerCapture(L.pointerId)}catch{}const V=x.current.isHorizontal,$=v;if(m(!1),b(0),x.current.pointerId=null,x.current.axisLocked=!1,x.current.isHorizontal=!1,A.current){A.current=!1;return}V&&($>l?r?.():$<-l&&n?.())},C=L=>{t&&x.current.pointerId===L.pointerId&&R(L)},I=L=>{t&&x.current.pointerId===L.pointerId&&R(L)};return S.useEffect(()=>{b(0),m(!1)},[o]),{containerRef:f,isDragging:p,dragDeltaPct:v,containerProps:{ref:f,onPointerDown:E,onPointerMove:T,onPointerUp:C,onPointerCancel:I,style:{touchAction:u}}}};var UL=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e))(UL||{});const Mre=_n("relative flex size-full flex-row items-center gap-2",{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"}}),zre=_n("absolute top-0 z-[-1] h-full w-auto rounded-lg transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",{variants:{color:{primary:"bg-primary/10 aria-selected:text-text",secondary:"bg-secondary/10 aria-selected:text-text",destructive:"bg-destructive/10 aria-selected:text-text",neutral:"bg-neutral/10 aria-selected:text-white/10",light:"bg-white/10 aria-selected:text-black",dark:"bg-neutral-800/10 aria-selected:text-white",text:"bg-text/10 aria-selected:text-text-opposite"}}}),Bre=({tabs:e,selectedChoice:t,onTabClick:n,color:r="primary",hoverable:o=!1,className:s})=>{const l=S.useRef([]),u=S.useRef(null),{choiceIndicatorPosition:d}=hD(l,void 0,o);return y.jsxs("div",{className:me(Mre({color:r}),s),"aria-orientation":"horizontal","aria-multiselectable":"false",role:"tablist",children:[e.map((f,p)=>{const m=f.key,v=t===m;return S.cloneElement(f,{key:m??p,role:"tab",onClick:b=>{f.props?.onClick?.(b),n?.(m)},"aria-selected":v,"data-active":v,tabIndex:v?0:-1,ref:b=>{l.current[p]=b}})}),d&&y.jsx("div",{className:me(zre({color:r})),style:d,ref:u},`${t}${JSON.stringify(e.map(f=>f.key))}`)]})},FL=S.createContext({tabsValues:{},setTabsValues:(()=>{})}),Vre=()=>S.useContext(FL),Ure=({children:e})=>{const[t,n]=S.useState({});return y.jsx(FL,{value:{tabsValues:t,setTabsValues:n},children:e})},Fre=S.createContext(void 0),$re=_n("relative w-full bg-background/2 border border-neutral/20 rounded-lg shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-0 shadow-none bg-transparent"}},defaultVariants:{variant:"default"}}),l0=({children:e,...t})=>y.jsx("div",{...t,children:e});l0.displayName="TabItem";const Hre=({defaultTab:e,group:t,variant:n,children:r,className:o,...s})=>{const l=S.Children.toArray(r).filter(C=>S.isValidElement(C)&&C.type===l0),u=l[0]?.props?.value,{tabsValues:d,setTabsValues:f}=Vre(),[p,m]=S.useState(e??u??""),b=(t&&typeof d=="object"?d?.[t]:p)??e??u,x=l.findIndex(C=>C.props.value===b),A=l.length,{containerProps:w,dragDeltaPct:k,isDragging:E}=Pre({itemIndex:x,itemCount:A,onSwipeLeft:()=>{const C=Math.min(A-1,x+1),I=l[C]?.props?.value;I&&T(I)},onSwipeRight:()=>{const C=Math.max(0,x-1),I=l[C]?.props?.value;I&&T(I)}}),T=C=>{m(C),typeof f=="function"&&f(I=>({...I,[t]:C}))},R={activeTab:p??u??"",setActiveTab:T};return y.jsx(Fre.Provider,{value:R,children:y.jsxs("div",{className:me($re({variant:n}),o),...s,children:[y.jsx("div",{className:"sticky top-36 z-10 flex gap-3 p-3 bg-background/70 backdrop-blur",children:y.jsx(Bre,{selectedChoice:b,tabs:l.map(C=>{const{label:I,value:D,disabled:L}=C.props,V=b===D;return y.jsx("button",{className:me("px-4 text-sm font-medium rounded-md transition-colors cursor-pointer focus:outline-none py-1",!V&&"text-neutral/70"),"data-active":V,disabled:L,onClick:()=>!L&&T(D),role:"tab","aria-selected":V,"aria-controls":`tabpanel-${D}`,id:`tab-${D}`,children:I},D)}),hoverable:!0,color:UL.TEXT})}),y.jsx("div",{className:"relative w-full min-w-0 overflow-x-clip [clip-path:inset(0)] [-webkit-clip-path:inset(0)]",...w,children:y.jsx("div",{role:"tablist","aria-orientation":"horizontal",className:me("grid w-full min-w-0",E?"transition-none":"transition-transform duration-300 ease-in-out"),style:{gridTemplateColumns:`repeat(${l.length}, 100%)`,transform:`translateX(-${x*100-(E?k:0)}%)`},children:l.map(({props:C},I)=>{const{value:D,children:L}=C,V=I===x;return y.jsx("div",{role:"tabpanel","aria-labelledby":`tab-${D}`,id:`tabpanel-${D}`,"aria-hidden":!V,tabIndex:V?0:-1,"data-active":V,className:me("w-full min-w-0 p-6 opacity-100 transition-opacity duration-300 ease-in-out",!V&&"pointer-events-none opacity-0"),children:y.jsx("div",{className:"w-full min-w-0 flex flex-col gap-6 items-stretch",children:L})},D)})})})]})})},Ay=Object.assign(Hre,{Item:l0}),Gre=({className:e,isRollable:t,...n})=>{const[r,o]=S.useState(!1);return y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"sticky top-48 z-10",children:y.jsx("div",{className:"absolute top-4 right-2",children:y.jsx(lt,{variant:"hoverable",size:"icon-md",onClick:()=>{o(!0)},label:"Move",Icon:g$})})}),y.jsx(XD,{isRollable:t,className:"max-w-full overflow-x-auto",children:y.jsx("table",{className:me("max-w-full overflow-x-auto table-auto text-left min-w-full bg-background",e),...n})}),y.jsx(__,{isOpen:r,onClose:()=>o(!1),size:b_.XL,hasCloseButton:!0,children:r?y.jsx("div",{className:"grid",children:y.jsx("table",{className:me("max-w-full table-auto text-left min-w-full",e),...n})}):y.jsx(y.Fragment,{})})]})};var js={};const Ie={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",customComponent:"34",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};js.NODE_ENV==="test"&&Object.keys(Ie).forEach(e=>Ie[e]=e);const tt={MAX:0,HIGH:1,MED:2,LOW:3,MIN:4},vR=["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"}),bR={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Kre=["style","script","pre"],qre=["src","href","data","formAction","srcDoc","action"],Wre=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Zre=/mailto:/i,Yre=/\n{2,}$/,_R=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Xre=/^ *> ?/gm,Qre=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Jre=/^ {2,}\n/,eie=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ER=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,SR=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,tie=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,nie=/^(?:\n *)*\n/,rie=/\r\n?/g,iie=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,oie=/^\[\^([^\]]+)]/,aie=/\f/g,sie=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,lie=/^\s*?\[(x|\s)\]/,xR=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,AR=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wR=/^([^\n]+)\n *(=|-){3,} *\n/,wy=/^ *(?!<[a-zA-Z][^ >/]* ?\/>)<([a-zA-Z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,cie=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,TR=/^<!--[\s\S]*?(?:-->)/,uie=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ty=/^ *<([a-zA-Z][a-zA-Z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Cy=/^ *<([A-Z][a-zA-Z0-9]*)(?:\s+((?:<.*?>|[^>])*))?>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/,die=/^\{.*\}$/,fie=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,hie=/^<([^ >]+@[^ >]+)>/,pie=/^<([^ >]+:\/[^ >]+)>/,mie=/-([a-z])?/gi,CR=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,RR=/^[^\n]+(?: \n|\n{2,})/,gie=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,yie=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,vie=/^\[([^\]]*)\] ?\[([^\]]*)\]/,bie=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,_ie=/\t/g,Eie=/(^ *\||\| *$)/g,Sie=/^ *:-+: *$/,xie=/^ *:-+ *$/,Aie=/^ *-+: *$/,Xh=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Qh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wie=new RegExp(`^([*_])\\1${Xh(1)}${Qh}\\1\\1(?!\\1)`),Tie=new RegExp(`^([*_])${Xh(0)}${Qh}\\1(?!\\1)`),Cie=new RegExp(`^(==)${Xh(0)}${Qh}\\1`),Rie=new RegExp(`^(~~)${Xh(0)}${Qh}\\1`),kie=/^(:[a-zA-Z0-9-_]+:)/,Nie=/^\\([^0-9A-Za-z\s])/,Iie=/\\([^0-9A-Za-z\s])/g,Oie=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,kR=/^\n+/,NR=/^([ \t]*)/,Cr=1,Au=2,Die=/(?:^|\n)( *)$/,c0="(?:\\d+\\.)",u0="(?:[*+-])",$L=e=>"( *)("+(e===Cr?c0:u0)+") +",HL=$L(Cr),GL=$L(Au),KL=e=>new RegExp("^"+(e===Cr?HL:GL)),Lie=KL(Cr),jie=KL(Au),qL=e=>new RegExp("^"+(e===Cr?HL:GL)+"[^\\n]*(?:\\n(?!\\1"+(e===Cr?c0:u0)+" )[^\\n]*)*(\\n|$)","gm"),Pie=qL(Cr),Mie=qL(Au),WL=e=>{const t=e===Cr?c0:u0;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")},ZL=WL(Cr),YL=WL(Au),IR=(e,t)=>{const n=e===Cr,r=n?ZL:YL,o=n?Pie:Mie,s=n?Lie:jie;return{_qualify:l=>s.test(l),_match:Ps((l,u)=>{const d=Die.exec(u.prevCapture??""),f=u.list??(!u.inline&&!u.simple);return d&&f?(l=d[1]+l,r.exec(l)):null}),_order:tt.HIGH,_parse(l,u,d){const f=l[2],p=n?+f:void 0,m=l[0].replace(Yre,`
311
+ `).match(o);if(!m)return{items:[],ordered:n,start:p};let v=!1;return{items:m.map((x,A)=>{const w=s.exec(x);if(!w)return[];const k=w[0].length,E=new RegExp("^ {1,"+k+"}","gm"),T=x.replace(E,"").replace(s,""),R=A===m.length-1,I=T.indexOf(`
312
+
313
+ `)!==-1||R&&v;v=I;const D=d.inline,L=d.list;d.list=!0;let V;I?(d.inline=!1,V=Ic(T)+`
314
+
315
+ `):(d.inline=!0,V=Ic(T));const $=u(V,d);return d.inline=D,d.list=L,$}),ordered:n,start:p}},_render(l,u,d={}){const f=l.ordered?"ol":"ul",p={key:d.key};return l.ordered&&l.start!=null&&(p.start=l.start),t?t(f,p,...l.items.map((m,v)=>t("li",{key:v},u(m,d)))):y.jsx(f,{start:l.type===Ie.orderedList?l.start:void 0,children:l.items.map((m,v)=>y.jsx("li",{children:u(m,d)},v))},d.key)}}},zie="(?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*",Bie=`\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*`,Vie=new RegExp("^\\[("+zie+")\\]\\("+Bie+"\\)"),Uie=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ic=e=>{let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)},Nf=(e,t)=>e.startsWith(t),Fie=(e,t,n)=>{if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Nf(e,n[r]))return!0;return!1}return n(e,t)},$ie=e=>{const t=e[0];return(t==='"'||t==="'")&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e},pc=e=>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(),Hie=e=>Aie.test(e)?"right":Sie.test(e)?"center":(xie.test(e),"left"),XL=(e,t,n,r)=>{const o=performance.now(),s=n.inTable;n.inTable=!0;let l=[[]],u="";const d=()=>{if(!u)return;const p=l[l.length-1];p.push.apply(p,t(u,n)),u=""};e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,m,v)=>{if(p.trim()==="|"&&(d(),r)){m!==0&&m!==v.length-1&&l.push([]);return}u+=p}),d(),n.inTable=s;const f=performance.now()-o;return f>1&&console.log(`parseTableRow: ${f.toFixed(3)}ms, source length: ${e.length}, cells count: ${l.length}`),l},Gie=e=>e.replace(Eie,"").split("|").map(Hie),Kie=(e,t,n)=>{const r=performance.now(),o=e.trim().split(`
316
+ `),s=o.map(u=>XL(u,t,n,!0)),l=performance.now()-r;return l>1&&console.log(`parseTableCells: ${l.toFixed(3)}ms, source length: ${e.length}, rows count: ${o.length}`),s},qie=(e,t,n)=>{n.inline=!0;const r=e[2]?Gie(e[2]):[],o=e[3]?Kie(e[3],t,n):[],s=XL(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:s,type:Ie.table}:{children:s.flat(),type:Ie.paragraph}},OR=(e,t)=>e.align[t]==null?{}:{textAlign:e.align[t]},Wie=e=>(e.indexOf("-")!==-1&&e.match(uie)===null&&(e=e.replace(mie,(n,r)=>r.toUpperCase())),e),Zie=e=>{const t=performance.now(),n=[];let r="",o=!1,s=!1,l="";if(!e)return n;for(let f=0;f<e.length;f++){const p=e[f];if((p==='"'||p==="'")&&!o&&(s?p===l&&(s=!1,l=""):(s=!0,l=p)),p==="("&&r.endsWith("url")?o=!0:p===")"&&o&&(o=!1),p===";"&&!s&&!o){const m=r.trim();if(m){const v=m.indexOf(":");if(v>0){const b=m.slice(0,v).trim(),x=m.slice(v+1).trim();n.push([b,x])}}r=""}else r+=p}const u=r.trim();if(u){const f=u.indexOf(":");if(f>0){const p=u.slice(0,f).trim(),m=u.slice(f+1).trim();n.push([p,m])}}const d=performance.now()-t;return d>1&&console.log(`parseStyleAttribute: ${d.toFixed(3)}ms, styleString length: ${e.length}, styles count: ${n.length}`),n},DR=(e,t)=>{const n=performance.now();if(!t)return e;const r=e.split(`
317
+ `);let o=!1,s=null;const l=m=>m.match(/^\s*(`{3,}|~{3,})/),u=m=>{const v=l(m);if(!v)return;const b=v[1];o?s&&m.includes(s)&&(o=!1,s=null):(o=!0,s=b)},f=r.map(m=>{if(l(m)){const b=m.startsWith(t)?m.slice(t.length):m;return u(m),b}return o?m:m.startsWith(t)?m.slice(t.length):m}).join(`
318
+ `),p=performance.now()-n;return p>1&&console.log(`trimLeadingWhitespaceOutsideFences: ${p.toFixed(3)}ms, text length: ${e.length}, lines count: ${r.length}`),f},Yie=(e,t,n,r)=>t==="style"?Zie(n).reduce((o,[s,l])=>{const u=s.replace(/(-[a-z])/g,d=>d[1].toUpperCase());return o[u]=r(l,e,s),o},{}):qre.indexOf(t)!==-1?r(Br(n),e,t):(n.match(die)&&(n=Br(n.slice(1,n.length-1))),n==="true"?!0:n==="false"?!1:n),Xie=e=>{const t=performance.now(),n=e.replace(rie,`
319
+ `).replace(aie,"").replace(_ie," "),r=performance.now()-t;return r>1&&console.log(`normalizeWhitespace: ${r.toFixed(3)}ms, source length: ${e.length}`),n},Qie=e=>{const t=performance.now();var n=Object.keys(e);js.NODE_ENV!=="production"&&n.forEach(s=>{const l=e[s]._order;(typeof l!="number"||!isFinite(l))&&console.warn("intlayer: Invalid order for rule `"+s+"`: "+l)}),n.sort((s,l)=>e[s]._order-e[l]._order||(s<l?-1:1));const r=(s,l={})=>{const u=performance.now();var d=[];if(l.prevCapture=l.prevCapture||"",s.trim())for(;s;)for(var f=0;f<n.length;){var p=n[f],m=e[p];if(m._qualify&&!Fie(s,l,m._qualify)){f++;continue}const x=performance.now();var v=m._match(s,l);const A=performance.now()-x;if(A>1&&console.log(`${p}._match: ${A.toFixed(3)}ms, source length: ${s.length}`),v&&v[0]){s=s.substring(v[0].length);const w=performance.now(),k=m._parse(v,r,l),E=performance.now()-w;E>1&&console.log(`${p}._parse: ${E.toFixed(3)}ms, capture length: ${v[0].length}`),l.prevCapture+=v[0],k.type||(k.type=p),d.push(k);break}f++}l.prevCapture="";const b=performance.now()-u;return b>1&&console.log(`nestedParse: ${b.toFixed(3)}ms, source length: ${s.length}, result count: ${d.length}`),d},o=performance.now()-t;return o>1&&console.log(`parserFor: ${o.toFixed(3)}ms, rules count: ${n.length}`),(s,l)=>r(Xie(s),l)},Ps=e=>(e.inline=1,e),eo=e=>Ps((t,n)=>n.inline?e.exec(t):null),to=e=>Ps((t,n)=>n.inline||n.simple?e.exec(t):null),Pr=e=>(t,n)=>n.inline||n.simple?null:e.exec(t),uf=e=>Ps(t=>e.exec(t)),Jie=/(javascript|vbscript|data(?!:image)):/i,eoe=e=>{try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Jie.test(t))return js.NODE_ENV!=="production"&&console.warn("Input contains an unsafe JavaScript/VBScript/data expression, it will not be rendered.",t),null}catch{return js.NODE_ENV!=="production"&&console.warn("Input could not be decoded due to malformed syntax or characters, it will not be rendered.",e),null}return e},Br=e=>e&&e.replace(Iie,"$1"),vc=(e,t,n)=>{const r=performance.now(),o=n.inline??!1,s=n.simple??!1;n.inline=!0,n.simple=!0;const l=e(t,n);n.inline=o,n.simple=s;const u=performance.now()-r;return u>1&&console.log(`parseInline: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${l.length}`),l},toe=(e,t,n)=>{const r=performance.now(),o=n.inline??!1,s=n.simple??!1;n.inline=!1,n.simple=!0;const l=e(t,n);n.inline=o,n.simple=s;const u=performance.now()-r;return u>1&&console.log(`parseSimpleInline: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${l.length}`),l},LR=(e,t,n={})=>{const r=performance.now(),o=n.inline||!1;n.inline=!1;const s=e(t,n);n.inline=o;const l=performance.now()-r;return l>1&&console.log(`parseBlock: ${l.toFixed(3)}ms, children length: ${t.length}, result count: ${s.length}`),s},Ry=(e,t,n)=>({children:vc(t,e[2],n)}),ky=()=>({}),Ny=()=>null,QL=e=>(t,n={})=>{const r=performance.now(),o=(u,d={})=>QL(e)(u,d);if(Array.isArray(t)){const u=n.key,d=[];let f=!1;for(let m=0;m<t.length;m++){n.key=m;const v=o(t[m],n),b=typeof v=="string";b&&f?d[d.length-1]=d[d.length-1]+v:v!==null&&d.push(v),f=b}n.key=u;const p=performance.now()-r;return p>1&&console.log(`reactFor (array): ${p.toFixed(3)}ms, ast length: ${t.length}`),d}const s=e(t,o,n),l=performance.now()-r;return l>1&&console.log(`reactFor (single): ${l.toFixed(3)}ms, ast type: ${t.type}`),s},noe=(e,t)=>(n,r,o)=>{const s=performance.now(),l=e[n.type]._render,u=t?t(()=>l?.(n,r,o),n,r,o):l?.(n,r,o),d=performance.now()-s;return d>1&&console.log(`createRenderer: ${d.toFixed(3)}ms, ast type: ${n.type}, hasUserRender: ${!!t}`),u},roe=(...e)=>e.filter(Boolean).join(" "),ab=(e,t,n)=>{let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r??n},jR=(e,t)=>{const n=ab(t,e);return n?typeof n=="function"||typeof n=="object"&&"render"in n?n:ab(t,`${e}.component`,e):e},ioe=(e="",t={})=>{t.overrides=t.overrides??{},t.namedCodesToUnicode=t.namedCodesToUnicode?{...bR,...t.namedCodesToUnicode}:bR;const n=t.slugify??pc,r=t.sanitizer??eoe,o=t.createElement??S.createElement,s=[_R,ER,SR,t.enforceAtxHeadings?AR:xR,wR,CR,ZL,YL],l=[...s,RR,wy,TR,Ty,Cy],u=E=>{const T=E.replace(kR,""),R=T.length>2048?T.slice(0,2048):T;return(t.disableParsingRawHTML?[...s,RR,Cy]:l).some(I=>I.test(R))},d=(E,T)=>{if(T.inline||T.simple||T.inHTML&&E.indexOf(`
320
+
321
+ `)===-1&&T.prevCapture?.indexOf(`
322
+
323
+ `)===-1)return null;let R="";E.split(`
324
+ `).every(I=>(I+=`
325
+ `,s.some(D=>D.test(I))?!1:(R+=I,!!I.trim())));const C=Ic(R);return C===""?null:[R,,C]},f=(E,T,...R)=>{const C=ab(t.overrides??{},`${E}.props`,{});return o(jR(E,t.overrides??{}),{...T,...C,className:roe(T?.className,C.className)??void 0},...R)},p=E=>{const T=performance.now(),R=E.replace(sie,"");let C=!1;t.forceInline?C=!0:t.forceBlock||(C=bie.test(R)===!1);const I=w(A(C?R:`${Ic(R).replace(kR,"")}
326
+
327
+ `,{inline:C}));for(;typeof I[I.length-1]=="string"&&!I[I.length-1].trim();)I.pop();if(t.wrapper===null){const $=performance.now()-T;return $>1&&console.log(`compile: ${$.toFixed(3)}ms, input length: ${E.length}, inline: ${C}`),I}const D=t.wrapper??(C?"span":"div");let L;if(I.length>1||t.forceWrapper)L=I;else if(I.length===1)if(L=I[0],typeof L=="string"){const $=performance.now()-T;return $>1&&console.log(`compile: ${$.toFixed(3)}ms, input length: ${E.length}, inline: ${C}`),y.jsx("span",{children:L},"outer")}else{const $=performance.now()-T;return $>1&&console.log(`compile: ${$.toFixed(3)}ms, input length: ${E.length}, inline: ${C}`),L}else L=null;const V=performance.now()-T;return V>1&&console.log(`compile: ${V.toFixed(3)}ms, input length: ${E.length}, inline: ${C}`),o(D,{key:"outer"},L)},m=(E,T)=>{const R=performance.now();if(!T||!T.trim())return null;const C=T.match(Wre);if(!C)return null;const I=C.reduce((L,V)=>{const $=V.indexOf("=");if($!==-1){const Z=Wie(V.slice(0,$)).trim(),Q=$ie(V.slice($+1).trim()),le=vR[Z]??Z;if(le==="ref")return L;const q=L[le]=Yie(E,Z,Q,r);typeof q=="string"&&(wy.test(q)||Ty.test(q))&&(L[le]=p(q.trim()))}else V!=="style"&&(L[vR[V]??V]=!0);return L},{}),D=performance.now()-R;return D>1&&console.log(`attrStringToMap: ${D.toFixed(3)}ms, str length: ${T.length}, attributes count: ${C.length}`),I};if(js.NODE_ENV!=="production"){if(typeof e!="string")throw new Error(`intlayer: the first argument must be
328
+ a string`);if(Object.prototype.toString.call(t.overrides)!=="[object Object]")throw new Error(`intlayer: options.overrides (second argument property) must be
329
+ undefined or an object literal with shape:
330
+ {
331
+ htmltagname: {
332
+ component: string|ReactComponent(optional),
333
+ props: object(optional)
334
+ }
335
+ }`)}const v=[],b={},x={[Ie.blockQuote]:{_qualify:[">"],_match:Pr(_R),_order:tt.HIGH,_parse(E,T,R){const C=performance.now(),I=E[0].replace(Xre,"").match(Qre),D=I?.[1],L=I?.[2]??"",V={alert:D,children:T(L,R)},$=performance.now()-C;return $>1&&console.log(`blockQuote._parse: ${$.toFixed(3)}ms, capture length: ${E[0].length}`),V},_render(E,T,R={}){const C=performance.now(),I={key:R?.key};E.alert&&(I.className="markdown-alert-"+n(E.alert.toLowerCase(),pc),E.children.unshift({attrs:{},children:[{type:Ie.text,text:E.alert}],noInnerParse:!0,type:Ie.htmlBlock,tag:"header"}));const D=f("blockquote",I,T(E.children,R)),L=performance.now()-C;return L>1&&console.log(`blockQuote._render: ${L.toFixed(3)}ms, children count: ${E.children.length}, has alert: ${!!E.alert}`),D}},[Ie.breakLine]:{_match:uf(Jre),_order:tt.HIGH,_parse:ky,_render(E,T,R={}){return y.jsx("br",{},R.key)}},[Ie.breakThematic]:{_qualify:E=>{const T=E[0];return T==="-"||T==="*"||T==="_"},_match:Pr(eie),_order:tt.HIGH,_parse:ky,_render(E,T,R={}){return y.jsx("hr",{},R.key)}},[Ie.codeBlock]:{_qualify:[" "],_match:Pr(SR),_order:tt.MAX,_parse(E){return{type:Ie.codeBlock,lang:void 0,text:Br(Ic(E[0].replace(/^ {4}/gm,"")))}},_render(E,T,R={}){const C=performance.now(),I={...E.attrs??{}},D=E.lang?`lang-${E.lang}`:"lang-plaintext";I.className=I.className?`${I.className} ${D}`:D,E.lang&&!I.lang&&(I.lang=E.lang);const L=f("pre",{key:R.key},f("code",I,E.text)),V=performance.now()-C;return V>1&&console.log(`codeBlock._render: ${V.toFixed(3)}ms, text length: ${E.text.length}, lang: ${E.lang||"none"}`),L}},[Ie.codeFenced]:{_qualify:["```","~~~"],_match:Pr(ER),_order:tt.MAX,_parse(E){const R=E[4];return{attrs:m("code",E[3]??""),lang:E[2]||void 0,text:R,type:Ie.codeBlock}}},[Ie.codeInline]:{_qualify:["`"],_match:to(tie),_order:tt.LOW,_parse(E){return{text:Br(E[2])}},_render(E,T,R={}){const C=performance.now(),I=f("code",{key:R.key},E.text),D=performance.now()-C;return D>1&&console.log(`codeInline._render: ${D.toFixed(3)}ms, text length: ${E.text.length}`),I}},[Ie.footnote]:{_qualify:["[^"],_match:Pr(iie),_order:tt.MAX,_parse(E){return v.push({footnote:E[2],identifier:E[1]}),{}},_render:Ny},[Ie.footnoteReference]:{_qualify:["[^"],_match:eo(oie),_order:tt.HIGH,_parse(E){return{target:`#${n(E[1],pc)}`,text:E[1]}},_render(E,T,R={}){return y.jsx("a",{href:r(E.target,"a","href")??void 0,children:y.jsx("sup",{children:E.text},R.key)},R.key)}},[Ie.gfmTask]:{_qualify:["[ ]","[x]"],_match:eo(lie),_order:tt.HIGH,_parse(E){return{completed:E[1].toLowerCase()==="x"}},_render(E,T,R={}){return y.jsx("input",{checked:E.completed,readOnly:!0,type:"checkbox"},R.key)}},[Ie.heading]:{_qualify:["#"],_match:Pr(t.enforceAtxHeadings?AR:xR),_order:tt.HIGH,_parse(E,T,R){const C=performance.now(),I={children:vc(T,E[2],R),id:n(E[2],pc),level:E[1].length},D=performance.now()-C;return D>1&&console.log(`heading._parse: ${D.toFixed(3)}ms, capture length: ${E[0].length}, level: ${E[1].length}`),I},_render(E,T,R={}){const C=performance.now(),I=f(`h${E.level}`,{id:E.id,key:R.key},T(E.children,R)),D=performance.now()-C;return D>1&&console.log(`heading._render: ${D.toFixed(3)}ms, level: ${E.level}, children count: ${E.children.length}, id: ${E.id}`),I}},[Ie.headingSetext]:{_match:Pr(wR),_order:tt.MAX,_parse(E,T,R){return{children:vc(T,E[1],R),level:E[2]==="="?1:2,type:Ie.heading}}},[Ie.htmlBlock]:{_qualify:E=>{if(t.disableParsingRawHTML||E[0]!=="<"||!/^<([a-z][a-z0-9:-]*)\b/.test(E))return!1;const T=E.match(/^<([a-z][a-z0-9:-]*)\b/)?.[1];return T?E.indexOf(`</${T}>`)!==-1:!1},_match:uf(wy),_order:tt.HIGH,_parse(E,T,R){const I=E[3].match(NR)?.[1]??"",D=DR(E[3],I),L=u(D)?LR:vc,V=E[1].toLowerCase(),$=Kre.indexOf(V)!==-1,Z=($?V:E[1]).trim(),Q={attrs:m(Z,E[2]??""),noInnerParse:$,tag:Z};if(R.inAnchor=R.inAnchor||V==="a",$)Q.text=E[3];else{const le=R.inHTML;R.inHTML=!0,Q.children=L(T,D,R),R.inHTML=le}return R.inAnchor=!1,Q},_render(E,T,R={}){const C=performance.now(),I=f(E.tag,{key:R.key,...E.attrs??{}},E.text??(E.children?T(E.children,R):"")),D=performance.now()-C;return D>1&&console.log(`htmlBlock._render: ${D.toFixed(3)}ms, tag: ${E.tag}, has text: ${!!E.text}, has children: ${!!E.children}`),I}},[Ie.htmlSelfClosing]:{_qualify:E=>t.disableParsingRawHTML||E[0]!=="<"?!1:/^<([a-zA-Z][a-zA-Z0-9:]*)[\s>/]/.test(E),_match:uf(Ty),_order:tt.HIGH,_parse(E){const T=E[1].trim();return{attrs:m(T,E[2]||""),tag:T}},_render(E,T,R={}){const C=performance.now(),I=f(E.tag,{key:R.key,...E.attrs??{}}),D=performance.now()-C;return D>1&&console.log(`htmlSelfClosing._render: ${D.toFixed(3)}ms, tag: ${E.tag}`),I}},[Ie.htmlComment]:{_qualify:["<!--"],_match:uf(TR),_order:tt.HIGH,_parse(){return{}},_render:Ny},[Ie.customComponent]:{_qualify:E=>!!E.match(/^ *<([A-Z][a-zA-Z0-9]*)/),_match:Pr(Cy),_order:tt.MAX,_parse(E,T,R){const I=E[3].match(NR)?.[1]??"",D=DR(E[3],I),L=u(D)?LR:vc,V=E[1],Z={attrs:m(V,E[2]??""),noInnerParse:!1,tag:V};{const Q=R.inHTML;R.inHTML=!0;const le=L(T,D,R);Z.children=le,R.inHTML=Q}return Z},_render(E,T,R={}){const C=jR(E.tag,t.overrides??{});if(typeof C=="function"){const I=E.children?T(E.children,R):null;return C({key:R.key,...E.attrs,children:I})}return o(E.tag,{key:R.key,...E.attrs},E.text??(E.children?T(E.children,R):""))}},[Ie.image]:{_qualify:["!["],_match:to(Uie),_order:tt.HIGH,_parse(E){return{alt:Br(E[1]),target:Br(E[2]),title:Br(E[3])}},_render(E,T,R={}){return y.jsx("img",{alt:E.alt??void 0,title:E.title??void 0,src:r(E.target,"img","src")??void 0},R.key)}},[Ie.link]:{_qualify:["["],_match:eo(Vie),_order:tt.LOW,_parse(E,T,R){return{children:toe(T,E[1],R),target:Br(E[2]),title:Br(E[3])}},_render(E,T,R={}){return y.jsx("a",{href:r(E.target,"a","href")??void 0,title:E.title,children:T(E.children,R)},R.key)}},[Ie.linkAngleBraceStyleDetector]:{_qualify:["<"],_match:eo(pie),_order:tt.MAX,_parse(E){return{children:[{text:E[1],type:Ie.text}],target:E[1],type:Ie.link}}},[Ie.linkBareUrlDetector]:{_qualify:(E,T)=>T.inAnchor||t.disableAutoLink?!1:Nf(E,"http://")||Nf(E,"https://"),_match:eo(fie),_order:tt.MAX,_parse(E){return{children:[{text:E[1],type:Ie.text}],target:E[1],title:void 0,type:Ie.link}}},[Ie.linkMailtoDetector]:{_qualify:["<"],_match:eo(hie),_order:tt.MAX,_parse(E){let T=E[1],R=E[1];return Zre.test(R)||(R="mailto:"+R),{children:[{text:T.replace("mailto:",""),type:Ie.text}],target:R,type:Ie.link}}},[Ie.orderedList]:IR(Cr,(E,T,...R)=>f(E,T,...R)),[Ie.unorderedList]:IR(Au,(E,T,...R)=>f(E,T,...R)),[Ie.newlineCoalescer]:{_match:Pr(nie),_order:tt.LOW,_parse:ky,_render(){return`
336
+ `}},[Ie.paragraph]:{_match:Ps(d),_order:tt.LOW,_parse(E,T,R){const C=performance.now(),I=Ry(E,T,R),D=performance.now()-C;return D>1&&console.log(`paragraph._parse: ${D.toFixed(3)}ms, capture length: ${E[0].length}`),I},_render(E,T,R={}){const C=performance.now(),I=y.jsx("p",{children:T(E.children,R)},R.key),D=performance.now()-C;return D>1&&console.log(`paragraph._render: ${D.toFixed(3)}ms, children count: ${E.children.length}`),I}},[Ie.ref]:{_qualify:["["],_match:eo(gie),_order:tt.MAX,_parse(E){return b[E[1]]={target:E[2],title:E[4]},{}},_render:Ny},[Ie.refImage]:{_qualify:["!["],_match:to(yie),_order:tt.MAX,_parse(E){return{alt:E[1]?Br(E[1]):void 0,ref:E[2]}},_render(E,T,R={}){return b[E.ref]?y.jsx("img",{alt:E.alt,src:r(b[E.ref].target,"img","src")??void 0,title:b[E.ref].title},R.key):null}},[Ie.refLink]:{_qualify:E=>E[0]==="["&&E.indexOf("](")===-1,_match:eo(vie),_order:tt.MAX,_parse(E,T,R){return{children:T(E[1],R),fallbackChildren:E[0],ref:E[2]}},_render(E,T,R={}){return b[E.ref]?y.jsx("a",{href:r(b[E.ref].target,"a","href")??void 0,title:b[E.ref].title,children:T(E.children,R)},R.key):y.jsx("span",{children:E.fallbackChildren},R.key)}},[Ie.table]:{_qualify:["|"],_match:Pr(CR),_order:tt.HIGH,_parse(E,T,R){const C=performance.now(),I=qie(E,T,R),D=performance.now()-C;return D>1&&console.log(`table._parse: ${D.toFixed(3)}ms, capture length: ${E[0].length}`),I},_render(E,T,R={}){const C=performance.now(),I=E,D=f("table",{key:R.key},f("thead",{},f("tr",{},...I.header.map((V,$)=>f("th",{key:$,style:OR(I,$)},T(V,R))))),f("tbody",{},...I.cells.map((V,$)=>f("tr",{key:$},...V.map((Z,Q)=>f("td",{key:Q,style:OR(I,Q)},T(Z,R))))))),L=performance.now()-C;return L>1&&console.log(`table._render: ${L.toFixed(3)}ms, header count: ${I.header.length}, rows count: ${I.cells.length}`),D}},[Ie.text]:{_match:Ps((E,T)=>{let R;return Nf(E,":")&&(R=kie.exec(E)),R||Oie.exec(E)}),_order:tt.MIN,_parse(E){const T=E[0];return{text:T.indexOf("&")===-1?T:T.replace(cie,(R,C)=>t.namedCodesToUnicode?.[C]??R)}},_render(E){return E.text}},[Ie.textBolded]:{_qualify:["**","__"],_match:to(wie),_order:tt.MED,_parse(E,T,R){return{children:T(E[2],R)}},_render(E,T,R={}){const C=performance.now(),I=y.jsx("strong",{children:T(E.children,R)},R.key),D=performance.now()-C;return D>1&&console.log(`textBolded._render: ${D.toFixed(3)}ms, children count: ${E.children.length}`),I}},[Ie.textEmphasized]:{_qualify:E=>{const T=E[0];return(T==="*"||T==="_")&&E[1]!==T},_match:to(Tie),_order:tt.LOW,_parse(E,T,R){return{children:T(E[2],R)}},_render(E,T,R={}){const C=performance.now(),I=y.jsx("em",{children:T(E.children,R)},R.key),D=performance.now()-C;return D>1&&console.log(`textEmphasized._render: ${D.toFixed(3)}ms, children count: ${E.children.length}`),I}},[Ie.textEscaped]:{_qualify:["\\"],_match:to(Nie),_order:tt.HIGH,_parse(E){return{text:E[1],type:Ie.text}}},[Ie.textMarked]:{_qualify:["=="],_match:to(Cie),_order:tt.LOW,_parse:Ry,_render(E,T,R={}){return y.jsx("mark",{children:T(E.children,R)},R.key)}},[Ie.textStrikethroughed]:{_qualify:["~~"],_match:to(Rie),_order:tt.LOW,_parse:Ry,_render(E,T,R={}){return y.jsx("del",{children:T(E.children,R)},R.key)}}};t.disableParsingRawHTML===!0&&(delete x[Ie.htmlBlock],delete x[Ie.htmlSelfClosing]);const A=Qie(x),w=QL(noe(x,t.renderRule)),k=p(e);return v.length?y.jsxs("div",{children:[k,y.jsx("footer",{children:v.map(E=>y.jsxs("div",{id:n(E.identifier,pc),children:[E.identifier,w(A(E.footnote,{inline:!0}))]},E.identifier))},"footer")]}):k},ooe=({children:e="",options:t,...n})=>(js.NODE_ENV!=="production"&&typeof e!="string"&&console.error("intlayer: <Markdown> component only accepts a single string as a child, received:",e),S.cloneElement(ioe(e,t),n)),aoe=e=>{const t=e.split(/\r?\n/),n=t.find(s=>s.trim()!=="");if(!n||n.trim()!=="---")return e;let r=!1,o=-1;for(let s=0;s<t.length;s++)if(t[s].trim()==="---")if(r){o=s;break}else{r=!0;continue}return o>-1?t.slice(o+1).join(`
337
+ `):e},soe=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:o,...s}=r??{},l=aoe(e);return y.jsx(Cre,{children:y.jsx(Ure,{children:y.jsx(ooe,{options:{overrides:{h1:u=>y.jsx(f8,{isClickable:!0,...u}),h2:u=>y.jsx(h8,{isClickable:!0,...u}),h3:u=>y.jsx(v_,{isClickable:!0,...u}),h4:u=>y.jsx(p8,{isClickable:!0,...u}),h5:u=>y.jsx(m8,{isClickable:!0,...u}),h6:u=>y.jsx(g8,{isClickable:!0,...u}),code:u=>u.className?y.jsx(jre,{...u,isDarkMode:t,language:u.className?.replace("lang-","")||"plaintext",fileName:u.fileName,showHeader:!!u.fileName}):y.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}),blockquote:({className:u,...d})=>y.jsx("blockquote",{className:me("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",u),...d}),ul:({className:u,...d})=>y.jsx("ul",{className:me("mt-5 flex flex-col gap-3 pl-5 list-disc",u),...d}),ol:({className:u,...d})=>y.jsx("ol",{className:me("mt-5 flex flex-col gap-3 pl-5 list-decimal",u),...d}),img:({className:u,...d})=>y.jsx("img",{...d,loading:"lazy",className:me("max-w-full max-h-[80vh] rounded-md",u),src:`${d.src}?raw=true`}),a:u=>y.jsx(Cb,{color:"neutral",isExternalLink:u.href?.startsWith("http"),underlined:!0,locale:n,...u}),pre:u=>u.children,table:u=>y.jsx(Gre,{...u}),th:({className:u,...d})=>y.jsx("th",{className:me("border-neutral bg-neutral/10 border-b p-4",u),...d}),tr:({className:u,...d})=>y.jsx("tr",{className:me("hover:bg-neutral/10 hover:/10",u),...d}),td:({className:u,...d})=>y.jsx("td",{className:me("border-b border-neutral-500/50 p-4",u),...d}),hr:({className:u,...d})=>y.jsx("hr",{className:me("mt-16 mx-6 text-neutral",u),...d}),Tabs:u=>y.jsx(Ay,{...u}),Tab:u=>y.jsx(Ay,{...u}),TabItem:u=>y.jsx(Ay.Item,{...u}),Columns:({className:u,...d})=>y.jsx("div",{className:me("flex max-md:flex-col gap-4",u),...d}),Column:({className:u,...d})=>y.jsx("div",{className:me("flex-1",u),...d}),...o},...s},children:l??""})})})},loe=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const o=["<=",">=","<",">","="].find(s=>e.startsWith(s));o&&(t=o,n=e.slice(o.length))}return{comparator:t,numberValue:n}},coe=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=S.useMemo(()=>loe(e),[e]),[o,s]=S.useState(n??null),[l,u]=S.useState(r??null);return S.useEffect(()=>{if(o&&l&&(o!==n||l!==r)){const d=`${o}${l}`;t(d)}},[o,n,r,l,t]),y.jsxs("div",{className:"flex gap-1",children:[y.jsxs(Re,{onValueChange:s,defaultValue:n,children:[y.jsx(Re.Trigger,{className:"w-20",children:y.jsx(Re.Value,{placeholder:"Select a comparator"})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:"<",children:"<"}),y.jsx(Re.Item,{value:"<=",children:"<="}),y.jsx(Re.Item,{value:"=",children:"="}),y.jsx(Re.Item,{value:">=",children:">="}),y.jsx(Re.Item,{value:">",children:">"})]})]}),y.jsx(Ws,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:d=>u(d.target.value),className:"min-w-4"})]})},uoe=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:o}=Cn(),s=Zr(),{mutate:l,isPending:u}=Aq();return y.jsx(UJ,{variant:fo.DEFAULT,onContentChange:d=>o(t.localId,d,e),additionalButtons:y.jsx(lt,{Icon:$1,label:"Audit",variant:ot.HOVERABLE,size:wn.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;o(t.localId,f,e)}catch(f){console.error(f)}}})}}),...n})},doe=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Cn();return y.jsx(Kv,{variant:fo.DEFAULT,onContentChange:o=>r(t.localId,o,e),...n})},foe=[{content:"False",value:!1},{content:"True",value:!0}],hoe=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Cn();return y.jsx(_u,{choices:foe,value:!0,onChange:o=>r(e.localId,o,t),color:vu.TEXT,size:bu.SM,...n})},poe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:o,defaultLocale:s}=vb(),{selectedLocales:l,availableLocales:u}=YD(),d=e[H.Translation],f=Object.keys(d),m=u.length>l.length?l:[...new Set([...u,...f])],v=e[H.Translation];return y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:m.map(b=>y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:gf(b,o)}),y.jsx("tr",{children:y.jsx(wo,{section:v[b]??Yn(v[s]),keyPath:[...t,{type:H.Translation,key:b}],dictionary:n,renderSection:r})})]},b))})})},moe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:o}=Cn(),{addNewEnumeration:s,removeEnumeration:l}=dn("navigation-view"),u=e[H.Enumeration],d=Object.keys(u)[0];return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[H.Enumeration]).map(f=>{const p=[...t,{type:H.Enumeration}];return y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 w-full",children:y.jsx("div",{className:"flex flex-1",children:y.jsx(lt,{label:l.label.value,variant:ot.HOVERABLE,color:it.TEXT,Icon:Eh,className:"ml-auto",onClick:()=>o(n.localId,void 0,p),children:l.text})})}),y.jsx("tr",{className:"w-full p-2",children:y.jsx(coe,{value:f,onChange:m=>{const v=e[H.Enumeration],b=MJ(v,f,m),x={...e,[H.Enumeration]:b};o(n.localId,x,t)}})}),y.jsx("tr",{className:"block w-full",children:y.jsx(d0,{section:u[f]??Yn(u[d]),keyPath:p,dictionary:n,renderSection:r})})]},f)})})}),y.jsx(lt,{label:s.label.value,variant:ot.HOVERABLE,color:it.NEUTRAL,textAlign:ks.LEFT,isFullWidth:!0,onClick:()=>o(n.localId,Yn(u[d])??"",[...t,{type:H.Enumeration,key:"unknown"}]),Icon:_h,className:"m-2",children:s.text})]})},goe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const o=e[H.Condition];return y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(s=>y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),y.jsx("tr",{className:"block w-full",children:y.jsx(wo,{section:o[s]??Yn(o.true),keyPath:[...t,{type:H.Condition,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},yoe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const o=e[H.Gender];return y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["male","female","fallback"].map(s=>y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),y.jsx("tr",{className:"block w-full",children:y.jsx(wo,{section:o[s]??Yn(o.male),keyPath:[...t,{type:H.Gender,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},voe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:o}=Cn(),{addNewElement:s,removeElement:l}=dn("navigation-view");return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((u,d)=>y.jsxs(S.Fragment,{children:[y.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[y.jsx("span",{className:"text-xs",children:String(d)}),y.jsx(lt,{label:l.label.value,variant:ot.HOVERABLE,color:it.NEUTRAL,className:"ml-auto",textAlign:ks.LEFT,onClick:()=>{const f=[...t,{type:H.Array,key:e.length}];o(n.localId,void 0,f)},Icon:Eh,children:l.text})]}),y.jsx("tr",{className:"block w-full",children:y.jsx(wo,{section:u??Yn(e[0]),keyPath:[...t,{type:H.Array,key:d}],dictionary:n,renderSection:r})})]},JSON.stringify(u)))})}),y.jsx(lt,{label:s.label.value,variant:ot.HOVERABLE,color:it.NEUTRAL,textAlign:ks.LEFT,isFullWidth:!0,onClick:()=>{const u=[...t,{type:H.Array,key:e.length}];o(n.localId,Yn(e[0])??"",u,!1)},Icon:_h,children:s.text})]})},boe=({section:e,keyPath:t,dictionary:n,renderSection:r})=>y.jsx(y.Fragment,{children:y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(o=>{const s=[...t,{type:H.Object,key:o}],l=e,u=Object.keys(l)[0],d=l[o]??Yn(l[u]);return y.jsxs(S.Fragment,{children:[y.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(o)},JSON.stringify(d)),y.jsx("tr",{className:"block w-full",children:y.jsx(d0,{section:d,keyPath:s,dictionary:n,renderSection:r})},JSON.stringify(d))]},o)})})})}),_oe=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:o})=>{const[s,l]=S.useState(0),u=[{content:"Edit",value:0},{content:"Preview",value:1}],d=[...t,{type:H.Markdown}],f=e[H.Markdown];return y.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[y.jsx(_u,{choices:u,value:s,onChange:l,color:vu.TEXT,size:bu.SM,className:"ml-auto"}),y.jsx(wo,{section:f,keyPath:d,dictionary:n,renderSection:s===1?p=>y.jsx(soe,{isDarkMode:r,children:p}):void 0,onContentChange:o})]})},Eoe=({section:e,keyPath:t,...n})=>{const r=[...t,{type:H.Insertion}],o=e[H.Insertion];return y.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:y.jsx(wo,{section:o,keyPath:r,...n})})},Soe=({section:e,keyPath:t,...n})=>{const r=[...t,{type:H.File}],o=e[H.File],{content:s}=e;return y.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[y.jsxs("span",{className:"text-neutral text-sm",children:[o," "]}),y.jsx(wo,{section:s,keyPath:r,...n})]})},xoe=({keyPath:e,dictionary:t,renderSection:n,section:r,...o})=>{const{addEditedContent:s}=Cn(),l=r[H.Nested],u=[...e,{type:H.Nested}];return y.jsxs("div",{className:"w-full p-2",children:[y.jsx(Tv,{children:"Dictionary key"}),y.jsx(Kv,{"aria-label":"Edit field",type:"text",variant:fo.DEFAULT,...o,onContentChange:d=>{s(t.localId,{...l,dictionaryKey:String(d)},u)},children:l.dictionaryKey??""}),y.jsx(Tv,{children:"Path (optional)"}),y.jsx(Kv,{"aria-label":"Edit field",type:"text",variant:fo.DEFAULT,...o,onContentChange:d=>{s(t.localId,{...l,path:d!==""?d:void 0},u)},children:l.path??""})]})},d0=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:o})=>{const{tsxNotEditable:s}=dn("navigation-view"),l=Ms(e);return l===H.ReactNode?y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"[React Node]"}),y.jsx("span",{className:"text-neutral text-xs",children:s})]}):l===H.Nested?y.jsx(xoe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Translation?y.jsx(poe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Enumeration?y.jsx(moe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Condition?y.jsx(goe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Gender?y.jsx(yoe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Insertion?y.jsx(Eoe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Markdown?y.jsx(_oe,{dictionary:n,keyPath:t,section:e,isDarkMode:o}):l===H.File?y.jsx(Soe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Array?y.jsx(voe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Object?y.jsx(boe,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===H.Number?y.jsx("div",{className:"w-full p-2",children:y.jsx(doe,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===H.Text?y.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):y.jsx(uoe,{variant:fo.DEFAULT,"aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===H.Boolean?y.jsx("div",{className:"w-full p-2",children:y.jsx(hoe,{dictionary:n,keyPath:t,value:e})}):y.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",l]})},wo=e=>y.jsx(kr,{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:y.jsx(d0,{...e})}),Yc=e=>{const t=e1(e),n=Ms(e);return t&&(n===H.ReactNode||n===H.File)?!0:t&&typeof t.nodeType=="string"?Yc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},Aoe=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const o=[{text:t,onClick:()=>n([])},...e.map((s,l)=>({onClick:()=>n(e.slice(0,l+1)),text:s.key?.toString()??""}))];return y.jsx(vH,{links:o,locale:r,elementType:"location"})},If=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),ps=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=st?.internationalization,o=dr(e,t),{addEditedContent:s}=zs(),{setFocusedContentKeyPath:l,focusedContent:u}=mo(),{addNewElement:d,goToField:f}=dn("navigation-view"),p=Ms(o),m=b=>(u?.keyPath?.length??0)>0&&Jc(b,u?.keyPath??[]),v=Yc(o);if(!o)return y.jsx(y.Fragment,{});if(v)return y.jsx(lt,{label:f.label.value,variant:ot.HOVERABLE,color:it.TEXT,className:"w-full",onClick:()=>l(t),IconRight:Mf,children:If(t[t.length-1].key)});if(typeof o=="object"){if(p===H.ReactNode)return y.jsx(y.Fragment,{children:"React Node"});if(p===H.Translation)return y.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(x=>{const A=[...t,{type:H.Translation,key:x}];return y.jsx(ps,{keyPath:A,section:e,dictionaryKey:n},x)})});if(p===H.Enumeration||p===H.Condition)return y.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(o[p]).map(x=>{const A=[...t,{type:p,key:x}];return y.jsx(ps,{keyPath:A,section:e,dictionaryKey:n},x)})});if(p===H.Array)return y.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[o.map((x,A)=>{const w=[...t,{type:H.Array,key:A}];return y.jsx(ps,{keyPath:w,section:e,dictionaryKey:n},JSON.stringify(w))}),y.jsx(lt,{label:d.label.value,variant:ot.HOVERABLE,color:it.NEUTRAL,textAlign:ks.LEFT,onClick:()=>{const x=[...t,{type:H.Array,key:o.length}],A=o,w=Yn(A[A.length-1])??"";s(n,w,x,!1),l(x)},Icon:_h,children:d.text})]});if(typeof o.nodeType=="string"){const x=[...t,{type:o.nodeType}];return y.jsx(ps,{keyPath:x,section:e,dictionaryKey:n})}const b=Object.keys(o);return y.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:b.map(x=>{const A=[...t,{type:H.Object,key:x}],w=dr(e,A);return Yc(w)?y.jsx(lt,{label:`${f.label.value} ${x}`,isActive:m(A),variant:ot.HOVERABLE,color:it.TEXT,className:"w-full",onClick:()=>l(A),IconRight:Mf,children:If(x)},x):y.jsx(nk,{label:`${f.label.value} ${x}`,isActive:m(A),onClick:()=>l(A),header:If(x),children:y.jsx("div",{className:"mt-2 flex w-full max-w-full",children:y.jsx("div",{className:"flex-1 pl-10",children:y.jsx(ps,{keyPath:A,section:e,dictionaryKey:n})})})},x)})})}return y.jsxs(y.Fragment,{children:["Error loading section --",p,"--",JSON.stringify(o),"--",JSON.stringify(t)]})},woe=({dictionary:e,isDarkMode:t})=>{const{content:n,key:r}=e,{editedContent:o}=Cn(),{focusedContent:s,setFocusedContentKeyPath:l}=mo(),u=s?.keyPath,d=typeof o?.[r]?.content>"u"?n:o?.[r]?.content,f=dr(d,u??[]),p=Yc(d),m=Yc(f);return S.useEffect(()=>{typeof f>"u"&&l(s?.keyPath?.slice(0,-1)??[])},[]),y.jsxs("div",{children:[y.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[y.jsx(Aoe,{dictionaryKey:r,keyPath:u??[],onClickKeyPath:l}),y.jsx("div",{className:"flex items-center gap-2",children:y.jsx(PJ,{})})]}),y.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof d=="object"&&d&&!p&&Object.keys(d).length>0&&y.jsx(kr,{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:y.jsx(ps,{keyPath:[],section:d,dictionaryKey:r})}),(m||(u??[]).length>0)&&y.jsx(wo,{keyPath:u??[],section:f,dictionary:e,isDarkMode:t})]})]})},Toe=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:o,keyInvalidTypeError:s,keySpaceError:l,keyMinLengthError:u,descriptionRequiredError:d,descriptionInvalidTypeError:f,requiredErrorProjectId:p,invalidTypeErrorProjectId:m,invalidTypeErrorTags:v}=dn("dictionary-detail-schema");return wQ({title:fc({error:b=>b.input===void 0?t.value:n.value}).refine(b=>b.length===0||b.length>=4,{error:r.value}).optional(),key:fc({error:b=>b.input===void 0?o.value:s.value}).min(4,{error:u.value}).regex(/^[a-zA-Z0-9-_]+$/,{error:l.value}).default(""),description:fc({error:b=>b.input===void 0?d.value:f.value}).optional(),projectIds:zv(fc({error:b=>b.input===void 0?p.value:m.value})).default([e]),tags:zv(fc({error:()=>v.value})).default([])})},Coe=({dictionary:e})=>{const{session:t}=mu(),{project:n}=t??{},{data:r,isLoading:o}=bq(),{data:s}=Sq(),l=Toe(String(n?.id)),{form:u,isSubmitting:d}=$Z(l,{defaultValues:e}),{editedContent:f,setEditedDictionary:p}=Cn(),{titleInput:m,keyInput:v,descriptionInput:b,projectInput:x,tagsSelect:A,auditButton:w}=dn("dictionary-details"),{mutate:k,isPending:E}=xq(),T=f?.[e.key];S.useEffect(()=>{u.reset(e)},[e,u?.reset]),S.useEffect(()=>{typeof T>"u"&&u.reset(e)},[T]);const R=()=>{const C={...e,...T};k({fileContent:JSON.stringify(C)},{onSuccess:I=>{if(I?.data)try{const D=JSON.parse(I.data.fileContent);p(L=>({...L,...C,...D})),u.reset({...C,...D})}catch(D){console.error(D)}}})};return y.jsx(kr,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:y.jsxs(He,{className:"flex w-full flex-col gap-8",...u,schema:l,onChange:C=>p(I=>({...I,...C})),children:[y.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[y.jsx(He.EditableFieldInput,{name:"key",label:v.label,placeholder:v.label.value,description:v.description,disabled:d,isRequired:!0,onSave:C=>{u.setValue("key",C),p(I=>({...e,...I??{},key:C}))}}),y.jsx(He.EditableFieldInput,{name:"title",label:m.label,placeholder:m.placeholder.value,description:m.description,disabled:d,onSave:C=>{u.setValue("title",C),p(I=>({...e,...I??{},title:C}))}})]}),y.jsx(He.EditableFieldTextArea,{name:"description",label:b.label,placeholder:b.placeholder.value,description:b.description,disabled:d,onSave:C=>{u.setValue("description",C),p(I=>({...e,...I??{},description:C}))}}),y.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[y.jsxs(He.MultiSelect,{name:"projectIds",label:x.label.value,description:x.description.value,onValueChange:C=>{const I=[C].flat();u.setValue("projectIds",I),p(D=>({...e,...D??{},projectIds:I}))},children:[y.jsx(yn.Trigger,{getBadgeValue:C=>r?.data?.find(I=>String(I.id)===C)?.name??C,children:y.jsx(yn.Input,{placeholder:x.placeholder.value})}),y.jsx(yn.Content,{children:y.jsx(Rs,{isLoading:o,children:y.jsx(yn.List,{children:r?.data?.map(C=>y.jsx(yn.Item,{value:String(C.id),children:C.name},String(C.id)))})})})]}),y.jsxs(He.MultiSelect,{name:"tags",label:A.label.value,description:A.description.value,onValueChange:C=>{u.setValue("tags",[C].flat()),p(I=>({...e,...I??{},tags:[C].flat()}))},children:[y.jsx(yn.Trigger,{getBadgeValue:C=>r?.data?.find(I=>String(I.id)===C)?.name??C,children:y.jsx(yn.Input,{placeholder:A.placeholder.value})}),y.jsx(yn.Content,{children:y.jsx(Rs,{isLoading:o,children:y.jsx(yn.List,{children:s?.data?.map(C=>y.jsx(yn.Item,{value:String(C.key),children:C.name??C.key},String(C.key)))})})})]})]}),y.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:y.jsx(He.Button,{type:"button",label:w.label.value,Icon:$1,variant:ot.OUTLINE,color:it.TEXT,className:"max-md:w-full",onClick:R,disabled:d||E,isLoading:E,children:w.text})})]})})};function Roe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function MR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PR(Object(n),!0).forEach(function(r){Roe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function koe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Noe(e,t){if(e==null)return{};var n=koe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ioe(e,t){return Ooe(e)||Doe(e,t)||Loe(e,t)||joe()}function Ooe(e){if(Array.isArray(e))return e}function Doe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!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){o=!0,s=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(o)throw s}}return n}}function Loe(e,t){if(e){if(typeof e=="string")return zR(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 zR(e,t)}}function zR(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 joe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
338
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Poe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function VR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(n),!0).forEach(function(r){Poe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Moe(){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(o,s){return s(o)},r)}}function bc(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return o.length>=e.length?e.apply(this,o):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(o,u))}}}function gh(e){return{}.toString.call(e).includes("Object")}function zoe(e){return!Object.keys(e).length}function Xc(e){return typeof e=="function"}function Boe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Voe(e,t){return gh(t)||ao("changeType"),Object.keys(t).some(function(n){return!Boe(e,n)})&&ao("changeField"),t}function Uoe(e){Xc(e)||ao("selectorType")}function Foe(e){Xc(e)||gh(e)||ao("handlerType"),gh(e)&&Object.values(e).some(function(t){return!Xc(t)})&&ao("handlersType")}function $oe(e){e||ao("initialIsRequired"),gh(e)||ao("initialType"),zoe(e)&&ao("initialContent")}function Hoe(e,t){throw new Error(e[t]||e.default)}var Goe={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"},ao=bc(Hoe)(Goe),df={changes:Voe,selector:Uoe,handler:Foe,initial:$oe};function Koe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};df.initial(e),df.handler(t);var n={current:e},r=bc(Zoe)(n,t),o=bc(Woe)(n),s=bc(df.changes)(e),l=bc(qoe)(n);function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return df.selector(f),f(n.current)}function d(f){Moe(r,o,s,l)(f)}return[u,d]}function qoe(e,t){return Xc(t)?t(e.current):t}function Woe(e,t){return e.current=VR(VR({},e.current),t),t}function Zoe(e,t,n){return Xc(t)?t(e.current):Object.keys(n).forEach(function(r){var o;return(o=t[r])===null||o===void 0?void 0:o.call(t,e.current[r])}),n}var Yoe={create:Koe},Xoe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Qoe(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return o.length>=e.length?e.apply(this,o):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(o,u))}}}function Joe(e){return{}.toString.call(e).includes("Object")}function eae(e){return e||UR("configIsRequired"),Joe(e)||UR("configType"),e.urls?(tae(),{paths:{vs:e.urls.monacoBase}}):e}function tae(){console.warn(JL.deprecation)}function nae(e,t){throw new Error(e[t]||e.default)}var JL={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!
339
+ You are using deprecated way of configuration.
340
+
341
+ Instead of using
342
+ monaco.config({ urls: { monacoBase: '...' } })
343
+ use
344
+ monaco.config({ paths: { vs: '...' } })
345
+
346
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
347
+ `},UR=Qoe(nae)(JL),rae={config:eae},iae=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(s,l){return l(s)},o)}};function ej(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],ej(e[n],t[n]))}),MR(MR({},e),t)}var oae={type:"cancelation",msg:"operation is manually canceled"};function Iy(e){var t=!1,n=new Promise(function(r,o){e.then(function(s){return t?o(oae):r(s)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var aae=Yoe.create({config:Xoe,isInitialized:!1,resolve:null,reject:null,monaco:null}),tj=Ioe(aae,2),wu=tj[0],Jh=tj[1];function sae(e){var t=rae.config(e),n=t.monaco,r=Noe(t,["monaco"]);Jh(function(o){return{config:ej(o.config,r),monaco:n}})}function lae(){var e=wu(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(Jh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Iy(Oy);if(window.monaco&&window.monaco.editor)return nj(window.monaco),e.resolve(window.monaco),Iy(Oy);iae(cae,dae)(fae)}return Iy(Oy)}function cae(e){return document.body.appendChild(e)}function uae(e){var t=document.createElement("script");return e&&(t.src=e),t}function dae(e){var t=wu(function(r){var o=r.config,s=r.reject;return{config:o,reject:s}}),n=uae("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function fae(){var e=wu(function(n){var r=n.config,o=n.resolve,s=n.reject;return{config:r,resolve:o,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){nj(n),e.resolve(n)},function(n){e.reject(n)})}function nj(e){wu().monaco||Jh({monaco:e})}function hae(){return wu(function(e){var t=e.monaco;return t})}var Oy=new Promise(function(e,t){return Jh({resolve:e,reject:t})}),rj={config:sae,init:lae,__getMonacoInstance:hae},pae={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Dy=pae,mae={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},gae=mae;function yae({children:e}){return Oe.createElement("div",{style:gae.container},e)}var vae=yae,bae=vae;function _ae({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:s,wrapperProps:l}){return Oe.createElement("section",{style:{...Dy.wrapper,width:e,height:t},...l},!n&&Oe.createElement(bae,null,r),Oe.createElement("div",{ref:o,style:{...Dy.fullWidth,...!n&&Dy.hide},className:s}))}var Eae=_ae,ij=S.memo(Eae);function Sae(e){S.useEffect(e,[])}var oj=Sae;function xae(e,t,n=!0){let r=S.useRef(!0);S.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Kn=xae;function Oc(){}function Es(e,t,n,r){return Aae(e,r)||wae(e,t,n,r)}function Aae(e,t){return e.editor.getModel(aj(e,t))}function wae(e,t,n,r){return e.editor.createModel(t,n,r?aj(e,r):void 0)}function aj(e,t){return e.Uri.parse(t)}function Tae({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:s,modifiedModelPath:l,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:p="Loading...",options:m={},height:v="100%",width:b="100%",className:x,wrapperProps:A={},beforeMount:w=Oc,onMount:k=Oc}){let[E,T]=S.useState(!1),[R,C]=S.useState(!0),I=S.useRef(null),D=S.useRef(null),L=S.useRef(null),V=S.useRef(k),$=S.useRef(w),Z=S.useRef(!1);oj(()=>{let oe=rj.init();return oe.then(z=>(D.current=z)&&C(!1)).catch(z=>z?.type!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>I.current?q():oe.cancel()}),Kn(()=>{if(I.current&&D.current){let oe=I.current.getOriginalEditor(),z=Es(D.current,e||"",r||n||"text",s||"");z!==oe.getModel()&&oe.setModel(z)}},[s],E),Kn(()=>{if(I.current&&D.current){let oe=I.current.getModifiedEditor(),z=Es(D.current,t||"",o||n||"text",l||"");z!==oe.getModel()&&oe.setModel(z)}},[l],E),Kn(()=>{let oe=I.current.getModifiedEditor();oe.getOption(D.current.editor.EditorOption.readOnly)?oe.setValue(t||""):t!==oe.getValue()&&(oe.executeEdits("",[{range:oe.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),oe.pushUndoStop())},[t],E),Kn(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],E),Kn(()=>{let{original:oe,modified:z}=I.current.getModel();D.current.editor.setModelLanguage(oe,r||n||"text"),D.current.editor.setModelLanguage(z,o||n||"text")},[n,r,o],E),Kn(()=>{D.current?.editor.setTheme(f)},[f],E),Kn(()=>{I.current?.updateOptions(m)},[m],E);let Q=S.useCallback(()=>{if(!D.current)return;$.current(D.current);let oe=Es(D.current,e||"",r||n||"text",s||""),z=Es(D.current,t||"",o||n||"text",l||"");I.current?.setModel({original:oe,modified:z})},[n,t,o,e,r,s,l]),le=S.useCallback(()=>{!Z.current&&L.current&&(I.current=D.current.editor.createDiffEditor(L.current,{automaticLayout:!0,...m}),Q(),D.current?.editor.setTheme(f),T(!0),Z.current=!0)},[m,f,Q]);S.useEffect(()=>{E&&V.current(I.current,D.current)},[E]),S.useEffect(()=>{!R&&!E&&le()},[R,E,le]);function q(){let oe=I.current?.getModel();u||oe?.original?.dispose(),d||oe?.modified?.dispose(),I.current?.dispose()}return Oe.createElement(ij,{width:b,height:v,isEditorReady:E,loading:p,_ref:L,className:x,wrapperProps:A})}var Cae=Tae;S.memo(Cae);function Rae(e){let t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var kae=Rae,ff=new Map;function Nae({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:s,theme:l="light",line:u,loading:d="Loading...",options:f={},overrideServices:p={},saveViewState:m=!0,keepCurrentModel:v=!1,width:b="100%",height:x="100%",className:A,wrapperProps:w={},beforeMount:k=Oc,onMount:E=Oc,onChange:T,onValidate:R=Oc}){let[C,I]=S.useState(!1),[D,L]=S.useState(!0),V=S.useRef(null),$=S.useRef(null),Z=S.useRef(null),Q=S.useRef(E),le=S.useRef(k),q=S.useRef(),oe=S.useRef(r),z=kae(s),ee=S.useRef(!1),W=S.useRef(!1);oj(()=>{let ie=rj.init();return ie.then(G=>(V.current=G)&&L(!1)).catch(G=>G?.type!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>$.current?P():ie.cancel()}),Kn(()=>{let ie=Es(V.current,e||r||"",t||o||"",s||n||"");ie!==$.current?.getModel()&&(m&&ff.set(z,$.current?.saveViewState()),$.current?.setModel(ie),m&&$.current?.restoreViewState(ff.get(s)))},[s],C),Kn(()=>{$.current?.updateOptions(f)},[f],C),Kn(()=>{!$.current||r===void 0||($.current.getOption(V.current.editor.EditorOption.readOnly)?$.current.setValue(r):r!==$.current.getValue()&&(W.current=!0,$.current.executeEdits("",[{range:$.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),$.current.pushUndoStop(),W.current=!1))},[r],C),Kn(()=>{let ie=$.current?.getModel();ie&&o&&V.current?.editor.setModelLanguage(ie,o)},[o],C),Kn(()=>{u!==void 0&&$.current?.revealLine(u)},[u],C),Kn(()=>{V.current?.editor.setTheme(l)},[l],C);let be=S.useCallback(()=>{if(!(!Z.current||!V.current)&&!ee.current){le.current(V.current);let ie=s||n,G=Es(V.current,r||e||"",t||o||"",ie||"");$.current=V.current?.editor.create(Z.current,{model:G,automaticLayout:!0,...f},p),m&&$.current.restoreViewState(ff.get(ie)),V.current.editor.setTheme(l),u!==void 0&&$.current.revealLine(u),I(!0),ee.current=!0}},[e,t,n,r,o,s,f,p,m,l,u]);S.useEffect(()=>{C&&Q.current($.current,V.current)},[C]),S.useEffect(()=>{!D&&!C&&be()},[D,C,be]),oe.current=r,S.useEffect(()=>{C&&T&&(q.current?.dispose(),q.current=$.current?.onDidChangeModelContent(ie=>{W.current||T($.current.getValue(),ie)}))},[C,T]),S.useEffect(()=>{if(C){let ie=V.current.editor.onDidChangeMarkers(G=>{let ne=$.current.getModel()?.uri;if(ne&&G.find(ue=>ue.path===ne.path)){let ue=V.current.editor.getModelMarkers({resource:ne});R?.(ue)}});return()=>{ie?.dispose()}}return()=>{}},[C,R]);function P(){q.current?.dispose(),v?m&&ff.set(s,$.current.saveViewState()):$.current.getModel()?.dispose(),$.current.dispose()}return Oe.createElement(ij,{width:b,height:x,isEditorReady:C,loading:d,_ref:Z,className:A,wrapperProps:w})}var Iae=Nae,Oae=S.memo(Iae);const Dae=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:o=!0,isReadOnly:s=!1,onChange:l})=>{const u=S.useRef(null),d=S.useRef(null),[f,p]=S.useState({height:0,width:0}),m=S.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),v=(x,A)=>{d.current=x;const w=(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(m),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:w,width:u.current?.clientWidth??0})},b=r??e.split(`
348
+ `).length>1;return y.jsxs("div",{className:me("relative h-full w-full text-sm",r&&"ml-0"),children:[o&&y.jsx("div",{className:"sticky top-5 z-10",children:y.jsx("div",{className:me("absolute bottom-0 right-2 flex h-7 items-center"),children:y.jsx(Uk,{content:e})})}),y.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:y.jsx(Oae,{...f,defaultLanguage:"typescript",language:t,loading:y.jsx(Rs,{}),defaultValue:String(e).replace(/\n$/,""),onMount:v,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:b?"on":"off"},theme:m,className:"my-2 rounded-md"})})]})},Lae=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Cn(),o=l=>{try{return JSON.parse(l),!0}catch{return!1}},s=S.useMemo(()=>r?.[e.localId]?.content??e?.content??{},[e]);return y.jsx(kr,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:y.jsx(Dae,{language:"json",onChange:l=>{o(l??"{}")&&n(e.localId,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},hf=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:o,boolean:s,node:l,array:u,enumeration:d,triggerPlaceHolder:f,nest:p,condition:m,markdown:v,insertion:b,reactNode:x,file:A}=dn("node-type-selector"),w=Ms(e),[k,E]=S.useState(w),T=R=>{E(R),t(R)};return y.jsxs(Re,{value:k,onValueChange:T,children:[y.jsx(Re.Trigger,{children:y.jsx(Re.Value,{placeholder:f})}),y.jsxs(Re.Content,{children:[y.jsx(Re.Item,{value:H.Translation,children:n}),y.jsx(Re.Item,{value:H.Text,children:r}),y.jsx(Re.Item,{value:H.Number,children:o}),y.jsx(Re.Item,{value:H.Boolean,children:s}),y.jsx(Re.Item,{value:H.Object,children:l}),y.jsx(Re.Item,{value:H.Array,children:u}),y.jsx(Re.Item,{value:H.Enumeration,children:d}),y.jsx(Re.Item,{value:H.Insertion,children:b}),y.jsx(Re.Item,{value:H.Markdown,children:v}),y.jsx(Re.Item,{value:H.Nested,children:p}),y.jsx(Re.Item,{value:H.Condition,children:m}),y.jsx(Re.Item,{value:H.ReactNode,disabled:!0,children:x}),y.jsx(Re.Item,{value:H.File,children:A})]})]})},sb=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{const o=Zr()?.internationalization.locales??[],s=Ms(e),l=e1(e),u=d=>{const f=Jl(s,o,d);r(f)};if(s===H.Translation||s===H.Condition||s===H.Enumeration){const d=Object.keys(e[s])[0],f=[...n,{type:s,key:d}];return y.jsxs("div",{className:"flex w-full flex-col gap-1",children:[y.jsx(hf,{section:e,onValueChange:p=>r(Jl(p,o))}),y.jsx(sb,{section:l,keyPath:f,dictionaryKey:t,onNodeTypeChange:u})]})}if(s===H.Array){const d=[...n,{type:s,key:0}];return y.jsxs("div",{className:"flex w-full flex-col gap-1",children:[y.jsx(hf,{section:e,onValueChange:f=>r(Jl(f,o))}),y.jsx(sb,{section:l,keyPath:d,dictionaryKey:t,onNodeTypeChange:u})]})}return s===H.Object?y.jsxs(y.Fragment,{children:[y.jsx(hf,{section:e,onValueChange:d=>r(Jl(d,o))}),y.jsx("div",{className:"ml-10 mt-6",children:y.jsx(Pae,{keyPath:n,section:e,dictionaryKey:t})})]}):y.jsx(hf,{section:e,onValueChange:d=>r(Jl(d,o))})},f0=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:o,setFocusedContentKeyPath:s}=mo(),{renameEditedContent:l,addEditedContent:u}=zs(),{titleInput:d,deleteButton:f}=dn("structure-view"),p=m=>{l(r,m,n);const v=n.slice(0,-1),b=n[n.length-1],x=[...v,{...b,key:m}];s(x)};return y.jsx(kr,{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":Jc(n,o?.keyPath??[]),onClick:()=>s(n),children:y.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&y.jsxs("div",{className:"w-full",children:[y.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[y.jsx(lO,{name:"key","aria-label":"Key",placeholder:d.placeholder.value,defaultValue:e,onSave:m=>p(m),variant:fo.INVISIBLE}),y.jsx(lt,{label:f.label.value,variant:ot.HOVERABLE,size:wn.ICON_SM,color:it.TEXT,className:"translate-x-2",Icon:Eh,onClick:()=>{u(r,void 0,n);const m=n.slice(0,-1);s(m)}})]}),y.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",If(e)," )"]})]}),y.jsx(sb,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:m=>{u(r,m,n)}})]})})},jae=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=dn("structure-view"),{setFocusedContentKeyPath:o}=gb(),{addEditedContent:s}=zs();return!e||typeof e!="object"?y.jsx("div",{children:"Not an object"}):y.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto",children:[y.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>y.jsx("li",{className:"flex w-full",children:y.jsx(f0,{sectionKey:l,section:e?.[l],keyPath:[...t,{type:H.Object,key:l}],dictionaryKey:n})},l))}),y.jsx(lt,{label:r.label.value,variant:ot.HOVERABLE,size:wn.MD,color:it.TEXT,Icon:_h,className:"flex-1",onClick:()=>{const u=[...t,{type:H.Object,key:"newKey"}];s(n,"",u),o(u)},children:r.text})]})},Pae=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?y.jsx(f0,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):y.jsx(jae,{section:e,keyPath:t,dictionaryKey:n}),Mae=({dictionary:e})=>{const{content:t,key:n,localId:r}=e,{editedContent:o}=Cn(),s=typeof o?.[r]?.content>"u"?t:o?.[r]?.content;return y.jsx(f0,{section:s,keyPath:[],dictionaryKey:n})},zae=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r,onDelete:o})=>{const s=Zr(),[l,u]=S.useState(1),{returnToDictionaryList:d}=dn("dictionary-field-editor"),{setFocusedContent:f}=gb(),{setLocaleDictionaries:p}=yh();return S.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key,dictionaryLocalId:e.localId})),p(m=>({...m,[e.localId]:e}))},[]),y.jsx(jJ,{availableLocales:s?.internationalization.locales??[],children:y.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[y.jsx(lt,{onClick:t,variant:ot.HOVERABLE,className:"z-10 ml-5 mr-auto",color:it.TEXT,Icon:$F,label:d.label.value,children:d.text}),y.jsx(_u,{defaultValue:l,onChange:m=>u(m),color:vu.TEXT,size:bu.SM,className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:0},{content:"Structure",value:2},{content:"Content",value:1},{content:"JSON",value:3}].filter(({value:m})=>!(!r.includes("remote")&&m===0))}),l===0&&y.jsx(Coe,{dictionary:e}),l===2&&y.jsx(Mae,{dictionary:e}),l===1&&y.jsx(woe,{dictionary:e,isDarkMode:n}),l===3&&y.jsx(Lae,{dictionary:e,isDarkMode:n}),y.jsx(_D,{dictionary:e,mode:r,onDelete:()=>{f(null),o?.()}})]})})},Bae=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:o,...s})=>y.jsx("div",{className:me("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",o),"aria-hidden":t,...s,children:y.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:me(r==="right"&&"ml-auto"),children:e})}),Vae=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}},Uae=()=>{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)},Fae=e=>{if(!(typeof window>"u"))return(window?.innerWidth??0)<=e},FR=(e="md")=>{const t=Vae(e),n=Uae(),r=Fae(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},$ae=(e="md")=>{const[t,n]=S.useState(FR(e));return S.useEffect(()=>{const r=()=>{n(FR(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},Hae=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},ep=PI((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})),sj=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:o=!0,backButton:s,isOpen:l,onClose:u})=>{const{isMobile:d}=$ae("md"),f=S.useRef(null),p=S.useRef(null),{close:m,open:v,isOpen:b}=ep(MI(A=>({close:()=>A.close(t),open:()=>A.open(t),isOpen:A.isOpen(t)})));zI({disableScroll:b,key:t?`right_drawer_${t}`:"right_drawer"}),S.useEffect(()=>{const A=w=>{try{if(!f.current)return;const k=b&&o,E=w.target&&!f.current.contains(w.target),T=Hae(f.current);(k&&E&&T||!w.target)&&(m(),u?.())}catch{m(),u?.()}};return window.addEventListener("mousedown",A),()=>window.removeEventListener("mousedown",A)},[b,m,u,o,t]),S.useEffect(()=>{l!==void 0&&(l?v():(m(),u?.()))},[m,v,u,l,t]);const x=A=>{A.target===A.currentTarget&&d&&(m(),u?.())};return y.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:y.jsx(Bae,{isHidden:!b,align:"right",children:y.jsxs(kr,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:f,roundedSize:"none",children:[y.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[y.jsxs("div",{className:"flex justify-between gap-3",children:[y.jsx("div",{children:s&&y.jsx(lt,{variant:ot.HOVERABLE,color:it.TEXT,label:s.text??"Go back",onClick:s.onBack,Icon:ZF,children:s?.text})}),y.jsx("div",{children:y.jsx(lt,{variant:ot.HOVERABLE,color:it.TEXT,label:"Close",className:"ml-auto",onClick:m,Icon:ga,size:wn.ICON_MD})})]}),e&&y.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),y.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:y.jsx("div",{className:"flex flex-1 flex-col",onClick:x,ref:p,children:n})})]})})})};var h0="ToastProvider",[p0,Gae,Kae]=fO("Toast"),[lj,qae]=ou("Toast",[Kae]),[Wae,tp]=lj(h0),m0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:l}=e,[u,d]=S.useState(null),[f,p]=S.useState(0),m=S.useRef(!1),v=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${h0}\`. Expected non-empty \`string\`.`),y.jsx(p0.Provider,{scope:t,children:y.jsx(Wae,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:f,viewport:u,onViewportChange:d,onToastAdd:S.useCallback(()=>p(b=>b+1),[]),onToastRemove:S.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v,children:l})})};m0.displayName=h0;var cj="ToastViewport",Zae=["F8"],lb="toast.viewportPause",cb="toast.viewportResume",g0=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Zae,label:o="Notifications ({hotkey})",...s}=e,l=tp(cj,n),u=Gae(n),d=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(null),v=Ct(t,m,l.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;S.useEffect(()=>{const w=k=>{r.length!==0&&r.every(T=>k[T]||k.code===T)&&m.current?.focus()};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),S.useEffect(()=>{const w=d.current,k=m.current;if(x&&w&&k){const E=()=>{if(!l.isClosePausedRef.current){const I=new CustomEvent(lb);k.dispatchEvent(I),l.isClosePausedRef.current=!0}},T=()=>{if(l.isClosePausedRef.current){const I=new CustomEvent(cb);k.dispatchEvent(I),l.isClosePausedRef.current=!1}},R=I=>{!w.contains(I.relatedTarget)&&T()},C=()=>{w.contains(document.activeElement)||T()};return w.addEventListener("focusin",E),w.addEventListener("focusout",R),w.addEventListener("pointermove",E),w.addEventListener("pointerleave",C),window.addEventListener("blur",E),window.addEventListener("focus",T),()=>{w.removeEventListener("focusin",E),w.removeEventListener("focusout",R),w.removeEventListener("pointermove",E),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",E),window.removeEventListener("focus",T)}}},[x,l.isClosePausedRef]);const A=S.useCallback(({tabbingDirection:w})=>{const E=u().map(T=>{const R=T.ref.current,C=[R,...lse(R)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?E.reverse():E).flat()},[u]);return S.useEffect(()=>{const w=m.current;if(w){const k=E=>{const T=E.altKey||E.ctrlKey||E.metaKey;if(E.key==="Tab"&&!T){const C=document.activeElement,I=E.shiftKey;if(E.target===w&&I){f.current?.focus();return}const V=A({tabbingDirection:I?"backwards":"forwards"}),$=V.findIndex(Z=>Z===C);Ly(V.slice($+1))?E.preventDefault():I?f.current?.focus():p.current?.focus()}};return w.addEventListener("keydown",k),()=>w.removeEventListener("keydown",k)}},[u,A]),y.jsxs(UH,{ref:d,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&y.jsx(ub,{ref:f,onFocusFromOutsideViewport:()=>{const w=A({tabbingDirection:"forwards"});Ly(w)}}),y.jsx(p0.Slot,{scope:n,children:y.jsx(Ge.ol,{tabIndex:-1,...s,ref:v})}),x&&y.jsx(ub,{ref:p,onFocusFromOutsideViewport:()=>{const w=A({tabbingDirection:"backwards"});Ly(w)}})]})});g0.displayName=cj;var uj="ToastFocusProxy",ub=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=tp(uj,n);return y.jsx(U_,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:l=>{const u=l.relatedTarget;!s.viewport?.contains(u)&&r()}})});ub.displayName=uj;var Tu="Toast",Yae="toast.swipeStart",Xae="toast.swipeMove",Qae="toast.swipeCancel",Jae="toast.swipeEnd",y0=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...l}=e,[u,d]=zf({prop:r,defaultProp:o??!0,onChange:s,caller:Tu});return y.jsx(au,{present:n||u,children:y.jsx(nse,{open:u,...l,ref:t,onClose:()=>d(!1),onPause:Ar(e.onPause),onResume:Ar(e.onResume),onSwipeStart:Je(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Je(e.onSwipeMove,f=>{const{x:p,y:m}=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",`${m}px`)}),onSwipeCancel:Je(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:Je(e.onSwipeEnd,f=>{const{x:p,y:m}=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",`${m}px`),d(!1)})})})});y0.displayName=Tu;var[ese,tse]=lj(Tu,{onClose(){}}),nse=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:v,onSwipeEnd:b,...x}=e,A=tp(Tu,n),[w,k]=S.useState(null),E=Ct(t,q=>k(q)),T=S.useRef(null),R=S.useRef(null),C=o||A.duration,I=S.useRef(0),D=S.useRef(C),L=S.useRef(0),{onToastAdd:V,onToastRemove:$}=A,Z=Ar(()=>{w?.contains(document.activeElement)&&A.viewport?.focus(),l()}),Q=S.useCallback(q=>{!q||q===1/0||(window.clearTimeout(L.current),I.current=new Date().getTime(),L.current=window.setTimeout(Z,q))},[Z]);S.useEffect(()=>{const q=A.viewport;if(q){const oe=()=>{Q(D.current),f?.()},z=()=>{const ee=new Date().getTime()-I.current;D.current=D.current-ee,window.clearTimeout(L.current),d?.()};return q.addEventListener(lb,z),q.addEventListener(cb,oe),()=>{q.removeEventListener(lb,z),q.removeEventListener(cb,oe)}}},[A.viewport,C,d,f,Q]),S.useEffect(()=>{s&&!A.isClosePausedRef.current&&Q(C)},[s,C,A.isClosePausedRef,Q]),S.useEffect(()=>(V(),()=>$()),[V,$]);const le=S.useMemo(()=>w?pj(w):null,[w]);return A.viewport?y.jsxs(y.Fragment,{children:[le&&y.jsx(rse,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:le}),y.jsx(ese,{scope:n,onClose:Z,children:ma.createPortal(y.jsx(p0.ItemSlot,{scope:n,children:y.jsx(VH,{asChild:!0,onEscapeKeyDown:Je(u,()=>{A.isFocusedToastEscapeKeyDownRef.current||Z(),A.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(Ge.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":A.swipeDirection,...x,ref:E,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Je(e.onKeyDown,q=>{q.key==="Escape"&&(u?.(q.nativeEvent),q.nativeEvent.defaultPrevented||(A.isFocusedToastEscapeKeyDownRef.current=!0,Z()))}),onPointerDown:Je(e.onPointerDown,q=>{q.button===0&&(T.current={x:q.clientX,y:q.clientY})}),onPointerMove:Je(e.onPointerMove,q=>{if(!T.current)return;const oe=q.clientX-T.current.x,z=q.clientY-T.current.y,ee=!!R.current,W=["left","right"].includes(A.swipeDirection),be=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,P=W?be(0,oe):0,ie=W?0:be(0,z),G=q.pointerType==="touch"?10:2,ne={x:P,y:ie},ue={originalEvent:q,delta:ne};ee?(R.current=ne,pf(Xae,m,ue,{discrete:!1})):$R(ne,A.swipeDirection,G)?(R.current=ne,pf(Yae,p,ue,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(oe)>G||Math.abs(z)>G)&&(T.current=null)}),onPointerUp:Je(e.onPointerUp,q=>{const oe=R.current,z=q.target;if(z.hasPointerCapture(q.pointerId)&&z.releasePointerCapture(q.pointerId),R.current=null,T.current=null,oe){const ee=q.currentTarget,W={originalEvent:q,delta:oe};$R(oe,A.swipeDirection,A.swipeThreshold)?pf(Jae,b,W,{discrete:!0}):pf(Qae,v,W,{discrete:!0}),ee.addEventListener("click",be=>be.preventDefault(),{once:!0})}})})})}),A.viewport)})]}):null}),rse=e=>{const{__scopeToast:t,children:n,...r}=e,o=tp(Tu,t),[s,l]=S.useState(!1),[u,d]=S.useState(!1);return ase(()=>l(!0)),S.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),u?null:y.jsx(Ah,{asChild:!0,children:y.jsx(U_,{...r,children:s&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},ise="ToastTitle",v0=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(Ge.div,{...r,ref:t})});v0.displayName=ise;var ose="ToastDescription",b0=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(Ge.div,{...r,ref:t})});b0.displayName=ose;var dj="ToastAction",_0=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(hj,{altText:n,asChild:!0,children:y.jsx(np,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${dj}\`. Expected non-empty \`string\`.`),null)});_0.displayName=dj;var fj="ToastClose",np=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=tse(fj,n);return y.jsx(hj,{asChild:!0,children:y.jsx(Ge.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,o.onClose)})})});np.displayName=fj;var hj=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return y.jsx(Ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function pj(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),sse(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...pj(r))}}),t}function pf(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ok(o,s):o.dispatchEvent(s)}var $R=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function ase(e=()=>{}){const t=Ar(e);un(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function sse(e){return e.nodeType===e.ELEMENT_NODE}function lse(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ly(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var cse=m0,mj=g0,gj=y0,yj=v0,vj=b0,use=_0,bj=np;const dse=Object.freeze(Object.defineProperty({__proto__:null,Action:use,Close:bj,Description:vj,Provider:cse,Root:gj,Title:yj,Toast:y0,ToastAction:_0,ToastClose:np,ToastDescription:b0,ToastProvider:m0,ToastTitle:v0,ToastViewport:g0,Viewport:mj,createToastScope:qae},Symbol.toStringTag,{value:"Module"})),fse=dse,hse=({className:e,...t})=>y.jsx(mj,{className:me("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}),pse=_n("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"}}),mse=({className:e,variant:t,...n})=>y.jsx(gj,{className:me(pse({variant:t}),e),...n}),gse=({className:e,...t})=>y.jsx(bj,{className:me("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:y.jsx(ga,{className:"size-5"})}),yse=({className:e,...t})=>y.jsx(yj,{className:me("text-sm font-semibold [&+div]:text-xs",e),...t}),vse=({className:e,...t})=>y.jsx(vj,{className:me("text-sm opacity-90",e),...t}),bse=1,_se=900*1e3;let jy=0;const Ese=()=>(jy=(jy+1)%Number.MAX_SAFE_INTEGER,jy.toString()),Py=new Map,HR=e=>{if(Py.has(e))return;const t=setTimeout(()=>{Py.delete(e),Dc({type:"REMOVE_TOAST",toastId:e})},_se);Py.set(e,t)},Sse=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,bse)};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?HR(n):e.toasts.forEach(r=>{HR(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)}}},Of=[];let Df={toasts:[]};const Dc=e=>{Df=Sse(Df,e),Of.forEach(t=>{t(Df)})},xse=({...e})=>{const t=Ese(),n=o=>Dc({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Dc({type:"DISMISS_TOAST",toastId:t});return Dc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}},_j=()=>{const[e,t]=S.useState(Df);return S.useEffect(()=>(Of.push(t),()=>{const n=Of.indexOf(t);n>-1&&Of.splice(n,1)}),[e]),{...e,toast:xse,dismiss:n=>Dc({type:"DISMISS_TOAST",toastId:n})}},Ase=()=>{const{toasts:e}=_j();return y.jsxs(fse.Provider,{children:[e.map(({id:t,title:n,description:r,action:o,...s})=>y.jsxs(mse,{...s,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(yse,{children:n}),r&&y.jsx(vse,{children:r})]}),o,y.jsx(gse,{})]},t)),y.jsx(hse,{})]})};var wse={};const Tse={queries:{retry:1,refetchOnWindowFocus:!1,staleTime:0,gcTime:1e3*60*10},mutations:{retry:0}},GR=e=>e.split("_").join(" "),Cse=()=>{const{toast:e}=_j();return{onError:r=>{[(()=>{try{if(typeof r=="string")return JSON.parse(r)}catch{}return r})()].flat().forEach(s=>e({title:GR((wse.NODE_ENV==="production"?s?.title:s?.code)??"Error"),description:s?.message??String(s??"An error occurred"),variant:"error"}))},onSuccess:r=>{r?.error&&e({title:GR(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"})}}},Rse=({children:e})=>{const{onError:t,onSuccess:n}=Cse(),r=new II({onSuccess:n,onError:t,onSettled:(s,l,u,d,f)=>{f.meta?.invalidateQueries&&f.meta.invalidateQueries.forEach(p=>{o.invalidateQueries({queryKey:p})})}}),o=new RK({defaultOptions:Tse,mutationCache:r});return y.jsx(kK,{client:o,children:e})},kse=({children:e})=>y.jsx(N4,{features:oK,children:e}),Nse=({children:e})=>y.jsx(kse,{children:y.jsxs(Rse,{children:[y.jsx(Ase,{}),e]})}),Ise=({children:e})=>y.jsx(TF,{children:y.jsx(rF,{children:y.jsx(D1,{path:"*",element:e})})}),db="dictionaryList",E0=e=>`dictionary_edition_${e}`,Ej=e=>{const t=E0(e),{isOpen:n,open:r,close:o}=ep(),{getEditedContentValue:s}=zs(),{focusedContent:l,setFocusedContent:u}=mo();return S.useEffect(()=>{l&&(l.keyPath?.length??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:s,close:()=>{o(t),u(d=>d?.dictionaryKey?{...d,keyPath:[]}:d)}}},Ose=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:o,openDictionaryEditor:s,noDictionaryFocused:l,focusedDictionaryNotFound:u}=tu(hb),[d,f]=S.useState(!1),{focusedContent:p}=Ej(t),{data:m}=GI(),v=S.useCallback(()=>{f(!1),n()},[n]),b=p?.dictionaryKey;if(!b)return y.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:l});const x=vV(b,p.keyPath??[],m);return x?y.jsxs(y.Fragment,{children:[y.jsx(__,{isOpen:d,onClose:()=>f(!1),hasCloseButton:!0,title:o.value,size:"xl",transparency:"lg",children:y.jsx("div",{className:"size-full px-3 pt-5",children:y.jsx(zae,{dictionary:x,onClickDictionaryList:v,isDarkMode:r,mode:["local","remote"],onDelete:()=>{f(!1),n()}})})}),y.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[y.jsx("h3",{className:"w-full text-center text-lg",children:x.title?x.title:x.key}),y.jsx(lt,{variant:"hoverable",color:"text",size:"icon-md",IconRight:F1,label:s.label.value,onClick:()=>f(!0)})]}),y.jsx(h7,{dictionary:x,locale:e,mode:["local","remote"]})]}):y.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:u})},Dse=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=tu(hb),o=E0(t),{focusedContent:s,close:l}=Ej(t),{openDictionaryListDrawer:u}=ep(f=>({openDictionaryListDrawer:()=>f.open(db)})),d=()=>{l(),u()};return y.jsx(sj,{identifier:o,backButton:{onBack:d,text:r.value},onClose:l,children:s&&y.jsx(Ose,{focusedContent:s,locale:e,identifier:o,handleOnBack:d,isDarkMode:n})})},Lse=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=mo(),r=n?.dictionaryKey;return r?y.jsx(Dse,{locale:e,dictionaryKey:r,isDarkMode:t}):y.jsx(y.Fragment,{})},jse=()=>{const{drawerTitle:e,buttonLabel:t}=tu(WR),{close:n,open:r}=ep(),{localeDictionaries:o}=s1(),{editedContent:s}=Cn(),{setFocusedContent:l}=mo(),u=f=>{n(db),l({dictionaryKey:f.key,dictionaryLocalId:f.localId}),r(E0(f.key))},d=f=>Object.keys(s??{}).includes(f);return y.jsx(sj,{title:e.label.value,identifier:db,children:Object.values(o).map(f=>y.jsx(lt,{label:t.label({dictionaryLocalId:f.localId}).value,onClick:()=>u(f),variant:"hoverable",color:"text",IconRight:Mf,size:"md",isFullWidth:!0,children:d(f.key)?`✎ ${f.key}`:f.key},f.localId))})},Sj=(...e)=>tk(Sh(e)),Pse=e=>{const{message:t}=tu(ZR);return y.jsx("div",{className:Sj("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}):""})},Mse=({children:e})=>{const[t]=so(Tn.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=so(Tn.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:r}=GI(),{setLocaleDictionaries:o}=yh();return S.useEffect(()=>{if(!r)return;const s=Object.fromEntries(Object.values(r).flat().map(l=>[l.localId,l]));o(s)},[r]),y.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,y.jsx("div",{className:"absolute bottom-2 right-2",children:y.jsx(Pse,{...n})}),y.jsx(Lse,{locale:t}),y.jsx(jse,{})]})},zse=()=>{const[e,t]=S.useState();return S.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},Bse=({children:e,iframeRef:t})=>{const n=zse(),r=n?.editor.applicationURL?n?.editor.applicationURL:"*",o=n?.editor.editorURL??"*";return n?y.jsx(WV,{postMessage:s=>{window?.postMessage(s,o),t.current?.contentWindow?.postMessage(s,r)},allowedOrigins:[r,o],mode:"editor",configuration:n,children:e}):y.jsx(Rs,{})},Vse=()=>{const{editedContent:e,setEditedContentState:t}=Cn(),n=()=>{const r=localStorage?.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const o=JSON.parse(r);t(o)}catch(o){console.error(o)}};return S.useEffect(()=>{typeof e>"u"||localStorage?.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),S.useEffect(()=>{typeof e<"u"||n()},[]),n},Use=()=>{const{title:e,description:t,documentationLink:n}=tu(YR);return y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx(v_,{className:"mb-8",children:e}),y.jsx("strong",{className:"text-neutral block",children:t}),y.jsx(Cb,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},Fse=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Zr(),r=()=>o(n.enabled),o=$V();d1(r),Vse(),YV();const[s,l]=S.useState(!0),[u]=ZV(void 0,{receive:!0,emit:!1});return S.useEffect(()=>{typeof u=="string"&&window.history.replaceState({},"",u)},[u]),n.applicationURL?y.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[y.jsx(Rs,{isLoading:s}),y.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:Sj("size-full",s&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):y.jsx("div",{className:"flex size-full items-center justify-center",children:y.jsx(kr,{className:"flex max-w-xl flex-col gap-4 p-6",children:y.jsx(Use,{})})})},$se=()=>{const e=S.useRef(null),t=go();return y.jsx(Bse,{iframeRef:e,children:y.jsx(tU,{disableEditor:!0,children:y.jsx(Mse,{children:y.jsx(Fse,{iframeRef:e,applicationPath:t.pathname})})})})},Hse=()=>y.jsx(Ise,{children:y.jsx(Nse,{children:y.jsx($se,{})})});HM.createRoot(document.getElementById("root")).render(y.jsx(S.StrictMode,{children:y.jsx(Hse,{})}));