zdashboard 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/web/assets/{FileIcon-CA7j6xAr.js → FileIcon-CDN2wCuK.js} +7 -7
- package/dist/web/assets/{FilterPills-CT9_aiMo.js → FilterPills-D_6kvZo5.js} +1 -1
- package/dist/web/assets/{MdViewer-C-qU08GL.js → MdViewer-WZMpNmB2.js} +1 -1
- package/dist/web/assets/{ProgressBar-CyYoGfrt.js → ProgressBar-DPJd_uDt.js} +1 -1
- package/dist/web/assets/{Workspace-CqK1Sdtv.js → Workspace-MeZD-u22.js} +2 -2
- package/dist/web/assets/badge-BbN-q0Cc.js +1 -0
- package/dist/web/assets/{book-open-DgUv7g0V.js → book-open-Dwx5kHtv.js} +1 -1
- package/dist/web/assets/{file-text-AM0snHQm.js → file-text-Co0hTLuo.js} +1 -1
- package/dist/web/assets/{index-BF1XYOKG.js → index-CHxXM6Fn.js} +1 -1
- package/dist/web/assets/index-Dkkxw5Oy.js +156 -0
- package/dist/web/assets/index-o5t5Kpfc.css +1 -0
- package/dist/web/assets/{web-BOZwX-p2.js → web-BYZeHggs.js} +6 -6
- package/dist/web/assets/web-BoW0qNb8.js +25 -0
- package/dist/web/assets/web-CMZAKAOi.js +7 -0
- package/dist/web/assets/{web-4IVEiPQ7.js → web-CkMm3ooW.js} +8 -8
- package/dist/web/assets/web-Dpd8wclV.js +26 -0
- package/dist/web/assets/{web-WH-i-efe.js → web-La5g0ovh.js} +1 -1
- package/dist/web/assets/web-ZM6TYT88.js +2 -0
- package/dist/web/index.html +2 -2
- package/package.json +2 -1
- package/dist/web/assets/badge-CsNeQaUt.js +0 -1
- package/dist/web/assets/index-C9nEYrn8.css +0 -1
- package/dist/web/assets/index-Dcz2Myaf.js +0 -111
- package/dist/web/assets/web-4pvyVYqE.js +0 -31
- package/dist/web/assets/web-B8iKfUHX.js +0 -2
- package/dist/web/assets/web-CPCrz28U.js +0 -25
- package/dist/web/assets/web-DJnenbT2.js +0 -7
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-CMZAKAOi.js","assets/badge-BbN-q0Cc.js","assets/ProgressBar-DPJd_uDt.js","assets/file-text-Co0hTLuo.js","assets/index-CHxXM6Fn.js","assets/web-La5g0ovh.js","assets/FilterPills-D_6kvZo5.js","assets/web-BYZeHggs.js","assets/MdViewer-WZMpNmB2.js","assets/MdViewer-BTcE7LSd.css","assets/FileIcon-CDN2wCuK.js","assets/book-open-Dwx5kHtv.js","assets/web-BoW0qNb8.js","assets/web-Dpd8wclV.js","assets/web-CkMm3ooW.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var mg=Object.defineProperty;var jc=e=>{throw TypeError(e)};var hg=(e,t,n)=>t in e?mg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var us=(e,t,n)=>hg(e,typeof t!="symbol"?t+"":t,n),Lc=(e,t,n)=>t.has(e)||jc("Cannot "+n);var _e=(e,t,n)=>(Lc(e,t,"read from private field"),n?n.call(e):t.get(e)),Ac=(e,t,n)=>t.has(e)?jc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),cs=(e,t,n,r)=>(Lc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function vg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Tk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Of(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mf={exports:{}},Ml={},If={exports:{}},K={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Qo=Symbol.for("react.element"),gg=Symbol.for("react.portal"),yg=Symbol.for("react.fragment"),wg=Symbol.for("react.strict_mode"),xg=Symbol.for("react.profiler"),Sg=Symbol.for("react.provider"),Eg=Symbol.for("react.context"),Cg=Symbol.for("react.forward_ref"),kg=Symbol.for("react.suspense"),bg=Symbol.for("react.memo"),Pg=Symbol.for("react.lazy"),Dc=Symbol.iterator;function Rg(e){return e===null||typeof e!="object"?null:(e=Dc&&e[Dc]||e["@@iterator"],typeof e=="function"?e:null)}var jf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lf=Object.assign,Af={};function Vr(e,t,n){this.props=e,this.context=t,this.refs=Af,this.updater=n||jf}Vr.prototype.isReactComponent={};Vr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Df(){}Df.prototype=Vr.prototype;function fu(e,t,n){this.props=e,this.context=t,this.refs=Af,this.updater=n||jf}var pu=fu.prototype=new Df;pu.constructor=fu;Lf(pu,Vr.prototype);pu.isPureReactComponent=!0;var zc=Array.isArray,zf=Object.prototype.hasOwnProperty,mu={current:null},Ff={key:!0,ref:!0,__self:!0,__source:!0};function $f(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)zf.call(t,r)&&!Ff.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Qo,type:e,key:i,ref:l,props:o,_owner:mu.current}}function _g(e,t){return{$$typeof:Qo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qo}function Ng(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fc=/\/+/g;function ds(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ng(""+e.key):t.toString(36)}function Ai(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Qo:case gg:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+ds(l,0):r,zc(o)?(n="",e!=null&&(n=e.replace(Fc,"$&/")+"/"),Ai(o,t,n,"",function(u){return u})):o!=null&&(hu(o)&&(o=_g(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Fc,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",zc(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+ds(i,s);l+=Ai(i,t,n,a,o)}else if(a=Rg(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+ds(i,s++),l+=Ai(i,t,n,a,o);else if(i==="object")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 ci(e,t,n){if(e==null)return e;var r=[],o=0;return Ai(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Tg(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 Ae={current:null},Di={transition:null},Og={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:Di,ReactCurrentOwner:mu};function Bf(){throw Error("act(...) is not supported in production builds of React.")}K.Children={map:ci,forEach:function(e,t,n){ci(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ci(e,function(){t++}),t},toArray:function(e){return ci(e,function(t){return t})||[]},only:function(e){if(!hu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};K.Component=Vr;K.Fragment=yg;K.Profiler=xg;K.PureComponent=fu;K.StrictMode=wg;K.Suspense=kg;K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Og;K.act=Bf;K.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Lf({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=mu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)zf.call(t,a)&&!Ff.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Qo,type:e.type,key:o,ref:i,props:r,_owner:l}};K.createContext=function(e){return e={$$typeof:Eg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Sg,_context:e},e.Consumer=e};K.createElement=$f;K.createFactory=function(e){var t=$f.bind(null,e);return t.type=e,t};K.createRef=function(){return{current:null}};K.forwardRef=function(e){return{$$typeof:Cg,render:e}};K.isValidElement=hu;K.lazy=function(e){return{$$typeof:Pg,_payload:{_status:-1,_result:e},_init:Tg}};K.memo=function(e,t){return{$$typeof:bg,type:e,compare:t===void 0?null:t}};K.startTransition=function(e){var t=Di.transition;Di.transition={};try{e()}finally{Di.transition=t}};K.unstable_act=Bf;K.useCallback=function(e,t){return Ae.current.useCallback(e,t)};K.useContext=function(e){return Ae.current.useContext(e)};K.useDebugValue=function(){};K.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};K.useEffect=function(e,t){return Ae.current.useEffect(e,t)};K.useId=function(){return Ae.current.useId()};K.useImperativeHandle=function(e,t,n){return Ae.current.useImperativeHandle(e,t,n)};K.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)};K.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)};K.useMemo=function(e,t){return Ae.current.useMemo(e,t)};K.useReducer=function(e,t,n){return Ae.current.useReducer(e,t,n)};K.useRef=function(e){return Ae.current.useRef(e)};K.useState=function(e){return Ae.current.useState(e)};K.useSyncExternalStore=function(e,t,n){return Ae.current.useSyncExternalStore(e,t,n)};K.useTransition=function(){return Ae.current.useTransition()};K.version="18.3.1";If.exports=K;var g=If.exports;const j=Of(g),Wr=vg({__proto__:null,default:j},[g]);/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var Mg=g,Ig=Symbol.for("react.element"),jg=Symbol.for("react.fragment"),Lg=Object.prototype.hasOwnProperty,Ag=Mg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dg={key:!0,ref:!0,__self:!0,__source:!0};function Uf(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Lg.call(t,r)&&!Dg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Ig,type:e,key:i,ref:l,props:o,_owner:Ag.current}}Ml.Fragment=jg;Ml.jsx=Uf;Ml.jsxs=Uf;Mf.exports=Ml;var E=Mf.exports,Zs={},Vf={exports:{}},Xe={},Wf={exports:{}},Hf={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/(function(e){function t(R,_){var N=R.length;R.push(_);e:for(;0<N;){var B=N-1>>>1,A=R[B];if(0<o(A,_))R[B]=_,R[N]=A,N=B;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var _=R[0],N=R.pop();if(N!==_){R[0]=N;e:for(var B=0,A=R.length,V=A>>>1;B<V;){var G=2*(B+1)-1,ie=R[G],he=G+1,Y=R[he];if(0>o(ie,N))he<A&&0>o(Y,ie)?(R[B]=Y,R[he]=N,B=he):(R[B]=ie,R[G]=N,B=G);else if(he<A&&0>o(Y,N))R[B]=Y,R[he]=N,B=he;else break e}}return _}function o(R,_){var N=R.sortIndex-_.sortIndex;return N!==0?N:R.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],f=1,d=null,p=3,c=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=R)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function S(R){if(v=!1,y(R),!w)if(n(a)!==null)w=!0,U(C);else{var _=n(u);_!==null&&z(S,_.startTime-R)}}function C(R,_){w=!1,v&&(v=!1,h(P),P=-1),c=!0;var N=p;try{for(y(_),d=n(a);d!==null&&(!(d.expirationTime>_)||R&&!D());){var B=d.callback;if(typeof B=="function"){d.callback=null,p=d.priorityLevel;var A=B(d.expirationTime<=_);_=e.unstable_now(),typeof A=="function"?d.callback=A:d===n(a)&&r(a),y(_)}else r(a);d=n(a)}if(d!==null)var V=!0;else{var G=n(u);G!==null&&z(S,G.startTime-_),V=!1}return V}finally{d=null,p=N,c=!1}}var k=!1,b=null,P=-1,M=5,O=-1;function D(){return!(e.unstable_now()-O<M)}function I(){if(b!==null){var R=e.unstable_now();O=R;var _=!0;try{_=b(!0,R)}finally{_?F():(k=!1,b=null)}}else k=!1}var F;if(typeof m=="function")F=function(){m(I)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,Q=$.port2;$.port1.onmessage=I,F=function(){Q.postMessage(null)}}else F=function(){x(I,0)};function U(R){b=R,k||(k=!0,F())}function z(R,_){P=x(function(){R(e.unstable_now())},_)}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(R){R.callback=null},e.unstable_continueExecution=function(){w||c||(w=!0,U(C))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(R){switch(p){case 1:case 2:case 3:var _=3;break;default:_=p}var N=p;p=_;try{return R()}finally{p=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,_){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var N=p;p=R;try{return _()}finally{p=N}},e.unstable_scheduleCallback=function(R,_,N){var B=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?B+N:B):N=B,R){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=N+A,R={id:f++,callback:_,priorityLevel:R,startTime:N,expirationTime:A,sortIndex:-1},N>B?(R.sortIndex=N,t(u,R),n(a)===null&&R===n(u)&&(v?(h(P),P=-1):v=!0,z(S,N-B))):(R.sortIndex=A,t(a,R),w||c||(w=!0,U(C))),R},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(R){var _=p;return function(){var N=p;p=_;try{return R.apply(this,arguments)}finally{p=N}}}})(Hf);Wf.exports=Hf;var zg=Wf.exports;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Fg=g,Qe=zg;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var Gf=new Set,Po={};function Jn(e,t){Ar(e,t),Ar(e+"Capture",t)}function Ar(e,t){for(Po[e]=t,e=0;e<t.length;e++)Gf.add(t[e])}var Vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Js=Object.prototype.hasOwnProperty,$g=/^[: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]*$/,$c={},Bc={};function Bg(e){return Js.call(Bc,e)?!0:Js.call($c,e)?!1:$g.test(e)?Bc[e]=!0:($c[e]=!0,!1)}function Ug(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vg(e,t,n,r){if(t===null||typeof t>"u"||Ug(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function De(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new De(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Re[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var vu=/[\-:]([a-z])/g;function gu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vu,gu);Re[t]=new De(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vu,gu);Re[t]=new De(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vu,gu);Re[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function yu(e,t,n,r){var o=Re.hasOwnProperty(t)?Re[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vg(t,n,o,r)&&(n=null),r||o===null?Bg(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Xt=Fg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,di=Symbol.for("react.element"),fr=Symbol.for("react.portal"),pr=Symbol.for("react.fragment"),wu=Symbol.for("react.strict_mode"),qs=Symbol.for("react.profiler"),Kf=Symbol.for("react.provider"),Yf=Symbol.for("react.context"),xu=Symbol.for("react.forward_ref"),ea=Symbol.for("react.suspense"),ta=Symbol.for("react.suspense_list"),Su=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),Qf=Symbol.for("react.offscreen"),Uc=Symbol.iterator;function to(e){return e===null||typeof e!="object"?null:(e=Uc&&e[Uc]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,fs;function fo(e){if(fs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);fs=t&&t[1]||""}return`
|
|
35
|
+
`+fs+e}var ps=!1;function ms(e,t){if(!e||ps)return"";ps=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
36
|
+
`),i=r.stack.split(`
|
|
37
|
+
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var a=`
|
|
38
|
+
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{ps=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fo(e):""}function Wg(e){switch(e.tag){case 5:return fo(e.type);case 16:return fo("Lazy");case 13:return fo("Suspense");case 19:return fo("SuspenseList");case 0:case 2:case 15:return e=ms(e.type,!1),e;case 11:return e=ms(e.type.render,!1),e;case 1:return e=ms(e.type,!0),e;default:return""}}function na(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pr:return"Fragment";case fr:return"Portal";case qs:return"Profiler";case wu:return"StrictMode";case ea:return"Suspense";case ta:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yf:return(e.displayName||"Context")+".Consumer";case Kf:return(e._context.displayName||"Context")+".Provider";case xu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Su:return t=e.displayName||null,t!==null?t:na(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return na(e(t))}catch{}}return null}function Hg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return na(t);case 8:return t===wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function En(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gg(e){var t=Xf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=Gg(e))}function Zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function tl(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}}function ra(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=En(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jf(e,t){t=t.checked,t!=null&&yu(e,"checked",t,!1)}function oa(e,t){Jf(e,t);var n=En(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ia(e,t.type,n):t.hasOwnProperty("defaultValue")&&ia(e,t.type,En(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ia(e,t,n){(t!=="number"||tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var po=Array.isArray;function br(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+En(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function la(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(po(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:En(n)}}function qf(e,t){var n=En(t.value),r=En(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ep(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function sa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ep(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pi,tp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pi=pi||document.createElement("div"),pi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Kg=["Webkit","ms","Moz","O"];Object.keys(vo).forEach(function(e){Kg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vo[t]=vo[e]})});function np(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vo.hasOwnProperty(e)&&vo[e]?(""+t).trim():t+"px"}function rp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=np(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Yg=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function aa(e,t){if(t){if(Yg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function ua(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ca=null;function Eu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var da=null,Pr=null,Rr=null;function Kc(e){if(e=Jo(e)){if(typeof da!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Dl(t),da(e.stateNode,e.type,t))}}function op(e){Pr?Rr?Rr.push(e):Rr=[e]:Pr=e}function ip(){if(Pr){var e=Pr,t=Rr;if(Rr=Pr=null,Kc(e),t)for(e=0;e<t.length;e++)Kc(t[e])}}function lp(e,t){return e(t)}function sp(){}var hs=!1;function ap(e,t,n){if(hs)return e(t,n);hs=!0;try{return lp(e,t,n)}finally{hs=!1,(Pr!==null||Rr!==null)&&(sp(),ip())}}function _o(e,t){var n=e.stateNode;if(n===null)return null;var r=Dl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var fa=!1;if(Vt)try{var no={};Object.defineProperty(no,"passive",{get:function(){fa=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{fa=!1}function Qg(e,t,n,r,o,i,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var go=!1,nl=null,rl=!1,pa=null,Xg={onError:function(e){go=!0,nl=e}};function Zg(e,t,n,r,o,i,l,s,a){go=!1,nl=null,Qg.apply(Xg,arguments)}function Jg(e,t,n,r,o,i,l,s,a){if(Zg.apply(this,arguments),go){if(go){var u=nl;go=!1,nl=null}else throw Error(T(198));rl||(rl=!0,pa=u)}}function qn(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 up(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 Yc(e){if(qn(e)!==e)throw Error(T(188))}function qg(e){var t=e.alternate;if(!t){if(t=qn(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Yc(o),e;if(i===r)return Yc(o),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function cp(e){return e=qg(e),e!==null?dp(e):null}function dp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=dp(e);if(t!==null)return t;e=e.sibling}return null}var fp=Qe.unstable_scheduleCallback,Qc=Qe.unstable_cancelCallback,ey=Qe.unstable_shouldYield,ty=Qe.unstable_requestPaint,fe=Qe.unstable_now,ny=Qe.unstable_getCurrentPriorityLevel,Cu=Qe.unstable_ImmediatePriority,pp=Qe.unstable_UserBlockingPriority,ol=Qe.unstable_NormalPriority,ry=Qe.unstable_LowPriority,mp=Qe.unstable_IdlePriority,Il=null,Tt=null;function oy(e){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(Il,e,void 0,(e.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:sy,iy=Math.log,ly=Math.LN2;function sy(e){return e>>>=0,e===0?32:31-(iy(e)/ly|0)|0}var mi=64,hi=4194304;function mo(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function il(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=mo(s):(i&=l,i!==0&&(r=mo(i)))}else l=n&~o,l!==0?r=mo(l):i!==0&&(r=mo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-wt(t),o=1<<n,r|=e[n],t&=~o;return r}function ay(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-wt(i),s=1<<l,a=o[l];a===-1?(!(s&n)||s&r)&&(o[l]=ay(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function ma(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hp(){var e=mi;return mi<<=1,!(mi&4194240)&&(mi=64),e}function vs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function cy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-wt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function ku(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var J=0;function vp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gp,bu,yp,wp,xp,ha=!1,vi=[],fn=null,pn=null,mn=null,No=new Map,To=new Map,an=[],dy="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 submit".split(" ");function Xc(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":pn=null;break;case"mouseover":case"mouseout":mn=null;break;case"pointerover":case"pointerout":No.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":To.delete(t.pointerId)}}function ro(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Jo(t),t!==null&&bu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function fy(e,t,n,r,o){switch(t){case"focusin":return fn=ro(fn,e,t,n,r,o),!0;case"dragenter":return pn=ro(pn,e,t,n,r,o),!0;case"mouseover":return mn=ro(mn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return No.set(i,ro(No.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,To.set(i,ro(To.get(i)||null,e,t,n,r,o)),!0}return!1}function Sp(e){var t=$n(e.target);if(t!==null){var n=qn(t);if(n!==null){if(t=n.tag,t===13){if(t=up(n),t!==null){e.blockedOn=t,xp(e.priority,function(){yp(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 zi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=va(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ca=r,n.target.dispatchEvent(r),ca=null}else return t=Jo(n),t!==null&&bu(t),e.blockedOn=n,!1;t.shift()}return!0}function Zc(e,t,n){zi(e)&&n.delete(t)}function py(){ha=!1,fn!==null&&zi(fn)&&(fn=null),pn!==null&&zi(pn)&&(pn=null),mn!==null&&zi(mn)&&(mn=null),No.forEach(Zc),To.forEach(Zc)}function oo(e,t){e.blockedOn===t&&(e.blockedOn=null,ha||(ha=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,py)))}function Oo(e){function t(o){return oo(o,e)}if(0<vi.length){oo(vi[0],e);for(var n=1;n<vi.length;n++){var r=vi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fn!==null&&oo(fn,e),pn!==null&&oo(pn,e),mn!==null&&oo(mn,e),No.forEach(t),To.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)Sp(n),n.blockedOn===null&&an.shift()}var _r=Xt.ReactCurrentBatchConfig,ll=!0;function my(e,t,n,r){var o=J,i=_r.transition;_r.transition=null;try{J=1,Pu(e,t,n,r)}finally{J=o,_r.transition=i}}function hy(e,t,n,r){var o=J,i=_r.transition;_r.transition=null;try{J=4,Pu(e,t,n,r)}finally{J=o,_r.transition=i}}function Pu(e,t,n,r){if(ll){var o=va(e,t,n,r);if(o===null)Ps(e,t,r,sl,n),Xc(e,r);else if(fy(o,e,t,n,r))r.stopPropagation();else if(Xc(e,r),t&4&&-1<dy.indexOf(e)){for(;o!==null;){var i=Jo(o);if(i!==null&&gp(i),i=va(e,t,n,r),i===null&&Ps(e,t,r,sl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Ps(e,t,r,null,n)}}var sl=null;function va(e,t,n,r){if(sl=null,e=Eu(r),e=$n(e),e!==null)if(t=qn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=up(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 sl=e,null}function Ep(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ny()){case Cu:return 1;case pp:return 4;case ol:case ry:return 16;case mp:return 536870912;default:return 16}default:return 16}}var cn=null,Ru=null,Fi=null;function Cp(){if(Fi)return Fi;var e,t=Ru,n=t.length,r,o="value"in cn?cn.value:cn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return Fi=o.slice(e,1<r?1-r:void 0)}function $i(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 gi(){return!0}function Jc(){return!1}function Ze(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?gi:Jc,this.isPropagationStopped=Jc,this}return ce(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=gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gi)},persist:function(){},isPersistent:gi}),t}var Hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_u=Ze(Hr),Zo=ce({},Hr,{view:0,detail:0}),vy=Ze(Zo),gs,ys,io,jl=ce({},Zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nu,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!==io&&(io&&e.type==="mousemove"?(gs=e.screenX-io.screenX,ys=e.screenY-io.screenY):ys=gs=0,io=e),gs)},movementY:function(e){return"movementY"in e?e.movementY:ys}}),qc=Ze(jl),gy=ce({},jl,{dataTransfer:0}),yy=Ze(gy),wy=ce({},Zo,{relatedTarget:0}),ws=Ze(wy),xy=ce({},Hr,{animationName:0,elapsedTime:0,pseudoElement:0}),Sy=Ze(xy),Ey=ce({},Hr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cy=Ze(Ey),ky=ce({},Hr,{data:0}),ed=Ze(ky),by={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Py={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"},Ry={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _y(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ry[e])?!!t[e]:!1}function Nu(){return _y}var Ny=ce({},Zo,{key:function(e){if(e.key){var t=by[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Py[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nu,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ty=Ze(Ny),Oy=ce({},jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),td=Ze(Oy),My=ce({},Zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nu}),Iy=Ze(My),jy=ce({},Hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ly=Ze(jy),Ay=ce({},jl,{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}),Dy=Ze(Ay),zy=[9,13,27,32],Tu=Vt&&"CompositionEvent"in window,yo=null;Vt&&"documentMode"in document&&(yo=document.documentMode);var Fy=Vt&&"TextEvent"in window&&!yo,kp=Vt&&(!Tu||yo&&8<yo&&11>=yo),nd=" ",rd=!1;function bp(e,t){switch(e){case"keyup":return zy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mr=!1;function $y(e,t){switch(e){case"compositionend":return Pp(t);case"keypress":return t.which!==32?null:(rd=!0,nd);case"textInput":return e=t.data,e===nd&&rd?null:e;default:return null}}function By(e,t){if(mr)return e==="compositionend"||!Tu&&bp(e,t)?(e=Cp(),Fi=Ru=cn=null,mr=!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 kp&&t.locale!=="ko"?null:t.data;default:return null}}var Uy={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 od(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uy[e.type]:t==="textarea"}function Rp(e,t,n,r){op(r),t=al(t,"onChange"),0<t.length&&(n=new _u("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wo=null,Mo=null;function Vy(e){zp(e,0)}function Ll(e){var t=gr(e);if(Zf(t))return e}function Wy(e,t){if(e==="change")return t}var _p=!1;if(Vt){var xs;if(Vt){var Ss="oninput"in document;if(!Ss){var id=document.createElement("div");id.setAttribute("oninput","return;"),Ss=typeof id.oninput=="function"}xs=Ss}else xs=!1;_p=xs&&(!document.documentMode||9<document.documentMode)}function ld(){wo&&(wo.detachEvent("onpropertychange",Np),Mo=wo=null)}function Np(e){if(e.propertyName==="value"&&Ll(Mo)){var t=[];Rp(t,Mo,e,Eu(e)),ap(Vy,t)}}function Hy(e,t,n){e==="focusin"?(ld(),wo=t,Mo=n,wo.attachEvent("onpropertychange",Np)):e==="focusout"&&ld()}function Gy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ll(Mo)}function Ky(e,t){if(e==="click")return Ll(t)}function Yy(e,t){if(e==="input"||e==="change")return Ll(t)}function Qy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:Qy;function Io(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Js.call(t,o)||!St(e[o],t[o]))return!1}return!0}function sd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ad(e,t){var n=sd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sd(n)}}function Tp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Op(){for(var e=window,t=tl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tl(e.document)}return t}function Ou(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")}function Xy(e){var t=Op(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tp(n.ownerDocument.documentElement,n)){if(r!==null&&Ou(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ad(n,i);var l=ad(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zy=Vt&&"documentMode"in document&&11>=document.documentMode,hr=null,ga=null,xo=null,ya=!1;function ud(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ya||hr==null||hr!==tl(r)||(r=hr,"selectionStart"in r&&Ou(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xo&&Io(xo,r)||(xo=r,r=al(ga,"onSelect"),0<r.length&&(t=new _u("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vr={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionend:yi("Transition","TransitionEnd")},Es={},Mp={};Vt&&(Mp=document.createElement("div").style,"AnimationEvent"in window||(delete vr.animationend.animation,delete vr.animationiteration.animation,delete vr.animationstart.animation),"TransitionEvent"in window||delete vr.transitionend.transition);function Al(e){if(Es[e])return Es[e];if(!vr[e])return e;var t=vr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mp)return Es[e]=t[n];return e}var Ip=Al("animationend"),jp=Al("animationiteration"),Lp=Al("animationstart"),Ap=Al("transitionend"),Dp=new Map,cd="abort auxClick 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(" ");function Rn(e,t){Dp.set(e,t),Jn(t,[e])}for(var Cs=0;Cs<cd.length;Cs++){var ks=cd[Cs],Jy=ks.toLowerCase(),qy=ks[0].toUpperCase()+ks.slice(1);Rn(Jy,"on"+qy)}Rn(Ip,"onAnimationEnd");Rn(jp,"onAnimationIteration");Rn(Lp,"onAnimationStart");Rn("dblclick","onDoubleClick");Rn("focusin","onFocus");Rn("focusout","onBlur");Rn(Ap,"onTransitionEnd");Ar("onMouseEnter",["mouseout","mouseover"]);Ar("onMouseLeave",["mouseout","mouseover"]);Ar("onPointerEnter",["pointerout","pointerover"]);Ar("onPointerLeave",["pointerout","pointerover"]);Jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Jn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ho="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(" "),e0=new Set("cancel close invalid load scroll toggle".split(" ").concat(ho));function dd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Jg(r,t,void 0,e),e.currentTarget=null}function zp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;dd(o,s,u),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;dd(o,s,u),i=a}}}if(rl)throw e=pa,rl=!1,pa=null,e}function re(e,t){var n=t[Ca];n===void 0&&(n=t[Ca]=new Set);var r=e+"__bubble";n.has(r)||(Fp(t,e,2,!1),n.add(r))}function bs(e,t,n){var r=0;t&&(r|=4),Fp(n,e,r,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[wi]){e[wi]=!0,Gf.forEach(function(n){n!=="selectionchange"&&(e0.has(n)||bs(n,!1,e),bs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,bs("selectionchange",!1,t))}}function Fp(e,t,n,r){switch(Ep(t)){case 1:var o=my;break;case 4:o=hy;break;default:o=Pu}n=o.bind(null,t,n,e),o=void 0,!fa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ps(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=$n(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}ap(function(){var u=i,f=Eu(n),d=[];e:{var p=Dp.get(e);if(p!==void 0){var c=_u,w=e;switch(e){case"keypress":if($i(n)===0)break e;case"keydown":case"keyup":c=Ty;break;case"focusin":w="focus",c=ws;break;case"focusout":w="blur",c=ws;break;case"beforeblur":case"afterblur":c=ws;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":c=qc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=yy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Iy;break;case Ip:case jp:case Lp:c=Sy;break;case Ap:c=Ly;break;case"scroll":c=vy;break;case"wheel":c=Dy;break;case"copy":case"cut":case"paste":c=Cy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=td}var v=(t&4)!==0,x=!v&&e==="scroll",h=v?p!==null?p+"Capture":null:p;v=[];for(var m=u,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,h!==null&&(S=_o(m,h),S!=null&&v.push(Lo(m,S,y)))),x)break;m=m.return}0<v.length&&(p=new c(p,w,null,n,f),d.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",c=e==="mouseout"||e==="pointerout",p&&n!==ca&&(w=n.relatedTarget||n.fromElement)&&($n(w)||w[Wt]))break e;if((c||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,c?(w=n.relatedTarget||n.toElement,c=u,w=w?$n(w):null,w!==null&&(x=qn(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(c=null,w=u),c!==w)){if(v=qc,S="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=td,S="onPointerLeave",h="onPointerEnter",m="pointer"),x=c==null?p:gr(c),y=w==null?p:gr(w),p=new v(S,m+"leave",c,n,f),p.target=x,p.relatedTarget=y,S=null,$n(f)===u&&(v=new v(h,m+"enter",w,n,f),v.target=y,v.relatedTarget=x,S=v),x=S,c&&w)t:{for(v=c,h=w,m=0,y=v;y;y=sr(y))m++;for(y=0,S=h;S;S=sr(S))y++;for(;0<m-y;)v=sr(v),m--;for(;0<y-m;)h=sr(h),y--;for(;m--;){if(v===h||h!==null&&v===h.alternate)break t;v=sr(v),h=sr(h)}v=null}else v=null;c!==null&&fd(d,p,c,v,!1),w!==null&&x!==null&&fd(d,x,w,v,!0)}}e:{if(p=u?gr(u):window,c=p.nodeName&&p.nodeName.toLowerCase(),c==="select"||c==="input"&&p.type==="file")var C=Wy;else if(od(p))if(_p)C=Yy;else{C=Gy;var k=Hy}else(c=p.nodeName)&&c.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=Ky);if(C&&(C=C(e,u))){Rp(d,C,n,f);break e}k&&k(e,p,u),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&ia(p,"number",p.value)}switch(k=u?gr(u):window,e){case"focusin":(od(k)||k.contentEditable==="true")&&(hr=k,ga=u,xo=null);break;case"focusout":xo=ga=hr=null;break;case"mousedown":ya=!0;break;case"contextmenu":case"mouseup":case"dragend":ya=!1,ud(d,n,f);break;case"selectionchange":if(Zy)break;case"keydown":case"keyup":ud(d,n,f)}var b;if(Tu)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else mr?bp(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(kp&&n.locale!=="ko"&&(mr||P!=="onCompositionStart"?P==="onCompositionEnd"&&mr&&(b=Cp()):(cn=f,Ru="value"in cn?cn.value:cn.textContent,mr=!0)),k=al(u,P),0<k.length&&(P=new ed(P,e,null,n,f),d.push({event:P,listeners:k}),b?P.data=b:(b=Pp(n),b!==null&&(P.data=b)))),(b=Fy?$y(e,n):By(e,n))&&(u=al(u,"onBeforeInput"),0<u.length&&(f=new ed("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=b))}zp(d,t)})}function Lo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function al(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=_o(e,n),i!=null&&r.unshift(Lo(e,i,o)),i=_o(e,t),i!=null&&r.push(Lo(e,i,o))),e=e.return}return r}function sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fd(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=_o(n,i),a!=null&&l.unshift(Lo(n,a,s))):o||(a=_o(n,i),a!=null&&l.push(Lo(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var t0=/\r\n?/g,n0=/\u0000|\uFFFD/g;function pd(e){return(typeof e=="string"?e:""+e).replace(t0,`
|
|
39
|
+
`).replace(n0,"")}function xi(e,t,n){if(t=pd(t),pd(e)!==t&&n)throw Error(T(425))}function ul(){}var wa=null,xa=null;function Sa(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ea=typeof setTimeout=="function"?setTimeout:void 0,r0=typeof clearTimeout=="function"?clearTimeout:void 0,md=typeof Promise=="function"?Promise:void 0,o0=typeof queueMicrotask=="function"?queueMicrotask:typeof md<"u"?function(e){return md.resolve(null).then(e).catch(i0)}:Ea;function i0(e){setTimeout(function(){throw e})}function Rs(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Oo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Oo(t)}function hn(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==="$?")break;if(t==="/$")return null}}return e}function hd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Gr=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Gr,Ao="__reactProps$"+Gr,Wt="__reactContainer$"+Gr,Ca="__reactEvents$"+Gr,l0="__reactListeners$"+Gr,s0="__reactHandles$"+Gr;function $n(e){var t=e[Rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wt]||n[Rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hd(e);e!==null;){if(n=e[Rt])return n;e=hd(e)}return t}e=n,n=e.parentNode}return null}function Jo(e){return e=e[Rt]||e[Wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function gr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Dl(e){return e[Ao]||null}var ka=[],yr=-1;function _n(e){return{current:e}}function oe(e){0>yr||(e.current=ka[yr],ka[yr]=null,yr--)}function ee(e,t){yr++,ka[yr]=e.current,e.current=t}var Cn={},Me=_n(Cn),Be=_n(!1),Hn=Cn;function Dr(e,t){var n=e.type.contextTypes;if(!n)return Cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ue(e){return e=e.childContextTypes,e!=null}function cl(){oe(Be),oe(Me)}function vd(e,t,n){if(Me.current!==Cn)throw Error(T(168));ee(Me,t),ee(Be,n)}function $p(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,Hg(e)||"Unknown",o));return ce({},n,r)}function dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Hn=Me.current,ee(Me,e),ee(Be,Be.current),!0}function gd(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=$p(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=e,oe(Be),oe(Me),ee(Me,e)):oe(Be),ee(Be,n)}var Dt=null,zl=!1,_s=!1;function Bp(e){Dt===null?Dt=[e]:Dt.push(e)}function a0(e){zl=!0,Bp(e)}function Nn(){if(!_s&&Dt!==null){_s=!0;var e=0,t=J;try{var n=Dt;for(J=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dt=null,zl=!1}catch(o){throw Dt!==null&&(Dt=Dt.slice(e+1)),fp(Cu,Nn),o}finally{J=t,_s=!1}}return null}var wr=[],xr=0,fl=null,pl=0,et=[],tt=0,Gn=null,zt=1,Ft="";function zn(e,t){wr[xr++]=pl,wr[xr++]=fl,fl=e,pl=t}function Up(e,t,n){et[tt++]=zt,et[tt++]=Ft,et[tt++]=Gn,Gn=e;var r=zt;e=Ft;var o=32-wt(r)-1;r&=~(1<<o),n+=1;var i=32-wt(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,zt=1<<32-wt(t)+o|n<<o|r,Ft=i+e}else zt=1<<i|n<<o|r,Ft=e}function Mu(e){e.return!==null&&(zn(e,1),Up(e,1,0))}function Iu(e){for(;e===fl;)fl=wr[--xr],wr[xr]=null,pl=wr[--xr],wr[xr]=null;for(;e===Gn;)Gn=et[--tt],et[tt]=null,Ft=et[--tt],et[tt]=null,zt=et[--tt],et[tt]=null}var Ye=null,Ke=null,se=!1,yt=null;function Vp(e,t){var n=rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function yd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ye=e,Ke=hn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ye=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gn!==null?{id:zt,overflow:Ft}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ye=e,Ke=null,!0):!1;default:return!1}}function ba(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Pa(e){if(se){var t=Ke;if(t){var n=t;if(!yd(e,t)){if(ba(e))throw Error(T(418));t=hn(n.nextSibling);var r=Ye;t&&yd(e,t)?Vp(r,n):(e.flags=e.flags&-4097|2,se=!1,Ye=e)}}else{if(ba(e))throw Error(T(418));e.flags=e.flags&-4097|2,se=!1,Ye=e}}}function wd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function Si(e){if(e!==Ye)return!1;if(!se)return wd(e),se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Sa(e.type,e.memoizedProps)),t&&(t=Ke)){if(ba(e))throw Wp(),Error(T(418));for(;t;)Vp(e,t),t=hn(t.nextSibling)}if(wd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Ye?hn(e.stateNode.nextSibling):null;return!0}function Wp(){for(var e=Ke;e;)e=hn(e.nextSibling)}function zr(){Ke=Ye=null,se=!1}function ju(e){yt===null?yt=[e]:yt.push(e)}var u0=Xt.ReactCurrentBatchConfig;function lo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Ei(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xd(e){var t=e._init;return t(e._payload)}function Hp(e){function t(h,m){if(e){var y=h.deletions;y===null?(h.deletions=[m],h.flags|=16):y.push(m)}}function n(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function o(h,m){return h=wn(h,m),h.index=0,h.sibling=null,h}function i(h,m,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<m?(h.flags|=2,m):y):(h.flags|=2,m)):(h.flags|=1048576,m)}function l(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,m,y,S){return m===null||m.tag!==6?(m=Ls(y,h.mode,S),m.return=h,m):(m=o(m,y),m.return=h,m)}function a(h,m,y,S){var C=y.type;return C===pr?f(h,m,y.props.children,S,y.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ln&&xd(C)===m.type)?(S=o(m,y.props),S.ref=lo(h,m,y),S.return=h,S):(S=Ki(y.type,y.key,y.props,null,h.mode,S),S.ref=lo(h,m,y),S.return=h,S)}function u(h,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=As(y,h.mode,S),m.return=h,m):(m=o(m,y.children||[]),m.return=h,m)}function f(h,m,y,S,C){return m===null||m.tag!==7?(m=Wn(y,h.mode,S,C),m.return=h,m):(m=o(m,y),m.return=h,m)}function d(h,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ls(""+m,h.mode,y),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case di:return y=Ki(m.type,m.key,m.props,null,h.mode,y),y.ref=lo(h,null,m),y.return=h,y;case fr:return m=As(m,h.mode,y),m.return=h,m;case ln:var S=m._init;return d(h,S(m._payload),y)}if(po(m)||to(m))return m=Wn(m,h.mode,y,null),m.return=h,m;Ei(h,m)}return null}function p(h,m,y,S){var C=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return C!==null?null:s(h,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case di:return y.key===C?a(h,m,y,S):null;case fr:return y.key===C?u(h,m,y,S):null;case ln:return C=y._init,p(h,m,C(y._payload),S)}if(po(y)||to(y))return C!==null?null:f(h,m,y,S,null);Ei(h,y)}return null}function c(h,m,y,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(y)||null,s(m,h,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case di:return h=h.get(S.key===null?y:S.key)||null,a(m,h,S,C);case fr:return h=h.get(S.key===null?y:S.key)||null,u(m,h,S,C);case ln:var k=S._init;return c(h,m,y,k(S._payload),C)}if(po(S)||to(S))return h=h.get(y)||null,f(m,h,S,C,null);Ei(m,S)}return null}function w(h,m,y,S){for(var C=null,k=null,b=m,P=m=0,M=null;b!==null&&P<y.length;P++){b.index>P?(M=b,b=null):M=b.sibling;var O=p(h,b,y[P],S);if(O===null){b===null&&(b=M);break}e&&b&&O.alternate===null&&t(h,b),m=i(O,m,P),k===null?C=O:k.sibling=O,k=O,b=M}if(P===y.length)return n(h,b),se&&zn(h,P),C;if(b===null){for(;P<y.length;P++)b=d(h,y[P],S),b!==null&&(m=i(b,m,P),k===null?C=b:k.sibling=b,k=b);return se&&zn(h,P),C}for(b=r(h,b);P<y.length;P++)M=c(b,h,P,y[P],S),M!==null&&(e&&M.alternate!==null&&b.delete(M.key===null?P:M.key),m=i(M,m,P),k===null?C=M:k.sibling=M,k=M);return e&&b.forEach(function(D){return t(h,D)}),se&&zn(h,P),C}function v(h,m,y,S){var C=to(y);if(typeof C!="function")throw Error(T(150));if(y=C.call(y),y==null)throw Error(T(151));for(var k=C=null,b=m,P=m=0,M=null,O=y.next();b!==null&&!O.done;P++,O=y.next()){b.index>P?(M=b,b=null):M=b.sibling;var D=p(h,b,O.value,S);if(D===null){b===null&&(b=M);break}e&&b&&D.alternate===null&&t(h,b),m=i(D,m,P),k===null?C=D:k.sibling=D,k=D,b=M}if(O.done)return n(h,b),se&&zn(h,P),C;if(b===null){for(;!O.done;P++,O=y.next())O=d(h,O.value,S),O!==null&&(m=i(O,m,P),k===null?C=O:k.sibling=O,k=O);return se&&zn(h,P),C}for(b=r(h,b);!O.done;P++,O=y.next())O=c(b,h,P,O.value,S),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?P:O.key),m=i(O,m,P),k===null?C=O:k.sibling=O,k=O);return e&&b.forEach(function(I){return t(h,I)}),se&&zn(h,P),C}function x(h,m,y,S){if(typeof y=="object"&&y!==null&&y.type===pr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case di:e:{for(var C=y.key,k=m;k!==null;){if(k.key===C){if(C=y.type,C===pr){if(k.tag===7){n(h,k.sibling),m=o(k,y.props.children),m.return=h,h=m;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ln&&xd(C)===k.type){n(h,k.sibling),m=o(k,y.props),m.ref=lo(h,k,y),m.return=h,h=m;break e}n(h,k);break}else t(h,k);k=k.sibling}y.type===pr?(m=Wn(y.props.children,h.mode,S,y.key),m.return=h,h=m):(S=Ki(y.type,y.key,y.props,null,h.mode,S),S.ref=lo(h,m,y),S.return=h,h=S)}return l(h);case fr:e:{for(k=y.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(h,m.sibling),m=o(m,y.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=As(y,h.mode,S),m.return=h,h=m}return l(h);case ln:return k=y._init,x(h,m,k(y._payload),S)}if(po(y))return w(h,m,y,S);if(to(y))return v(h,m,y,S);Ei(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,y),m.return=h,h=m):(n(h,m),m=Ls(y,h.mode,S),m.return=h,h=m),l(h)):n(h,m)}return x}var Fr=Hp(!0),Gp=Hp(!1),ml=_n(null),hl=null,Sr=null,Lu=null;function Au(){Lu=Sr=hl=null}function Du(e){var t=ml.current;oe(ml),e._currentValue=t}function Ra(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Nr(e,t){hl=e,Lu=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Lu!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(hl===null)throw Error(T(308));Sr=e,hl.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var Bn=null;function zu(e){Bn===null?Bn=[e]:Bn.push(e)}function Kp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ht(e,r)}function Ht(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sn=!1;function Fu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ht(e,n)}return o=r.interleaved,o===null?(t.next=t,zu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ht(e,n)}function Bi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ku(e,n)}}function Sd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vl(e,t,n,r){var o=e.updateQueue;sn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(i!==null){var d=o.baseState;l=0,f=u=a=null,s=i;do{var p=s.lane,c=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:c,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,v=s;switch(p=t,c=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(c,d,p);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,p=typeof w=="function"?w.call(c,d,p):w,p==null)break e;d=ce({},d,p);break e;case 2:sn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else c={eventTime:c,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=c,a=d):f=f.next=c,l|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Yn|=l,e.lanes=l,e.memoizedState=d}}function Ed(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(T(191,o));o.call(r)}}}var qo={},Ot=_n(qo),Do=_n(qo),zo=_n(qo);function Un(e){if(e===qo)throw Error(T(174));return e}function $u(e,t){switch(ee(zo,t),ee(Do,e),ee(Ot,qo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sa(t,e)}oe(Ot),ee(Ot,t)}function $r(){oe(Ot),oe(Do),oe(zo)}function Qp(e){Un(zo.current);var t=Un(Ot.current),n=sa(t,e.type);t!==n&&(ee(Do,e),ee(Ot,n))}function Bu(e){Do.current===e&&(oe(Ot),oe(Do))}var ae=_n(0);function gl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Ns=[];function Uu(){for(var e=0;e<Ns.length;e++)Ns[e]._workInProgressVersionPrimary=null;Ns.length=0}var Ui=Xt.ReactCurrentDispatcher,Ts=Xt.ReactCurrentBatchConfig,Kn=0,ue=null,ve=null,we=null,yl=!1,So=!1,Fo=0,c0=0;function Ne(){throw Error(T(321))}function Vu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function Wu(e,t,n,r,o,i){if(Kn=i,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ui.current=e===null||e.memoizedState===null?m0:h0,e=n(r,o),So){i=0;do{if(So=!1,Fo=0,25<=i)throw Error(T(301));i+=1,we=ve=null,t.updateQueue=null,Ui.current=v0,e=n(r,o)}while(So)}if(Ui.current=wl,t=ve!==null&&ve.next!==null,Kn=0,we=ve=ue=null,yl=!1,t)throw Error(T(300));return e}function Hu(){var e=Fo!==0;return Fo=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?ue.memoizedState=we=e:we=we.next=e,we}function st(){if(ve===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=ve.next;var t=we===null?ue.memoizedState:we.next;if(t!==null)we=t,ve=e;else{if(e===null)throw Error(T(310));ve=e,e={memoizedState:ve.memoizedState,baseState:ve.baseState,baseQueue:ve.baseQueue,queue:ve.queue,next:null},we===null?ue.memoizedState=we=e:we=we.next=e}return we}function $o(e,t){return typeof t=="function"?t(e):t}function Os(e){var t=st(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=ve,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,a=null,u=i;do{var f=u.lane;if((Kn&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=d,l=r):a=a.next=d,ue.lanes|=f,Yn|=f}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,St(r,t.memoizedState)||($e=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ue.lanes|=i,Yn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ms(e){var t=st(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);St(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Xp(){}function Zp(e,t){var n=ue,r=st(),o=t(),i=!St(r.memoizedState,o);if(i&&(r.memoizedState=o,$e=!0),r=r.queue,Gu(em.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||we!==null&&we.memoizedState.tag&1){if(n.flags|=2048,Bo(9,qp.bind(null,n,r,o,t),void 0,null),Ce===null)throw Error(T(349));Kn&30||Jp(n,t,o)}return o}function Jp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qp(e,t,n,r){t.value=n,t.getSnapshot=r,tm(t)&&nm(e)}function em(e,t,n){return n(function(){tm(t)&&nm(e)})}function tm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function nm(e){var t=Ht(e,1);t!==null&&xt(t,e,1,-1)}function Cd(e){var t=Pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e},t.queue=e,e=e.dispatch=p0.bind(null,ue,e),[t.memoizedState,e]}function Bo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function rm(){return st().memoizedState}function Vi(e,t,n,r){var o=Pt();ue.flags|=e,o.memoizedState=Bo(1|t,n,void 0,r===void 0?null:r)}function Fl(e,t,n,r){var o=st();r=r===void 0?null:r;var i=void 0;if(ve!==null){var l=ve.memoizedState;if(i=l.destroy,r!==null&&Vu(r,l.deps)){o.memoizedState=Bo(t,n,i,r);return}}ue.flags|=e,o.memoizedState=Bo(1|t,n,i,r)}function kd(e,t){return Vi(8390656,8,e,t)}function Gu(e,t){return Fl(2048,8,e,t)}function om(e,t){return Fl(4,2,e,t)}function im(e,t){return Fl(4,4,e,t)}function lm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sm(e,t,n){return n=n!=null?n.concat([e]):null,Fl(4,4,lm.bind(null,t,e),n)}function Ku(){}function am(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function um(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function cm(e,t,n){return Kn&21?(St(n,t)||(n=hp(),ue.lanes|=n,Yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$e=!0),e.memoizedState=n)}function d0(e,t){var n=J;J=n!==0&&4>n?n:4,e(!0);var r=Ts.transition;Ts.transition={};try{e(!1),t()}finally{J=n,Ts.transition=r}}function dm(){return st().memoizedState}function f0(e,t,n){var r=yn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fm(e))pm(t,n);else if(n=Kp(e,t,n,r),n!==null){var o=Le();xt(n,e,r,o),mm(n,t,r)}}function p0(e,t,n){var r=yn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fm(e))pm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,St(s,l)){var a=t.interleaved;a===null?(o.next=o,zu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Kp(e,t,o,r),n!==null&&(o=Le(),xt(n,e,r,o),mm(n,t,r))}}function fm(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function pm(e,t){So=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ku(e,n)}}var wl={readContext:lt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},m0={readContext:lt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:kd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vi(4194308,4,lm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=f0.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Cd,useDebugValue:Ku,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Cd(!1),t=e[0];return e=d0.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Pt();if(se){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Ce===null)throw Error(T(349));Kn&30||Jp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,kd(em.bind(null,r,i,e),[e]),r.flags|=2048,Bo(9,qp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Ce.identifierPrefix;if(se){var n=Ft,r=zt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=c0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},h0={readContext:lt,useCallback:am,useContext:lt,useEffect:Gu,useImperativeHandle:sm,useInsertionEffect:om,useLayoutEffect:im,useMemo:um,useReducer:Os,useRef:rm,useState:function(){return Os($o)},useDebugValue:Ku,useDeferredValue:function(e){var t=st();return cm(t,ve.memoizedState,e)},useTransition:function(){var e=Os($o)[0],t=st().memoizedState;return[e,t]},useMutableSource:Xp,useSyncExternalStore:Zp,useId:dm,unstable_isNewReconciler:!1},v0={readContext:lt,useCallback:am,useContext:lt,useEffect:Gu,useImperativeHandle:sm,useInsertionEffect:om,useLayoutEffect:im,useMemo:um,useReducer:Ms,useRef:rm,useState:function(){return Ms($o)},useDebugValue:Ku,useDeferredValue:function(e){var t=st();return ve===null?t.memoizedState=e:cm(t,ve.memoizedState,e)},useTransition:function(){var e=Ms($o)[0],t=st().memoizedState;return[e,t]},useMutableSource:Xp,useSyncExternalStore:Zp,useId:dm,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _a(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $l={isMounted:function(e){return(e=e._reactInternals)?qn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),o=yn(e),i=$t(r,o);i.payload=t,n!=null&&(i.callback=n),t=vn(e,i,o),t!==null&&(xt(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),o=yn(e),i=$t(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=vn(e,i,o),t!==null&&(xt(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=yn(e),o=$t(n,r);o.tag=2,t!=null&&(o.callback=t),t=vn(e,o,r),t!==null&&(xt(t,e,r,n),Bi(t,e,r))}};function bd(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Io(n,r)||!Io(o,i):!0}function hm(e,t,n){var r=!1,o=Cn,i=t.contextType;return typeof i=="object"&&i!==null?i=lt(i):(o=Ue(t)?Hn:Me.current,r=t.contextTypes,i=(r=r!=null)?Dr(e,o):Cn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$l,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Pd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$l.enqueueReplaceState(t,t.state,null)}function Na(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Fu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=lt(i):(i=Ue(t)?Hn:Me.current,o.context=Dr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(_a(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&$l.enqueueReplaceState(o,o.state,null),vl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Br(e,t){try{var n="",r=t;do n+=Wg(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
40
|
+
Error generating stack: `+i.message+`
|
|
41
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Is(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ta(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var g0=typeof WeakMap=="function"?WeakMap:Map;function vm(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sl||(Sl=!0,$a=r),Ta(e,t)},n}function gm(e,t,n){n=$t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ta(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ta(e,t),typeof r!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Rd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new g0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=O0.bind(null,e,t,n),t.then(e,e))}function _d(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Nd(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=$t(-1,1),t.tag=2,vn(n,t,1))),n.lanes|=1),e)}var y0=Xt.ReactCurrentOwner,$e=!1;function Ie(e,t,n,r){t.child=e===null?Gp(t,null,n,r):Fr(t,e.child,n,r)}function Td(e,t,n,r,o){n=n.render;var i=t.ref;return Nr(t,o),r=Wu(e,t,n,r,i,o),n=Hu(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gt(e,t,o)):(se&&n&&Mu(t),t.flags|=1,Ie(e,t,r,o),t.child)}function Od(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!tc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ym(e,t,i,r,o)):(e=Ki(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Io,n(l,r)&&e.ref===t.ref)return Gt(e,t,o)}return t.flags|=1,e=wn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ym(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Io(i,r)&&e.ref===t.ref)if($e=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&($e=!0);else return t.lanes=e.lanes,Gt(e,t,o)}return Oa(e,t,n,r,o)}function wm(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(Cr,He),He|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ee(Cr,He),He|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ee(Cr,He),He|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ee(Cr,He),He|=r;return Ie(e,t,o,n),t.child}function xm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(e,t,n,r,o){var i=Ue(n)?Hn:Me.current;return i=Dr(t,i),Nr(t,o),n=Wu(e,t,n,r,i,o),r=Hu(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gt(e,t,o)):(se&&r&&Mu(t),t.flags|=1,Ie(e,t,n,o),t.child)}function Md(e,t,n,r,o){if(Ue(n)){var i=!0;dl(t)}else i=!1;if(Nr(t,o),t.stateNode===null)Wi(e,t),hm(t,n,r),Na(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=lt(u):(u=Ue(n)?Hn:Me.current,u=Dr(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Pd(t,l,r,u),sn=!1;var p=t.memoizedState;l.state=p,vl(t,r,l,o),a=t.memoizedState,s!==r||p!==a||Be.current||sn?(typeof f=="function"&&(_a(t,n,f,r),a=t.memoizedState),(s=sn||bd(t,n,s,r,p,a,u))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Yp(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vt(t.type,s),l.props=u,d=t.pendingProps,p=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=lt(a):(a=Ue(n)?Hn:Me.current,a=Dr(t,a));var c=n.getDerivedStateFromProps;(f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==d||p!==a)&&Pd(t,l,r,a),sn=!1,p=t.memoizedState,l.state=p,vl(t,r,l,o);var w=t.memoizedState;s!==d||p!==w||Be.current||sn?(typeof c=="function"&&(_a(t,n,c,r),w=t.memoizedState),(u=sn||bd(t,n,u,r,p,w,a)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,w,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,w,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),l.props=r,l.state=w,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ma(e,t,n,r,i,o)}function Ma(e,t,n,r,o,i){xm(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&gd(t,n,!1),Gt(e,t,i);r=t.stateNode,y0.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Fr(t,e.child,null,i),t.child=Fr(t,null,s,i)):Ie(e,t,s,i),t.memoizedState=r.state,o&&gd(t,n,!0),t.child}function Sm(e){var t=e.stateNode;t.pendingContext?vd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vd(e,t.context,!1),$u(e,t.containerInfo)}function Id(e,t,n,r,o){return zr(),ju(o),t.flags|=256,Ie(e,t,n,r),t.child}var Ia={dehydrated:null,treeContext:null,retryLane:0};function ja(e){return{baseLanes:e,cachePool:null,transitions:null}}function Em(e,t,n){var r=t.pendingProps,o=ae.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ee(ae,o&1),e===null)return Pa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Vl(l,r,0,null),e=Wn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ja(n),t.memoizedState=Ia,e):Yu(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return w0(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=wn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=wn(s,i):(i=Wn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?ja(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Ia,r}return i=e.child,e=i.sibling,r=wn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Yu(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ci(e,t,n,r){return r!==null&&ju(r),Fr(t,e.child,null,n),e=Yu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function w0(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Is(Error(T(422))),Ci(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Vl({mode:"visible",children:r.children},o,0,null),i=Wn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Fr(t,e.child,null,l),t.child.memoizedState=ja(l),t.memoizedState=Ia,i);if(!(t.mode&1))return Ci(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(T(419)),r=Is(i,r,void 0),Ci(e,t,l,r)}if(s=(l&e.childLanes)!==0,$e||s){if(r=Ce,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ht(e,o),xt(r,e,o,-1))}return ec(),r=Is(Error(T(421))),Ci(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=M0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ke=hn(o.nextSibling),Ye=t,se=!0,yt=null,e!==null&&(et[tt++]=zt,et[tt++]=Ft,et[tt++]=Gn,zt=e.id,Ft=e.overflow,Gn=t),t=Yu(t,r.children),t.flags|=4096,t)}function jd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ra(e.return,t,n)}function js(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Cm(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ie(e,t,r.children,n),r=ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jd(e,n,t);else if(e.tag===19)jd(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}r&=1}if(ee(ae,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&gl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),js(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&gl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}js(t,!0,n,null,i);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function x0(e,t,n){switch(t.tag){case 3:Sm(t),zr();break;case 5:Qp(t);break;case 1:Ue(t.type)&&dl(t);break;case 4:$u(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ee(ml,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(ae,ae.current&1),t.flags|=128,null):n&t.child.childLanes?Em(e,t,n):(ee(ae,ae.current&1),e=Gt(e,t,n),e!==null?e.sibling:null);ee(ae,ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Cm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ee(ae,ae.current),r)break;return null;case 22:case 23:return t.lanes=0,wm(e,t,n)}return Gt(e,t,n)}var km,La,bm,Pm;km=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};La=function(){};bm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Un(Ot.current);var i=null;switch(n){case"input":o=ra(e,o),r=ra(e,r),i=[];break;case"select":o=ce({},o,{value:void 0}),r=ce({},r,{value:void 0}),i=[];break;case"textarea":o=la(e,o),r=la(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ul)}aa(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Po.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Po.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&re("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Pm=function(e,t,n,r){n!==r&&(t.flags|=4)};function so(e,t){if(!se)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function S0(e,t,n){var r=t.pendingProps;switch(Iu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Ue(t.type)&&cl(),Te(t),null;case 3:return r=t.stateNode,$r(),oe(Be),oe(Me),Uu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Si(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yt!==null&&(Va(yt),yt=null))),La(e,t),Te(t),null;case 5:Bu(t);var o=Un(zo.current);if(n=t.type,e!==null&&t.stateNode!=null)bm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return Te(t),null}if(e=Un(Ot.current),Si(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Rt]=t,r[Ao]=i,e=(t.mode&1)!==0,n){case"dialog":re("cancel",r),re("close",r);break;case"iframe":case"object":case"embed":re("load",r);break;case"video":case"audio":for(o=0;o<ho.length;o++)re(ho[o],r);break;case"source":re("error",r);break;case"img":case"image":case"link":re("error",r),re("load",r);break;case"details":re("toggle",r);break;case"input":Vc(r,i),re("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},re("invalid",r);break;case"textarea":Hc(r,i),re("invalid",r)}aa(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&xi(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&xi(r.textContent,s,e),o=["children",""+s]):Po.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&re("scroll",r)}switch(n){case"input":fi(r),Wc(r,i,!0);break;case"textarea":fi(r),Gc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ul)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ep(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Rt]=t,e[Ao]=r,km(e,t,!1,!1),t.stateNode=e;e:{switch(l=ua(n,r),n){case"dialog":re("cancel",e),re("close",e),o=r;break;case"iframe":case"object":case"embed":re("load",e),o=r;break;case"video":case"audio":for(o=0;o<ho.length;o++)re(ho[o],e);o=r;break;case"source":re("error",e),o=r;break;case"img":case"image":case"link":re("error",e),re("load",e),o=r;break;case"details":re("toggle",e),o=r;break;case"input":Vc(e,r),o=ra(e,r),re("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ce({},r,{value:void 0}),re("invalid",e);break;case"textarea":Hc(e,r),o=la(e,r),re("invalid",e);break;default:o=r}aa(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?rp(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&tp(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Ro(e,a):typeof a=="number"&&Ro(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Po.hasOwnProperty(i)?a!=null&&i==="onScroll"&&re("scroll",e):a!=null&&yu(e,i,a,l))}switch(n){case"input":fi(e),Wc(e,r,!1);break;case"textarea":fi(e),Gc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+En(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?br(e,!!r.multiple,i,!1):r.defaultValue!=null&&br(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ul)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Te(t),null;case 6:if(e&&t.stateNode!=null)Pm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Un(zo.current),Un(Ot.current),Si(t)){if(r=t.stateNode,n=t.memoizedProps,r[Rt]=t,(i=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:xi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Rt]=t,t.stateNode=r}return Te(t),null;case 13:if(oe(ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(se&&Ke!==null&&t.mode&1&&!(t.flags&128))Wp(),zr(),t.flags|=98560,i=!1;else if(i=Si(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[Rt]=t}else zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),i=!1}else yt!==null&&(Va(yt),yt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ae.current&1?ge===0&&(ge=3):ec())),t.updateQueue!==null&&(t.flags|=4),Te(t),null);case 4:return $r(),La(e,t),e===null&&jo(t.stateNode.containerInfo),Te(t),null;case 10:return Du(t.type._context),Te(t),null;case 17:return Ue(t.type)&&cl(),Te(t),null;case 19:if(oe(ae),i=t.memoizedState,i===null)return Te(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)so(i,!1);else{if(ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=gl(e),l!==null){for(t.flags|=128,so(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(ae,ae.current&1|2),t.child}e=e.sibling}i.tail!==null&&fe()>Ur&&(t.flags|=128,r=!0,so(i,!1),t.lanes=4194304)}else{if(!r)if(e=gl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),so(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!se)return Te(t),null}else 2*fe()-i.renderingStartTime>Ur&&n!==1073741824&&(t.flags|=128,r=!0,so(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=fe(),t.sibling=null,n=ae.current,ee(ae,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return qu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function E0(e,t){switch(Iu(t),t.tag){case 1:return Ue(t.type)&&cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),oe(Be),oe(Me),Uu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bu(t),null;case 13:if(oe(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ae),null;case 4:return $r(),null;case 10:return Du(t.type._context),null;case 22:case 23:return qu(),null;case 24:return null;default:return null}}var ki=!1,Oe=!1,C0=typeof WeakSet=="function"?WeakSet:Set,L=null;function Er(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function Aa(e,t,n){try{n()}catch(r){de(e,t,r)}}var Ld=!1;function k0(e,t){if(wa=ll,e=Op(),Ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var c;d!==n||o!==0&&d.nodeType!==3||(s=l+o),d!==i||r!==0&&d.nodeType!==3||(a=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(c=d.firstChild)!==null;)p=d,d=c;for(;;){if(d===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++f===r&&(a=l),(c=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=c}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(xa={focusedElem:e,selectionRange:n},ll=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,x=w.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:vt(t.type,v),x);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(S){de(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return w=Ld,Ld=!1,w}function Eo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Aa(t,n,i)}o=o.next}while(o!==r)}}function Bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Da(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rm(e){var t=e.alternate;t!==null&&(e.alternate=null,Rm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Ao],delete t[Ca],delete t[l0],delete t[s0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _m(e){return e.tag===5||e.tag===3||e.tag===4}function Ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(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.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 za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ul));else if(r!==4&&(e=e.child,e!==null))for(za(e,t,n),e=e.sibling;e!==null;)za(e,t,n),e=e.sibling}function Fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fa(e,t,n),e=e.sibling;e!==null;)Fa(e,t,n),e=e.sibling}var be=null,gt=!1;function nn(e,t,n){for(n=n.child;n!==null;)Nm(e,t,n),n=n.sibling}function Nm(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:Oe||Er(n,t);case 6:var r=be,o=gt;be=null,nn(e,t,n),be=r,gt=o,be!==null&&(gt?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(gt?(e=be,n=n.stateNode,e.nodeType===8?Rs(e.parentNode,n):e.nodeType===1&&Rs(e,n),Oo(e)):Rs(be,n.stateNode));break;case 4:r=be,o=gt,be=n.stateNode.containerInfo,gt=!0,nn(e,t,n),be=r,gt=o;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Aa(n,t,l),o=o.next}while(o!==r)}nn(e,t,n);break;case 1:if(!Oe&&(Er(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){de(n,t,s)}nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,nn(e,t,n),Oe=r):nn(e,t,n);break;default:nn(e,t,n)}}function Dd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new C0),t.forEach(function(r){var o=I0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:be=s.stateNode,gt=!1;break e;case 3:be=s.stateNode.containerInfo,gt=!0;break e;case 4:be=s.stateNode.containerInfo,gt=!0;break e}s=s.return}if(be===null)throw Error(T(160));Nm(i,l,o),be=null,gt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){de(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tm(t,e),t=t.sibling}function Tm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mt(t,e),kt(e),r&4){try{Eo(3,e,e.return),Bl(3,e)}catch(v){de(e,e.return,v)}try{Eo(5,e,e.return)}catch(v){de(e,e.return,v)}}break;case 1:mt(t,e),kt(e),r&512&&n!==null&&Er(n,n.return);break;case 5:if(mt(t,e),kt(e),r&512&&n!==null&&Er(n,n.return),e.flags&32){var o=e.stateNode;try{Ro(o,"")}catch(v){de(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Jf(o,i),ua(s,l);var u=ua(s,i);for(l=0;l<a.length;l+=2){var f=a[l],d=a[l+1];f==="style"?rp(o,d):f==="dangerouslySetInnerHTML"?tp(o,d):f==="children"?Ro(o,d):yu(o,f,d,u)}switch(s){case"input":oa(o,i);break;case"textarea":qf(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var c=i.value;c!=null?br(o,!!i.multiple,c,!1):p!==!!i.multiple&&(i.defaultValue!=null?br(o,!!i.multiple,i.defaultValue,!0):br(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ao]=i}catch(v){de(e,e.return,v)}}break;case 6:if(mt(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(T(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){de(e,e.return,v)}}break;case 3:if(mt(t,e),kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Oo(t.containerInfo)}catch(v){de(e,e.return,v)}break;case 4:mt(t,e),kt(e);break;case 13:mt(t,e),kt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Zu=fe())),r&4&&Dd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(u=Oe)||f,mt(t,e),Oe=u):mt(t,e),kt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(L=e,f=e.child;f!==null;){for(d=L=f;L!==null;){switch(p=L,c=p.child,p.tag){case 0:case 11:case 14:case 15:Eo(4,p,p.return);break;case 1:Er(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){de(r,n,v)}}break;case 5:Er(p,p.return);break;case 22:if(p.memoizedState!==null){Fd(d);continue}}c!==null?(c.return=p,L=c):Fd(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,a=d.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=np("display",l))}catch(v){de(e,e.return,v)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){de(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:mt(t,e),kt(e),r&4&&Dd(e);break;case 21:break;default:mt(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_m(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ro(o,""),r.flags&=-33);var i=Ad(e);Fa(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Ad(e);za(e,s,l);break;default:throw Error(T(161))}}catch(a){de(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function b0(e,t,n){L=e,Om(e)}function Om(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var o=L,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||ki;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||Oe;s=ki;var u=Oe;if(ki=l,(Oe=a)&&!u)for(L=o;L!==null;)l=L,a=l.child,l.tag===22&&l.memoizedState!==null?$d(o):a!==null?(a.return=l,L=a):$d(o);for(;i!==null;)L=i,Om(i),i=i.sibling;L=o,ki=s,Oe=u}zd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,L=i):zd(e)}}function zd(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Oe||Bl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Oe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ed(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ed(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&Oo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Oe||t.flags&512&&Da(t)}catch(p){de(t,t.return,p)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function Fd(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function $d(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bl(4,t)}catch(a){de(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){de(t,o,a)}}var i=t.return;try{Da(t)}catch(a){de(t,i,a)}break;case 5:var l=t.return;try{Da(t)}catch(a){de(t,l,a)}}}catch(a){de(t,t.return,a)}if(t===e){L=null;break}var s=t.sibling;if(s!==null){s.return=t.return,L=s;break}L=t.return}}var P0=Math.ceil,xl=Xt.ReactCurrentDispatcher,Qu=Xt.ReactCurrentOwner,ot=Xt.ReactCurrentBatchConfig,Z=0,Ce=null,me=null,Pe=0,He=0,Cr=_n(0),ge=0,Uo=null,Yn=0,Ul=0,Xu=0,Co=null,Fe=null,Zu=0,Ur=1/0,Lt=null,Sl=!1,$a=null,gn=null,bi=!1,dn=null,El=0,ko=0,Ba=null,Hi=-1,Gi=0;function Le(){return Z&6?fe():Hi!==-1?Hi:Hi=fe()}function yn(e){return e.mode&1?Z&2&&Pe!==0?Pe&-Pe:u0.transition!==null?(Gi===0&&(Gi=hp()),Gi):(e=J,e!==0||(e=window.event,e=e===void 0?16:Ep(e.type)),e):1}function xt(e,t,n,r){if(50<ko)throw ko=0,Ba=null,Error(T(185));Xo(e,n,r),(!(Z&2)||e!==Ce)&&(e===Ce&&(!(Z&2)&&(Ul|=n),ge===4&&un(e,Pe)),Ve(e,r),n===1&&Z===0&&!(t.mode&1)&&(Ur=fe()+500,zl&&Nn()))}function Ve(e,t){var n=e.callbackNode;uy(e,t);var r=il(e,e===Ce?Pe:0);if(r===0)n!==null&&Qc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qc(n),t===1)e.tag===0?a0(Bd.bind(null,e)):Bp(Bd.bind(null,e)),o0(function(){!(Z&6)&&Nn()}),n=null;else{switch(vp(r)){case 1:n=Cu;break;case 4:n=pp;break;case 16:n=ol;break;case 536870912:n=mp;break;default:n=ol}n=Fm(n,Mm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Mm(e,t){if(Hi=-1,Gi=0,Z&6)throw Error(T(327));var n=e.callbackNode;if(Tr()&&e.callbackNode!==n)return null;var r=il(e,e===Ce?Pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cl(e,r);else{t=r;var o=Z;Z|=2;var i=jm();(Ce!==e||Pe!==t)&&(Lt=null,Ur=fe()+500,Vn(e,t));do try{N0();break}catch(s){Im(e,s)}while(!0);Au(),xl.current=i,Z=o,me!==null?t=0:(Ce=null,Pe=0,t=ge)}if(t!==0){if(t===2&&(o=ma(e),o!==0&&(r=o,t=Ua(e,o))),t===1)throw n=Uo,Vn(e,0),un(e,r),Ve(e,fe()),n;if(t===6)un(e,r);else{if(o=e.current.alternate,!(r&30)&&!R0(o)&&(t=Cl(e,r),t===2&&(i=ma(e),i!==0&&(r=i,t=Ua(e,i))),t===1))throw n=Uo,Vn(e,0),un(e,r),Ve(e,fe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Fn(e,Fe,Lt);break;case 3:if(un(e,r),(r&130023424)===r&&(t=Zu+500-fe(),10<t)){if(il(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Le(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ea(Fn.bind(null,e,Fe,Lt),t);break}Fn(e,Fe,Lt);break;case 4:if(un(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-wt(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*P0(r/1960))-r,10<r){e.timeoutHandle=Ea(Fn.bind(null,e,Fe,Lt),r);break}Fn(e,Fe,Lt);break;case 5:Fn(e,Fe,Lt);break;default:throw Error(T(329))}}}return Ve(e,fe()),e.callbackNode===n?Mm.bind(null,e):null}function Ua(e,t){var n=Co;return e.current.memoizedState.isDehydrated&&(Vn(e,t).flags|=256),e=Cl(e,t),e!==2&&(t=Fe,Fe=n,t!==null&&Va(t)),e}function Va(e){Fe===null?Fe=e:Fe.push.apply(Fe,e)}function R0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!St(i(),o))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 un(e,t){for(t&=~Xu,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),r=1<<n;e[n]=-1,t&=~r}}function Bd(e){if(Z&6)throw Error(T(327));Tr();var t=il(e,0);if(!(t&1))return Ve(e,fe()),null;var n=Cl(e,t);if(e.tag!==0&&n===2){var r=ma(e);r!==0&&(t=r,n=Ua(e,r))}if(n===1)throw n=Uo,Vn(e,0),un(e,t),Ve(e,fe()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fn(e,Fe,Lt),Ve(e,fe()),null}function Ju(e,t){var n=Z;Z|=1;try{return e(t)}finally{Z=n,Z===0&&(Ur=fe()+500,zl&&Nn())}}function Qn(e){dn!==null&&dn.tag===0&&!(Z&6)&&Tr();var t=Z;Z|=1;var n=ot.transition,r=J;try{if(ot.transition=null,J=1,e)return e()}finally{J=r,ot.transition=n,Z=t,!(Z&6)&&Nn()}}function qu(){He=Cr.current,oe(Cr)}function Vn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,r0(n)),me!==null)for(n=me.return;n!==null;){var r=n;switch(Iu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&cl();break;case 3:$r(),oe(Be),oe(Me),Uu();break;case 5:Bu(r);break;case 4:$r();break;case 13:oe(ae);break;case 19:oe(ae);break;case 10:Du(r.type._context);break;case 22:case 23:qu()}n=n.return}if(Ce=e,me=e=wn(e.current,null),Pe=He=t,ge=0,Uo=null,Xu=Ul=Yn=0,Fe=Co=null,Bn!==null){for(t=0;t<Bn.length;t++)if(n=Bn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}Bn=null}return e}function Im(e,t){do{var n=me;try{if(Au(),Ui.current=wl,yl){for(var r=ue.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}yl=!1}if(Kn=0,we=ve=ue=null,So=!1,Fo=0,Qu.current=null,n===null||n.return===null){ge=1,Uo=t,me=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=Pe,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var c=_d(l);if(c!==null){c.flags&=-257,Nd(c,l,s,i,t),c.mode&1&&Rd(i,u,t),t=c,a=u;var w=t.updateQueue;if(w===null){var v=new Set;v.add(a),t.updateQueue=v}else w.add(a);break e}else{if(!(t&1)){Rd(i,u,t),ec();break e}a=Error(T(426))}}else if(se&&s.mode&1){var x=_d(l);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Nd(x,l,s,i,t),ju(Br(a,s));break e}}i=a=Br(a,s),ge!==4&&(ge=2),Co===null?Co=[i]:Co.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=vm(i,a,t);Sd(i,h);break e;case 1:s=a;var m=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(gn===null||!gn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=gm(i,s,t);Sd(i,S);break e}}i=i.return}while(i!==null)}Am(n)}catch(C){t=C,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function jm(){var e=xl.current;return xl.current=wl,e===null?wl:e}function ec(){(ge===0||ge===3||ge===2)&&(ge=4),Ce===null||!(Yn&268435455)&&!(Ul&268435455)||un(Ce,Pe)}function Cl(e,t){var n=Z;Z|=2;var r=jm();(Ce!==e||Pe!==t)&&(Lt=null,Vn(e,t));do try{_0();break}catch(o){Im(e,o)}while(!0);if(Au(),Z=n,xl.current=r,me!==null)throw Error(T(261));return Ce=null,Pe=0,ge}function _0(){for(;me!==null;)Lm(me)}function N0(){for(;me!==null&&!ey();)Lm(me)}function Lm(e){var t=zm(e.alternate,e,He);e.memoizedProps=e.pendingProps,t===null?Am(e):me=t,Qu.current=null}function Am(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=E0(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ge=6,me=null;return}}else if(n=S0(n,t,He),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ge===0&&(ge=5)}function Fn(e,t,n){var r=J,o=ot.transition;try{ot.transition=null,J=1,T0(e,t,n,r)}finally{ot.transition=o,J=r}return null}function T0(e,t,n,r){do Tr();while(dn!==null);if(Z&6)throw Error(T(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(cy(e,i),e===Ce&&(me=Ce=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bi||(bi=!0,Fm(ol,function(){return Tr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ot.transition,ot.transition=null;var l=J;J=1;var s=Z;Z|=4,Qu.current=null,k0(e,n),Tm(n,e),Xy(xa),ll=!!wa,xa=wa=null,e.current=n,b0(n),ty(),Z=s,J=l,ot.transition=i}else e.current=n;if(bi&&(bi=!1,dn=e,El=o),i=e.pendingLanes,i===0&&(gn=null),oy(n.stateNode),Ve(e,fe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Sl)throw Sl=!1,e=$a,$a=null,e;return El&1&&e.tag!==0&&Tr(),i=e.pendingLanes,i&1?e===Ba?ko++:(ko=0,Ba=e):ko=0,Nn(),null}function Tr(){if(dn!==null){var e=vp(El),t=ot.transition,n=J;try{if(ot.transition=null,J=16>e?16:e,dn===null)var r=!1;else{if(e=dn,dn=null,El=0,Z&6)throw Error(T(331));var o=Z;for(Z|=4,L=e.current;L!==null;){var i=L,l=i.child;if(L.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(L=u;L!==null;){var f=L;switch(f.tag){case 0:case 11:case 15:Eo(8,f,i)}var d=f.child;if(d!==null)d.return=f,L=d;else for(;L!==null;){f=L;var p=f.sibling,c=f.return;if(Rm(f),f===u){L=null;break}if(p!==null){p.return=c,L=p;break}L=c}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}L=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,L=l;else e:for(;L!==null;){if(i=L,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Eo(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,L=h;break e}L=i.return}}var m=e.current;for(L=m;L!==null;){l=L;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,L=y;else e:for(l=m;L!==null;){if(s=L,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Bl(9,s)}}catch(C){de(s,s.return,C)}if(s===l){L=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,L=S;break e}L=s.return}}if(Z=o,Nn(),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(Il,e)}catch{}r=!0}return r}finally{J=n,ot.transition=t}}return!1}function Ud(e,t,n){t=Br(n,t),t=vm(e,t,1),e=vn(e,t,1),t=Le(),e!==null&&(Xo(e,1,t),Ve(e,t))}function de(e,t,n){if(e.tag===3)Ud(e,e,n);else for(;t!==null;){if(t.tag===3){Ud(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gn===null||!gn.has(r))){e=Br(n,e),e=gm(t,e,1),t=vn(t,e,1),e=Le(),t!==null&&(Xo(t,1,e),Ve(t,e));break}}t=t.return}}function O0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(Pe&n)===n&&(ge===4||ge===3&&(Pe&130023424)===Pe&&500>fe()-Zu?Vn(e,0):Xu|=n),Ve(e,t)}function Dm(e,t){t===0&&(e.mode&1?(t=hi,hi<<=1,!(hi&130023424)&&(hi=4194304)):t=1);var n=Le();e=Ht(e,t),e!==null&&(Xo(e,t,n),Ve(e,n))}function M0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dm(e,n)}function I0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Dm(e,n)}var zm;zm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,x0(e,t,n);$e=!!(e.flags&131072)}else $e=!1,se&&t.flags&1048576&&Up(t,pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wi(e,t),e=t.pendingProps;var o=Dr(t,Me.current);Nr(t,n),o=Wu(null,t,r,e,o,n);var i=Hu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(i=!0,dl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Fu(t),o.updater=$l,t.stateNode=o,o._reactInternals=t,Na(t,r,e,n),t=Ma(null,t,r,!0,i,n)):(t.tag=0,se&&i&&Mu(t),Ie(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=L0(r),e=vt(r,e),o){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Md(null,t,r,e,n);break e;case 11:t=Td(null,t,r,e,n);break e;case 14:t=Od(null,t,r,vt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Oa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Md(e,t,r,o,n);case 3:e:{if(Sm(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Yp(e,t),vl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Br(Error(T(423)),t),t=Id(e,t,r,n,o);break e}else if(r!==o){o=Br(Error(T(424)),t),t=Id(e,t,r,n,o);break e}else for(Ke=hn(t.stateNode.containerInfo.firstChild),Ye=t,se=!0,yt=null,n=Gp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===o){t=Gt(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return Qp(t),e===null&&Pa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Sa(r,o)?l=null:i!==null&&Sa(r,i)&&(t.flags|=32),xm(e,t),Ie(e,t,l,n),t.child;case 6:return e===null&&Pa(t),null;case 13:return Em(e,t,n);case 4:return $u(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fr(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Td(e,t,r,o,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ee(ml,r._currentValue),r._currentValue=l,i!==null)if(St(i.value,l)){if(i.children===o.children&&!Be.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=$t(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ra(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(T(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ra(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ie(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Nr(t,n),o=lt(o),r=r(o),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,o=vt(r,t.pendingProps),o=vt(r.type,o),Od(e,t,r,o,n);case 15:return ym(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Wi(e,t),t.tag=1,Ue(r)?(e=!0,dl(t)):e=!1,Nr(t,n),hm(t,r,o),Na(t,r,o,n),Ma(null,t,r,!0,e,n);case 19:return Cm(e,t,n);case 22:return wm(e,t,n)}throw Error(T(156,t.tag))};function Fm(e,t){return fp(e,t)}function j0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new j0(e,t,n,r)}function tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L0(e){if(typeof e=="function")return tc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xu)return 11;if(e===Su)return 14}return 2}function wn(e,t){var n=e.alternate;return n===null?(n=rt(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&14680064,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}function Ki(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")tc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case pr:return Wn(n.children,o,i,t);case wu:l=8,o|=8;break;case qs:return e=rt(12,n,t,o|2),e.elementType=qs,e.lanes=i,e;case ea:return e=rt(13,n,t,o),e.elementType=ea,e.lanes=i,e;case ta:return e=rt(19,n,t,o),e.elementType=ta,e.lanes=i,e;case Qf:return Vl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kf:l=10;break e;case Yf:l=9;break e;case xu:l=11;break e;case Su:l=14;break e;case ln:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=rt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Wn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=rt(22,e,r,t),e.elementType=Qf,e.lanes=n,e.stateNode={isHidden:!1},e}function Ls(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function As(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vs(0),this.expirationTimes=vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function nc(e,t,n,r,o,i,l,s,a){return e=new A0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fu(i),e}function D0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $m(e){if(!e)return Cn;e=e._reactInternals;e:{if(qn(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ue(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Ue(n))return $p(e,n,t)}return t}function Bm(e,t,n,r,o,i,l,s,a){return e=nc(n,r,!0,e,o,i,l,s,a),e.context=$m(null),n=e.current,r=Le(),o=yn(n),i=$t(r,o),i.callback=t??null,vn(n,i,o),e.current.lanes=o,Xo(e,o,r),Ve(e,r),e}function Wl(e,t,n,r){var o=t.current,i=Le(),l=yn(o);return n=$m(n),t.context===null?t.context=n:t.pendingContext=n,t=$t(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=vn(o,t,l),e!==null&&(xt(e,o,l,i),Bi(e,o,l)),l}function kl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Vd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function rc(e,t){Vd(e,t),(e=e.alternate)&&Vd(e,t)}function z0(){return null}var Um=typeof reportError=="function"?reportError:function(e){console.error(e)};function oc(e){this._internalRoot=e}Hl.prototype.render=oc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Wl(e,t,null,null)};Hl.prototype.unmount=oc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qn(function(){Wl(null,e,null,null)}),t[Wt]=null}};function Hl(e){this._internalRoot=e}Hl.prototype.unstable_scheduleHydration=function(e){if(e){var t=wp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&Sp(e)}};function ic(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wd(){}function F0(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=kl(l);i.call(u)}}var l=Bm(t,r,e,0,null,!1,!1,"",Wd);return e._reactRootContainer=l,e[Wt]=l.current,jo(e.nodeType===8?e.parentNode:e),Qn(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=kl(a);s.call(u)}}var a=nc(e,0,!1,null,null,!1,!1,"",Wd);return e._reactRootContainer=a,e[Wt]=a.current,jo(e.nodeType===8?e.parentNode:e),Qn(function(){Wl(t,a,n,r)}),a}function Kl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var a=kl(l);s.call(a)}}Wl(t,l,e,o)}else l=F0(n,t,e,o,r);return kl(l)}gp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=mo(t.pendingLanes);n!==0&&(ku(t,n|1),Ve(t,fe()),!(Z&6)&&(Ur=fe()+500,Nn()))}break;case 13:Qn(function(){var r=Ht(e,1);if(r!==null){var o=Le();xt(r,e,1,o)}}),rc(e,1)}};bu=function(e){if(e.tag===13){var t=Ht(e,134217728);if(t!==null){var n=Le();xt(t,e,134217728,n)}rc(e,134217728)}};yp=function(e){if(e.tag===13){var t=yn(e),n=Ht(e,t);if(n!==null){var r=Le();xt(n,e,t,r)}rc(e,t)}};wp=function(){return J};xp=function(e,t){var n=J;try{return J=e,t()}finally{J=n}};da=function(e,t,n){switch(t){case"input":if(oa(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Dl(r);if(!o)throw Error(T(90));Zf(r),oa(r,o)}}}break;case"textarea":qf(e,n);break;case"select":t=n.value,t!=null&&br(e,!!n.multiple,t,!1)}};lp=Ju;sp=Qn;var $0={usingClientEntryPoint:!1,Events:[Jo,gr,Dl,op,ip,Ju]},ao={findFiberByHostInstance:$n,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},B0={bundleType:ao.bundleType,version:ao.version,rendererPackageName:ao.rendererPackageName,rendererConfig:ao.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cp(e),e===null?null:e.stateNode},findFiberByHostInstance:ao.findFiberByHostInstance||z0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pi.isDisabled&&Pi.supportsFiber)try{Il=Pi.inject(B0),Tt=Pi}catch{}}Xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$0;Xe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ic(t))throw Error(T(200));return D0(e,t,null,n)};Xe.createRoot=function(e,t){if(!ic(e))throw Error(T(299));var n=!1,r="",o=Um;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=nc(e,1,!1,null,null,n,!1,r,o),e[Wt]=t.current,jo(e.nodeType===8?e.parentNode:e),new oc(t)};Xe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=cp(t),e=e===null?null:e.stateNode,e};Xe.flushSync=function(e){return Qn(e)};Xe.hydrate=function(e,t,n){if(!Gl(t))throw Error(T(200));return Kl(null,e,t,!0,n)};Xe.hydrateRoot=function(e,t,n){if(!ic(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Um;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Bm(t,null,e,1,n??null,o,!1,i,l),e[Wt]=t.current,jo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Hl(t)};Xe.render=function(e,t,n){if(!Gl(t))throw Error(T(200));return Kl(null,e,t,!1,n)};Xe.unmountComponentAtNode=function(e){if(!Gl(e))throw Error(T(40));return e._reactRootContainer?(Qn(function(){Kl(null,null,e,!1,function(){e._reactRootContainer=null,e[Wt]=null})}),!0):!1};Xe.unstable_batchedUpdates=Ju;Xe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gl(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Kl(e,t,n,!1,r)};Xe.version="18.3.1-next-f1338f8080-20240426";function Vm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vm)}catch(e){console.error(e)}}Vm(),Vf.exports=Xe;var ei=Vf.exports;const U0=Of(ei);var Hd=ei;Zs.createRoot=Hd.createRoot,Zs.hydrateRoot=Hd.hydrateRoot;var V0=Object.defineProperty,lc=(e,t)=>V0(e,"name",{value:t,configurable:!0});function Wa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}lc(Wa,"setRef");function Wm(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Wa(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Wa(e[o],null)}}}}lc(Wm,"composeRefs");function ye(...e){return g.useCallback(Wm(...e),e)}lc(ye,"useComposedRefs");var W0=Object.defineProperty,Et=(e,t)=>W0(e,"name",{value:t,configurable:!0});function kn(e){const t=g.forwardRef((n,r)=>{let{children:o,...i}=n,l=null,s=!1;const a=[];Ha(o)&&typeof Ri=="function"&&(o=Ri(o._payload)),g.Children.forEach(o,p=>{var c;if(Qm(p)){s=!0;const w=p;let v="child"in w.props?w.props.child:w.props.children;Ha(v)&&typeof Ri=="function"&&(v=Ri(v._payload)),l=G0(w,v),a.push((c=l==null?void 0:l.props)==null?void 0:c.children)}else a.push(p)}),l?l=g.cloneElement(l,void 0,a):!s&&g.Children.count(o)===1&&g.isValidElement(o)&&(l=o);const u=l?Ym(l):void 0,f=ye(r,u);if(!l){if(o||o===0)throw new Error(s?Q0(e):Y0(e));return o}const d=Km(i,l.props??{});return l.type!==g.Fragment&&(d.ref=r?f:u),g.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}Et(kn,"createSlot");var H0=kn("Slot"),Hm=Symbol.for("radix.slottable");function Gm(e){const t=Et(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Hm,t}Et(Gm,"createSlottable");var G0=Et((e,t)=>{if("child"in e.props){const n=e.props.child;return g.isValidElement(n)?g.cloneElement(n,void 0,e.props.children(n.props.children)):null}return g.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Km(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const a=i(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}Et(Km,"mergeProps");function Ym(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Et(Ym,"getElementRef");function Qm(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hm}Et(Qm,"isSlottable");var K0=Symbol.for("react.lazy");function Ha(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===K0&&"_payload"in e&&Xm(e._payload)}Et(Ha,"isLazyComponent");function Xm(e){return typeof e=="object"&&e!==null&&"then"in e}Et(Xm,"isPromiseLike");var Y0=Et(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Q0=Et(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ri=Wr[" use ".trim().toString()];function Zm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zm(e))&&(r&&(r+=" "),r+=t);return r}const Gd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kd=Jm,qm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Kd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],d=i==null?void 0:i[u];if(f===null)return null;const p=Gd(f)||Gd(d);return o[u][p]}),s=n&&Object.entries(n).reduce((u,f)=>{let[d,p]=f;return p===void 0||(u[d]=p),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:p,...c}=f;return Object.entries(c).every(w=>{let[v,x]=w;return Array.isArray(x)?x.includes({...i,...s}[v]):{...i,...s}[v]===x})?[...u,d,p]:u},[]);return Kd(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)},sc="-",X0=e=>{const t=J0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const s=l.split(sc);return s[0]===""&&s.length!==1&&s.shift(),eh(s,t)||Z0(l)},getConflictingClassGroupIds:(l,s)=>{const a=n[l]||[];return s&&r[l]?[...a,...r[l]]:a}}},eh=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?eh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(sc);return(l=t.validators.find(({validator:s})=>s(i)))==null?void 0:l.classGroupId},Yd=/^\[(.+)\]$/,Z0=e=>{if(Yd.test(e)){const t=Yd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},J0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ew(Object.entries(e.classGroups),n).forEach(([i,l])=>{Ga(l,r,i,t)}),r},Ga=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Qd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(q0(o)){Ga(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{Ga(l,Qd(t,i),n,r)})})},Qd=(e,t)=>{let n=e;return t.split(sc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},q0=e=>e.isThemeGetter,ew=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e,tw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,l)=>{n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}},th="!",nw=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,l=s=>{const a=[];let u=0,f=0,d;for(let x=0;x<s.length;x++){let h=s[x];if(u===0){if(h===o&&(r||s.slice(x,x+i)===t)){a.push(s.slice(f,x)),f=x+i;continue}if(h==="/"){d=x;continue}}h==="["?u++:h==="]"&&u--}const p=a.length===0?s:s.substring(f),c=p.startsWith(th),w=c?p.substring(1):p,v=d&&d>f?d-f:void 0;return{modifiers:a,hasImportantModifier:c,baseClassName:w,maybePostfixModifierPosition:v}};return n?s=>n({className:s,parseClassName:l}):l},rw=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},ow=e=>({cache:tw(e.cacheSize),parseClassName:nw(e),...X0(e)}),iw=/\s+/,lw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],l=e.trim().split(iw);let s="";for(let a=l.length-1;a>=0;a-=1){const u=l[a],{modifiers:f,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:c}=n(u);let w=!!c,v=r(w?p.substring(0,c):p);if(!v){if(!w){s=u+(s.length>0?" "+s:s);continue}if(v=r(p),!v){s=u+(s.length>0?" "+s:s);continue}w=!1}const x=rw(f).join(":"),h=d?x+th:x,m=h+v;if(i.includes(m))continue;i.push(m);const y=o(v,w);for(let S=0;S<y.length;++S){const C=y[S];i.push(h+C)}s=u+(s.length>0?" "+s:s)}return s};function sw(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=nh(t))&&(r&&(r+=" "),r+=n);return r}const nh=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=nh(e[r]))&&(n&&(n+=" "),n+=t);return n};function aw(e,...t){let n,r,o,i=l;function l(a){const u=t.reduce((f,d)=>d(f),e());return n=ow(u),r=n.cache.get,o=n.cache.set,i=s,s(a)}function s(a){const u=r(a);if(u)return u;const f=lw(a,n);return o(a,f),f}return function(){return i(sw.apply(null,arguments))}}const ne=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},rh=/^\[(?:([a-z-]+):)?(.+)\]$/i,uw=/^\d+\/\d+$/,cw=new Set(["px","full","screen"]),dw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jt=e=>Or(e)||cw.has(e)||uw.test(e),rn=e=>Kr(e,"length",Cw),Or=e=>!!e&&!Number.isNaN(Number(e)),Ds=e=>Kr(e,"number",Or),uo=e=>!!e&&Number.isInteger(Number(e)),vw=e=>e.endsWith("%")&&Or(e.slice(0,-1)),H=e=>rh.test(e),on=e=>dw.test(e),gw=new Set(["length","size","percentage"]),yw=e=>Kr(e,gw,oh),ww=e=>Kr(e,"position",oh),xw=new Set(["image","url"]),Sw=e=>Kr(e,xw,bw),Ew=e=>Kr(e,"",kw),co=()=>!0,Kr=(e,t,n)=>{const r=rh.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Cw=e=>fw.test(e)&&!pw.test(e),oh=()=>!1,kw=e=>mw.test(e),bw=e=>hw.test(e),Pw=()=>{const e=ne("colors"),t=ne("spacing"),n=ne("blur"),r=ne("brightness"),o=ne("borderColor"),i=ne("borderRadius"),l=ne("borderSpacing"),s=ne("borderWidth"),a=ne("contrast"),u=ne("grayscale"),f=ne("hueRotate"),d=ne("invert"),p=ne("gap"),c=ne("gradientColorStops"),w=ne("gradientColorStopPositions"),v=ne("inset"),x=ne("margin"),h=ne("opacity"),m=ne("padding"),y=ne("saturate"),S=ne("scale"),C=ne("sepia"),k=ne("skew"),b=ne("space"),P=ne("translate"),M=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",H,t],I=()=>[H,t],F=()=>["",jt,rn],$=()=>["auto",Or,H],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",H],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Or,H];return{cacheSize:500,separator:":",theme:{colors:[co],spacing:[jt,rn],blur:["none","",on,H],brightness:B(),borderColor:[e],borderRadius:["none","","full",on,H],borderSpacing:I(),borderWidth:F(),contrast:B(),grayscale:_(),hueRotate:B(),invert:_(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[vw,rn],inset:D(),margin:D(),opacity:B(),padding:I(),saturate:B(),scale:B(),sepia:_(),skew:B(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[on]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),H]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",uo,H]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",uo,H]}],"grid-cols":[{"grid-cols":[co]}],"col-start-end":[{col:["auto",{span:["full",uo,H]},H]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[co]}],"row-start-end":[{row:["auto",{span:[uo,H]},H]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[on]},on]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",on,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ds]}],"font-family":[{font:[co]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",Or,Ds]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jt,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jt,rn]}],"underline-offset":[{"underline-offset":["auto",jt,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),ww]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[jt,H]}],"outline-w":[{outline:[jt,rn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[jt,rn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",on,Ew]}],"shadow-color":[{shadow:[co]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",on,H]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[uo,H]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jt,rn,Ds]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Rw=aw(Pw);/**
|
|
42
|
+
* filesize
|
|
43
|
+
*
|
|
44
|
+
* @copyright 2026 Jason Mulligan <jason.mulligan@avoidwork.com>
|
|
45
|
+
* @license BSD-3-Clause
|
|
46
|
+
* @version 11.0.22
|
|
47
|
+
*/const Xd="Invalid number",_w="Invalid rounding method",Ka="iec",Yi="jedec",Nw="si",ih="bit",Tw="bits",lh="byte",Ow="bytes",Mw="kbit",Iw="kB",sh="array",jw="function",ah="object",Lw="string",uh="exponent",Aw="round",Dw="e",kr="",Zd=".",zw="s",ch=" ",Fw="0",bo={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}},$w=[1,1024,1048576,1073741824,1099511627776,0x4000000000000,1152921504606847e3,11805916207174113e5,12089258196146292e8],Bw=[1,1e3,1e6,1e9,1e12,1e15,1e18,1e21,1e24],Uw=Math.log(1024),Vw=Math.log(1e3),Jd={[Nw]:{isDecimal:!0,ceil:1e3,actualStandard:Yi},[Ka]:{isDecimal:!1,ceil:1024,actualStandard:Ka},[Yi]:{isDecimal:!1,ceil:1024,actualStandard:Yi}};function Ww(e,t){return Jd[e]?Jd[e]:t===2?{isDecimal:!1,ceil:1024,actualStandard:Ka}:{isDecimal:!0,ceil:1e3,actualStandard:Yi}}function Hw(e,t,n,r,o,i,l,s,a,u,f){let d;return e>0?d=0 .toPrecision(e):a&&u>0?d=0 .toFixed(u):d=0,l===uh?0:(f||(f=n?bo.symbol[t].bits[0]:bo.symbol[t].bytes[0]),r[f]&&(f=r[f]),o&&(i[0]?f=i[0]:(f=bo.fullform[t][0],n?f+=ih:f+=lh)),l===sh?[d,f]:l===ah?{value:d,symbol:f,exponent:0,unit:f}:d+s+f)}function dh(e,t,n,r,o,i=!0){let l;n?l=Bw[t]:l=$w[t];let s=e/l;return r&&(s*=8,i&&s>=o&&t<8&&(s/=o,t++)),{result:s,e:t}}function Gw(e,t,n,r,o,i,l,s,a,u){typeof e=="string"&&(e=parseFloat(e));let f=e.toPrecision(t);const d=u===-1||isNaN(u);if(f.includes(Dw)&&n<8&&d){n++;const{result:p}=dh(r,n,o,i,l);let c;a>0?c=Math.pow(10,a):c=1;let w;c===1?w=s(p):w=s(p*c)/c,f=w.toPrecision(t)}return{value:f,e:n}}function Kw(e,t,n,r,o,i,l){let s=e;const a=o&&i>0?{minimumFractionDigits:i,maximumFractionDigits:i}:void 0;if(t===!0)s=s.toLocaleString(void 0,a);else if(t.length>0)s=s.toLocaleString(t,{...n,...a});else if(r.length>0){if(o&&i>0){const u=Math.pow(10,i);s=l(s*u)/u}s=s.toString().replace(Zd,r)}if(o&&i>0&&t!==!0&&t.length===0){const u=s.toString(),f=r||Zd,d=u.split(f),p=d[1]||kr;s=`${d[0]}${f}${p.padEnd(i,Fw)}`}return s}function Yw(e,t,n,r,o){return(t===-1||isNaN(t))&&(r?t=Math.floor(Math.log(e)/Vw):t=Math.floor(Math.log(e)/Uw)),t<0&&(t=0),t>8?(o>0&&(o+=8-t),{e:8,precision:o}):{e:t,precision:o}}function Qw(e,t,n,r,o,i){let l;n>0&&r>0?l=Math.pow(10,r):l=1;let s;return l===1?s=o(e):s=o(e*l)/l,s===t&&n<8&&i&&(s=1,n++),{value:s,e:n}}function Xw(e,t,n,r){const o=bo.symbol[e][t?Tw:Ow];let i;return r&&n===1?t?i=Mw:i=Iw:i=o[n],i}function Zw(e,t,n,r,o,i,l,s,a,u,f,d,p,c){t&&(e[0]=-e[0]),n[e[1]]&&(e[1]=n[e[1]]);let w;if(typeof e[0]=="string"?w=parseFloat(e[0]):w=e[0],e[0]=Kw(e[0],r,o,i,l,s,c),a){let v;p?v=ih:v=lh;let x;w===1?x=kr:x=zw,u[d]?e[1]=u[d]:e[1]=bo.fullform[f][d]+v+x}}function Jw(e,t,n,r,o){if(r===sh)return e;if(r===ah)return{value:e[0],symbol:e[1],exponent:t,unit:n};let i;return o===ch?i=`${e[0]} ${e[1]}`:i=e.join(o),i}function qw(e,{bits:t=!1,pad:n=!1,base:r=-1,round:o=2,locale:i=kr,localeOptions:l={},separator:s=kr,spacer:a=ch,symbols:u={},standard:f=kr,output:d=Lw,fullform:p=!1,fullforms:c=[],exponent:w=-1,roundingMethod:v=Aw,precision:x=0}={}){let h=w,m,y=[],S=0,C=kr;if(typeof e=="bigint")m=Number(e);else{if(m=Number(e),isNaN(m))throw new TypeError(Xd);if(!isFinite(m))throw new TypeError(Xd)}const{isDecimal:k,ceil:b,actualStandard:P}=Ww(f,r),M=p===!0,O=m<0,D=Math[v];if(typeof D!==jw)throw new TypeError(_w);if(O&&(m=-m),m===0)return Hw(x,P,t,u,M,c,d,a,n,o);const{e:I,precision:F}=Yw(m,h,w,k,x);h=I;const $=w===-1||isNaN(w),{result:Q,e:U}=dh(m,h,k,t,b,$);S=Q,h=U;const z=Qw(S,b,h,o,D,$);if(y[0]=z.value,h=z.e,F>0){const R=Gw(y[0],F,h,m,k,t,b,D,o,w);y[0]=R.value,h=R.e}return d===uh?h:(C=Xw(P,t,h,k),y[1]=C,Zw(y,O,u,i,l,s,n,o,M,c,P,h,t,D),Jw(y,h,C,d,a))}function Ct(...e){return Rw(Jm(e))}function Ok(e){return!Number.isFinite(e)||e<0?"0 B":qw(e,{output:"string",round:1})}const e1=qm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ti=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?H0:"button";return E.jsx(l,{className:Ct(e1({variant:t,size:n,className:e})),ref:i,...o})});ti.displayName="Button";class t1 extends g.Component{constructor(){super(...arguments);us(this,"state",{error:null});us(this,"reset",()=>this.setState({error:null}))}static getDerivedStateFromError(n){return{error:n}}render(){return this.state.error?this.props.fallback?this.props.fallback(this.state.error,this.reset):E.jsx("div",{className:"flex h-full items-center justify-center",children:E.jsxs("div",{className:"text-center",children:[E.jsx("p",{className:"text-lg mb-2",children:"出错了"}),E.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:this.state.error.message}),E.jsx(ti,{onClick:this.reset,children:"重试"})]})}):this.props.children}}var n1=e=>{switch(e){case"success":return i1;case"info":return s1;case"warning":return l1;case"error":return a1;default:return null}},r1=Array(12).fill(0),o1=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},r1.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),i1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),l1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),s1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),a1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),u1=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),c1=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ya=1,d1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ya++,i=this.toasts.find(s=>s.id===o),l=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...e,id:o,title:n}),{...s,...e,id:o,dismissible:l,title:n}):s):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,l=r.then(async a=>{if(i=["resolve",a],j.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(p1(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,f=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:f})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,f=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:f})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,f=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:f})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),s=()=>new Promise((a,u)=>l.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ya++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ze=new d1,f1=(e,t)=>{let n=(t==null?void 0:t.id)||Ya++;return ze.addToast({title:e,...t,id:n}),n},p1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",m1=f1,h1=()=>ze.toasts,v1=()=>ze.getActiveToasts(),g1=Object.assign(m1,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:h1,getToasts:v1});function y1(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}y1(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
48
|
+
`);function _i(e){return e.label!==void 0}var w1=3,x1="32px",S1="16px",qd=4e3,E1=356,C1=14,k1=20,b1=200;function ht(...e){return e.filter(Boolean).join(" ")}function P1(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var R1=e=>{var t,n,r,o,i,l,s,a,u,f,d;let{invert:p,toast:c,unstyled:w,interacting:v,setHeights:x,visibleToasts:h,heights:m,index:y,toasts:S,expanded:C,removeToast:k,defaultRichColors:b,closeButton:P,style:M,cancelButtonStyle:O,actionButtonStyle:D,className:I="",descriptionClassName:F="",duration:$,position:Q,gap:U,loadingIcon:z,expandByDefault:R,classNames:_,icons:N,closeButtonAriaLabel:B="Close toast",pauseWhenPageIsHidden:A}=e,[V,G]=j.useState(null),[ie,he]=j.useState(null),[Y,Je]=j.useState(!1),[ut,ke]=j.useState(!1),[ct,nr]=j.useState(!1),[qr,ii]=j.useState(!1),[li,rr]=j.useState(!1),[si,eo]=j.useState(0),[ls,ai]=j.useState(0),Mn=j.useRef(c.duration||$||qd),In=j.useRef(null),jn=j.useRef(null),ig=y===0,lg=y+1<=h,qe=c.type,or=c.dismissible!==!1,sg=c.className||"",ag=c.descriptionClassName||"",ui=j.useMemo(()=>m.findIndex(W=>W.toastId===c.id)||0,[m,c.id]),ug=j.useMemo(()=>{var W;return(W=c.closeButton)!=null?W:P},[c.closeButton,P]),Tc=j.useMemo(()=>c.duration||$||qd,[c.duration,$]),ss=j.useRef(0),ir=j.useRef(0),Oc=j.useRef(0),lr=j.useRef(null),[cg,dg]=Q.split("-"),Mc=j.useMemo(()=>m.reduce((W,q,le)=>le>=ui?W:W+q.height,0),[m,ui]),Ic=c1(),fg=c.invert||p,as=qe==="loading";ir.current=j.useMemo(()=>ui*U+Mc,[ui,Mc]),j.useEffect(()=>{Mn.current=Tc},[Tc]),j.useEffect(()=>{Je(!0)},[]),j.useEffect(()=>{let W=jn.current;if(W){let q=W.getBoundingClientRect().height;return ai(q),x(le=>[{toastId:c.id,height:q,position:c.position},...le]),()=>x(le=>le.filter(dt=>dt.toastId!==c.id))}},[x,c.id]),j.useLayoutEffect(()=>{if(!Y)return;let W=jn.current,q=W.style.height;W.style.height="auto";let le=W.getBoundingClientRect().height;W.style.height=q,ai(le),x(dt=>dt.find(ft=>ft.toastId===c.id)?dt.map(ft=>ft.toastId===c.id?{...ft,height:le}:ft):[{toastId:c.id,height:le,position:c.position},...dt])},[Y,c.title,c.description,x,c.id]);let qt=j.useCallback(()=>{ke(!0),eo(ir.current),x(W=>W.filter(q=>q.toastId!==c.id)),setTimeout(()=>{k(c)},b1)},[c,k,x,ir]);j.useEffect(()=>{if(c.promise&&qe==="loading"||c.duration===1/0||c.type==="loading")return;let W;return C||v||A&&Ic?(()=>{if(Oc.current<ss.current){let q=new Date().getTime()-ss.current;Mn.current=Mn.current-q}Oc.current=new Date().getTime()})():Mn.current!==1/0&&(ss.current=new Date().getTime(),W=setTimeout(()=>{var q;(q=c.onAutoClose)==null||q.call(c,c),qt()},Mn.current)),()=>clearTimeout(W)},[C,v,c,qe,A,Ic,qt]),j.useEffect(()=>{c.delete&&qt()},[qt,c.delete]);function pg(){var W,q,le;return N!=null&&N.loading?j.createElement("div",{className:ht(_==null?void 0:_.loader,(W=c==null?void 0:c.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":qe==="loading"},N.loading):z?j.createElement("div",{className:ht(_==null?void 0:_.loader,(q=c==null?void 0:c.classNames)==null?void 0:q.loader,"sonner-loader"),"data-visible":qe==="loading"},z):j.createElement(o1,{className:ht(_==null?void 0:_.loader,(le=c==null?void 0:c.classNames)==null?void 0:le.loader),visible:qe==="loading"})}return j.createElement("li",{tabIndex:0,ref:jn,className:ht(I,sg,_==null?void 0:_.toast,(t=c==null?void 0:c.classNames)==null?void 0:t.toast,_==null?void 0:_.default,_==null?void 0:_[qe],(n=c==null?void 0:c.classNames)==null?void 0:n[qe]),"data-sonner-toast":"","data-rich-colors":(r=c.richColors)!=null?r:b,"data-styled":!(c.jsx||c.unstyled||w),"data-mounted":Y,"data-promise":!!c.promise,"data-swiped":li,"data-removed":ut,"data-visible":lg,"data-y-position":cg,"data-x-position":dg,"data-index":y,"data-front":ig,"data-swiping":ct,"data-dismissible":or,"data-type":qe,"data-invert":fg,"data-swipe-out":qr,"data-swipe-direction":ie,"data-expanded":!!(C||R&&Y),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${ut?si:ir.current}px`,"--initial-height":R?"auto":`${ls}px`,...M,...c.style},onDragEnd:()=>{nr(!1),G(null),lr.current=null},onPointerDown:W=>{as||!or||(In.current=new Date,eo(ir.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(nr(!0),lr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,q,le,dt;if(qr||!or)return;lr.current=null;let ft=Number(((W=jn.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),en=Number(((q=jn.current)==null?void 0:q.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ln=new Date().getTime()-((le=In.current)==null?void 0:le.getTime()),pt=V==="x"?ft:en,tn=Math.abs(pt)/Ln;if(Math.abs(pt)>=k1||tn>.11){eo(ir.current),(dt=c.onDismiss)==null||dt.call(c,c),he(V==="x"?ft>0?"right":"left":en>0?"down":"up"),qt(),ii(!0),rr(!1);return}nr(!1),G(null)},onPointerMove:W=>{var q,le,dt,ft;if(!lr.current||!or||((q=window.getSelection())==null?void 0:q.toString().length)>0)return;let en=W.clientY-lr.current.y,Ln=W.clientX-lr.current.x,pt=(le=e.swipeDirections)!=null?le:P1(Q);!V&&(Math.abs(Ln)>1||Math.abs(en)>1)&&G(Math.abs(Ln)>Math.abs(en)?"x":"y");let tn={x:0,y:0};V==="y"?(pt.includes("top")||pt.includes("bottom"))&&(pt.includes("top")&&en<0||pt.includes("bottom")&&en>0)&&(tn.y=en):V==="x"&&(pt.includes("left")||pt.includes("right"))&&(pt.includes("left")&&Ln<0||pt.includes("right")&&Ln>0)&&(tn.x=Ln),(Math.abs(tn.x)>0||Math.abs(tn.y)>0)&&rr(!0),(dt=jn.current)==null||dt.style.setProperty("--swipe-amount-x",`${tn.x}px`),(ft=jn.current)==null||ft.style.setProperty("--swipe-amount-y",`${tn.y}px`)}},ug&&!c.jsx?j.createElement("button",{"aria-label":B,"data-disabled":as,"data-close-button":!0,onClick:as||!or?()=>{}:()=>{var W;qt(),(W=c.onDismiss)==null||W.call(c,c)},className:ht(_==null?void 0:_.closeButton,(o=c==null?void 0:c.classNames)==null?void 0:o.closeButton)},(i=N==null?void 0:N.close)!=null?i:u1):null,c.jsx||g.isValidElement(c.title)?c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title:j.createElement(j.Fragment,null,qe||c.icon||c.promise?j.createElement("div",{"data-icon":"",className:ht(_==null?void 0:_.icon,(l=c==null?void 0:c.classNames)==null?void 0:l.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||pg():null,c.type!=="loading"?c.icon||(N==null?void 0:N[qe])||n1(qe):null):null,j.createElement("div",{"data-content":"",className:ht(_==null?void 0:_.content,(s=c==null?void 0:c.classNames)==null?void 0:s.content)},j.createElement("div",{"data-title":"",className:ht(_==null?void 0:_.title,(a=c==null?void 0:c.classNames)==null?void 0:a.title)},typeof c.title=="function"?c.title():c.title),c.description?j.createElement("div",{"data-description":"",className:ht(F,ag,_==null?void 0:_.description,(u=c==null?void 0:c.classNames)==null?void 0:u.description)},typeof c.description=="function"?c.description():c.description):null),g.isValidElement(c.cancel)?c.cancel:c.cancel&&_i(c.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||O,onClick:W=>{var q,le;_i(c.cancel)&&or&&((le=(q=c.cancel).onClick)==null||le.call(q,W),qt())},className:ht(_==null?void 0:_.cancelButton,(f=c==null?void 0:c.classNames)==null?void 0:f.cancelButton)},c.cancel.label):null,g.isValidElement(c.action)?c.action:c.action&&_i(c.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||D,onClick:W=>{var q,le;_i(c.action)&&((le=(q=c.action).onClick)==null||le.call(q,W),!W.defaultPrevented&&qt())},className:ht(_==null?void 0:_.actionButton,(d=c==null?void 0:c.classNames)==null?void 0:d.actionButton)},c.action.label):null))};function ef(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function _1(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,l=i?"--mobile-offset":"--offset",s=i?S1:x1;function a(u){["top","right","bottom","left"].forEach(f=>{n[`${l}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${l}-${u}`]=s:n[`${l}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(s)}),n}var N1=g.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:l,className:s,offset:a,mobileOffset:u,theme:f="light",richColors:d,duration:p,style:c,visibleToasts:w=w1,toastOptions:v,dir:x=ef(),gap:h=C1,loadingIcon:m,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[k,b]=j.useState([]),P=j.useMemo(()=>Array.from(new Set([r].concat(k.filter(A=>A.position).map(A=>A.position)))),[k,r]),[M,O]=j.useState([]),[D,I]=j.useState(!1),[F,$]=j.useState(!1),[Q,U]=j.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=j.useRef(null),R=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=j.useRef(null),N=j.useRef(!1),B=j.useCallback(A=>{b(V=>{var G;return(G=V.find(ie=>ie.id===A.id))!=null&&G.delete||ze.dismiss(A.id),V.filter(({id:ie})=>ie!==A.id)})},[]);return j.useEffect(()=>ze.subscribe(A=>{if(A.dismiss){b(V=>V.map(G=>G.id===A.id?{...G,delete:!0}:G));return}setTimeout(()=>{U0.flushSync(()=>{b(V=>{let G=V.findIndex(ie=>ie.id===A.id);return G!==-1?[...V.slice(0,G),{...V[G],...A},...V.slice(G+1)]:[A,...V]})})})}),[]),j.useEffect(()=>{if(f!=="system"){U(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let A=window.matchMedia("(prefers-color-scheme: dark)");try{A.addEventListener("change",({matches:V})=>{U(V?"dark":"light")})}catch{A.addListener(({matches:G})=>{try{U(G?"dark":"light")}catch(ie){console.error(ie)}})}},[f]),j.useEffect(()=>{k.length<=1&&I(!1)},[k]),j.useEffect(()=>{let A=V=>{var G,ie;o.every(he=>V[he]||V.code===he)&&(I(!0),(G=z.current)==null||G.focus()),V.code==="Escape"&&(document.activeElement===z.current||(ie=z.current)!=null&&ie.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[o]),j.useEffect(()=>{if(z.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,N.current=!1)}},[z.current]),j.createElement("section",{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((A,V)=>{var G;let[ie,he]=A.split("-");return k.length?j.createElement("ol",{key:A,dir:x==="auto"?ef():x,tabIndex:-1,ref:z,className:s,"data-sonner-toaster":!0,"data-theme":Q,"data-y-position":ie,"data-lifted":D&&k.length>1&&!i,"data-x-position":he,style:{"--front-toast-height":`${((G=M[0])==null?void 0:G.height)||0}px`,"--width":`${E1}px`,"--gap":`${h}px`,...c,..._1(a,u)},onBlur:Y=>{N.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(N.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||N.current||(N.current=!0,_.current=Y.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{F||I(!1)},onDragEnd:()=>I(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},k.filter(Y=>!Y.position&&V===0||Y.position===A).map((Y,Je)=>{var ut,ke;return j.createElement(R1,{key:Y.id,icons:y,index:Je,toast:Y,defaultRichColors:d,duration:(ut=v==null?void 0:v.duration)!=null?ut:p,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:w,closeButton:(ke=v==null?void 0:v.closeButton)!=null?ke:l,interacting:F,position:A,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:B,toasts:k.filter(ct=>ct.position==Y.position),heights:M.filter(ct=>ct.position==Y.position),setHeights:O,expandByDefault:i,gap:h,loadingIcon:m,expanded:D,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))}),T1=Object.defineProperty,Yr=(e,t)=>T1(e,"name",{value:t,configurable:!0}),fh=!!(typeof window<"u"&&window.document&&window.document.createElement);function X(e,t,{checkForDefaultPrevented:n=!0}={}){return Yr(function(o){if(e==null||e(o),n===!1||!o||!o.defaultPrevented)return t==null?void 0:t(o)},"handleEvent")}Yr(X,"composeEventHandlers");function O1(e){var t;if(!fh)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Yr(O1,"getOwnerWindow");function Qa(e){if(!fh)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Yr(Qa,"getOwnerDocument");function ph(e,t=!1){const{activeElement:n}=Qa(e);if(!(n!=null&&n.nodeName))return null;if(mh(n)&&n.contentDocument)return ph(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=Qa(n).getElementById(r);if(o)return o}}return n}Yr(ph,"getActiveElement");function mh(e){return e.tagName==="IFRAME"}Yr(mh,"isFrame");var M1=Object.defineProperty,nt=(e,t)=>M1(e,"name",{value:t,configurable:!0});function I1(e,t){const n=g.createContext(t);n.displayName=e+"Context";const r=nt(i=>{const{children:l,...s}=i,a=g.useMemo(()=>s,Object.values(s));return E.jsx(n.Provider,{value:a,children:l})},"Provider");r.displayName=e+"Provider";function o(i,l={}){const{optional:s=!1}=l,a=g.useContext(n);if(a)return a;if(t!==void 0)return t;if(!s)throw new Error(`\`${i}\` must be used within \`${e}\``)}return nt(o,"useContext"),[r,o]}nt(I1,"createContext");function Tn(e,t=[]){let n=[];function r(i,l){const s=g.createContext(l);s.displayName=i+"Context";const a=n.length;n=[...n,l];const u=nt(d=>{var h;const{scope:p,children:c,...w}=d,v=((h=p==null?void 0:p[e])==null?void 0:h[a])||s,x=g.useMemo(()=>w,Object.values(w));return E.jsx(v.Provider,{value:x,children:c})},"Provider");u.displayName=i+"Provider";function f(d,p,c={}){var h;const{optional:w=!1}=c,v=((h=p==null?void 0:p[e])==null?void 0:h[a])||s,x=g.useContext(v);if(x)return x;if(l!==void 0)return l;if(!w)throw new Error(`\`${d}\` must be used within \`${i}\``)}return nt(f,"useContext"),[u,f]}nt(r,"createContext");const o=nt(()=>{const i=n.map(l=>g.createContext(l));return nt(function(s){const a=(s==null?void 0:s[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])},"useScope")},"createScope");return o.scopeName=e,[r,hh(o,...t)]}nt(Tn,"createContextScope");function hh(...e){const t=e[0];if(e.length===1)return t;const n=nt(()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return nt(function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const d=a(i)[`__scope${u}`];return{...s,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}nt(hh,"composeContextScopes");var j1=Object.defineProperty,L1=(e,t)=>j1(e,"name",{value:t,configurable:!0}),A1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],at=A1.reduce((e,t)=>{const n=kn(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:l,...s}=o,a=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(a,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ac(e,t){e&&ei.flushSync(()=>e.dispatchEvent(t))}L1(ac,"dispatchDiscreteCustomEvent");var D1=Object.defineProperty,z1=(e,t)=>D1(e,"name",{value:t,configurable:!0});function Kt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}z1(Kt,"useCallbackRef");var F1=Object.defineProperty,xe=(e,t)=>F1(e,"name",{value:t,configurable:!0}),Xa="dismissableLayer.update",$1="dismissableLayer.pointerDownOutside",B1="dismissableLayer.focusOutside",tf,vh=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),gh=g.forwardRef(xe(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:a,onDismiss:u,...f}=t,d=g.useContext(vh),[p,c]=g.useState(null),w=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=g.useState({}),x=ye(n,c),h=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=m?h.indexOf(m):-1,S=p?h.indexOf(p):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,k=S>=y,b=g.useRef(!1),P=yh(I=>{l==null||l(I),a==null||a(I),I.defaultPrevented||u==null||u()},{ownerDocument:w,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:b,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:g.useCallback(I=>{if(!(I instanceof Node))return!1;const F=[...d.branches].some($=>$.contains(I));return k&&!F},[d.branches,k])}),M=wh(I=>{if(o&&b.current)return;const F=I.target;[...d.branches].some(Q=>Q.contains(F))||(s==null||s(I),a==null||a(I),I.defaultPrevented||u==null||u())},w),O=p?S===h.length-1:!1,D=Kt(I=>{I.key==="Escape"&&(i==null||i(I),!I.defaultPrevented&&u&&(I.preventDefault(),u()))});return g.useEffect(()=>{if(O)return w.addEventListener("keydown",D,{capture:!0}),()=>w.removeEventListener("keydown",D,{capture:!0})},[w,O,D]),g.useEffect(()=>{if(p)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(tf=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Za(),()=>{r&&(d.layersWithOutsidePointerEventsDisabled.delete(p),d.layersWithOutsidePointerEventsDisabled.size===0&&(w.body.style.pointerEvents=tf))}},[p,w,r,d]),g.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Za())},[p,d]),g.useEffect(()=>{const I=xe(()=>v({}),"handleUpdate");return document.addEventListener(Xa,I),()=>document.removeEventListener(Xa,I)},[]),E.jsx(at.div,{...f,ref:x,style:{pointerEvents:C?k?"auto":"none":void 0,...t.style},onFocusCapture:X(t.onFocusCapture,M.onFocusCapture),onBlurCapture:X(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:X(t.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer"));function U1(){const e=g.useContext(vh),[t,n]=g.useState(null);return g.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}xe(U1,"useDismissableLayerSurface");var V1=xe(()=>!0,"IS_TRUE");function yh(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:l=V1}=t,s=Kt(e),a=g.useRef(!1),u=g.useRef(!1),f=g.useRef(new Map),d=g.useRef(()=>{});return g.useEffect(()=>{function p(){u.current=!1,o.current=!1,f.current.clear()}xe(p,"resetOutsideInteraction");function c(){return Array.from(f.current.values()).some(Boolean)}xe(c,"isOutsideInteractionIntercepted");function w(y){if(!u.current)return;const S=y.target;S instanceof Node&&[...i].some(k=>k.contains(S))||f.current.set(y.type,!0),y.type==="click"&&window.setTimeout(()=>{u.current&&d.current()},0)}xe(w,"handleInteractionCapture");function v(y){u.current&&f.current.set(y.type,!1)}xe(v,"handleInteractionBubble");const x=xe(y=>{if(y.target&&!a.current){let S=function(){n.removeEventListener("click",d.current);const k=c();p(),k||uc($1,s,C,{discrete:!0})};if(xe(S,"handleAndDispatchPointerDownOutsideEvent"),!l(y.target)){n.removeEventListener("click",d.current),p(),a.current=!1;return}const C={originalEvent:y};u.current=!0,o.current=r&&y.button===0,f.current.clear(),!r||y.button!==0?S():(n.removeEventListener("click",d.current),d.current=S,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),p();a.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const y of h)n.addEventListener(y,w,!0),n.addEventListener(y,v);const m=window.setTimeout(()=>{n.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(m),n.removeEventListener("pointerdown",x),n.removeEventListener("click",d.current);for(const y of h)n.removeEventListener(y,w,!0),n.removeEventListener(y,v)}},[n,s,r,o,i,l]),{onPointerDownCapture:xe(()=>a.current=!0,"onPointerDownCapture")}}xe(yh,"usePointerDownOutside");function wh(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),r=g.useRef(!1);return g.useEffect(()=>{const o=xe(i=>{i.target&&!r.current&&uc(B1,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:xe(()=>r.current=!0,"onFocusCapture"),onBlurCapture:xe(()=>r.current=!1,"onBlurCapture")}}xe(wh,"useFocusOutside");function Za(){const e=new CustomEvent(Xa);document.dispatchEvent(e)}xe(Za,"dispatchUpdate");function uc(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ac(o,i):o.dispatchEvent(i)}xe(uc,"handleAndDispatchCustomEvent");var it=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},W1=Object.defineProperty,H1=(e,t)=>W1(e,"name",{value:t,configurable:!0}),G1=Wr[" useId ".trim().toString()]||(()=>{}),K1=0;function Vo(e){const[t,n]=g.useState(G1());return it(()=>{e||n(r=>r??String(K1++))},[e]),e||(t?`radix-${t}`:"")}H1(Vo,"useId");const Y1=["top","right","bottom","left"],bn=Math.min,Bt=Math.max,bl=Math.round,Ni=Math.floor,Ut=e=>({x:e,y:e}),Q1={left:"right",right:"left",bottom:"top",top:"bottom"};function xh(e,t,n){return Bt(e,bn(t,n))}function Yt(e,t){return typeof e=="function"?e(t):e}function Pn(e){return e.split("-")[0]}function Qr(e){return e.split("-")[1]}function cc(e){return e==="x"?"y":"x"}function dc(e){return e==="y"?"height":"width"}function Nt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function fc(e){return cc(Nt(e))}function X1(e,t,n){n===void 0&&(n=!1);const r=Qr(e),o=fc(e),i=dc(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Pl(l)),[l,Pl(l)]}function Z1(e){const t=Pl(e);return[Ja(e),t,Ja(t)]}function Ja(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const nf=["left","right"],rf=["right","left"],J1=["top","bottom"],q1=["bottom","top"];function ex(e,t,n){switch(e){case"top":case"bottom":return n?t?rf:nf:t?nf:rf;case"left":case"right":return t?J1:q1;default:return[]}}function tx(e,t,n,r){const o=Qr(e);let i=ex(Pn(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Ja)))),i}function Pl(e){const t=Pn(e);return Q1[t]+e.slice(t.length)}function nx(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Sh(e){return typeof e!="number"?nx(e):{top:e,right:e,bottom:e,left:e}}function Rl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function of(e,t,n){let{reference:r,floating:o}=e;const i=Nt(t),l=fc(t),s=dc(l),a=Pn(t),u=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let c;switch(a){case"top":c={x:f,y:r.y-o.height};break;case"bottom":c={x:f,y:r.y+r.height};break;case"right":c={x:r.x+r.width,y:d};break;case"left":c={x:r.x-o.width,y:d};break;default:c={x:r.x,y:r.y}}const w=Qr(t);return w&&(c[l]+=p*(w==="end"?1:-1)*(n&&u?-1:1)),c}async function rx(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:c=0}=Yt(t,e),w=Sh(c),x=s[p?d==="floating"?"reference":"floating":d],h=Rl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:a})),m=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(y))&&await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1},C=Rl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:y,strategy:a}):m);return{top:(h.top-C.top+w.top)/S.y,bottom:(C.bottom-h.bottom+w.bottom)/S.y,left:(h.left-C.left+w.left)/S.x,right:(C.right-h.right+w.right)/S.x}}const ox=50,ix=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:rx},a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=of(u,r,a),p=r,c=0;const w={};for(let v=0;v<i.length;v++){const x=i[v];if(!x)continue;const{name:h,fn:m}=x,{x:y,y:S,data:C,reset:k}=await m({x:f,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:w,rects:u,platform:s,elements:{reference:e,floating:t}});f=y??f,d=S??d,w[h]={...w[h],...C},k&&c<ox&&(c++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:d}=of(u,p,a)),v=-1)}return{x:f,y:d,placement:p,strategy:o,middlewareData:w}},lx=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:f=0}=Yt(e,t)||{};if(u==null)return{};const d=Sh(f),p={x:n,y:r},c=fc(o),w=dc(c),v=await l.getDimensions(u),x=c==="y",h=x?"top":"left",m=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[c]-p[c]-i.floating[w],C=p[c]-i.reference[c],k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let b=k?k[y]:0;(!b||!await(l.isElement==null?void 0:l.isElement(k)))&&(b=s.floating[y]||i.floating[w]);const P=S/2-C/2,M=b/2-v[w]/2-1,O=bn(d[h],M),D=bn(d[m],M),I=b-v[w]-D,F=b/2-v[w]/2+P,$=xh(O,F,I),Q=!a.arrow&&Qr(o)!=null&&F!==$&&i.reference[w]/2-(F<O?O:D)-v[w]/2<0,U=Q?F<O?F-O:F-I:0;return{[c]:p[c]+U,data:{[c]:$,centerOffset:F-$-U,...Q&&{alignmentOffset:U}},reset:Q}}}),sx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:s,platform:a,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...x}=Yt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const h=Pn(o),m=Nt(s),y=Pn(s)===s,S=await(a.isRTL==null?void 0:a.isRTL(u.floating)),C=p||(y||!v?[Pl(s)]:Z1(s)),k=w!=="none";!p&&k&&C.push(...tx(s,v,w,S));const b=[s,...C],P=await a.detectOverflow(t,x),M=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&M.push(P[h]),d){const $=X1(o,l,S);M.push(P[$[0]],P[$[1]])}if(O=[...O,{placement:o,overflows:M}],!M.every($=>$<=0)){var D,I;const $=(((D=i.flip)==null?void 0:D.index)||0)+1,Q=b[$];if(Q&&(!(d==="alignment"?m!==Nt(Q):!1)||O.every(R=>Nt(R.placement)===m?R.overflows[0]>0:!0)))return{data:{index:$,overflows:O},reset:{placement:Q}};let U=(I=O.filter(z=>z.overflows[0]<=0).sort((z,R)=>z.overflows[1]-R.overflows[1])[0])==null?void 0:I.placement;if(!U)switch(c){case"bestFit":{var F;const z=(F=O.filter(R=>{if(k){const _=Nt(R.placement);return _===m||_==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(_=>_>0).reduce((_,N)=>_+N,0)]).sort((R,_)=>R[1]-_[1])[0])==null?void 0:F[0];z&&(U=z);break}case"initialPlacement":U=s;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function lf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sf(e){return Y1.some(t=>e[t]>=0)}const ax=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=Yt(e,t);switch(o){case"referenceHidden":{const l=await r.detectOverflow(t,{...i,elementContext:"reference"}),s=lf(l,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:sf(s)}}}case"escaped":{const l=await r.detectOverflow(t,{...i,altBoundary:!0}),s=lf(l,n.floating);return{data:{escapedOffsets:s,escaped:sf(s)}}}default:return{}}}}},Eh=new Set(["left","top"]);async function ux(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Pn(n),s=Qr(n),a=Nt(n)==="y",u=Eh.has(l)?-1:1,f=i&&a?-1:1,d=Yt(t,e);let{mainAxis:p,crossAxis:c,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof w=="number"&&(c=s==="end"?w*-1:w),a?{x:c*f,y:p*u}:{x:p*u,y:c*f}}const cx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await ux(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},dx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:y,y:S}=m;return{x:y,y:S}}},...u}=Yt(e,t),f={x:n,y:r},d=await i.detectOverflow(t,u),p=Nt(o),c=cc(p);let w=f[c],v=f[p];const x=(m,y)=>xh(y+d[m==="y"?"top":"left"],y,y-d[m==="y"?"bottom":"right"]);l&&(w=x(c,w)),s&&(v=x(p,v));const h=a.fn({...t,[c]:w,[p]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[c]:l,[p]:s}}}}}},fx=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:i,placement:l,rects:s,middlewareData:a}=t,{offset:u=0,mainAxis:f=!0,crossAxis:d=!0}=Yt(e,t),p={x:o,y:i},c=Nt(l),w=cc(c);let v=p[w],x=p[c];const h=Yt(u,t),m=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:(n=h.mainAxis)!=null?n:0,crossAxis:(r=h.crossAxis)!=null?r:0};if(f){const C=w==="y"?"height":"width",k=s.reference[w]-s.floating[C]+m.mainAxis,b=s.reference[w]+s.reference[C]-m.mainAxis;v<k?v=k:v>b&&(v=b)}if(d){var y,S;const C=w==="y"?"width":"height",k=Eh.has(Pn(l)),b=s.reference[c]-s.floating[C]+(k&&((y=a.offset)==null?void 0:y[c])||0)+(k?0:m.crossAxis),P=s.reference[c]+s.reference[C]+(k?0:((S=a.offset)==null?void 0:S[c])||0)-(k?m.crossAxis:0);x<b?x=b:x>P&&(x=P)}return{[w]:v,[c]:x}}}},px=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=Yt(e,t),a=await o.detectOverflow(t,s),u=Pn(n),f=Qr(n),d=Nt(n)==="y",{width:p,height:c}=r.floating;let w,v;u==="top"||u==="bottom"?(w=u,v=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,w=f==="end"?"top":"bottom");const x=c-a.top-a.bottom,h=p-a.left-a.right,m=bn(c-a[w],x),y=bn(p-a[v],h),S=t.middlewareData.shift,C=!S;let k=m,b=y;S!=null&&S.enabled.x&&(b=h),S!=null&&S.enabled.y&&(k=x),C&&!f&&(d?b=p-2*Bt(a.left,a.right):k=c-2*Bt(a.top,a.bottom)),await l({...t,availableWidth:b,availableHeight:k});const P=await o.getDimensions(i.floating);return p!==P.width||c!==P.height?{reset:{rects:!0}}:{}}}};function Yl(){return typeof window<"u"}function Xr(e){return Ch(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(Ch(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ch(e){return Yl()?e instanceof Node||e instanceof We(e).Node:!1}function Mt(e){return Yl()?e instanceof Element||e instanceof We(e).Element:!1}function On(e){return Yl()?e instanceof HTMLElement||e instanceof We(e).HTMLElement:!1}function af(e){return!Yl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof We(e).ShadowRoot}function Ql(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function mx(e){return/^(table|td|th)$/.test(Xr(e))}function Xl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const hx=/transform|translate|scale|rotate|perspective|filter/,vx=/paint|layout|strict|content/,An=e=>!!e&&e!=="none";let zs;function pc(e){const t=Mt(e)?It(e):e;return An(t.transform)||An(t.translate)||An(t.scale)||An(t.rotate)||An(t.perspective)||!mc()&&(An(t.backdropFilter)||An(t.filter))||hx.test(t.willChange||"")||vx.test(t.contain||"")}function gx(e){let t=Xn(e);for(;On(t)&&!Wo(t);){if(pc(t))return t;if(Xl(t))return null;t=Xn(t)}return null}function mc(){return zs==null&&(zs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zs}function Wo(e){return/^(html|body|#document)$/.test(Xr(e))}function It(e){return We(e).getComputedStyle(e)}function Zl(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(Xr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||af(e)&&e.host||Zt(e);return af(t)?t.host:t}function kh(e){const t=Xn(e);return Wo(t)?(e.ownerDocument||e).body:On(t)&&Ql(t)?t:kh(t)}function Ho(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=kh(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=We(o);if(i){const s=qa(l);return t.concat(l,l.visualViewport||[],Ql(o)?o:[],s&&n?Ho(s):[])}else return t.concat(o,Ho(o,[],n))}function qa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bh(e){const t=It(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=On(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=bl(n)!==i||bl(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function hc(e){return Mt(e)?e:e.contextElement}function Mr(e){const t=hc(e);if(!On(t))return Ut(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bh(t);let l=(i?bl(n.width):n.width)/r,s=(i?bl(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const yx=Ut(0);function Ph(e){const t=We(e);return!mc()||!t.visualViewport?yx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wx(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===We(e)}function Zn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=hc(e);let l=Ut(1);t&&(r?Mt(r)&&(l=Mr(r)):l=Mr(e));const s=wx(i,n,r)?Ph(i):Ut(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,f=o.width/l.x,d=o.height/l.y;if(i&&r){const p=We(i),c=Mt(r)?We(r):r;let w=p,v=qa(w);for(;v&&c!==w;){const x=Mr(v),h=v.getBoundingClientRect(),m=It(v),y=h.left+(v.clientLeft+parseFloat(m.paddingLeft))*x.x,S=h.top+(v.clientTop+parseFloat(m.paddingTop))*x.y;a*=x.x,u*=x.y,f*=x.x,d*=x.y,a+=y,u+=S,w=We(v),v=qa(w)}}return Rl({width:f,height:d,x:a,y:u})}function Jl(e,t){const n=Zl(e).scrollLeft;return t?t.left+n:Zn(Zt(e)).left+n}function Rh(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Jl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xx(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=Zt(r),s=t?Xl(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Ut(1);const f=Ut(0),d=On(r);if((d||!i)&&((Xr(r)!=="body"||Ql(l))&&(a=Zl(r)),d)){const c=Zn(r);u=Mr(r),f.x=c.x+r.clientLeft,f.y=c.y+r.clientTop}const p=l&&!d&&!i?Rh(l,a):Ut(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-a.scrollTop*u.y+f.y+p.y}}function Sx(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ex(e){const t=Zl(e),n=e.ownerDocument.body,r=Bt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Bt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Jl(e);const l=-t.scrollTop;return It(n).direction==="rtl"&&(i+=Bt(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}const Cx=25;function kx(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=We(e),i=Zt(e),l=o.visualViewport;let s=i.clientWidth,a=i.clientHeight,u=0,f=0;if(l){const p=!mc()||t==="fixed";r?p||(u=-l.offsetLeft,f=-l.offsetTop):(s=l.width,a=l.height,p&&(u=l.offsetLeft,f=l.offsetTop))}if(Jl(i)<=0){const p=i.ownerDocument,c=p.body,w=getComputedStyle(c),v=p.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,x=Math.abs(i.clientWidth-c.clientWidth-v),h=getComputedStyle(i).scrollbarGutter==="stable both-edges"?x/2:x;h<=Cx&&(s-=h)}return{width:s,height:a,x:u,y:f}}function bx(e,t){const n=Zn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Mr(e),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function uf(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=kx(e,n,t);else if(t==="document")r=Ex(Zt(e));else if(Mt(t))r=bx(t,n);else{const o=Ph(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rl(r)}function Px(e,t){const n=t.get(e);if(n)return n;let r=Ho(e,[],!1).filter(s=>Mt(s)&&Xr(s)!=="body"),o=null;const i=It(e).position==="fixed";let l=i?Xn(e):e;for(;Mt(l)&&!Wo(l);){const s=It(l),a=pc(l),u=o?o.position:i?"fixed":"";!a&&(u==="fixed"||u==="absolute"&&s.position==="static")?r=r.filter(d=>d!==l):o=s,l=Xn(l)}return t.set(e,r),r}function Rx(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Xl(t)?[]:Px(t,this._c):[].concat(n),r],s=uf(t,l[0],o);let a=s.top,u=s.right,f=s.bottom,d=s.left;for(let p=1;p<l.length;p++){const c=uf(t,l[p],o);a=Bt(c.top,a),u=bn(c.right,u),f=bn(c.bottom,f),d=Bt(c.left,d)}return{width:u-d,height:f-a,x:d,y:a}}function _x(e){const{width:t,height:n}=bh(e);return{width:t,height:n}}function Nx(e,t,n){const r=On(t),o=Zt(t),i=n==="fixed",l=Zn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=Ut(0);if((r||!i)&&((Xr(t)!=="body"||Ql(o))&&(s=Zl(t)),r)){const p=Zn(t,!0,i,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}!r&&o&&(a.x=Jl(o));const u=o&&!r&&!i?Rh(o,s):Ut(0),f=l.left+s.scrollLeft-a.x-u.x,d=l.top+s.scrollTop-a.y-u.y;return{x:f,y:d,width:l.width,height:l.height}}function Fs(e){return It(e).position==="static"}function cf(e,t){if(!On(e)||It(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zt(e)===n&&(n=n.ownerDocument.body),n}function _h(e,t){const n=We(e);if(Xl(e))return n;if(!On(e)){let o=Xn(e);for(;o&&!Wo(o);){if(Mt(o)&&!Fs(o))return o;o=Xn(o)}return n}let r=cf(e,t);for(;r&&mx(r)&&Fs(r);)r=cf(r,t);return r&&Wo(r)&&Fs(r)&&!pc(r)?n:r||gx(e)||n}const Tx=async function(e){const t=this.getOffsetParent||_h,n=this.getDimensions,r=await n(e.floating);return{reference:Nx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ox(e){return It(e).direction==="rtl"}const Mx={convertOffsetParentRelativeRectToViewportRelativeRect:xx,getDocumentElement:Zt,getClippingRect:Rx,getOffsetParent:_h,getElementRects:Tx,getClientRects:Sx,getDimensions:_x,getScale:Mr,isElement:Mt,isRTL:Ox};function Nh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ix(e,t,n){let r=null,o;const i=Zt(e);function l(){var f;clearTimeout(o),(f=r)==null||f.disconnect(),r=null}function s(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),l();const p=e.getBoundingClientRect(),{left:c,top:w,width:v,height:x}=p;if(f||t(),!v||!x)return;const h=Ni(w),m=Ni(i.clientWidth-(c+v)),y=Ni(i.clientHeight-(w+x)),S=Ni(c),k={rootMargin:-h+"px "+-m+"px "+-y+"px "+-S+"px",threshold:Bt(0,bn(1,d))||1};let b=!0;function P(M){const O=M[0].intersectionRatio;if(!Nh(p,e.getBoundingClientRect()))return s();if(O!==d){if(!b)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{r=new IntersectionObserver(P,k)}r.observe(e)}const a=We(e),u=()=>s(n);return a.addEventListener("resize",u),s(!0),()=>{a.removeEventListener("resize",u),l()}}function jx(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=hc(e),f=o||i?[...u?Ho(u):[],...t?Ho(t):[]]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n),i&&h.addEventListener("resize",n)});const d=u&&s?Ix(u,n,i):null;let p=-1,c=null;l&&(c=new ResizeObserver(h=>{let[m]=h;m&&m.target===u&&c&&t&&(c.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=c)==null||y.observe(t)})),n()}),u&&!a&&c.observe(u),t&&c.observe(t));let w,v=a?Zn(e):null;a&&x();function x(){const h=Zn(e);v&&!Nh(v,h)&&n(),v=h,w=requestAnimationFrame(x)}return n(),()=>{var h;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),d==null||d(),(h=c)==null||h.disconnect(),c=null,a&&cancelAnimationFrame(w)}}const Lx=cx,Ax=dx,Dx=sx,zx=px,Fx=ax,df=lx,$x=fx,Bx=(e,t,n)=>{const r=new Map,o=n??{},i={...Mx,...o.platform,_c:r};return ix(e,t,{...o,platform:i})};var Ux=typeof document<"u",Vx=function(){},Qi=Ux?g.useLayoutEffect:Vx;function _l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_l(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Th(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ff(e,t){const n=Th(e);return Math.round(t*n)/n}function $s(e){const t=g.useRef(e);return Qi(()=>{t.current=e}),t}function Wx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[f,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,c]=g.useState(r);_l(p,r)||c(r);const[w,v]=g.useState(null),[x,h]=g.useState(null),m=g.useCallback(R=>{R!==k.current&&(k.current=R,v(R))},[]),y=g.useCallback(R=>{R!==b.current&&(b.current=R,h(R))},[]),S=i||w,C=l||x,k=g.useRef(null),b=g.useRef(null),P=g.useRef(f),M=a!=null,O=$s(a),D=$s(o),I=$s(u),F=g.useCallback(()=>{if(!k.current||!b.current)return;const R={placement:t,strategy:n,middleware:p};D.current&&(R.platform=D.current),Bx(k.current,b.current,R).then(_=>{const N={..._,isPositioned:I.current!==!1};$.current&&!_l(P.current,N)&&(P.current=N,ei.flushSync(()=>{d(N)}))})},[p,t,n,D,I]);Qi(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[u]);const $=g.useRef(!1);Qi(()=>($.current=!0,()=>{$.current=!1}),[]),Qi(()=>{if(S&&(k.current=S),C&&(b.current=C),S&&C){if(O.current)return O.current(S,C,F);F()}},[S,C,F,O,M]);const Q=g.useMemo(()=>({reference:k,floating:b,setReference:m,setFloating:y}),[m,y]),U=g.useMemo(()=>({reference:S,floating:C}),[S,C]),z=g.useMemo(()=>{const R={position:n,left:0,top:0};if(!U.floating)return R;const _=ff(U.floating,f.x),N=ff(U.floating,f.y);return s?{...R,transform:"translate("+_+"px, "+N+"px)",...Th(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:N}},[n,s,U.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:F,refs:Q,elements:U,floatingStyles:z}),[f,F,Q,U,z])}const Hx=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?df({element:r.current,padding:o}).fn(n):{}:r?df({element:r,padding:o}).fn(n):{}}}},Gx=(e,t)=>{const n=Lx(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kx=(e,t)=>{const n=Ax(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yx=(e,t)=>({fn:$x(e).fn,options:[e,t]}),Qx=(e,t)=>{const n=Dx(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xx=(e,t)=>{const n=zx(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zx=(e,t)=>{const n=Fx(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jx=(e,t)=>{const n=Hx(e);return{name:n.name,fn:n.fn,options:[e,t]}};var qx=Object.defineProperty,eS=(e,t)=>qx(e,"name",{value:t,configurable:!0});function Oh(e){const[t,n]=g.useState(void 0);return it(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}eS(Oh,"useSize");var tS=Object.defineProperty,xn=(e,t)=>tS(e,"name",{value:t,configurable:!0}),Mh="Popper",[Ih,ql]=Tn(Mh),[nS,jh]=Ih(Mh),rS=xn(e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null),[i,l]=g.useState(void 0);return E.jsx(nS,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:l,children:n})},"Popper"),oS="PopperAnchor",iS=g.forwardRef(xn(function(t,n){const{__scopePopper:r,virtualRef:o,...i}=t,l=jh(oS,r),s=g.useRef(null),a=l.onAnchorChange,u=g.useCallback(v=>{s.current=v,v&&a(v)},[a]),f=ye(n,u),d=g.useRef(null);g.useEffect(()=>{if(!o)return;const v=d.current;d.current=o.current,v!==d.current&&a(d.current)});const p=l.placementState&&es(l.placementState),c=p==null?void 0:p[0],w=p==null?void 0:p[1];return o?null:E.jsx(at.div,{"data-radix-popper-side":c,"data-radix-popper-align":w,...i,ref:f})},"PopperAnchor")),Lh="PopperContent",[lS,Mk]=Ih(Lh),sS=g.forwardRef(xn(function(t,n){var ut,ke,ct,nr,qr,ii,li;const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:l="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:c=!1,updatePositionStrategy:w="optimized",onPlaced:v,...x}=t,h=jh(Lh,r),[m,y]=g.useState(null),S=ye(n,y),[C,k]=g.useState(null),b=Oh(C),P=(b==null?void 0:b.width)??0,M=(b==null?void 0:b.height)??0,O=o+(l!=="center"?"-"+l:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(f)?f:[f],F=I.length>0,$={padding:D,boundary:I.filter(Ah),altBoundary:F},{refs:Q,floatingStyles:U,placement:z,isPositioned:R,middlewareData:_}=Wx({strategy:"fixed",placement:O,whileElementsMounted:xn((...rr)=>jx(...rr,{animationFrame:w==="always"}),"whileElementsMounted"),elements:{reference:h.anchor},middleware:[Gx({mainAxis:i+M,alignmentAxis:s}),u&&Kx({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Yx():void 0,...$}),u&&Qx({...$}),Xx({...$,apply:xn(({elements:rr,rects:si,availableWidth:eo,availableHeight:ls})=>{const{width:ai,height:Mn}=si.reference,In=rr.floating.style;In.setProperty("--radix-popper-available-width",`${eo}px`),In.setProperty("--radix-popper-available-height",`${ls}px`),In.setProperty("--radix-popper-anchor-width",`${ai}px`),In.setProperty("--radix-popper-anchor-height",`${Mn}px`)},"apply")}),C&&Jx({element:C,padding:a}),aS({arrowWidth:P,arrowHeight:M}),c&&Zx({strategy:"referenceHidden",...$,boundary:F?$.boundary:void 0})]}),N=h.setPlacementState;it(()=>(N(z),()=>{N(void 0)}),[z,N]);const[B,A]=es(z),V=Kt(v);it(()=>{R&&(V==null||V())},[R,V]);const G=(ut=_.arrow)==null?void 0:ut.x,ie=(ke=_.arrow)==null?void 0:ke.y,he=((ct=_.arrow)==null?void 0:ct.centerOffset)!==0,[Y,Je]=g.useState();return it(()=>{m&&Je(window.getComputedStyle(m).zIndex)},[m]),E.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:R?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(nr=_.transformOrigin)==null?void 0:nr.x,(qr=_.transformOrigin)==null?void 0:qr.y].join(" "),...((ii=_.hide)==null?void 0:ii.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:E.jsx(lS,{scope:r,placedSide:B,placedAlign:A,onArrowChange:k,arrowX:G,arrowY:ie,shouldHideArrow:he,children:E.jsx(at.div,{"data-side":B,"data-align":A,...x,ref:S,style:{...x.style,animation:R?(li=x.style)==null?void 0:li.animation:"none"}})})})},"PopperContent"));function Ah(e){return e!==null}xn(Ah,"isNotNull");var aS=xn(e=>({name:"transformOrigin",options:e,fn(t){var x,h,m;const{placement:n,rects:r,middlewareData:o}=t,l=((x=o.arrow)==null?void 0:x.centerOffset)!==0,s=l?0:e.arrowWidth,a=l?0:e.arrowHeight,[u,f]=es(n),d={start:"0%",center:"50%",end:"100%"}[f],p=(((h=o.arrow)==null?void 0:h.x)??0)+s/2,c=(((m=o.arrow)==null?void 0:m.y)??0)+a/2;let w="",v="";return u==="bottom"?(w=l?d:`${p}px`,v=`${-a}px`):u==="top"?(w=l?d:`${p}px`,v=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,v=l?d:`${c}px`):u==="left"&&(w=`${r.floating.width+a}px`,v=l?d:`${c}px`),{data:{x:w,y:v}}}}),"transformOrigin");function es(e){const[t,n="center"]=e.split("-");return[t,n]}xn(es,"getSideAndAlignFromPlacement");var Dh=rS,zh=iS,Fh=sS,uS=Object.defineProperty,cS=(e,t)=>uS(e,"name",{value:t,configurable:!0}),$h=g.forwardRef(cS(function(t,n){var a;const{container:r,...o}=t,[i,l]=g.useState(!1);it(()=>l(!0),[]);const s=r||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?ei.createPortal(E.jsx(at.div,{...o,ref:n}),s):null},"Portal")),dS=Object.defineProperty,Qt=(e,t)=>dS(e,"name",{value:t,configurable:!0});function Bh(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}Qt(Bh,"useStateMachine");var ts=Qt(e=>{const{present:t,children:n}=e,r=Uh(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Vh(r.ref,Wh(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null},"Presence");function Uh(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),l=g.useRef(void 0),s=e?"mounted":"unmounted",[a,u]=Bh(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{a==="mounted"?(i.current=l.current??dr(r.current),l.current=void 0):i.current="none"},[a]),it(()=>{const f=r.current,d=o.current;if(d!==e){const c=i.current,w=dr(f);e?(l.current=w,u("MOUNT")):w==="none"||(f==null?void 0:f.display)==="none"?u("UNMOUNT"):u(d&&c!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),it(()=>{if(t){let f;const d=t.ownerDocument.defaultView??window,p=Qt(w=>{const x=dr(r.current).includes(CSS.escape(w.animationName));if(w.target===t&&x&&(u("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",f=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},"handleAnimationEnd"),c=Qt(w=>{w.target===t&&(i.current=dr(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(f),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(f=>{if(f){const d=getComputedStyle(f);r.current=d,l.current=dr(d)}else r.current=null;n(f)},[])}}Qt(Uh,"usePresence");function eu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Qt(eu,"setRef");function Vh(...e){const t=g.useRef(e);return t.current=e,g.useCallback(n=>{const r=t.current;let o=!1;const i=r.map(l=>{const s=eu(l,n);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let l=0;l<i.length;l++){const s=i[l];typeof s=="function"?s():eu(r[l],null)}}},[])}Qt(Vh,"useStableComposedRefs");function dr(e){return(e==null?void 0:e.animationName)||"none"}Qt(dr,"getAnimationName");function Wh(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Qt(Wh,"getElementRef");var fS=Object.defineProperty,pS=(e,t)=>fS(e,"name",{value:t,configurable:!0}),pf=Wr[" useEffectEvent ".trim().toString()],mf=Wr[" useInsertionEffect ".trim().toString()];function Hh(e){if(typeof pf=="function")return pf(e);const t=g.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof mf=="function"?mf(()=>{t.current=e}):it(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}pS(Hh,"useEffectEvent");var mS=Object.defineProperty,ni=(e,t)=>mS(e,"name",{value:t,configurable:!0}),hS=Wr[" useInsertionEffect ".trim().toString()]||it;function ns({prop:e,defaultProp:t,onChange:n=ni(()=>{},"onChange"),caller:r}){const[o,i,l]=Gh({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o,u=g.useCallback(f=>{var d;if(s){const p=Kh(f)?f(e):f;p!==e&&((d=l.current)==null||d.call(l,p))}else i(f)},[s,e,i,l]);return[a,u]}ni(ns,"useControllableState");function Gh({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return hS(()=>{i.current=t},[t]),g.useEffect(()=>{var l;o.current!==n&&((l=i.current)==null||l.call(i,n),o.current=n)},[n,o]),[n,r,i]}ni(Gh,"useUncontrolledState");function Kh(e){return typeof e=="function"}ni(Kh,"isFunction");var hf=Symbol("RADIX:SYNC_STATE");function vS(e,t,n,r){const{prop:o,defaultProp:i,onChange:l,caller:s}=t,a=o!==void 0,u=Hh(l),f=[{...n,state:i}];r&&f.push(r);const[d,p]=g.useReducer((x,h)=>{if(h.type===hf)return{...x,state:h.state};const m=e(x,h);return a&&!Object.is(m.state,x.state)&&u(m.state),m},...f),c=d.state,w=g.useRef(c);g.useEffect(()=>{w.current!==c&&(w.current=c,a||u(c))},[c,w,a]);const v=g.useMemo(()=>o!==void 0?{...d,state:o}:d,[d,o]);return g.useEffect(()=>{a&&!Object.is(o,d.state)&&p({type:hf,state:o})},[o,d.state,a]),[v,p]}ni(vS,"useControllableStateReducer");var gS=Object.defineProperty,yS=(e,t)=>gS(e,"name",{value:t,configurable:!0}),wS=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"}),xS=g.forwardRef(yS(function(t,n){return E.jsx(at.span,{...t,ref:n,style:{...wS,...t.style}})},"VisuallyHidden")),SS=xS,ES=Object.defineProperty,Ee=(e,t)=>ES(e,"name",{value:t,configurable:!0}),[vc,Ik]=Tn("Tooltip",[ql]),gc=ql(),CS="TooltipProvider",kS=700,tu="tooltip.open",[bS,yc]=vc(CS),PS=Ee(e=>{const{__scopeTooltip:t,delayDuration:n=kS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,l=g.useRef(!0),s=g.useRef(!1),a=g.useRef(0);return g.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),E.jsx(bS,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:g.useCallback(()=>{r<=0||(window.clearTimeout(a.current),l.current=!1)},[r]),onClose:g.useCallback(()=>{r<=0||(window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:g.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:i})},"TooltipProvider"),nu="Tooltip",[RS,ri]=vc(nu),_S=Ee(e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=yc(nu,e.__scopeTooltip),u=gc(t),[f,d]=g.useState(null),[p,c]=g.useState(void 0),w=Vo(),v=g.useRef(0),x=l??a.disableHoverableContent,h=s??a.delayDuration,m=g.useRef(!1),[y,S]=ns({prop:r,defaultProp:o??!1,onChange:Ee(O=>{O?(a.onOpen(),document.dispatchEvent(new CustomEvent(tu))):a.onClose(),i==null||i(O)},"onChange"),caller:nu}),C=g.useMemo(()=>y?m.current?"delayed-open":"instant-open":"closed",[y]),k=g.useCallback(()=>{window.clearTimeout(v.current),v.current=0,m.current=!1,S(!0)},[S]),b=g.useCallback(()=>{window.clearTimeout(v.current),v.current=0,S(!1)},[S]),P=g.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{m.current=!0,S(!0),v.current=0},h)},[h,S]);g.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]);const M=p??w;return E.jsx(Dh,{...u,children:E.jsx(RS,{scope:t,contentId:M,setContentId:c,open:y,stateAttribute:C,trigger:f,onTriggerChange:d,onTriggerEnter:g.useCallback(()=>{a.isOpenDelayedRef.current?P():k()},[a.isOpenDelayedRef,P,k]),onTriggerLeave:g.useCallback(()=>{x?b():(window.clearTimeout(v.current),v.current=0)},[b,x]),onOpen:k,onClose:b,disableHoverableContent:x,children:n})})},"Tooltip"),vf="TooltipTrigger",NS=g.forwardRef(Ee(function(t,n){const{__scopeTooltip:r,...o}=t,i=ri(vf,r),l=yc(vf,r),s=gc(r),a=g.useRef(null),u=ye(n,a,i.onTriggerChange),f=g.useRef(!1),d=g.useRef(!1),p=g.useCallback(()=>f.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),E.jsx(zh,{asChild:!0,...s,children:E.jsx(at.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:u,onPointerMove:X(t.onPointerMove,c=>{c.pointerType!=="touch"&&!d.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:X(t.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:X(t.onPointerDown,()=>{i.open&&i.onClose(),f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:X(t.onFocus,()=>{f.current||i.onOpen()}),onBlur:X(t.onBlur,i.onClose),onClick:X(t.onClick,i.onClose)})})},"TooltipTrigger")),Yh="TooltipPortal",[TS,OS]=vc(Yh,{forceMount:void 0}),MS=Ee(e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=ri(Yh,t);return E.jsx(TS,{scope:t,forceMount:n,children:E.jsx(ts,{present:n||i.open,children:E.jsx($h,{asChild:!0,container:o,children:r})})})},"TooltipPortal"),Go="TooltipContent",IS=g.forwardRef(Ee(function(t,n){const r=OS(Go,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...l}=t,s=ri(Go,t.__scopeTooltip);return E.jsx(ts,{present:o||s.open,children:s.disableHoverableContent?E.jsx(Qh,{side:i,...l,ref:n}):E.jsx(jS,{side:i,...l,ref:n})})},"TooltipContent")),jS=g.forwardRef(Ee(function(t,n){const r=ri(Go,t.__scopeTooltip),o=yc(Go,t.__scopeTooltip),i=g.useRef(null),l=ye(n,i),[s,a]=g.useState(null),{trigger:u,onClose:f}=r,d=i.current,{onPointerInTransitChange:p}=o,c=g.useCallback(()=>{a(null),p(!1)},[p]),w=g.useCallback((v,x)=>{const h=v.currentTarget,m={x:v.clientX,y:v.clientY},y=Xh(m,h.getBoundingClientRect()),S=Zh(m,y),C=Jh(x.getBoundingClientRect()),k=ev([...S,...C]);a(k),p(!0)},[p]);return g.useEffect(()=>()=>c(),[c]),g.useEffect(()=>{if(u&&d){const v=Ee(h=>w(h,d),"handleTriggerLeave"),x=Ee(h=>w(h,u),"handleContentLeave");return u.addEventListener("pointerleave",v),d.addEventListener("pointerleave",x),()=>{u.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",x)}}},[u,d,w,c]),g.useEffect(()=>{if(s){const v=Ee(x=>{const h=x.target,m={x:x.clientX,y:x.clientY},y=(u==null?void 0:u.contains(h))||(d==null?void 0:d.contains(h)),S=!qh(m,s);y?c():S&&(c(),f())},"handleTrackPointerGrace");return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[u,d,s,f,c]),E.jsx(Qh,{...t,ref:l})},"TooltipContentHoverable")),LS=Gm("TooltipContent"),Qh=g.forwardRef(Ee(function(t,n){const{__scopeTooltip:r,children:o,"aria-label":i,id:l,onEscapeKeyDown:s,onPointerDownOutside:a,...u}=t,f=ri(Go,r),d=gc(r),{onClose:p}=f;g.useEffect(()=>(document.addEventListener(tu,p),()=>document.removeEventListener(tu,p)),[p]),g.useEffect(()=>{if(f.trigger){const w=Ee(v=>{v.target instanceof Node&&v.target.contains(f.trigger)&&p()},"handleScroll");return window.addEventListener("scroll",w,{capture:!0}),()=>window.removeEventListener("scroll",w,{capture:!0})}},[f.trigger,p]);const{setContentId:c}=f;return it(()=>(c(l),()=>{c(void 0)}),[l,c]),E.jsx(gh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:w=>w.preventDefault(),onDismiss:p,children:E.jsxs(Fh,{"data-state":f.stateAttribute,role:i?void 0:"tooltip",id:i?void 0:f.contentId,...d,...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:[E.jsx(LS,{children:o}),i?E.jsx(SS,{id:f.contentId,role:"tooltip",children:i}):null]})})},"TooltipContentImpl"));function Xh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}Ee(Xh,"getExitSideFromRect");function Zh(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}Ee(Zh,"getPaddedExitPoints");function Jh(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}Ee(Jh,"getPointsFromRect");function qh(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const s=t[i],a=t[l],u=s.x,f=s.y,d=a.x,p=a.y;f>r!=p>r&&n<(d-u)*(r-f)/(p-f)+u&&(o=!o)}return o}Ee(qh,"isPointInPolygon");function ev(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),tv(t)}Ee(ev,"getHull");function tv(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}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)}Ee(tv,"getHullPresorted");var AS=PS,DS=_S,zS=NS,FS=MS,nv=IS;const $S=AS,Nl=DS,Tl=zS,Ko=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(FS,{children:E.jsx(nv,{ref:r,sideOffset:t,className:Ct("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ko.displayName=nv.displayName;/**
|
|
49
|
+
* @license lucide-react v0.460.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/const BS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
54
|
+
* @license lucide-react v0.460.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var US={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"};/**
|
|
59
|
+
* @license lucide-react v0.460.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/const VS=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},a)=>g.createElement("svg",{ref:a,...US,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:rv("lucide",o),...s},[...l.map(([u,f])=>g.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
|
|
64
|
+
* @license lucide-react v0.460.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const Jt=(e,t)=>{const n=g.forwardRef(({className:r,...o},i)=>g.createElement(VS,{ref:i,iconNode:t,className:rv(`lucide-${BS(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
69
|
+
* @license lucide-react v0.460.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const WS=Jt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
74
|
+
* @license lucide-react v0.460.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const gf=Jt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
79
|
+
* @license lucide-react v0.460.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const HS=Jt("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
84
|
+
* @license lucide-react v0.460.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const GS=Jt("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
89
|
+
* @license lucide-react v0.460.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const KS=Jt("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|
94
|
+
* @license lucide-react v0.460.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const YS=Jt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
99
|
+
* @license lucide-react v0.460.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const QS=Jt("PackageOpen",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]]);/**
|
|
104
|
+
* @license lucide-react v0.460.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const XS=Jt("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
109
|
+
* @license lucide-react v0.460.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const ZS=Jt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);function JS(){const e=document.documentElement.dataset.mode??"dark",t=()=>{const n=e==="dark"?"light":"dark";document.documentElement.dataset.mode=n,localStorage.setItem("zd-mode",n)};return E.jsx(ti,{variant:"ghost",size:"icon",onClick:t,"aria-label":"切换明暗",title:"切换明暗",children:e==="dark"?E.jsx(ZS,{className:"h-4 w-4"}):E.jsx(YS,{className:"h-4 w-4"})})}var qS=Object.defineProperty,Se=(e,t)=>qS(e,"name",{value:t,configurable:!0});function wc(e){const t=e+"CollectionProvider",[n,r]=Tn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=Se(v=>{const{scope:x,children:h}=v,m=g.useRef(null),y=g.useRef(new Map).current;return E.jsx(o,{scope:x,itemMap:y,collectionRef:m,children:h})},"CollectionProvider");l.displayName=t;const s=e+"CollectionSlot",a=kn(s),u=g.forwardRef((v,x)=>{const{scope:h,children:m}=v,y=i(s,h),S=ye(x,y.collectionRef);return E.jsx(a,{ref:S,children:m})});u.displayName=s;const f=e+"CollectionItemSlot",d="data-radix-collection-item",p=kn(f),c=g.forwardRef((v,x)=>{const{scope:h,children:m,...y}=v,S=g.useRef(null),C=ye(x,S),k=i(f,h);return g.useEffect(()=>(k.itemMap.set(S,{ref:S,...y}),()=>void k.itemMap.delete(S))),E.jsx(p,{[d]:"",ref:C,children:m})});c.displayName=f;function w(v){const x=i(e+"CollectionConsumer",v);return g.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((k,b)=>y.indexOf(k.ref.current)-y.indexOf(b.ref.current))},[x.collectionRef,x.itemMap])}return Se(w,"useCollection"),[{Provider:l,Slot:u,ItemSlot:c},w,r]}Se(wc,"createCollection");var yf=new WeakMap,pe,Ge,Bs=(Ge=class extends Map{constructor(n){super(n);Ac(this,pe);cs(this,pe,[...super.keys()]),yf.set(this,!0)}set(n,r){return yf.get(this)&&(this.has(n)?_e(this,pe)[_e(this,pe).indexOf(n)]=n:_e(this,pe).push(n)),super.set(n,r),this}insert(n,r,o){const i=this.has(r),l=_e(this,pe).length,s=xc(n);let a=s>=0?s:l+s;const u=a<0||a>=l?-1:a;if(u===this.size||i&&u===this.size-1||u===-1)return this.set(r,o),this;const f=this.size+(i?0:1);s<0&&a++;const d=[..._e(this,pe)];let p,c=!1;for(let w=a;w<f;w++)if(a===w){let v=d[w];d[w]===r&&(v=d[w+1]),i&&this.delete(r),p=this.get(v),this.set(r,o)}else{!c&&d[w-1]===r&&(c=!0);const v=d[c?w:w-1],x=p;p=this.get(v),this.delete(v),this.set(v,x)}return this}with(n,r,o){const i=new Ge(this);return i.insert(n,r,o),i}before(n){const r=_e(this,pe).indexOf(n)-1;if(!(r<0))return this.entryAt(r)}setBefore(n,r,o){const i=_e(this,pe).indexOf(n);return i===-1?this:this.insert(i,r,o)}after(n){let r=_e(this,pe).indexOf(n);if(r=r===-1||r===this.size-1?-1:r+1,r!==-1)return this.entryAt(r)}setAfter(n,r,o){const i=_e(this,pe).indexOf(n);return i===-1?this:this.insert(i+1,r,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return cs(this,pe,[]),super.clear()}delete(n){const r=super.delete(n);return r&&_e(this,pe).splice(_e(this,pe).indexOf(n),1),r}deleteAt(n){const r=this.keyAt(n);return r!==void 0?this.delete(r):!1}at(n){const r=Xi(_e(this,pe),n);if(r!==void 0)return this.get(r)}entryAt(n){const r=Xi(_e(this,pe),n);if(r!==void 0)return[r,this.get(r)]}indexOf(n){return _e(this,pe).indexOf(n)}keyAt(n){return Xi(_e(this,pe),n)}from(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return i;o++}}findIndex(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return o;o++}return-1}filter(n,r){const o=[];let i=0;for(const l of this)Reflect.apply(n,r,[l,i,this])&&o.push(l),i++;return new Ge(o)}map(n,r){const o=[];let i=0;for(const l of this)o.push([l[0],Reflect.apply(n,r,[l,i,this])]),i++;return new Ge(o)}reduce(...n){const[r,o]=n;let i=0,l=o??this.at(0);for(const s of this)i===0&&n.length===1?l=s:l=Reflect.apply(r,this,[l,s,i,this]),i++;return l}reduceRight(...n){const[r,o]=n;let i=o??this.at(-1);for(let l=this.size-1;l>=0;l--){const s=this.at(l);l===this.size-1&&n.length===1?i=s:i=Reflect.apply(r,this,[i,s,l,this])}return i}toSorted(n){const r=[...this.entries()].sort(n);return new Ge(r)}toReversed(){const n=new Ge;for(let r=this.size-1;r>=0;r--){const o=this.keyAt(r),i=this.get(o);n.set(o,i)}return n}toSpliced(...n){const r=[...this.entries()];return r.splice(...n),new Ge(r)}slice(n,r){const o=new Ge;let i=this.size-1;if(n===void 0)return o;n<0&&(n=n+this.size),r!==void 0&&r>0&&(i=r-1);for(let l=n;l<=i;l++){const s=this.keyAt(l),a=this.get(s);o.set(s,a)}return o}every(n,r){let o=0;for(const i of this){if(!Reflect.apply(n,r,[i,o,this]))return!1;o++}return!0}some(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return!0;o++}return!1}},pe=new WeakMap,Se(Ge,"OrderedDict"),Ge);function Xi(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=ov(e,t);return n===-1?void 0:e[n]}Se(Xi,"at");function ov(e,t){const n=e.length,r=xc(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}Se(ov,"toSafeIndex");function xc(e){return e!==e||e===0?0:Math.trunc(e)}Se(xc,"toSafeInteger");function eE(e){const t=e+"CollectionProvider",[n,r]=Tn(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Bs,setItemMap:Se(()=>{},"setItemMap")}),l=Se(({state:y,...S})=>y?E.jsx(a,{...S,state:y}):E.jsx(s,{...S}),"CollectionProvider");l.displayName=t;const s=Se(y=>{const S=x();return E.jsx(a,{...y,state:S})},"CollectionInit");s.displayName=t+"Init";const a=Se(y=>{const{scope:S,children:C,state:k}=y,b=g.useRef(null),[P,M]=g.useState(null),O=ye(b,M),[D,I]=k;return g.useEffect(()=>{if(!P)return;const F=sv(()=>{});return F.observe(P,{childList:!0,subtree:!0}),()=>{F.disconnect()}},[P]),E.jsx(o,{scope:S,itemMap:D,setItemMap:I,collectionRef:O,collectionRefObject:b,collectionElement:P,children:C})},"CollectionProviderImpl");a.displayName=t+"Impl";const u=e+"CollectionSlot",f=kn(u),d=g.forwardRef((y,S)=>{const{scope:C,children:k}=y,b=i(u,C),P=ye(S,b.collectionRef);return E.jsx(f,{ref:P,children:k})});d.displayName=u;const p=e+"CollectionItemSlot",c="data-radix-collection-item",w=kn(p),v=g.forwardRef((y,S)=>{const{scope:C,children:k,...b}=y,P=g.useRef(null),[M,O]=g.useState(null),D=ye(S,P,O),I=i(p,C),{setItemMap:F}=I,$=g.useRef(b);iv($.current,b)||($.current=b);const Q=$.current;return g.useEffect(()=>{const U=Q;return F(z=>M?z.has(M)?z.set(M,{...U,element:M}).toSorted(ru):(z.set(M,{...U,element:M}),z.toSorted(ru)):z),()=>{F(z=>!M||!z.has(M)?z:(z.delete(M),new Bs(z)))}},[M,Q,F]),E.jsx(w,{[c]:"",ref:D,children:k})});v.displayName=p;function x(){return g.useState(new Bs)}Se(x,"useInitCollection");function h(y){const{itemMap:S}=i(e+"CollectionConsumer",y);return S}return Se(h,"useCollection"),[{Provider:l,Slot:d,ItemSlot:v},{createCollectionScope:r,useCollection:h,useInitCollection:x}]}Se(eE,"createCollection");function iv(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),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}Se(iv,"shallowEqual");function lv(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Se(lv,"isElementPreceding");function ru(e,t){return!e[1].element||!t[1].element?0:lv(e[1].element,t[1].element)?-1:1}Se(ru,"sortByDocumentPosition");function sv(e){return new MutationObserver(n=>{for(const r of n)if(r.type==="childList"){e();return}})}Se(sv,"getChildListObserver");var tE=Object.defineProperty,nE=(e,t)=>tE(e,"name",{value:t,configurable:!0}),rE=g.createContext(void 0);function Sc(e){const t=g.useContext(rE);return e||t||"ltr"}nE(Sc,"useDirection");var oE=Object.defineProperty,Ec=(e,t)=>oE(e,"name",{value:t,configurable:!0}),Ti=0,bt=null;function iE(e){return Cc(),e.children}Ec(iE,"FocusGuards");function Cc(){g.useEffect(()=>{bt||(bt={start:ou(),end:ou()});const{start:e,end:t}=bt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ti++,()=>{Ti===1&&(bt==null||bt.start.remove(),bt==null||bt.end.remove(),bt=null),Ti=Math.max(0,Ti-1)}},[])}Ec(Cc,"useFocusGuards");function ou(){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}Ec(ou,"createFocusGuard");var lE=Object.defineProperty,je=(e,t)=>lE(e,"name",{value:t,configurable:!0}),Us="focusScope.autoFocusOnMount",Vs="focusScope.autoFocusOnUnmount",wf={bubbles:!1,cancelable:!0},sE=g.forwardRef(je(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...s}=t,[a,u]=g.useState(null),f=Kt(i),d=Kt(l),p=g.useRef(null),c=ye(n,u),w=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(o){let x=function(S){if(w.paused||!a)return;const C=S.target;a.contains(C)?p.current=C:At(p.current,{select:!0})},h=function(S){if(w.paused||!a)return;const C=S.relatedTarget;C!==null&&(a.contains(C)||At(p.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&At(a)};je(x,"handleFocusIn"),je(h,"handleFocusOut"),je(m,"handleMutations"),document.addEventListener("focusin",x),document.addEventListener("focusout",h);const y=new MutationObserver(m);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",h),y.disconnect()}}},[o,a,w.paused]),g.useEffect(()=>{if(a){xf.add(w);const x=document.activeElement;if(!a.contains(x)){const m=new CustomEvent(Us,wf);a.addEventListener(Us,f),a.dispatchEvent(m),m.defaultPrevented||(av(pv(kc(a)),{select:!0}),document.activeElement===x&&At(a))}return()=>{a.removeEventListener(Us,f),setTimeout(()=>{const m=new CustomEvent(Vs,wf);a.addEventListener(Vs,d),a.dispatchEvent(m),m.defaultPrevented||At(x??document.body,{select:!0}),a.removeEventListener(Vs,d),xf.remove(w)},0)}}},[a,f,d,w]);const v=g.useCallback(x=>{if(!r&&!o||w.paused)return;const h=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,m=document.activeElement;if(h&&m){const y=x.currentTarget,[S,C]=uv(y);S&&C?!x.shiftKey&&m===C?(x.preventDefault(),r&&At(S,{select:!0})):x.shiftKey&&m===S&&(x.preventDefault(),r&&At(C,{select:!0})):m===y&&x.preventDefault()}},[r,o,w.paused]);return E.jsx(at.div,{tabIndex:-1,...s,ref:c,onKeyDown:v})},"FocusScope"));function av(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(At(r,{select:t}),document.activeElement!==n)return}je(av,"focusFirst");function uv(e){const t=kc(e),n=iu(t,e),r=iu(t.reverse(),e);return[n,r]}je(uv,"getTabbableEdges");function kc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:je(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}je(kc,"getTabbableCandidates");function iu(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):cv(r,{upTo:t})))return r}je(iu,"findVisible");function cv(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}je(cv,"isHidden");function dv(e){return e instanceof HTMLInputElement&&"select"in e}je(dv,"isSelectableInput");function At(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dv(e)&&t&&e.select()}}je(At,"focus");var xf=fv();function fv(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=lu(e,t),e.unshift(t)},remove(t){var n;e=lu(e,t),(n=e[0])==null||n.resume()}}}je(fv,"createFocusScopesStack");function lu(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}je(lu,"arrayRemove");function pv(e){return e.filter(t=>t.tagName!=="A")}je(pv,"removeLinks");var aE=Object.defineProperty,bc=(e,t)=>aE(e,"name",{value:t,configurable:!0}),Ws=!1;function mv(){const[e,t]=g.useState(Ws);return g.useEffect(()=>{Ws||(Ws=!0,t(!0))},[]),e}bc(mv,"useIsHydrated");var hv=Wr[" useSyncExternalStore ".trim().toString()];function vv(){return()=>{}}bc(vv,"subscribe");function gv(){return hv(vv,()=>!0,()=>!1)}bc(gv,"useIsHydratedModern");var uE=typeof hv=="function"?gv:mv,cE=Object.defineProperty,er=(e,t)=>cE(e,"name",{value:t,configurable:!0}),Hs="rovingFocusGroup.onEntryFocus",dE={bubbles:!1,cancelable:!0},rs="RovingFocusGroup",[su,yv,fE]=wc(rs),[pE,wv]=Tn(rs,[fE]),[mE,hE]=pE(rs),vE=g.forwardRef(er(function(t,n){return E.jsx(su.Provider,{scope:t.__scopeRovingFocusGroup,children:E.jsx(su.Slot,{scope:t.__scopeRovingFocusGroup,children:E.jsx(gE,{...t,ref:n})})})},"RovingFocusGroup")),gE=g.forwardRef(er(function(t,n){const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:f,preventScrollOnEntryFocus:d=!1,...p}=t,c=g.useRef(null),w=ye(n,c),v=Sc(l),[x,h]=ns({prop:s,defaultProp:a??null,onChange:u,caller:rs}),[m,y]=g.useState(!1),S=Kt(f),C=yv(r),k=g.useRef(!1),[b,P]=g.useState(0);return g.useEffect(()=>{const M=c.current;if(M)return M.addEventListener(Hs,S),()=>M.removeEventListener(Hs,S)},[S]),E.jsx(mE,{scope:r,orientation:o,dir:v,loop:i,currentTabStopId:x,onItemFocus:g.useCallback(M=>h(M),[h]),onItemShiftTab:g.useCallback(()=>y(!0),[]),onFocusableItemAdd:g.useCallback(()=>P(M=>M+1),[]),onFocusableItemRemove:g.useCallback(()=>P(M=>M-1),[]),children:E.jsx(at.div,{tabIndex:m||b===0?-1:0,"data-orientation":o,...p,ref:w,style:{outline:"none",...t.style},onMouseDown:X(t.onMouseDown,()=>{k.current=!0}),onFocus:X(t.onFocus,M=>{const O=!k.current;if(M.target===M.currentTarget&&O&&!m){const D=new CustomEvent(Hs,dE);if(M.currentTarget.dispatchEvent(D),!D.defaultPrevented){const I=C().filter(z=>z.focusable),F=I.find(z=>z.active),$=I.find(z=>z.id===x),U=[F,$,...I].filter(Boolean).map(z=>z.ref.current);Pc(U,d)}}k.current=!1}),onBlur:X(t.onBlur,()=>y(!1))})})},"RovingFocusGroupImpl")),yE="RovingFocusGroupItem",wE=g.forwardRef(er(function(t,n){const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:l,children:s,...a}=t,u=Vo(),f=l||u,d=hE(yE,r),p=d.currentTabStopId===f,c=yv(r),{onFocusableItemAdd:w,onFocusableItemRemove:v,currentTabStopId:x}=d,h=uE();return it(()=>{if(!(!h||!o))return w(),()=>v()},[h,o,w,v]),g.useEffect(()=>{if(!(h||!o))return w(),()=>v()},[h,o,w,v]),E.jsx(su.ItemSlot,{scope:r,id:f,focusable:o,active:i,children:E.jsx(at.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...a,ref:n,onMouseDown:X(t.onMouseDown,m=>{o?d.onItemFocus(f):m.preventDefault()}),onFocus:X(t.onFocus,()=>d.onItemFocus(f)),onKeyDown:X(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){d.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=Sv(m,d.orientation,d.dir);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let C=c().filter(k=>k.focusable).map(k=>k.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const k=C.indexOf(m.currentTarget);C=d.loop?Ev(C,k+1):C.slice(k+1)}setTimeout(()=>Pc(C))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:x!=null}):s})})},"RovingFocusGroupItem")),xE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}er(xv,"getDirectionAwareKey");function Sv(e,t,n){const r=xv(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return xE[r]}er(Sv,"getFocusIntent");function Pc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}er(Pc,"focusFirst");function Ev(e,t){return e.map((n,r)=>e[(t+r)%e.length])}er(Ev,"wrapArray");var SE=vE,EE=wE,CE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ar=new WeakMap,Oi=new WeakMap,Mi={},Gs=0,Cv=function(e){return e&&(e.host||Cv(e.parentNode))},kE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Cv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},bE=function(e,t,n,r){var o=kE(t,Array.isArray(e)?e:[e]);Mi[n]||(Mi[n]=new WeakMap);var i=Mi[n],l=[],s=new Set,a=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||a.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))f(p);else try{var c=p.getAttribute(r),w=c!==null&&c!=="false",v=(ar.get(p)||0)+1,x=(i.get(p)||0)+1;ar.set(p,v),i.set(p,x),l.push(p),v===1&&w&&Oi.set(p,!0),x===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return f(t),s.clear(),Gs++,function(){l.forEach(function(d){var p=ar.get(d)-1,c=i.get(d)-1;ar.set(d,p),i.set(d,c),p||(Oi.has(d)||d.removeAttribute(r),Oi.delete(d)),c||d.removeAttribute(n)}),Gs--,Gs||(ar=new WeakMap,ar=new WeakMap,Oi=new WeakMap,Mi={})}},PE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=CE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),bE(r,o,n,"aria-hidden")):function(){return null}},_t=function(){return _t=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_t.apply(this,arguments)};function kv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function RE(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Zi="right-scroll-bar-position",Ji="width-before-scroll-bar",_E="with-scroll-bars-hidden",NE="--removed-body-scroll-bar-size";function Ks(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function TE(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var OE=typeof window<"u"?g.useLayoutEffect:g.useEffect,Sf=new WeakMap;function ME(e,t){var n=TE(null,function(r){return e.forEach(function(o){return Ks(o,r)})});return OE(function(){var r=Sf.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(s){i.has(s)||Ks(s,null)}),i.forEach(function(s){o.has(s)||Ks(s,l)})}Sf.set(n,e)},[e]),n}function IE(e){return e}function jE(e,t){t===void 0&&(t=IE);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(s){return s!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var s=n;n=[],s.forEach(i),l=n}var a=function(){var f=l;l=[],f.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(f){l.push(f),u()},filter:function(f){return l=l.filter(f),n}}}};return o}function LE(e){e===void 0&&(e={});var t=jE(null);return t.options=_t({async:!0,ssr:!1},e),t}var bv=function(e){var t=e.sideCar,n=kv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,_t({},n))};bv.isSideCarExport=!0;function AE(e,t){return e.useMedium(t),bv}var Pv=LE(),Ys=function(){},os=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Ys,onWheelCapture:Ys,onTouchMoveCapture:Ys}),o=r[0],i=r[1],l=e.forwardProps,s=e.children,a=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,c=e.noRelative,w=e.noIsolation,v=e.inert,x=e.allowPinchZoom,h=e.as,m=h===void 0?"div":h,y=e.gapMode,S=kv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,k=ME([n,t]),b=_t(_t({},S),o);return g.createElement(g.Fragment,null,f&&g.createElement(C,{sideCar:Pv,removeScrollBar:u,shards:d,noRelative:c,noIsolation:w,inert:v,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:y}),l?g.cloneElement(g.Children.only(s),_t(_t({},b),{ref:k})):g.createElement(m,_t({},b,{className:a,ref:k}),s))});os.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};os.classNames={fullWidth:Ji,zeroRight:Zi};var DE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DE();return t&&e.setAttribute("nonce",t),e}function FE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $E(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var BE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zE())&&(FE(t,n),$E(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},UE=function(){var e=BE();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rv=function(){var e=UE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},VE={left:0,top:0,right:0,gap:0},Qs=function(e){return parseInt(e||"",10)||0},WE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Qs(n),Qs(r),Qs(o)]},HE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return VE;var t=WE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},GE=Rv(),Ir="data-scroll-locked",KE=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
114
|
+
.`.concat(_E,` {
|
|
115
|
+
overflow: hidden `).concat(r,`;
|
|
116
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
117
|
+
}
|
|
118
|
+
body[`).concat(Ir,`] {
|
|
119
|
+
overflow: hidden `).concat(r,`;
|
|
120
|
+
overscroll-behavior: contain;
|
|
121
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
122
|
+
padding-left: `.concat(o,`px;
|
|
123
|
+
padding-top: `).concat(i,`px;
|
|
124
|
+
padding-right: `).concat(l,`px;
|
|
125
|
+
margin-left:0;
|
|
126
|
+
margin-top:0;
|
|
127
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
128
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.`).concat(Zi,` {
|
|
132
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.`).concat(Ji,` {
|
|
136
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.`).concat(Zi," .").concat(Zi,` {
|
|
140
|
+
right: 0 `).concat(r,`;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.`).concat(Ji," .").concat(Ji,` {
|
|
144
|
+
margin-right: 0 `).concat(r,`;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
body[`).concat(Ir,`] {
|
|
148
|
+
`).concat(NE,": ").concat(s,`px;
|
|
149
|
+
}
|
|
150
|
+
`)},Ef=function(){var e=parseInt(document.body.getAttribute(Ir)||"0",10);return isFinite(e)?e:0},YE=function(){g.useEffect(function(){return document.body.setAttribute(Ir,(Ef()+1).toString()),function(){var e=Ef()-1;e<=0?document.body.removeAttribute(Ir):document.body.setAttribute(Ir,e.toString())}},[])},QE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;YE();var i=g.useMemo(function(){return HE(o)},[o]);return g.createElement(GE,{styles:KE(i,!t,o,n?"":"!important")})},au=!1;if(typeof window<"u")try{var Ii=Object.defineProperty({},"passive",{get:function(){return au=!0,!0}});window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{au=!1}var ur=au?{passive:!1}:!1,XE=function(e){return e.tagName==="TEXTAREA"},_v=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!XE(e)&&n[t]==="visible")},ZE=function(e){return _v(e,"overflowY")},JE=function(e){return _v(e,"overflowX")},Cf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Nv(e,r);if(o){var i=Tv(e,r),l=i[1],s=i[2];if(l>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},eC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Nv=function(e,t){return e==="v"?ZE(t):JE(t)},Tv=function(e,t){return e==="v"?qE(t):eC(t)},tC=function(e,t){return e==="h"&&t==="rtl"?-1:1},nC=function(e,t,n,r,o){var i=tC(e,window.getComputedStyle(t).direction),l=i*r,s=n.target,a=t.contains(s),u=!1,f=l>0,d=0,p=0;do{if(!s)break;var c=Tv(e,s),w=c[0],v=c[1],x=c[2],h=v-x-i*w;(w||h)&&Nv(e,s)&&(d+=h,p+=w);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(f&&Math.abs(d)<1||!f&&Math.abs(p)<1)&&(u=!0),u},ji=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kf=function(e){return[e.deltaX,e.deltaY]},bf=function(e){return e&&"current"in e?e.current:e},rC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oC=function(e){return`
|
|
151
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
152
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
153
|
+
`)},iC=0,cr=[];function lC(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(iC++)[0],i=g.useState(Rv)[0],l=g.useRef(e);g.useEffect(function(){l.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=RE([e.lockRef.current],(e.shards||[]).map(bf),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var h=ji(v),m=n.current,y="deltaX"in v?v.deltaX:m[0]-h[0],S="deltaY"in v?v.deltaY:m[1]-h[1],C,k=v.target,b=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in v&&b==="h"&&k.type==="range")return!1;var P=window.getSelection(),M=P&&P.anchorNode,O=M?M===k||M.contains(k):!1;if(O)return!1;var D=Cf(b,k);if(!D)return!0;if(D?C=b:(C=b==="v"?"h":"v",D=Cf(b,k)),!D)return!1;if(!r.current&&"changedTouches"in v&&(y||S)&&(r.current=C),!C)return!0;var I=r.current||C;return nC(I,x,v,I==="h"?y:S)},[]),a=g.useCallback(function(v){var x=v;if(!(!cr.length||cr[cr.length-1]!==i)){var h="deltaY"in x?kf(x):ji(x),m=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&rC(C.delta,h)})[0];if(m&&m.should){x.cancelable&&x.preventDefault();return}if(!m){var y=(l.current.shards||[]).map(bf).filter(Boolean).filter(function(C){return C.contains(x.target)}),S=y.length>0?s(x,y[0]):!l.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=g.useCallback(function(v,x,h,m){var y={name:v,delta:x,target:h,should:m,shadowParent:sC(h)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),f=g.useCallback(function(v){n.current=ji(v),r.current=void 0},[]),d=g.useCallback(function(v){u(v.type,kf(v),v.target,s(v,e.lockRef.current))},[]),p=g.useCallback(function(v){u(v.type,ji(v),v.target,s(v,e.lockRef.current))},[]);g.useEffect(function(){return cr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",a,ur),document.addEventListener("touchmove",a,ur),document.addEventListener("touchstart",f,ur),function(){cr=cr.filter(function(v){return v!==i}),document.removeEventListener("wheel",a,ur),document.removeEventListener("touchmove",a,ur),document.removeEventListener("touchstart",f,ur)}},[]);var c=e.removeScrollBar,w=e.inert;return g.createElement(g.Fragment,null,w?g.createElement(i,{styles:oC(o)}):null,c?g.createElement(QE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aC=AE(Pv,lC);var Ov=g.forwardRef(function(e,t){return g.createElement(os,_t({},e,{ref:t,sideCar:aC}))});Ov.classNames=os.classNames;var uC=Object.defineProperty,te=(e,t)=>uC(e,"name",{value:t,configurable:!0}),cC=["Enter"," "],dC=["ArrowDown","PageUp","Home"],Mv=["ArrowUp","PageDown","End"],fC=[...dC,...Mv],is="Menu",[uu,pC,mC]=wc(is),[tr,Iv]=Tn(is,[mC,ql,wv]),Rc=ql(),jv=wv(),[hC,oi]=tr(is),[vC,_c]=tr(is),gC=te(e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:l=!0}=e,s=Rc(t),[a,u]=g.useState(null),f=g.useRef(!1),d=Kt(i),p=Sc(o);return g.useEffect(()=>{const c=te(()=>{f.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},"handleKeyDown"),w=te(()=>f.current=!1,"handlePointer");return document.addEventListener("keydown",c,{capture:!0}),()=>{document.removeEventListener("keydown",c,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),g.useEffect(()=>{if(!n)return;const c=te(()=>d(!1),"handleBlur");return window.addEventListener("blur",c),()=>window.removeEventListener("blur",c)},[n,d]),E.jsx(Dh,{...s,children:E.jsx(hC,{scope:t,open:n,onOpenChange:d,content:a,onContentChange:u,children:E.jsx(vC,{scope:t,onClose:g.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:l,children:r})})})},"Menu"),yC=g.forwardRef(te(function(t,n){const{__scopeMenu:r,...o}=t,i=Rc(r);return E.jsx(zh,{...i,...o,ref:n})},"MenuAnchor")),Lv="MenuPortal",[wC,xC]=tr(Lv,{forceMount:void 0}),SC=te(e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=oi(Lv,t);return E.jsx(wC,{scope:t,forceMount:n,children:E.jsx(ts,{present:n||i.open,children:E.jsx($h,{asChild:!0,container:o,children:r})})})},"MenuPortal"),Sn="MenuContent",[EC,Av]=tr(Sn),CC=g.forwardRef(te(function(t,n){const r=xC(Sn,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,l=oi(Sn,t.__scopeMenu),s=_c(Sn,t.__scopeMenu);return E.jsx(uu.Provider,{scope:t.__scopeMenu,children:E.jsx(ts,{present:o||l.open,children:E.jsx(uu.Slot,{scope:t.__scopeMenu,children:s.modal?E.jsx(kC,{...i,ref:n}):E.jsx(bC,{...i,ref:n})})})})},"MenuContent")),kC=g.forwardRef(te(function(t,n){const r=oi(Sn,t.__scopeMenu),o=g.useRef(null),i=ye(n,o);return g.useEffect(()=>{const l=o.current;if(l)return PE(l)},[]),E.jsx(Dv,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:X(t.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),bC=g.forwardRef(te(function(t,n){const r=oi(Sn,t.__scopeMenu);return E.jsx(Dv,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),PC=kn("MenuContent.ScrollLock"),Dv=g.forwardRef(te(function(t,n){const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:c,onDismiss:w,disableOutsideScroll:v,...x}=t,h=oi(Sn,r),m=_c(Sn,r),y=Rc(r),S=jv(r),C=pC(r),[k,b]=g.useState(null),P=g.useRef(null),M=ye(n,P,h.onContentChange),O=g.useRef(0),D=g.useRef(""),I=g.useRef(0),F=g.useRef(null),$=g.useRef("right"),Q=g.useRef(0),U=v?Ov:g.Fragment,z=v?{as:PC,allowPinchZoom:!0}:void 0,R=te(N=>{var Je,ut;const B=D.current+N,A=C().filter(ke=>!ke.disabled),V=document.activeElement,G=(Je=A.find(ke=>ke.ref.current===V))==null?void 0:Je.textValue,ie=A.map(ke=>ke.textValue),he=Uv(ie,B,G),Y=(ut=A.find(ke=>ke.textValue===he))==null?void 0:ut.ref.current;te(function ke(ct){D.current=ct,window.clearTimeout(O.current),ct!==""&&(O.current=window.setTimeout(()=>ke(""),1e3))},"updateSearch")(B),Y&&setTimeout(()=>Y.focus())},"handleTypeaheadSearch");g.useEffect(()=>()=>window.clearTimeout(O.current),[]),Cc();const _=g.useCallback(N=>{var A,V;return $.current===((A=F.current)==null?void 0:A.side)&&Wv(N,(V=F.current)==null?void 0:V.area)},[]);return E.jsx(EC,{scope:r,searchRef:D,onItemEnter:g.useCallback(N=>{_(N)&&N.preventDefault()},[_]),onItemLeave:g.useCallback(N=>{var B;_(N)||((B=P.current)==null||B.focus(),b(null))},[_]),onTriggerLeave:g.useCallback(N=>{_(N)&&N.preventDefault()},[_]),pointerGraceTimerRef:I,onPointerGraceIntentChange:g.useCallback(N=>{F.current=N},[]),children:E.jsx(U,{...z,children:E.jsx(sE,{asChild:!0,trapped:i,onMountAutoFocus:X(l,N=>{var B;N.preventDefault(),(B=P.current)==null||B.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:E.jsx(gh,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:c,onDismiss:w,children:E.jsx(SE,{asChild:!0,...S,dir:m.dir,orientation:"vertical",loop:o,currentTabStopId:k,onCurrentTabStopIdChange:b,onEntryFocus:X(u,N=>{m.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:E.jsx(Fh,{role:"menu","aria-orientation":"vertical","data-state":zv(h.open),"data-radix-menu-content":"",dir:m.dir,...y,...x,ref:M,style:{outline:"none",...x.style},onKeyDown:X(x.onKeyDown,N=>{const A=N.target.closest("[data-radix-menu-content]")===N.currentTarget,V=N.ctrlKey||N.altKey||N.metaKey,G=N.key.length===1;A&&(N.key==="Tab"&&N.preventDefault(),!V&&G&&R(N.key));const ie=P.current;if(N.target!==ie||!fC.includes(N.key))return;N.preventDefault();const Y=C().filter(Je=>!Je.disabled).map(Je=>Je.ref.current);Mv.includes(N.key)&&Y.reverse(),$v(Y)}),onBlur:X(t.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(O.current),D.current="")}),onPointerMove:X(t.onPointerMove,Ol(N=>{const B=N.target,A=Q.current!==N.clientX;if(N.currentTarget.contains(B)&&A){const V=N.clientX>Q.current?"right":"left";$.current=V,Q.current=N.clientX}}))})})})})})})},"MenuContentImpl")),cu="MenuItem",Pf="menu.itemSelect",RC=g.forwardRef(te(function(t,n){const{disabled:r=!1,onSelect:o,...i}=t,l=g.useRef(null),s=_c(cu,t.__scopeMenu),a=Av(cu,t.__scopeMenu),u=ye(n,l),f=g.useRef(!1),d=te(()=>{const p=l.current;if(!r&&p){const c=new CustomEvent(Pf,{bubbles:!0,cancelable:!0});p.addEventListener(Pf,w=>o==null?void 0:o(w),{once:!0}),ac(p,c),c.defaultPrevented?f.current=!1:s.onClose()}},"handleSelect");return E.jsx(_C,{...i,ref:u,disabled:r,onClick:X(t.onClick,d),onPointerDown:p=>{var c;(c=t.onPointerDown)==null||c.call(t,p),f.current=!0},onPointerUp:X(t.onPointerUp,p=>{var c;f.current||(c=p.currentTarget)==null||c.click()}),onKeyDown:X(t.onKeyDown,p=>{r||p.target!==p.currentTarget||a.searchRef.current!==""&&p.key===" "||cC.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})},"MenuItem")),_C=g.forwardRef(te(function(t,n){const{__scopeMenu:r,disabled:o=!1,textValue:i,...l}=t,s=Av(cu,r),a=jv(r),u=g.useRef(null),f=ye(n,u),[d,p]=g.useState(!1),[c,w]=g.useState("");return g.useEffect(()=>{const v=u.current;v&&w((v.textContent??"").trim())},[l.children]),E.jsx(uu.ItemSlot,{scope:r,disabled:o,textValue:i??c,children:E.jsx(EE,{asChild:!0,...a,focusable:!o,children:E.jsx(at.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...l,ref:f,onPointerMove:X(t.onPointerMove,Ol(v=>{o?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:X(t.onPointerLeave,Ol(v=>s.onItemLeave(v))),onFocus:X(t.onFocus,()=>p(!0)),onBlur:X(t.onBlur,()=>p(!1))})})})},"MenuItemImpl")),NC="MenuRadioGroup",[jk,Lk]=tr(NC,{value:void 0,onValueChange:te(()=>{},"onValueChange")}),TC="MenuItemIndicator",[Ak,Dk]=tr(TC,{checked:!1}),OC=g.forwardRef(te(function(t,n){const{__scopeMenu:r,...o}=t;return E.jsx(at.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})},"MenuSeparator")),MC="MenuSub",[zk,Fk]=tr(MC);function zv(e){return e?"open":"closed"}te(zv,"getOpenState");function Fv(e){return e==="indeterminate"}te(Fv,"isIndeterminate");function IC(e){return Fv(e)?"indeterminate":e?"checked":"unchecked"}te(IC,"getCheckedState");function $v(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}te($v,"focusFirst");function Bv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}te(Bv,"wrapArray");function Uv(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=Bv(e,Math.max(i,0));o.length===1&&(l=l.filter(u=>u!==n));const a=l.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}te(Uv,"getNextMatch");function Vv(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const s=t[i],a=t[l],u=s.x,f=s.y,d=a.x,p=a.y;f>r!=p>r&&n<(d-u)*(r-f)/(p-f)+u&&(o=!o)}return o}te(Vv,"isPointInPolygon");function Wv(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Vv(n,t)}te(Wv,"isPointerInGraceArea");function Ol(e){return t=>t.pointerType==="mouse"?e(t):void 0}te(Ol,"whenMouse");var jC=gC,LC=yC,AC=SC,DC=CC,zC=RC,FC=OC,$C=Object.defineProperty,Zr=(e,t)=>$C(e,"name",{value:t,configurable:!0}),Nc="DropdownMenu",[BC,$k]=Tn(Nc,[Iv]),Jr=Iv(),[UC,Hv]=BC(Nc),VC=Zr(e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:l,modal:s=!0}=e,a=Jr(t),u=g.useRef(null),[f,d]=ns({prop:o,defaultProp:i??!1,onChange:l,caller:Nc});return E.jsx(UC,{scope:t,triggerId:Vo(),triggerRef:u,contentId:Vo(),open:f,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(p=>!p),[d]),modal:s,children:E.jsx(jC,{...a,open:f,onOpenChange:d,dir:r,modal:s,children:n})})},"DropdownMenu"),WC="DropdownMenuTrigger",HC=g.forwardRef(Zr(function(t,n){const{__scopeDropdownMenu:r,disabled:o=!1,...i}=t,l=Hv(WC,r),s=Jr(r),a=ye(n,l.triggerRef);return E.jsx(LC,{asChild:!0,...s,children:E.jsx(at.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...i,ref:a,onPointerDown:X(t.onPointerDown,u=>{!o&&u.button===0&&u.ctrlKey===!1&&(l.onOpenToggle(),l.open||u.preventDefault())}),onKeyDown:X(t.onKeyDown,u=>{o||(["Enter"," "].includes(u.key)&&l.onOpenToggle(),u.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})},"DropdownMenuTrigger")),GC=Zr(e=>{const{__scopeDropdownMenu:t,...n}=e,r=Jr(t);return E.jsx(AC,{...r,...n})},"DropdownMenuPortal"),KC="DropdownMenuContent",YC=g.forwardRef(Zr(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=Hv(KC,r),l=Jr(r),s=g.useRef(!1);return E.jsx(DC,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...o,ref:n,onCloseAutoFocus:X(t.onCloseAutoFocus,a=>{var u;s.current||(u=i.triggerRef.current)==null||u.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:X(t.onInteractOutside,a=>{const u=a.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0,d=u.button===2||f;(!i.modal||d)&&(s.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),QC=g.forwardRef(Zr(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=Jr(r);return E.jsx(zC,{...i,...o,ref:n})},"DropdownMenuItem")),XC=g.forwardRef(Zr(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=Jr(r);return E.jsx(FC,{...i,...o,ref:n})},"DropdownMenuSeparator")),ZC=VC,JC=HC,qC=GC,Gv=YC,Kv=QC,Yv=XC;const ek=ZC,tk=JC,Qv=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(qC,{children:E.jsx(Gv,{ref:r,sideOffset:t,className:Ct("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Qv.displayName=Gv.displayName;const Xv=g.forwardRef(({className:e,...t},n)=>E.jsx(Kv,{ref:n,className:Ct("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Xv.displayName=Kv.displayName;const nk=g.forwardRef(({className:e,...t},n)=>E.jsx(Yv,{ref:n,className:Ct("-mx-1 my-1 h-px bg-muted",e),...t}));nk.displayName=Yv.displayName;const rk=[{id:"default",label:"Default",swatch:["#ffffff","#f4f4f5","#4f46e5","#18181b"]},{id:"pixel",label:"Pixel",swatch:["#1a1c2c","#29366f","#ef7d57","#38b764"]}];function ok(){const e=document.documentElement.dataset.theme??"default",t=n=>{document.documentElement.dataset.theme=n,localStorage.setItem("zd-theme",n)};return E.jsxs(ek,{children:[E.jsx(tk,{asChild:!0,children:E.jsx(ti,{variant:"ghost",size:"icon","aria-label":"切换风格",title:"切换风格",children:E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"}),E.jsx("circle",{cx:"7.5",cy:"10",r:"1.5"}),E.jsx("circle",{cx:"12",cy:"7",r:"1.5"}),E.jsx("circle",{cx:"16.5",cy:"10",r:"1.5"})]})})}),E.jsx(Qv,{align:"end",className:"w-48",children:rk.map(n=>{const r=e===n.id;return E.jsxs(Xv,{onClick:()=>t(n.id),className:"flex items-center gap-2.5 cursor-pointer",children:[E.jsx("span",{className:"flex gap-0.5","aria-hidden":"true",children:n.swatch.map((o,i)=>E.jsx("span",{className:"h-3 w-3 rounded-sm inline-block border border-border/50",style:{backgroundColor:o}},i))}),E.jsx("span",{className:"flex-1 text-sm",children:n.label}),r&&E.jsx(WS,{className:"h-3.5 w-3.5 text-foreground"})]},n.id)})})]})}function ik({stoppedRef:e}){const[t,n]=g.useState(!1),r=async()=>{if(confirm("停止预览服务?停止后需重新启动才能继续预览。")){e.current=!0;try{const o=await fetch("/__config").then(l=>l.json()),i=await fetch("/__stop",{method:"POST",headers:{"x-stop-token":o.stopToken??""}});if(!i.ok)throw new Error(`stop ${i.status}`)}catch{g1.error("停止预览服务失败");return}n(!0)}};return t?E.jsx("div",{className:"fixed inset-0 z-50 grid place-items-center bg-muted",children:E.jsxs("div",{className:"text-center text-muted-foreground",children:[E.jsx("div",{className:"mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[14px] bg-primary text-primary-foreground text-2xl font-bold",children:"v"}),E.jsx("p",{children:"预览服务已停止"}),E.jsx("p",{className:"mt-1 text-xs",children:"关闭此页,或在终端重新启动"})]})}):E.jsx(ti,{variant:"ghost",size:"icon",onClick:r,"aria-label":"停止预览服务",title:"停止预览服务",children:E.jsx(XS,{className:"h-4 w-4"})})}function lk({status:e,stoppedRef:t,children:n}){const r=e==="live"?"bg-success":e==="lost"?"bg-destructive":"bg-muted-foreground";return E.jsxs("header",{className:"h-[52px] border-b bg-background flex items-center px-3.5 gap-2",children:[E.jsx("strong",{className:"text-sm font-bold tracking-tight",children:"zdashboard"}),E.jsx("div",{className:"ml-auto flex items-center gap-2",children:n}),E.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[E.jsx("span",{className:`h-2 w-2 rounded-full ${r}`}),E.jsx("span",{className:"hidden sm:inline",children:e==="live"?"实时":e==="lost"?"已断开":"连接中"})]}),E.jsx(ok,{}),E.jsx(JS,{}),E.jsx(ik,{stoppedRef:t})]})}function sk({active:e,onSelect:t,plugins:n}){return E.jsxs("nav",{className:"w-12 flex-none border-r bg-background flex flex-col items-center py-2 gap-1",children:[E.jsxs(Nl,{children:[E.jsx(Tl,{asChild:!0,children:E.jsx("button",{onClick:()=>t(null),className:`relative w-9 h-9 flex items-center justify-center rounded-lg text-sm transition-all ${e===null?"bg-primary/10 text-primary":"hover:bg-muted text-muted-foreground hover:scale-105"}`,"aria-current":e===null?"page":void 0,children:E.jsx(KS,{className:"h-4 w-4"})})}),E.jsx(Ko,{side:"right",children:"首页"})]}),n.map(r=>E.jsxs(Nl,{children:[E.jsx(Tl,{asChild:!0,children:E.jsx("button",{onClick:()=>t(r.mode),"aria-current":e===r.mode?"page":void 0,className:`relative w-9 h-9 flex items-center justify-center rounded-lg text-base transition-all ${e===r.mode?"bg-primary/10 text-primary":"hover:bg-muted text-muted-foreground hover:scale-105"}`,children:E.jsx("span",{children:r.icon})})}),E.jsx(Ko,{side:"right",children:r.label})]},r.mode))]})}function Zv(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}const Rf=(e,t)=>{const n=JSON.stringify(t);window.localStorage.setItem(e,n),Zv(e,n)},ak=e=>{window.localStorage.removeItem(e),Zv(e,null)},_f=e=>window.localStorage.getItem(e),uk=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),ck=()=>{throw Error("useLocalStorage is a client-only hook")};function dk(e,t){const n=()=>_f(e),r=g.useSyncExternalStore(uk,n,ck),o=g.useCallback(i=>{try{const l=typeof i=="function"?i(JSON.parse(r)):i;l==null?ak(e):Rf(e,l)}catch(l){console.warn(l)}},[e,r]);return g.useEffect(()=>{_f(e)===null&&typeof t<"u"&&Rf(e,t)},[e,t]),[r?JSON.parse(r):t,o]}const fk="zd-sidebar-";function pk({mode:e,hasContent:t=!0,children:n,className:r}){const[o,i]=dk(`${fk}${e}`,!0),[l,s]=g.useState(!1),a=()=>i(f=>!f),u=t&&(o||l);return E.jsxs("div",{className:`relative flex-none ${r??""}`,children:[E.jsx("div",{className:["bg-background overflow-hidden","fixed left-0 top-0 h-full w-[78%] max-w-[280px] z-40 shadow-lg","transition-[width,transform] duration-200 ease-out",u?"translate-x-0":"-translate-x-full","sm:max-w-none sm:translate-x-0 sm:h-full sm:top-auto sm:left-auto",u?o?"sm:relative sm:z-auto sm:w-[280px] sm:shadow-none sm:border-r":"sm:absolute sm:z-30 sm:w-[280px] sm:shadow-lg sm:border-r":"sm:relative sm:z-auto sm:w-0 sm:shadow-none"].join(" "),onMouseEnter:()=>!o&&s(!0),onMouseLeave:()=>s(!1),children:E.jsx("div",{className:"h-full w-[280px] overflow-auto",children:n})}),E.jsx("div",{className:`sm:hidden fixed inset-0 z-30 bg-black/40 transition-opacity ${u?"opacity-100":"pointer-events-none opacity-0"}`,onClick:a,"aria-hidden":"true"}),t&&E.jsx("button",{onClick:a,"aria-expanded":o,className:`hidden sm:flex absolute right-0 top-1/2 -translate-y-1/2 z-40
|
|
154
|
+
h-10 w-5 items-center justify-center
|
|
155
|
+
rounded-l-md border border-r-0 border-border bg-background
|
|
156
|
+
text-muted-foreground hover:text-foreground hover:bg-muted transition-colors`,"aria-label":o?"折叠侧栏":"展开侧栏",children:E.jsx(gf,{className:`h-3.5 w-3.5 transition-transform duration-200 ${o?"":"rotate-180"}`})}),t&&!u&&E.jsx("button",{onClick:a,"aria-label":"展开侧栏",className:"sm:hidden fixed left-0 top-1/2 -translate-y-1/2 z-40 h-12 w-6 flex items-center justify-center rounded-r-md border border-l-0 border-border bg-background text-muted-foreground shadow",children:E.jsx(gf,{className:"h-3.5 w-3.5 rotate-180"})}),t&&!o&&E.jsx("div",{className:"hidden sm:block absolute left-0 top-0 h-full w-1.5 z-10",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)})]})}const jr=new Set;let qi=null,Yo="connecting";const du=new Set;let Lr=null;function Xs(e){Yo=e,du.forEach(t=>t(e))}function Jv(){if(qi)return;Xs(Yo==="lost"?"connecting":Yo);const e=new EventSource("/__reload");qi=e,e.onopen=()=>Xs("live"),e.addEventListener("reload",()=>jr.forEach(t=>t.onReload())),e.addEventListener("files",()=>jr.forEach(t=>t.onFiles())),e.onerror=()=>{e.close(),qi=null,Xs("lost"),Lr&&clearTimeout(Lr),Lr=setTimeout(Jv,1500)}}function mk(){typeof window<"u"&&jr.size>0&&!qi&&Jv()}function qv(e,t,n){const[r,o]=g.useState(Yo),i=g.useRef(e),l=g.useRef(t);return g.useEffect(()=>{i.current=e}),g.useEffect(()=>{l.current=t}),g.useEffect(()=>{const s={onReload:()=>i.current(),onFiles:()=>l.current(),onStatus:o};return jr.add(s),du.add(o),o(Yo),mk(),()=>{jr.delete(s),du.delete(o),jr.size===0&&Lr&&(clearTimeout(Lr),Lr=null)}},[]),r}const Li="inline-flex items-center gap-1.5 rounded-full bg-muted/60 px-2.5 h-[19px] font-mono text-[10px] leading-none text-muted-foreground";function hk({projectPath:e,stoppedRef:t}){const[n,r]=g.useState({}),[o,i]=g.useState(""),[l,s]=g.useState(0),a=qv(()=>{},()=>s(f=>f+1));g.useEffect(()=>{fetch("/__config",{cache:"no-store"}).then(f=>f.json()).then(f=>{r({branch:f.branch,dirty:f.dirty}),i(f.version??"")}).catch(()=>{})},[l]);const u=a==="live"?"bg-success animate-pulse":a==="lost"?"bg-destructive":"bg-muted-foreground";return E.jsxs("footer",{className:"h-7 border-t bg-background flex items-center justify-between px-3 gap-2 text-[11px]",children:[E.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[e&&E.jsxs(Nl,{children:[E.jsx(Tl,{asChild:!0,children:E.jsxs("span",{className:`${Li} shrink-0 cursor-default`,children:[E.jsx(HS,{className:"h-3 w-3"}),e.split("/").pop()||e]})}),E.jsx(Ko,{side:"top",className:"font-mono text-[10px]",children:e})]}),n.branch&&E.jsxs(Nl,{children:[E.jsx(Tl,{asChild:!0,children:E.jsxs("span",{className:`${Li} shrink-0 cursor-default`,children:[E.jsx(GS,{className:"h-3 w-3"}),n.branch,n.dirty?E.jsxs("span",{className:"text-warning",children:["● ",n.dirty]}):E.jsx("span",{className:"text-success",children:"clean"})]})}),E.jsx(Ko,{side:"top",className:"font-mono text-[10px]",children:n.dirty?`${n.dirty} 个未提交变更`:"工作区干净"})]})]}),E.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[o&&E.jsx("span",{className:Li,children:o}),E.jsxs("span",{className:Li,title:a==="live"?"实时推送已连接":a==="lost"?"连接断开,自动重连中":"连接中",children:[E.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${u}`}),a==="live"?"SSE":a==="lost"?"重连中":"连接中"]})]})]})}const vk=qm("rounded-xl border bg-card text-card-foreground shadow-sm",{variants:{variant:{default:"",outline:"bg-background"}},defaultVariants:{variant:"default"}}),eg=g.forwardRef(({className:e,variant:t,...n},r)=>E.jsx("div",{ref:r,className:Ct(vk({variant:t,className:e})),...n}));eg.displayName="Card";const tg=g.forwardRef(({className:e,...t},n)=>E.jsx("div",{ref:n,className:Ct("flex flex-col space-y-1.5 p-6",e),...t}));tg.displayName="CardHeader";const ng=g.forwardRef(({className:e,...t},n)=>E.jsx("h3",{ref:n,className:Ct("font-semibold leading-none tracking-tight",e),...t}));ng.displayName="CardTitle";const rg=g.forwardRef(({className:e,...t},n)=>E.jsx("p",{ref:n,className:Ct("text-sm text-muted-foreground",e),...t}));rg.displayName="CardDescription";const gk=g.forwardRef(({className:e,...t},n)=>E.jsx("div",{ref:n,className:Ct("p-6 pt-0",e),...t}));gk.displayName="CardContent";const yk=g.forwardRef(({className:e,...t},n)=>E.jsx("div",{ref:n,className:Ct("flex items-center p-6 pt-0",e),...t}));yk.displayName="CardFooter";const wk=[{key:"hasOpenspec",label:"openspec"},{key:"hasDocs",label:"docs"},{key:"hasJust",label:"just"},{key:"hasBugs",label:"bugs"}];function xk({plugins:e,detect:t,onSelect:n}){return E.jsxs("div",{className:"space-y-5",children:[E.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:e.map(r=>E.jsx("button",{onClick:()=>n(r.mode),className:"text-left group rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:E.jsx(eg,{className:"h-full transition-all duration-200 group-hover:-translate-y-0.5 group-hover:shadow-md group-hover:border-muted-foreground/30",children:E.jsx(tg,{children:E.jsxs("div",{className:"flex items-center gap-2.5",children:[E.jsx("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-[10px] bg-muted text-lg leading-none group-hover:bg-primary/10 transition-colors",children:r.icon}),E.jsxs("div",{className:"min-w-0",children:[E.jsxs(ng,{className:"text-sm flex items-center gap-1.5",children:[E.jsx("span",{className:"truncate",children:r.label}),r.external&&E.jsx("span",{className:"flex-none text-[10px] px-1.5 py-0.5 rounded-full bg-muted text-muted-foreground border",children:"外部"})]}),E.jsx(rg,{className:"truncate",children:r.description??r.mode})]})]})})})},r.mode))}),E.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-[11px] text-muted-foreground",children:[E.jsx("span",{className:"mr-1",children:"探测"}),wk.map(r=>E.jsxs("span",{className:`inline-flex items-center gap-1 rounded-full border px-2 h-[19px] font-mono ${t[r.key]?"border-success/30 bg-success/10 text-success":"border-border bg-muted/40 text-muted-foreground/70"}`,children:[E.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${t[r.key]?"bg-success":"bg-muted-foreground/40"}`}),r.label]},r.key))]})]})}const Sk="modulepreload",Ek=function(e){return"/"+e},Nf={},Dn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),s=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=Promise.allSettled(n.map(a=>{if(a=Ek(a),a in Nf)return;Nf[a]=!0;const u=a.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Sk,u||(d.as="script"),d.crossOrigin="",d.href=a,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((p,c)=>{d.addEventListener("load",p),d.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})}))}function i(l){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l}return o.then(l=>{for(const s of l||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};function Ck({viewerUrl:e,label:t}){return E.jsx("div",{className:"mx-auto h-full w-full max-w-6xl overflow-hidden rounded-lg border bg-background shadow-sm",children:E.jsx("iframe",{src:e,title:t,className:"w-full h-full border-0 bg-background",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups"})})}function kk({icon:e,title:t,hint:n,tone:r="muted"}){return E.jsx("div",{className:"flex-1 grid place-items-center text-muted-foreground select-none",children:E.jsxs("div",{className:"text-center",children:[E.jsx("div",{className:`mx-auto mb-3.5 grid h-14 w-14 place-items-center rounded-[16px] ${r==="primary"?"bg-primary text-primary-foreground shadow-sm":"bg-muted text-muted-foreground"}`,children:E.jsx(e,{className:"h-6 w-6"})}),E.jsx("p",{className:"text-sm text-foreground/80",children:t}),n&&E.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:n})]})})}function bk({label:e}){return E.jsx(kk,{icon:QS,title:`${e} · 无可视化界面`,hint:"该插件只提供后端能力;在插件目录添加 web/index.html 可获得 iframe 工作区"})}const Tf=["stats","view","bugs","review","design","apply","just"];function Pk(){const[e,t]=j.useState([]),[n,r]=j.useState([]);return j.useEffect(()=>{let o=!1;return(async()=>{const l=Object.entries(Object.assign({"../../plugins/apply/web.tsx":()=>Dn(()=>import("./web-CMZAKAOi.js"),__vite__mapDeps([0,1,2,3,4])),"../../plugins/bugs/web.tsx":()=>Dn(()=>import("./web-La5g0ovh.js"),__vite__mapDeps([5,1,6])),"../../plugins/design/web.tsx":()=>Dn(()=>import("./web-BYZeHggs.js"),__vite__mapDeps([7,8,4,9,10,11,3,6])),"../../plugins/just/web.tsx":()=>Dn(()=>import("./web-BoW0qNb8.js"),__vite__mapDeps([12,6])),"../../plugins/review/web.tsx":()=>Dn(()=>import("./web-Dpd8wclV.js"),__vite__mapDeps([13,8,4,9,2,6])),"../../plugins/stats/web.tsx":()=>Dn(()=>import("./web-ZM6TYT88.js"),[]),"../../plugins/view/web.tsx":()=>Dn(()=>import("./web-CkMm3ooW.js"),__vite__mapDeps([14,8,4,9,10,11,3]))})),s=[];for(const[,a]of l)try{const u=await a();u.default&&s.push(u.default)}catch(u){console.error("[zdashboard] failed to load web plugin:",u)}s.sort((a,u)=>{const f=Tf.indexOf(a.mode),d=Tf.indexOf(u.mode);return f===-1&&d===-1?a.mode.localeCompare(u.mode):f===-1?1:d===-1?-1:f-d}),o||t(s)})(),()=>{o=!0}},[]),j.useEffect(()=>{let o=!1;return(async()=>{try{const l=await(await fetch("/__plugins",{cache:"no-store"})).json();if(!o){const s=(l.plugins??[]).map(a=>a.viewerUrl?{...a,Workspace:()=>j.createElement(Ck,{viewerUrl:a.viewerUrl,label:a.label})}:{...a,Workspace:()=>j.createElement(bk,{label:a.label})});r(s.filter(a=>!e.some(u=>u.mode===a.mode)))}}catch{}})(),()=>{o=!0}},[e]),[...e,...n]}function Rk(){const e=Pk(),[t,n]=g.useState(null),[r,o]=g.useState(""),i=g.useRef(!1),[l,s]=g.useState({hasOpenspec:!1,hasDocs:!1,hasJust:!1,hasBugs:!1}),[a,u]=g.useState(null),f=qv(()=>{window.location.reload()},()=>{});g.useEffect(()=>{let c=!1;return(async()=>{try{const v=await(await fetch("/__config",{cache:"no-store"})).json();if(c)return;o(v.root??"")}catch{}})(),()=>{c=!0}},[]),g.useEffect(()=>{let c=!1;return(async()=>{try{const v=await(await fetch("/__files",{cache:"no-store"})).json();c||s({hasOpenspec:v.hasOpenspec,hasDocs:v.hasDocs,hasJust:v.hasJust,hasBugs:v.hasBugs})}catch{}})(),()=>{c=!0}},[]);const d=g.useCallback(c=>{n(c),u(null),c===null?window.location.hash="":window.location.hash=c},[]);g.useEffect(()=>{const c=w=>{const v=w.detail;v!=null&&v.mode&&(u({...v,navToken:Date.now()}),n(v.mode),window.location.hash=v.mode)};return window.addEventListener("zd-dashboard-nav",c),()=>window.removeEventListener("zd-dashboard-nav",c)},[]),g.useEffect(()=>{const c=()=>{const w=window.location.hash.slice(1);!w||w==="home"?n(null):e.some(v=>v.mode===w)&&n(w)};return c(),window.addEventListener("hashchange",c),()=>window.removeEventListener("hashchange",c)},[e]);const p=t?e.find(c=>c.mode===t):null;return E.jsxs("div",{className:"flex h-screen flex-col",children:[E.jsx(lk,{status:f,stoppedRef:i}),E.jsxs("div",{className:"flex-1 min-h-0 flex",children:[E.jsx(sk,{active:t,onSelect:d,plugins:e.map(c=>({mode:c.mode,label:c.label,icon:c.icon}))}),E.jsx(pk,{mode:t??"home",hasContent:!!(p!=null&&p.Sidebar),children:p!=null&&p.Sidebar?E.jsx(g.Suspense,{fallback:E.jsx("div",{className:"w-full h-full"}),children:E.jsx("div",{className:"h-full animate-in fade-in slide-in-from-left-1 duration-200",children:E.jsx(p.Sidebar,{navTarget:a},(a==null?void 0:a.navToken)??"side")},t)}):null}),E.jsx("section",{className:"flex-1 min-h-0 dot-grid",children:E.jsx("div",{className:"h-full p-6",children:t&&p?E.jsx(g.Suspense,{fallback:E.jsx("div",{className:"mx-auto h-full max-w-6xl rounded-lg border bg-background shadow-sm animate-pulse"}),children:E.jsx("div",{className:"h-full animate-in fade-in duration-200",children:E.jsx(p.Workspace,{...a?{navTarget:a}:{}},(a==null?void 0:a.navToken)??"ws")},t)}):E.jsx(xk,{plugins:e,detect:l,onSelect:d})})})]}),E.jsx(hk,{projectPath:r,stoppedRef:i})]})}const og=document.documentElement;let el=localStorage.getItem("zd-mode");el||(el=localStorage.getItem("zdashboard-theme")==="light"?"light":"dark",localStorage.setItem("zd-mode",el),localStorage.removeItem("zdashboard-theme"));og.dataset.mode=el;let _k=localStorage.getItem("zd-theme")??"default";og.dataset.theme=_k;Zs.createRoot(document.getElementById("root")).render(E.jsx(j.StrictMode,{children:E.jsxs($S,{children:[E.jsx(t1,{children:E.jsx(Rk,{})}),E.jsx(N1,{position:"bottom-right",richColors:!0})]})}));export{ti as B,WS as C,kk as E,HS as F,GS as G,Dn as _,Ct as a,qm as b,Jt as c,Tk as d,g1 as e,Ok as f,Of as g,E as j,g as r,qv as u};
|