tinker-translate 0.2.3 → 0.2.6

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.
@@ -1,170 +0,0 @@
1
- var C1=Object.defineProperty;var Rv=e=>{throw TypeError(e)};var R1=(e,t,n)=>t in e?C1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qt=(e,t,n)=>R1(e,typeof t!="symbol"?t+"":t,n),Nv=(e,t,n)=>t.has(e)||Rv("Cannot "+n);var tt=(e,t,n)=>(Nv(e,t,"read from private field"),n?n.call(e):t.get(e)),Mv=(e,t,n)=>t.has(e)?Rv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Fu=(e,t,n,a)=>(Nv(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n);function N1(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in e)){const r=Object.getOwnPropertyDescriptor(a,i);r&&Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:()=>a[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();function Ca(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ty={exports:{}},tu={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var M1=Symbol.for("react.transitional.element"),D1=Symbol.for("react.fragment");function Ay(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:M1,type:e,key:a,ref:t!==void 0?t:null,props:n}}tu.Fragment=D1;tu.jsx=Ay;tu.jsxs=Ay;Ty.exports=tu;var O=Ty.exports,wy={exports:{}},nu={},Cy={exports:{}},Ry={};/**
10
- * @license React
11
- * scheduler.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */(function(e){function t(A,M){var D=A.length;A.push(M);e:for(;0<D;){var B=D-1>>>1,P=A[B];if(0<i(P,M))A[B]=M,A[D]=P,D=B;else break e}}function n(A){return A.length===0?null:A[0]}function a(A){if(A.length===0)return null;var M=A[0],D=A.pop();if(D!==M){A[0]=D;e:for(var B=0,P=A.length,ee=P>>>1;B<ee;){var ne=2*(B+1)-1,he=A[ne],we=ne+1,Ne=A[we];if(0>i(he,D))we<P&&0>i(Ne,he)?(A[B]=Ne,A[we]=D,B=we):(A[B]=he,A[ne]=D,B=ne);else if(we<P&&0>i(Ne,D))A[B]=Ne,A[we]=D,B=we;else break e}}return M}function i(A,M){var D=A.sortIndex-M.sortIndex;return D!==0?D:A.id-M.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var s=[],u=[],c=1,f=null,d=3,h=!1,g=!1,_=!1,S=!1,p=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function b(A){for(var M=n(u);M!==null;){if(M.callback===null)a(u);else if(M.startTime<=A)a(u),M.sortIndex=M.expirationTime,t(s,M);else break;M=n(u)}}function x(A){if(_=!1,b(A),!g)if(n(s)!==null)g=!0,T||(T=!0,j());else{var M=n(u);M!==null&&V(x,M.startTime-A)}}var T=!1,E=-1,C=5,R=-1;function N(){return S?!0:!(e.unstable_now()-R<C)}function H(){if(S=!1,T){var A=e.unstable_now();R=A;var M=!0;try{e:{g=!1,_&&(_=!1,v(E),E=-1),h=!0;var D=d;try{t:{for(b(A),f=n(s);f!==null&&!(f.expirationTime>A&&N());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var P=B(f.expirationTime<=A);if(A=e.unstable_now(),typeof P=="function"){f.callback=P,b(A),M=!0;break t}f===n(s)&&a(s),b(A)}else a(s);f=n(s)}if(f!==null)M=!0;else{var ee=n(u);ee!==null&&V(x,ee.startTime-A),M=!1}}break e}finally{f=null,d=D,h=!1}M=void 0}}finally{M?j():T=!1}}}var j;if(typeof m=="function")j=function(){m(H)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,U=L.port2;L.port1.onmessage=H,j=function(){U.postMessage(null)}}else j=function(){p(H,0)};function V(A,M){E=p(function(){A(e.unstable_now())},M)}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(A){A.callback=null},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(A){switch(d){case 1:case 2:case 3:var M=3;break;default:M=d}var D=d;d=M;try{return A()}finally{d=D}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(A,M){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var D=d;d=A;try{return M()}finally{d=D}},e.unstable_scheduleCallback=function(A,M,D){var B=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?B+D:B):D=B,A){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=D+P,A={id:c++,callback:M,priorityLevel:A,startTime:D,expirationTime:P,sortIndex:-1},D>B?(A.sortIndex=D,t(u,A),n(s)===null&&A===n(u)&&(_?(v(E),E=-1):_=!0,V(x,D-B))):(A.sortIndex=P,t(s,A),g||h||(g=!0,T||(T=!0,j()))),A},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(A){var M=d;return function(){var D=d;d=M;try{return A.apply(this,arguments)}finally{d=D}}}})(Ry);Cy.exports=Ry;var j1=Cy.exports,Ny={exports:{}},q={};/**
18
- * @license React
19
- * react.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Yh=Symbol.for("react.transitional.element"),L1=Symbol.for("react.portal"),z1=Symbol.for("react.fragment"),U1=Symbol.for("react.strict_mode"),B1=Symbol.for("react.profiler"),H1=Symbol.for("react.consumer"),V1=Symbol.for("react.context"),P1=Symbol.for("react.forward_ref"),$1=Symbol.for("react.suspense"),Y1=Symbol.for("react.memo"),My=Symbol.for("react.lazy"),G1=Symbol.for("react.activity"),Dv=Symbol.iterator;function K1(e){return e===null||typeof e!="object"?null:(e=Dv&&e[Dv]||e["@@iterator"],typeof e=="function"?e:null)}var Dy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jy=Object.assign,Ly={};function Ar(e,t,n){this.props=e,this.context=t,this.refs=Ly,this.updater=n||Dy}Ar.prototype.isReactComponent={};Ar.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zy(){}zy.prototype=Ar.prototype;function Gh(e,t,n){this.props=e,this.context=t,this.refs=Ly,this.updater=n||Dy}var Kh=Gh.prototype=new zy;Kh.constructor=Gh;jy(Kh,Ar.prototype);Kh.isPureReactComponent=!0;var jv=Array.isArray;function nf(){}var xe={H:null,A:null,T:null,S:null},Uy=Object.prototype.hasOwnProperty;function qh(e,t,n){var a=n.ref;return{$$typeof:Yh,type:e,key:t,ref:a!==void 0?a:null,props:n}}function q1(e,t){return qh(e.type,t,e.props)}function kh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yh}function k1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lv=/\/+/g;function Iu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?k1(""+e.key):t.toString(36)}function X1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(nf,nf):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function zi(e,t,n,a,i){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(r){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Yh:case L1:l=!0;break;case My:return l=e._init,zi(l(e._payload),t,n,a,i)}}if(l)return i=i(e),l=a===""?"."+Iu(e,0):a,jv(i)?(n="",l!=null&&(n=l.replace(Lv,"$&/")+"/"),zi(i,t,n,"",function(u){return u})):i!=null&&(kh(i)&&(i=q1(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(Lv,"$&/")+"/")+l)),t.push(i)),1;l=0;var o=a===""?".":a+":";if(jv(e))for(var s=0;s<e.length;s++)a=e[s],r=o+Iu(a,s),l+=zi(a,t,n,r,i);else if(s=K1(e),typeof s=="function")for(e=s.call(e),s=0;!(a=e.next()).done;)a=a.value,r=o+Iu(a,s++),l+=zi(a,t,n,r,i);else if(r==="object"){if(typeof e.then=="function")return zi(X1(e),t,n,a,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function ho(e,t,n){if(e==null)return e;var a=[],i=0;return zi(e,a,"","",function(r){return t.call(n,r,i++)}),a}function Q1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var zv=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Z1={map:ho,forEach:function(e,t,n){ho(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ho(e,function(){t++}),t},toArray:function(e){return ho(e,function(t){return t})||[]},only:function(e){if(!kh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Activity=G1;q.Children=Z1;q.Component=Ar;q.Fragment=z1;q.Profiler=B1;q.PureComponent=Gh;q.StrictMode=U1;q.Suspense=$1;q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xe;q.__COMPILER_RUNTIME={__proto__:null,c:function(e){return xe.H.useMemoCache(e)}};q.cache=function(e){return function(){return e.apply(null,arguments)}};q.cacheSignal=function(){return null};q.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=jy({},e.props),i=e.key;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)!Uy.call(t,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&t.ref===void 0||(a[r]=t[r]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var l=Array(r),o=0;o<r;o++)l[o]=arguments[o+2];a.children=l}return qh(e.type,i,a)};q.createContext=function(e){return e={$$typeof:V1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:H1,_context:e},e};q.createElement=function(e,t,n){var a,i={},r=null;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)Uy.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(i[a]=t[a]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var o=Array(l),s=0;s<l;s++)o[s]=arguments[s+2];i.children=o}if(e&&e.defaultProps)for(a in l=e.defaultProps,l)i[a]===void 0&&(i[a]=l[a]);return qh(e,r,i)};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:P1,render:e}};q.isValidElement=kh;q.lazy=function(e){return{$$typeof:My,_payload:{_status:-1,_result:e},_init:Q1}};q.memo=function(e,t){return{$$typeof:Y1,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=xe.T,n={};xe.T=n;try{var a=e(),i=xe.S;i!==null&&i(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(nf,zv)}catch(r){zv(r)}finally{t!==null&&n.types!==null&&(t.types=n.types),xe.T=t}};q.unstable_useCacheRefresh=function(){return xe.H.useCacheRefresh()};q.use=function(e){return xe.H.use(e)};q.useActionState=function(e,t,n){return xe.H.useActionState(e,t,n)};q.useCallback=function(e,t){return xe.H.useCallback(e,t)};q.useContext=function(e){return xe.H.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e,t){return xe.H.useDeferredValue(e,t)};q.useEffect=function(e,t){return xe.H.useEffect(e,t)};q.useEffectEvent=function(e){return xe.H.useEffectEvent(e)};q.useId=function(){return xe.H.useId()};q.useImperativeHandle=function(e,t,n){return xe.H.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return xe.H.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return xe.H.useLayoutEffect(e,t)};q.useMemo=function(e,t){return xe.H.useMemo(e,t)};q.useOptimistic=function(e,t){return xe.H.useOptimistic(e,t)};q.useReducer=function(e,t,n){return xe.H.useReducer(e,t,n)};q.useRef=function(e){return xe.H.useRef(e)};q.useState=function(e){return xe.H.useState(e)};q.useSyncExternalStore=function(e,t,n){return xe.H.useSyncExternalStore(e,t,n)};q.useTransition=function(){return xe.H.useTransition()};q.version="19.2.8";Ny.exports=q;var y=Ny.exports;const af=Ca(y),Gl=N1({__proto__:null,default:af},[y]);var By={exports:{}},rt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var F1=y;function Hy(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ea(){}var at={d:{f:ea,r:function(){throw Error(Hy(522))},D:ea,C:ea,L:ea,m:ea,X:ea,S:ea,M:ea},p:0,findDOMNode:null},I1=Symbol.for("react.portal");function J1(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I1,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var al=F1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function au(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=at;rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Hy(299));return J1(e,t,null,n)};rt.flushSync=function(e){var t=al.T,n=at.p;try{if(al.T=null,at.p=2,e)return e()}finally{al.T=t,at.p=n,at.d.f()}};rt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,at.d.C(e,t))};rt.prefetchDNS=function(e){typeof e=="string"&&at.d.D(e)};rt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=au(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?at.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:i,fetchPriority:r}):n==="script"&&at.d.X(e,{crossOrigin:a,integrity:i,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};rt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=au(t.as,t.crossOrigin);at.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&at.d.M(e)};rt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=au(n,t.crossOrigin);at.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};rt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=au(t.as,t.crossOrigin);at.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else at.d.m(e)};rt.requestFormReset=function(e){at.d.r(e)};rt.unstable_batchedUpdates=function(e,t){return e(t)};rt.useFormState=function(e,t,n){return al.H.useFormState(e,t,n)};rt.useFormStatus=function(){return al.H.useHostTransitionStatus()};rt.version="19.2.8";function Vy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vy)}catch(e){console.error(e)}}Vy(),By.exports=rt;var Ra=By.exports;/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var $e=j1,Py=y,W1=Ra;function w(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function $y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Yy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Gy(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Uv(e){if(Kl(e)!==e)throw Error(w(188))}function eO(e){var t=e.alternate;if(!t){if(t=Kl(e),t===null)throw Error(w(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var r=i.alternate;if(r===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return Uv(i),e;if(r===a)return Uv(i),t;r=r.sibling}throw Error(w(188))}if(n.return!==a.return)n=i,a=r;else{for(var l=!1,o=i.child;o;){if(o===n){l=!0,n=i,a=r;break}if(o===a){l=!0,a=i,n=r;break}o=o.sibling}if(!l){for(o=r.child;o;){if(o===n){l=!0,n=r,a=i;break}if(o===a){l=!0,a=r,n=i;break}o=o.sibling}if(!l)throw Error(w(189))}}if(n.alternate!==a)throw Error(w(190))}if(n.tag!==3)throw Error(w(188));return n.stateNode.current===n?e:t}function Ky(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ky(e),t!==null)return t;e=e.sibling}return null}var Oe=Object.assign,tO=Symbol.for("react.element"),po=Symbol.for("react.transitional.element"),Ir=Symbol.for("react.portal"),Vi=Symbol.for("react.fragment"),qy=Symbol.for("react.strict_mode"),rf=Symbol.for("react.profiler"),ky=Symbol.for("react.consumer"),Dn=Symbol.for("react.context"),Xh=Symbol.for("react.forward_ref"),lf=Symbol.for("react.suspense"),of=Symbol.for("react.suspense_list"),Qh=Symbol.for("react.memo"),ta=Symbol.for("react.lazy"),sf=Symbol.for("react.activity"),nO=Symbol.for("react.memo_cache_sentinel"),Bv=Symbol.iterator;function Gr(e){return e===null||typeof e!="object"?null:(e=Bv&&e[Bv]||e["@@iterator"],typeof e=="function"?e:null)}var aO=Symbol.for("react.client.reference");function uf(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===aO?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vi:return"Fragment";case rf:return"Profiler";case qy:return"StrictMode";case lf:return"Suspense";case of:return"SuspenseList";case sf:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ir:return"Portal";case Dn:return e.displayName||"Context";case ky:return(e._context.displayName||"Context")+".Consumer";case Xh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qh:return t=e.displayName||null,t!==null?t:uf(e.type)||"Memo";case ta:t=e._payload,e=e._init;try{return uf(e(t))}catch{}}return null}var Jr=Array.isArray,Y=Py.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=W1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ka={pending:!1,data:null,method:null,action:null},cf=[],Pi=-1;function bn(e){return{current:e}}function qe(e){0>Pi||(e.current=cf[Pi],cf[Pi]=null,Pi--)}function me(e,t){Pi++,cf[Pi]=e.current,e.current=t}var hn=bn(null),Sl=bn(null),ha=bn(null),cs=bn(null);function fs(e,t){switch(me(ha,t),me(Sl,e),me(hn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gg(t),e=d_(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}qe(hn),me(hn,e)}function cr(){qe(hn),qe(Sl),qe(ha)}function ff(e){e.memoizedState!==null&&me(cs,e);var t=hn.current,n=d_(t,e.type);t!==n&&(me(Sl,e),me(hn,n))}function ds(e){Sl.current===e&&(qe(hn),qe(Sl)),cs.current===e&&(qe(cs),Dl._currentValue=ka)}var Ju,Hv;function $a(e){if(Ju===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ju=t&&t[1]||"",Hv=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ju+e+Hv}var Wu=!1;function ec(e,t){if(!e||Wu)return"";Wu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(h){var d=h}Reflect.construct(e,[],f)}else{try{f.call()}catch(h){d=h}e.call(f.prototype)}}else{try{throw Error()}catch(h){d=h}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(h){if(h&&d&&typeof h.stack=="string")return[h.stack,d.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),l=r[0],o=r[1];if(l&&o){var s=l.split(`
44
- `),u=o.split(`
45
- `);for(i=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(a===s.length||i===u.length)for(a=s.length-1,i=u.length-1;1<=a&&0<=i&&s[a]!==u[i];)i--;for(;1<=a&&0<=i;a--,i--)if(s[a]!==u[i]){if(a!==1||i!==1)do if(a--,i--,0>i||s[a]!==u[i]){var c=`
46
- `+s[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=i);break}}}finally{Wu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?$a(n):""}function iO(e,t){switch(e.tag){case 26:case 27:case 5:return $a(e.type);case 16:return $a("Lazy");case 13:return e.child!==t&&t!==null?$a("Suspense Fallback"):$a("Suspense");case 19:return $a("SuspenseList");case 0:case 15:return ec(e.type,!1);case 11:return ec(e.type.render,!1);case 1:return ec(e.type,!0);case 31:return $a("Activity");default:return""}}function Vv(e){try{var t="",n=null;do t+=iO(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var df=Object.prototype.hasOwnProperty,Zh=$e.unstable_scheduleCallback,tc=$e.unstable_cancelCallback,rO=$e.unstable_shouldYield,lO=$e.unstable_requestPaint,xt=$e.unstable_now,oO=$e.unstable_getCurrentPriorityLevel,Xy=$e.unstable_ImmediatePriority,Qy=$e.unstable_UserBlockingPriority,hs=$e.unstable_NormalPriority,sO=$e.unstable_LowPriority,Zy=$e.unstable_IdlePriority,uO=$e.log,cO=$e.unstable_setDisableYieldValue,ql=null,Ot=null;function oa(e){if(typeof uO=="function"&&cO(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(ql,e)}catch{}}var Et=Math.clz32?Math.clz32:hO,fO=Math.log,dO=Math.LN2;function hO(e){return e>>>=0,e===0?32:31-(fO(e)/dO|0)|0}var vo=256,go=262144,mo=4194304;function Ya(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function iu(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,r=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~r,a!==0?i=Ya(a):(l&=o,l!==0?i=Ya(l):n||(n=o&~e,n!==0&&(i=Ya(n))))):(o=a&~r,o!==0?i=Ya(o):l!==0?i=Ya(l):n||(n=a&~e,n!==0&&(i=Ya(n)))),i===0?0:t!==0&&t!==i&&!(t&r)&&(r=i&-i,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:i}function kl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pO(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Fy(){var e=mo;return mo<<=1,!(mo&62914560)&&(mo=4194304),e}function nc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vO(e,t,n,a,i,r){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var c=31-Et(n),f=1<<c;o[c]=0,s[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];h!==null&&(h.lane&=-536870913)}n&=~f}a!==0&&Iy(e,a,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(l&~t))}function Iy(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Jy(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Et(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function Wy(e,t){var n=t&-t;return n=n&42?1:Fh(n),n&(e.suspendedLanes|t)?0:n}function Fh(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ih(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function e0(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:O_(e.type))}function Pv(e,t){var n=le.p;try{return le.p=e,t()}finally{le.p=n}}var Na=Math.random().toString(36).slice(2),Qe="__reactFiber$"+Na,dt="__reactProps$"+Na,wr="__reactContainer$"+Na,hf="__reactEvents$"+Na,gO="__reactListeners$"+Na,mO="__reactHandles$"+Na,$v="__reactResources$"+Na,Ql="__reactMarker$"+Na;function Jh(e){delete e[Qe],delete e[dt],delete e[hf],delete e[gO],delete e[mO]}function $i(e){var t=e[Qe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wr]||n[Qe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qg(e);e!==null;){if(n=e[Qe])return n;e=Qg(e)}return t}e=n,n=e.parentNode}return null}function Cr(e){if(e=e[Qe]||e[wr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(w(33))}function er(e){var t=e[$v];return t||(t=e[$v]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ge(e){e[Ql]=!0}var t0=new Set,n0={};function di(e,t){fr(e,t),fr(e+"Capture",t)}function fr(e,t){for(n0[e]=t,e=0;e<t.length;e++)t0.add(t[e])}var yO=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]*$"),Yv={},Gv={};function bO(e){return df.call(Gv,e)?!0:df.call(Yv,e)?!1:yO.test(e)?Gv[e]=!0:(Yv[e]=!0,!1)}function $o(e,t,n){if(bO(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function yo(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function xn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function a0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _O(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,r=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){n=""+l,r.call(this,l)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pf(e){if(!e._valueTracker){var t=a0(e)?"checked":"value";e._valueTracker=_O(e,t,""+e[t])}}function i0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=a0(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ps(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var SO=/[\n"\\]/g;function Lt(e){return e.replace(SO,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vf(e,t,n,a,i,r,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Mt(t)):e.value!==""+Mt(t)&&(e.value=""+Mt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?gf(e,l,Mt(t)):n!=null?gf(e,l,Mt(n)):a!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Mt(o):e.removeAttribute("name")}function r0(e,t,n,a,i,r,l,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){pf(e);return}n=n!=null?""+Mt(n):"",t=t!=null?""+Mt(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),pf(e)}function gf(e,t,n){t==="number"&&ps(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tr(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function l0(e,t,n){if(t!=null&&(t=""+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Mt(n):""}function o0(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(w(92));if(Jr(a)){if(1<a.length)throw Error(w(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Mt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),pf(e)}function dr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xO=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 Kv(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||xO.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function s0(e,t,n){if(t!=null&&typeof t!="object")throw Error(w(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Kv(e,i,a)}else for(var r in t)t.hasOwnProperty(r)&&Kv(e,r,t[r])}function Wh(e){if(e.indexOf("-")===-1)return!1;switch(e){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 OO=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"]]),EO=/^[\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 Yo(e){return EO.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jn(){}var mf=null;function ep(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yi=null,nr=null;function qv(e){var t=Cr(e);if(t&&(e=t.stateNode)){var n=e[dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(vf(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Lt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[dt]||null;if(!i)throw Error(w(90));vf(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&i0(a)}break e;case"textarea":l0(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&tr(e,!!n.multiple,t,!1)}}}var ac=!1;function u0(e,t,n){if(ac)return e(t,n);ac=!0;try{var a=e(t);return a}finally{if(ac=!1,(Yi!==null||nr!==null)&&(gu(),Yi&&(t=Yi,e=nr,nr=Yi=null,qv(t),e)))for(t=0;t<e.length;t++)qv(e[t])}}function xl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[dt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(w(231,t,typeof n));return n}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yf=!1;if(Gn)try{var Kr={};Object.defineProperty(Kr,"passive",{get:function(){yf=!0}}),window.addEventListener("test",Kr,Kr),window.removeEventListener("test",Kr,Kr)}catch{yf=!1}var sa=null,tp=null,Go=null;function c0(){if(Go)return Go;var e,t=tp,n=t.length,a,i="value"in sa?sa.value:sa.textContent,r=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(a=1;a<=l&&t[n-a]===i[r-a];a++);return Go=i.slice(e,1<a?1-a:void 0)}function Ko(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bo(){return!0}function kv(){return!1}function pt(e){function t(n,a,i,r,l){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=r,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?bo:kv,this.isPropagationStopped=kv,this}return Oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bo)},persist:function(){},isPersistent:bo}),t}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ru=pt(hi),Zl=Oe({},hi,{view:0,detail:0}),TO=pt(Zl),ic,rc,qr,lu=Oe({},Zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:np,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qr&&(qr&&e.type==="mousemove"?(ic=e.screenX-qr.screenX,rc=e.screenY-qr.screenY):rc=ic=0,qr=e),ic)},movementY:function(e){return"movementY"in e?e.movementY:rc}}),Xv=pt(lu),AO=Oe({},lu,{dataTransfer:0}),wO=pt(AO),CO=Oe({},Zl,{relatedTarget:0}),lc=pt(CO),RO=Oe({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),NO=pt(RO),MO=Oe({},hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),DO=pt(MO),jO=Oe({},hi,{data:0}),Qv=pt(jO),LO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zO={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"},UO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BO(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=UO[e])?!!t[e]:!1}function np(){return BO}var HO=Oe({},Zl,{key:function(e){if(e.key){var t=LO[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ko(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:np,charCode:function(e){return e.type==="keypress"?Ko(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ko(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VO=pt(HO),PO=Oe({},lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zv=pt(PO),$O=Oe({},Zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:np}),YO=pt($O),GO=Oe({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),KO=pt(GO),qO=Oe({},lu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kO=pt(qO),XO=Oe({},hi,{newState:0,oldState:0}),QO=pt(XO),ZO=[9,13,27,32],ap=Gn&&"CompositionEvent"in window,il=null;Gn&&"documentMode"in document&&(il=document.documentMode);var FO=Gn&&"TextEvent"in window&&!il,f0=Gn&&(!ap||il&&8<il&&11>=il),Fv=" ",Iv=!1;function d0(e,t){switch(e){case"keyup":return ZO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gi=!1;function IO(e,t){switch(e){case"compositionend":return h0(t);case"keypress":return t.which!==32?null:(Iv=!0,Fv);case"textInput":return e=t.data,e===Fv&&Iv?null:e;default:return null}}function JO(e,t){if(Gi)return e==="compositionend"||!ap&&d0(e,t)?(e=c0(),Go=tp=sa=null,Gi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return f0&&t.locale!=="ko"?null:t.data;default:return null}}var WO={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 Jv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!WO[e.type]:t==="textarea"}function p0(e,t,n,a){Yi?nr?nr.push(a):nr=[a]:Yi=a,t=Ds(t,"onChange"),0<t.length&&(n=new ru("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var rl=null,Ol=null;function eE(e){u_(e,0)}function ou(e){var t=Wr(e);if(i0(t))return e}function Wv(e,t){if(e==="change")return t}var v0=!1;if(Gn){var oc;if(Gn){var sc="oninput"in document;if(!sc){var eg=document.createElement("div");eg.setAttribute("oninput","return;"),sc=typeof eg.oninput=="function"}oc=sc}else oc=!1;v0=oc&&(!document.documentMode||9<document.documentMode)}function tg(){rl&&(rl.detachEvent("onpropertychange",g0),Ol=rl=null)}function g0(e){if(e.propertyName==="value"&&ou(Ol)){var t=[];p0(t,Ol,e,ep(e)),u0(eE,t)}}function tE(e,t,n){e==="focusin"?(tg(),rl=t,Ol=n,rl.attachEvent("onpropertychange",g0)):e==="focusout"&&tg()}function nE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ou(Ol)}function aE(e,t){if(e==="click")return ou(t)}function iE(e,t){if(e==="input"||e==="change")return ou(t)}function rE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:rE;function El(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!df.call(t,i)||!wt(e[i],t[i]))return!1}return!0}function ng(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ag(e,t){var n=ng(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ng(n)}}function m0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?m0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function y0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ps(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ps(e.document)}return t}function ip(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lE=Gn&&"documentMode"in document&&11>=document.documentMode,Ki=null,bf=null,ll=null,_f=!1;function ig(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_f||Ki==null||Ki!==ps(a)||(a=Ki,"selectionStart"in a&&ip(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ll&&El(ll,a)||(ll=a,a=Ds(bf,"onSelect"),0<a.length&&(t=new ru("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ki)))}function Ha(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qi={animationend:Ha("Animation","AnimationEnd"),animationiteration:Ha("Animation","AnimationIteration"),animationstart:Ha("Animation","AnimationStart"),transitionrun:Ha("Transition","TransitionRun"),transitionstart:Ha("Transition","TransitionStart"),transitioncancel:Ha("Transition","TransitionCancel"),transitionend:Ha("Transition","TransitionEnd")},uc={},b0={};Gn&&(b0=document.createElement("div").style,"AnimationEvent"in window||(delete qi.animationend.animation,delete qi.animationiteration.animation,delete qi.animationstart.animation),"TransitionEvent"in window||delete qi.transitionend.transition);function pi(e){if(uc[e])return uc[e];if(!qi[e])return e;var t=qi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in b0)return uc[e]=t[n];return e}var _0=pi("animationend"),S0=pi("animationiteration"),x0=pi("animationstart"),oE=pi("transitionrun"),sE=pi("transitionstart"),uE=pi("transitioncancel"),O0=pi("transitionend"),E0=new Map,Sf="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(" ");Sf.push("scrollEnd");function Jt(e,t){E0.set(e,t),di(t,[e])}var vs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Nt=[],ki=0,rp=0;function su(){for(var e=ki,t=rp=ki=0;t<e;){var n=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var i=Nt[t];Nt[t++]=null;var r=Nt[t];if(Nt[t++]=null,a!==null&&i!==null){var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}r!==0&&T0(n,i,r)}}function uu(e,t,n,a){Nt[ki++]=e,Nt[ki++]=t,Nt[ki++]=n,Nt[ki++]=a,rp|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function lp(e,t,n,a){return uu(e,t,n,a),gs(e)}function vi(e,t){return uu(e,null,null,t),gs(e)}function T0(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,r=e.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-Et(n),e=r.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),r):null}function gs(e){if(50<vl)throw vl=0,Yf=null,Error(w(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Xi={};function cE(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,n,a){return new cE(e,t,n,a)}function op(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zn(e,t){var n=e.alternate;return n===null?(n=yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function A0(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qo(e,t,n,a,i,r){var l=0;if(a=e,typeof e=="function")op(e)&&(l=1);else if(typeof e=="string")l=vT(e,n,hn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case sf:return e=yt(31,n,t,i),e.elementType=sf,e.lanes=r,e;case Vi:return Xa(n.children,i,r,t);case qy:l=8,i|=24;break;case rf:return e=yt(12,n,t,i|2),e.elementType=rf,e.lanes=r,e;case lf:return e=yt(13,n,t,i),e.elementType=lf,e.lanes=r,e;case of:return e=yt(19,n,t,i),e.elementType=of,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dn:l=10;break e;case ky:l=9;break e;case Xh:l=11;break e;case Qh:l=14;break e;case ta:l=16,a=null;break e}l=29,n=Error(w(130,e===null?"null":typeof e,"")),a=null}return t=yt(l,n,t,i),t.elementType=e,t.type=a,t.lanes=r,t}function Xa(e,t,n,a){return e=yt(7,e,a,t),e.lanes=n,e}function cc(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function w0(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function fc(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rg=new WeakMap;function zt(e,t){if(typeof e=="object"&&e!==null){var n=rg.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Vv(t)},rg.set(e,t),t)}return{value:e,source:t,stack:Vv(t)}}var Qi=[],Zi=0,ms=null,Tl=0,Dt=[],jt=0,xa=null,on=1,sn="";function Cn(e,t){Qi[Zi++]=Tl,Qi[Zi++]=ms,ms=e,Tl=t}function C0(e,t,n){Dt[jt++]=on,Dt[jt++]=sn,Dt[jt++]=xa,xa=e;var a=on;e=sn;var i=32-Et(a)-1;a&=~(1<<i),n+=1;var r=32-Et(t)+i;if(30<r){var l=i-i%5;r=(a&(1<<l)-1).toString(32),a>>=l,i-=l,on=1<<32-Et(t)+i|n<<i|a,sn=r+e}else on=1<<r|n<<i|a,sn=e}function sp(e){e.return!==null&&(Cn(e,1),C0(e,1,0))}function up(e){for(;e===ms;)ms=Qi[--Zi],Qi[Zi]=null,Tl=Qi[--Zi],Qi[Zi]=null;for(;e===xa;)xa=Dt[--jt],Dt[jt]=null,sn=Dt[--jt],Dt[jt]=null,on=Dt[--jt],Dt[jt]=null}function R0(e,t){Dt[jt++]=on,Dt[jt++]=sn,Dt[jt++]=xa,on=t.id,sn=t.overflow,xa=e}var Ze=null,Se=null,I=!1,pa=null,Ut=!1,xf=Error(w(519));function Oa(e){var t=Error(w(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Al(zt(t,e)),xf}function lg(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Qe]=e,t[dt]=a,n){case"dialog":Q("cancel",t),Q("close",t);break;case"iframe":case"object":case"embed":Q("load",t);break;case"video":case"audio":for(n=0;n<Nl.length;n++)Q(Nl[n],t);break;case"source":Q("error",t);break;case"img":case"image":case"link":Q("error",t),Q("load",t);break;case"details":Q("toggle",t);break;case"input":Q("invalid",t),r0(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Q("invalid",t);break;case"textarea":Q("invalid",t),o0(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||f_(t.textContent,n)?(a.popover!=null&&(Q("beforetoggle",t),Q("toggle",t)),a.onScroll!=null&&Q("scroll",t),a.onScrollEnd!=null&&Q("scrollend",t),a.onClick!=null&&(t.onclick=jn),t=!0):t=!1,t||Oa(e,!0)}function og(e){for(Ze=e.return;Ze;)switch(Ze.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:Ze=Ze.return}}function Ci(e){if(e!==Ze)return!1;if(!I)return og(e),I=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Xf(e.type,e.memoizedProps)),n=!n),n&&Se&&Oa(e),og(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));Se=Xg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));Se=Xg(e)}else t===27?(t=Se,Ma(e.type)?(e=If,If=null,Se=e):Se=t):Se=Ze?Gt(e.stateNode.nextSibling):null;return!0}function Ja(){Se=Ze=null,I=!1}function dc(){var e=pa;return e!==null&&(ut===null?ut=e:ut.push.apply(ut,e),pa=null),e}function Al(e){pa===null?pa=[e]:pa.push(e)}var Of=bn(null),gi=null,Ln=null;function aa(e,t,n){me(Of,t._currentValue),t._currentValue=n}function Un(e){e._currentValue=Of.current,qe(Of)}function Ef(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Tf(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var l=i.child;r=r.firstContext;e:for(;r!==null;){var o=r;r=i;for(var s=0;s<t.length;s++)if(o.context===t[s]){r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),Ef(r.return,n,e),a||(l=null);break e}r=o.next}}else if(i.tag===18){if(l=i.return,l===null)throw Error(w(341));l.lanes|=n,r=l.alternate,r!==null&&(r.lanes|=n),Ef(l,n,e),l=null}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===e){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}}function Rr(e,t,n,a){e=null;for(var i=t,r=!1;i!==null;){if(!r){if(i.flags&524288)r=!0;else if(i.flags&262144)break}if(i.tag===10){var l=i.alternate;if(l===null)throw Error(w(387));if(l=l.memoizedProps,l!==null){var o=i.type;wt(i.pendingProps.value,l.value)||(e!==null?e.push(o):e=[o])}}else if(i===cs.current){if(l=i.alternate,l===null)throw Error(w(387));l.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Dl):e=[Dl])}i=i.return}e!==null&&Tf(t,e,n,a),t.flags|=262144}function ys(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wa(e){gi=e,Ln=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return N0(gi,e)}function _o(e,t){return gi===null&&Wa(e),N0(e,t)}function N0(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ln===null){if(e===null)throw Error(w(308));Ln=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ln=Ln.next=t;return n}var fE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},dE=$e.unstable_scheduleCallback,hE=$e.unstable_NormalPriority,Ue={$$typeof:Dn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cp(){return{controller:new fE,data:new Map,refCount:0}}function Fl(e){e.refCount--,e.refCount===0&&dE(hE,function(){e.controller.abort()})}var ol=null,Af=0,hr=0,ar=null;function pE(e,t){if(ol===null){var n=ol=[];Af=0,hr=zp(),ar={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Af++,t.then(sg,sg),t}function sg(){if(--Af===0&&ol!==null){ar!==null&&(ar.status="fulfilled");var e=ol;ol=null,hr=0,ar=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vE(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var ug=Y.S;Y.S=function(e,t){Kb=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&pE(e,t),ug!==null&&ug(e,t)};var Qa=bn(null);function fp(){var e=Qa.current;return e!==null?e:pe.pooledCache}function ko(e,t){t===null?me(Qa,Qa.current):me(Qa,t.pool)}function M0(){var e=fp();return e===null?null:{parent:Ue._currentValue,pool:e}}var Nr=Error(w(460)),dp=Error(w(474)),cu=Error(w(542)),bs={then:function(){}};function cg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function D0(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(jn,jn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dg(e),e;default:if(typeof t.status=="string")t.then(jn,jn);else{if(e=pe,e!==null&&100<e.shellSuspendCounter)throw Error(w(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dg(e),e}throw Za=t,Nr}}function Ga(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Za=n,Nr):n}}var Za=null;function fg(){if(Za===null)throw Error(w(459));var e=Za;return Za=null,e}function dg(e){if(e===Nr||e===cu)throw Error(w(483))}var ir=null,wl=0;function So(e){var t=wl;return wl+=1,ir===null&&(ir=[]),D0(ir,e,t)}function kr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xo(e,t){throw t.$$typeof===tO?Error(w(525)):(e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function j0(e){function t(p,v){if(e){var m=p.deletions;m===null?(p.deletions=[v],p.flags|=16):m.push(v)}}function n(p,v){if(!e)return null;for(;v!==null;)t(p,v),v=v.sibling;return null}function a(p){for(var v=new Map;p!==null;)p.key!==null?v.set(p.key,p):v.set(p.index,p),p=p.sibling;return v}function i(p,v){return p=zn(p,v),p.index=0,p.sibling=null,p}function r(p,v,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<v?(p.flags|=67108866,v):m):(p.flags|=67108866,v)):(p.flags|=1048576,v)}function l(p){return e&&p.alternate===null&&(p.flags|=67108866),p}function o(p,v,m,b){return v===null||v.tag!==6?(v=cc(m,p.mode,b),v.return=p,v):(v=i(v,m),v.return=p,v)}function s(p,v,m,b){var x=m.type;return x===Vi?c(p,v,m.props.children,b,m.key):v!==null&&(v.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ta&&Ga(x)===v.type)?(v=i(v,m.props),kr(v,m),v.return=p,v):(v=qo(m.type,m.key,m.props,null,p.mode,b),kr(v,m),v.return=p,v)}function u(p,v,m,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==m.containerInfo||v.stateNode.implementation!==m.implementation?(v=fc(m,p.mode,b),v.return=p,v):(v=i(v,m.children||[]),v.return=p,v)}function c(p,v,m,b,x){return v===null||v.tag!==7?(v=Xa(m,p.mode,b,x),v.return=p,v):(v=i(v,m),v.return=p,v)}function f(p,v,m){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=cc(""+v,p.mode,m),v.return=p,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case po:return m=qo(v.type,v.key,v.props,null,p.mode,m),kr(m,v),m.return=p,m;case Ir:return v=fc(v,p.mode,m),v.return=p,v;case ta:return v=Ga(v),f(p,v,m)}if(Jr(v)||Gr(v))return v=Xa(v,p.mode,m,null),v.return=p,v;if(typeof v.then=="function")return f(p,So(v),m);if(v.$$typeof===Dn)return f(p,_o(p,v),m);xo(p,v)}return null}function d(p,v,m,b){var x=v!==null?v.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return x!==null?null:o(p,v,""+m,b);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case po:return m.key===x?s(p,v,m,b):null;case Ir:return m.key===x?u(p,v,m,b):null;case ta:return m=Ga(m),d(p,v,m,b)}if(Jr(m)||Gr(m))return x!==null?null:c(p,v,m,b,null);if(typeof m.then=="function")return d(p,v,So(m),b);if(m.$$typeof===Dn)return d(p,v,_o(p,m),b);xo(p,m)}return null}function h(p,v,m,b,x){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return p=p.get(m)||null,o(v,p,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case po:return p=p.get(b.key===null?m:b.key)||null,s(v,p,b,x);case Ir:return p=p.get(b.key===null?m:b.key)||null,u(v,p,b,x);case ta:return b=Ga(b),h(p,v,m,b,x)}if(Jr(b)||Gr(b))return p=p.get(m)||null,c(v,p,b,x,null);if(typeof b.then=="function")return h(p,v,m,So(b),x);if(b.$$typeof===Dn)return h(p,v,m,_o(v,b),x);xo(v,b)}return null}function g(p,v,m,b){for(var x=null,T=null,E=v,C=v=0,R=null;E!==null&&C<m.length;C++){E.index>C?(R=E,E=null):R=E.sibling;var N=d(p,E,m[C],b);if(N===null){E===null&&(E=R);break}e&&E&&N.alternate===null&&t(p,E),v=r(N,v,C),T===null?x=N:T.sibling=N,T=N,E=R}if(C===m.length)return n(p,E),I&&Cn(p,C),x;if(E===null){for(;C<m.length;C++)E=f(p,m[C],b),E!==null&&(v=r(E,v,C),T===null?x=E:T.sibling=E,T=E);return I&&Cn(p,C),x}for(E=a(E);C<m.length;C++)R=h(E,p,C,m[C],b),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?C:R.key),v=r(R,v,C),T===null?x=R:T.sibling=R,T=R);return e&&E.forEach(function(H){return t(p,H)}),I&&Cn(p,C),x}function _(p,v,m,b){if(m==null)throw Error(w(151));for(var x=null,T=null,E=v,C=v=0,R=null,N=m.next();E!==null&&!N.done;C++,N=m.next()){E.index>C?(R=E,E=null):R=E.sibling;var H=d(p,E,N.value,b);if(H===null){E===null&&(E=R);break}e&&E&&H.alternate===null&&t(p,E),v=r(H,v,C),T===null?x=H:T.sibling=H,T=H,E=R}if(N.done)return n(p,E),I&&Cn(p,C),x;if(E===null){for(;!N.done;C++,N=m.next())N=f(p,N.value,b),N!==null&&(v=r(N,v,C),T===null?x=N:T.sibling=N,T=N);return I&&Cn(p,C),x}for(E=a(E);!N.done;C++,N=m.next())N=h(E,p,C,N.value,b),N!==null&&(e&&N.alternate!==null&&E.delete(N.key===null?C:N.key),v=r(N,v,C),T===null?x=N:T.sibling=N,T=N);return e&&E.forEach(function(j){return t(p,j)}),I&&Cn(p,C),x}function S(p,v,m,b){if(typeof m=="object"&&m!==null&&m.type===Vi&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case po:e:{for(var x=m.key;v!==null;){if(v.key===x){if(x=m.type,x===Vi){if(v.tag===7){n(p,v.sibling),b=i(v,m.props.children),b.return=p,p=b;break e}}else if(v.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ta&&Ga(x)===v.type){n(p,v.sibling),b=i(v,m.props),kr(b,m),b.return=p,p=b;break e}n(p,v);break}else t(p,v);v=v.sibling}m.type===Vi?(b=Xa(m.props.children,p.mode,b,m.key),b.return=p,p=b):(b=qo(m.type,m.key,m.props,null,p.mode,b),kr(b,m),b.return=p,p=b)}return l(p);case Ir:e:{for(x=m.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){n(p,v.sibling),b=i(v,m.children||[]),b.return=p,p=b;break e}else{n(p,v);break}else t(p,v);v=v.sibling}b=fc(m,p.mode,b),b.return=p,p=b}return l(p);case ta:return m=Ga(m),S(p,v,m,b)}if(Jr(m))return g(p,v,m,b);if(Gr(m)){if(x=Gr(m),typeof x!="function")throw Error(w(150));return m=x.call(m),_(p,v,m,b)}if(typeof m.then=="function")return S(p,v,So(m),b);if(m.$$typeof===Dn)return S(p,v,_o(p,m),b);xo(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,v!==null&&v.tag===6?(n(p,v.sibling),b=i(v,m),b.return=p,p=b):(n(p,v),b=cc(m,p.mode,b),b.return=p,p=b),l(p)):n(p,v)}return function(p,v,m,b){try{wl=0;var x=S(p,v,m,b);return ir=null,x}catch(E){if(E===Nr||E===cu)throw E;var T=yt(29,E,null,p.mode);return T.lanes=b,T.return=p,T}finally{}}}var ei=j0(!0),L0=j0(!1),na=!1;function hp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ga(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,re&2){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=gs(e),T0(e,null,n),t}return uu(e,a,t,n),gs(e)}function sl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Jy(e,n)}}function hc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?i=r=l:r=r.next=l,n=n.next}while(n!==null);r===null?i=r=t:r=r.next=t}else i=r=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Cf=!1;function ul(){if(Cf){var e=ar;if(e!==null)throw e}}function cl(e,t,n,a){Cf=!1;var i=e.updateQueue;na=!1;var r=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var s=o,u=s.next;s.next=null,l===null?r=u:l.next=u,l=s;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==l&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=s))}if(r!==null){var f=i.baseState;l=0,c=u=s=null,o=r;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(F&d)===d:(a&d)===d){d!==0&&d===hr&&(Cf=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,_=o;d=t;var S=n;switch(_.tag){case 1:if(g=_.payload,typeof g=="function"){f=g.call(S,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=_.payload,d=typeof g=="function"?g.call(S,f,d):g,d==null)break e;f=Oe({},f,d);break e;case 2:na=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=i.callbacks,h===null?i.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,s=f):c=c.next=h,l|=d;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);c===null&&(s=f),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,r===null&&(i.shared.lanes=0),Ta|=l,e.lanes=l,e.memoizedState=f}}function z0(e,t){if(typeof e!="function")throw Error(w(191,e));e.call(t)}function U0(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)z0(n[e],t)}var pr=bn(null),_s=bn(0);function hg(e,t){e=Xn,me(_s,e),me(pr,t),Xn=e|t.baseLanes}function Rf(){me(_s,Xn),me(pr,pr.current)}function pp(){Xn=_s.current,qe(pr),qe(_s)}var Ct=bn(null),Yt=null;function ia(e){var t=e.alternate;me(Me,Me.current&1),me(Ct,e),Yt===null&&(t===null||pr.current!==null||t.memoizedState!==null)&&(Yt=e)}function Nf(e){me(Me,Me.current),me(Ct,e),Yt===null&&(Yt=e)}function B0(e){e.tag===22?(me(Me,Me.current),me(Ct,e),Yt===null&&(Yt=e)):ra()}function ra(){me(Me,Me.current),me(Ct,Ct.current)}function mt(e){qe(Ct),Yt===e&&(Yt=null),qe(Me)}var Me=bn(0);function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Zf(n)||Ff(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kn=0,k=null,fe=null,Le=null,xs=!1,rr=!1,ti=!1,Os=0,Cl=0,lr=null,gE=0;function Ce(){throw Error(w(321))}function vp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function gp(e,t,n,a,i,r){return Kn=r,k=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Y.H=e===null||e.memoizedState===null?pb:wp,ti=!1,r=n(a,i),ti=!1,rr&&(r=V0(t,n,a,i)),H0(e),r}function H0(e){Y.H=Rl;var t=fe!==null&&fe.next!==null;if(Kn=0,Le=fe=k=null,xs=!1,Cl=0,lr=null,t)throw Error(w(300));e===null||Be||(e=e.dependencies,e!==null&&ys(e)&&(Be=!0))}function V0(e,t,n,a){k=e;var i=0;do{if(rr&&(lr=null),Cl=0,rr=!1,25<=i)throw Error(w(301));if(i+=1,Le=fe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}Y.H=vb,r=t(n,a)}while(rr);return r}function mE(){var e=Y.H,t=e.useState()[0];return t=typeof t.then=="function"?Il(t):t,e=e.useState()[0],(fe!==null?fe.memoizedState:null)!==e&&(k.flags|=1024),t}function mp(){var e=Os!==0;return Os=0,e}function yp(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function bp(e){if(xs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xs=!1}Kn=0,Le=fe=k=null,rr=!1,Cl=Os=0,lr=null}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?k.memoizedState=Le=e:Le=Le.next=e,Le}function De(){if(fe===null){var e=k.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=Le===null?k.memoizedState:Le.next;if(t!==null)Le=t,fe=e;else{if(e===null)throw k.alternate===null?Error(w(467)):Error(w(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},Le===null?k.memoizedState=Le=e:Le=Le.next=e}return Le}function fu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Il(e){var t=Cl;return Cl+=1,lr===null&&(lr=[]),e=D0(lr,e,t),t=k,(Le===null?t.memoizedState:Le.next)===null&&(t=t.alternate,Y.H=t===null||t.memoizedState===null?pb:wp),e}function du(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Il(e);if(e.$$typeof===Dn)return Ie(e)}throw Error(w(438,String(e)))}function _p(e){var t=null,n=k.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=k.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=fu(),k.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=nO;return t.index++,n}function qn(e,t){return typeof t=="function"?t(e):t}function Xo(e){var t=De();return Sp(t,fe,e)}function Sp(e,t,n){var a=e.queue;if(a===null)throw Error(w(311));a.lastRenderedReducer=n;var i=e.baseQueue,r=a.pending;if(r!==null){if(i!==null){var l=i.next;i.next=r.next,r.next=l}t.baseQueue=i=r,a.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var o=l=null,s=null,u=t,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(F&f)===f:(Kn&f)===f){var d=u.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===hr&&(c=!0);else if((Kn&d)===d){u=u.next,d===hr&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=f,l=r):s=s.next=f,k.lanes|=d,Ta|=d;f=u.action,ti&&n(r,f),r=u.hasEagerState?u.eagerState:n(r,f)}else d={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=d,l=r):s=s.next=d,k.lanes|=f,Ta|=f;u=u.next}while(u!==null&&u!==t);if(s===null?l=r:s.next=o,!wt(r,e.memoizedState)&&(Be=!0,c&&(n=ar,n!==null)))throw n;e.memoizedState=r,e.baseState=l,e.baseQueue=s,a.lastRenderedState=r}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function pc(e){var t=De(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,r=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do r=e(r,l.action),l=l.next;while(l!==i);wt(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,a]}function P0(e,t,n){var a=k,i=De(),r=I;if(r){if(n===void 0)throw Error(w(407));n=n()}else n=t();var l=!wt((fe||i).memoizedState,n);if(l&&(i.memoizedState=n,Be=!0),i=i.queue,xp(G0.bind(null,a,i,e),[e]),i.getSnapshot!==t||l||Le!==null&&Le.memoizedState.tag&1){if(a.flags|=2048,vr(9,{destroy:void 0},Y0.bind(null,a,i,n,t),null),pe===null)throw Error(w(349));r||Kn&127||$0(a,t,n)}return n}function $0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=k.updateQueue,t===null?(t=fu(),k.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Y0(e,t,n,a){t.value=n,t.getSnapshot=a,K0(t)&&q0(e)}function G0(e,t,n){return n(function(){K0(t)&&q0(e)})}function K0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function q0(e){var t=vi(e,2);t!==null&&ct(t,e,2)}function Mf(e){var t=nt();if(typeof e=="function"){var n=e;if(e=n(),ti){oa(!0);try{n()}finally{oa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:e},t}function k0(e,t,n,a){return e.baseState=n,Sp(e,fe,typeof a=="function"?a:qn)}function yE(e,t,n,a,i){if(pu(e))throw Error(w(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){r.listeners.push(l)}};Y.T!==null?n(!0):r.isTransition=!1,a(r),n=t.pending,n===null?(r.next=t.pending=r,X0(t,r)):(r.next=n.next,t.pending=n.next=r)}}function X0(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var r=Y.T,l={};Y.T=l;try{var o=n(i,a),s=Y.S;s!==null&&s(l,o),pg(e,t,o)}catch(u){Df(e,t,u)}finally{r!==null&&l.types!==null&&(r.types=l.types),Y.T=r}}else try{r=n(i,a),pg(e,t,r)}catch(u){Df(e,t,u)}}function pg(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){vg(e,t,a)},function(a){return Df(e,t,a)}):vg(e,t,n)}function vg(e,t,n){t.status="fulfilled",t.value=n,Q0(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,X0(e,n)))}function Df(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Q0(t),t=t.next;while(t!==a)}e.action=null}function Q0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Z0(e,t){return t}function gg(e,t){if(I){var n=pe.formState;if(n!==null){e:{var a=k;if(I){if(Se){t:{for(var i=Se,r=Ut;i.nodeType!==8;){if(!r){i=null;break t}if(i=Gt(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Se=Gt(i.nextSibling),a=i.data==="F!";break e}}Oa(a)}a=!1}a&&(t=n[0])}}return n=nt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Z0,lastRenderedState:t},n.queue=a,n=fb.bind(null,k,a),a.dispatch=n,a=Mf(!1),r=Ap.bind(null,k,!1,a.queue),a=nt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=yE.bind(null,k,i,r,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function mg(e){var t=De();return F0(t,fe,e)}function F0(e,t,n){if(t=Sp(e,t,Z0)[0],e=Xo(qn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Il(t)}catch(l){throw l===Nr?cu:l}else a=t;t=De();var i=t.queue,r=i.dispatch;return n!==t.memoizedState&&(k.flags|=2048,vr(9,{destroy:void 0},bE.bind(null,i,n),null)),[a,r,e]}function bE(e,t){e.action=t}function yg(e){var t=De(),n=fe;if(n!==null)return F0(t,n,e);De(),t=t.memoizedState,n=De();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function vr(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=k.updateQueue,t===null&&(t=fu(),k.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function I0(){return De().memoizedState}function Qo(e,t,n,a){var i=nt();k.flags|=e,i.memoizedState=vr(1|t,{destroy:void 0},n,a===void 0?null:a)}function hu(e,t,n,a){var i=De();a=a===void 0?null:a;var r=i.memoizedState.inst;fe!==null&&a!==null&&vp(a,fe.memoizedState.deps)?i.memoizedState=vr(t,r,n,a):(k.flags|=e,i.memoizedState=vr(1|t,r,n,a))}function bg(e,t){Qo(8390656,8,e,t)}function xp(e,t){hu(2048,8,e,t)}function _E(e){k.flags|=4;var t=k.updateQueue;if(t===null)t=fu(),k.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function J0(e){var t=De().memoizedState;return _E({ref:t,nextImpl:e}),function(){if(re&2)throw Error(w(440));return t.impl.apply(void 0,arguments)}}function W0(e,t){return hu(4,2,e,t)}function eb(e,t){return hu(4,4,e,t)}function tb(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nb(e,t,n){n=n!=null?n.concat([e]):null,hu(4,4,tb.bind(null,t,e),n)}function Op(){}function ab(e,t){var n=De();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&vp(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function ib(e,t){var n=De();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&vp(t,a[1]))return a[0];if(a=e(),ti){oa(!0);try{e()}finally{oa(!1)}}return n.memoizedState=[a,t],a}function Ep(e,t,n){return n===void 0||Kn&1073741824&&!(F&261930)?e.memoizedState=t:(e.memoizedState=n,e=kb(),k.lanes|=e,Ta|=e,n)}function rb(e,t,n,a){return wt(n,t)?n:pr.current!==null?(e=Ep(e,n,a),wt(e,t)||(Be=!0),e):!(Kn&42)||Kn&1073741824&&!(F&261930)?(Be=!0,e.memoizedState=n):(e=kb(),k.lanes|=e,Ta|=e,t)}function lb(e,t,n,a,i){var r=le.p;le.p=r!==0&&8>r?r:8;var l=Y.T,o={};Y.T=o,Ap(e,!1,t,n);try{var s=i(),u=Y.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=vE(s,a);fl(e,t,c,Tt(e))}else fl(e,t,a,Tt(e))}catch(f){fl(e,t,{then:function(){},status:"rejected",reason:f},Tt())}finally{le.p=r,l!==null&&o.types!==null&&(l.types=o.types),Y.T=l}}function SE(){}function jf(e,t,n,a){if(e.tag!==5)throw Error(w(476));var i=ob(e).queue;lb(e,i,t,ka,n===null?SE:function(){return sb(e),n(a)})}function ob(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ka,baseState:ka,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:ka},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function sb(e){var t=ob(e);t.next===null&&(t=e.alternate.memoizedState),fl(e,t.next.queue,{},Tt())}function Tp(){return Ie(Dl)}function ub(){return De().memoizedState}function cb(){return De().memoizedState}function xE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Tt();e=va(n);var a=ga(t,e,n);a!==null&&(ct(a,t,n),sl(a,t,n)),t={cache:cp()},e.payload=t;return}t=t.return}}function OE(e,t,n){var a=Tt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pu(e)?db(t,n):(n=lp(e,t,n,a),n!==null&&(ct(n,e,a),hb(n,t,a)))}function fb(e,t,n){var a=Tt();fl(e,t,n,a)}function fl(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pu(e))db(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var l=t.lastRenderedState,o=r(l,n);if(i.hasEagerState=!0,i.eagerState=o,wt(o,l))return uu(e,t,i,0),pe===null&&su(),!1}catch{}finally{}if(n=lp(e,t,i,a),n!==null)return ct(n,e,a),hb(n,t,a),!0}return!1}function Ap(e,t,n,a){if(a={lane:2,revertLane:zp(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},pu(e)){if(t)throw Error(w(479))}else t=lp(e,n,a,2),t!==null&&ct(t,e,2)}function pu(e){var t=e.alternate;return e===k||t!==null&&t===k}function db(e,t){rr=xs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hb(e,t,n){if(n&4194048){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Jy(e,n)}}var Rl={readContext:Ie,use:du,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};Rl.useEffectEvent=Ce;var pb={readContext:Ie,use:du,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:bg,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Qo(4194308,4,tb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){Qo(4,2,e,t)},useMemo:function(e,t){var n=nt();t=t===void 0?null:t;var a=e();if(ti){oa(!0);try{e()}finally{oa(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=nt();if(n!==void 0){var i=n(t);if(ti){oa(!0);try{n(t)}finally{oa(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=OE.bind(null,k,e),[a.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mf(e);var t=e.queue,n=fb.bind(null,k,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Op,useDeferredValue:function(e,t){var n=nt();return Ep(n,e,t)},useTransition:function(){var e=Mf(!1);return e=lb.bind(null,k,e.queue,!0,!1),nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=k,i=nt();if(I){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),pe===null)throw Error(w(349));F&127||$0(a,t,n)}i.memoizedState=n;var r={value:n,getSnapshot:t};return i.queue=r,bg(G0.bind(null,a,r,e),[e]),a.flags|=2048,vr(9,{destroy:void 0},Y0.bind(null,a,r,n,t),null),n},useId:function(){var e=nt(),t=pe.identifierPrefix;if(I){var n=sn,a=on;n=(a&~(1<<32-Et(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Os++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=gE++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tp,useFormState:gg,useActionState:gg,useOptimistic:function(e){var t=nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ap.bind(null,k,!0,n),n.dispatch=t,[e,t]},useMemoCache:_p,useCacheRefresh:function(){return nt().memoizedState=xE.bind(null,k)},useEffectEvent:function(e){var t=nt(),n={impl:e};return t.memoizedState=n,function(){if(re&2)throw Error(w(440));return n.impl.apply(void 0,arguments)}}},wp={readContext:Ie,use:du,useCallback:ab,useContext:Ie,useEffect:xp,useImperativeHandle:nb,useInsertionEffect:W0,useLayoutEffect:eb,useMemo:ib,useReducer:Xo,useRef:I0,useState:function(){return Xo(qn)},useDebugValue:Op,useDeferredValue:function(e,t){var n=De();return rb(n,fe.memoizedState,e,t)},useTransition:function(){var e=Xo(qn)[0],t=De().memoizedState;return[typeof e=="boolean"?e:Il(e),t]},useSyncExternalStore:P0,useId:ub,useHostTransitionStatus:Tp,useFormState:mg,useActionState:mg,useOptimistic:function(e,t){var n=De();return k0(n,fe,e,t)},useMemoCache:_p,useCacheRefresh:cb};wp.useEffectEvent=J0;var vb={readContext:Ie,use:du,useCallback:ab,useContext:Ie,useEffect:xp,useImperativeHandle:nb,useInsertionEffect:W0,useLayoutEffect:eb,useMemo:ib,useReducer:pc,useRef:I0,useState:function(){return pc(qn)},useDebugValue:Op,useDeferredValue:function(e,t){var n=De();return fe===null?Ep(n,e,t):rb(n,fe.memoizedState,e,t)},useTransition:function(){var e=pc(qn)[0],t=De().memoizedState;return[typeof e=="boolean"?e:Il(e),t]},useSyncExternalStore:P0,useId:ub,useHostTransitionStatus:Tp,useFormState:yg,useActionState:yg,useOptimistic:function(e,t){var n=De();return fe!==null?k0(n,fe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_p,useCacheRefresh:cb};vb.useEffectEvent=J0;function vc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:Oe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lf={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Tt(),i=va(a);i.payload=t,n!=null&&(i.callback=n),t=ga(e,i,a),t!==null&&(ct(t,e,a),sl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Tt(),i=va(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ga(e,i,a),t!==null&&(ct(t,e,a),sl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tt(),a=va(n);a.tag=2,t!=null&&(a.callback=t),t=ga(e,a,n),t!==null&&(ct(t,e,n),sl(t,e,n))}};function _g(e,t,n,a,i,r,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,l):t.prototype&&t.prototype.isPureReactComponent?!El(n,a)||!El(i,r):!0}function Sg(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Lf.enqueueReplaceState(t,t.state,null)}function ni(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Oe({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function gb(e){vs(e)}function mb(e){console.error(e)}function yb(e){vs(e)}function Es(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function xg(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function zf(e,t,n){return n=va(n),n.tag=3,n.payload={element:null},n.callback=function(){Es(e,t)},n}function bb(e){return e=va(e),e.tag=3,e}function _b(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=a.value;e.payload=function(){return i(r)},e.callback=function(){xg(t,n,a)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){xg(t,n,a),typeof i!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function EE(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Rr(t,n,i,!0),n=Ct.current,n!==null){switch(n.tag){case 31:case 13:return Yt===null?Rs():n.alternate===null&&Re===0&&(Re=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===bs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Ac(e,a,i)),!1;case 22:return n.flags|=65536,a===bs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Ac(e,a,i)),!1}throw Error(w(435,n.tag))}return Ac(e,a,i),Rs(),!1}if(I)return t=Ct.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==xf&&(e=Error(w(422),{cause:a}),Al(zt(e,n)))):(a!==xf&&(t=Error(w(423),{cause:a}),Al(zt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=zt(a,n),i=zf(e.stateNode,a,i),hc(e,i),Re!==4&&(Re=2)),!1;var r=Error(w(520),{cause:a});if(r=zt(r,n),pl===null?pl=[r]:pl.push(r),Re!==4&&(Re=2),t===null)return!0;a=zt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=zf(n.stateNode,a,e),hc(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(ma===null||!ma.has(r))))return n.flags|=65536,i&=-i,n.lanes|=i,i=bb(i),_b(i,e,n,a),hc(n,i),!1}n=n.return}while(n!==null);return!1}var Cp=Error(w(461)),Be=!1;function Xe(e,t,n,a){t.child=e===null?L0(t,null,n,a):ei(t,e.child,n,a)}function Og(e,t,n,a,i){n=n.render;var r=t.ref;if("ref"in a){var l={};for(var o in a)o!=="ref"&&(l[o]=a[o])}else l=a;return Wa(t),a=gp(e,t,n,l,r,i),o=mp(),e!==null&&!Be?(yp(e,t,i),kn(e,t,i)):(I&&o&&sp(t),t.flags|=1,Xe(e,t,a,i),t.child)}function Eg(e,t,n,a,i){if(e===null){var r=n.type;return typeof r=="function"&&!op(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,Sb(e,t,r,a,i)):(e=qo(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Rp(e,i)){var l=r.memoizedProps;if(n=n.compare,n=n!==null?n:El,n(l,a)&&e.ref===t.ref)return kn(e,t,i)}return t.flags|=1,e=zn(r,a),e.ref=t.ref,e.return=t,t.child=e}function Sb(e,t,n,a,i){if(e!==null){var r=e.memoizedProps;if(El(r,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=r,Rp(e,i))e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,kn(e,t,i)}return Uf(e,t,n,a,i)}function xb(e,t,n,a){var i=a.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(r=r!==null?r.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~r}else a=0,t.child=null;return Tg(e,t,r,n,a)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ko(t,r!==null?r.cachePool:null),r!==null?hg(t,r):Rf(),B0(t);else return a=t.lanes=536870912,Tg(e,t,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(ko(t,r.cachePool),hg(t,r),ra(),t.memoizedState=null):(e!==null&&ko(t,null),Rf(),ra());return Xe(e,t,i,n),t.child}function el(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Tg(e,t,n,a,i){var r=fp();return r=r===null?null:{parent:Ue._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&ko(t,null),Rf(),B0(t),e!==null&&Rr(e,t,a,!0),t.childLanes=i,null}function Zo(e,t){return t=Ts({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ag(e,t,n){return ei(t,e.child,null,n),e=Zo(t,t.pendingProps),e.flags|=2,mt(t),t.memoizedState=null,e}function TE(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(I){if(a.mode==="hidden")return e=Zo(t,a),t.lanes=536870912,el(null,e);if(Nf(t),(e=Se)?(e=p_(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:on,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=w0(e),n.return=t,t.child=n,Ze=t,Se=null)):e=null,e===null)throw Oa(t);return t.lanes=536870912,null}return Zo(t,a)}var r=e.memoizedState;if(r!==null){var l=r.dehydrated;if(Nf(t),i)if(t.flags&256)t.flags&=-257,t=Ag(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(w(558));else if(Be||Rr(e,t,n,!1),i=(n&e.childLanes)!==0,Be||i){if(a=pe,a!==null&&(l=Wy(a,n),l!==0&&l!==r.retryLane))throw r.retryLane=l,vi(e,l),ct(a,e,l),Cp;Rs(),t=Ag(e,t,n)}else e=r.treeContext,Se=Gt(l.nextSibling),Ze=t,I=!0,pa=null,Ut=!1,e!==null&&R0(t,e),t=Zo(t,a),t.flags|=4096;return t}return e=zn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(w(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uf(e,t,n,a,i){return Wa(t),n=gp(e,t,n,a,void 0,i),a=mp(),e!==null&&!Be?(yp(e,t,i),kn(e,t,i)):(I&&a&&sp(t),t.flags|=1,Xe(e,t,n,i),t.child)}function wg(e,t,n,a,i,r){return Wa(t),t.updateQueue=null,n=V0(t,a,n,i),H0(e),a=mp(),e!==null&&!Be?(yp(e,t,r),kn(e,t,r)):(I&&a&&sp(t),t.flags|=1,Xe(e,t,n,r),t.child)}function Cg(e,t,n,a,i){if(Wa(t),t.stateNode===null){var r=Xi,l=n.contextType;typeof l=="object"&&l!==null&&(r=Ie(l)),r=new n(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Lf,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},hp(t),l=n.contextType,r.context=typeof l=="object"&&l!==null?Ie(l):Xi,r.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(vc(t,n,l,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(l=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),l!==r.state&&Lf.enqueueReplaceState(r,r.state,null),cl(t,a,r,i),ul(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var o=t.memoizedProps,s=ni(n,o);r.props=s;var u=r.context,c=n.contextType;l=Xi,typeof c=="object"&&c!==null&&(l=Ie(c));var f=n.getDerivedStateFromProps;c=typeof f=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||u!==l)&&Sg(t,r,a,l),na=!1;var d=t.memoizedState;r.state=d,cl(t,a,r,i),ul(),u=t.memoizedState,o||d!==u||na?(typeof f=="function"&&(vc(t,n,f,a),u=t.memoizedState),(s=na||_g(t,n,s,a,d,u,l))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),r.props=a,r.state=u,r.context=l,a=s):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,wf(e,t),l=t.memoizedProps,c=ni(n,l),r.props=c,f=t.pendingProps,d=r.context,u=n.contextType,s=Xi,typeof u=="object"&&u!==null&&(s=Ie(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l!==f||d!==s)&&Sg(t,r,a,s),na=!1,d=t.memoizedState,r.state=d,cl(t,a,r,i),ul();var h=t.memoizedState;l!==f||d!==h||na||e!==null&&e.dependencies!==null&&ys(e.dependencies)?(typeof o=="function"&&(vc(t,n,o,a),h=t.memoizedState),(c=na||_g(t,n,c,a,d,h,s)||e!==null&&e.dependencies!==null&&ys(e.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,h,s),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,h,s)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),r.props=a,r.state=h,r.context=s,a=c):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,Fo(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=ei(t,e.child,null,i),t.child=ei(t,null,n,i)):Xe(e,t,n,i),t.memoizedState=r.state,e=t.child):e=kn(e,t,i),e}function Rg(e,t,n,a){return Ja(),t.flags|=256,Xe(e,t,n,a),t.child}var gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:M0()}}function yc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=St),e}function Ob(e,t,n){var a=t.pendingProps,i=!1,r=(t.flags&128)!==0,l;if((l=r)||(l=e!==null&&e.memoizedState===null?!1:(Me.current&2)!==0),l&&(i=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(I){if(i?ia(t):ra(),(e=Se)?(e=p_(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:on,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=w0(e),n.return=t,t.child=n,Ze=t,Se=null)):e=null,e===null)throw Oa(t);return Ff(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,i?(ra(),i=t.mode,o=Ts({mode:"hidden",children:o},i),a=Xa(a,i,n,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=mc(n),a.childLanes=yc(e,l,n),t.memoizedState=gc,el(null,a)):(ia(t),Bf(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(r)t.flags&256?(ia(t),t.flags&=-257,t=bc(e,t,n)):t.memoizedState!==null?(ra(),t.child=e.child,t.flags|=128,t=null):(ra(),o=a.fallback,i=t.mode,a=Ts({mode:"visible",children:a.children},i),o=Xa(o,i,n,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ei(t,e.child,null,n),a=t.child,a.memoizedState=mc(n),a.childLanes=yc(e,l,n),t.memoizedState=gc,t=el(null,a));else if(ia(t),Ff(o)){if(l=o.nextSibling&&o.nextSibling.dataset,l)var u=l.dgst;l=u,a=Error(w(419)),a.stack="",a.digest=l,Al({value:a,source:null,stack:null}),t=bc(e,t,n)}else if(Be||Rr(e,t,n,!1),l=(n&e.childLanes)!==0,Be||l){if(l=pe,l!==null&&(a=Wy(l,n),a!==0&&a!==s.retryLane))throw s.retryLane=a,vi(e,a),ct(l,e,a),Cp;Zf(o)||Rs(),t=bc(e,t,n)}else Zf(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Se=Gt(o.nextSibling),Ze=t,I=!0,pa=null,Ut=!1,e!==null&&R0(t,e),t=Bf(t,a.children),t.flags|=4096);return t}return i?(ra(),o=a.fallback,i=t.mode,s=e.child,u=s.sibling,a=zn(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=zn(u,o):(o=Xa(o,i,n,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,el(null,a),a=t.child,o=e.child.memoizedState,o===null?o=mc(n):(i=o.cachePool,i!==null?(s=Ue._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=M0(),o={baseLanes:o.baseLanes|n,cachePool:i}),a.memoizedState=o,a.childLanes=yc(e,l,n),t.memoizedState=gc,el(e.child,a)):(ia(t),n=e.child,e=n.sibling,n=zn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function Bf(e,t){return t=Ts({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ts(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function bc(e,t,n){return ei(t,e.child,null,n),e=Bf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ng(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ef(e.return,t,n)}function _c(e,t,n,a,i,r){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:r}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=a,l.tail=n,l.tailMode=i,l.treeForkCount=r)}function Eb(e,t,n){var a=t.pendingProps,i=a.revealOrder,r=a.tail;a=a.children;var l=Me.current,o=(l&2)!==0;if(o?(l=l&1|2,t.flags|=128):l&=1,me(Me,l),Xe(e,t,a,n),a=I?Tl:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ng(e,n,t);else if(e.tag===19)Ng(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ss(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_c(t,!1,i,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ss(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_c(t,!0,n,null,r,a);break;case"together":_c(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function kn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ta|=t.lanes,!(n&t.childLanes))if(e!==null){if(Rr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Rp(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&ys(e)))}function AE(e,t,n){switch(t.tag){case 3:fs(t,t.stateNode.containerInfo),aa(t,Ue,e.memoizedState.cache),Ja();break;case 27:case 5:ff(t);break;case 4:fs(t,t.stateNode.containerInfo);break;case 10:aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Nf(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ia(t),t.flags|=128,null):n&t.child.childLanes?Ob(e,t,n):(ia(t),e=kn(e,t,n),e!==null?e.sibling:null);ia(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Rr(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Eb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),me(Me,Me.current),a)break;return null;case 22:return t.lanes=0,xb(e,t,n,t.pendingProps);case 24:aa(t,Ue,e.memoizedState.cache)}return kn(e,t,n)}function Tb(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!Rp(e,n)&&!(t.flags&128))return Be=!1,AE(e,t,n);Be=!!(e.flags&131072)}else Be=!1,I&&t.flags&1048576&&C0(t,Tl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ga(t.elementType),t.type=e,typeof e=="function")op(e)?(a=ni(e,a),t.tag=1,t=Cg(null,t,e,a,n)):(t.tag=0,t=Uf(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===Xh){t.tag=11,t=Og(null,t,e,a,n);break e}else if(i===Qh){t.tag=14,t=Eg(null,t,e,a,n);break e}}throw t=uf(e)||e,Error(w(306,t,""))}}return t;case 0:return Uf(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=ni(a,t.pendingProps),Cg(e,t,a,i,n);case 3:e:{if(fs(t,t.stateNode.containerInfo),e===null)throw Error(w(387));a=t.pendingProps;var r=t.memoizedState;i=r.element,wf(e,t),cl(t,a,null,n);var l=t.memoizedState;if(a=l.cache,aa(t,Ue,a),a!==r.cache&&Tf(t,[Ue],n,!0),ul(),a=l.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Rg(e,t,a,n);break e}else if(a!==i){i=zt(Error(w(424)),t),Al(i),t=Rg(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Se=Gt(e.firstChild),Ze=t,I=!0,pa=null,Ut=!0,n=L0(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ja(),a===i){t=kn(e,t,n);break e}Xe(e,t,a,n)}t=t.child}return t;case 26:return Fo(e,t),e===null?(n=Fg(t.type,null,t.pendingProps,null))?t.memoizedState=n:I||(n=t.type,e=t.pendingProps,a=js(ha.current).createElement(n),a[Qe]=t,a[dt]=e,Je(a,n,e),Ge(a),t.stateNode=a):t.memoizedState=Fg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ff(t),e===null&&I&&(a=t.stateNode=v_(t.type,t.pendingProps,ha.current),Ze=t,Ut=!0,i=Se,Ma(t.type)?(If=i,Se=Gt(a.firstChild)):Se=i),Xe(e,t,t.pendingProps.children,n),Fo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&I&&((i=a=Se)&&(a=nT(a,t.type,t.pendingProps,Ut),a!==null?(t.stateNode=a,Ze=t,Se=Gt(a.firstChild),Ut=!1,i=!0):i=!1),i||Oa(t)),ff(t),i=t.type,r=t.pendingProps,l=e!==null?e.memoizedProps:null,a=r.children,Xf(i,r)?a=null:l!==null&&Xf(i,l)&&(t.flags|=32),t.memoizedState!==null&&(i=gp(e,t,mE,null,null,n),Dl._currentValue=i),Fo(e,t),Xe(e,t,a,n),t.child;case 6:return e===null&&I&&((e=n=Se)&&(n=aT(n,t.pendingProps,Ut),n!==null?(t.stateNode=n,Ze=t,Se=null,e=!0):e=!1),e||Oa(t)),null;case 13:return Ob(e,t,n);case 4:return fs(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ei(t,null,a,n):Xe(e,t,a,n),t.child;case 11:return Og(e,t,t.type,t.pendingProps,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,aa(t,t.type,a.value),Xe(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Wa(t),i=Ie(i),a=a(i),t.flags|=1,Xe(e,t,a,n),t.child;case 14:return Eg(e,t,t.type,t.pendingProps,n);case 15:return Sb(e,t,t.type,t.pendingProps,n);case 19:return Eb(e,t,n);case 31:return TE(e,t,n);case 22:return xb(e,t,n,t.pendingProps);case 24:return Wa(t),a=Ie(Ue),e===null?(i=fp(),i===null&&(i=pe,r=cp(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=n),i=r),t.memoizedState={parent:a,cache:i},hp(t),aa(t,Ue,i)):(e.lanes&n&&(wf(e,t),cl(t,null,null,n),ul()),i=e.memoizedState,r=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),aa(t,Ue,a)):(a=r.cache,aa(t,Ue,a),a!==i.cache&&Tf(t,[Ue],n,!0))),Xe(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(w(156,t.tag))}function On(e){e.flags|=4}function Sc(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Zb())e.flags|=8192;else throw Za=bs,dp}else e.flags&=-16777217}function Mg(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!y_(t))if(Zb())e.flags|=8192;else throw Za=bs,dp}function Oo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Fy():536870912,e.lanes|=t,gr|=t)}function Xr(e,t){if(!I)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function wE(e,t,n){var a=t.pendingProps;switch(up(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Un(Ue),cr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ci(t)?On(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dc())),_e(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(On(t),r!==null?(_e(t),Mg(t,r)):(_e(t),Sc(t,i,null,a,n))):r?r!==e.memoizedState?(On(t),_e(t),Mg(t,r)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&On(t),_e(t),Sc(t,i,e,a,n)),null;case 27:if(ds(t),n=ha.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&On(t);else{if(!a){if(t.stateNode===null)throw Error(w(166));return _e(t),null}e=hn.current,Ci(t)?lg(t):(e=v_(i,a,n),t.stateNode=e,On(t))}return _e(t),null;case 5:if(ds(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&On(t);else{if(!a){if(t.stateNode===null)throw Error(w(166));return _e(t),null}if(r=hn.current,Ci(t))lg(t);else{var l=js(ha.current);switch(r){case 1:r=l.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=l.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=l.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?l.createElement(i,{is:a.is}):l.createElement(i)}}r[Qe]=t,r[dt]=a;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=r;e:switch(Je(r,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&On(t)}}return _e(t),Sc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&On(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(w(166));if(e=ha.current,Ci(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=Ze,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Qe]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||f_(e.nodeValue,n)),e||Oa(t,!0)}else e=js(e).createTextNode(a),e[Qe]=t,t.stateNode=e}return _e(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ci(t),n!==null){if(e===null){if(!a)throw Error(w(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(557));e[Qe]=t}else Ja(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else n=dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if(t.flags&128)throw Error(w(558))}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ci(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(w(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(w(317));i[Qe]=t}else Ja(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),i=!1}else i=dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(t),t.flags&128?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Oo(t,t.updateQueue),_e(t),null);case 4:return cr(),e===null&&Up(t.stateNode.containerInfo),_e(t),null;case 10:return Un(t.type),_e(t),null;case 19:if(qe(Me),a=t.memoizedState,a===null)return _e(t),null;if(i=(t.flags&128)!==0,r=a.rendering,r===null)if(i)Xr(a,!1);else{if(Re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=Ss(e),r!==null){for(t.flags|=128,Xr(a,!1),e=r.updateQueue,t.updateQueue=e,Oo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)A0(n,e),n=n.sibling;return me(Me,Me.current&1|2),I&&Cn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&xt()>ws&&(t.flags|=128,i=!0,Xr(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ss(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Oo(t,e),Xr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!I)return _e(t),null}else 2*xt()-a.renderingStartTime>ws&&n!==536870912&&(t.flags|=128,i=!0,Xr(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=xt(),e.sibling=null,n=Me.current,me(Me,i?n&1|2:n&1),I&&Cn(t,a.treeForkCount),e):(_e(t),null);case 22:case 23:return mt(t),pp(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),n=t.updateQueue,n!==null&&Oo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&qe(Qa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Un(Ue),_e(t),null;case 25:return null;case 30:return null}throw Error(w(156,t.tag))}function CE(e,t){switch(up(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(Ue),cr(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ds(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(w(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return qe(Me),null;case 4:return cr(),null;case 10:return Un(t.type),null;case 22:case 23:return mt(t),pp(),e!==null&&qe(Qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Un(Ue),null;case 25:return null;default:return null}}function Ab(e,t){switch(up(t),t.tag){case 3:Un(Ue),cr();break;case 26:case 27:case 5:ds(t);break;case 4:cr();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:qe(Me);break;case 10:Un(t.type);break;case 22:case 23:mt(t),pp(),e!==null&&qe(Qa);break;case 24:Un(Ue)}}function Jl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var r=n.create,l=n.inst;a=r(),l.destroy=a}n=n.next}while(n!==i)}}catch(o){se(t,t.return,o)}}function Ea(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){var l=a.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,i=t;var s=n,u=o;try{u()}catch(c){se(i,s,c)}}}a=a.next}while(a!==r)}}catch(c){se(t,t.return,c)}}function wb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{U0(t,n)}catch(a){se(e,e.return,a)}}}function Cb(e,t,n){n.props=ni(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){se(e,t,a)}}function dl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){se(e,t,i)}}function un(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){se(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){se(e,t,i)}else n.current=null}function Rb(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){se(e,e.return,i)}}function xc(e,t,n){try{var a=e.stateNode;FE(a,e.type,n,t),a[dt]=t}catch(i){se(e,e.return,i)}}function Nb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ma(e.type)||e.tag===4}function Oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ma(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hf(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jn));else if(a!==4&&(a===27&&Ma(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Hf(e,t,n),e=e.sibling;e!==null;)Hf(e,t,n),e=e.sibling}function As(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ma(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}function Mb(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Je(t,a,n),t[Qe]=e,t[dt]=n}catch(r){se(e,e.return,r)}}var Rn=!1,ze=!1,Ec=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function RE(e,t){if(e=e.containerInfo,qf=Bs,e=y0(e),ip(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var l=0,o=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(o=l+i),f!==r||a!==0&&f.nodeType!==3||(s=l+a),f.nodeType===3&&(l+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(o=l),d===r&&++c===a&&(s=l),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(kf={focusedElem:e,selectionRange:n},Bs=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,r=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&r!==null){e=void 0,n=t,i=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var g=ni(n.type,i);e=a.getSnapshotBeforeUpdate(g,r),a.__reactInternalSnapshotBeforeUpdate=e}catch(_){se(n,n.return,_)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Qf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(w(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function Db(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(e,n),a&4&&Jl(5,n);break;case 1:if(Tn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){se(n,n.return,l)}else{var i=ni(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){se(n,n.return,l)}}a&64&&wb(n),a&512&&dl(n,n.return);break;case 3:if(Tn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{U0(e,t)}catch(l){se(n,n.return,l)}}break;case 27:t===null&&a&4&&Mb(n);case 26:case 5:Tn(e,n),t===null&&a&4&&Rb(n),a&512&&dl(n,n.return);break;case 12:Tn(e,n);break;case 31:Tn(e,n),a&4&&zb(e,n);break;case 13:Tn(e,n),a&4&&Ub(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=HE.bind(null,n),iT(e,n))));break;case 22:if(a=n.memoizedState!==null||Rn,!a){t=t!==null&&t.memoizedState!==null||ze,i=Rn;var r=ze;Rn=a,(ze=t)&&!r?An(e,n,(n.subtreeFlags&8772)!==0):Tn(e,n),Rn=i,ze=r}break;case 30:break;default:Tn(e,n)}}function jb(e){var t=e.alternate;t!==null&&(e.alternate=null,jb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Jh(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ee=null,st=!1;function En(e,t,n){for(n=n.child;n!==null;)Lb(e,t,n),n=n.sibling}function Lb(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(ql,n)}catch{}switch(n.tag){case 26:ze||un(n,t),En(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ze||un(n,t);var a=Ee,i=st;Ma(n.type)&&(Ee=n.stateNode,st=!1),En(e,t,n),gl(n.stateNode),Ee=a,st=i;break;case 5:ze||un(n,t);case 6:if(a=Ee,i=st,Ee=null,En(e,t,n),Ee=a,st=i,Ee!==null)if(st)try{(Ee.nodeType===9?Ee.body:Ee.nodeName==="HTML"?Ee.ownerDocument.body:Ee).removeChild(n.stateNode)}catch(r){se(n,t,r)}else try{Ee.removeChild(n.stateNode)}catch(r){se(n,t,r)}break;case 18:Ee!==null&&(st?(e=Ee,qg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_r(e)):qg(Ee,n.stateNode));break;case 4:a=Ee,i=st,Ee=n.stateNode.containerInfo,st=!0,En(e,t,n),Ee=a,st=i;break;case 0:case 11:case 14:case 15:Ea(2,n,t),ze||Ea(4,n,t),En(e,t,n);break;case 1:ze||(un(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Cb(n,t,a)),En(e,t,n);break;case 21:En(e,t,n);break;case 22:ze=(a=ze)||n.memoizedState!==null,En(e,t,n),ze=a;break;default:En(e,t,n)}}function zb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_r(e)}catch(n){se(t,t.return,n)}}}function Ub(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_r(e)}catch(n){se(t,t.return,n)}}function NE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dg),t;default:throw Error(w(435,e.tag))}}function Eo(e,t){var n=NE(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=VE.bind(null,e,a);a.then(i,i)}})}function lt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],r=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 27:if(Ma(o.type)){Ee=o.stateNode,st=!1;break e}break;case 5:Ee=o.stateNode,st=!1;break e;case 3:case 4:Ee=o.stateNode.containerInfo,st=!0;break e}o=o.return}if(Ee===null)throw Error(w(160));Lb(r,l,i),Ee=null,st=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Bb(t,e),t=t.sibling}var Qt=null;function Bb(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:lt(t,e),ot(e),a&4&&(Ea(3,e,e.return),Jl(3,e),Ea(5,e,e.return));break;case 1:lt(t,e),ot(e),a&512&&(ze||n===null||un(n,n.return)),a&64&&Rn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Qt;if(lt(t,e),ot(e),a&512&&(ze||n===null||un(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":r=i.getElementsByTagName("title")[0],(!r||r[Ql]||r[Qe]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(a),i.head.insertBefore(r,i.querySelector("head > title"))),Je(r,a,n),r[Qe]=e,Ge(r),a=r;break e;case"link":var l=Jg("link","href",i).get(a+(n.href||""));if(l){for(var o=0;o<l.length;o++)if(r=l[o],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){l.splice(o,1);break t}}r=i.createElement(a),Je(r,a,n),i.head.appendChild(r);break;case"meta":if(l=Jg("meta","content",i).get(a+(n.content||""))){for(o=0;o<l.length;o++)if(r=l[o],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){l.splice(o,1);break t}}r=i.createElement(a),Je(r,a,n),i.head.appendChild(r);break;default:throw Error(w(468,a))}r[Qe]=e,Ge(r),a=r}e.stateNode=a}else Wg(i,e.type,e.stateNode);else e.stateNode=Ig(i,a,e.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?Wg(i,e.type,e.stateNode):Ig(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&xc(e,e.memoizedProps,n.memoizedProps)}break;case 27:lt(t,e),ot(e),a&512&&(ze||n===null||un(n,n.return)),n!==null&&a&4&&xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(lt(t,e),ot(e),a&512&&(ze||n===null||un(n,n.return)),e.flags&32){i=e.stateNode;try{dr(i,"")}catch(g){se(e,e.return,g)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,xc(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Ec=!0);break;case 6:if(lt(t,e),ot(e),a&4){if(e.stateNode===null)throw Error(w(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(g){se(e,e.return,g)}}break;case 3:if(Wo=null,i=Qt,Qt=Ls(t.containerInfo),lt(t,e),Qt=i,ot(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{_r(t.containerInfo)}catch(g){se(e,e.return,g)}Ec&&(Ec=!1,Hb(e));break;case 4:a=Qt,Qt=Ls(e.stateNode.containerInfo),lt(t,e),ot(e),Qt=a;break;case 12:lt(t,e),ot(e);break;case 31:lt(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Eo(e,a)));break;case 13:lt(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(vu=xt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Eo(e,a)));break;case 22:i=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Rn,c=ze;if(Rn=u||i,ze=c||s,lt(t,e),ze=c,Rn=u,ot(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||s||Rn||ze||Ka(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(r=s.stateNode,i)l=r.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{o=s.stateNode;var f=s.memoizedProps.style,d=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(g){se(s,s.return,g)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=i?"":s.memoizedProps}catch(g){se(s,s.return,g)}}}else if(t.tag===18){if(n===null){s=t;try{var h=s.stateNode;i?kg(h,!0):kg(s.stateNode,!1)}catch(g){se(s,s.return,g)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Eo(e,n))));break;case 19:lt(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Eo(e,a)));break;case 30:break;case 21:break;default:lt(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Nb(a)){n=a;break}a=a.return}if(n==null)throw Error(w(160));switch(n.tag){case 27:var i=n.stateNode,r=Oc(e);As(e,r,i);break;case 5:var l=n.stateNode;n.flags&32&&(dr(l,""),n.flags&=-33);var o=Oc(e);As(e,o,l);break;case 3:case 4:var s=n.stateNode.containerInfo,u=Oc(e);Hf(e,u,s);break;default:throw Error(w(161))}}catch(c){se(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Db(e,t.alternate,t),t=t.sibling}function Ka(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ea(4,t,t.return),Ka(t);break;case 1:un(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Cb(t,t.return,n),Ka(t);break;case 27:gl(t.stateNode);case 26:case 5:un(t,t.return),Ka(t);break;case 22:t.memoizedState===null&&Ka(t);break;case 30:Ka(t);break;default:Ka(t)}e=e.sibling}}function An(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,r=t,l=r.flags;switch(r.tag){case 0:case 11:case 15:An(i,r,n),Jl(4,r);break;case 1:if(An(i,r,n),a=r,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){se(a,a.return,u)}if(a=r,i=a.updateQueue,i!==null){var o=a.stateNode;try{var s=i.shared.hiddenCallbacks;if(s!==null)for(i.shared.hiddenCallbacks=null,i=0;i<s.length;i++)z0(s[i],o)}catch(u){se(a,a.return,u)}}n&&l&64&&wb(r),dl(r,r.return);break;case 27:Mb(r);case 26:case 5:An(i,r,n),n&&a===null&&l&4&&Rb(r),dl(r,r.return);break;case 12:An(i,r,n);break;case 31:An(i,r,n),n&&l&4&&zb(i,r);break;case 13:An(i,r,n),n&&l&4&&Ub(i,r);break;case 22:r.memoizedState===null&&An(i,r,n),dl(r,r.return);break;case 30:break;default:An(i,r,n)}t=t.sibling}}function Np(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Fl(n))}function Mp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fl(e))}function kt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vb(e,t,n,a),t=t.sibling}function Vb(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:kt(e,t,n,a),i&2048&&Jl(9,t);break;case 1:kt(e,t,n,a);break;case 3:kt(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fl(e)));break;case 12:if(i&2048){kt(e,t,n,a),e=t.stateNode;try{var r=t.memoizedProps,l=r.id,o=r.onPostCommit;typeof o=="function"&&o(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){se(t,t.return,s)}}else kt(e,t,n,a);break;case 31:kt(e,t,n,a);break;case 13:kt(e,t,n,a);break;case 23:break;case 22:r=t.stateNode,l=t.alternate,t.memoizedState!==null?r._visibility&2?kt(e,t,n,a):hl(e,t):r._visibility&2?kt(e,t,n,a):(r._visibility|=2,Ui(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Np(l,t);break;case 24:kt(e,t,n,a),i&2048&&Mp(t.alternate,t);break;default:kt(e,t,n,a)}}function Ui(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,l=t,o=n,s=a,u=l.flags;switch(l.tag){case 0:case 11:case 15:Ui(r,l,o,s,i),Jl(8,l);break;case 23:break;case 22:var c=l.stateNode;l.memoizedState!==null?c._visibility&2?Ui(r,l,o,s,i):hl(r,l):(c._visibility|=2,Ui(r,l,o,s,i)),i&&u&2048&&Np(l.alternate,l);break;case 24:Ui(r,l,o,s,i),i&&u&2048&&Mp(l.alternate,l);break;default:Ui(r,l,o,s,i)}t=t.sibling}}function hl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:hl(n,a),i&2048&&Np(a.alternate,a);break;case 24:hl(n,a),i&2048&&Mp(a.alternate,a);break;default:hl(n,a)}t=t.sibling}}var tl=8192;function Ri(e,t,n){if(e.subtreeFlags&tl)for(e=e.child;e!==null;)Pb(e,t,n),e=e.sibling}function Pb(e,t,n){switch(e.tag){case 26:Ri(e,t,n),e.flags&tl&&e.memoizedState!==null&&gT(n,Qt,e.memoizedState,e.memoizedProps);break;case 5:Ri(e,t,n);break;case 3:case 4:var a=Qt;Qt=Ls(e.stateNode.containerInfo),Ri(e,t,n),Qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=tl,tl=16777216,Ri(e,t,n),tl=a):Ri(e,t,n));break;default:Ri(e,t,n)}}function $b(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Qr(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,Gb(a,e)}$b(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yb(e),e=e.sibling}function Yb(e){switch(e.tag){case 0:case 11:case 15:Qr(e),e.flags&2048&&Ea(9,e,e.return);break;case 3:Qr(e);break;case 12:Qr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Io(e)):Qr(e);break;default:Qr(e)}}function Io(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,Gb(a,e)}$b(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ea(8,t,t.return),Io(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Io(t));break;default:Io(t)}e=e.sibling}}function Gb(e,t){for(;Ye!==null;){var n=Ye;switch(n.tag){case 0:case 11:case 15:Ea(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Fl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ye=a;else e:for(n=e;Ye!==null;){a=Ye;var i=a.sibling,r=a.return;if(jb(a),a===n){Ye=null;break e}if(i!==null){i.return=r,Ye=i;break e}Ye=r}}}var ME={getCacheForType:function(e){var t=Ie(Ue),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ie(Ue).controller.signal}},DE=typeof WeakMap=="function"?WeakMap:Map,re=0,pe=null,Z=null,F=0,oe=0,vt=null,ua=!1,Mr=!1,Dp=!1,Xn=0,Re=0,Ta=0,Fa=0,jp=0,St=0,gr=0,pl=null,ut=null,Vf=!1,vu=0,Kb=0,ws=1/0,Cs=null,ma=null,Ve=0,ya=null,mr=null,Bn=0,Pf=0,$f=null,qb=null,vl=0,Yf=null;function Tt(){return re&2&&F!==0?F&-F:Y.T!==null?zp():e0()}function kb(){if(St===0)if(!(F&536870912)||I){var e=go;go<<=1,!(go&3932160)&&(go=262144),St=e}else St=536870912;return e=Ct.current,e!==null&&(e.flags|=32),St}function ct(e,t,n){(e===pe&&(oe===2||oe===9)||e.cancelPendingCommit!==null)&&(yr(e,0),ca(e,F,St,!1)),Xl(e,n),(!(re&2)||e!==pe)&&(e===pe&&(!(re&2)&&(Fa|=n),Re===4&&ca(e,F,St,!1)),_n(e))}function Xb(e,t,n){if(re&6)throw Error(w(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||kl(e,t),i=a?zE(e,t):Tc(e,t,!0),r=a;do{if(i===0){Mr&&!a&&ca(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!jE(n)){i=Tc(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var o=e;i=pl;var s=o.current.memoizedState.isDehydrated;if(s&&(yr(o,l).flags|=256),l=Tc(o,l,!1),l!==2){if(Dp&&!s){o.errorRecoveryDisabledLanes|=r,Fa|=r,i=4;break e}r=ut,ut=i,r!==null&&(ut===null?ut=r:ut.push.apply(ut,r))}i=l}if(r=!1,i!==2)continue}}if(i===1){yr(e,0),ca(e,t,0,!0);break}e:{switch(a=e,r=i,r){case 0:case 1:throw Error(w(345));case 4:if((t&4194048)!==t)break;case 6:ca(a,t,St,!ua);break e;case 2:ut=null;break;case 3:case 5:break;default:throw Error(w(329))}if((t&62914560)===t&&(i=vu+300-xt(),10<i)){if(ca(a,t,St,!ua),iu(a,0,!0)!==0)break e;Bn=t,a.timeoutHandle=h_(jg.bind(null,a,n,ut,Cs,Vf,t,St,Fa,gr,ua,r,"Throttled",-0,0),i);break e}jg(a,n,ut,Cs,Vf,t,St,Fa,gr,ua,r,null,-0,0)}}break}while(!0);_n(e)}function jg(e,t,n,a,i,r,l,o,s,u,c,f,d,h){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jn},Pb(t,r,f);var g=(r&62914560)===r?vu-xt():(r&4194048)===r?Kb-xt():0;if(g=mT(f,g),g!==null){Bn=r,e.cancelPendingCommit=g(zg.bind(null,e,t,r,n,a,i,l,o,s,c,f,null,d,h)),ca(e,r,l,!u);return}}zg(e,t,r,n,a,i,l,o,s)}function jE(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],r=i.getSnapshot;i=i.value;try{if(!wt(r(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ca(e,t,n,a){t&=~jp,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var r=31-Et(i),l=1<<r;a[r]=-1,i&=~l}n!==0&&Iy(e,n,t)}function gu(){return re&6?!0:(Wl(0),!1)}function Lp(){if(Z!==null){if(oe===0)var e=Z.return;else e=Z,Ln=gi=null,bp(e),ir=null,wl=0,e=Z;for(;e!==null;)Ab(e.alternate,e),e=e.return;Z=null}}function yr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,WE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Bn=0,Lp(),pe=e,Z=n=zn(e.current,null),F=t,oe=0,vt=null,ua=!1,Mr=kl(e,t),Dp=!1,gr=St=jp=Fa=Ta=Re=0,ut=pl=null,Vf=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Et(a),r=1<<i;t|=e[i],a&=~r}return Xn=t,su(),n}function Qb(e,t){k=null,Y.H=Rl,t===Nr||t===cu?(t=fg(),oe=3):t===dp?(t=fg(),oe=4):oe=t===Cp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,Z===null&&(Re=1,Es(e,zt(t,e.current)))}function Zb(){var e=Ct.current;return e===null?!0:(F&4194048)===F?Yt===null:(F&62914560)===F||F&536870912?e===Yt:!1}function Fb(){var e=Y.H;return Y.H=Rl,e===null?Rl:e}function Ib(){var e=Y.A;return Y.A=ME,e}function Rs(){Re=4,ua||(F&4194048)!==F&&Ct.current!==null||(Mr=!0),!(Ta&134217727)&&!(Fa&134217727)||pe===null||ca(pe,F,St,!1)}function Tc(e,t,n){var a=re;re|=2;var i=Fb(),r=Ib();(pe!==e||F!==t)&&(Cs=null,yr(e,t)),t=!1;var l=Re;e:do try{if(oe!==0&&Z!==null){var o=Z,s=vt;switch(oe){case 8:Lp(),l=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var u=oe;if(oe=0,vt=null,Fi(e,o,s,u),n&&Mr){l=0;break e}break;default:u=oe,oe=0,vt=null,Fi(e,o,s,u)}}LE(),l=Re;break}catch(c){Qb(e,c)}while(!0);return t&&e.shellSuspendCounter++,Ln=gi=null,re=a,Y.H=i,Y.A=r,Z===null&&(pe=null,F=0,su()),l}function LE(){for(;Z!==null;)Jb(Z)}function zE(e,t){var n=re;re|=2;var a=Fb(),i=Ib();pe!==e||F!==t?(Cs=null,ws=xt()+500,yr(e,t)):Mr=kl(e,t);e:do try{if(oe!==0&&Z!==null){t=Z;var r=vt;t:switch(oe){case 1:oe=0,vt=null,Fi(e,t,r,1);break;case 2:case 9:if(cg(r)){oe=0,vt=null,Lg(t);break}t=function(){oe!==2&&oe!==9||pe!==e||(oe=7),_n(e)},r.then(t,t);break e;case 3:oe=7;break e;case 4:oe=5;break e;case 7:cg(r)?(oe=0,vt=null,Lg(t)):(oe=0,vt=null,Fi(e,t,r,7));break;case 5:var l=null;switch(Z.tag){case 26:l=Z.memoizedState;case 5:case 27:var o=Z;if(l?y_(l):o.stateNode.complete){oe=0,vt=null;var s=o.sibling;if(s!==null)Z=s;else{var u=o.return;u!==null?(Z=u,mu(u)):Z=null}break t}}oe=0,vt=null,Fi(e,t,r,5);break;case 6:oe=0,vt=null,Fi(e,t,r,6);break;case 8:Lp(),Re=6;break e;default:throw Error(w(462))}}UE();break}catch(c){Qb(e,c)}while(!0);return Ln=gi=null,Y.H=a,Y.A=i,re=n,Z!==null?0:(pe=null,F=0,su(),Re)}function UE(){for(;Z!==null&&!rO();)Jb(Z)}function Jb(e){var t=Tb(e.alternate,e,Xn);e.memoizedProps=e.pendingProps,t===null?mu(e):Z=t}function Lg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=wg(n,t,t.pendingProps,t.type,void 0,F);break;case 11:t=wg(n,t,t.pendingProps,t.type.render,t.ref,F);break;case 5:bp(t);default:Ab(n,t),t=Z=A0(t,Xn),t=Tb(n,t,Xn)}e.memoizedProps=e.pendingProps,t===null?mu(e):Z=t}function Fi(e,t,n,a){Ln=gi=null,bp(t),ir=null,wl=0;var i=t.return;try{if(EE(e,i,t,n,F)){Re=1,Es(e,zt(n,e.current)),Z=null;return}}catch(r){if(i!==null)throw Z=i,r;Re=1,Es(e,zt(n,e.current)),Z=null;return}t.flags&32768?(I||a===1?e=!0:Mr||F&536870912?e=!1:(ua=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ct.current,a!==null&&a.tag===13&&(a.flags|=16384))),Wb(t,e)):mu(t)}function mu(e){var t=e;do{if(t.flags&32768){Wb(t,ua);return}e=t.return;var n=wE(t.alternate,t,Xn);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Re===0&&(Re=5)}function Wb(e,t){do{var n=CE(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);Re=6,Z=null}function zg(e,t,n,a,i,r,l,o,s){e.cancelPendingCommit=null;do yu();while(Ve!==0);if(re&6)throw Error(w(327));if(t!==null){if(t===e.current)throw Error(w(177));if(r=t.lanes|t.childLanes,r|=rp,vO(e,n,r,l,o,s),e===pe&&(Z=pe=null,F=0),mr=t,ya=e,Bn=n,Pf=r,$f=i,qb=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,PE(hs,function(){return i_(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=Y.T,Y.T=null,i=le.p,le.p=2,l=re,re|=4;try{RE(e,t,n)}finally{re=l,le.p=i,Y.T=a}}Ve=1,e_(),t_(),n_()}}function e_(){if(Ve===1){Ve=0;var e=ya,t=mr,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=Y.T,Y.T=null;var a=le.p;le.p=2;var i=re;re|=4;try{Bb(t,e);var r=kf,l=y0(e.containerInfo),o=r.focusedElem,s=r.selectionRange;if(l!==o&&o&&o.ownerDocument&&m0(o.ownerDocument.documentElement,o)){if(s!==null&&ip(o)){var u=s.start,c=s.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var f=o.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),g=o.textContent.length,_=Math.min(s.start,g),S=s.end===void 0?_:Math.min(s.end,g);!h.extend&&_>S&&(l=S,S=_,_=l);var p=ag(o,_),v=ag(o,S);if(p&&v&&(h.rangeCount!==1||h.anchorNode!==p.node||h.anchorOffset!==p.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var m=f.createRange();m.setStart(p.node,p.offset),h.removeAllRanges(),_>S?(h.addRange(m),h.extend(v.node,v.offset)):(m.setEnd(v.node,v.offset),h.addRange(m))}}}}for(f=[],h=o;h=h.parentNode;)h.nodeType===1&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var b=f[o];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Bs=!!qf,kf=qf=null}finally{re=i,le.p=a,Y.T=n}}e.current=t,Ve=2}}function t_(){if(Ve===2){Ve=0;var e=ya,t=mr,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=Y.T,Y.T=null;var a=le.p;le.p=2;var i=re;re|=4;try{Db(e,t.alternate,t)}finally{re=i,le.p=a,Y.T=n}}Ve=3}}function n_(){if(Ve===4||Ve===3){Ve=0,lO();var e=ya,t=mr,n=Bn,a=qb;t.subtreeFlags&10256||t.flags&10256?Ve=5:(Ve=0,mr=ya=null,a_(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ma=null),Ih(n),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(ql,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=Y.T,i=le.p,le.p=2,Y.T=null;try{for(var r=e.onRecoverableError,l=0;l<a.length;l++){var o=a[l];r(o.value,{componentStack:o.stack})}}finally{Y.T=t,le.p=i}}Bn&3&&yu(),_n(e),i=e.pendingLanes,n&261930&&i&42?e===Yf?vl++:(vl=0,Yf=e):vl=0,Wl(0)}}function a_(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fl(t)))}function yu(){return e_(),t_(),n_(),i_()}function i_(){if(Ve!==5)return!1;var e=ya,t=Pf;Pf=0;var n=Ih(Bn),a=Y.T,i=le.p;try{le.p=32>n?32:n,Y.T=null,n=$f,$f=null;var r=ya,l=Bn;if(Ve=0,mr=ya=null,Bn=0,re&6)throw Error(w(331));var o=re;if(re|=4,Yb(r.current),Vb(r,r.current,l,n),re=o,Wl(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(ql,r)}catch{}return!0}finally{le.p=i,Y.T=a,a_(e,t)}}function Ug(e,t,n){t=zt(n,t),t=zf(e.stateNode,t,2),e=ga(e,t,2),e!==null&&(Xl(e,2),_n(e))}function se(e,t,n){if(e.tag===3)Ug(e,e,n);else for(;t!==null;){if(t.tag===3){Ug(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ma===null||!ma.has(a))){e=zt(n,e),n=bb(2),a=ga(t,n,2),a!==null&&(_b(n,a,t,e),Xl(a,2),_n(a));break}}t=t.return}}function Ac(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new DE;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Dp=!0,i.add(n),e=BE.bind(null,e,t,n),t.then(e,e))}function BE(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,pe===e&&(F&n)===n&&(Re===4||Re===3&&(F&62914560)===F&&300>xt()-vu?!(re&2)&&yr(e,0):jp|=n,gr===F&&(gr=0)),_n(e)}function r_(e,t){t===0&&(t=Fy()),e=vi(e,t),e!==null&&(Xl(e,t),_n(e))}function HE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),r_(e,n)}function VE(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(w(314))}a!==null&&a.delete(t),r_(e,n)}function PE(e,t){return Zh(e,t)}var Ns=null,Bi=null,Gf=!1,Ms=!1,wc=!1,fa=0;function _n(e){e!==Bi&&e.next===null&&(Bi===null?Ns=Bi=e:Bi=Bi.next=e),Ms=!0,Gf||(Gf=!0,YE())}function Wl(e,t){if(!wc&&Ms){wc=!0;do for(var n=!1,a=Ns;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var r=0;else{var l=a.suspendedLanes,o=a.pingedLanes;r=(1<<31-Et(42|e)+1)-1,r&=i&~(l&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Bg(a,r))}else r=F,r=iu(a,a===pe?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(r&3)||kl(a,r)||(n=!0,Bg(a,r));a=a.next}while(n);wc=!1}}function $E(){l_()}function l_(){Ms=Gf=!1;var e=0;fa!==0&&JE()&&(e=fa);for(var t=xt(),n=null,a=Ns;a!==null;){var i=a.next,r=o_(a,t);r===0?(a.next=null,n===null?Ns=i:n.next=i,i===null&&(Bi=n)):(n=a,(e!==0||r&3)&&(Ms=!0)),a=i}Ve!==0&&Ve!==5||Wl(e),fa!==0&&(fa=0)}function o_(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var l=31-Et(r),o=1<<l,s=i[l];s===-1?(!(o&n)||o&a)&&(i[l]=pO(o,t)):s<=t&&(e.expiredLanes|=o),r&=~o}if(t=pe,n=F,n=iu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(oe===2||oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&tc(a),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||kl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&tc(a),Ih(n)){case 2:case 8:n=Qy;break;case 32:n=hs;break;case 268435456:n=Zy;break;default:n=hs}return a=s_.bind(null,e),n=Zh(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&tc(a),e.callbackPriority=2,e.callbackNode=null,2}function s_(e,t){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(yu()&&e.callbackNode!==n)return null;var a=F;return a=iu(e,e===pe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Xb(e,a,t),o_(e,xt()),e.callbackNode!=null&&e.callbackNode===n?s_.bind(null,e):null)}function Bg(e,t){if(yu())return null;Xb(e,t,!0)}function YE(){eT(function(){re&6?Zh(Xy,$E):l_()})}function zp(){if(fa===0){var e=hr;e===0&&(e=vo,vo<<=1,!(vo&261888)&&(vo=256)),fa=e}return fa}function Hg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Yo(""+e)}function Vg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function GE(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var r=Hg((i[dt]||null).action),l=a.submitter;l&&(t=(t=l[dt]||null)?Hg(t.formAction):l.getAttribute("formAction"),t!==null&&(r=t,l=null));var o=new ru("action","action",null,a,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(fa!==0){var s=l?Vg(i,l):new FormData(i);jf(n,{pending:!0,data:s,method:i.method,action:r},null,s)}}else typeof r=="function"&&(o.preventDefault(),s=l?Vg(i,l):new FormData(i),jf(n,{pending:!0,data:s,method:i.method,action:r},r,s))},currentTarget:i}]})}}for(var Cc=0;Cc<Sf.length;Cc++){var Rc=Sf[Cc],KE=Rc.toLowerCase(),qE=Rc[0].toUpperCase()+Rc.slice(1);Jt(KE,"on"+qE)}Jt(_0,"onAnimationEnd");Jt(S0,"onAnimationIteration");Jt(x0,"onAnimationStart");Jt("dblclick","onDoubleClick");Jt("focusin","onFocus");Jt("focusout","onBlur");Jt(oE,"onTransitionRun");Jt(sE,"onTransitionStart");Jt(uE,"onTransitionCancel");Jt(O0,"onTransitionEnd");fr("onMouseEnter",["mouseout","mouseover"]);fr("onMouseLeave",["mouseout","mouseover"]);fr("onPointerEnter",["pointerout","pointerover"]);fr("onPointerLeave",["pointerout","pointerover"]);di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));di("onBeforeInput",["compositionend","keypress","textInput","paste"]);di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nl="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(" "),kE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nl));function u_(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var l=a.length-1;0<=l;l--){var o=a[l],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==r&&i.isPropagationStopped())break e;r=o,i.currentTarget=u;try{r(i)}catch(c){vs(c)}i.currentTarget=null,r=s}else for(l=0;l<a.length;l++){if(o=a[l],s=o.instance,u=o.currentTarget,o=o.listener,s!==r&&i.isPropagationStopped())break e;r=o,i.currentTarget=u;try{r(i)}catch(c){vs(c)}i.currentTarget=null,r=s}}}}function Q(e,t){var n=t[hf];n===void 0&&(n=t[hf]=new Set);var a=e+"__bubble";n.has(a)||(c_(t,e,2,!1),n.add(a))}function Nc(e,t,n){var a=0;t&&(a|=4),c_(n,e,a,t)}var To="_reactListening"+Math.random().toString(36).slice(2);function Up(e){if(!e[To]){e[To]=!0,t0.forEach(function(n){n!=="selectionchange"&&(kE.has(n)||Nc(n,!1,e),Nc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[To]||(t[To]=!0,Nc("selectionchange",!1,t))}}function c_(e,t,n,a){switch(O_(t)){case 2:var i=_T;break;case 8:i=ST;break;default:i=Pp}n=i.bind(null,t,n,e),i=void 0,!yf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Mc(e,t,n,a,i){var r=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var l=a.tag;if(l===3||l===4){var o=a.stateNode.containerInfo;if(o===i)break;if(l===4)for(l=a.return;l!==null;){var s=l.tag;if((s===3||s===4)&&l.stateNode.containerInfo===i)return;l=l.return}for(;o!==null;){if(l=$i(o),l===null)return;if(s=l.tag,s===5||s===6||s===26||s===27){a=r=l;continue e}o=o.parentNode}}a=a.return}u0(function(){var u=r,c=ep(n),f=[];e:{var d=E0.get(e);if(d!==void 0){var h=ru,g=e;switch(e){case"keypress":if(Ko(n)===0)break e;case"keydown":case"keyup":h=VO;break;case"focusin":g="focus",h=lc;break;case"focusout":g="blur",h=lc;break;case"beforeblur":case"afterblur":h=lc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Xv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=wO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=YO;break;case _0:case S0:case x0:h=NO;break;case O0:h=KO;break;case"scroll":case"scrollend":h=TO;break;case"wheel":h=kO;break;case"copy":case"cut":case"paste":h=DO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Zv;break;case"toggle":case"beforetoggle":h=QO}var _=(t&4)!==0,S=!_&&(e==="scroll"||e==="scrollend"),p=_?d!==null?d+"Capture":null:d;_=[];for(var v=u,m;v!==null;){var b=v;if(m=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||m===null||p===null||(b=xl(v,p),b!=null&&_.push(Ml(v,b,m))),S)break;v=v.return}0<_.length&&(d=new h(d,g,null,n,c),f.push({event:d,listeners:_}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==mf&&(g=n.relatedTarget||n.fromElement)&&($i(g)||g[wr]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?$i(g):null,g!==null&&(S=Kl(g),_=g.tag,g!==S||_!==5&&_!==27&&_!==6)&&(g=null)):(h=null,g=u),h!==g)){if(_=Xv,b="onMouseLeave",p="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(_=Zv,b="onPointerLeave",p="onPointerEnter",v="pointer"),S=h==null?d:Wr(h),m=g==null?d:Wr(g),d=new _(b,v+"leave",h,n,c),d.target=S,d.relatedTarget=m,b=null,$i(c)===u&&(_=new _(p,v+"enter",g,n,c),_.target=m,_.relatedTarget=S,b=_),S=b,h&&g)t:{for(_=XE,p=h,v=g,m=0,b=p;b;b=_(b))m++;b=0;for(var x=v;x;x=_(x))b++;for(;0<m-b;)p=_(p),m--;for(;0<b-m;)v=_(v),b--;for(;m--;){if(p===v||v!==null&&p===v.alternate){_=p;break t}p=_(p),v=_(v)}_=null}else _=null;h!==null&&Pg(f,d,h,_,!1),g!==null&&S!==null&&Pg(f,S,g,_,!0)}}e:{if(d=u?Wr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var T=Wv;else if(Jv(d))if(v0)T=iE;else{T=nE;var E=tE}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Wh(u.elementType)&&(T=Wv):T=aE;if(T&&(T=T(e,u))){p0(f,T,n,c);break e}E&&E(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&gf(d,"number",d.value)}switch(E=u?Wr(u):window,e){case"focusin":(Jv(E)||E.contentEditable==="true")&&(Ki=E,bf=u,ll=null);break;case"focusout":ll=bf=Ki=null;break;case"mousedown":_f=!0;break;case"contextmenu":case"mouseup":case"dragend":_f=!1,ig(f,n,c);break;case"selectionchange":if(lE)break;case"keydown":case"keyup":ig(f,n,c)}var C;if(ap)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Gi?d0(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(f0&&n.locale!=="ko"&&(Gi||R!=="onCompositionStart"?R==="onCompositionEnd"&&Gi&&(C=c0()):(sa=c,tp="value"in sa?sa.value:sa.textContent,Gi=!0)),E=Ds(u,R),0<E.length&&(R=new Qv(R,e,null,n,c),f.push({event:R,listeners:E}),C?R.data=C:(C=h0(n),C!==null&&(R.data=C)))),(C=FO?IO(e,n):JO(e,n))&&(R=Ds(u,"onBeforeInput"),0<R.length&&(E=new Qv("onBeforeInput","beforeinput",null,n,c),f.push({event:E,listeners:R}),E.data=C)),GE(f,e,u,n,c)}u_(f,t)})}function Ml(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ds(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=xl(e,n),i!=null&&a.unshift(Ml(e,i,r)),i=xl(e,t),i!=null&&a.push(Ml(e,i,r))),e.tag===3)return a;e=e.return}return[]}function XE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pg(e,t,n,a,i){for(var r=t._reactName,l=[];n!==null&&n!==a;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===a)break;o!==5&&o!==26&&o!==27||u===null||(s=u,i?(u=xl(n,r),u!=null&&l.unshift(Ml(n,u,s))):i||(u=xl(n,r),u!=null&&l.push(Ml(n,u,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var QE=/\r\n?/g,ZE=/\u0000|\uFFFD/g;function $g(e){return(typeof e=="string"?e:""+e).replace(QE,`
49
- `).replace(ZE,"")}function f_(e,t){return t=$g(t),$g(e)===t}function ce(e,t,n,a,i,r){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||dr(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&dr(e,""+a);break;case"className":yo(e,"class",a);break;case"tabIndex":yo(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":yo(e,n,a);break;case"style":s0(e,a,r);break;case"data":if(t!=="object"){yo(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Yo(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 r=="function"&&(n==="formAction"?(t!=="input"&&ce(e,t,"name",i.name,i,null),ce(e,t,"formEncType",i.formEncType,i,null),ce(e,t,"formMethod",i.formMethod,i,null),ce(e,t,"formTarget",i.formTarget,i,null)):(ce(e,t,"encType",i.encType,i,null),ce(e,t,"method",i.method,i,null),ce(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Yo(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=jn);break;case"onScroll":a!=null&&Q("scroll",e);break;case"onScrollEnd":a!=null&&Q("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(w(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Yo(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Q("beforetoggle",e),Q("toggle",e),$o(e,"popover",a);break;case"xlinkActuate":xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":xn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":xn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":xn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":xn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":$o(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=OO.get(n)||n,$o(e,n,a))}}function Kf(e,t,n,a,i,r){switch(n){case"style":s0(e,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(w(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"children":typeof a=="string"?dr(e,a):(typeof a=="number"||typeof a=="bigint")&&dr(e,""+a);break;case"onScroll":a!=null&&Q("scroll",e);break;case"onScrollEnd":a!=null&&Q("scrollend",e);break;case"onClick":a!=null&&(e.onclick=jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!n0.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),r=e[dt]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof a=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):$o(e,n,a)}}}function Je(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Q("error",e),Q("load",e);var a=!1,i=!1,r;for(r in n)if(n.hasOwnProperty(r)){var l=n[r];if(l!=null)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:ce(e,t,r,l,n,null)}}i&&ce(e,t,"srcSet",n.srcSet,n,null),a&&ce(e,t,"src",n.src,n,null);return;case"input":Q("invalid",e);var o=r=l=i=null,s=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var c=n[a];if(c!=null)switch(a){case"name":i=c;break;case"type":l=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(w(137,t));break;default:ce(e,t,a,c,n,null)}}r0(e,r,o,s,u,l,i,!1);return;case"select":Q("invalid",e),a=l=r=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":r=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:ce(e,t,i,o,n,null)}t=r,n=l,e.multiple=!!a,t!=null?tr(e,!!a,t,!1):n!=null&&tr(e,!!a,n,!0);return;case"textarea":Q("invalid",e),r=i=a=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":a=o;break;case"defaultValue":i=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(w(91));break;default:ce(e,t,l,o,n,null)}o0(e,a,i,r);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(a=n[s],a!=null))switch(s){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ce(e,t,s,a,n,null)}return;case"dialog":Q("beforetoggle",e),Q("toggle",e),Q("cancel",e),Q("close",e);break;case"iframe":case"object":Q("load",e);break;case"video":case"audio":for(a=0;a<Nl.length;a++)Q(Nl[a],e);break;case"image":Q("error",e),Q("load",e);break;case"details":Q("toggle",e);break;case"embed":case"source":case"link":Q("error",e),Q("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:ce(e,t,u,a,n,null)}return;default:if(Wh(t)){for(c in n)n.hasOwnProperty(c)&&(a=n[c],a!==void 0&&Kf(e,t,c,a,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(a=n[o],a!=null&&ce(e,t,o,a,n,null))}function FE(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,l=null,o=null,s=null,u=null,c=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&f!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":s=f;default:a.hasOwnProperty(h)||ce(e,t,h,null,a,f)}}for(var d in a){var h=a[d];if(f=n[d],a.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":r=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":l=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(w(137,t));break;default:h!==f&&ce(e,t,d,h,a,f)}}vf(e,l,o,s,u,c,r,i);return;case"select":h=l=o=d=null;for(r in n)if(s=n[r],n.hasOwnProperty(r)&&s!=null)switch(r){case"value":break;case"multiple":h=s;default:a.hasOwnProperty(r)||ce(e,t,r,null,a,s)}for(i in a)if(r=a[i],s=n[i],a.hasOwnProperty(i)&&(r!=null||s!=null))switch(i){case"value":d=r;break;case"defaultValue":o=r;break;case"multiple":l=r;default:r!==s&&ce(e,t,i,r,a,s)}t=o,n=l,a=h,d!=null?tr(e,!!n,d,!1):!!a!=!!n&&(t!=null?tr(e,!!n,t,!0):tr(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:ce(e,t,o,null,a,i)}for(l in a)if(i=a[l],r=n[l],a.hasOwnProperty(l)&&(i!=null||r!=null))switch(l){case"value":d=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(w(91));break;default:i!==r&&ce(e,t,l,i,a,r)}l0(e,d,h);return;case"option":for(var g in n)if(d=n[g],n.hasOwnProperty(g)&&d!=null&&!a.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:ce(e,t,g,null,a,d)}for(s in a)if(d=a[s],h=n[s],a.hasOwnProperty(s)&&d!==h&&(d!=null||h!=null))switch(s){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ce(e,t,s,d,a,h)}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 _ in n)d=n[_],n.hasOwnProperty(_)&&d!=null&&!a.hasOwnProperty(_)&&ce(e,t,_,null,a,d);for(u in a)if(d=a[u],h=n[u],a.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(w(137,t));break;default:ce(e,t,u,d,a,h)}return;default:if(Wh(t)){for(var S in n)d=n[S],n.hasOwnProperty(S)&&d!==void 0&&!a.hasOwnProperty(S)&&Kf(e,t,S,void 0,a,d);for(c in a)d=a[c],h=n[c],!a.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||Kf(e,t,c,d,a,h);return}}for(var p in n)d=n[p],n.hasOwnProperty(p)&&d!=null&&!a.hasOwnProperty(p)&&ce(e,t,p,null,a,d);for(f in a)d=a[f],h=n[f],!a.hasOwnProperty(f)||d===h||d==null&&h==null||ce(e,t,f,d,a,h)}function Yg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function IE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],r=i.transferSize,l=i.initiatorType,o=i.duration;if(r&&o&&Yg(l)){for(l=0,o=i.responseEnd,a+=1;a<n.length;a++){var s=n[a],u=s.startTime;if(u>o)break;var c=s.transferSize,f=s.initiatorType;c&&Yg(f)&&(s=s.responseEnd,l+=c*(s<o?1:(o-u)/(s-u)))}if(--a,t+=8*(r+l)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var qf=null,kf=null;function js(e){return e.nodeType===9?e:e.ownerDocument}function Gg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d_(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Xf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dc=null;function JE(){var e=window.event;return e&&e.type==="popstate"?e===Dc?!1:(Dc=e,!0):(Dc=null,!1)}var h_=typeof setTimeout=="function"?setTimeout:void 0,WE=typeof clearTimeout=="function"?clearTimeout:void 0,Kg=typeof Promise=="function"?Promise:void 0,eT=typeof queueMicrotask=="function"?queueMicrotask:typeof Kg<"u"?function(e){return Kg.resolve(null).then(e).catch(tT)}:h_;function tT(e){setTimeout(function(){throw e})}function Ma(e){return e==="head"}function qg(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),_r(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")gl(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,gl(n);for(var r=n.firstChild;r;){var l=r.nextSibling,o=r.nodeName;r[Ql]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=l}}else n==="body"&&gl(e.ownerDocument.body);n=i}while(n);_r(t)}function kg(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Qf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Qf(n),Jh(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function nT(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ql])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function aT(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gt(e.nextSibling),e===null))return null;return e}function p_(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function Zf(e){return e.data==="$?"||e.data==="$~"}function Ff(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function iT(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Gt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var If=null;function Xg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Gt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Qg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function v_(e,t,n){switch(t=js(n),e){case"html":if(e=t.documentElement,!e)throw Error(w(452));return e;case"head":if(e=t.head,!e)throw Error(w(453));return e;case"body":if(e=t.body,!e)throw Error(w(454));return e;default:throw Error(w(451))}}function gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Jh(e)}var Kt=new Map,Zg=new Set;function Ls(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Jn=le.d;le.d={f:rT,r:lT,D:oT,C:sT,L:uT,m:cT,X:dT,S:fT,M:hT};function rT(){var e=Jn.f(),t=gu();return e||t}function lT(e){var t=Cr(e);t!==null&&t.tag===5&&t.type==="form"?sb(t):Jn.r(e)}var Dr=typeof document>"u"?null:document;function g_(e,t,n){var a=Dr;if(a&&typeof t=="string"&&t){var i=Lt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Zg.has(i)||(Zg.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),Je(t,"link",e),Ge(t),a.head.appendChild(t)))}}function oT(e){Jn.D(e),g_("dns-prefetch",e,null)}function sT(e,t){Jn.C(e,t),g_("preconnect",e,t)}function uT(e,t,n){Jn.L(e,t,n);var a=Dr;if(a&&e&&t){var i='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Lt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Lt(n.imageSizes)+'"]')):i+='[href="'+Lt(e)+'"]';var r=i;switch(t){case"style":r=br(e);break;case"script":r=jr(e)}Kt.has(r)||(e=Oe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kt.set(r,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(eo(r))||t==="script"&&a.querySelector(to(r))||(t=a.createElement("link"),Je(t,"link",e),Ge(t),a.head.appendChild(t)))}}function cT(e,t){Jn.m(e,t);var n=Dr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Lt(a)+'"][href="'+Lt(e)+'"]',r=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=jr(e)}if(!Kt.has(r)&&(e=Oe({rel:"modulepreload",href:e},t),Kt.set(r,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(to(r)))return}a=n.createElement("link"),Je(a,"link",e),Ge(a),n.head.appendChild(a)}}}function fT(e,t,n){Jn.S(e,t,n);var a=Dr;if(a&&e){var i=er(a).hoistableStyles,r=br(e);t=t||"default";var l=i.get(r);if(!l){var o={loading:0,preload:null};if(l=a.querySelector(eo(r)))o.loading=5;else{e=Oe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kt.get(r))&&Bp(e,n);var s=l=a.createElement("link");Ge(s),Je(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Jo(l,t,a)}l={type:"stylesheet",instance:l,count:1,state:o},i.set(r,l)}}}function dT(e,t){Jn.X(e,t);var n=Dr;if(n&&e){var a=er(n).hoistableScripts,i=jr(e),r=a.get(i);r||(r=n.querySelector(to(i)),r||(e=Oe({src:e,async:!0},t),(t=Kt.get(i))&&Hp(e,t),r=n.createElement("script"),Ge(r),Je(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function hT(e,t){Jn.M(e,t);var n=Dr;if(n&&e){var a=er(n).hoistableScripts,i=jr(e),r=a.get(i);r||(r=n.querySelector(to(i)),r||(e=Oe({src:e,async:!0,type:"module"},t),(t=Kt.get(i))&&Hp(e,t),r=n.createElement("script"),Ge(r),Je(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function Fg(e,t,n,a){var i=(i=ha.current)?Ls(i):null;if(!i)throw Error(w(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=br(n.href),n=er(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=br(n.href);var r=er(i).hoistableStyles,l=r.get(e);if(l||(i=i.ownerDocument||i,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,l),(r=i.querySelector(eo(e)))&&!r._p&&(l.instance=r,l.state.loading=5),Kt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Kt.set(e,n),r||pT(i,e,n,l.state))),t&&a===null)throw Error(w(528,""));return l}if(t&&a!==null)throw Error(w(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=jr(n),n=er(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(w(444,e))}}function br(e){return'href="'+Lt(e)+'"'}function eo(e){return'link[rel="stylesheet"]['+e+"]"}function m_(e){return Oe({},e,{"data-precedence":e.precedence,precedence:null})}function pT(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Je(t,"link",n),Ge(t),e.head.appendChild(t))}function jr(e){return'[src="'+Lt(e)+'"]'}function to(e){return"script[async]"+e}function Ig(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Lt(n.href)+'"]');if(a)return t.instance=a,Ge(a),a;var i=Oe({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ge(a),Je(a,"style",i),Jo(a,n.precedence,e),t.instance=a;case"stylesheet":i=br(n.href);var r=e.querySelector(eo(i));if(r)return t.state.loading|=4,t.instance=r,Ge(r),r;a=m_(n),(i=Kt.get(i))&&Bp(a,i),r=(e.ownerDocument||e).createElement("link"),Ge(r);var l=r;return l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),Je(r,"link",a),t.state.loading|=4,Jo(r,n.precedence,e),t.instance=r;case"script":return r=jr(n.src),(i=e.querySelector(to(r)))?(t.instance=i,Ge(i),i):(a=n,(i=Kt.get(r))&&(a=Oe({},n),Hp(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Ge(i),Je(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(w(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,Jo(a,n.precedence,e));return t.instance}function Jo(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,r=i,l=0;l<a.length;l++){var o=a[l];if(o.dataset.precedence===t)r=o;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Bp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wo=null;function Jg(e,t,n){if(Wo===null){var a=new Map,i=Wo=new Map;i.set(n,a)}else i=Wo,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var r=n[i];if(!(r[Ql]||r[Qe]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var l=r.getAttribute(t)||"";l=e+l;var o=a.get(l);o?o.push(r):a.set(l,[r])}}return a}function Wg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function vT(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function y_(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function gT(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var i=br(a.href),r=t.querySelector(eo(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=r,Ge(r);return}r=t.ownerDocument||t,a=m_(a),(i=Kt.get(i))&&Bp(a,i),r=r.createElement("link"),Ge(r);var l=r;l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),Je(r,"link",a),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=zs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var jc=0;function mT(e,t){return e.stylesheets&&e.count===0&&es(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&es(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&jc===0&&(jc=62500*IE());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&es(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>jc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function zs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Us=null;function es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Us=new Map,t.forEach(yT,e),Us=null,zs.call(e))}function yT(e,t){if(!(t.state.loading&4)){var n=Us.get(e);if(n)var a=n.get(null);else{n=new Map,Us.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var l=i[r];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),a=l)}a&&n.set(null,a)}i=t.instance,l=i.getAttribute("data-precedence"),r=n.get(l)||a,r===a&&n.set(null,i),n.set(l,i),this.count++,a=zs.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Dl={$$typeof:Dn,Provider:null,Consumer:null,_currentValue:ka,_currentValue2:ka,_threadCount:0};function bT(e,t,n,a,i,r,l,o,s){this.tag=1,this.containerInfo=e,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=nc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nc(0),this.hiddenUpdates=nc(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function b_(e,t,n,a,i,r,l,o,s,u,c,f){return e=new bT(e,t,n,l,s,u,c,f,o),t=1,r===!0&&(t|=24),r=yt(3,null,null,t),e.current=r,r.stateNode=e,t=cp(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:t},hp(r),e}function __(e){return e?(e=Xi,e):Xi}function S_(e,t,n,a,i,r){i=__(i),a.context===null?a.context=i:a.pendingContext=i,a=va(t),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=ga(e,a,t),n!==null&&(ct(n,e,t),sl(n,e,t))}function em(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vp(e,t){em(e,t),(e=e.alternate)&&em(e,t)}function x_(e){if(e.tag===13||e.tag===31){var t=vi(e,67108864);t!==null&&ct(t,e,67108864),Vp(e,67108864)}}function tm(e){if(e.tag===13||e.tag===31){var t=Tt();t=Fh(t);var n=vi(e,t);n!==null&&ct(n,e,t),Vp(e,t)}}var Bs=!0;function _T(e,t,n,a){var i=Y.T;Y.T=null;var r=le.p;try{le.p=2,Pp(e,t,n,a)}finally{le.p=r,Y.T=i}}function ST(e,t,n,a){var i=Y.T;Y.T=null;var r=le.p;try{le.p=8,Pp(e,t,n,a)}finally{le.p=r,Y.T=i}}function Pp(e,t,n,a){if(Bs){var i=Jf(a);if(i===null)Mc(e,t,a,Hs,n),nm(e,a);else if(OT(i,e,t,n,a))a.stopPropagation();else if(nm(e,a),t&4&&-1<xT.indexOf(e)){for(;i!==null;){var r=Cr(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var l=Ya(r.pendingLanes);if(l!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;l;){var s=1<<31-Et(l);o.entanglements[1]|=s,l&=~s}_n(r),!(re&6)&&(ws=xt()+500,Wl(0))}}break;case 31:case 13:o=vi(r,2),o!==null&&ct(o,r,2),gu(),Vp(r,2)}if(r=Jf(a),r===null&&Mc(e,t,a,Hs,n),r===i)break;i=r}i!==null&&a.stopPropagation()}else Mc(e,t,a,null,n)}}function Jf(e){return e=ep(e),$p(e)}var Hs=null;function $p(e){if(Hs=null,e=$i(e),e!==null){var t=Kl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Yy(t),e!==null)return e;e=null}else if(n===31){if(e=Gy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Hs=e,null}function O_(e){switch(e){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(oO()){case Xy:return 2;case Qy:return 8;case hs:case sO:return 32;case Zy:return 268435456;default:return 32}default:return 32}}var Wf=!1,ba=null,_a=null,Sa=null,jl=new Map,Ll=new Map,la=[],xT="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 nm(e,t){switch(e){case"focusin":case"focusout":ba=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ll.delete(t.pointerId)}}function Zr(e,t,n,a,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[i]},t!==null&&(t=Cr(t),t!==null&&x_(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function OT(e,t,n,a,i){switch(t){case"focusin":return ba=Zr(ba,e,t,n,a,i),!0;case"dragenter":return _a=Zr(_a,e,t,n,a,i),!0;case"mouseover":return Sa=Zr(Sa,e,t,n,a,i),!0;case"pointerover":var r=i.pointerId;return jl.set(r,Zr(jl.get(r)||null,e,t,n,a,i)),!0;case"gotpointercapture":return r=i.pointerId,Ll.set(r,Zr(Ll.get(r)||null,e,t,n,a,i)),!0}return!1}function E_(e){var t=$i(e.target);if(t!==null){var n=Kl(t);if(n!==null){if(t=n.tag,t===13){if(t=Yy(n),t!==null){e.blockedOn=t,Pv(e.priority,function(){tm(n)});return}}else if(t===31){if(t=Gy(n),t!==null){e.blockedOn=t,Pv(e.priority,function(){tm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ts(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jf(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);mf=a,n.target.dispatchEvent(a),mf=null}else return t=Cr(n),t!==null&&x_(t),e.blockedOn=n,!1;t.shift()}return!0}function am(e,t,n){ts(e)&&n.delete(t)}function ET(){Wf=!1,ba!==null&&ts(ba)&&(ba=null),_a!==null&&ts(_a)&&(_a=null),Sa!==null&&ts(Sa)&&(Sa=null),jl.forEach(am),Ll.forEach(am)}function Ao(e,t){e.blockedOn===t&&(e.blockedOn=null,Wf||(Wf=!0,$e.unstable_scheduleCallback($e.unstable_NormalPriority,ET)))}var wo=null;function im(e){wo!==e&&(wo=e,$e.unstable_scheduleCallback($e.unstable_NormalPriority,function(){wo===e&&(wo=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if($p(a||n)===null)continue;break}var r=Cr(n);r!==null&&(e.splice(t,3),t-=3,jf(r,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function _r(e){function t(s){return Ao(s,e)}ba!==null&&Ao(ba,e),_a!==null&&Ao(_a,e),Sa!==null&&Ao(Sa,e),jl.forEach(t),Ll.forEach(t);for(var n=0;n<la.length;n++){var a=la[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<la.length&&(n=la[0],n.blockedOn===null);)E_(n),n.blockedOn===null&&la.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],r=n[a+1],l=i[dt]||null;if(typeof r=="function")l||im(n);else if(l){var o=null;if(r&&r.hasAttribute("formAction")){if(i=r,l=r[dt]||null)o=l.formAction;else if($p(i)!==null)continue}else o=l.action;typeof o=="function"?n[a+1]=o:(n.splice(a,3),a-=3),im(n)}}}function T_(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(l){return i=l})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Yp(e){this._internalRoot=e}bu.prototype.render=Yp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));var n=t.current,a=Tt();S_(n,a,e,t,null,null)};bu.prototype.unmount=Yp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;S_(e.current,2,null,e,null,null),gu(),t[wr]=null}};function bu(e){this._internalRoot=e}bu.prototype.unstable_scheduleHydration=function(e){if(e){var t=e0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<la.length&&t!==0&&t<la[n].priority;n++);la.splice(n,0,e),n===0&&E_(e)}};var rm=Py.version;if(rm!=="19.2.8")throw Error(w(527,rm,"19.2.8"));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=eO(t),e=e!==null?Ky(e):null,e=e===null?null:e.stateNode,e};var TT={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Co.isDisabled&&Co.supportsFiber)try{ql=Co.inject(TT),Ot=Co}catch{}}nu.createRoot=function(e,t){if(!$y(e))throw Error(w(299));var n=!1,a="",i=gb,r=mb,l=yb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=b_(e,1,!1,null,null,n,a,null,i,r,l,T_),e[wr]=t.current,Up(e),new Yp(t)};nu.hydrateRoot=function(e,t,n){if(!$y(e))throw Error(w(299));var a=!1,i="",r=gb,l=mb,o=yb,s=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=b_(e,1,!0,t,n??null,a,i,s,r,l,o,T_),t.context=__(null),n=t.current,a=Tt(),a=Fh(a),i=va(a),i.callback=null,ga(n,i,a),n=a,t.current.lanes=n,Xl(t,n),_n(t),e[wr]=t.current,Up(e),new bu(t)};nu.version="19.2.8";function A_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A_)}catch(e){console.error(e)}}A_(),wy.exports=nu;var AT=wy.exports;function te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var wT={};function _u(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:wT}var w_=Object.assign,Vs=Object.getOwnPropertyDescriptor,pn=Object.defineProperty,Su=Object.prototype,ed=[];Object.freeze(ed);var C_={};Object.freeze(C_);var CT=typeof Proxy<"u",RT=Object.toString();function R_(){CT||te("Proxy not available")}function N_(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Ii=function(){};function It(e){return typeof e=="function"}function ai(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function xu(e){return e!==null&&typeof e=="object"}function Qn(e){if(!xu(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===RT}function M_(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function no(e,t,n){pn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function D_(e,t,n){pn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function mi(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(a){return xu(a)&&a[n]===!0}}function Lr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function NT(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),a=Object.getPrototypeOf(n);return a===null}function Nn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var j_=typeof Object.getOwnPropertySymbols<"u";function MT(e){var t=Object.keys(e);if(!j_)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(a){return Su.propertyIsEnumerable.call(e,a)})):t}var Sr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:j_?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function L_(e){return e===null?null:typeof e=="object"?""+e:e}function Hn(e,t){return Su.hasOwnProperty.call(e,t)}var DT=Object.getOwnPropertyDescriptors||function(t){var n={};return Sr(t).forEach(function(a){n[a]=Vs(t,a)}),n};function bt(e,t){return!!(e&t)}function _t(e,t,n){return n?e|=t:e&=~t,e}function lm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function jT(e,t,n){if(z_())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var i=new(e.bind.apply(e,a));return n&&zl(i,n.prototype),i}function LT(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,BT(a.key),a)}}function zr(e,t,n){return t&&LT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ji(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=HT(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
50
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ii.apply(null,arguments)}function td(e){return td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},td(e)}function Gp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zl(e,t)}function zT(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function z_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z_=function(){return!!e})()}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},zl(e,t)}function UT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function BT(e){var t=UT(e,"string");return typeof t=="symbol"?t:t+""}function HT(e,t){if(e){if(typeof e=="string")return lm(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lm(e,t):void 0}}function nd(e){var t=typeof Map=="function"?new Map:void 0;return nd=function(n){if(n===null||!zT(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return jT(n,arguments,td(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),zl(a,n)},nd(e)}var cn=Symbol("mobx-stored-annotations");function vn(e){function t(n,a){if(io(a))return e.decorate_20223_(n,a);ao(n,a,e)}return Object.assign(t,e)}function ao(e,t,n){Hn(e,cn)||no(e,cn,ii({},e[cn])),qT(n)||(e[cn][t]=n)}function VT(e){return Hn(e,cn)||no(e,cn,ii({},e[cn])),e[cn]}function io(e){return typeof e=="object"&&typeof e.kind=="string"}var $=Symbol("mobx administration"),Da=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ae.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(a){return a()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(a){return a()})},t.reportObserved=function(){return I_(this)},t.reportChanged=function(){Pt(),J_(this),$t()},t.toString=function(){return this.name_},zr(e,[{key:"isBeingObserved",get:function(){return bt(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=_t(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return bt(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=_t(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return bt(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=_t(this.flags_,e.diffValueMask_,a===1)}}])}();Da.isBeingObservedMask_=1;Da.isPendingUnobservationMask_=2;Da.diffValueMask_=4;var Kp=mi("Atom",Da);function U_(e,t,n){t===void 0&&(t=Ii),n===void 0&&(n=Ii);var a=new Da(e);return t!==Ii&&ZA(a,t),n!==Ii&&aS(a,n),a}function PT(e,t){return vS(e,t)}function $T(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ps={structural:PT,default:$T};function ri(e,t,n){return oS(e)?e:Array.isArray(e)?Fe.array(e,{name:n}):Qn(e)?Fe.object(e,void 0,{name:n}):Lr(e)?Fe.map(e,{name:n}):Nn(e)?Fe.set(e,{name:n}):typeof e=="function"&&!xr(e)&&!Bl(e)?M_(e)?Or(e):Ul(n,e):e}function YT(e,t,n){if(e==null||Cu(e)||wu(e)||bi(e)||rn(e))return e;if(Array.isArray(e))return Fe.array(e,{name:n,deep:!1});if(Qn(e))return Fe.object(e,void 0,{name:n,deep:!1});if(Lr(e))return Fe.map(e,{name:n,deep:!1});if(Nn(e))return Fe.set(e,{name:n,deep:!1})}function Ou(e){return e}function GT(e,t){return vS(e,t)?t:e}var KT="override";function qT(e){return e.annotationType_===KT}function ro(e,t){return{annotationType_:e,options_:t,make_:kT,extend_:XT,decorate_20223_:QT}}function kT(e,t,n,a){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(a===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(xr(n.value))return 1;var r=B_(e,this,t,n,!1);return pn(a,t,r),2}function XT(e,t,n,a){var i=B_(e,this,t,n);return e.defineProperty_(t,i,a)}function QT(e,t){var n=t.kind,a=t.name,i=t.addInitializer,r=this,l=function(u){var c,f,d,h;return li((c=(f=r.options_)==null?void 0:f.name)!=null?c:a.toString(),u,(d=(h=r.options_)==null?void 0:h.autoAction)!=null?d:!1)};if(n=="field")return function(s){var u,c=s;return xr(c)||(c=l(c)),(u=r.options_)!=null&&u.bound&&(c=c.bind(this),c.isMobxAction=!0),c};if(n=="method"){var o;return xr(e)||(e=l(e)),(o=this.options_)!=null&&o.bound&&i(function(){var s=this,u=s[a].bind(s);u.isMobxAction=!0,s[a]=u}),e}te("Cannot apply '"+r.annotationType_+"' to '"+String(a)+"' (kind: "+n+"):"+(`
51
- '`+r.annotationType_+"' can only be used on properties with a function value."))}function ZT(e,t,n,a){t.annotationType_,a.value}function B_(e,t,n,a,i){var r,l,o,s,u,c,f;i===void 0&&(i=z.safeDescriptors),ZT(e,t,n,a);var d=a.value;if((r=t.options_)!=null&&r.bound){var h;d=d.bind((h=e.proxy_)!=null?h:e.target_)}return{value:li((l=(o=t.options_)==null?void 0:o.name)!=null?l:n.toString(),d,(s=(u=t.options_)==null?void 0:u.autoAction)!=null?s:!1,(c=t.options_)!=null&&c.bound?(f=e.proxy_)!=null?f:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function H_(e,t){return{annotationType_:e,options_:t,make_:FT,extend_:IT,decorate_20223_:JT}}function FT(e,t,n,a){var i;if(a===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!Hn(e.target_,t)||!Bl(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(Bl(n.value))return 1;var r=V_(e,this,t,n,!1,!1);return pn(a,t,r),2}function IT(e,t,n,a){var i,r=V_(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,r,a)}function JT(e,t){var n,a=t.name,i=t.addInitializer;return Bl(e)||(e=Or(e)),(n=this.options_)!=null&&n.bound&&i(function(){var r=this,l=r[a].bind(r);l.isMobXFlow=!0,r[a]=l}),e}function WT(e,t,n,a){t.annotationType_,a.value}function V_(e,t,n,a,i,r){r===void 0&&(r=z.safeDescriptors),WT(e,t,n,a);var l=a.value;if(Bl(l)||(l=Or(l)),i){var o;l=l.bind((o=e.proxy_)!=null?o:e.target_),l.isMobXFlow=!0}return{value:l,configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function qp(e,t){return{annotationType_:e,options_:t,make_:eA,extend_:tA,decorate_20223_:nA}}function eA(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function tA(e,t,n,a){return aA(e,this,t,n),e.defineComputedProperty_(t,ii({},this.options_,{get:n.get,set:n.set}),a)}function nA(e,t){var n=this,a=t.name,i=t.addInitializer,r;function l(o,s){var u=ii({},n.options_,{get:e,context:o});return u.name||(u.name="ObservableObject."+a.toString()),new At(u)}return i(function(){var o,s=_i(this)[$],u=this,c=s.values_.get(a);c instanceof At&&c.derivation!==e&&s.values_.delete(a),((o=s.lazyComputedKeys_)!=null?o:s.lazyComputedKeys_=new Map).set(a,function(){return l(u)})}),function(){var o=this[$],s=o.values_.get(a);if(s instanceof At&&s.derivation!==e){var u,c=(u=r)==null?void 0:u.get(this);if(!c){var f;c=l(this),((f=r)!=null?f:r=new WeakMap).set(this,c)}return c.get()}return o.getObservablePropValue_(a)}}function aA(e,t,n,a){t.annotationType_,a.get}function Eu(e,t){return{annotationType_:e,options_:t,make_:iA,extend_:rA,decorate_20223_:lA}}function iA(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function rA(e,t,n,a){var i,r;return oA(e,this),e.defineObservableProperty_(t,n.value,(i=(r=this.options_)==null?void 0:r.enhancer)!=null?i:ri,a)}function lA(e,t){var n=this,a=t.kind,i=t.name;if(a!=="accessor")return;function r(l,o){var s,u=_i(l)[$];return((s=u.lazyObservableKeys_)!=null?s:u.lazyObservableKeys_=new Map).set(i,function(){var c,f;return new Ia(o,(c=(f=n.options_)==null?void 0:f.enhancer)!=null?c:ri,"ObservableObject."+i.toString(),!1)}),u}return{get:function(){var o,s=(o=this[$])!=null?o:r(this,e.get.call(this));return s.getObservablePropValue_(i)},set:function(o){var s,u=(s=this[$])!=null?s:r(this,o);return u.setObservablePropValue_(i,o)},init:function(o){return r(this,o),o}}}function oA(e,t,n,a){t.annotationType_}var sA="true",uA=P_();function P_(e){return{annotationType_:sA,options_:e,make_:cA,extend_:fA,decorate_20223_:dA}}function cA(e,t,n,a){var i,r;if(n.get)return Tu.make_(e,t,n,a);if(n.set){var l=xr(n.set)?n.set:li(t.toString(),n.set);return a===e.target_?e.defineProperty_(t,{configurable:z.safeDescriptors?e.isPlainObject_:!0,set:l})===null?0:2:(pn(a,t,{configurable:!0,set:l}),2)}if(a!==e.target_&&typeof n.value=="function"){var o;if(M_(n.value)){var s,u=(s=this.options_)!=null&&s.autoBind?Or.bound:Or;return u.make_(e,t,n,a)}var c=(o=this.options_)!=null&&o.autoBind?Ul.bound:Ul;return c.make_(e,t,n,a)}var f=((i=this.options_)==null?void 0:i.deep)===!1?Fe.ref:Fe;if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return f.make_(e,t,n,a)}function fA(e,t,n,a){var i,r;if(n.get)return Tu.extend_(e,t,n,a);if(n.set)return e.defineProperty_(t,{configurable:z.safeDescriptors?e.isPlainObject_:!0,set:li(t.toString(),n.set)},a);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var l;n.value=n.value.bind((l=e.proxy_)!=null?l:e.target_)}var o=((r=this.options_)==null?void 0:r.deep)===!1?Fe.ref:Fe;return o.extend_(e,t,n,a)}function dA(e,t){te("'"+this.annotationType_+"' cannot be used as a decorator")}var hA="observable",pA="observable.ref",vA="observable.shallow",gA="observable.struct",$_={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze($_);function Ro(e){return e||$_}var ad=Eu(hA),mA=Eu(pA,{enhancer:Ou}),yA=Eu(vA,{enhancer:YT}),bA=Eu(gA,{enhancer:GT}),Y_=vn(ad);function No(e){return e.deep===!0?ri:e.deep===!1?Ou:SA(e.defaultDecorator)}function _A(e){var t;return e?(t=e.defaultDecorator)!=null?t:P_(e):void 0}function SA(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:ri}function G_(e,t,n){if(io(t))return ad.decorate_20223_(e,t);if(ai(t)){ao(e,t,ad);return}return oS(e)?e:Qn(e)?Fe.object(e,t,n):Array.isArray(e)?Fe.array(e,t):Lr(e)?Fe.map(e,t):Nn(e)?Fe.set(e,t):typeof e=="object"&&e!==null?e:Fe.box(e,t)}w_(G_,Y_);var xA={box:function(t,n){var a=Ro(n);return new Ia(t,No(a),a.name,!0,a.equals)},array:function(t,n){var a=Ro(n);return(z.useProxies===!1||a.proxy===!1?Sw:fw)(t,No(a),a.name)},map:function(t,n){var a=Ro(n);return new uS(t,No(a),a.name)},set:function(t,n){var a=Ro(n);return new cS(t,No(a),a.name)},object:function(t,n,a){return ja(function(){return rS(z.useProxies===!1||(a==null?void 0:a.proxy)===!1?_i({},a):lw({},a),t,n)})},ref:vn(mA),shallow:vn(yA),deep:Y_,struct:vn(bA)},Fe=w_(G_,xA),K_="computed",OA="computed.struct",id=qp(K_),EA=qp(OA,{equals:Ps.structural}),Tu=function(t,n){if(io(n))return id.decorate_20223_(t,n);if(ai(n))return ao(t,n,id);if(Qn(t))return vn(qp(K_,t));var a=Qn(n)?n:{};return a.get=t,a.name||(a.name=t.name||""),new At(a)};Object.assign(Tu,id);Tu.struct=vn(EA);var om,sm,$s=0,TA=1,AA=(om=(sm=Vs(function(){},"name"))==null?void 0:sm.configurable)!=null?om:!1,um={value:"action",configurable:!0,writable:!1,enumerable:!1};function li(e,t,n,a){n===void 0&&(n=!1);function i(){return wA(e,n,t,a||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},AA&&(um.value=e,pn(i,"name",um)),i}function wA(e,t,n,a,i){var r=CA(e,t);try{return n.apply(a,i)}catch(l){throw r.error_=l,l}finally{RA(r)}}function CA(e,t,n,a){var i=!1,r=0,l=z.trackingDerivation,o=!t||!l;Pt();var s=z.allowStateChanges;o&&(yi(),s=kp(!0));var u=Qp(!0),c={runAsAction_:o,prevDerivation_:l,prevAllowStateChanges_:s,prevAllowStateReads_:u,notifySpy_:i,startTime_:r,actionId_:TA++,parentActionId_:$s};return $s=c.actionId_,c}function RA(e){$s!==e.actionId_&&te(30),$s=e.parentActionId_,e.error_!==void 0&&(z.suppressReactionErrors=!0),Xp(e.prevAllowStateChanges_),ml(e.prevAllowStateReads_),$t(),e.runAsAction_&&Vn(e.prevDerivation_),z.suppressReactionErrors=!1}function kp(e){var t=z.allowStateChanges;return z.allowStateChanges=e,t}function Xp(e){z.allowStateChanges=e}var Ia=function(e){function t(a,i,r,l,o){var s;return r===void 0&&(r="ObservableValue"),o===void 0&&(o=Ps.default),s=e.call(this,r)||this,s.enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=i,s.name_=r,s.equals=o,s.value_=i(a,void 0,r),s}Gp(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==z.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(Bt(this)){var r=Ht(this,{object:this,type:gn,newValue:i});if(!r)return z.UNCHANGED;i=r.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?z.UNCHANGED:i},n.setNewValue_=function(i){var r=this.value_;this.value_=i,this.reportChanged(),Zt(this)&&Ft(this,{type:gn,object:this,newValue:i,oldValue:r})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return lo(this,i)},n.observe_=function(i,r){return r&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:gn,newValue:this.value_,oldValue:void 0}),oo(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return L_(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Da),At=function(){function e(n){this.dependenciesState_=ae.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ae.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Gs(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ys.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||te(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=li("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Ps.structural:Ps.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){LA(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(a){return a()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(a){return a()})},t.get=function(){if(this.isComputing&&te(32,this.name_,this.derivation),z.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)rd(this)&&(this.warnAboutUntrackedRead_(),Pt(),this.value_=this.computeValue_(!1),$t());else if(I_(this),rd(this)){var a=z.trackingContext;this.keepAlive_&&!a&&(z.trackingContext=this),this.trackAndCompute()&&jA(this),z.trackingContext=a}var i=this.value_;if(ns(i))throw i.cause;return i},t.set=function(a){if(this.setter_){this.isRunningSetter&&te(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,a)}finally{this.isRunningSetter=!1}}else te(34,this.name_)},t.trackAndCompute=function(){var a=this.value_,i=this.dependenciesState_===ae.NOT_TRACKING_,r=this.computeValue_(!0),l=i||ns(a)||ns(r)||!this.equals_(a,r);return l&&(this.value_=r),l},t.computeValue_=function(a){this.isComputing=!0;var i=kp(!1),r;if(a)r=q_(this,this.derivation,this.scope_);else if(z.disableErrorBoundaries===!0)r=this.derivation.call(this.scope_);else try{r=this.derivation.call(this.scope_)}catch(l){r=new Gs(l)}return Xp(i),this.isComputing=!1,r},t.suspend_=function(){this.keepAlive_||(ld(this),this.value_=void 0)},t.observe_=function(a,i){var r=this,l=!0,o=void 0;return KA(function(){var s=r.get();if(!l||i){var u=yi();a({observableKind:"computed",debugObjectName:r.name_,type:gn,object:r,newValue:s,oldValue:o}),Vn(u)}l=!1,o=s})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return L_(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},zr(e,[{key:"isComputing",get:function(){return bt(this.flags_,e.isComputingMask_)},set:function(a){this.flags_=_t(this.flags_,e.isComputingMask_,a)}},{key:"isRunningSetter",get:function(){return bt(this.flags_,e.isRunningSetterMask_)},set:function(a){this.flags_=_t(this.flags_,e.isRunningSetterMask_,a)}},{key:"isBeingObserved",get:function(){return bt(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=_t(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return bt(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=_t(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return bt(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=_t(this.flags_,e.diffValueMask_,a===1)}}])}();At.isComputingMask_=1;At.isRunningSetterMask_=2;At.isBeingObservedMask_=4;At.isPendingUnobservationMask_=8;At.diffValueMask_=16;var Au=mi("ComputedValue",At),ae;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ae||(ae={}));var Ys;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Ys||(Ys={}));var Gs=function(t){this.cause=void 0,this.cause=t};function ns(e){return e instanceof Gs}function rd(e){switch(e.dependenciesState_){case ae.UP_TO_DATE_:return!1;case ae.NOT_TRACKING_:case ae.STALE_:return!0;case ae.POSSIBLY_STALE_:{for(var t=Qp(!0),n=yi(),a=e.observing_,i=a.length,r=0;r<i;r++){var l=a[r];if(Au(l)){if(z.disableErrorBoundaries)l.get();else try{l.get()}catch{return Vn(n),ml(t),!0}if(e.dependenciesState_===ae.STALE_)return Vn(n),ml(t),!0}}return X_(e),Vn(n),ml(t),!1}}}function q_(e,t,n){var a=Qp(!0);X_(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++z.runId;var i=z.trackingDerivation;z.trackingDerivation=e,z.inBatch++;var r;if(z.disableErrorBoundaries===!0)r=t.call(n);else try{r=t.call(n)}catch(l){r=new Gs(l)}return z.inBatch--,z.trackingDerivation=i,NA(e),ml(a),r}function NA(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,a=ae.UP_TO_DATE_,i=0,r=e.unboundDepsCount_,l=0;l<r;l++){var o=n[l];o.diffValue===0&&(o.diffValue=1,i!==l&&(n[i]=o),i++),o.dependenciesState_>a&&(a=o.dependenciesState_)}for(n.length=i,e.newObserving_=null,r=t.length;r--;){var s=t[r];s.diffValue===0&&Z_(s,e),s.diffValue=0}for(;i--;){var u=n[i];u.diffValue===1&&(u.diffValue=0,DA(u,e))}a!==ae.UP_TO_DATE_&&(e.dependenciesState_=a,e.onBecomeStale_())}function ld(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Z_(t[n],e);e.dependenciesState_=ae.NOT_TRACKING_}function k_(e){var t=yi();try{return e()}finally{Vn(t)}}function yi(){var e=z.trackingDerivation;return z.trackingDerivation=null,e}function Vn(e){z.trackingDerivation=e}function Qp(e){var t=z.allowStateReads;return z.allowStateReads=e,t}function ml(e){z.allowStateReads=e}function X_(e){if(e.dependenciesState_!==ae.UP_TO_DATE_){e.dependenciesState_=ae.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ae.UP_TO_DATE_}}var as=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},is=!0,Q_=!1,z=function(){var e=_u();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(is=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new as().version&&(is=!1),is?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new as):(setTimeout(function(){Q_||te(35)},1),new as)}();function MA(){if((z.pendingReactions.length||z.inBatch||z.isRunningReactions)&&te(36),Q_=!0,is){var e=_u();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),z=new as}}function DA(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Z_(e,t){e.observers_.delete(t),e.observers_.size===0&&F_(e)}function F_(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,z.pendingUnobservations.push(e))}function Pt(){z.inBatch++}function $t(){if(--z.inBatch===0){W_();for(var e=z.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof At&&n.suspend_())}z.pendingUnobservations=[]}}function I_(e){var t=z.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&z.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&z.inBatch>0&&F_(e),!1)}function J_(e){e.lowestObserverState_!==ae.STALE_&&(e.lowestObserverState_=ae.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ae.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=ae.STALE_}))}function jA(e){e.lowestObserverState_!==ae.STALE_&&(e.lowestObserverState_=ae.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ae.POSSIBLY_STALE_?t.dependenciesState_=ae.STALE_:t.dependenciesState_===ae.UP_TO_DATE_&&(e.lowestObserverState_=ae.UP_TO_DATE_)}))}function LA(e){e.lowestObserverState_===ae.UP_TO_DATE_&&(e.lowestObserverState_=ae.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ae.UP_TO_DATE_&&(t.dependenciesState_=ae.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Zn=function(){function e(n,a,i,r){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ae.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Ys.NONE,this.name_=n,this.onInvalidate_=a,this.errorHandler_=i,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,z.pendingReactions.push(this),W_())},t.runReaction_=function(){if(!this.isDisposed){Pt(),this.isScheduled=!1;var a=z.trackingContext;if(z.trackingContext=this,rd(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}z.trackingContext=a,$t()}},t.track=function(a){if(!this.isDisposed){Pt(),this.isRunning=!0;var i=z.trackingContext;z.trackingContext=this;var r=q_(this,a,void 0);z.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ld(this),ns(r)&&this.reportExceptionInDerivation_(r.cause),$t()}},t.reportExceptionInDerivation_=function(a){var i=this;if(this.errorHandler_){this.errorHandler_(a,this);return}if(z.disableErrorBoundaries)throw a;var r="[mobx] uncaught error in '"+this+"'";z.suppressReactionErrors||console.error(r,a),z.globalReactionErrorHandlers.forEach(function(l){return l(a,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Pt(),ld(this),$t()))},t.getDisposer_=function(a){var i=this,r=function l(){i.dispose(),a==null||a.removeEventListener==null||a.removeEventListener("abort",l)};return a==null||a.addEventListener==null||a.addEventListener("abort",r),r[$]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(r[Symbol.dispose]=r),r},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(a){},zr(e,[{key:"isDisposed",get:function(){return bt(this.flags_,e.isDisposedMask_)},set:function(a){this.flags_=_t(this.flags_,e.isDisposedMask_,a)}},{key:"isScheduled",get:function(){return bt(this.flags_,e.isScheduledMask_)},set:function(a){this.flags_=_t(this.flags_,e.isScheduledMask_,a)}},{key:"isTrackPending",get:function(){return bt(this.flags_,e.isTrackPendingMask_)},set:function(a){this.flags_=_t(this.flags_,e.isTrackPendingMask_,a)}},{key:"isRunning",get:function(){return bt(this.flags_,e.isRunningMask_)},set:function(a){this.flags_=_t(this.flags_,e.isRunningMask_,a)}},{key:"diffValue",get:function(){return bt(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=_t(this.flags_,e.diffValueMask_,a===1)}}])}();Zn.isDisposedMask_=1;Zn.isScheduledMask_=2;Zn.isTrackPendingMask_=4;Zn.isRunningMask_=8;Zn.diffValueMask_=16;var zA=100,od=function(t){return t()};function W_(){z.inBatch>0||z.isRunningReactions||od(UA)}function UA(){z.isRunningReactions=!0;for(var e=z.pendingReactions,t=0;e.length>0;){++t===zA&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),a=0,i=n.length;a<i;a++)n[a].runReaction_()}z.isRunningReactions=!1}var Ks=mi("Reaction",Zn);function BA(e){var t=od;od=function(a){return e(function(){return t(a)})}}function yl(){return!1}function HA(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var eS="action",VA="action.bound",tS="autoAction",PA="autoAction.bound",$A="<unnamed action>",sd=ro(eS),YA=ro(VA,{bound:!0}),ud=ro(tS,{autoAction:!0}),GA=ro(PA,{autoAction:!0,bound:!0});function nS(e){var t=function(a,i){if(It(a))return li(a.name||$A,a,e);if(It(i))return li(a,i,e);if(io(i))return(e?ud:sd).decorate_20223_(a,i);if(ai(i))return ao(a,i,e?ud:sd);if(ai(a))return vn(ro(e?tS:eS,{name:a,autoAction:e}))};return t}var Wi=nS(!1);Object.assign(Wi,sd);var Ul=nS(!0);Object.assign(Ul,ud);Wi.bound=vn(YA);Ul.bound=vn(GA);function xr(e){return It(e)&&e.isMobxAction===!0}function KA(e,t){var n,a,i,r;t===void 0&&(t=C_);var l=(n=(a=t)==null?void 0:a.name)!=null?n:"Autorun",o=!t.scheduler&&!t.delay,s;if(o)s=new Zn(l,function(){this.track(f)},t.onError,t.requiresObservable);else{var u=kA(t),c=!1;s=new Zn(l,function(){c||(c=!0,u(function(){c=!1,s.isDisposed||s.track(f)}))},t.onError,t.requiresObservable)}function f(){e(s)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||s.schedule_(),s.getDisposer_((r=t)==null?void 0:r.signal)}var qA=function(t){return t()};function kA(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:qA}var XA="onBO",QA="onBUO";function ZA(e,t,n){return iS(XA,e,t,n)}function aS(e,t,n){return iS(QA,e,t,n)}function iS(e,t,n,a){var i=Xs(t),r=It(a)?a:n,l=e+"L";return i[l]?i[l].add(r):i[l]=new Set([r]),function(){var o=i[l];o&&(o.delete(r),o.size===0&&delete i[l])}}var FA="never",Mo="always",IA="observed";function JA(e){e.isolateGlobalState===!0&&MA();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(z.useProxies=t===Mo?!0:t===FA?!1:typeof Proxy<"u"),t==="ifavailable"&&(z.verifyProxies=!0),n!==void 0){var a=n===Mo?Mo:n===IA;z.enforceActions=a,z.allowStateChanges=!(a===!0||a===Mo)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(z[i]=!!e[i])}),z.allowStateReads=!z.observableRequiresReaction,e.reactionScheduler&&BA(e.reactionScheduler)}function rS(e,t,n,a){var i=DT(t);return ja(function(){var r=_i(e,a)[$];Sr(i).forEach(function(l){r.extend_(l,i[l],n&&l in n?n[l]:!0)})}),e}function WA(e,t){return lS(Xs(e,t))}function lS(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=ew(e.observing_).map(lS)),t}function ew(e){return Array.from(new Set(e))}var tw=0,nw=function(e){function t(){var a;return a=e.call(this,"FLOW_CANCELLED")||this,Object.setPrototypeOf(a,(this instanceof t?this.constructor:void 0).prototype),a.name="FlowCancellationError",a}Gp(t,e);var n=t.prototype;return n.toString=function(){return"Error: "+this.message},t}(nd(Error)),Lc=H_("flow"),aw=H_("flow.bound",{bound:!0}),Or=Object.assign(function(t,n){if(io(n))return Lc.decorate_20223_(t,n);if(ai(n))return ao(t,n,Lc);var a=t,i=a.name||"<unnamed flow>",r=function(){var o=this,s=arguments,u=++tw,c=Wi(i+" - runid: "+u+" - init",a).apply(o,s),f,d=void 0,h=new Promise(function(g,_){var S=0;f=_;function p(b){d=void 0;var x;try{x=Wi(i+" - runid: "+u+" - yield "+S++,c.next).call(c,b)}catch(T){return _(T)}m(x)}function v(b){d=void 0;var x;try{x=Wi(i+" - runid: "+u+" - yield "+S++,c.throw).call(c,b)}catch(T){return _(T)}m(x)}function m(b){if(It(b==null?void 0:b.then)){b.then(m,_);return}return b.done?g(b.value):(d=Promise.resolve(b.value),d.then(p,v))}p(void 0)});return h.cancel=Wi(i+" - runid: "+u+" - cancel",function(){try{d&&cm(d);var g=c.return(void 0),_=Promise.resolve(g.value);_.then(Ii,Ii),cm(_),f(new nw)}catch(S){f(S)}}),h};return r.isMobXFlow=!0,r},Lc);Or.bound=vn(aw);function cm(e){It(e.cancel)&&e.cancel()}function Bl(e){return(e==null?void 0:e.isMobXFlow)===!0}function iw(e,t){return e?Cu(e)||!!e[$]||Kp(e)||Ks(e)||Au(e):!1}function oS(e){return iw(e)}function Mn(e,t){t===void 0&&(t=void 0),Pt();try{return e.apply(t)}finally{$t()}}function Ni(e){return e[$]}var rw={has:function(t,n){return Ni(t).has_(n)},get:function(t,n){return Ni(t).get_(n)},set:function(t,n,a){var i;return ai(n)?(i=Ni(t).set_(n,a,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var a;return ai(n)?(a=Ni(t).delete_(n,!0))!=null?a:!0:!1},defineProperty:function(t,n,a){var i;return(i=Ni(t).defineProperty_(n,a))!=null?i:!0},ownKeys:function(t){return Ni(t).ownKeys_()},preventExtensions:function(t){te(13)}};function lw(e,t){var n,a;return R_(),e=_i(e,t),(a=(n=e[$]).proxy_)!=null?a:n.proxy_=new Proxy(e,rw)}function Bt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function lo(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),N_(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function Ht(e,t){var n=yi();try{for(var a=[].concat(e.interceptors_||[]),i=0,r=a.length;i<r&&(t=a[i](t),t&&!t.type&&te(14),!!t);i++);return t}finally{Vn(n)}}function Zt(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function oo(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),N_(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function Ft(e,t){var n=yi(),a=e.changeListeners_;if(a){a=a.slice();for(var i=0,r=a.length;i<r;i++)a[i](t);Vn(n)}}function ow(e,t,n){return ja(function(){var a,i=_i(e,n)[$];(a=t)!=null||(t=VT(e)),Sr(t).forEach(function(r){return i.make_(r,t[r])})}),e}var zc=Symbol("mobx-keys");function sw(e,t,n){return Qn(e)?rS(e,e,t,n):(ja(function(){var a=_i(e,n)[$];if(!e[zc]){var i=Object.getPrototypeOf(e),r=new Set([].concat(Sr(e),Sr(i)));r.delete("constructor"),r.delete($),no(i,zc,r)}e[zc].forEach(function(l){return a.make_(l,t&&l in t?t[l]:!0)})}),e)}var fm="splice",gn="update",uw=1e4,cw={get:function(t,n){var a=t[$];return n===$?a:n==="length"?a.getArrayLength_():typeof n=="string"&&!isNaN(n)?a.get_(parseInt(n)):Hn(qs,n)?qs[n]:t[n]},set:function(t,n,a){var i=t[$];return n==="length"&&i.setArrayLength_(a),typeof n=="symbol"||isNaN(n)?t[n]=a:i.set_(parseInt(n),a),!0},preventExtensions:function(){te(15)}},Zp=function(){function e(n,a,i,r){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=r,this.atom_=new Da(n),this.enhancer_=function(l,o){return a(l,o,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.dehanceValues_=function(a){return this.dehancer!==void 0&&a.length>0?a.map(this.dehancer):a},t.intercept_=function(a){return lo(this,a)},t.observe_=function(a,i){return i===void 0&&(i=!1),i&&a({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),oo(this,a)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(a){(typeof a!="number"||isNaN(a)||a<0)&&te("Out of range: "+a);var i=this.values_.length;if(a!==i)if(a>i){for(var r=new Array(a-i),l=0;l<a-i;l++)r[l]=void 0;this.spliceWithArray_(i,0,r)}else this.spliceWithArray_(a,i-a)},t.updateArrayLength_=function(a,i){a!==this.lastKnownLength_&&te(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&pS(a+i+1)},t.spliceWithArray_=function(a,i,r){var l=this;this.atom_;var o=this.values_.length;if(a===void 0?a=0:a>o?a=o:a<0&&(a=Math.max(0,o+a)),arguments.length===1?i=o-a:i==null?i=0:i=Math.max(0,Math.min(i,o-a)),r===void 0&&(r=ed),Bt(this)){var s=Ht(this,{object:this.proxy_,type:fm,index:a,removedCount:i,added:r});if(!s)return ed;i=s.removedCount,r=s.added}if(r=r.length===0?r:r.map(function(f){return l.enhancer_(f,void 0)}),this.legacyMode_){var u=r.length-i;this.updateArrayLength_(o,u)}var c=this.spliceItemsIntoValues_(a,i,r);return(i!==0||r.length!==0)&&this.notifyArraySplice_(a,r,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(a,i,r){if(r.length<uw){var l;return(l=this.values_).splice.apply(l,[a,i].concat(r))}else{var o=this.values_.slice(a,a+i),s=this.values_.slice(a+i);this.values_.length+=r.length-i;for(var u=0;u<r.length;u++)this.values_[a+u]=r[u];for(var c=0;c<s.length;c++)this.values_[a+r.length+c]=s[c];return o}},t.notifyArrayChildUpdate_=function(a,i,r){var l=!this.owned_&&yl(),o=Zt(this),s=o||l?{observableKind:"array",object:this.proxy_,type:gn,debugObjectName:this.atom_.name_,index:a,newValue:i,oldValue:r}:null;this.atom_.reportChanged(),o&&Ft(this,s)},t.notifyArraySplice_=function(a,i,r){var l=!this.owned_&&yl(),o=Zt(this),s=o||l?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:fm,index:a,removed:r,added:i,removedCount:r.length,addedCount:i.length}:null;this.atom_.reportChanged(),o&&Ft(this,s)},t.get_=function(a){if(this.legacyMode_&&a>=this.values_.length){console.warn("[mobx] Out of bounds read: "+a);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[a])},t.set_=function(a,i){var r=this.values_;if(this.legacyMode_&&a>r.length&&te(17,a,r.length),a<r.length){this.atom_;var l=r[a];if(Bt(this)){var o=Ht(this,{type:gn,object:this.proxy_,index:a,newValue:i});if(!o)return;i=o.newValue}i=this.enhancer_(i,l);var s=i!==l;s&&(r[a]=i,this.notifyArrayChildUpdate_(a,i,l))}else{for(var u=new Array(a+1-r.length),c=0;c<u.length-1;c++)u[c]=void 0;u[u.length-1]=i,this.spliceWithArray_(r.length,0,u)}},e}();function fw(e,t,n,a){return n===void 0&&(n="ObservableArray"),a===void 0&&(a=!1),R_(),ja(function(){var i=new Zp(n,t,a,!1);D_(i.values_,$,i);var r=new Proxy(i.values_,cw);return i.proxy_=r,e&&e.length&&i.spliceWithArray_(0,0,e),r})}var qs={clear:function(){return this.splice(0)},replace:function(t){var n=this[$];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var a=arguments.length,i=new Array(a>2?a-2:0),r=2;r<a;r++)i[r-2]=arguments[r];var l=this[$];switch(arguments.length){case 0:return[];case 1:return l.spliceWithArray_(t);case 2:return l.spliceWithArray_(t,n)}return l.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,a){return this[$].spliceWithArray_(t,n,a)},push:function(){for(var t=this[$],n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,a),t.values_.length},pop:function(){return this.splice(Math.max(this[$].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[$],n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t.spliceWithArray_(0,0,a),t.values_.length},reverse:function(){return z.trackingDerivation&&te(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){z.trackingDerivation&&te(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[$],a=n.dehanceValues_(n.values_).indexOf(t);return a>-1?(this.splice(a,1),!0):!1}};ye("at",Rt);ye("concat",Rt);ye("flat",Rt);ye("includes",Rt);ye("indexOf",Rt);ye("join",Rt);ye("lastIndexOf",Rt);ye("slice",Rt);ye("toString",Rt);ye("toLocaleString",Rt);ye("toSorted",Rt);ye("toSpliced",Rt);ye("with",Rt);ye("every",Wt);ye("filter",Wt);ye("find",Wt);ye("findIndex",Wt);ye("findLast",Wt);ye("findLastIndex",Wt);ye("flatMap",Wt);ye("forEach",Wt);ye("map",Wt);ye("some",Wt);ye("toReversed",Wt);ye("reduce",sS);ye("reduceRight",sS);function ye(e,t){typeof Array.prototype[e]=="function"&&(qs[e]=t(e))}function Rt(e){return function(){var t=this[$];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Wt(e){return function(t,n){var a=this,i=this[$];i.atom_.reportObserved();var r=i.dehanceValues_(i.values_);return r[e](function(l,o){return t.call(n,l,o,a)})}}function sS(e){return function(){var t=this,n=this[$];n.atom_.reportObserved();var a=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(r,l,o){return i(r,l,o,t)},a[e].apply(a,arguments)}}var dw=mi("ObservableArrayAdministration",Zp);function wu(e){return xu(e)&&dw(e[$])}var hw={},da="add",ks="delete",uS=function(){function e(n,a,i){var r=this;a===void 0&&(a=ri),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$]=hw,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=a,this.name_=i,It(Map)||te(18),ja(function(){r.keysAtom_=U_("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,n&&r.merge(n)})}var t=e.prototype;return t.has_=function(a){return this.data_.has(a)},t.has=function(a){var i=this;if(!z.trackingDerivation)return this.has_(a);var r=this.hasMap_.get(a);if(!r){var l=r=new Ia(this.has_(a),Ou,"ObservableMap.key?",!1);this.hasMap_.set(a,l),aS(l,function(){return i.hasMap_.delete(a)})}return r.get()},t.set=function(a,i){var r=this.has_(a);if(Bt(this)){var l=Ht(this,{type:r?gn:da,object:this,newValue:i,name:a});if(!l)return this;i=l.newValue}return r?this.updateValue_(a,i):this.addValue_(a,i),this},t.delete=function(a){var i=this;if(this.keysAtom_,Bt(this)){var r=Ht(this,{type:ks,object:this,name:a});if(!r)return!1}if(this.has_(a)){var l=yl(),o=Zt(this),s=o||l?{observableKind:"map",debugObjectName:this.name_,type:ks,object:this,oldValue:this.data_.get(a).value_,name:a}:null;return Mn(function(){var u;i.keysAtom_.reportChanged(),(u=i.hasMap_.get(a))==null||u.setNewValue_(!1);var c=i.data_.get(a);c.setNewValue_(void 0),i.data_.delete(a)}),o&&Ft(this,s),!0}return!1},t.updateValue_=function(a,i){var r=this.data_.get(a);if(i=r.prepareNewValue_(i),i!==z.UNCHANGED){var l=yl(),o=Zt(this),s=o||l?{observableKind:"map",debugObjectName:this.name_,type:gn,object:this,oldValue:r.value_,name:a,newValue:i}:null;r.setNewValue_(i),o&&Ft(this,s)}},t.addValue_=function(a,i){var r=this;this.keysAtom_,Mn(function(){var u,c=new Ia(i,r.enhancer_,"ObservableMap.key",!1);r.data_.set(a,c),i=c.value_,(u=r.hasMap_.get(a))==null||u.setNewValue_(!0),r.keysAtom_.reportChanged()});var l=yl(),o=Zt(this),s=o||l?{observableKind:"map",debugObjectName:this.name_,type:da,object:this,name:a,newValue:i}:null;o&&Ft(this,s)},t.get=function(a){return this.has(a)?this.dehanceValue_(this.data_.get(a).get()):this.dehanceValue_(void 0)},t.getOrInsert=function(a,i){return this.has(a)||this.set(a,i),this.get(a)},t.getOrInsertComputed=function(a,i){return this.has(a)||this.set(a,i(a)),this.get(a)},t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var a=this,i=this.keys();return dm({next:function(){var l=i.next(),o=l.done,s=l.value;return{done:o,value:o?void 0:a.get(s)}}})},t.entries=function(){var a=this,i=this.keys();return dm({next:function(){var l=i.next(),o=l.done,s=l.value;return{done:o,value:o?void 0:[s,a.get(s)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(a,i){for(var r=Ji(this),l;!(l=r()).done;){var o=l.value,s=o[0],u=o[1];a.call(i,u,s,this)}},t.merge=function(a){var i=this;return bi(a)&&(a=new Map(a)),Mn(function(){Qn(a)?MT(a).forEach(function(r){return i.set(r,a[r])}):Array.isArray(a)?a.forEach(function(r){var l=r[0],o=r[1];return i.set(l,o)}):Lr(a)?(NT(a)||te(19,a),a.forEach(function(r,l){return i.set(l,r)})):a!=null&&te(20,a)}),this},t.clear=function(){var a=this;Mn(function(){k_(function(){for(var i=Ji(a.keys()),r;!(r=i()).done;){var l=r.value;a.delete(l)}})})},t.replace=function(a){var i=this;return Mn(function(){for(var r=pw(a),l=new Map,o=!1,s=Ji(i.data_.keys()),u;!(u=s()).done;){var c=u.value;if(!r.has(c)){var f=i.delete(c);if(f)o=!0;else{var d=i.data_.get(c);l.set(c,d)}}}for(var h=Ji(r.entries()),g;!(g=h()).done;){var _=g.value,S=_[0],p=_[1],v=i.data_.has(S);if(i.set(S,p),i.data_.has(S)){var m=i.data_.get(S);l.set(S,m),v||(o=!0)}}if(!o)if(i.data_.size!==l.size)i.keysAtom_.reportChanged();else for(var b=i.data_.keys(),x=l.keys(),T=b.next(),E=x.next();!T.done;){if(T.value!==E.value){i.keysAtom_.reportChanged();break}T=b.next(),E=x.next()}i.data_=l}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(a,i){return oo(this,a)},t.intercept_=function(a){return lo(this,a)},zr(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),bi=mi("ObservableMap",uS);function dm(e){return e[Symbol.toStringTag]="MapIterator",Ip(e)}function pw(e){if(Lr(e)||bi(e))return e;if(Array.isArray(e))return new Map(e);if(Qn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return te(21,e)}var vw={},cS=function(){function e(n,a,i){var r=this;a===void 0&&(a=ri),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[$]=vw,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,It(Set)||te(22),this.enhancer_=function(l,o){return a(l,o,i)},ja(function(){r.atom_=U_(r.name_),n&&r.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.clear=function(){var a=this;Mn(function(){k_(function(){for(var i=Ji(a.data_.values()),r;!(r=i()).done;){var l=r.value;a.delete(l)}})})},t.forEach=function(a,i){for(var r=Ji(this),l;!(l=r()).done;){var o=l.value;a.call(i,o,o,this)}},t.add=function(a){var i=this;if(this.atom_,Bt(this)){var r=Ht(this,{type:da,object:this,newValue:a});if(!r)return this;a=r.newValue}if(!this.has(a)){Mn(function(){i.data_.add(i.enhancer_(a,void 0)),i.atom_.reportChanged()});var l=!1,o=Zt(this),s=o||l?{observableKind:"set",debugObjectName:this.name_,type:da,object:this,newValue:a}:null;o&&Ft(this,s)}return this},t.delete=function(a){var i=this;if(Bt(this)){var r=Ht(this,{type:ks,object:this,oldValue:a});if(!r)return!1}if(this.has(a)){var l=!1,o=Zt(this),s=o||l?{observableKind:"set",debugObjectName:this.name_,type:ks,object:this,oldValue:a}:null;return Mn(function(){i.atom_.reportChanged(),i.data_.delete(a)}),o&&Ft(this,s),!0}return!1},t.has=function(a){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(a))},t.entries=function(){var a=this.values();return hm({next:function(){var r=a.next(),l=r.value,o=r.done;return o?{value:void 0,done:o}:{value:[l,l],done:o}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var a=this,i=this.data_.values();return hm({next:function(){var l=i.next(),o=l.value,s=l.done;return s?{value:void 0,done:s}:{value:a.dehanceValue_(o),done:s}}})},t.intersection=function(a){if(Nn(a)&&!rn(a))return a.intersection(this);var i=new Set(this);return i.intersection(a)},t.union=function(a){if(Nn(a)&&!rn(a))return a.union(this);var i=new Set(this);return i.union(a)},t.difference=function(a){return new Set(this).difference(a)},t.symmetricDifference=function(a){if(Nn(a)&&!rn(a))return a.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(a)},t.isSubsetOf=function(a){return new Set(this).isSubsetOf(a)},t.isSupersetOf=function(a){return new Set(this).isSupersetOf(a)},t.isDisjointFrom=function(a){if(Nn(a)&&!rn(a))return a.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(a)},t.replace=function(a){var i=this;return rn(a)&&(a=new Set(a)),Mn(function(){Array.isArray(a)?(i.clear(),a.forEach(function(r){return i.add(r)})):Nn(a)?(i.clear(),a.forEach(function(r){return i.add(r)})):a!=null&&te("Cannot initialize set from "+a)}),this},t.observe_=function(a,i){return oo(this,a)},t.intercept_=function(a){return lo(this,a)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},zr(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),rn=mi("ObservableSet",cS);function hm(e){return e[Symbol.toStringTag]="SetIterator",Ip(e)}var pm=Object.create(null),vm="remove",fS=function(){function e(n,a,i,r){a===void 0&&(a=new Map),r===void 0&&(r=uA),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.lazyComputedKeys_=void 0,this.lazyObservableKeys_=void 0,this.target_=n,this.values_=a,this.name_=i,this.defaultAnnotation_=r,this.keysAtom_=new Da("ObservableObject.keys"),this.isPlainObject_=Qn(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(a){var i,r,l=(i=(r=this.values_.get(a))!=null?r:this.materializeLazyComputed_(a))!=null?i:this.materializeLazyObservable_(a);return l.get()},t.materializeLazyComputed_=function(a){var i,r=(i=this.lazyComputedKeys_)==null?void 0:i.get(a);if(r){this.lazyComputedKeys_.delete(a),this.lazyComputedKeys_.size===0&&(this.lazyComputedKeys_=void 0);var l=r();return this.values_.set(a,l),l}},t.materializeLazyObservable_=function(a){var i,r=(i=this.lazyObservableKeys_)==null?void 0:i.get(a);if(r){this.lazyObservableKeys_.delete(a),this.lazyObservableKeys_.size===0&&(this.lazyObservableKeys_=void 0);var l=r();return this.values_.set(a,l),l}},t.setObservablePropValue_=function(a,i){var r,l,o=(r=(l=this.values_.get(a))!=null?l:this.materializeLazyComputed_(a))!=null?r:this.materializeLazyObservable_(a);if(o instanceof At)return o.set(i),!0;if(Bt(this)){var s=Ht(this,{type:gn,object:this.proxy_||this.target_,name:a,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==z.UNCHANGED){var u=Zt(this),c=!1,f=u||c?{type:gn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:a,newValue:i}:null;o.setNewValue_(i),u&&Ft(this,f)}return!0},t.get_=function(a){return z.trackingDerivation&&!Hn(this.target_,a)&&this.has_(a),this.target_[a]},t.set_=function(a,i,r){return r===void 0&&(r=!1),Hn(this.target_,a)?this.values_.has(a)?this.setObservablePropValue_(a,i):r?Reflect.set(this.target_,a,i):(this.target_[a]=i,!0):this.extend_(a,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},t.has_=function(a){if(!z.trackingDerivation)return a in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(a);return i||(i=new Ia(a in this.target_,Ou,"ObservableObject.key?",!1),this.pendingKeys_.set(a,i)),i.get()},t.make_=function(a,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(a in this.target_)){var r;if((r=this.target_[cn])!=null&&r[a])return;te(1,i.annotationType_,this.name_+"."+a.toString())}for(var l=this.target_;l&&l!==Su;){var o=Vs(l,a);if(o){var s=i.make_(this,a,o,l);if(s===0)return;if(s===1)break}l=Object.getPrototypeOf(l)}mm(this,i,a)}},t.extend_=function(a,i,r,l){if(l===void 0&&(l=!1),r===!0&&(r=this.defaultAnnotation_),r===!1)return this.defineProperty_(a,i,l);var o=r.extend_(this,a,i,l);return o&&mm(this,r,a),o},t.defineProperty_=function(a,i,r){r===void 0&&(r=!1),this.keysAtom_;try{Pt();var l=this.delete_(a);if(!l)return l;if(Bt(this)){var o=Ht(this,{object:this.proxy_||this.target_,name:a,type:da,newValue:i.value});if(!o)return null;var s=o.newValue;i.value!==s&&(i=ii({},i,{value:s}))}if(r){if(!Reflect.defineProperty(this.target_,a,i))return!1}else pn(this.target_,a,i);this.notifyPropertyAddition_(a,i.value)}finally{$t()}return!0},t.defineObservableProperty_=function(a,i,r,l){l===void 0&&(l=!1),this.keysAtom_;try{Pt();var o=this.delete_(a);if(!o)return o;if(Bt(this)){var s=Ht(this,{object:this.proxy_||this.target_,name:a,type:da,newValue:i});if(!s)return null;i=s.newValue}var u=gm(a),c={configurable:z.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(l){if(!Reflect.defineProperty(this.target_,a,c))return!1}else pn(this.target_,a,c);var f=new Ia(i,r,"ObservableObject.key",!1);this.values_.set(a,f),this.notifyPropertyAddition_(a,f.value_)}finally{$t()}return!0},t.defineComputedProperty_=function(a,i,r){r===void 0&&(r=!1),this.keysAtom_;try{Pt();var l=this.delete_(a);if(!l)return l;if(Bt(this)){var o=Ht(this,{object:this.proxy_||this.target_,name:a,type:da,newValue:void 0});if(!o)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var s=gm(a),u={configurable:z.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,a,u))return!1}else pn(this.target_,a,u);this.values_.set(a,new At(i)),this.notifyPropertyAddition_(a,void 0)}finally{$t()}return!0},t.delete_=function(a,i){if(i===void 0&&(i=!1),this.keysAtom_,!Hn(this.target_,a))return!0;if(Bt(this)){var r=Ht(this,{object:this.proxy_||this.target_,name:a,type:vm});if(!r)return null}try{var l;Pt();var o=Zt(this),s=!1,u=this.values_.get(a),c=void 0;if(!u&&(o||s)){var f;c=(f=Vs(this.target_,a))==null?void 0:f.value}if(i){if(!Reflect.deleteProperty(this.target_,a))return!1}else delete this.target_[a];if(u&&(this.values_.delete(a),u instanceof Ia&&(c=u.value_),J_(u)),this.keysAtom_.reportChanged(),(l=this.pendingKeys_)==null||(l=l.get(a))==null||l.set(a in this.target_),o||s){var d={type:vm,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:a};o&&Ft(this,d)}}finally{$t()}return!0},t.observe_=function(a,i){return oo(this,a)},t.intercept_=function(a){return lo(this,a)},t.notifyPropertyAddition_=function(a,i){var r,l=Zt(this),o=!1;if(l||o){var s=l||o?{type:da,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:a,newValue:i}:null;l&&Ft(this,s)}(r=this.pendingKeys_)==null||(r=r.get(a))==null||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Sr(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function _i(e,t){var n;if(Hn(e,$))return e;var a=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",i=new fS(e,new Map,String(a),_A(t));return no(e,$,i),e}var gw=mi("ObservableObjectAdministration",fS);function gm(e){return pm[e]||(pm[e]={get:function(){return this[$].getObservablePropValue_(e)},set:function(n){return this[$].setObservablePropValue_(e,n)}})}function Cu(e){return xu(e)?gw(e[$]):!1}function mm(e,t,n){var a;(a=e.target_[cn])==null||delete a[n]}var mw=hS(0),yw=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Uc=0,dS=function(){};function bw(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}bw(dS,Array.prototype);var Fp=function(e){function t(a,i,r,l){var o;return r===void 0&&(r="ObservableArray"),l===void 0&&(l=!1),o=e.call(this)||this,ja(function(){var s=new Zp(r,i,l,!0);s.proxy_=o,D_(o,$,s),a&&a.length&&o.spliceWithArray(0,0,a),yw&&Object.defineProperty(o,"0",mw)}),o}Gp(t,e);var n=t.prototype;return n.concat=function(){this[$].atom_.reportObserved();for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),r.map(function(o){return wu(o)?o.slice():o}))},n[Symbol.iterator]=function(){var a=this,i=0;return Ip({next:function(){return i<a.length?{value:a[i++],done:!1}:{done:!0,value:void 0}}})},zr(t,[{key:"length",get:function(){return this[$].getArrayLength_()},set:function(i){this[$].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(dS);Object.entries(qs).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&no(Fp.prototype,t,n)});function hS(e){return{enumerable:!1,configurable:!0,get:function(){return this[$].get_(e)},set:function(n){this[$].set_(e,n)}}}function _w(e){pn(Fp.prototype,""+e,hS(e))}function pS(e){if(e>Uc){for(var t=Uc;t<e+100;t++)_w(t);Uc=e}}pS(1e3);function Sw(e,t,n){return new Fp(e,t,n)}function Xs(e,t){if(typeof e=="object"&&e!==null){if(wu(e))return t!==void 0&&te(23),e[$].atom_;if(rn(e))return e.atom_;if(bi(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||te(25,t,cd(e)),n}if(Cu(e)){var a,i;if(!t)return te(26);var r=e[$],l=(a=(i=r.values_.get(t))!=null?i:r.materializeLazyComputed_(t))!=null?a:r.materializeLazyObservable_(t);return l||te(27,t,cd(e)),l}if(Kp(e)||Au(e)||Ks(e))return e}else if(It(e)&&Ks(e[$]))return e[$];te(28)}function xw(e,t){if(e||te(29),Kp(e)||Au(e)||Ks(e)||bi(e)||rn(e))return e;if(e[$])return e[$];te(24,e)}function cd(e,t){var n;if(t!==void 0)n=Xs(e,t);else{if(xr(e))return e.name;Cu(e)||bi(e)||rn(e)?n=xw(e):n=Xs(e)}return n.name_}function ja(e){var t=yi(),n=kp(!0);Pt();try{return e()}finally{$t(),Xp(n),Vn(t)}}var ym=Su.toString;function vS(e,t,n){return n===void 0&&(n=-1),fd(e,t,n)}function fd(e,t,n,a,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var r=typeof e;if(r!=="function"&&r!=="object"&&typeof t!="object")return!1;var l=ym.call(e);if(l!==ym.call(t))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=bm(e),t=bm(t);var o=l==="[object Array]";if(!o){if(typeof e!="object"||typeof t!="object")return!1;var s=e.constructor,u=t.constructor;if(s!==u&&!(It(s)&&s instanceof s&&It(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),a=a||[],i=i||[];for(var c=a.length;c--;)if(a[c]===e)return i[c]===t;if(a.push(e),i.push(t),o){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!fd(e[c],t[c],n-1,a,i))return!1}else{var f=Object.keys(e),d=f.length;if(Object.keys(t).length!==d)return!1;for(var h=0;h<d;h++){var g=f[h];if(!(Hn(t,g)&&fd(e[g],t[g],n-1,a,i)))return!1}}return a.pop(),i.pop(),!0}function bm(e){return wu(e)?e.slice():Lr(e)||bi(e)||Nn(e)||rn(e)?Array.from(e.entries()):e}var _m,Ow=_u(),Ew=((_m=Ow.Iterator)==null?void 0:_m.prototype)||{};function Ip(e){return e[Symbol.iterator]=Tw,Object.assign(Object.create(Ew),e)}function Tw(){return this}["Symbol","Map","Set"].forEach(function(e){var t=_u();typeof t[e]>"u"&&te("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:HA,extras:{getDebugName:cd},$mobx:$});if(!y.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!ow)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Aw(e){e()}function ww(e){e||(e=Aw),JA({reactionScheduler:e})}function Cw(e){return WA(e)}var Rw=1e4,Nw=1e4,Mw=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(a){a===void 0&&(a=Rw),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(r,l){i-r.registeredAt>=a&&(n.finalize(r.value),n.registrations.delete(l))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,a){this.registrations.set(a,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Nw))}}),e}(),Dw=typeof FinalizationRegistry<"u"?FinalizationRegistry:Mw,dd=new Dw(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),gS={exports:{}},mS={};/**
52
- * @license React
53
- * use-sync-external-store-shim.production.js
54
- *
55
- * Copyright (c) Meta Platforms, Inc. and affiliates.
56
- *
57
- * This source code is licensed under the MIT license found in the
58
- * LICENSE file in the root directory of this source tree.
59
- */var Er=y;function jw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lw=typeof Object.is=="function"?Object.is:jw,zw=Er.useState,Uw=Er.useEffect,Bw=Er.useLayoutEffect,Hw=Er.useDebugValue;function Vw(e,t){var n=t(),a=zw({inst:{value:n,getSnapshot:t}}),i=a[0].inst,r=a[1];return Bw(function(){i.value=n,i.getSnapshot=t,Bc(i)&&r({inst:i})},[e,n,t]),Uw(function(){return Bc(i)&&r({inst:i}),e(function(){Bc(i)&&r({inst:i})})},[e]),Hw(n),n}function Bc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lw(e,n)}catch{return!0}}function Pw(e,t){return t()}var $w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Pw:Vw;mS.useSyncExternalStore=Er.useSyncExternalStore!==void 0?Er.useSyncExternalStore:$w;gS.exports=mS;var yS=gS.exports;function Sm(e){e.reaction=new Zn("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function Yw(e,t){t===void 0&&(t="observed");var n=af.useRef(null);if(!n.current){var a={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(o){return dd.unregister(a),a.onStoreChange=o,a.reaction||(Sm(a),a.stateVersion=Symbol()),function(){var s;a.onStoreChange=null,(s=a.reaction)===null||s===void 0||s.dispose(),a.reaction=null}},getSnapshot:function(){return a.stateVersion}};n.current=a}var i=n.current;i.reaction||(Sm(i),dd.register(n,i,i)),af.useDebugValue(i.reaction,Cw),yS.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot);var r,l;if(i.reaction.track(function(){try{r=e()}catch(o){l=o}}),l)throw l;return r}var Hc,Vc,bS=typeof Symbol=="function"&&Symbol.for,Gw=(Vc=(Hc=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Hc===void 0?void 0:Hc.configurable)!==null&&Vc!==void 0?Vc:!1,xm=bS?Symbol.for("react.forward_ref"):typeof y.forwardRef=="function"&&y.forwardRef(function(e){return null}).$$typeof,Om=bS?Symbol.for("react.memo"):typeof y.memo=="function"&&y.memo(function(e){return null}).$$typeof;function Jp(e,t){var n;if(Om&&e.$$typeof===Om)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var a=(n=void 0)!==null&&n!==void 0?n:!1,i=e,r=e.displayName||e.name;if(xm&&e.$$typeof===xm&&(a=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var l=function(o,s){return Yw(function(){return i(o,s)},r)};return l.displayName=e.displayName,Gw&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),a&&(l=y.forwardRef(l)),l=y.memo(l),qw(e,l),l}var Kw={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function qw(e,t){Object.keys(e).forEach(function(n){Kw[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var Pc;ww(Ra.unstable_batchedUpdates);Pc=dd.finalizeAllImmediately;var kw=Object.defineProperty,Ur=(e,t)=>kw(e,"name",{value:t,configurable:!0}),_S=!!(typeof window<"u"&&window.document&&window.document.createElement);function W(e,t,{checkForDefaultPrevented:n=!0}={}){return Ur(function(i){if(e==null||e(i),n===!1||!i||!i.defaultPrevented)return t==null?void 0:t(i)},"handleEvent")}Ur(W,"composeEventHandlers");function Xw(e){var t;if(!_S)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Ur(Xw,"getOwnerWindow");function hd(e){if(!_S)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Ur(hd,"getOwnerDocument");function SS(e,t=!1){const{activeElement:n}=hd(e);if(!(n!=null&&n.nodeName))return null;if(xS(n)&&n.contentDocument)return SS(n.contentDocument.body,t);if(t){const a=n.getAttribute("aria-activedescendant");if(a){const i=hd(n).getElementById(a);if(i)return i}}return n}Ur(SS,"getActiveElement");function xS(e){return e.tagName==="IFRAME"}Ur(xS,"isFrame");var Qw=Object.defineProperty,Wp=(e,t)=>Qw(e,"name",{value:t,configurable:!0});function pd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Wp(pd,"setRef");function OS(...e){return t=>{let n=!1;const a=e.map(i=>{const r=pd(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<a.length;i++){const r=a[i];typeof r=="function"?r():pd(e[i],null)}}}}Wp(OS,"composeRefs");function Te(...e){return y.useCallback(OS(...e),e)}Wp(Te,"useComposedRefs");var Zw=Object.defineProperty,Vt=(e,t)=>Zw(e,"name",{value:t,configurable:!0});function Fw(e,t){const n=y.createContext(t);n.displayName=e+"Context";const a=Vt(r=>{const{children:l,...o}=r,s=y.useMemo(()=>o,Object.values(o));return O.jsx(n.Provider,{value:s,children:l})},"Provider");a.displayName=e+"Provider";function i(r,l={}){const{optional:o=!1}=l,s=y.useContext(n);if(s)return s;if(t!==void 0)return t;if(!o)throw new Error(`\`${r}\` must be used within \`${e}\``)}return Vt(i,"useContext"),[a,i]}Vt(Fw,"createContext");function Si(e,t=[]){let n=[];function a(r,l){const o=y.createContext(l);o.displayName=r+"Context";const s=n.length;n=[...n,l];const u=Vt(f=>{var p;const{scope:d,children:h,...g}=f,_=((p=d==null?void 0:d[e])==null?void 0:p[s])||o,S=y.useMemo(()=>g,Object.values(g));return O.jsx(_.Provider,{value:S,children:h})},"Provider");u.displayName=r+"Provider";function c(f,d,h={}){var p;const{optional:g=!1}=h,_=((p=d==null?void 0:d[e])==null?void 0:p[s])||o,S=y.useContext(_);if(S)return S;if(l!==void 0)return l;if(!g)throw new Error(`\`${f}\` must be used within \`${r}\``)}return Vt(c,"useContext"),[u,c]}Vt(a,"createContext");const i=Vt(()=>{const r=n.map(l=>y.createContext(l));return Vt(function(o){const s=(o==null?void 0:o[e])||r;return y.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])},"useScope")},"createScope");return i.scopeName=e,[a,ES(i,...t)]}Vt(Si,"createContextScope");function ES(...e){const t=e[0];if(e.length===1)return t;const n=Vt(()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return Vt(function(r){const l=a.reduce((o,{useScope:s,scopeName:u})=>{const f=s(r)[`__scope${u}`];return{...o,...f}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Vt(ES,"composeContextScopes");var Iw=Object.defineProperty,en=(e,t)=>Iw(e,"name",{value:t,configurable:!0});function oi(e){const t=y.forwardRef((n,a)=>{let{children:i,...r}=n,l=null,o=!1;const s=[];vd(i)&&typeof Do=="function"&&(i=Do(i._payload)),y.Children.forEach(i,d=>{var h;if(RS(d)){o=!0;const g=d;let _="child"in g.props?g.props.child:g.props.children;vd(_)&&typeof Do=="function"&&(_=Do(_._payload)),l=Jw(g,_),s.push((h=l==null?void 0:l.props)==null?void 0:h.children)}else s.push(d)}),l?l=y.cloneElement(l,void 0,s):!o&&y.Children.count(i)===1&&y.isValidElement(i)&&(l=i);const u=l?CS(l):void 0,c=Te(a,u);if(!l){if(i||i===0)throw new Error(o?tC(e):eC(e));return i}const f=wS(r,l.props??{});return l.type!==y.Fragment&&(f.ref=a?c:u),y.cloneElement(l,f)});return t.displayName=`${e}.Slot`,t}en(oi,"createSlot");var TS=Symbol.for("radix.slottable");function AS(e){const t=en(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=TS,t}en(AS,"createSlottable");var Jw=en((e,t)=>{if("child"in e.props){const n=e.props.child;return y.isValidElement(n)?y.cloneElement(n,void 0,e.props.children(n.props.children)):null}return y.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function wS(e,t){const n={...t};for(const a in t){const i=e[a],r=t[a];/^on[A-Z]/.test(a)?i&&r?n[a]=(...o)=>{const s=r(...o);return i(...o),s}:i&&(n[a]=i):a==="style"?n[a]={...i,...r}:a==="className"&&(n[a]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}en(wS,"mergeProps");function CS(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}en(CS,"getElementRef");function RS(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===TS}en(RS,"isSlottable");var Ww=Symbol.for("react.lazy");function vd(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ww&&"_payload"in e&&NS(e._payload)}en(vd,"isLazyComponent");function NS(e){return typeof e=="object"&&e!==null&&"then"in e}en(NS,"isPromiseLike");var eC=en(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),tC=en(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Do=Gl[" use ".trim().toString()],nC=Object.defineProperty,aC=(e,t)=>nC(e,"name",{value:t,configurable:!0}),iC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=iC.reduce((e,t)=>{const n=oi(`Primitive.${t}`),a=y.forwardRef((i,r)=>{const{asChild:l,...o}=i,s=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(s,{...o,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function ev(e,t){e&&Ra.flushSync(()=>e.dispatchEvent(t))}aC(ev,"dispatchDiscreteCustomEvent");var rC=Object.defineProperty,lC=(e,t)=>rC(e,"name",{value:t,configurable:!0});function ht(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}lC(ht,"useCallbackRef");var oC=Object.defineProperty,He=(e,t)=>oC(e,"name",{value:t,configurable:!0}),gd="dismissableLayer.update",sC="dismissableLayer.pointerDownOutside",uC="dismissableLayer.focusOutside",Em,tv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),nv=y.forwardRef(He(function(t,n){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:o,onInteractOutside:s,onDismiss:u,...c}=t,f=y.useContext(tv),[d,h]=y.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=y.useState({}),S=Te(n,h),p=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=v?p.indexOf(v):-1,b=d?p.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,T=b>=m,E=y.useRef(!1),C=MS(j=>{l==null||l(j),s==null||s(j),j.defaultPrevented||u==null||u()},{ownerDocument:g,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:y.useCallback(j=>{if(!(j instanceof Node))return!1;const L=[...f.branches].some(U=>U.contains(j));return T&&!L},[f.branches,T])}),R=DS(j=>{if(i&&E.current)return;const L=j.target;[...f.branches].some(V=>V.contains(L))||(o==null||o(j),s==null||s(j),j.defaultPrevented||u==null||u())},g),N=d?b===p.length-1:!1,H=ht(j=>{j.key==="Escape"&&(r==null||r(j),!j.defaultPrevented&&u&&(j.preventDefault(),u()))});return y.useEffect(()=>{if(N)return g.addEventListener("keydown",H,{capture:!0}),()=>g.removeEventListener("keydown",H,{capture:!0})},[g,N,H]),y.useEffect(()=>{if(d)return a&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Em=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),md(),()=>{a&&(f.layersWithOutsidePointerEventsDisabled.delete(d),f.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=Em))}},[d,g,a,f]),y.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),md())},[d,f]),y.useEffect(()=>{const j=He(()=>_({}),"handleUpdate");return document.addEventListener(gd,j),()=>document.removeEventListener(gd,j)},[]),O.jsx(Ae.div,{...c,ref:S,style:{pointerEvents:x?T?"auto":"none":void 0,...t.style},onFocusCapture:W(t.onFocusCapture,R.onFocusCapture),onBlurCapture:W(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:W(t.onPointerDownCapture,C.onPointerDownCapture)})},"DismissableLayer")),cC=y.forwardRef(He(function(t,n){const a=y.useContext(tv),i=y.useRef(null),r=Te(n,i);return y.useEffect(()=>{const l=i.current;if(l)return a.branches.add(l),()=>{a.branches.delete(l)}},[a.branches]),O.jsx(Ae.div,{...t,ref:r})},"DismissableLayerBranch"));function fC(){const e=y.useContext(tv),[t,n]=y.useState(null);return y.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}He(fC,"useDismissableLayerSurface");var dC=He(()=>!0,"IS_TRUE");function MS(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:r,shouldHandlePointerDownOutside:l=dC}=t,o=ht(e),s=y.useRef(!1),u=y.useRef(!1),c=y.useRef(new Map),f=y.useRef(()=>{});return y.useEffect(()=>{function d(){u.current=!1,i.current=!1,c.current.clear()}He(d,"resetOutsideInteraction");function h(){return Array.from(c.current.values()).some(Boolean)}He(h,"isOutsideInteractionIntercepted");function g(m){if(!u.current)return;const b=m.target;b instanceof Node&&[...r].some(T=>T.contains(b))||c.current.set(m.type,!0),m.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}He(g,"handleInteractionCapture");function _(m){u.current&&c.current.set(m.type,!1)}He(_,"handleInteractionBubble");const S=He(m=>{if(m.target&&!s.current){let b=function(){n.removeEventListener("click",f.current);const T=h();d(),T||av(sC,o,x,{discrete:!0})};if(He(b,"handleAndDispatchPointerDownOutsideEvent"),!l(m.target)){n.removeEventListener("click",f.current),d(),s.current=!1;return}const x={originalEvent:m};u.current=!0,i.current=a&&m.button===0,c.current.clear(),!a||m.button!==0?b():(n.removeEventListener("click",f.current),f.current=b,n.addEventListener("click",f.current,{once:!0}))}else n.removeEventListener("click",f.current),d();s.current=!1},"handlePointerDown"),p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const m of p)n.addEventListener(m,g,!0),n.addEventListener(m,_);const v=window.setTimeout(()=>{n.addEventListener("pointerdown",S)},0);return()=>{window.clearTimeout(v),n.removeEventListener("pointerdown",S),n.removeEventListener("click",f.current);for(const m of p)n.removeEventListener(m,g,!0),n.removeEventListener(m,_)}},[n,o,a,i,r,l]),{onPointerDownCapture:He(()=>s.current=!0,"onPointerDownCapture")}}He(MS,"usePointerDownOutside");function DS(e,t=globalThis==null?void 0:globalThis.document){const n=ht(e),a=y.useRef(!1);return y.useEffect(()=>{const i=He(r=>{r.target&&!a.current&&av(uC,n,{originalEvent:r},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:He(()=>a.current=!0,"onFocusCapture"),onBlurCapture:He(()=>a.current=!1,"onBlurCapture")}}He(DS,"useFocusOutside");function md(){const e=new CustomEvent(gd);document.dispatchEvent(e)}He(md,"dispatchUpdate");function av(e,t,n,{discrete:a}){const i=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?ev(i,r):i.dispatchEvent(r)}He(av,"handleAndDispatchCustomEvent");var hC=nv,pC=cC,We=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},vC=Object.defineProperty,gC=(e,t)=>vC(e,"name",{value:t,configurable:!0}),mC=Gl[" useId ".trim().toString()]||(()=>{}),yC=0;function Ru(e){const[t,n]=y.useState(mC());return We(()=>{e||n(a=>a??String(yC++))},[e]),e||(t?`radix-${t}`:"")}gC(Ru,"useId");const bC=["top","right","bottom","left"],Aa=Math.min,Pn=Math.max,Qs=Math.round,jo=Math.floor,$n=e=>({x:e,y:e}),_C={left:"right",right:"left",bottom:"top",top:"bottom"};function jS(e,t,n){return Pn(e,Aa(t,n))}function Fn(e,t){return typeof e=="function"?e(t):e}function wa(e){return e.split("-")[0]}function Br(e){return e.split("-")[1]}function iv(e){return e==="x"?"y":"x"}function rv(e){return e==="y"?"height":"width"}function fn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function lv(e){return iv(fn(e))}function SC(e,t,n){n===void 0&&(n=!1);const a=Br(e),i=lv(e),r=rv(i);let l=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=Zs(l)),[l,Zs(l)]}function xC(e){const t=Zs(e);return[yd(e),t,yd(t)]}function yd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Tm=["left","right"],Am=["right","left"],OC=["top","bottom"],EC=["bottom","top"];function TC(e,t,n){switch(e){case"top":case"bottom":return n?t?Am:Tm:t?Tm:Am;case"left":case"right":return t?OC:EC;default:return[]}}function AC(e,t,n,a){const i=Br(e);let r=TC(wa(e),n==="start",a);return i&&(r=r.map(l=>l+"-"+i),t&&(r=r.concat(r.map(yd)))),r}function Zs(e){const t=wa(e);return _C[t]+e.slice(t.length)}function wC(e){var t,n,a,i;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(i=e.left)!=null?i:0}}function LS(e){return typeof e!="number"?wC(e):{top:e,right:e,bottom:e,left:e}}function Fs(e){const{x:t,y:n,width:a,height:i}=e;return{width:a,height:i,top:n,left:t,right:t+a,bottom:n+i,x:t,y:n}}function wm(e,t,n){let{reference:a,floating:i}=e;const r=fn(t),l=lv(t),o=rv(l),s=wa(t),u=r==="y",c=a.x+a.width/2-i.width/2,f=a.y+a.height/2-i.height/2,d=a[o]/2-i[o]/2;let h;switch(s){case"top":h={x:c,y:a.y-i.height};break;case"bottom":h={x:c,y:a.y+a.height};break;case"right":h={x:a.x+a.width,y:f};break;case"left":h={x:a.x-i.width,y:f};break;default:h={x:a.x,y:a.y}}const g=Br(t);return g&&(h[l]+=d*(g==="end"?1:-1)*(n&&u?-1:1)),h}async function CC(e,t){var n;t===void 0&&(t={});const{x:a,y:i,platform:r,rects:l,elements:o,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Fn(t,e),g=LS(h),S=o[d?f==="floating"?"reference":"floating":f],p=Fs(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(S)))==null||n?S:S.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:s})),v=f==="floating"?{x:a,y:i,width:l.floating.width,height:l.floating.height}:l.reference,m=await(r.getOffsetParent==null?void 0:r.getOffsetParent(o.floating)),b=await(r.isElement==null?void 0:r.isElement(m))&&await(r.getScale==null?void 0:r.getScale(m))||{x:1,y:1},x=Fs(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:m,strategy:s}):v);return{top:(p.top-x.top+g.top)/b.y,bottom:(x.bottom-p.bottom+g.bottom)/b.y,left:(p.left-x.left+g.left)/b.x,right:(x.right-p.right+g.right)/b.x}}const RC=50,NC=async(e,t,n)=>{const{placement:a="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,o=l.detectOverflow?l:{...l,detectOverflow:CC},s=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=wm(u,a,s),d=a,h=0;const g={};for(let _=0;_<r.length;_++){const S=r[_];if(!S)continue;const{name:p,fn:v}=S,{x:m,y:b,data:x,reset:T}=await v({x:c,y:f,initialPlacement:a,placement:d,strategy:i,middlewareData:g,rects:u,platform:o,elements:{reference:e,floating:t}});c=m??c,f=b??f,g[p]={...g[p],...x},T&&h<RC&&(h++,typeof T=="object"&&(T.placement&&(d=T.placement),T.rects&&(u=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:c,y:f}=wm(u,d,s)),_=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:g}},MC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:i,rects:r,platform:l,elements:o,middlewareData:s}=t,{element:u,padding:c=0}=Fn(e,t)||{};if(u==null)return{};const f=LS(c),d={x:n,y:a},h=lv(i),g=rv(h),_=await l.getDimensions(u),S=h==="y",p=S?"top":"left",v=S?"bottom":"right",m=S?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[h]-d[h]-r.floating[g],x=d[h]-r.reference[h],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let E=T?T[m]:0;(!E||!await(l.isElement==null?void 0:l.isElement(T)))&&(E=o.floating[m]||r.floating[g]);const C=b/2-x/2,R=E/2-_[g]/2-1,N=Aa(f[p],R),H=Aa(f[v],R),j=E-_[g]-H,L=E/2-_[g]/2+C,U=jS(N,L,j),V=!s.arrow&&Br(i)!=null&&L!==U&&r.reference[g]/2-(L<N?N:H)-_[g]/2<0,A=V?L<N?L-N:L-j:0;return{[h]:d[h]+A,data:{[h]:U,centerOffset:L-U-A,...V&&{alignmentOffset:A}},reset:V}}}),DC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:i,middlewareData:r,rects:l,initialPlacement:o,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:_=!0,...S}=Fn(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=wa(i),v=fn(o),m=wa(o)===o,b=await(s.isRTL==null?void 0:s.isRTL(u.floating)),x=d||(m||!_?[Zs(o)]:xC(o)),T=g!=="none";!d&&T&&x.push(...AC(o,_,g,b));const E=[o,...x],C=await s.detectOverflow(t,S),R=[];let N=((a=r.flip)==null?void 0:a.overflows)||[];if(c&&R.push(C[p]),f){const U=SC(i,l,b);R.push(C[U[0]],C[U[1]])}if(N=[...N,{placement:i,overflows:R}],!R.every(U=>U<=0)){var H,j;const U=(((H=r.flip)==null?void 0:H.index)||0)+1,V=E[U];if(V&&(!(f==="alignment"?v!==fn(V):!1)||N.every(D=>fn(D.placement)===v?D.overflows[0]>0:!0)))return{data:{index:U,overflows:N},reset:{placement:V}};let A=(j=N.filter(M=>M.overflows[0]<=0).sort((M,D)=>M.overflows[1]-D.overflows[1])[0])==null?void 0:j.placement;if(!A)switch(h){case"bestFit":{var L;const M=(L=N.filter(D=>{if(T){const B=fn(D.placement);return B===v||B==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(B=>B>0).reduce((B,P)=>B+P,0)]).sort((D,B)=>D[1]-B[1])[0])==null?void 0:L[0];M&&(A=M);break}case"initialPlacement":A=o;break}if(i!==A)return{reset:{placement:A}}}return{}}}};function Cm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rm(e){return bC.some(t=>e[t]>=0)}const jC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:i="referenceHidden",...r}=Fn(e,t);switch(i){case"referenceHidden":{const l=await a.detectOverflow(t,{...r,elementContext:"reference"}),o=Cm(l,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Rm(o)}}}case"escaped":{const l=await a.detectOverflow(t,{...r,altBoundary:!0}),o=Cm(l,n.floating);return{data:{escapedOffsets:o,escaped:Rm(o)}}}default:return{}}}}},zS=new Set(["left","top"]);async function LC(e,t){const{placement:n,platform:a,elements:i}=e,r=await(a.isRTL==null?void 0:a.isRTL(i.floating)),l=wa(n),o=Br(n),s=fn(n)==="y",u=zS.has(l)?-1:1,c=r&&s?-1:1,f=Fn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),s?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const zC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:i,y:r,placement:l,middlewareData:o}=t,s=await LC(t,e);return l===((n=o.offset)==null?void 0:n.placement)&&(a=o.arrow)!=null&&a.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}},UC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:i,platform:r}=t,{mainAxis:l=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:m,y:b}=v;return{x:m,y:b}}},...u}=Fn(e,t),c={x:n,y:a},f=await r.detectOverflow(t,u),d=fn(i),h=iv(d);let g=c[h],_=c[d];const S=(v,m)=>jS(m+f[v==="y"?"top":"left"],m,m-f[v==="y"?"bottom":"right"]);l&&(g=S(h,g)),o&&(_=S(d,_));const p=s.fn({...t,[h]:g,[d]:_});return{...p,data:{x:p.x-n,y:p.y-a,enabled:{[h]:l,[d]:o}}}}}},BC=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,a;const{x:i,y:r,placement:l,rects:o,middlewareData:s}=t,{offset:u=0,mainAxis:c=!0,crossAxis:f=!0}=Fn(e,t),d={x:i,y:r},h=fn(l),g=iv(h);let _=d[g],S=d[h];const p=Fn(u,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:(n=p.mainAxis)!=null?n:0,crossAxis:(a=p.crossAxis)!=null?a:0};if(c){const x=g==="y"?"height":"width",T=o.reference[g]-o.floating[x]+v.mainAxis,E=o.reference[g]+o.reference[x]-v.mainAxis;_<T?_=T:_>E&&(_=E)}if(f){var m,b;const x=g==="y"?"width":"height",T=zS.has(wa(l)),E=o.reference[h]-o.floating[x]+(T&&((m=s.offset)==null?void 0:m[h])||0)+(T?0:v.crossAxis),C=o.reference[h]+o.reference[x]+(T?0:((b=s.offset)==null?void 0:b[h])||0)-(T?v.crossAxis:0);S<E?S=E:S>C&&(S=C)}return{[g]:_,[h]:S}}}},HC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:a,platform:i,elements:r}=t,{apply:l=()=>{},...o}=Fn(e,t),s=await i.detectOverflow(t,o),u=wa(n),c=Br(n),f=fn(n)==="y",{width:d,height:h}=a.floating;let g,_;u==="top"||u==="bottom"?(g=u,_=c===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(_=u,g=c==="end"?"top":"bottom");const S=h-s.top-s.bottom,p=d-s.left-s.right,v=Aa(h-s[g],S),m=Aa(d-s[_],p),b=t.middlewareData.shift,x=!b;let T=v,E=m;b!=null&&b.enabled.x&&(E=p),b!=null&&b.enabled.y&&(T=S),x&&!c&&(f?E=d-2*Pn(s.left,s.right):T=h-2*Pn(s.top,s.bottom)),await l({...t,availableWidth:E,availableHeight:T});const C=await i.getDimensions(r.floating);return d!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function Nu(){return typeof window<"u"}function Hr(e){return US(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wn(e){var t;return(t=(US(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function US(e){return Nu()?e instanceof Node||e instanceof ft(e).Node:!1}function mn(e){return Nu()?e instanceof Element||e instanceof ft(e).Element:!1}function La(e){return Nu()?e instanceof HTMLElement||e instanceof ft(e).HTMLElement:!1}function Nm(e){return!Nu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Mu(e){const{overflow:t,overflowX:n,overflowY:a,display:i}=yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&i!=="inline"&&i!=="contents"}function VC(e){return/^(table|td|th)$/.test(Hr(e))}function Du(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const PC=/transform|translate|scale|rotate|perspective|filter/,$C=/paint|layout|strict|content/,Va=e=>!!e&&e!=="none";let $c;function ov(e){const t=mn(e)?yn(e):e;return Va(t.transform)||Va(t.translate)||Va(t.scale)||Va(t.rotate)||Va(t.perspective)||!sv()&&(Va(t.backdropFilter)||Va(t.filter))||PC.test(t.willChange||"")||$C.test(t.contain||"")}function YC(e){let t=si(e);for(;La(t)&&!Hl(t);){if(ov(t))return t;if(Du(t))return null;t=si(t)}return null}function sv(){return $c==null&&($c=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$c}function Hl(e){return/^(html|body|#document)$/.test(Hr(e))}function yn(e){return ft(e).getComputedStyle(e)}function ju(e){return mn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function si(e){if(Hr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nm(e)&&e.host||Wn(e);return Nm(t)?t.host:t}function BS(e){const t=si(e);return Hl(t)?(e.ownerDocument||e).body:La(t)&&Mu(t)?t:BS(t)}function Vl(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=BS(e),r=i===((a=e.ownerDocument)==null?void 0:a.body),l=ft(i);if(r){const o=bd(l);return t.concat(l,l.visualViewport||[],Mu(i)?i:[],o&&n?Vl(o):[])}else return t.concat(i,Vl(i,[],n))}function bd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function HS(e){const t=yn(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const i=La(e),r=i?e.offsetWidth:n,l=i?e.offsetHeight:a,o=Qs(n)!==r||Qs(a)!==l;return o&&(n=r,a=l),{width:n,height:a,$:o}}function uv(e){return mn(e)?e:e.contextElement}function or(e){const t=uv(e);if(!La(t))return $n(1);const n=t.getBoundingClientRect(),{width:a,height:i,$:r}=HS(t);let l=(r?Qs(n.width):n.width)/a,o=(r?Qs(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!o||!Number.isFinite(o))&&(o=1),{x:l,y:o}}const GC=$n(0);function VS(e){const t=ft(e);return!sv()||!t.visualViewport?GC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function KC(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ft(e)}function ui(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=uv(e);let l=$n(1);t&&(a?mn(a)&&(l=or(a)):l=or(e));const o=KC(r,n,a)?VS(r):$n(0);let s=(i.left+o.x)/l.x,u=(i.top+o.y)/l.y,c=i.width/l.x,f=i.height/l.y;if(r&&a){const d=ft(r),h=mn(a)?ft(a):a;let g=d,_=bd(g);for(;_&&h!==g;){const S=or(_),p=_.getBoundingClientRect(),v=yn(_),m=p.left+(_.clientLeft+parseFloat(v.paddingLeft))*S.x,b=p.top+(_.clientTop+parseFloat(v.paddingTop))*S.y;s*=S.x,u*=S.y,c*=S.x,f*=S.y,s+=m,u+=b,g=ft(_),_=bd(g)}}return Fs({width:c,height:f,x:s,y:u})}function Lu(e,t){const n=ju(e).scrollLeft;return t?t.left+n:ui(Wn(e)).left+n}function PS(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-Lu(e,n),i=n.top+t.scrollTop;return{x:a,y:i}}function qC(e){let{elements:t,rect:n,offsetParent:a,strategy:i}=e;const r=i==="fixed",l=Wn(a),o=t?Du(t.floating):!1;if(a===l||o&&r)return n;let s={scrollLeft:0,scrollTop:0},u=$n(1);const c=$n(0),f=La(a);if((f||!r)&&((Hr(a)!=="body"||Mu(l))&&(s=ju(a)),f)){const h=ui(a);u=or(a),c.x=h.x+a.clientLeft,c.y=h.y+a.clientTop}const d=l&&!f&&!r?PS(l,s):$n(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}}function kC(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function XC(e){const t=ju(e),n=e.ownerDocument.body,a=Pn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Pn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-t.scrollLeft+Lu(e);const l=-t.scrollTop;return yn(n).direction==="rtl"&&(r+=Pn(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:r,y:l}}const QC=25;function ZC(e,t,n){n===void 0&&(n="viewport");const a=n==="layoutViewport",i=ft(e),r=Wn(e),l=i.visualViewport;let o=r.clientWidth,s=r.clientHeight,u=0,c=0;if(l){const d=!sv()||t==="fixed";a?d||(u=-l.offsetLeft,c=-l.offsetTop):(o=l.width,s=l.height,d&&(u=l.offsetLeft,c=l.offsetTop))}if(Lu(r)<=0){const d=r.ownerDocument,h=d.body,g=getComputedStyle(h),_=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,S=Math.abs(r.clientWidth-h.clientWidth-_),p=getComputedStyle(r).scrollbarGutter==="stable both-edges"?S/2:S;p<=QC&&(o-=p)}return{width:o,height:s,x:u,y:c}}function FC(e,t){const n=ui(e,!0,t==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,r=or(e),l=e.clientWidth*r.x,o=e.clientHeight*r.y,s=i*r.x,u=a*r.y;return{width:l,height:o,x:s,y:u}}function Mm(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=ZC(e,n,t);else if(t==="document")a=XC(Wn(e));else if(mn(t))a=FC(t,n);else{const i=VS(e);a={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Fs(a)}function IC(e,t){const n=t.get(e);if(n)return n;let a=Vl(e,[],!1).filter(o=>mn(o)&&Hr(o)!=="body"),i=null;const r=yn(e).position==="fixed";let l=r?si(e):e;for(;mn(l)&&!Hl(l);){const o=yn(l),s=ov(l),u=i?i.position:r?"fixed":"";!s&&(u==="fixed"||u==="absolute"&&o.position==="static")?a=a.filter(f=>f!==l):i=o,l=si(l)}return t.set(e,a),a}function JC(e){let{element:t,boundary:n,rootBoundary:a,strategy:i}=e;const l=[...n==="clippingAncestors"?Du(t)?[]:IC(t,this._c):[].concat(n),a],o=Mm(t,l[0],i);let s=o.top,u=o.right,c=o.bottom,f=o.left;for(let d=1;d<l.length;d++){const h=Mm(t,l[d],i);s=Pn(h.top,s),u=Aa(h.right,u),c=Aa(h.bottom,c),f=Pn(h.left,f)}return{width:u-f,height:c-s,x:f,y:s}}function WC(e){const{width:t,height:n}=HS(e);return{width:t,height:n}}function eR(e,t,n){const a=La(t),i=Wn(t),r=n==="fixed",l=ui(e,!0,r,t);let o={scrollLeft:0,scrollTop:0};const s=$n(0);if((a||!r)&&((Hr(t)!=="body"||Mu(i))&&(o=ju(t)),a)){const d=ui(t,!0,r,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}!a&&i&&(s.x=Lu(i));const u=i&&!a&&!r?PS(i,o):$n(0),c=l.left+o.scrollLeft-s.x-u.x,f=l.top+o.scrollTop-s.y-u.y;return{x:c,y:f,width:l.width,height:l.height}}function Yc(e){return yn(e).position==="static"}function Dm(e,t){if(!La(e)||yn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Wn(e)===n&&(n=n.ownerDocument.body),n}function $S(e,t){const n=ft(e);if(Du(e))return n;if(!La(e)){let i=si(e);for(;i&&!Hl(i);){if(mn(i)&&!Yc(i))return i;i=si(i)}return n}let a=Dm(e,t);for(;a&&VC(a)&&Yc(a);)a=Dm(a,t);return a&&Hl(a)&&Yc(a)&&!ov(a)?n:a||YC(e)||n}const tR=async function(e){const t=this.getOffsetParent||$S,n=this.getDimensions,a=await n(e.floating);return{reference:eR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function nR(e){return yn(e).direction==="rtl"}const aR={convertOffsetParentRelativeRectToViewportRelativeRect:qC,getDocumentElement:Wn,getClippingRect:JC,getOffsetParent:$S,getElementRects:tR,getClientRects:kC,getDimensions:WC,getScale:or,isElement:mn,isRTL:nR};function YS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iR(e,t,n){let a=null,i;const r=Wn(e);function l(){var c;clearTimeout(i),(c=a)==null||c.disconnect(),a=null}function o(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),l();const d=e.getBoundingClientRect(),{left:h,top:g,width:_,height:S}=d;if(c||t(),!_||!S)return;const p=jo(g),v=jo(r.clientWidth-(h+_)),m=jo(r.clientHeight-(g+S)),b=jo(h),T={rootMargin:-p+"px "+-v+"px "+-m+"px "+-b+"px",threshold:Pn(0,Aa(1,f))||1};let E=!0;function C(R){const N=R[0].intersectionRatio;if(!YS(d,e.getBoundingClientRect()))return o();if(N!==f){if(!E)return o();N?o(!1,N):i=setTimeout(()=>{o(!1,1e-7)},1e3)}E=!1}try{a=new IntersectionObserver(C,{...T,root:r.ownerDocument})}catch{a=new IntersectionObserver(C,T)}a.observe(e)}const s=ft(e),u=()=>o(n);return s.addEventListener("resize",u),o(!0),()=>{s.removeEventListener("resize",u),l()}}function rR(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,u=uv(e),c=i||r?[...u?Vl(u):[],...t?Vl(t):[]]:[];c.forEach(p=>{i&&p.addEventListener("scroll",n),r&&p.addEventListener("resize",n)});const f=u&&o?iR(u,n,r):null;let d=-1,h=null;l&&(h=new ResizeObserver(p=>{let[v]=p;v&&v.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(t)})),n()}),u&&!s&&h.observe(u),t&&h.observe(t));let g,_=s?ui(e):null;s&&S();function S(){const p=ui(e);_&&!YS(_,p)&&n(),_=p,g=requestAnimationFrame(S)}return n(),()=>{var p;c.forEach(v=>{i&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),f==null||f(),(p=h)==null||p.disconnect(),h=null,s&&cancelAnimationFrame(g)}}const lR=zC,oR=UC,sR=DC,uR=HC,cR=jC,jm=MC,fR=BC,dR=(e,t,n)=>{const a=new Map,i=n??{},r={...aR,...i.platform,_c:a};return NC(e,t,{...i,platform:r})};var hR=typeof document<"u",pR=function(){},rs=hR?y.useLayoutEffect:pR;function Is(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,a,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!Is(e[a],t[a]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){const r=i[a];if(!(r==="_owner"&&e.$$typeof)&&!Is(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function GS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lm(e,t){const n=GS(e);return Math.round(t*n)/n}function Gc(e){const t=y.useRef(e);return rs(()=>{t.current=e}),t}function vR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:i,elements:{reference:r,floating:l}={},transform:o=!0,whileElementsMounted:s,open:u}=e,[c,f]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=y.useState(a);Is(d,a)||h(a);const[g,_]=y.useState(null),[S,p]=y.useState(null),v=y.useCallback(D=>{D!==T.current&&(T.current=D,_(D))},[]),m=y.useCallback(D=>{D!==E.current&&(E.current=D,p(D))},[]),b=r||g,x=l||S,T=y.useRef(null),E=y.useRef(null),C=y.useRef(c),R=s!=null,N=Gc(s),H=Gc(i),j=Gc(u),L=y.useCallback(()=>{if(!T.current||!E.current)return;const D={placement:t,strategy:n,middleware:d};H.current&&(D.platform=H.current),dR(T.current,E.current,D).then(B=>{const P={...B,isPositioned:j.current!==!1};U.current&&!Is(C.current,P)&&(C.current=P,Ra.flushSync(()=>{f(P)}))})},[d,t,n,H,j]);rs(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[u]);const U=y.useRef(!1);rs(()=>(U.current=!0,()=>{U.current=!1}),[]),rs(()=>{if(b&&(T.current=b),x&&(E.current=x),b&&x){if(N.current)return N.current(b,x,L);L()}},[b,x,L,N,R]);const V=y.useMemo(()=>({reference:T,floating:E,setReference:v,setFloating:m}),[v,m]),A=y.useMemo(()=>({reference:b,floating:x}),[b,x]),M=y.useMemo(()=>{const D={position:n,left:0,top:0};if(!A.floating)return D;const B=Lm(A.floating,c.x),P=Lm(A.floating,c.y);return o?{...D,transform:"translate("+B+"px, "+P+"px)",...GS(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:P}},[n,o,A.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:L,refs:V,elements:A,floatingStyles:M}),[c,L,V,A,M])}const gR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:i}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?jm({element:a.current,padding:i}).fn(n):{}:a?jm({element:a,padding:i}).fn(n):{}}}},mR=(e,t)=>{const n=lR(e);return{name:n.name,fn:n.fn,options:[e,t]}},yR=(e,t)=>{const n=oR(e);return{name:n.name,fn:n.fn,options:[e,t]}},bR=(e,t)=>({fn:fR(e).fn,options:[e,t]}),_R=(e,t)=>{const n=sR(e);return{name:n.name,fn:n.fn,options:[e,t]}},SR=(e,t)=>{const n=uR(e);return{name:n.name,fn:n.fn,options:[e,t]}},xR=(e,t)=>{const n=cR(e);return{name:n.name,fn:n.fn,options:[e,t]}},OR=(e,t)=>{const n=gR(e);return{name:n.name,fn:n.fn,options:[e,t]}};var ER=Object.defineProperty,TR=(e,t)=>ER(e,"name",{value:t,configurable:!0}),AR=y.forwardRef(TR(function(t,n){const{children:a,width:i=10,height:r=5,...l}=t;return O.jsx(Ae.svg,{...l,ref:n,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?a:O.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),wR=AR,CR=Object.defineProperty,RR=(e,t)=>CR(e,"name",{value:t,configurable:!0});function KS(e){const[t,n]=y.useState(void 0);return We(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let l,o;if("borderBoxSize"in r){const s=r.borderBoxSize,u=Array.isArray(s)?s[0]:s;l=u.inlineSize,o=u.blockSize}else l=e.offsetWidth,o=e.offsetHeight;n({width:l,height:o})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}RR(KS,"useSize");var NR=Object.defineProperty,Yn=(e,t)=>NR(e,"name",{value:t,configurable:!0}),qS="Popper",[kS,zu]=Si(qS),[MR,XS]=kS(qS),DR=Yn(e=>{const{__scopePopper:t,children:n}=e,[a,i]=y.useState(null),[r,l]=y.useState(void 0);return O.jsx(MR,{scope:t,anchor:a,onAnchorChange:i,placementState:r,setPlacementState:l,children:n})},"Popper"),jR="PopperAnchor",LR=y.forwardRef(Yn(function(t,n){const{__scopePopper:a,virtualRef:i,...r}=t,l=XS(jR,a),o=y.useRef(null),s=l.onAnchorChange,u=y.useCallback(_=>{o.current=_,_&&s(_)},[s]),c=Te(n,u),f=y.useRef(null);y.useEffect(()=>{if(!i)return;const _=f.current;f.current=i.current,_!==f.current&&s(f.current)});const d=l.placementState&&Uu(l.placementState),h=d==null?void 0:d[0],g=d==null?void 0:d[1];return i?null:O.jsx(Ae.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...r,ref:c})},"PopperAnchor")),QS="PopperContent",[zR,UR]=kS(QS),BR=y.forwardRef(Yn(function(t,n){var be,et,ve,ie,ue,tn,nn;const{__scopePopper:a,side:i="bottom",sideOffset:r=0,align:l="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:_,...S}=t,p=XS(QS,a),[v,m]=y.useState(null),b=Te(n,m),[x,T]=y.useState(null),E=KS(x),C=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,N=i+(l!=="center"?"-"+l:""),H=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(c)?c:[c],L=j.length>0,U={padding:H,boundary:j.filter(ZS),altBoundary:L},{refs:V,floatingStyles:A,placement:M,isPositioned:D,middlewareData:B}=vR({strategy:"fixed",placement:N,whileElementsMounted:Yn((...Ba)=>rR(...Ba,{animationFrame:g==="always"}),"whileElementsMounted"),elements:{reference:p.anchor},middleware:[mR({mainAxis:r+R,alignmentAxis:o}),u&&yR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?bR():void 0,...U}),u&&_R({...U}),SR({...U,apply:Yn(({elements:Ba,rects:wi,availableWidth:Yr,availableHeight:T1})=>{const{width:A1,height:w1}=wi.reference,fo=Ba.floating.style;fo.setProperty("--radix-popper-available-width",`${Yr}px`),fo.setProperty("--radix-popper-available-height",`${T1}px`),fo.setProperty("--radix-popper-anchor-width",`${A1}px`),fo.setProperty("--radix-popper-anchor-height",`${w1}px`)},"apply")}),x&&OR({element:x,padding:s}),$R({arrowWidth:C,arrowHeight:R}),h&&xR({strategy:"referenceHidden",...U,boundary:L?U.boundary:void 0})]}),P=p.setPlacementState;We(()=>(P(M),()=>{P(void 0)}),[M,P]);const[ee,ne]=Uu(M),he=ht(_);We(()=>{D&&(he==null||he())},[D,he]);const we=(be=B.arrow)==null?void 0:be.x,Ne=(et=B.arrow)==null?void 0:et.y,Sn=((ve=B.arrow)==null?void 0:ve.centerOffset)!==0,[Ua,X]=y.useState();return We(()=>{v&&X(window.getComputedStyle(v).zIndex)},[v]),O.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:D?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ua,"--radix-popper-transform-origin":[(ie=B.transformOrigin)==null?void 0:ie.x,(ue=B.transformOrigin)==null?void 0:ue.y].join(" "),...((tn=B.hide)==null?void 0:tn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:O.jsx(zR,{scope:a,placedSide:ee,placedAlign:ne,onArrowChange:T,arrowX:we,arrowY:Ne,shouldHideArrow:Sn,children:O.jsx(Ae.div,{"data-side":ee,"data-align":ne,...S,ref:b,style:{...S.style,animation:D?(nn=S.style)==null?void 0:nn.animation:"none"}})})})},"PopperContent")),HR="PopperArrow",VR={top:"bottom",right:"left",bottom:"top",left:"right"},PR=y.forwardRef(Yn(function(t,n){const{__scopePopper:a,...i}=t,r=UR(HR,a),l=VR[r.placedSide];return O.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:O.jsx(wR,{...i,ref:n,style:{...i.style,display:"block"}})})},"PopperArrow"));function ZS(e){return e!==null}Yn(ZS,"isNotNull");var $R=Yn(e=>({name:"transformOrigin",options:e,fn(t){var S,p,v;const{placement:n,rects:a,middlewareData:i}=t,l=((S=i.arrow)==null?void 0:S.centerOffset)!==0,o=l?0:e.arrowWidth,s=l?0:e.arrowHeight,[u,c]=Uu(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((p=i.arrow)==null?void 0:p.x)??0)+o/2,h=(((v=i.arrow)==null?void 0:v.y)??0)+s/2;let g="",_="";return u==="bottom"?(g=l?f:`${d}px`,_=`${-s}px`):u==="top"?(g=l?f:`${d}px`,_=`${a.floating.height+s}px`):u==="right"?(g=`${-s}px`,_=l?f:`${h}px`):u==="left"&&(g=`${a.floating.width+s}px`,_=l?f:`${h}px`),{data:{x:g,y:_}}}}),"transformOrigin");function Uu(e){const[t,n="center"]=e.split("-");return[t,n]}Yn(Uu,"getSideAndAlignFromPlacement");var FS=DR,IS=LR,JS=BR,YR=PR,GR=Object.defineProperty,KR=(e,t)=>GR(e,"name",{value:t,configurable:!0}),cv=y.forwardRef(KR(function(t,n){var s;const{container:a,...i}=t,[r,l]=y.useState(!1);We(()=>l(!0),[]);const o=a||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?Ra.createPortal(O.jsx(Ae.div,{...i,ref:n}),o):null},"Portal")),qR=Object.defineProperty,In=(e,t)=>qR(e,"name",{value:t,configurable:!0});function WS(e,t){return y.useReducer((n,a)=>t[n][a]??n,e)}In(WS,"useStateMachine");var Bu=In(e=>{const{present:t,children:n}=e,a=ex(t),i=typeof n=="function"?n({present:a.isPresent}):y.Children.only(n),r=tx(a.ref,nx(i));return typeof n=="function"||a.isPresent?y.cloneElement(i,{ref:r}):null},"Presence");function ex(e){const[t,n]=y.useState(),a=y.useRef(null),i=y.useRef(e),r=y.useRef("none"),l=y.useRef(void 0),o=e?"mounted":"unmounted",[s,u]=WS(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{s==="mounted"?(r.current=l.current??Hi(a.current),l.current=void 0):r.current="none"},[s]),We(()=>{const c=a.current,f=i.current;if(f!==e){const h=r.current,g=Hi(c);e?(l.current=g,u("MOUNT")):g==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),We(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,d=In(g=>{const S=Hi(a.current).includes(CSS.escape(g.animationName));if(g.target===t&&S&&(u("ANIMATION_END"),!i.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},"handleAnimationEnd"),h=In(g=>{g.target===t&&(r.current=Hi(a.current))},"handleAnimationStart");return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:y.useCallback(c=>{if(c){const f=getComputedStyle(c);a.current=f,l.current=Hi(f)}else a.current=null;n(c)},[])}}In(ex,"usePresence");function _d(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}In(_d,"setRef");function tx(...e){const t=y.useRef(e);return t.current=e,y.useCallback(n=>{const a=t.current;let i=!1;const r=a.map(l=>{const o=_d(l,n);return!i&&typeof o=="function"&&(i=!0),o});if(i)return()=>{for(let l=0;l<r.length;l++){const o=r[l];typeof o=="function"?o():_d(a[l],null)}}},[])}In(tx,"useStableComposedRefs");function Hi(e){return(e==null?void 0:e.animationName)||"none"}In(Hi,"getAnimationName");function nx(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}In(nx,"getElementRef");var kR=Object.defineProperty,XR=(e,t)=>kR(e,"name",{value:t,configurable:!0}),zm=Gl[" useEffectEvent ".trim().toString()],Um=Gl[" useInsertionEffect ".trim().toString()];function ax(e){if(typeof zm=="function")return zm(e);const t=y.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Um=="function"?Um(()=>{t.current=e}):We(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}XR(ax,"useEffectEvent");var QR=Object.defineProperty,so=(e,t)=>QR(e,"name",{value:t,configurable:!0}),ZR=Gl[" useInsertionEffect ".trim().toString()]||We;function Pl({prop:e,defaultProp:t,onChange:n=so(()=>{},"onChange"),caller:a}){const[i,r,l]=ix({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:i,u=y.useCallback(c=>{var f;if(o){const d=rx(c)?c(e):c;d!==e&&((f=l.current)==null||f.call(l,d))}else r(c)},[o,e,r,l]);return[s,u]}so(Pl,"useControllableState");function ix({defaultProp:e,onChange:t}){const[n,a]=y.useState(e),i=y.useRef(n),r=y.useRef(t);return ZR(()=>{r.current=t},[t]),y.useEffect(()=>{var l;i.current!==n&&((l=r.current)==null||l.call(r,n),i.current=n)},[n,i]),[n,a,r]}so(ix,"useUncontrolledState");function rx(e){return typeof e=="function"}so(rx,"isFunction");var Bm=Symbol("RADIX:SYNC_STATE");function FR(e,t,n,a){const{prop:i,defaultProp:r,onChange:l,caller:o}=t,s=i!==void 0,u=ax(l),c=[{...n,state:r}];a&&c.push(a);const[f,d]=y.useReducer((S,p)=>{if(p.type===Bm)return{...S,state:p.state};const v=e(S,p);return s&&!Object.is(v.state,S.state)&&u(v.state),v},...c),h=f.state,g=y.useRef(h);y.useEffect(()=>{g.current!==h&&(g.current=h,s||u(h))},[h,g,s]);const _=y.useMemo(()=>i!==void 0?{...f,state:i}:f,[f,i]);return y.useEffect(()=>{s&&!Object.is(i,f.state)&&d({type:Bm,state:i})},[i,f.state,s]),[_,d]}so(FR,"useControllableStateReducer");var IR=Object.defineProperty,JR=(e,t)=>IR(e,"name",{value:t,configurable:!0}),lx=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"}),fv=y.forwardRef(JR(function(t,n){return O.jsx(Ae.span,{...t,ref:n,style:{...lx,...t.style}})},"VisuallyHidden")),WR=fv,e2=Object.defineProperty,Pe=(e,t)=>e2(e,"name",{value:t,configurable:!0}),[dv,uL]=Si("Tooltip",[zu]),Hu=zu(),t2="TooltipProvider",n2=700,Sd="tooltip.open",[a2,hv]=dv(t2),i2=Pe(e=>{const{__scopeTooltip:t,delayDuration:n=n2,skipDelayDuration:a=300,disableHoverableContent:i=!1,children:r}=e,l=y.useRef(!0),o=y.useRef(!1),s=y.useRef(0);return y.useEffect(()=>{const u=s.current;return()=>window.clearTimeout(u)},[]),O.jsx(a2,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:y.useCallback(()=>{a<=0||(window.clearTimeout(s.current),l.current=!1)},[a]),onClose:y.useCallback(()=>{a<=0||(window.clearTimeout(s.current),s.current=window.setTimeout(()=>l.current=!0,a))},[a]),isPointerInTransitRef:o,onPointerInTransitChange:y.useCallback(u=>{o.current=u},[]),disableHoverableContent:i,children:r})},"TooltipProvider"),xd="Tooltip",[r2,uo]=dv(xd),l2=Pe(e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:i,onOpenChange:r,disableHoverableContent:l,delayDuration:o}=e,s=hv(xd,e.__scopeTooltip),u=Hu(t),[c,f]=y.useState(null),[d,h]=y.useState(void 0),g=Ru(),_=y.useRef(0),S=l??s.disableHoverableContent,p=o??s.delayDuration,v=y.useRef(!1),[m,b]=Pl({prop:a,defaultProp:i??!1,onChange:Pe(N=>{N?(s.onOpen(),document.dispatchEvent(new CustomEvent(Sd))):s.onClose(),r==null||r(N)},"onChange"),caller:xd}),x=y.useMemo(()=>m?v.current?"delayed-open":"instant-open":"closed",[m]),T=y.useCallback(()=>{window.clearTimeout(_.current),_.current=0,v.current=!1,b(!0)},[b]),E=y.useCallback(()=>{window.clearTimeout(_.current),_.current=0,b(!1)},[b]),C=y.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{v.current=!0,b(!0),_.current=0},p)},[p,b]);y.useEffect(()=>()=>{_.current&&(window.clearTimeout(_.current),_.current=0)},[]);const R=d??g;return O.jsx(FS,{...u,children:O.jsx(r2,{scope:t,contentId:R,setContentId:h,open:m,stateAttribute:x,trigger:c,onTriggerChange:f,onTriggerEnter:y.useCallback(()=>{s.isOpenDelayedRef.current?C():T()},[s.isOpenDelayedRef,C,T]),onTriggerLeave:y.useCallback(()=>{S?E():(window.clearTimeout(_.current),_.current=0)},[E,S]),onOpen:T,onClose:E,disableHoverableContent:S,children:n})})},"Tooltip"),Hm="TooltipTrigger",o2=y.forwardRef(Pe(function(t,n){const{__scopeTooltip:a,...i}=t,r=uo(Hm,a),l=hv(Hm,a),o=Hu(a),s=y.useRef(null),u=Te(n,s,r.onTriggerChange),c=y.useRef(!1),f=y.useRef(!1),d=y.useCallback(()=>c.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),O.jsx(IS,{asChild:!0,...o,children:O.jsx(Ae.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...i,ref:u,onPointerMove:W(t.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!l.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:W(t.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:W(t.onPointerDown,()=>{r.open&&r.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:W(t.onFocus,()=>{c.current||r.onOpen()}),onBlur:W(t.onBlur,r.onClose),onClick:W(t.onClick,r.onClose)})})},"TooltipTrigger")),ox="TooltipPortal",[s2,u2]=dv(ox,{forceMount:void 0}),c2=Pe(e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:i}=e,r=uo(ox,t);return O.jsx(s2,{scope:t,forceMount:n,children:O.jsx(Bu,{present:n||r.open,children:O.jsx(cv,{asChild:!0,container:i,children:a})})})},"TooltipPortal"),$l="TooltipContent",f2=y.forwardRef(Pe(function(t,n){const a=u2($l,t.__scopeTooltip),{forceMount:i=a.forceMount,side:r="top",...l}=t,o=uo($l,t.__scopeTooltip);return O.jsx(Bu,{present:i||o.open,children:o.disableHoverableContent?O.jsx(sx,{side:r,...l,ref:n}):O.jsx(d2,{side:r,...l,ref:n})})},"TooltipContent")),d2=y.forwardRef(Pe(function(t,n){const a=uo($l,t.__scopeTooltip),i=hv($l,t.__scopeTooltip),r=y.useRef(null),l=Te(n,r),[o,s]=y.useState(null),{trigger:u,onClose:c}=a,f=r.current,{onPointerInTransitChange:d}=i,h=y.useCallback(()=>{s(null),d(!1)},[d]),g=y.useCallback((_,S)=>{const p=_.currentTarget,v={x:_.clientX,y:_.clientY},m=ux(v,p.getBoundingClientRect()),b=cx(v,m),x=fx(S.getBoundingClientRect()),T=hx([...b,...x]);s(T),d(!0)},[d]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(u&&f){const _=Pe(p=>g(p,f),"handleTriggerLeave"),S=Pe(p=>g(p,u),"handleContentLeave");return u.addEventListener("pointerleave",_),f.addEventListener("pointerleave",S),()=>{u.removeEventListener("pointerleave",_),f.removeEventListener("pointerleave",S)}}},[u,f,g,h]),y.useEffect(()=>{if(o){const _=Pe(S=>{const p=S.target,v={x:S.clientX,y:S.clientY},m=(u==null?void 0:u.contains(p))||(f==null?void 0:f.contains(p)),b=!dx(v,o);m?h():b&&(h(),c())},"handleTrackPointerGrace");return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[u,f,o,c,h]),O.jsx(sx,{...t,ref:l})},"TooltipContentHoverable")),h2=AS("TooltipContent"),sx=y.forwardRef(Pe(function(t,n){const{__scopeTooltip:a,children:i,"aria-label":r,id:l,onEscapeKeyDown:o,onPointerDownOutside:s,...u}=t,c=uo($l,a),f=Hu(a),{onClose:d}=c;y.useEffect(()=>(document.addEventListener(Sd,d),()=>document.removeEventListener(Sd,d)),[d]),y.useEffect(()=>{if(c.trigger){const g=Pe(_=>{_.target instanceof Node&&_.target.contains(c.trigger)&&d()},"handleScroll");return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[c.trigger,d]);const{setContentId:h}=c;return We(()=>(h(l),()=>{h(void 0)}),[l,h]),O.jsx(nv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:g=>g.preventDefault(),onDismiss:d,children:O.jsxs(JS,{"data-state":c.stateAttribute,role:r?void 0:"tooltip",id:r?void 0:c.contentId,...f,...u,ref:n,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[O.jsx(h2,{children:i}),r?O.jsx(WR,{id:c.contentId,role:"tooltip",children:r}):null]})})},"TooltipContentImpl")),p2=y.forwardRef(Pe(function(t,n){const{__scopeTooltip:a,...i}=t,r=Hu(a);return O.jsx(YR,{...r,...i,ref:n})},"TooltipArrow"));function ux(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,a,i,r)){case r:return"left";case i:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}Pe(ux,"getExitSideFromRect");function cx(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}Pe(cx,"getPaddedExitPoints");function fx(e){const{top:t,right:n,bottom:a,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:a},{x:i,y:a}]}Pe(fx,"getPointsFromRect");function dx(e,t){const{x:n,y:a}=e;let i=!1;for(let r=0,l=t.length-1;r<t.length;l=r++){const o=t[r],s=t[l],u=o.x,c=o.y,f=s.x,d=s.y;c>a!=d>a&&n<(f-u)*(a-c)/(d-c)+u&&(i=!i)}return i}Pe(dx,"isPointInPolygon");function hx(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),px(t)}Pe(hx,"getHull");function px(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const i=e[a];for(;t.length>=2;){const r=t[t.length-1],l=t[t.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const i=e[a];for(;n.length>=2;){const r=n[n.length-1],l=n[n.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Pe(px,"getHullPresorted");var v2=i2,Vm=l2,Pm=o2,$m=c2,Ym=f2,Gm=p2,g2=Object.defineProperty,Ke=(e,t)=>g2(e,"name",{value:t,configurable:!0});function pv(e){const t=e+"CollectionProvider",[n,a]=Si(t),[i,r]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=Ke(_=>{const{scope:S,children:p}=_,v=y.useRef(null),m=y.useRef(new Map).current;return O.jsx(i,{scope:S,itemMap:m,collectionRef:v,children:p})},"CollectionProvider");l.displayName=t;const o=e+"CollectionSlot",s=oi(o),u=y.forwardRef((_,S)=>{const{scope:p,children:v}=_,m=r(o,p),b=Te(S,m.collectionRef);return O.jsx(s,{ref:b,children:v})});u.displayName=o;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=oi(c),h=y.forwardRef((_,S)=>{const{scope:p,children:v,...m}=_,b=y.useRef(null),x=Te(S,b),T=r(c,p);return y.useEffect(()=>(T.itemMap.set(b,{ref:b,...m}),()=>void T.itemMap.delete(b))),O.jsx(d,{[f]:"",ref:x,children:v})});h.displayName=c;function g(_){const S=r(e+"CollectionConsumer",_);return y.useCallback(()=>{const v=S.collectionRef.current;if(!v)return[];const m=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(S.itemMap.values()).sort((T,E)=>m.indexOf(T.ref.current)-m.indexOf(E.ref.current))},[S.collectionRef,S.itemMap])}return Ke(g,"useCollection"),[{Provider:l,Slot:u,ItemSlot:h},g,a]}Ke(pv,"createCollection");var Km=new WeakMap,je,gt,Kc=(gt=class extends Map{constructor(n){super(n);Mv(this,je);Fu(this,je,[...super.keys()]),Km.set(this,!0)}set(n,a){return Km.get(this)&&(this.has(n)?tt(this,je)[tt(this,je).indexOf(n)]=n:tt(this,je).push(n)),super.set(n,a),this}insert(n,a,i){const r=this.has(a),l=tt(this,je).length,o=vv(n);let s=o>=0?o:l+o;const u=s<0||s>=l?-1:s;if(u===this.size||r&&u===this.size-1||u===-1)return this.set(a,i),this;const c=this.size+(r?0:1);o<0&&s++;const f=[...tt(this,je)];let d,h=!1;for(let g=s;g<c;g++)if(s===g){let _=f[g];f[g]===a&&(_=f[g+1]),r&&this.delete(a),d=this.get(_),this.set(a,i)}else{!h&&f[g-1]===a&&(h=!0);const _=f[h?g:g-1],S=d;d=this.get(_),this.delete(_),this.set(_,S)}return this}with(n,a,i){const r=new gt(this);return r.insert(n,a,i),r}before(n){const a=tt(this,je).indexOf(n)-1;if(!(a<0))return this.entryAt(a)}setBefore(n,a,i){const r=tt(this,je).indexOf(n);return r===-1?this:this.insert(r,a,i)}after(n){let a=tt(this,je).indexOf(n);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(n,a,i){const r=tt(this,je).indexOf(n);return r===-1?this:this.insert(r+1,a,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Fu(this,je,[]),super.clear()}delete(n){const a=super.delete(n);return a&&tt(this,je).splice(tt(this,je).indexOf(n),1),a}deleteAt(n){const a=this.keyAt(n);return a!==void 0?this.delete(a):!1}at(n){const a=ls(tt(this,je),n);if(a!==void 0)return this.get(a)}entryAt(n){const a=ls(tt(this,je),n);if(a!==void 0)return[a,this.get(a)]}indexOf(n){return tt(this,je).indexOf(n)}keyAt(n){return ls(tt(this,je),n)}from(n,a){const i=this.indexOf(n);if(i===-1)return;let r=i+a;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(n,a){const i=this.indexOf(n);if(i===-1)return;let r=i+a;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(n,a){let i=0;for(const r of this){if(Reflect.apply(n,a,[r,i,this]))return r;i++}}findIndex(n,a){let i=0;for(const r of this){if(Reflect.apply(n,a,[r,i,this]))return i;i++}return-1}filter(n,a){const i=[];let r=0;for(const l of this)Reflect.apply(n,a,[l,r,this])&&i.push(l),r++;return new gt(i)}map(n,a){const i=[];let r=0;for(const l of this)i.push([l[0],Reflect.apply(n,a,[l,r,this])]),r++;return new gt(i)}reduce(...n){const[a,i]=n;let r=0,l=i??this.at(0);for(const o of this)r===0&&n.length===1?l=o:l=Reflect.apply(a,this,[l,o,r,this]),r++;return l}reduceRight(...n){const[a,i]=n;let r=i??this.at(-1);for(let l=this.size-1;l>=0;l--){const o=this.at(l);l===this.size-1&&n.length===1?r=o:r=Reflect.apply(a,this,[r,o,l,this])}return r}toSorted(n){const a=[...this.entries()].sort(n);return new gt(a)}toReversed(){const n=new gt;for(let a=this.size-1;a>=0;a--){const i=this.keyAt(a),r=this.get(i);n.set(i,r)}return n}toSpliced(...n){const a=[...this.entries()];return a.splice(...n),new gt(a)}slice(n,a){const i=new gt;let r=this.size-1;if(n===void 0)return i;n<0&&(n=n+this.size),a!==void 0&&a>0&&(r=a-1);for(let l=n;l<=r;l++){const o=this.keyAt(l),s=this.get(o);i.set(o,s)}return i}every(n,a){let i=0;for(const r of this){if(!Reflect.apply(n,a,[r,i,this]))return!1;i++}return!0}some(n,a){let i=0;for(const r of this){if(Reflect.apply(n,a,[r,i,this]))return!0;i++}return!1}},je=new WeakMap,Ke(gt,"OrderedDict"),gt);function ls(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=vx(e,t);return n===-1?void 0:e[n]}Ke(ls,"at");function vx(e,t){const n=e.length,a=vv(t),i=a>=0?a:n+a;return i<0||i>=n?-1:i}Ke(vx,"toSafeIndex");function vv(e){return e!==e||e===0?0:Math.trunc(e)}Ke(vv,"toSafeInteger");function m2(e){const t=e+"CollectionProvider",[n,a]=Si(t),[i,r]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Kc,setItemMap:Ke(()=>{},"setItemMap")}),l=Ke(({state:m,...b})=>m?O.jsx(s,{...b,state:m}):O.jsx(o,{...b}),"CollectionProvider");l.displayName=t;const o=Ke(m=>{const b=S();return O.jsx(s,{...m,state:b})},"CollectionInit");o.displayName=t+"Init";const s=Ke(m=>{const{scope:b,children:x,state:T}=m,E=y.useRef(null),[C,R]=y.useState(null),N=Te(E,R),[H,j]=T;return y.useEffect(()=>{if(!C)return;const L=yx(()=>{});return L.observe(C,{childList:!0,subtree:!0}),()=>{L.disconnect()}},[C]),O.jsx(i,{scope:b,itemMap:H,setItemMap:j,collectionRef:N,collectionRefObject:E,collectionElement:C,children:x})},"CollectionProviderImpl");s.displayName=t+"Impl";const u=e+"CollectionSlot",c=oi(u),f=y.forwardRef((m,b)=>{const{scope:x,children:T}=m,E=r(u,x),C=Te(b,E.collectionRef);return O.jsx(c,{ref:C,children:T})});f.displayName=u;const d=e+"CollectionItemSlot",h="data-radix-collection-item",g=oi(d),_=y.forwardRef((m,b)=>{const{scope:x,children:T,...E}=m,C=y.useRef(null),[R,N]=y.useState(null),H=Te(b,C,N),j=r(d,x),{setItemMap:L}=j,U=y.useRef(E);gx(U.current,E)||(U.current=E);const V=U.current;return y.useEffect(()=>{const A=V;return L(M=>R?M.has(R)?M.set(R,{...A,element:R}).toSorted(Od):(M.set(R,{...A,element:R}),M.toSorted(Od)):M),()=>{L(M=>!R||!M.has(R)?M:(M.delete(R),new Kc(M)))}},[R,V,L]),O.jsx(g,{[h]:"",ref:H,children:T})});_.displayName=d;function S(){return y.useState(new Kc)}Ke(S,"useInitCollection");function p(m){const{itemMap:b}=r(e+"CollectionConsumer",m);return b}return Ke(p,"useCollection"),[{Provider:l,Slot:f,ItemSlot:_},{createCollectionScope:a,useCollection:p,useInitCollection:S}]}Ke(m2,"createCollection");function gx(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||e[i]!==t[i])return!1;return!0}Ke(gx,"shallowEqual");function mx(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Ke(mx,"isElementPreceding");function Od(e,t){return!e[1].element||!t[1].element?0:mx(e[1].element,t[1].element)?-1:1}Ke(Od,"sortByDocumentPosition");function yx(e){return new MutationObserver(n=>{for(const a of n)if(a.type==="childList"){e();return}})}Ke(yx,"getChildListObserver");var y2=Object.defineProperty,ge=(e,t)=>y2(e,"name",{value:t,configurable:!0}),bx="ToastProvider",[gv,_x,b2]=pv("Toast"),[Sx,cL]=Si("Toast",[b2]),[_2,Vu]=Sx(bx),S2=ge(e=>{const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:i="right",swipeThreshold:r=50,announcerContainer:l,children:o}=e,[s,u]=y.useState(null),[c,f]=y.useState(0),d=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${bx}\`. Expected non-empty \`string\`.`),O.jsx(gv.Provider,{scope:t,children:O.jsx(_2,{scope:t,label:n,duration:a,swipeDirection:i,swipeThreshold:r,toastCount:c,viewport:s,onViewportChange:u,onToastAdd:y.useCallback(()=>f(h=>h+1),[]),onToastRemove:y.useCallback(()=>f(h=>h-1),[]),isClosePausedRef:d,announcerContainer:l,children:o})})},"ToastProvider"),x2="ToastViewport",O2=["F8"],Ed="toast.viewportPause",Td="toast.viewportResume",E2=y.forwardRef(ge(function(t,n){const{__scopeToast:a,hotkey:i=O2,label:r="Notifications ({hotkey})",...l}=t,o=Vu(x2,a),s=_x(a),u=y.useRef(null),c=y.useRef(null),f=y.useRef(null),d=y.useRef(null),h=Te(n,d,o.onViewportChange),g=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=o.toastCount>0;y.useEffect(()=>{const p=ge(v=>{var b;i.length!==0&&i.every(x=>v[x]||v.code===x)&&((b=d.current)==null||b.focus())},"handleKeyDown");return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[i]),y.useEffect(()=>{const p=u.current,v=d.current;if(_&&p&&v){const m=ge(()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(Ed);v.dispatchEvent(E),o.isClosePausedRef.current=!0}},"handlePause"),b=ge(()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(Td);v.dispatchEvent(E),o.isClosePausedRef.current=!1}},"handleResume"),x=ge(E=>{!p.contains(E.relatedTarget)&&b()},"handleFocusOutResume"),T=ge(()=>{p.contains(document.activeElement)||b()},"handlePointerLeaveResume");return p.addEventListener("focusin",m),p.addEventListener("focusout",x),p.addEventListener("pointermove",m),p.addEventListener("pointerleave",T),window.addEventListener("blur",m),window.addEventListener("focus",b),()=>{p.removeEventListener("focusin",m),p.removeEventListener("focusout",x),p.removeEventListener("pointermove",m),p.removeEventListener("pointerleave",T),window.removeEventListener("blur",m),window.removeEventListener("focus",b)}}},[_,o.isClosePausedRef]);const S=y.useCallback(({tabbingDirection:p})=>{const m=s().map(b=>{const x=b.ref.current,T=[x,...Ex(x)];return p==="forwards"?T:T.reverse()});return(p==="forwards"?m.reverse():m).flat()},[s]);return y.useEffect(()=>{const p=d.current;if(p){const v=ge(m=>{var T,E,C;const b=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!b){const R=document.activeElement,N=m.shiftKey;if(m.target===p&&N){(T=c.current)==null||T.focus();return}const L=S({tabbingDirection:N?"backwards":"forwards"}),U=L.findIndex(V=>V===R);os(L.slice(U+1))?m.preventDefault():N?(E=c.current)==null||E.focus():(C=f.current)==null||C.focus()}},"handleKeyDown");return p.addEventListener("keydown",v),()=>p.removeEventListener("keydown",v)}},[s,S]),O.jsxs(pC,{ref:u,role:"region","aria-label":r.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&O.jsx(qm,{ref:c,onFocusFromOutsideViewport:()=>{const p=S({tabbingDirection:"forwards"});os(p)}}),O.jsx(gv.Slot,{scope:a,children:O.jsx(Ae.ol,{tabIndex:-1,...l,ref:h})}),_&&O.jsx(qm,{ref:f,onFocusFromOutsideViewport:()=>{const p=S({tabbingDirection:"backwards"});os(p)}})]})},"ToastViewport")),T2="ToastFocusProxy",qm=y.forwardRef(ge(function(t,n){const{__scopeToast:a,onFocusFromOutsideViewport:i,...r}=t,l=Vu(T2,a);return O.jsx(fv,{tabIndex:0,...r,ref:n,style:{position:"fixed"},onFocus:o=>{var c;const s=o.relatedTarget;!((c=l.viewport)!=null&&c.contains(s))&&i()}})},"ToastFocusProxy")),Pu="Toast",A2="toast.swipeStart",w2="toast.swipeMove",C2="toast.swipeCancel",R2="toast.swipeEnd",N2=y.forwardRef(ge(function(t,n){const{forceMount:a,open:i,defaultOpen:r,onOpenChange:l,...o}=t,[s,u]=Pl({prop:i,defaultProp:r??!0,onChange:l,caller:Pu});return O.jsx(Bu,{present:a||s,children:O.jsx(j2,{open:s,...o,ref:n,onClose:()=>u(!1),onPause:ht(t.onPause),onResume:ht(t.onResume),onSwipeStart:W(t.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:W(t.onSwipeMove,c=>{const{x:f,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:W(t.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:W(t.onSwipeEnd,c=>{const{x:f,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),u(!1)})})})},"Toast")),[M2,D2]=Sx(Pu,{onClose(){}}),j2=y.forwardRef(ge(function(t,n){const{__scopeToast:a,type:i="foreground",duration:r,open:l,onClose:o,onEscapeKeyDown:s,onPause:u,onResume:c,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:g,..._}=t,S=Vu(Pu,a),p=_x(a),[v,m]=y.useState(null),b=Te(n,m),x=y.useRef(null),T=y.useRef(null),E=r||S.duration,C=y.useRef(0),R=y.useRef(E),N=y.useRef(0),{onToastAdd:H,onToastRemove:j}=S,L=ht(()=>{var M;(v==null?void 0:v.contains(document.activeElement))&&((M=S.viewport)==null||M.focus()),o()}),U=y.useCallback(A=>{!A||A===1/0||(window.clearTimeout(N.current),C.current=new Date().getTime(),N.current=window.setTimeout(L,A))},[L]);y.useEffect(()=>{const A=S.viewport;if(A){const M=ge(()=>{U(R.current),c==null||c()},"handleResume"),D=ge(()=>{const B=new Date().getTime()-C.current;R.current=R.current-B,window.clearTimeout(N.current),u==null||u()},"handlePause");return A.addEventListener(Ed,D),A.addEventListener(Td,M),()=>{A.removeEventListener(Ed,D),A.removeEventListener(Td,M)}}},[S.viewport,E,u,c,U]),y.useEffect(()=>{l&&!S.isClosePausedRef.current&&U(E)},[l,E,S.isClosePausedRef,U]),y.useEffect(()=>()=>{window.clearTimeout(N.current)},[]),y.useEffect(()=>(H(),()=>j()),[H,j]);const V=y.useMemo(()=>v?mv(v):null,[v]);return S.viewport?O.jsxs(O.Fragment,{children:[V&&O.jsx(L2,{__scopeToast:a,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:V}),O.jsx(M2,{scope:a,onClose:L,children:Ra.createPortal(O.jsx(gv.ItemSlot,{scope:a,children:O.jsx(hC,{asChild:!0,onEscapeKeyDown:W(s,A=>{p().some(D=>{var B;return(B=D.ref.current)==null?void 0:B.contains(A.target)})||L()}),children:O.jsx(Ae.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":S.swipeDirection,..._,ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:W(t.onKeyDown,A=>{A.key==="Escape"&&(s==null||s(A.nativeEvent),A.nativeEvent.defaultPrevented||L())}),onPointerDown:W(t.onPointerDown,A=>{A.button===0&&(x.current={x:A.clientX,y:A.clientY})}),onPointerMove:W(t.onPointerMove,A=>{if(!x.current)return;const M=A.clientX-x.current.x,D=A.clientY-x.current.y,B=!!T.current,P=["left","right"].includes(S.swipeDirection),ee=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,ne=P?ee(0,M):0,he=P?0:ee(0,D),we=A.pointerType==="touch"?10:2,Ne={x:ne,y:he},Sn={originalEvent:A,delta:Ne};B?(T.current=Ne,nl(w2,d,Sn,{discrete:!1})):km(Ne,S.swipeDirection,we)?(T.current=Ne,nl(A2,f,Sn,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(M)>we||Math.abs(D)>we)&&(x.current=null)}),onPointerUp:W(t.onPointerUp,A=>{const M=T.current,D=A.target;if(D.hasPointerCapture(A.pointerId)&&D.releasePointerCapture(A.pointerId),T.current=null,x.current=null,M){const B=A.currentTarget,P={originalEvent:A,delta:M};km(M,S.swipeDirection,S.swipeThreshold)?nl(R2,g,P,{discrete:!0}):nl(C2,h,P,{discrete:!0}),B.addEventListener("click",ee=>ee.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null},"ToastImpl")),L2=ge(e=>{const{__scopeToast:t,children:n,...a}=e,i=Vu(Pu,t),[r,l]=y.useState(!1),[o,s]=y.useState(!1);return xx(()=>l(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>s(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:O.jsx(cv,{asChild:!0,container:i.announcerContainer||void 0,children:O.jsx(fv,{...a,children:r&&O.jsxs(O.Fragment,{children:[i.label," ",n]})})})},"ToastAnnounce"),z2=y.forwardRef(ge(function(t,n){const{__scopeToast:a,...i}=t;return O.jsx(Ae.div,{...i,ref:n})},"ToastTitle")),U2=y.forwardRef(ge(function(t,n){const{__scopeToast:a,...i}=t;return O.jsx(Ae.div,{...i,ref:n})},"ToastDescription")),B2="ToastClose",H2=y.forwardRef(ge(function(t,n){const{__scopeToast:a,...i}=t,r=D2(B2,a);return O.jsx(V2,{asChild:!0,children:O.jsx(Ae.button,{type:"button",...i,ref:n,onClick:W(t.onClick,r.onClose)})})},"ToastClose")),V2=y.forwardRef(ge(function(t,n){const{__scopeToast:a,altText:i,...r}=t;return O.jsx(Ae.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...r,ref:n})},"ToastAnnounceExclude"));function mv(e){const t=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&t.push(a.textContent),Ox(a)){const i=a.ariaHidden||a.hidden||a.style.display==="none",r=a.dataset.radixToastAnnounceExclude==="";if(!i)if(r){const l=a.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...mv(a))}}),t}ge(mv,"getAnnounceTextContent");function nl(e,t,n,{discrete:a}){const i=n.originalEvent.currentTarget,r=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?ev(i,r):i.dispatchEvent(r)}ge(nl,"handleAndDispatchCustomEvent");var km=ge((e,t,n=0)=>{const a=Math.abs(e.x),i=Math.abs(e.y),r=a>i;return t==="left"||t==="right"?r&&a>n:!r&&i>n},"isDeltaInDirection");function xx(e=()=>{}){const t=ht(e);We(()=>{let n=0,a=0;return n=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(a)}},[t])}ge(xx,"useNextFrame");function Ox(e){return e.nodeType===e.ELEMENT_NODE}ge(Ox,"isHTMLElement");function Ex(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ge(a=>{const i=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||i?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}ge(Ex,"getTabbableCandidates");function os(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}ge(os,"focusFirst");var P2=S2,$2=E2,Y2=N2,G2=z2,K2=U2,q2=H2;/**
60
- * @license lucide-react v0.564.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const Tx=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();/**
65
- * @license lucide-react v0.564.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const k2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
70
- * @license lucide-react v0.564.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const X2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase());/**
75
- * @license lucide-react v0.564.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const Xm=e=>{const t=X2(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
80
- * @license lucide-react v0.564.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */var Q2={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"};/**
85
- * @license lucide-react v0.564.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const Z2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
90
- * @license lucide-react v0.564.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const F2=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:i="",children:r,iconNode:l,...o},s)=>y.createElement("svg",{ref:s,...Q2,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:Tx("lucide",i),...!r&&!Z2(o)&&{"aria-hidden":"true"},...o},[...l.map(([u,c])=>y.createElement(u,c)),...Array.isArray(r)?r:[r]]));/**
95
- * @license lucide-react v0.564.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const Vr=(e,t)=>{const n=y.forwardRef(({className:a,...i},r)=>y.createElement(F2,{ref:r,iconNode:t,className:Tx(`lucide-${k2(Xm(e))}`,`lucide-${e}`,a),...i}));return n.displayName=Xm(e),n};/**
100
- * @license lucide-react v0.564.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const I2=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],J2=Vr("arrow-left-right",I2);/**
105
- * @license lucide-react v0.564.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const W2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ad=Vr("check",W2);/**
110
- * @license lucide-react v0.564.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const eN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ax=Vr("chevron-down",eN);/**
115
- * @license lucide-react v0.564.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const tN=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],nN=Vr("clipboard",tN);/**
120
- * @license lucide-react v0.564.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const aN=[["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"}]],iN=Vr("copy",aN);/**
125
- * @license lucide-react v0.564.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const rN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],lN=Vr("x",rN);var wd={exports:{}},Cd={exports:{}},Rd={exports:{}},Nd={exports:{}},Md={exports:{}};(function(e,t){var n=Object.prototype.toString;t=function(a){return n.call(a)},e.exports=t})(Md,Md.exports);var xi=Md.exports;(function(e,t){var n=xi;t=function(a){return n(a)==="[object Number]"},e.exports=t})(Nd,Nd.exports);var yv=Nd.exports,Dd={exports:{}};(function(e,t){var n=xi;t=function(a){var i=n(a);return i==="[object Function]"||i==="[object GeneratorFunction]"||i==="[object AsyncFunction]"},e.exports=t})(Dd,Dd.exports);var Pr=Dd.exports;(function(e,t){var n=yv,a=Pr,i=Math.pow(2,53)-1;t=function(r){if(!r)return!1;var l=r.length;return n(l)&&l>=0&&l<=i&&!a(r)},e.exports=t})(Rd,Rd.exports);var $u=Rd.exports,jd={exports:{}},Ld={exports:{}};(function(e,t){var n=Object.prototype.hasOwnProperty;t=function(a,i){return n.call(a,i)},e.exports=t})(Ld,Ld.exports);var bv=Ld.exports;(function(e,t){var n=bv;Object.keys?t=Object.keys:t=function(a){var i=[];for(var r in a)n(a,r)&&i.push(r);return i},e.exports=t})(jd,jd.exports);var Oi=jd.exports,zd={exports:{}},Ud={exports:{}};(function(e,t){t=function(n){return n===void 0},e.exports=t})(Ud,Ud.exports);var Yu=Ud.exports;(function(e,t){var n=Yu;t=function(a,i,r){if(n(i))return a;switch(r??3){case 1:return function(l){return a.call(i,l)};case 3:return function(l,o,s){return a.call(i,l,o,s)};case 4:return function(l,o,s,u){return a.call(i,l,o,s,u)}}return function(){return a.apply(i,arguments)}},e.exports=t})(zd,zd.exports);var Cx=zd.exports;(function(e,t){var n=$u,a=Oi,i=Cx;t=function(r,l,o){l=i(l,o);var s,u;if(n(r))for(s=0,u=r.length;s<u;s++)l(r[s],s,r);else{var c=a(r);for(s=0,u=c.length;s<u;s++)l(r[c[s]],c[s],r)}return r},e.exports=t})(Cd,Cd.exports);var $r=Cd.exports,Bd={exports:{}};(function(e,t){var n=xi;t=function(a){return n(a)==="[object String]"},e.exports=t})(Bd,Bd.exports);var Gu=Bd.exports,Hd={exports:{}};(function(e,t){var n=xi;Array.isArray?t=Array.isArray:t=function(a){return n(a)==="[object Array]"},e.exports=t})(Hd,Hd.exports);var Ei=Hd.exports,Vd={exports:{}};(function(e,t){t=function(n){var a=typeof n;return!!n&&(a==="function"||a==="object")},e.exports=t})(Vd,Vd.exports);var Ti=Vd.exports;(function(e,t){var n=$r,a=Gu,i=yv,r=Ei,l=Ti;t=function(){var o=[];return n(arguments,function(s){if(s){if(a(s)||i(s))return o.push(s);if(r(s))return o.push(t.apply(null,s));l(s)&&n(s,function(u,c){u&&o.push(c)})}}),o.join(" ")},e.exports=t})(wd,wd.exports);var oN=wd.exports;const qa=Ca(oN);var qc={};const K=e=>typeof e=="string",Fr=()=>{let e,t;const n=new Promise((a,i)=>{e=a,t=i});return n.resolve=e,n.reject=t,n},Qm=e=>e==null?"":""+e,sN=(e,t,n)=>{e.forEach(a=>{t[a]&&(n[a]=t[a])})},uN=/###/g,Zm=e=>e&&e.indexOf("###")>-1?e.replace(uN,"."):e,Fm=e=>!e||K(e),bl=(e,t,n)=>{const a=K(t)?t.split("."):t;let i=0;for(;i<a.length-1;){if(Fm(e))return{};const r=Zm(a[i]);!e[r]&&n&&(e[r]=new n),Object.prototype.hasOwnProperty.call(e,r)?e=e[r]:e={},++i}return Fm(e)?{}:{obj:e,k:Zm(a[i])}},Im=(e,t,n)=>{const{obj:a,k:i}=bl(e,t,Object);if(a!==void 0||t.length===1){a[i]=n;return}let r=t[t.length-1],l=t.slice(0,t.length-1),o=bl(e,l,Object);for(;o.obj===void 0&&l.length;)r=`${l[l.length-1]}.${r}`,l=l.slice(0,l.length-1),o=bl(e,l,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${r}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${r}`]=n},cN=(e,t,n,a)=>{const{obj:i,k:r}=bl(e,t,Object);i[r]=i[r]||[],i[r].push(n)},Js=(e,t)=>{const{obj:n,k:a}=bl(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,a))return n[a]},fN=(e,t,n)=>{const a=Js(e,n);return a!==void 0?a:Js(t,n)},Rx=(e,t,n)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?K(e[a])||e[a]instanceof String||K(t[a])||t[a]instanceof String?n&&(e[a]=t[a]):Rx(e[a],t[a],n):e[a]=t[a]);return e},Pa=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var dN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const hN=e=>K(e)?e.replace(/[&<>"'\/]/g,t=>dN[t]):e;class pN{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const vN=[" ",",","?","!",";"],gN=new pN(20),mN=(e,t,n)=>{t=t||"",n=n||"";const a=vN.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(a.length===0)return!0;const i=gN.getRegExp(`(${a.map(l=>l==="?"?"\\?":l).join("|")})`);let r=!i.test(e);if(!r){const l=e.indexOf(n);l>0&&!i.test(e.substring(0,l))&&(r=!0)}return r},Pd=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(n);let i=e;for(let r=0;r<a.length;){if(!i||typeof i!="object")return;let l,o="";for(let s=r;s<a.length;++s)if(s!==r&&(o+=n),o+=a[s],l=i[o],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&s<a.length-1)continue;r+=s-r+1;break}i=l}return i},Yl=e=>e==null?void 0:e.replace(/_/g,"-"),yN={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,a;(a=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||a.call(n,console,t)}};class Ws{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||yN,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,a,i){return i&&!this.debug?null:(K(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ws(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ws(this.logger,t)}}var dn=new Ws;class Ku{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const i=this.observers[a].get(n)||0;this.observers[a].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,r])=>{for(let l=0;l<r;l++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,r])=>{for(let l=0;l<r;l++)i.apply(i,[t,...n])})}}class Jm extends Ku{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,a,i={}){var u,c;const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],a&&(Array.isArray(a)?o.push(...a):K(a)&&r?o.push(...a.split(r)):o.push(a)));const s=Js(this.data,o);return!s&&!n&&!a&&t.indexOf(".")>-1&&(t=o[0],n=o[1],a=o.slice(2).join(".")),s||!l||!K(a)?s:Pd((c=(u=this.data)==null?void 0:u[t])==null?void 0:c[n],a,r)}addResource(t,n,a,i,r={silent:!1}){const l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=[t,n];a&&(o=o.concat(l?a.split(l):a)),t.indexOf(".")>-1&&(o=t.split("."),i=n,n=o[1]),this.addNamespaces(n),Im(this.data,o,i),r.silent||this.emit("added",t,n,a,i)}addResources(t,n,a,i={silent:!1}){for(const r in a)(K(a[r])||Array.isArray(a[r]))&&this.addResource(t,n,r,a[r],{silent:!0});i.silent||this.emit("added",t,n,a)}addResourceBundle(t,n,a,i,r,l={silent:!1,skipCopy:!1}){let o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),i=a,a=n,n=o[1]),this.addNamespaces(n);let s=Js(this.data,o)||{};l.skipCopy||(a=JSON.parse(JSON.stringify(a))),i?Rx(s,a,r):s={...s,...a},Im(this.data,o,s),l.silent||this.emit("added",t,n,a)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Nx={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,a,i){return e.forEach(r=>{var l;t=((l=this.processors[r])==null?void 0:l.process(t,n,a,i))??t}),t}};const Mx=Symbol("i18next/PATH_KEY");function bN(){const e=[],t=Object.create(null);let n;return t.get=(a,i)=>{var r;return(r=n==null?void 0:n.revoke)==null||r.call(n),i===Mx?e:(e.push(i),n=Proxy.revocable(a,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function sr(e,t){const{[Mx]:n}=e(bN()),a=(t==null?void 0:t.keySeparator)??".",i=(t==null?void 0:t.nsSeparator)??":";if(n.length>1&&i){const r=t==null?void 0:t.ns,l=Array.isArray(r)?r:null;if(l&&l.length>1&&l.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(a)}`}return n.join(a)}const Wm={},kc=e=>!K(e)&&typeof e!="boolean"&&typeof e!="number";class eu extends Ku{constructor(t,n={}){super(),sN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=dn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const a={...n};if(t==null)return!1;const i=this.resolve(t,a);if((i==null?void 0:i.res)===void 0)return!1;const r=kc(i.res);return!(a.returnObjects===!1&&r)}extractFromKey(t,n){let a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let r=n.ns||this.options.defaultNS||[];const l=a&&t.indexOf(a)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!mN(t,a,i);if(l&&!o){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:K(r)?[r]:r};const u=t.split(a);(a!==i||a===i&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),t=u.join(i)}return{key:t,namespaces:K(r)?[r]:r}}translate(t,n,a){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=sr(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(L=>typeof L=="function"?sr(L,{...this.options,...i}):String(L));const r=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],i),u=s[s.length-1];let c=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=i.lng||this.language,d=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return d?r?{res:`${u}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${c}${o}`:r?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:o;const h=this.resolve(t,i);let g=h==null?void 0:h.res;const _=(h==null?void 0:h.usedKey)||o,S=(h==null?void 0:h.exactUsedKey)||o,p=["[object Number]","[object Function]","[object RegExp]"],v=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!K(i.count),x=eu.hasDefaultValue(i),T=b?this.pluralResolver.getSuffix(f,i.count,i):"",E=i.ordinal&&b?this.pluralResolver.getSuffix(f,i.count,{ordinal:!1}):"",C=b&&!i.ordinal&&i.count===0,R=C&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${T}`]||i[`defaultValue${E}`]||i.defaultValue;let N=g;m&&!g&&x&&(N=R);const H=kc(N),j=Object.prototype.toString.apply(N);if(m&&N&&H&&p.indexOf(j)<0&&!(K(v)&&Array.isArray(N))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,N,{...i,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(h.res=L,h.usedParams=this.getUsedParamsDetails(i),h):L}if(l){const L=Array.isArray(N),U=L?[]:{},V=L?S:_;for(const A in N)if(Object.prototype.hasOwnProperty.call(N,A)){const M=`${V}${l}${A}`;x&&!g?U[A]=this.translate(M,{...i,defaultValue:kc(R)?R[A]:void 0,joinArrays:!1,ns:s}):U[A]=this.translate(M,{...i,joinArrays:!1,ns:s}),U[A]===M&&(U[A]=N[A])}g=U}}else if(m&&K(v)&&Array.isArray(g))g=g.join(v),g&&(g=this.extendTranslation(g,t,i,a));else{let L=!1,U=!1;!this.isValidLookup(g)&&x&&(L=!0,g=R),this.isValidLookup(g)||(U=!0,g=o);const A=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:g,M=x&&R!==g&&this.options.updateMissing;if(U||L||M){if(this.logger.log(M?"updateKey":"missingKey",f,u,o,M?R:g),l){const ee=this.resolve(o,{...i,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let D=[];const B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&B&&B[0])for(let ee=0;ee<B.length;ee++)D.push(B[ee]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(i.lng||this.language):D.push(i.lng||this.language);const P=(ee,ne,he)=>{var Ne;const we=x&&he!==g?he:A;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,u,ne,we,M,i):(Ne=this.backendConnector)!=null&&Ne.saveMissing&&this.backendConnector.saveMissing(ee,u,ne,we,M,i),this.emit("missingKey",ee,u,ne,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?D.forEach(ee=>{const ne=this.pluralResolver.getSuffixes(ee,i);C&&i[`defaultValue${this.options.pluralSeparator}zero`]&&ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&ne.push(`${this.options.pluralSeparator}zero`),ne.forEach(he=>{P([ee],o+he,i[`defaultValue${he}`]||R)})}):P(D,o,R))}g=this.extendTranslation(g,t,i,h,a),U&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${u}${c}${o}`),(U||L)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${o}`:o,L?g:void 0,i))}return r?(h.res=g,h.usedParams=this.getUsedParamsDetails(i),h):g}extendTranslation(t,n,a,i,r){var s,u;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const c=K(t)&&(((u=a==null?void 0:a.interpolation)==null?void 0:u.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const h=t.match(this.interpolator.nestingRegexp);f=h&&h.length}let d=a.replace&&!K(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,a.lng||this.language||i.usedLng,a),c){const h=t.match(this.interpolator.nestingRegexp),g=h&&h.length;f<g&&(a.nest=!1)}!a.lng&&i&&i.res&&(a.lng=this.language||i.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>(r==null?void 0:r[0])===h[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),a)),a.interpolation&&this.interpolator.reset()}const l=a.postProcess||this.options.postProcess,o=K(l)?[l]:l;return t!=null&&(o!=null&&o.length)&&a.applyPostProcessor!==!1&&(t=Nx.handle(o,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,n={}){let a,i,r,l,o;return K(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(s=>typeof s=="function"?sr(s,{...this.options,...n}):s)),t.forEach(s=>{if(this.isValidLookup(a))return;const u=this.extractFromKey(s,n),c=u.key;i=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&!K(n.count),h=d&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(K(n.context)||typeof n.context=="number")&&n.context!=="",_=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(S=>{var p,v;this.isValidLookup(a)||(o=S,!Wm[`${_[0]}-${S}`]&&((p=this.utils)!=null&&p.hasLoadedNamespace)&&!((v=this.utils)!=null&&v.hasLoadedNamespace(o))&&(Wm[`${_[0]}-${S}`]=!0,this.logger.warn(`key "${i}" for languages "${_.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(m=>{var T;if(this.isValidLookup(a))return;l=m;const b=[c];if((T=this.i18nFormat)!=null&&T.addLookupKeys)this.i18nFormat.addLookupKeys(b,c,m,S,n);else{let E;d&&(E=this.pluralResolver.getSuffix(m,n.count,n));const C=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&E.indexOf(R)===0&&b.push(c+E.replace(R,this.options.pluralSeparator)),b.push(c+E),h&&b.push(c+C)),g){const N=`${c}${this.options.contextSeparator||"_"}${n.context}`;b.push(N),d&&(n.ordinal&&E.indexOf(R)===0&&b.push(N+E.replace(R,this.options.pluralSeparator)),b.push(N+E),h&&b.push(N+C))}}let x;for(;x=b.pop();)this.isValidLookup(a)||(r=x,a=this.getResource(m,S,x,n))}))})}),{res:a,usedKey:i,exactUsedKey:r,usedLng:l,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,a,i={}){var r;return(r=this.i18nFormat)!=null&&r.getResource?this.i18nFormat.getResource(t,n,a,i):this.resourceStore.getResource(t,n,a,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!K(t.replace);let i=a?t.replace:t;if(a&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!a){i={...i};for(const r of n)delete i[r]}return i}static hasDefaultValue(t){const n="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n===a.substring(0,n.length)&&t[a]!==void 0)return!0;return!1}}class ey{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dn.create("languageUtils")}getScriptPartFromCode(t){if(t=Yl(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Yl(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(K(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(a=>{if(n)return;const i=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(a=>{if(n)return;const i=this.getScriptPartFromCode(a);if(this.isSupportedCode(i))return n=i;const r=this.getLanguagePartFromCode(a);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(l=>{if(l===r)return l;if(!(l.indexOf("-")<0&&r.indexOf("-")<0)&&(l.indexOf("-")>0&&r.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===r||l.indexOf(r)===0&&r.length>1))return l})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),K(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let a=t[n];return a||(a=t[this.getScriptPartFromCode(n)]),a||(a=t[this.formatLanguageCode(n)]),a||(a=t[this.getLanguagePartFromCode(n)]),a||(a=t.default),a||[]}toResolveHierarchy(t,n){const a=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],r=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return K(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(t))):K(t)&&r(this.formatLanguageCode(t)),a.forEach(l=>{i.indexOf(l)<0&&r(this.formatLanguageCode(l))}),i}}const ty={zero:0,one:1,two:2,few:3,many:4,other:5},ny={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class _N{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=dn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const a=Yl(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:a,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let l;try{l=new Intl.PluralRules(a,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),ny;if(!t.match(/-|_/))return ny;const s=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(s,n)}return this.pluralRulesCache[r]=l,l}needsPlural(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,a={}){return this.getSuffixes(t,a).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),a?a.resolvedOptions().pluralCategories.sort((i,r)=>ty[i]-ty[r]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,a={}){const i=this.getRule(t,a);return i?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,a))}}const ay=(e,t,n,a=".",i=!0)=>{let r=fN(e,t,n);return!r&&i&&K(n)&&(r=Pd(e,n,a),r===void 0&&(r=Pd(t,n,a))),r},Xc=e=>e.replace(/\$/g,"$$$$");class iy{constructor(t={}){var n;this.logger=dn.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:a,useRawValueToEscape:i,prefix:r,prefixEscaped:l,suffix:o,suffixEscaped:s,formatSeparator:u,unescapeSuffix:c,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:_,nestingOptionsSeparator:S,maxReplaces:p,alwaysFormat:v}=t.interpolation;this.escape=n!==void 0?n:hN,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?Pa(r):l||"{{",this.suffix=o?Pa(o):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Pa(d):h||Pa("$t("),this.nestingSuffix=g?Pa(g):_||Pa(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=p||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,a)=>(n==null?void 0:n.source)===a?(n.lastIndex=0,n):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,a,i){var h;let r,l,o;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const v=ay(n,s,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,a,{...i,...n,interpolationkey:g}):v}const _=g.split(this.formatSeparator),S=_.shift().trim(),p=_.join(this.formatSeparator).trim();return this.format(ay(n,s,S,this.options.keySeparator,this.options.ignoreJSONStructure),p,a,{...i,...n,interpolationkey:S})};this.resetRegExp();const c=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((h=i==null?void 0:i.interpolation)==null?void 0:h.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>Xc(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?Xc(this.escape(g)):Xc(g)}].forEach(g=>{for(o=0;r=g.regex.exec(t);){const _=r[1].trim();if(l=u(_),l===void 0)if(typeof c=="function"){const p=c(t,r,i);l=K(p)?p:""}else if(i&&Object.prototype.hasOwnProperty.call(i,_))l="";else if(f){l=r[0];continue}else this.logger.warn(`missed to pass in variable ${_} for interpolating ${t}`),l="";else!K(l)&&!this.useRawValueToEscape&&(l=Qm(l));const S=g.safeValue(l);if(t=t.replace(r[0],S),f?(g.regex.lastIndex+=l.length,g.regex.lastIndex-=r[0].length):g.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n,a={}){let i,r,l;const o=(s,u)=>{const c=this.nestingOptionsSeparator;if(s.indexOf(c)<0)return s;const f=s.split(new RegExp(`${Pa(c)}[ ]*{`));let d=`{${f[1]}`;s=f[0],d=this.interpolate(d,l);const h=d.match(/'/g),g=d.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!g||((g==null?void 0:g.length)??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{l=JSON.parse(d),u&&(l={...u,...l})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,_),`${s}${c}${d}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,s};for(;i=this.nestingRegexp.exec(t);){let s=[];l={...a},l=l.replace&&!K(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(s=i[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),r=n(o.call(this,i[1].trim(),l),l),r&&i[0]===t&&!K(r))return r;K(r)||(r=Qm(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),r=""),s.length&&(r=s.reduce((c,f)=>this.format(c,f,a.lng,{...a,interpolationkey:i[1].trim()}),r.trim())),t=t.replace(i[0],r),this.regexp.lastIndex=0}return t}}const SN=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const i=a[1].substring(0,a[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(l=>{if(l){const[o,...s]=l.split(":"),u=s.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},ry=e=>{const t={};return(n,a,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});const l=a+JSON.stringify(r);let o=t[l];return o||(o=e(Yl(a),i),t[l]=o),o(n)}},xN=e=>(t,n,a)=>e(Yl(n),a)(t);class ON{constructor(t={}){this.logger=dn.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const a=n.cacheInBuiltFormats?ry:xN;this.formats={number:a((i,r)=>{const l=new Intl.NumberFormat(i,{...r});return o=>l.format(o)}),currency:a((i,r)=>{const l=new Intl.NumberFormat(i,{...r,style:"currency"});return o=>l.format(o)}),datetime:a((i,r)=>{const l=new Intl.DateTimeFormat(i,{...r});return o=>l.format(o)}),relativetime:a((i,r)=>{const l=new Intl.RelativeTimeFormat(i,{...r});return o=>l.format(o,r.range||"day")}),list:a((i,r)=>{const l=new Intl.ListFormat(i,{...r});return o=>l.format(o)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ry(n)}format(t,n,a,i={}){const r=n.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(o=>o.indexOf(")")>-1)){const o=r.findIndex(s=>s.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,o)].join(this.formatSeparator)}return r.reduce((o,s)=>{var f;const{formatName:u,formatOptions:c}=SN(s);if(this.formats[u]){let d=o;try{const h=((f=i==null?void 0:i.formatParams)==null?void 0:f[i.interpolationkey])||{},g=h.locale||h.lng||i.locale||i.lng||a;d=this.formats[u](o,g,{...c,...i,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return o},t)}}const EN=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class TN extends Ku{constructor(t,n,a,i={}){var r,l;super(),this.backend=t,this.store=n,this.services=a,this.languageUtils=a.languageUtils,this.options=i,this.logger=dn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(l=(r=this.backend)==null?void 0:r.init)==null||l.call(r,a,i.backend,i)}queueLoad(t,n,a,i){const r={},l={},o={},s={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const d=`${u}|${f}`;!a.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?l[d]===void 0&&(l[d]=!0):(this.state[d]=1,c=!1,l[d]===void 0&&(l[d]=!0),r[d]===void 0&&(r[d]=!0),s[f]===void 0&&(s[f]=!0)))}),c||(o[u]=!0)}),(Object.keys(r).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(l),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(t,n,a){const i=t.split("|"),r=i[0],l=i[1];n&&this.emit("failedLoading",r,l,n),!n&&a&&this.store.addResourceBundle(r,l,a,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&a&&(this.state[t]=0);const o={};this.queue.forEach(s=>{cN(s.loaded,[r],l),EN(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(u=>{o[u]||(o[u]={});const c=s.loaded[u];c.length&&c.forEach(f=>{o[u][f]===void 0&&(o[u][f]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(s=>!s.done)}read(t,n,a,i=0,r=this.retryTimeout,l){if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:a,tried:i,wait:r,callback:l});return}this.readingCalls++;const o=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,a,i+1,r*2,l)},r);return}l(u,c)},s=this.backend[a].bind(this.backend);if(s.length===2){try{const u=s(t,n);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return s(t,n,o)}prepareLoading(t,n,a={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();K(t)&&(t=this.languageUtils.toResolveHierarchy(t)),K(n)&&(n=[n]);const r=this.queueLoad(t,n,a,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,a){this.prepareLoading(t,n,{},a)}reload(t,n,a){this.prepareLoading(t,n,{reload:!0},a)}loadOne(t,n=""){const a=t.split("|"),i=a[0],r=a[1];this.read(i,r,"read",void 0,void 0,(l,o)=>{l&&this.logger.warn(`${n}loading namespace ${r} for language ${i} failed`,l),!l&&o&&this.logger.log(`${n}loaded namespace ${r} for language ${i}`,o),this.loaded(t,l,o)})}saveMissing(t,n,a,i,r,l={},o=()=>{}){var s,u,c,f,d;if((u=(s=this.services)==null?void 0:s.utils)!=null&&u.hasLoadedNamespace&&!((f=(c=this.services)==null?void 0:c.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${a}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if((d=this.backend)!=null&&d.create){const h={...l,isUpdate:r},g=this.backend.create.bind(this.backend);if(g.length<6)try{let _;g.length===5?_=g(t,n,a,i,h):_=g(t,n,a,i),_&&typeof _.then=="function"?_.then(S=>o(null,S)).catch(o):o(null,_)}catch(_){o(_)}else g(t,n,a,i,o,h)}!t||!t[0]||this.store.addResource(t[0],n,a,i)}}}const Qc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),K(e[1])&&(t.defaultValue=e[1]),K(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(a=>{t[a]=n[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ly=e=>{var t,n;return K(e.ns)&&(e.ns=[e.ns]),K(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),K(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Lo=()=>{},AN=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},Dx="__i18next_supportNoticeShown",wN=()=>!!(typeof globalThis<"u"&&globalThis[Dx]||typeof process<"u"&&qc&&qc.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&qc),CN=()=>{typeof globalThis<"u"&&(globalThis[Dx]=!0)},RN=e=>{var t,n,a,i,r,l,o,s,u,c,f,d,h;return!!(((a=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:a.indexOf("Locize"))>0||((o=(l=(r=(i=e==null?void 0:e.modules)==null?void 0:i.backend)==null?void 0:r.constructor)==null?void 0:l.name)==null?void 0:o.indexOf("Locize"))>0||(u=(s=e==null?void 0:e.options)==null?void 0:s.backend)!=null&&u.backends&&e.options.backend.backends.some(g=>{var _,S,p;return((_=g==null?void 0:g.name)==null?void 0:_.indexOf("Locize"))>0||((p=(S=g==null?void 0:g.constructor)==null?void 0:S.name)==null?void 0:p.indexOf("Locize"))>0})||(f=(c=e==null?void 0:e.options)==null?void 0:c.backend)!=null&&f.projectId||(h=(d=e==null?void 0:e.options)==null?void 0:d.backend)!=null&&h.backendOptions&&e.options.backend.backendOptions.some(g=>g==null?void 0:g.projectId))};class _l extends Ku{constructor(t={},n){if(super(),this.options=ly(t),this.services={},this.logger=dn,this.modules={external:[]},AN(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(K(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=Qc();this.options={...a,...this.options,...ly(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!RN(this)&&!wN()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),CN());const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?dn.init(i(this.modules.logger),this.options):dn.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=ON;const c=new ey(this.options);this.store=new Jm(this.options.resources,this.options);const f=this.services;f.logger=dn,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new _N(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(f.formatter=i(u),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new iy(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new TN(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(h,...g)=>{this.emit(h,...g)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new eu(this.services,this.options),this.translator.on("*",(h,...g)=>{this.emit(h,...g)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Lo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const o=Fr(),s=()=>{const u=(c,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(f),n(c,f)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),o}loadResources(t,n=Lo){var r,l;let a=n;const i=K(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const o=[],s=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&o.indexOf(f)<0&&o.push(f)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),(l=(r=this.options.preload)==null?void 0:r.forEach)==null||l.call(r,u=>s(u)),this.services.backendConnector.load(o,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(u)})}else a(null)}reloadResources(t,n,a){const i=Fr();return typeof t=="function"&&(a=t,t=void 0),typeof n=="function"&&(a=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),a||(a=Lo),this.services.backendConnector.reload(t,n,r=>{i.resolve(),a(r)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Nx.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const a=this.languages[n];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const a=Fr();this.emit("languageChanging",t);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,s)=>{s?this.isLanguageChangingTo===t&&(i(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve((...u)=>this.t(...u)),n&&n(o,(...u)=>this.t(...u))},l=o=>{var c,f;!t&&!o&&this.services.languageDetector&&(o=[]);const s=K(o)?o:o&&o[0],u=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(K(o)?[o]:o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(f=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||f.call(c,u)),this.loadResources(u,d=>{r(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),a}getFixedT(t,n,a){const i=(r,l,...o)=>{let s;typeof l!="object"?s=this.options.overloadTranslationOptionHandler([r,l].concat(o)):s={...l},s.lng=s.lng||i.lng,s.lngs=s.lngs||i.lngs,s.ns=s.ns||i.ns,s.keyPrefix!==""&&(s.keyPrefix=s.keyPrefix||a||i.keyPrefix);const u={...this.options,...s};typeof s.keyPrefix=="function"&&(s.keyPrefix=sr(s.keyPrefix,u));const c=this.options.keySeparator||".";let f;return s.keyPrefix&&Array.isArray(r)?f=r.map(d=>(typeof d=="function"&&(d=sr(d,u)),`${s.keyPrefix}${c}${d}`)):(typeof r=="function"&&(r=sr(r,u)),f=s.keyPrefix?`${s.keyPrefix}${c}${r}`:r),this.t(f,s)};return K(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=a,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const l=(o,s)=>{const u=this.services.backendConnector.state[`${o}|${s}`];return u===-1||u===0||u===2};if(n.precheck){const o=n.precheck(this,l);if(o!==void 0)return o}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(a,t)&&(!i||l(r,t)))}loadNamespaces(t,n){const a=Fr();return this.options.ns?(K(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{a.resolve(),n&&n(i)}),a):(n&&n(),Promise.resolve())}loadLanguages(t,n){const a=Fr();K(t)&&(t=[t]);const i=this.options.preload||[],r=t.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return r.length?(this.options.preload=i.concat(r),this.loadResources(l=>{a.resolve(),n&&n(l)}),a):(n&&n(),Promise.resolve())}dir(t){var i,r;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const l=new Intl.Locale(t);if(l&&l.getTextInfo){const o=l.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=((r=this.services)==null?void 0:r.languageUtils)||new ey(Qc());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const a=new _l(t,n);return a.createInstance=_l.createInstance,a}cloneInstance(t={},n=Lo){const a=t.forkResourceStore;a&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},r=new _l(i);if((t.debug!==void 0||t.prefix!==void 0)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(o=>{r[o]=this[o]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},a){const o=Object.keys(this.store.data).reduce((s,u)=>(s[u]={...this.store.data[u]},s[u]=Object.keys(s[u]).reduce((c,f)=>(c[f]={...s[u][f]},c),s[u]),s),{});r.store=new Jm(o,i),r.services.resourceStore=r.store}if(t.interpolation){const s={...Qc().interpolation,...this.options.interpolation,...t.interpolation},u={...i,interpolation:s};r.services.interpolator=new iy(u)}return r.translator=new eu(r.services,i),r.translator.on("*",(o,...s)=>{r.emit(o,...s)}),r.init(i,n),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ke=_l.createInstance();ke.createInstance;ke.dir;ke.init;ke.loadResources;ke.reloadResources;ke.use;ke.changeLanguage;ke.getFixedT;ke.t;ke.exists;ke.setDefaultNamespace;ke.hasLoadedNamespace;ke.loadNamespaces;ke.loadLanguages;const NN=(e,t,n,a)=>{var r,l,o,s;const i=[n,{code:t,...a||{}}];if((l=(r=e==null?void 0:e.services)==null?void 0:r.logger)!=null&&l.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);ci(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(s=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&s.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},oy={},$d=(e,t,n,a)=>{ci(n)&&oy[n]||(ci(n)&&(oy[n]=new Date),NN(e,t,n,a))},jx=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Yd=(e,t,n)=>{e.loadNamespaces(t,jx(e,n))},sy=(e,t,n,a)=>{if(ci(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Yd(e,n,a);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,jx(e,a))},MN=(e,t,n={})=>!t.languages||!t.languages.length?($d(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}}),ci=e=>typeof e=="string",DN=e=>typeof e=="object"&&e!==null,jN=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,LN={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},zN=e=>LN[e],UN=e=>e.replace(jN,zN);let Gd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:UN,transDefaultProps:void 0};const BN=(e={})=>{Gd={...Gd,...e}},HN=()=>Gd;let Lx;const VN=e=>{Lx=e},PN=()=>Lx,$N={type:"3rdParty",init(e){BN(e.options.react),VN(e)}},YN=y.createContext();class GN{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const KN=(e,t)=>{if(ci(t))return t;if(DN(t)&&ci(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},qN={t:KN,ready:!1},kN=()=>()=>{},qu=(e,t={})=>{var R,N,H;const{i18n:n}=t,{i18n:a,defaultNS:i}=y.useContext(YN)||{},r=n||a||PN();r&&!r.reportNamespaces&&(r.reportNamespaces=new GN),r||$d(r,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=y.useMemo(()=>{var j;return{...HN(),...(j=r==null?void 0:r.options)==null?void 0:j.react,...t}},[r,t]),{useSuspense:o,keyPrefix:s}=l,u=i||((R=r==null?void 0:r.options)==null?void 0:R.defaultNS),c=ci(u)?[u]:u||["translation"],f=y.useMemo(()=>c,c);(H=(N=r==null?void 0:r.reportNamespaces)==null?void 0:N.addUsedNamespaces)==null||H.call(N,f);const d=y.useRef(0),h=y.useCallback(j=>{if(!r)return kN;const{bindI18n:L,bindI18nStore:U}=l,V=()=>{d.current+=1,j()};return L&&r.on(L,V),U&&r.store.on(U,V),()=>{L&&L.split(" ").forEach(A=>r.off(A,V)),U&&U.split(" ").forEach(A=>r.store.off(A,V))}},[r,l]),g=y.useRef(),_=y.useCallback(()=>{if(!r)return qN;const j=!!(r.isInitialized||r.initializedStoreOnce)&&f.every(D=>MN(D,r,l)),L=t.lng||r.language,U=d.current,V=g.current;if(V&&V.ready===j&&V.lng===L&&V.keyPrefix===s&&V.revision===U)return V;const M={t:r.getFixedT(L,l.nsMode==="fallback"?f:f[0],s),ready:j,lng:L,keyPrefix:s,revision:U};return g.current=M,M},[r,f,s,l,t.lng]),[S,p]=y.useState(0),{t:v,ready:m}=yS.useSyncExternalStore(h,_,_);y.useEffect(()=>{if(r&&!m&&!o){const j=()=>p(L=>L+1);t.lng?sy(r,t.lng,f,j):Yd(r,f,j)}},[r,t.lng,f,m,o,S]);const b=r||{},x=y.useRef(null),T=y.useRef(),E=j=>{const L=Object.getOwnPropertyDescriptors(j);L.__original&&delete L.__original;const U=Object.create(Object.getPrototypeOf(j),L);if(!Object.prototype.hasOwnProperty.call(U,"__original"))try{Object.defineProperty(U,"__original",{value:j,writable:!1,enumerable:!1,configurable:!1})}catch{}return U},C=y.useMemo(()=>{const j=b,L=j==null?void 0:j.language;let U=j;j&&(x.current&&x.current.__original===j?T.current!==L?(U=E(j),x.current=U,T.current=L):U=x.current:(U=E(j),x.current=U,T.current=L));const V=!m&&!o?(...M)=>($d(r,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...M)):v,A=[V,U,m];return A.t=V,A.i18n=U,A.ready=m,A},[v,b,m,b.resolvedLanguage,b.language,b.languages]);if(r&&o&&!m)throw new Promise(j=>{const L=()=>j();t.lng?sy(r,t.lng,f,L):Yd(r,f,L)});return C};var XN=Object.defineProperty,QN=(e,t)=>XN(e,"name",{value:t,configurable:!0});function Kd(e,[t,n]){return Math.min(n,Math.max(t,e))}QN(Kd,"clamp");var ZN=Object.defineProperty,FN=(e,t)=>ZN(e,"name",{value:t,configurable:!0}),IN=y.createContext(void 0);function zx(e){const t=y.useContext(IN);return e||t||"ltr"}FN(zx,"useDirection");var JN=Object.defineProperty,_v=(e,t)=>JN(e,"name",{value:t,configurable:!0}),zo=0,an=null;function WN(e){return Sv(),e.children}_v(WN,"FocusGuards");function Sv(){y.useEffect(()=>{an||(an={start:qd(),end:qd()});const{start:e,end:t}=an;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),zo++,()=>{zo===1&&(an==null||an.start.remove(),an==null||an.end.remove(),an=null),zo=Math.max(0,zo-1)}},[])}_v(Sv,"useFocusGuards");function qd(){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}_v(qd,"createFocusGuard");var eM=Object.defineProperty,it=(e,t)=>eM(e,"name",{value:t,configurable:!0}),Zc="focusScope.autoFocusOnMount",Fc="focusScope.autoFocusOnUnmount",uy={bubbles:!1,cancelable:!0},tM=y.forwardRef(it(function(t,n){const{loop:a=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:l,...o}=t,[s,u]=y.useState(null),c=ht(r),f=ht(l),d=y.useRef(null),h=Te(n,u),g=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let S=function(b){if(g.paused||!s)return;const x=b.target;s.contains(x)?d.current=x:wn(d.current,{select:!0})},p=function(b){if(g.paused||!s)return;const x=b.relatedTarget;x!==null&&(s.contains(x)||wn(d.current,{select:!0}))},v=function(b){if(document.activeElement===document.body)for(const T of b)T.removedNodes.length>0&&wn(s)};it(S,"handleFocusIn"),it(p,"handleFocusOut"),it(v,"handleMutations"),document.addEventListener("focusin",S),document.addEventListener("focusout",p);const m=new MutationObserver(v);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",p),m.disconnect()}}},[i,s,g.paused]),y.useEffect(()=>{if(s){cy.add(g);const S=document.activeElement;if(!s.contains(S)){const v=new CustomEvent(Zc,uy);s.addEventListener(Zc,c),s.dispatchEvent(v),v.defaultPrevented||(Ux($x(xv(s)),{select:!0}),document.activeElement===S&&wn(s))}return()=>{s.removeEventListener(Zc,c),setTimeout(()=>{const v=new CustomEvent(Fc,uy);s.addEventListener(Fc,f),s.dispatchEvent(v),v.defaultPrevented||wn(S??document.body,{select:!0}),s.removeEventListener(Fc,f),cy.remove(g)},0)}}},[s,c,f,g]);const _=y.useCallback(S=>{if(!a&&!i||g.paused)return;const p=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,v=document.activeElement;if(p&&v){const m=S.currentTarget,[b,x]=Bx(m);b&&x?!S.shiftKey&&v===x?(S.preventDefault(),a&&wn(b,{select:!0})):S.shiftKey&&v===b&&(S.preventDefault(),a&&wn(x,{select:!0})):v===m&&S.preventDefault()}},[a,i,g.paused]);return O.jsx(Ae.div,{tabIndex:-1,...o,ref:h,onKeyDown:_})},"FocusScope"));function Ux(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(wn(a,{select:t}),document.activeElement!==n)return}it(Ux,"focusFirst");function Bx(e){const t=xv(e),n=kd(t,e),a=kd(t.reverse(),e);return[n,a]}it(Bx,"getTabbableEdges");function xv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:it(a=>{const i=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||i?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}it(xv,"getTabbableCandidates");function kd(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const a of e)if(!(n?!a.checkVisibility({checkVisibilityCSS:!0}):Hx(a,{upTo:t})))return a}it(kd,"findVisible");function Hx(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}it(Hx,"isHidden");function Vx(e){return e instanceof HTMLInputElement&&"select"in e}it(Vx,"isSelectableInput");function wn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Vx(e)&&t&&e.select()}}it(wn,"focus");var cy=Px();function Px(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xd(e,t),e.unshift(t)},remove(t){var n;e=Xd(e,t),(n=e[0])==null||n.resume()}}}it(Px,"createFocusScopesStack");function Xd(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}it(Xd,"arrayRemove");function $x(e){return e.filter(t=>t.tagName!=="A")}it($x,"removeLinks");var nM=Object.defineProperty,aM=(e,t)=>nM(e,"name",{value:t,configurable:!0});function Yx(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}aM(Yx,"usePrevious");var iM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mi=new WeakMap,Uo=new WeakMap,Bo={},Ic=0,Gx=function(e){return e&&(e.host||Gx(e.parentNode))},rM=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=Gx(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},lM=function(e,t,n,a){var i=rM(t,Array.isArray(e)?e:[e]);Bo[n]||(Bo[n]=new WeakMap);var r=Bo[n],l=[],o=new Set,s=new Set(i),u=function(f){!f||o.has(f)||(o.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))c(d);else try{var h=d.getAttribute(a),g=h!==null&&h!=="false",_=(Mi.get(d)||0)+1,S=(r.get(d)||0)+1;Mi.set(d,_),r.set(d,S),l.push(d),_===1&&g&&Uo.set(d,!0),S===1&&d.setAttribute(n,"true"),g||d.setAttribute(a,"true")}catch(p){console.error("aria-hidden: cannot operate on ",d,p)}})};return c(t),o.clear(),Ic++,function(){l.forEach(function(f){var d=Mi.get(f)-1,h=r.get(f)-1;Mi.set(f,d),r.set(f,h),d||(Uo.has(f)||f.removeAttribute(a),Uo.delete(f)),h||f.removeAttribute(n)}),Ic--,Ic||(Mi=new WeakMap,Mi=new WeakMap,Uo=new WeakMap,Bo={})}},oM=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),i=iM(e);return i?(a.push.apply(a,Array.from(i.querySelectorAll("[aria-live], script"))),lM(a,i,n,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ln.apply(this,arguments)};function Kx(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n}function sM(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,r;a<i;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var ss="right-scroll-bar-position",us="width-before-scroll-bar",uM="with-scroll-bars-hidden",cM="--removed-body-scroll-bar-size";function Jc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function fM(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var i=n.value;i!==a&&(n.value=a,n.callback(a,i))}}}})[0];return n.callback=t,n.facade}var dM=typeof window<"u"?y.useLayoutEffect:y.useEffect,fy=new WeakMap;function hM(e,t){var n=fM(null,function(a){return e.forEach(function(i){return Jc(i,a)})});return dM(function(){var a=fy.get(n);if(a){var i=new Set(a),r=new Set(e),l=n.current;i.forEach(function(o){r.has(o)||Jc(o,null)}),r.forEach(function(o){i.has(o)||Jc(o,l)})}fy.set(n,e)},[e]),n}function pM(e){return e}function vM(e,t){t===void 0&&(t=pM);var n=[],a=!1,i={read:function(){if(a)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(r){var l=t(r,a);return n.push(l),function(){n=n.filter(function(o){return o!==l})}},assignSyncMedium:function(r){for(a=!0;n.length;){var l=n;n=[],l.forEach(r)}n={push:function(o){return r(o)},filter:function(){return n}}},assignMedium:function(r){a=!0;var l=[];if(n.length){var o=n;n=[],o.forEach(r),l=n}var s=function(){var c=l;l=[],c.forEach(r)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(c){l.push(c),u()},filter:function(c){return l=l.filter(c),n}}}};return i}function gM(e){e===void 0&&(e={});var t=vM(null);return t.options=ln({async:!0,ssr:!1},e),t}var qx=function(e){var t=e.sideCar,n=Kx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return y.createElement(a,ln({},n))};qx.isSideCarExport=!0;function mM(e,t){return e.useMedium(t),qx}var kx=gM(),Wc=function(){},ku=y.forwardRef(function(e,t){var n=y.useRef(null),a=y.useState({onScrollCapture:Wc,onWheelCapture:Wc,onTouchMoveCapture:Wc}),i=a[0],r=a[1],l=e.forwardProps,o=e.children,s=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,g=e.noIsolation,_=e.inert,S=e.allowPinchZoom,p=e.as,v=p===void 0?"div":p,m=e.gapMode,b=Kx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=d,T=hM([n,t]),E=ln(ln({},b),i);return y.createElement(y.Fragment,null,c&&y.createElement(x,{sideCar:kx,removeScrollBar:u,shards:f,noRelative:h,noIsolation:g,inert:_,setCallbacks:r,allowPinchZoom:!!S,lockRef:n,gapMode:m}),l?y.cloneElement(y.Children.only(o),ln(ln({},E),{ref:T})):y.createElement(v,ln({},E,{className:s,ref:T}),o))});ku.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ku.classNames={fullWidth:us,zeroRight:ss};var yM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=yM();return t&&e.setAttribute("nonce",t),e}function _M(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function SM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=bM())&&(_M(t,n),SM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},OM=function(){var e=xM();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xx=function(){var e=OM(),t=function(n){var a=n.styles,i=n.dynamic;return e(a,i),null};return t},EM={left:0,top:0,right:0,gap:0},ef=function(e){return parseInt(e||"",10)||0},TM=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ef(n),ef(a),ef(i)]},AM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return EM;var t=TM(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},wM=Xx(),ur="data-scroll-locked",CM=function(e,t,n,a){var i=e.left,r=e.top,l=e.right,o=e.gap;return n===void 0&&(n="margin"),`
130
- .`.concat(uM,` {
131
- overflow: hidden `).concat(a,`;
132
- padding-right: `).concat(o,"px ").concat(a,`;
133
- }
134
- body[`).concat(ur,`] {
135
- overflow: hidden `).concat(a,`;
136
- overscroll-behavior: contain;
137
- `).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
138
- padding-left: `.concat(i,`px;
139
- padding-top: `).concat(r,`px;
140
- padding-right: `).concat(l,`px;
141
- margin-left:0;
142
- margin-top:0;
143
- margin-right: `).concat(o,"px ").concat(a,`;
144
- `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(a,";")].filter(Boolean).join(""),`
145
- }
146
-
147
- .`).concat(ss,` {
148
- right: `).concat(o,"px ").concat(a,`;
149
- }
150
-
151
- .`).concat(us,` {
152
- margin-right: `).concat(o,"px ").concat(a,`;
153
- }
154
-
155
- .`).concat(ss," .").concat(ss,` {
156
- right: 0 `).concat(a,`;
157
- }
158
-
159
- .`).concat(us," .").concat(us,` {
160
- margin-right: 0 `).concat(a,`;
161
- }
162
-
163
- body[`).concat(ur,`] {
164
- `).concat(cM,": ").concat(o,`px;
165
- }
166
- `)},dy=function(){var e=parseInt(document.body.getAttribute(ur)||"0",10);return isFinite(e)?e:0},RM=function(){y.useEffect(function(){return document.body.setAttribute(ur,(dy()+1).toString()),function(){var e=dy()-1;e<=0?document.body.removeAttribute(ur):document.body.setAttribute(ur,e.toString())}},[])},NM=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,i=a===void 0?"margin":a;RM();var r=y.useMemo(function(){return AM(i)},[i]);return y.createElement(wM,{styles:CM(r,!t,i,n?"":"!important")})},Qd=!1;if(typeof window<"u")try{var Ho=Object.defineProperty({},"passive",{get:function(){return Qd=!0,!0}});window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch{Qd=!1}var Di=Qd?{passive:!1}:!1,MM=function(e){return e.tagName==="TEXTAREA"},Qx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!MM(e)&&n[t]==="visible")},DM=function(e){return Qx(e,"overflowY")},jM=function(e){return Qx(e,"overflowX")},hy=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var i=Zx(e,a);if(i){var r=Fx(e,a),l=r[1],o=r[2];if(l>o)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},LM=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},zM=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},Zx=function(e,t){return e==="v"?DM(t):jM(t)},Fx=function(e,t){return e==="v"?LM(t):zM(t)},UM=function(e,t){return e==="h"&&t==="rtl"?-1:1},BM=function(e,t,n,a,i){var r=UM(e,window.getComputedStyle(t).direction),l=r*a,o=n.target,s=t.contains(o),u=!1,c=l>0,f=0,d=0;do{if(!o)break;var h=Fx(e,o),g=h[0],_=h[1],S=h[2],p=_-S-r*g;(g||p)&&Zx(e,o)&&(f+=p,d+=g);var v=o.parentNode;o=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!s&&o!==document.body||s&&(t.contains(o)||t===o));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},Vo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},py=function(e){return[e.deltaX,e.deltaY]},vy=function(e){return e&&"current"in e?e.current:e},HM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},VM=function(e){return`
167
- .block-interactivity-`.concat(e,` {pointer-events: none;}
168
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
169
- `)},PM=0,ji=[];function $M(e){var t=y.useRef([]),n=y.useRef([0,0]),a=y.useRef(),i=y.useState(PM++)[0],r=y.useState(Xx)[0],l=y.useRef(e);y.useEffect(function(){l.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=sM([e.lockRef.current],(e.shards||[]).map(vy),!0).filter(Boolean);return _.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=y.useCallback(function(_,S){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!l.current.allowPinchZoom;var p=Vo(_),v=n.current,m="deltaX"in _?_.deltaX:v[0]-p[0],b="deltaY"in _?_.deltaY:v[1]-p[1],x,T=_.target,E=Math.abs(m)>Math.abs(b)?"h":"v";if("touches"in _&&E==="h"&&T.type==="range")return!1;var C=window.getSelection(),R=C&&C.anchorNode,N=R?R===T||R.contains(T):!1;if(N)return!1;var H=hy(E,T);if(!H)return!0;if(H?x=E:(x=E==="v"?"h":"v",H=hy(E,T)),!H)return!1;if(!a.current&&"changedTouches"in _&&(m||b)&&(a.current=x),!x)return!0;var j=a.current||x;return BM(j,S,_,j==="h"?m:b)},[]),s=y.useCallback(function(_){var S=_;if(!(!ji.length||ji[ji.length-1]!==r)){var p="deltaY"in S?py(S):Vo(S),v=t.current.filter(function(x){return x.name===S.type&&(x.target===S.target||S.target===x.shadowParent)&&HM(x.delta,p)})[0];if(v&&v.should){S.cancelable&&S.preventDefault();return}if(!v){var m=(l.current.shards||[]).map(vy).filter(Boolean).filter(function(x){return x.contains(S.target)}),b=m.length>0?o(S,m[0]):!l.current.noIsolation;b&&S.cancelable&&S.preventDefault()}}},[]),u=y.useCallback(function(_,S,p,v){var m={name:_,delta:S,target:p,should:v,shadowParent:YM(p)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(b){return b!==m})},1)},[]),c=y.useCallback(function(_){n.current=Vo(_),a.current=void 0},[]),f=y.useCallback(function(_){u(_.type,py(_),_.target,o(_,e.lockRef.current))},[]),d=y.useCallback(function(_){u(_.type,Vo(_),_.target,o(_,e.lockRef.current))},[]);y.useEffect(function(){return ji.push(r),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Di),document.addEventListener("touchmove",s,Di),document.addEventListener("touchstart",c,Di),function(){ji=ji.filter(function(_){return _!==r}),document.removeEventListener("wheel",s,Di),document.removeEventListener("touchmove",s,Di),document.removeEventListener("touchstart",c,Di)}},[]);var h=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(r,{styles:VM(i)}):null,h?y.createElement(NM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function YM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const GM=mM(kx,$M);var Ix=y.forwardRef(function(e,t){return y.createElement(ku,ln({},e,{ref:t,sideCar:GM}))});Ix.classNames=ku.classNames;var KM=Object.defineProperty,de=(e,t)=>KM(e,"name",{value:t,configurable:!0}),qM=[" ","Enter","ArrowUp","ArrowDown"],kM=[" ","Enter"],Tr="Select",[Xu,Ov,XM]=pv(Tr),[Ai,fL]=Si(Tr,[XM,zu]),Ev=zu(),[QM,za]=Ai(Tr),[ZM,FM]=Ai(Tr);function Jx(e){const{__scopeSelect:t,children:n,open:a,defaultOpen:i,onOpenChange:r,value:l,defaultValue:o,onValueChange:s,dir:u,name:c,autoComplete:f,disabled:d,required:h,form:g,internal_do_not_use_render:_}=e,S=Ev(t),[p,v]=y.useState(null),[m,b]=y.useState(null),[x,T]=y.useState(!1),E=zx(u),[C,R]=Pl({prop:a,defaultProp:i??!1,onChange:r,caller:Tr}),[N,H]=Pl({prop:l,defaultProp:o,onChange:s,caller:Tr}),j=y.useRef(null),L=y.useRef(N);y.useEffect(()=>{const ne=g?p==null?void 0:p.ownerDocument.getElementById(g):p==null?void 0:p.form;if(ne instanceof HTMLFormElement){const he=de(()=>H(L.current),"reset");return ne.addEventListener("reset",he),()=>ne.removeEventListener("reset",he)}},[g,p,H]);const U=p?!!g||!!p.closest("form"):!0,[V,A]=y.useState(new Set),M=Ru(),D=Array.from(V).map(ne=>ne.props.value).join(";"),B=y.useCallback(ne=>{A(he=>new Set(he).add(ne))},[]),P=y.useCallback(ne=>{A(he=>{const we=new Set(he);return we.delete(ne),we})},[]),ee={required:h,trigger:p,onTriggerChange:v,valueNode:m,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:T,contentId:M,value:N,onValueChange:H,open:C,onOpenChange:R,dir:E,triggerPointerDownPosRef:j,disabled:d,name:c,autoComplete:f,form:g,nativeOptions:V,nativeSelectKey:D,isFormControl:U};return O.jsx(FS,{...S,children:O.jsx(QM,{scope:t,...ee,children:O.jsx(Xu.Provider,{scope:t,children:O.jsx(ZM,{scope:t,onNativeOptionAdd:B,onNativeOptionRemove:P,children:f1(_)?_(ee):n})})})})}de(Jx,"SelectProvider");var Wx=de(e=>{const{__scopeSelect:t,children:n,...a}=e;return O.jsx(Jx,{__scopeSelect:t,...a,internal_do_not_use_render:({isFormControl:i})=>O.jsxs(O.Fragment,{children:[n,i?O.jsx(dD,{__scopeSelect:t}):null]})})},"Select"),IM="SelectTrigger",e1=y.forwardRef(de(function(t,n){const{__scopeSelect:a,disabled:i=!1,...r}=t,l=Ev(a),o=za(IM,a),s=o.disabled||i,u=Te(n,o.onTriggerChange),c=Ov(a),f=y.useRef("touch"),[d,h,g]=Tv(S=>{const p=c().filter(b=>!b.disabled),v=p.find(b=>b.value===o.value),m=Av(p,S,v);m!==void 0&&o.onValueChange(m.value)}),_=de(S=>{s||(o.onOpenChange(!0),g()),S&&(o.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})},"handleOpen");return O.jsx(IS,{asChild:!0,...l,children:O.jsx(Ae.button,{type:"button",role:"combobox","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":co(o.value)?"":void 0,...r,ref:u,onClick:W(r.onClick,S=>{S.currentTarget.focus(),f.current!=="mouse"&&_(S)}),onPointerDown:W(r.onPointerDown,S=>{f.current=S.pointerType;const p=S.target;p.hasPointerCapture(S.pointerId)&&p.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(_(S),S.preventDefault())}),onKeyDown:W(r.onKeyDown,S=>{const p=d.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&h(S.key),!(p&&S.key===" ")&&qM.includes(S.key)&&(_(),S.preventDefault())})})})},"SelectTrigger")),JM="SelectValue",t1=y.forwardRef(de(function(t,n){const{__scopeSelect:a,className:i,style:r,children:l,placeholder:o="",...s}=t,u=za(JM,a),{onValueNodeHasChildrenChange:c}=u,f=l!==void 0,d=Te(n,u.onValueNodeChange);We(()=>{c(f)},[c,f]);const h=co(u.value);return O.jsx(Ae.span,{...s,asChild:h?!1:s.asChild,ref:d,style:{pointerEvents:"none"},children:O.jsx(y.Fragment,{children:h?o:l},h?"placeholder":"value")})},"SelectValue")),n1=y.forwardRef(de(function(t,n){const{__scopeSelect:a,children:i,...r}=t;return O.jsx(Ae.span,{"aria-hidden":!0,...r,ref:n,children:i||"▼"})},"SelectIcon")),WM="SelectPortal",[eD,tD]=Ai(WM,{forceMount:void 0}),a1=de(e=>{const{__scopeSelect:t,forceMount:n,...a}=e;return O.jsx(eD,{scope:e.__scopeSelect,forceMount:n,children:O.jsx(cv,{asChild:!0,...a})})},"SelectPortal"),fi="SelectContent",i1=y.forwardRef(de(function(t,n){const a=tD(fi,t.__scopeSelect),{forceMount:i=a.forceMount,...r}=t,l=za(fi,t.__scopeSelect),[o,s]=y.useState();return We(()=>{s(new DocumentFragment)},[]),O.jsx(Bu,{present:i||l.open,children:({present:u})=>u?O.jsx(iD,{...r,ref:n}):O.jsx(nD,{...r,fragment:o})})},"SelectContent")),nD=y.forwardRef(de(function(t,n){const{__scopeSelect:a,children:i,fragment:r}=t;return r?Ra.createPortal(O.jsx(r1,{scope:a,children:O.jsx(Xu.Slot,{scope:a,children:O.jsx("div",{ref:n,children:i})})}),r):null},"SelectContentFragment")),Xt=10,[r1,Qu]=Ai(fi),aD=oi("SelectContent.RemoveScroll"),iD=y.forwardRef(de(function(t,n){const{__scopeSelect:a}=t,{position:i="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:l,onPointerDownOutside:o,side:s,sideOffset:u,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:_,hideWhenDetached:S,avoidCollisions:p,...v}=t,m=za(fi,a),[b,x]=y.useState(null),[T,E]=y.useState(null),C=Te(n,x),[R,N]=y.useState(null),[H,j]=y.useState(null),L=Ov(a),[U,V]=y.useState(!1),A=y.useRef(!1);y.useEffect(()=>{if(b)return oM(b)},[b]),Sv();const M=y.useCallback(X=>{const[be,...et]=L().map(ue=>ue.ref.current),[ve]=et.slice(-1),ie=document.activeElement;for(const ue of X)if(ue===ie||(ue==null||ue.scrollIntoView({block:"nearest"}),ue===be&&T&&(T.scrollTop=0),ue===ve&&T&&(T.scrollTop=T.scrollHeight),ue==null||ue.focus(),document.activeElement!==ie))return},[L,T]),D=y.useCallback(()=>M([R,b]),[M,R,b]);y.useEffect(()=>{U&&D()},[U,D]);const{onOpenChange:B,triggerPointerDownPosRef:P}=m;y.useEffect(()=>{if(b){let X={x:0,y:0};const be=de(ve=>{var ie,ue;X={x:Math.abs(Math.round(ve.pageX)-(((ie=P.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(ve.pageY)-(((ue=P.current)==null?void 0:ue.y)??0))}},"handlePointerMove"),et=de(ve=>{X.x<=10&&X.y<=10?ve.preventDefault():ve.composedPath().includes(b)||B(!1),document.removeEventListener("pointermove",be),P.current=null},"handlePointerUp");return P.current!==null&&(document.addEventListener("pointermove",be),document.addEventListener("pointerup",et,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",be),document.removeEventListener("pointerup",et,{capture:!0})}}},[b,B,P]),y.useEffect(()=>{const X=de(()=>B(!1),"close");return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[B]);const[ee,ne]=Tv(X=>{const be=L().filter(ie=>!ie.disabled),et=be.find(ie=>ie.ref.current===document.activeElement),ve=Av(be,X,et);ve&&setTimeout(()=>{var ie;return(ie=ve.ref.current)==null?void 0:ie.focus()})}),he=y.useCallback((X,be,et)=>{const ve=!A.current&&!et;(m.value!==void 0&&m.value===be||ve)&&(N(X),ve&&(A.current=!0))},[m.value]),we=y.useCallback(()=>b==null?void 0:b.focus(),[b]),Ne=y.useCallback((X,be,et)=>{const ve=!A.current&&!et;(m.value!==void 0&&m.value===be||ve)&&j(X)},[m.value]),Sn=i==="popper"?gy:rD,Ua=Sn===gy?{side:s,sideOffset:u,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:_,hideWhenDetached:S,avoidCollisions:p}:{};return O.jsx(r1,{scope:a,content:b,viewport:T,onViewportChange:E,itemRefCallback:he,selectedItem:R,onItemLeave:we,itemTextRefCallback:Ne,focusSelectedItem:D,selectedItemText:H,position:i,isPositioned:U,searchRef:ee,children:O.jsx(Ix,{as:aD,allowPinchZoom:!0,children:O.jsx(tM,{asChild:!0,trapped:m.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:W(r,X=>{var be;(be=m.trigger)==null||be.focus({preventScroll:!0}),X.preventDefault()}),children:O.jsx(nv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:O.jsx(Sn,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:X=>X.preventDefault(),...v,...Ua,onPlaced:()=>V(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:W(v.onKeyDown,X=>{const be=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!be&&X.key.length===1&&ne(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let ve=L().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(X.key)&&(ve=ve.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const ie=X.target,ue=ve.indexOf(ie);ve=ve.slice(ue+1)}setTimeout(()=>M(ve)),X.preventDefault()}})})})})})})},"SelectContentImpl")),rD=y.forwardRef(de(function(t,n){const{__scopeSelect:a,onPlaced:i,...r}=t,l=za(fi,a),o=Qu(fi,a),[s,u]=y.useState(null),[c,f]=y.useState(null),d=Te(n,f),h=Ov(a),g=y.useRef(!1),_=y.useRef(!0),{viewport:S,selectedItem:p,selectedItemText:v,focusSelectedItem:m}=o,b=y.useCallback(()=>{if(l.trigger&&l.valueNode&&s&&c&&S&&p&&v){const C=l.trigger.getBoundingClientRect(),R=c.getBoundingClientRect(),N=l.valueNode.getBoundingClientRect(),H=v.getBoundingClientRect();if(l.dir!=="rtl"){const ie=H.left-R.left,ue=N.left-ie,tn=C.left-ue,nn=C.width+tn,Ba=Math.max(nn,R.width),wi=window.innerWidth-Xt,Yr=Kd(ue,[Xt,Math.max(Xt,wi-Ba)]);s.style.minWidth=nn+"px",s.style.left=Yr+"px"}else{const ie=R.right-H.right,ue=window.innerWidth-N.right-ie,tn=window.innerWidth-C.right-ue,nn=C.width+tn,Ba=Math.max(nn,R.width),wi=window.innerWidth-Xt,Yr=Kd(ue,[Xt,Math.max(Xt,wi-Ba)]);s.style.minWidth=nn+"px",s.style.right=Yr+"px"}const j=h(),L=window.innerHeight-Xt*2,U=S.scrollHeight,V=window.getComputedStyle(c),A=parseInt(V.borderTopWidth,10),M=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),B=parseInt(V.paddingBottom,10),P=A+M+U+B+D,ee=Math.min(p.offsetHeight*5,P),ne=window.getComputedStyle(S),he=parseInt(ne.paddingTop,10),we=parseInt(ne.paddingBottom,10),Ne=C.top+C.height/2-Xt,Sn=L-Ne,Ua=p.offsetHeight/2,X=p.offsetTop+Ua,be=A+M+X,et=P-be;if(be<=Ne){const ie=j.length>0&&p===j[j.length-1].ref.current;s.style.bottom="0px";const ue=c.clientHeight-S.offsetTop-S.offsetHeight,tn=Math.max(Sn,Ua+(ie?we:0)+ue+D),nn=be+tn;s.style.height=nn+"px"}else{const ie=j.length>0&&p===j[0].ref.current;s.style.top="0px";const tn=Math.max(Ne,A+S.offsetTop+(ie?he:0)+Ua)+et;s.style.height=tn+"px",S.scrollTop=be-Ne+S.offsetTop}s.style.margin=`${Xt}px 0`,s.style.minHeight=ee+"px",s.style.maxHeight=L+"px",i==null||i(),requestAnimationFrame(()=>g.current=!0)}},[h,l.trigger,l.valueNode,s,c,S,p,v,l.dir,i]);We(()=>b(),[b]);const[x,T]=y.useState();We(()=>{c&&T(window.getComputedStyle(c).zIndex)},[c]);const E=y.useCallback(C=>{C&&_.current===!0&&(b(),m==null||m(),_.current=!1)},[b,m]);return O.jsx(lD,{scope:a,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:E,children:O.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:O.jsx(Ae.div,{...r,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})},"SelectItemAlignedPosition")),gy=y.forwardRef(de(function(t,n){const{__scopeSelect:a,align:i="start",collisionPadding:r=Xt,...l}=t,o=Ev(a);return O.jsx(JS,{...o,...l,ref:n,align:i,collisionPadding:r,style:{boxSizing:"border-box",...l.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)"}})},"SelectPopperPosition")),[lD,oD]=Ai(fi,{}),my="SelectViewport",l1=y.forwardRef(de(function(t,n){const{__scopeSelect:a,nonce:i,...r}=t,l=Qu(my,a),o=oD(my,a),s=Te(n,l.onViewportChange),u=y.useRef(0);return O.jsxs(O.Fragment,{children:[O.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:i}),O.jsx(Xu.Slot,{scope:a,children:O.jsx(Ae.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:W(r.onScroll,c=>{const f=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&d){const g=Math.abs(u.current-f.scrollTop);if(g>0){const _=window.innerHeight-Xt*2,S=parseFloat(d.style.minHeight),p=parseFloat(d.style.height),v=Math.max(S,p);if(v<_){const m=v+g,b=Math.min(_,m),x=m-b;d.style.height=b+"px",d.style.bottom==="0px"&&(f.scrollTop=x>0?x:0,d.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})},"SelectViewport")),sD="SelectGroup",[dL,hL]=Ai(sD),Zd="SelectItem",[uD,o1]=Ai(Zd),s1=y.forwardRef(de(function(t,n){const{__scopeSelect:a,value:i,disabled:r=!1,textValue:l,...o}=t,s=za(Zd,a),u=Qu(Zd,a),c=s.value===i,[f,d]=y.useState(l??""),[h,g]=y.useState(!1),_=ht(b=>{var x;return(x=u.itemRefCallback)==null?void 0:x.call(u,b,i,r)}),S=Te(n,_),p=Ru(),v=y.useRef("touch"),m=de(()=>{r||(s.onValueChange(i),s.onOpenChange(!1))},"handleSelect");return O.jsx(uD,{scope:a,value:i,disabled:r,textId:p,isSelected:c,onItemTextChange:y.useCallback(b=>{d(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:O.jsx(Xu.ItemSlot,{scope:a,value:i,disabled:r,textValue:f,children:O.jsx(Ae.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...o,ref:S,onFocus:W(o.onFocus,()=>g(!0)),onBlur:W(o.onBlur,()=>g(!1)),onClick:W(o.onClick,()=>{v.current!=="mouse"&&m()}),onPointerUp:W(o.onPointerUp,()=>{v.current==="mouse"&&m()}),onPointerDown:W(o.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:W(o.onPointerMove,b=>{var x;v.current=b.pointerType,r?(x=u.onItemLeave)==null||x.call(u):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:W(o.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=u.onItemLeave)==null||x.call(u))}),onKeyDown:W(o.onKeyDown,b=>{var T;r||b.target!==b.currentTarget||((T=u.searchRef)==null?void 0:T.current)!==""&&b.key===" "||(kM.includes(b.key)&&m(),b.key===" "&&b.preventDefault())})})})})},"SelectItem")),Po="SelectItemText",u1=y.forwardRef(de(function(t,n){const{__scopeSelect:a,className:i,style:r,...l}=t,o=za(Po,a),s=Qu(Po,a),u=o1(Po,a),c=FM(Po,a),[f,d]=y.useState(null),h=ht(m=>{var b;return(b=s.itemTextRefCallback)==null?void 0:b.call(s,m,u.value,u.disabled)}),g=Te(n,d,u.onItemTextChange,h),_=f==null?void 0:f.textContent,S=y.useMemo(()=>O.jsx("option",{value:u.value,disabled:u.disabled,children:_},u.value),[u.disabled,u.value,_]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=c;return We(()=>(p(S),()=>v(S)),[p,v,S]),O.jsxs(O.Fragment,{children:[O.jsx(Ae.span,{id:u.textId,...l,ref:g}),u.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!co(o.value)?Ra.createPortal(l.children,o.valueNode):null]})},"SelectItemText")),cD="SelectItemIndicator",c1=y.forwardRef(de(function(t,n){const{__scopeSelect:a,...i}=t;return o1(cD,a).isSelected?O.jsx(Ae.span,{"aria-hidden":!0,...i,ref:n}):null},"SelectItemIndicator")),fD="SelectBubbleInput",dD=y.forwardRef(de(function({__scopeSelect:t,...n},a){const i=za(fD,t),{value:r,onValueChange:l,required:o,disabled:s,name:u,autoComplete:c,form:f}=i,{nativeOptions:d,nativeSelectKey:h}=i,g=y.useRef(null),_=Te(a,g),S=r??"",p=Yx(S),v=Array.from(d).some(m=>(m.props.value??"")==="");return y.useEffect(()=>{const m=g.current;if(!m)return;const b=window.HTMLSelectElement.prototype,T=Object.getOwnPropertyDescriptor(b,"value").set;if(p!==S&&T){const E=new Event("change",{bubbles:!0});T.call(m,S),m.dispatchEvent(E)}},[p,S]),O.jsxs(Ae.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:u,autoComplete:c,disabled:s,form:f,onChange:m=>l(m.target.value),...n,style:{...lx,...n.style},ref:_,defaultValue:S,children:[co(r)&&!v?O.jsx("option",{value:""}):null,Array.from(d)]},h)},"SelectBubbleInput"));function f1(e){return typeof e=="function"}de(f1,"isFunction");function co(e){return e===""||e===void 0}de(co,"shouldShowPlaceholder");function Tv(e){const t=ht(e),n=y.useRef(""),a=y.useRef(0),i=y.useCallback(l=>{const o=n.current+l;t(o),de(function s(u){n.current=u,window.clearTimeout(a.current),u!==""&&(a.current=window.setTimeout(()=>s(""),1e3))},"updateSearch")(o)},[t]),r=y.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,i,r]}de(Tv,"useTypeaheadSearch");function Av(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let l=d1(e,Math.max(r,0));i.length===1&&(l=l.filter(u=>u!==n));const s=l.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}de(Av,"findNextItem");function d1(e,t){return e.map((n,a)=>e[(t+a)%e.length])}de(d1,"wrapArray");var Fd={exports:{}},Id={exports:{}},Jd={exports:{}},Wd={exports:{}},eh={exports:{}};(function(e,t){var n=Yu,a=$r;t=function(i,r){return function(l){return a(arguments,function(o,s){if(s!==0){var u=i(o);a(u,function(c){(!r||n(l[c]))&&(l[c]=o[c])})}}),l}},e.exports=t})(eh,eh.exports);var wv=eh.exports;(function(e,t){var n=Oi,a=wv;t=a(n),e.exports=t})(Wd,Wd.exports);var hD=Wd.exports,th={exports:{}};(function(e,t){var n=Oi;t=function(a,i){var r=n(i),l=r.length;if(a==null)return!l;a=Object(a);for(var o=0;o<l;o++){var s=r[o];if(i[s]!==a[s]||!(s in a))return!1}return!0},e.exports=t})(th,th.exports);var pD=th.exports;(function(e,t){var n=hD,a=pD;t=function(i){return i=n({},i),function(r){return a(r,i)}},e.exports=t})(Jd,Jd.exports);var vD=Jd.exports,nh={exports:{}};(function(e,t){t=function(n){return n},e.exports=t})(nh,nh.exports);var gD=nh.exports,ah={exports:{}},ih={exports:{}},rh={exports:{}};(function(e,t){var n=bv,a=Ei;t=function(l,o){if(a(l))return l;if(o&&n(o,l))return[l];var s=[];return l.replace(i,function(u,c,f,d){s.push(f?d.replace(r,"$1"):c||u)}),s};var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g;e.exports=t})(rh,rh.exports);var mD=rh.exports;(function(e,t){var n=Yu,a=mD;t=function(i,r){r=a(r,i);var l;for(l=r.shift();!n(l);){if(i=i[l],i==null)return;l=r.shift()}return i},e.exports=t})(ih,ih.exports);var h1=ih.exports;(function(e,t){var n=Ei,a=h1;t=function(r){return n(r)?function(l){return a(l,r)}:i(r)};function i(r){return function(l){return l==null?void 0:l[r]}}e.exports=t})(ah,ah.exports);var yD=ah.exports;(function(e,t){var n=Pr,a=Ti,i=Ei,r=Cx,l=vD,o=gD,s=yD;t=function(u,c,f){return u==null?o:n(u)?r(u,c,f):a(u)&&!i(u)?l(u):s(u)},e.exports=t})(Id,Id.exports);var p1=Id.exports;(function(e,t){var n=p1,a=$r;t=function(i,r,l){var o=[];return r=n(r,l),a(i,function(s,u,c){r(s,u,c)&&o.push(s)}),o},e.exports=t})(Fd,Fd.exports);var v1=Fd.exports;const bD=Ca(v1),G={background:{app:"bg-stone-50 dark:bg-stone-950",toolbar:"bg-white dark:bg-stone-900",sourcePanel:"bg-white dark:bg-stone-900",targetPanel:"bg-stone-50 dark:bg-stone-950"},text:{primary:"text-stone-900 dark:text-stone-100",placeholder:"placeholder-stone-300 dark:placeholder-stone-600",muted:"text-stone-300 dark:text-stone-600",translating:"text-stone-400 dark:text-stone-500"},border:{divider:"border-stone-200 dark:border-stone-700"},button:{icon:{default:"text-stone-400 dark:text-stone-400",hover:"hover:text-stone-700 dark:hover:text-stone-200 hover:bg-stone-100 dark:hover:bg-stone-800",disabled:"text-stone-300 dark:text-stone-600"},outlined:{default:"border-stone-200 dark:border-stone-700 text-stone-500 dark:text-stone-400",hover:"hover:bg-stone-100 dark:hover:bg-stone-800 hover:text-stone-700 dark:hover:text-stone-200",disabled:"border-stone-100 dark:border-stone-700 text-stone-300 dark:text-stone-600"},primary:{default:"bg-blue-500 dark:bg-blue-600 text-white",hover:"hover:bg-blue-600 dark:hover:bg-blue-500 hover:-translate-y-px active:translate-y-0",disabled:"bg-stone-100 dark:bg-stone-800 text-stone-400 dark:text-stone-500"},copy:{copied:"border-emerald-400 dark:border-emerald-700 text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-950/30"}},select:{trigger:"text-stone-700 dark:text-stone-300 hover:bg-stone-100 dark:hover:bg-stone-800",chevron:"text-stone-400 dark:text-stone-500",dropdown:"overflow-hidden rounded-xl border z-50 border-stone-200 dark:border-stone-700 bg-white dark:bg-stone-800 shadow-[0_8px_24px_rgba(0,0,0,0.1),0_2px_6px_rgba(0,0,0,0.06)] dark:shadow-[0_8px_24px_rgba(0,0,0,0.5)]",itemRow:"relative flex items-center px-2 py-1.25 pl-6.5 text-[12px] rounded-md cursor-pointer outline-none text-stone-700 dark:text-stone-300 data-highlighted:bg-stone-100 dark:data-highlighted:bg-stone-700 data-[state=checked]:font-semibold data-[state=checked]:text-blue-600 dark:data-[state=checked]:text-blue-400 transition-colors duration-75",itemIndicator:"text-blue-500 dark:text-blue-400"},tooltip:{content:"bg-stone-900 dark:bg-stone-100 text-white dark:text-stone-900",arrow:"fill-stone-900 dark:fill-stone-100"},toast:{root:"bg-white dark:bg-stone-800 border border-stone-200 dark:border-stone-700 rounded-xl shadow-lg px-4 py-3 flex items-start gap-3",title:"text-[12.5px] font-semibold text-red-600 dark:text-red-400",description:"text-[12px] text-stone-500 dark:text-stone-400 mt-0.5",close:"text-stone-400 dark:text-stone-500 hover:text-stone-600 dark:hover:text-stone-300 cursor-pointer",viewport:"fixed bottom-4 right-4 flex flex-col gap-2 w-72 z-50"}};function yy({value:e,onValueChange:t,langs:n,excludeAuto:a}){const{t:i}=qu(),r=a?bD(n,l=>l.code!=="auto"):n;return O.jsxs(Wx,{value:e,onValueChange:t,children:[O.jsxs(e1,{className:`inline-flex items-center gap-1 px-2 py-1 text-[12px] font-medium rounded-md border-none bg-transparent ${G.select.trigger} transition-colors duration-150 w-22 cursor-pointer outline-none focus:outline-none overflow-hidden`,children:[O.jsx("span",{className:"truncate whitespace-nowrap min-w-0 flex-1",children:O.jsx(t1,{})}),O.jsx(n1,{className:"shrink-0",children:O.jsx(Ax,{className:`w-3 h-3 ${G.select.chevron}`})})]}),O.jsx(a1,{children:O.jsx(i1,{className:qa(G.select.dropdown,"min-w-32.5"),position:"popper",sideOffset:4,children:O.jsx(l1,{className:"p-1",children:r.map(l=>O.jsxs(s1,{value:l.code,className:G.select.itemRow,children:[O.jsx(c1,{className:`absolute left-2 flex items-center ${G.select.itemIndicator}`,children:O.jsx(Ad,{className:"w-3 h-3"})}),O.jsx(u1,{children:i(l.code)})]},l.code))})})})]})}function g1(){return O.jsxs("span",{className:"flex items-center gap-0.75 h-3",children:[O.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse"}),O.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-2"}),O.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-3"})]})}var lh={exports:{}},oh={exports:{}},sh={exports:{}};(function(e,t){var n=p1,a=Oi,i=$u;t=function(r,l,o){l=n(l,o);for(var s=!i(r)&&a(r),u=(s||r).length,c=Array(u),f=0;f<u;f++){var d=s?s[f]:f;c[f]=l(r[d],d,r)}return c},e.exports=t})(sh,sh.exports);var _D=sh.exports;(function(e,t){var n=$u,a=_D,i=Ei,r=Gu;t=function(l){return l?i(l)?l:n(l)&&!r(l)?a(l):[l]:[]},e.exports=t})(oh,oh.exports);var Zu=oh.exports;(function(e,t){var n=Zu;t=function(){for(var a=n(arguments),i=[],r=0,l=a.length;r<l;r++)i=i.concat(n(a[r]));return i},e.exports=t})(lh,lh.exports);var SD=lh.exports;const Cv=Ca(SD);var uh={exports:{}};(function(e,t){var n=$r;t=function(a){var i={};return n(a,function(r,l){i[r]=l}),i},e.exports=t})(uh,uh.exports);var xD=uh.exports;const OD=Ca(xD),m1=[{code:"auto"},{code:"en"},{code:"ja"},{code:"ko"},{code:"fr"},{code:"es"},{code:"ru"},{code:"de"},{code:"it"},{code:"pt"},{code:"ar"},{code:"hi"},{code:"th"},{code:"vi"}],y1=m1.slice(0,2),b1=m1.slice(2),ED=Cv(y1,[{code:"zh-CN"},{code:"zh-TW"},...b1]),TD=Cv(y1,[{code:"zh-Hans"},{code:"zh-Hant"},...b1]),by=[{value:"google",label:"Google"},{value:"bing",label:"Bing"},{value:"deepl",label:"DeepL"}],AD={value:"ai",label:"AI"},_1={"zh-CN":"zh-Hans","zh-TW":"zh-Hant"},wD=OD(_1);function _y(e){return _1[e]??e}function Sy(e){return wD[e]??e}var ch={exports:{}},fh={exports:{}},dh={exports:{}},hh={exports:{}},ph={exports:{}},vh={exports:{}},gh={exports:{}};(function(e,t){var n=Ti,a=Pr,i=Object.getPrototypeOf,r={}.constructor;t=function(l){if(n(l)){if(i)return i(l);var o=l.__proto__;if(o||o===null)return o;if(a(l.constructor))return l.constructor.prototype;if(l instanceof r)return r.prototype}},e.exports=t})(gh,gh.exports);var CD=gh.exports,mh={exports:{}};(function(e,t){var n=v1;t=function(i,r){return r=r||a,n(i,function(l,o,s){for(var u=s.length;++o<u;)if(r(l,s[o]))return!1;return!0})};function a(i,r){return i===r}e.exports=t})(mh,mh.exports);var RD=mh.exports;(function(e,t){var n=Oi,a=CD,i=RD,r=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols;t=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.prototype,c=u===void 0?!0:u,f=s.unenumerable,d=f===void 0?!1:f,h=s.symbol,g=h===void 0?!1:h,_=[];if((d||g)&&r){var S=n;d&&r&&(S=r);do _=_.concat(S(o)),g&&l&&(_=_.concat(l(o)));while(c&&(o=a(o))&&o!==Object.prototype);_=i(_)}else if(c)for(var p in o)_.push(p);else _=n(o);return _},e.exports=t})(vh,vh.exports);var S1=vh.exports;(function(e,t){var n=wv,a=S1;t=n(a),e.exports=t})(ph,ph.exports);var x1=ph.exports,yh={exports:{}},bh={exports:{}};(function(e,t){var n=Ti;t=function(i){if(!n(i))return{};if(a)return a(i);function r(){}return r.prototype=i,new r};var a=Object.create;e.exports=t})(bh,bh.exports);var ND=bh.exports;(function(e,t){var n=ND;t=function(a,i){a.prototype=n(i.prototype)},e.exports=t})(yh,yh.exports);var MD=yh.exports,_h={exports:{}};(function(e,t){var n=Pr;t=typeof wx<"u"&&n(wx.openLocation),e.exports=t})(_h,_h.exports);var DD=_h.exports;(function(e,t){var n=x1,a=Zu,i=MD,r=h1,l=DD;t=function(u,c){return s.extend(u,c)};function o(u,c,f){f=f||{};var d=c.className||r(c,"initialize.name")||"";delete c.className;var h=function(){var g=a(arguments);return this.initialize?this.initialize.apply(this,g)||this:this};if(!l)try{h=new Function("toArr","return function "+d+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(a)}catch{}return i(h,u),h.prototype.constructor=h,h.extend=function(g,_){return o(h,g,_)},h.inherits=function(g){i(h,g)},h.methods=function(g){return n(h.prototype,g),h},h.statics=function(g){return n(h,g),h},h.methods(c).statics(f),h}var s=t.Base=o(Object,{className:"Base",callSuper:function(u,c,f){var d=u.prototype[c];return d.apply(this,f)},toString:function(){return this.constructor.name}});e.exports=t})(hh,hh.exports);var jD=hh.exports,Sh={exports:{}};(function(e,t){t=function(n,a,i){var r=n.length;a==null?a=0:a<0?a=Math.max(r+a,0):a=Math.min(a,r),i==null?i=r:i<0?i=Math.max(r+i,0):i=Math.min(i,r);for(var l=[];a<i;)l.push(n[a++]);return l},e.exports=t})(Sh,Sh.exports);var LD=Sh.exports,xh={exports:{}},Oh={exports:{}},Eh={exports:{}};(function(e,t){t=function(n,a){return a=a==null?n.length-1:+a,function(){var i=Math.max(arguments.length-a,0),r=new Array(i),l;for(l=0;l<i;l++)r[l]=arguments[l+a];switch(a){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}var o=new Array(a+1);for(l=0;l<a;l++)o[l]=arguments[l];return o[a]=r,n.apply(this,o)}},e.exports=t})(Eh,Eh.exports);var O1=Eh.exports;(function(e,t){var n=O1,a=Zu;t=n(function(i,r){return function(){var l=[];return l=l.concat(r),l=l.concat(a(arguments)),i.apply(this,l)}}),e.exports=t})(Oh,Oh.exports);var zD=Oh.exports,Th={exports:{}};(function(e,t){t=function(n,a){var i;return function(){return--n>0&&(i=a.apply(this,arguments)),n<=1&&(a=null),i}},e.exports=t})(Th,Th.exports);var UD=Th.exports;(function(e,t){var n=zD,a=UD;t=n(a,2),e.exports=t})(xh,xh.exports);var BD=xh.exports,Ah={exports:{}};(function(e,t){var n=Ti,a=Ei,i=x1;t=function(r){return n(r)?a(r)?r.slice():i({},r):r},e.exports=t})(Ah,Ah.exports);var HD=Ah.exports;(function(e,t){var n=jD,a=bv,i=$r,r=LD,l=BD,o=HD;t=n({initialize:function(){this._events=this._events||{}},on:function(s,u){return this._events[s]=this._events[s]||[],this._events[s].push(u),this},off:function(s,u){var c=this._events;if(a(c,s)){var f=c[s].indexOf(u);return f>-1&&c[s].splice(f,1),this}},once:function(s,u){return this.on(s,l(u)),this},emit:function(s){var u=this;if(a(this._events,s)){var c=r(arguments,1),f=o(this._events[s]);return i(f,function(d){return d.apply(u,c)},this),this}},removeAllListeners:function(s){return s?delete this._events[s]:this._events={},this}},{mixin:function(s){i(["on","off","once","emit","removeAllListeners"],function(u){s[u]=t.prototype[u]}),s._events=s._events||{}}}),e.exports=t})(dh,dh.exports);var VD=dh.exports;(function(e,t){var n=VD,a=Gu,i=Ti,r=$r,l=Zu;t=n.extend({initialize:function(s){this.callSuper(n,"initialize",arguments),this._data=s||{},this.save(this._data)},set:function(o,s){var u;a(o)?(u={},u[o]=s):i(o)&&(u=o);var c=this;r(u,function(f,d){var h=c._data[d];c._data[d]=f,c.emit("change",d,f,h)}),this.save(this._data)},get:function(o){var s=this._data;if(a(o))return s[o];var u={};return r(o,function(c){u[c]=s[c]}),u},remove:function(o){o=l(o);var s=this._data;r(o,function(u){delete s[u]}),this.save(s)},clear:function(){this._data={},this.save(this._data)},each:function(o){r(this._data,o)},save:function(o){this._data=o}}),e.exports=t})(fh,fh.exports);var PD=fh.exports,wh={exports:{}},Ch={exports:{}};(function(e,t){var n=Oi;t={getItem:function(s){return(i[s]?a[s]:this[s])||null},setItem:function(s,u){i[s]?a[s]=u:this[s]=u},removeItem:function(s){i[s]?delete a[s]:delete this[s]},key:function(s){var u=r();return s>=0&&s<u.length?u[s]:null},clear:function(){for(var s=l(),u=0,c;c=s[u];u++)delete this[c];s=o();for(var f=0,d;d=s[f];f++)delete a[d]}},Object.defineProperty(t,"length",{enumerable:!1,configurable:!0,get:function(){return r().length}});var a={},i={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function r(){return l().concat(o())}function l(){return n(t).filter(function(s){return!i[s]})}function o(){return n(a)}e.exports=t})(Ch,Ch.exports);var $D=Ch.exports;(function(e,t){var n=$D;t=function(a){a=a||"local";var i;switch(a){case"local":i=window.localStorage;break;case"session":i=window.sessionStorage;break}try{var r="test-localStorage-"+Date.now();i.setItem(r,r);var l=i.getItem(r);if(i.removeItem(r),l!==r)throw new Error}catch{return n}return i},e.exports=t})(wh,wh.exports);var YD=wh.exports,Rh={exports:{}},Nh={exports:{}};(function(e,t){var n=xi;t=function(a){return n(a)==="[object Arguments]"},e.exports=t})(Nh,Nh.exports);var GD=Nh.exports;(function(e,t){var n=$u,a=Ei,i=Gu,r=GD,l=Oi;t=function(o){return o==null?!0:n(o)&&(a(o)||i(o)||r(o))?o.length===0:l(o).length===0},e.exports=t})(Rh,Rh.exports);var KD=Rh.exports,Mh={exports:{}},Dh={exports:{}},jh={exports:{}};(function(e,t){var n=yv;t=function(a){return n(a)&&a!==+a},e.exports=t})(jh,jh.exports);var qD=jh.exports,Lh={exports:{}},zh={exports:{}};(function(e,t){t=function(n){return n==null?"":n.toString()},e.exports=t})(zh,zh.exports);var E1=zh.exports;(function(e,t){var n=E1;t=function(a){return n(a).toLocaleLowerCase()},e.exports=t})(Lh,Lh.exports);var kD=Lh.exports,Uh={exports:{}};(function(e,t){var n=Pr;t=function(a){return a==null?!1:a._isBuffer?!0:a.constructor&&n(a.constructor.isBuffer)&&a.constructor.isBuffer(a)},e.exports=t})(Uh,Uh.exports);var XD=Uh.exports;(function(e,t){var n=xi,a=qD,i=kD,r=XD;t=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u;return o===null&&(u="Null"),o===void 0&&(u="Undefined"),a(o)&&(u="NaN"),r(o)&&(u="Buffer"),u||(u=n(o).match(l),u&&(u=u[1])),u?s?i(u):u:""};var l=/^\[object\s+(.*?)]$/;e.exports=t})(Dh,Dh.exports);var QD=Dh.exports,Bh={exports:{}};(function(e,t){t=function(n){return n.length<1?n:n[0].toUpperCase()+n.slice(1)},e.exports=t})(Bh,Bh.exports);var ZD=Bh.exports,Hh={exports:{}};(function(e,t){var n=xi;t=function(a){return n(a)==="[object RegExp]"},e.exports=t})(Hh,Hh.exports);var FD=Hh.exports;(function(e,t){var n=QD,a=ZD,i=E1,r=Yu,l=Pr,o=FD;t=function(u,c){return JSON.stringify(u,s(),c)};function s(){var u=[],c=[];return function(f,d){if(u.length>0){var h=u.indexOf(this);h>-1?(u.splice(h+1),c.splice(h,1/0,f)):(u.push(this),c.push(f));var g=u.indexOf(d);g>-1&&(u[0]===d?d="[Circular ~]":d="[Circular ~."+c.slice(0,g).join(".")+"]")}else u.push(d);return o(d)||l(d)?d="["+a(n(d))+" "+i(d)+"]":r(d)&&(d=null),d}}e.exports=t})(Mh,Mh.exports);var ID=Mh.exports,Vh={exports:{}};(function(e,t){var n=wv,a=S1;t=n(a,!0),e.exports=t})(Vh,Vh.exports);var JD=Vh.exports;(function(e,t){var n=PD,a=YD,i=KD,r=ID,l=JD,o=Ti,s=a("local");t=n.extend({initialize:function(c,f){this._name=c,f=f||{};var d=s.getItem(c);try{d=JSON.parse(d)}catch{d={}}o(d)||(d={}),f=l(d,f),this.callSuper(n,"initialize",[f])},save:function(u){if(i(u))return s.removeItem(this._name);s.setItem(this._name,r(u))}}),e.exports=t})(ch,ch.exports);var WD=ch.exports;const ej=Ca(WD);var Ph={exports:{}};(function(e,t){var n=O1;t=n(function(a,i,r){return setTimeout(function(){return a.apply(null,r)},i)}),e.exports=t})(Ph,Ph.exports);var tj=Ph.exports;const nj=Ca(tj);var $h={exports:{}};(function(e,t){t=function(n){for(var a=0,i=n.length;a<i;a++){var r=n[a];if(r!==" "&&r!==`
170
- `&&r!=="\r"&&r!==" "&&r!=="\f"&&r!=="\v")return!1}return!0},e.exports=t})($h,$h.exports);var aj=$h.exports;const tf=Ca(aj),Li=new ej("tinker-translate"),xy="sourceLang",Oy="targetLang",Ey="service";class ij{constructor(){qt(this,"sourceText","");qt(this,"translatedText","");qt(this,"sourceLang",Li.get(xy)??"auto");qt(this,"targetLang",Li.get(Oy)??"zh-CN");qt(this,"service",Li.get(Ey)??"google");qt(this,"isTranslating",!1);qt(this,"toastOpen",!1);qt(this,"toastMsg","");qt(this,"copied",!1);qt(this,"hasAI",!1);sw(this)}async init(){const t=await tinker.getAIProviders();this.hasAI=t.length>0,!this.hasAI&&this.service==="ai"&&this.setService("google")}setSourceText(t){this.sourceText=t}setSourceLang(t){this.sourceLang=t,Li.set(xy,t)}setTargetLang(t){this.targetLang=t,Li.set(Oy,t)}setService(t){this.service=t,Li.set(Ey,t)}showError(t){this.toastMsg=t,this.toastOpen=!1,requestAnimationFrame(()=>{this.toastOpen=!0})}setToastOpen(t){this.toastOpen=t}handleServiceChange(t){const n=t==="bing",a=this.service==="bing";this.setService(t),n?(this.setSourceLang(_y(this.sourceLang)),this.setTargetLang(_y(this.targetLang))):a&&(this.setSourceLang(Sy(this.sourceLang)),this.setTargetLang(Sy(this.targetLang)))}handleSwapLanguages(){if(this.sourceLang==="auto")return;const t=this.sourceLang,n=this.targetLang;this.setSourceLang(n),this.setTargetLang(t);const a=this.sourceText;this.sourceText=this.translatedText,this.translatedText=a}async handlePaste(){const t=await navigator.clipboard.readText();tf(t)||(this.sourceText=t)}handleClear(){this.sourceText="",this.translatedText=""}async handleTranslate(){if(tf(this.sourceText)){this.showError(ke.t("emptySourceError"));return}this.isTranslating=!0,this.translatedText="";try{const t=await translate.translate(this.sourceText,this.sourceLang,this.targetLang,this.service);this.translatedText=t.text}catch(t){this.showError(ke.t("translateFailed")),console.error(t)}finally{this.isTranslating=!1}}async handleCopy(){this.translatedText&&(await navigator.clipboard.writeText(this.translatedText),this.copied=!0,nj(()=>{this.copied=!1},1800))}get availableServices(){return this.hasAI?Cv(by,AD):[...by]}get canSwap(){return this.sourceLang!=="auto"}get canClear(){return!!(this.sourceText||this.translatedText)}get canTranslate(){return!this.isTranslating&&!tf(this.sourceText)}get canCopy(){return!!this.translatedText}}const J=new ij,rj=Jp(()=>{const{t:e}=qu(),t=J.service==="bing"?TD:ED;return O.jsxs("div",{className:`flex items-center px-2.5 py-2 ${G.background.toolbar} border-b ${G.border.divider} shrink-0 min-h-11.5`,children:[O.jsxs("div",{className:"flex-1 flex items-center gap-1.5",children:[O.jsxs(Wx,{value:J.service,onValueChange:n=>J.handleServiceChange(n),children:[O.jsxs(e1,{className:`inline-flex items-center gap-1 px-2 py-1 text-[12px] font-medium rounded-md border bg-transparent ${G.select.trigger} ${G.border.divider} transition-colors duration-150 cursor-pointer outline-none focus:outline-none`,children:[O.jsx(t1,{}),O.jsx(n1,{className:"ml-auto shrink-0",children:O.jsx(Ax,{className:`w-3 h-3 ${G.select.chevron}`})})]}),O.jsx(a1,{children:O.jsx(i1,{className:G.select.dropdown,position:"popper",sideOffset:4,children:O.jsx(l1,{className:"p-1",children:J.availableServices.map(n=>O.jsxs(s1,{value:n.value,className:G.select.itemRow,children:[O.jsx(c1,{className:`absolute left-2 flex items-center ${G.select.itemIndicator}`,children:O.jsx(Ad,{className:"w-3 h-3"})}),O.jsx(u1,{children:n.label})]},n.value))})})})]}),O.jsxs(Vm,{children:[O.jsx(Pm,{asChild:!0,children:O.jsx("button",{onClick:()=>J.handlePaste(),className:`flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer ${G.button.icon.default} ${G.button.icon.hover}`,children:O.jsx(nN,{className:"w-3.5 h-3.5"})})}),O.jsx($m,{children:O.jsxs(Ym,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${G.tooltip.content} shadow-md`,sideOffset:5,children:[e("paste"),O.jsx(Gm,{className:G.tooltip.arrow})]})})]})]}),O.jsxs("div",{className:"flex items-center gap-0.5",children:[O.jsx(yy,{value:J.sourceLang,onValueChange:n=>J.setSourceLang(n),langs:t}),O.jsxs(Vm,{children:[O.jsx(Pm,{asChild:!0,children:O.jsx("button",{onClick:()=>J.handleSwapLanguages(),disabled:!J.canSwap,className:qa("group flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer",J.canSwap?`${G.button.icon.default} ${G.button.icon.hover}`:`${G.button.icon.disabled} cursor-not-allowed`),children:O.jsx(J2,{className:"w-3.5 h-3.5 transition-transform duration-300 ease-[cubic-bezier(0.34,1.4,0.64,1)] group-enabled:group-hover:rotate-180"})})}),O.jsx($m,{children:O.jsxs(Ym,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${G.tooltip.content} shadow-md`,sideOffset:5,children:[e("swapLanguages"),O.jsx(Gm,{className:G.tooltip.arrow})]})})]}),O.jsx(yy,{value:J.targetLang,onValueChange:n=>J.setTargetLang(n),langs:t,excludeAuto:!0})]}),O.jsxs("div",{className:"flex-1 flex items-center justify-end gap-1.5",children:[O.jsxs("button",{onClick:()=>J.handleCopy(),disabled:!J.canCopy,className:qa("flex items-center gap-1 px-2.5 py-1 text-[11.5px] font-medium rounded border transition-all duration-150 cursor-pointer bg-transparent",J.canCopy?J.copied?G.button.copy.copied:`${G.button.outlined.default} ${G.button.outlined.hover}`:`${G.button.outlined.disabled} cursor-not-allowed`),children:[J.copied?O.jsx(Ad,{className:"w-3 h-3"}):O.jsx(iN,{className:"w-3 h-3"}),J.copied?e("copied"):e("copy")]}),O.jsx("button",{onClick:()=>J.handleClear(),disabled:!J.canClear,className:qa("px-2.5 py-1 text-[11.5px] font-medium rounded border transition-colors duration-150 cursor-pointer bg-transparent",J.canClear?`${G.button.outlined.default} ${G.button.outlined.hover}`:`${G.button.outlined.disabled} cursor-not-allowed`),children:e("clear")}),O.jsx("button",{onClick:()=>J.handleTranslate(),disabled:!J.canTranslate,className:qa("px-3 h-[26px] text-[11.5px] font-semibold rounded border-none transition-all duration-150 min-w-13 flex items-center justify-center gap-1 cursor-pointer",J.canTranslate?`${G.button.primary.default} ${G.button.primary.hover}`:`${G.button.primary.disabled} cursor-not-allowed`),children:J.isTranslating?O.jsx(g1,{}):e("translate")})]})]})}),lj=Jp(()=>{const{t:e}=qu();return O.jsxs("div",{className:"grid grid-cols-2 grid-rows-1 flex-1 min-h-0",children:[O.jsx("div",{className:`flex flex-col ${G.background.sourcePanel} border-r ${G.border.divider}`,children:O.jsx("textarea",{value:J.sourceText,onChange:t=>J.setSourceText(t.target.value),placeholder:e("sourcePlaceholder"),className:`flex-1 w-full px-4 py-3.5 text-[13px] leading-[1.75] resize-none outline-none border-none bg-transparent ${G.text.primary} ${G.text.placeholder}`})}),O.jsx("div",{className:`flex flex-col min-h-0 ${G.background.targetPanel}`,children:O.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 py-3.5",children:J.isTranslating?O.jsxs("div",{className:`flex items-center gap-2 ${G.text.translating} text-[12.5px]`,children:[O.jsx(g1,{}),O.jsx("span",{children:e("translating")})]}):J.translatedText?O.jsx("p",{className:`animate-fade-up text-[13px] leading-[1.75] whitespace-pre-wrap ${G.text.primary}`,children:J.translatedText}):O.jsx("p",{className:`text-[13px] italic ${G.text.muted}`,children:e("targetPlaceholder")})})})]})}),oj="Translation Error",sj="Enter text to translate...",uj="Translating",cj="Translation will appear here...",fj="Paste",dj="Swap Languages",hj="Copied",pj="Copy",vj="Clear",gj="Translate",mj="Please enter text to translate",yj="Translation failed, please try again",bj="Auto Detect",_j="English",Sj="Japanese",xj="Korean",Oj="French",Ej="Spanish",Tj="Russian",Aj="German",wj="Italian",Cj="Portuguese",Rj="Arabic",Nj="Hindi",Mj="Thai",Dj="Vietnamese",jj={translateError:oj,sourcePlaceholder:sj,translating:uj,targetPlaceholder:cj,paste:fj,swapLanguages:dj,copied:hj,copy:pj,clear:vj,translate:gj,emptySourceError:mj,translateFailed:yj,auto:bj,en:_j,ja:Sj,ko:xj,fr:Oj,es:Ej,ru:Tj,de:Aj,it:wj,pt:Cj,ar:Rj,hi:Nj,th:Mj,vi:Dj,"zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese"},Lj="翻译出错",zj="输入要翻译的文字...",Uj="翻译中",Bj="翻译结果将显示在这里...",Hj="粘贴",Vj="交换语言",Pj="已复制",$j="复制",Yj="清空",Gj="翻译",Kj="请输入要翻译的文字",qj="翻译失败,请稍后重试",kj="自动检测",Xj="英语",Qj="日语",Zj="韩语",Fj="法语",Ij="西班牙语",Jj="俄语",Wj="德语",eL="意大利语",tL="葡萄牙语",nL="阿拉伯语",aL="印地语",iL="泰语",rL="越南语",lL={translateError:Lj,sourcePlaceholder:zj,translating:Uj,targetPlaceholder:Bj,paste:Hj,swapLanguages:Vj,copied:Pj,copy:$j,clear:Yj,translate:Gj,emptySourceError:Kj,translateFailed:qj,auto:kj,en:Xj,ja:Qj,ko:Zj,fr:Fj,es:Ij,ru:Jj,de:Wj,it:eL,pt:tL,ar:nL,hi:aL,th:iL,vi:rL,"zh-CN":"简体中文","zh-TW":"繁体中文","zh-Hans":"简体中文","zh-Hant":"繁体中文"};ke.use($N).init({resources:{"en-US":{translation:jj},"zh-CN":{translation:lL}},lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});const oL=Jp(()=>{const{t:e}=qu();return O.jsx(P2,{duration:4e3,children:O.jsxs(v2,{delayDuration:300,children:[O.jsxs("div",{className:qa("h-screen flex flex-col overflow-hidden antialiased",G.background.app),children:[O.jsx(rj,{}),O.jsx(lj,{})]}),O.jsxs(Y2,{open:J.toastOpen,onOpenChange:t=>J.setToastOpen(t),className:qa(G.toast.root,"data-[state=open]:animate-fade-up data-[state=closed]:opacity-0 transition-opacity"),children:[O.jsxs("div",{className:"flex-1 min-w-0",children:[O.jsx(G2,{className:G.toast.title,children:e("translateError")}),O.jsx(K2,{className:G.toast.description,children:J.toastMsg})]}),O.jsx(q2,{className:G.toast.close,children:O.jsx(lN,{className:"w-3.5 h-3.5"})})]}),O.jsx($2,{className:G.toast.viewport})]})})});(async function(){const[e]=await Promise.all([tinker.getLanguage(),J.init()]);ke.changeLanguage(e);const t=document.getElementById("app");AT.createRoot(t).render(O.jsx(oL,{}))})();