gm-orchestrator 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/infra/gm-discovery.d.ts +5 -0
- package/dist/infra/gm-discovery.d.ts.map +1 -1
- package/dist/infra/gm-discovery.js +29 -0
- package/dist/infra/gm-discovery.js.map +1 -1
- package/dist/server/api.d.ts.map +1 -1
- package/dist/server/api.js +28 -0
- package/dist/server/api.js.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +4 -2
- package/dist/server/index.js.map +1 -1
- package/dist/ui/assets/index-CnAu9t6Z.js +259 -0
- package/dist/ui/index.html +1 -1
- package/package.json +1 -1
- package/dist/ui/assets/index-BLIhzpED.js +0 -259
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
var $1=Object.defineProperty;var Z1=(n,l,r)=>l in n?$1(n,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[l]=r;var dt=(n,l,r)=>Z1(n,typeof l!="symbol"?l+"":l,r);function F1(n,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in n)){const c=Object.getOwnPropertyDescriptor(o,s);c&&Object.defineProperty(n,s,c.get?c:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function eb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var If={exports:{}},Xi={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Sv;function W1(){if(Sv)return Xi;Sv=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,s,c){var d=null;if(c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),"key"in s){c={};for(var p in s)p!=="key"&&(c[p]=s[p])}else c=s;return s=c.ref,{$$typeof:n,type:o,key:d,ref:s!==void 0?s:null,props:c}}return Xi.Fragment=l,Xi.jsx=r,Xi.jsxs=r,Xi}var Ev;function J1(){return Ev||(Ev=1,If.exports=W1()),If.exports}var y=J1(),Xf={exports:{}},je={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var wv;function eE(){if(wv)return je;wv=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function C(j){return j===null||typeof j!="object"?null:(j=S&&j[S]||j["@@iterator"],typeof j=="function"?j:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,N={};function T(j,A,q){this.props=j,this.context=A,this.refs=N,this.updater=q||R}T.prototype.isReactComponent={},T.prototype.setState=function(j,A){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,A,"setState")},T.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function D(){}D.prototype=T.prototype;function U(j,A,q){this.props=j,this.context=A,this.refs=N,this.updater=q||R}var M=U.prototype=new D;M.constructor=U,w(M,T.prototype),M.isPureReactComponent=!0;var z=Array.isArray;function B(){}var V={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function K(j,A,q){var $=q.ref;return{$$typeof:n,type:j,key:A,ref:$!==void 0?$:null,props:q}}function F(j,A){return K(j.type,A,j.props)}function ne(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function ie(j){var A={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(q){return A[q]})}var G=/\/+/g;function ce(j,A){return typeof j=="object"&&j!==null&&j.key!=null?ie(""+j.key):A.toString(36)}function fe(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(B,B):(j.status="pending",j.then(function(A){j.status==="pending"&&(j.status="fulfilled",j.value=A)},function(A){j.status==="pending"&&(j.status="rejected",j.reason=A)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function k(j,A,q,$,I){var re=typeof j;(re==="undefined"||re==="boolean")&&(j=null);var de=!1;if(j===null)de=!0;else switch(re){case"bigint":case"string":case"number":de=!0;break;case"object":switch(j.$$typeof){case n:case l:de=!0;break;case x:return de=j._init,k(de(j._payload),A,q,$,I)}}if(de)return I=I(j),de=$===""?"."+ce(j,0):$,z(I)?(q="",de!=null&&(q=de.replace(G,"$&/")+"/"),k(I,A,q,"",function(Ye){return Ye})):I!=null&&(ne(I)&&(I=F(I,q+(I.key==null||j&&j.key===I.key?"":(""+I.key).replace(G,"$&/")+"/")+de)),A.push(I)),1;de=0;var se=$===""?".":$+":";if(z(j))for(var he=0;he<j.length;he++)$=j[he],re=se+ce($,he),de+=k($,A,q,re,I);else if(he=C(j),typeof he=="function")for(j=he.call(j),he=0;!($=j.next()).done;)$=$.value,re=se+ce($,he++),de+=k($,A,q,re,I);else if(re==="object"){if(typeof j.then=="function")return k(fe(j),A,q,$,I);throw A=String(j),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}return de}function _(j,A,q){if(j==null)return j;var $=[],I=0;return k(j,$,"","",function(re){return A.call(q,re,I++)}),$}function ee(j){if(j._status===-1){var A=j._result;A=A(),A.then(function(q){(j._status===0||j._status===-1)&&(j._status=1,j._result=q)},function(q){(j._status===0||j._status===-1)&&(j._status=2,j._result=q)}),j._status===-1&&(j._status=0,j._result=A)}if(j._status===1)return j._result.default;throw j._result}var oe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var A=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(A))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},J={map:_,forEach:function(j,A,q){_(j,function(){A.apply(this,arguments)},q)},count:function(j){var A=0;return _(j,function(){A++}),A},toArray:function(j){return _(j,function(A){return A})||[]},only:function(j){if(!ne(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return je.Activity=v,je.Children=J,je.Component=T,je.Fragment=r,je.Profiler=s,je.PureComponent=U,je.StrictMode=o,je.Suspense=g,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,je.__COMPILER_RUNTIME={__proto__:null,c:function(j){return V.H.useMemoCache(j)}},je.cache=function(j){return function(){return j.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(j,A,q){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var $=w({},j.props),I=j.key;if(A!=null)for(re in A.key!==void 0&&(I=""+A.key),A)!H.call(A,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&A.ref===void 0||($[re]=A[re]);var re=arguments.length-2;if(re===1)$.children=q;else if(1<re){for(var de=Array(re),se=0;se<re;se++)de[se]=arguments[se+2];$.children=de}return K(j.type,I,$)},je.createContext=function(j){return j={$$typeof:d,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:c,_context:j},j},je.createElement=function(j,A,q){var $,I={},re=null;if(A!=null)for($ in A.key!==void 0&&(re=""+A.key),A)H.call(A,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(I[$]=A[$]);var de=arguments.length-2;if(de===1)I.children=q;else if(1<de){for(var se=Array(de),he=0;he<de;he++)se[he]=arguments[he+2];I.children=se}if(j&&j.defaultProps)for($ in de=j.defaultProps,de)I[$]===void 0&&(I[$]=de[$]);return K(j,re,I)},je.createRef=function(){return{current:null}},je.forwardRef=function(j){return{$$typeof:p,render:j}},je.isValidElement=ne,je.lazy=function(j){return{$$typeof:x,_payload:{_status:-1,_result:j},_init:ee}},je.memo=function(j,A){return{$$typeof:m,type:j,compare:A===void 0?null:A}},je.startTransition=function(j){var A=V.T,q={};V.T=q;try{var $=j(),I=V.S;I!==null&&I(q,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(B,oe)}catch(re){oe(re)}finally{A!==null&&q.types!==null&&(A.types=q.types),V.T=A}},je.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},je.use=function(j){return V.H.use(j)},je.useActionState=function(j,A,q){return V.H.useActionState(j,A,q)},je.useCallback=function(j,A){return V.H.useCallback(j,A)},je.useContext=function(j){return V.H.useContext(j)},je.useDebugValue=function(){},je.useDeferredValue=function(j,A){return V.H.useDeferredValue(j,A)},je.useEffect=function(j,A){return V.H.useEffect(j,A)},je.useEffectEvent=function(j){return V.H.useEffectEvent(j)},je.useId=function(){return V.H.useId()},je.useImperativeHandle=function(j,A,q){return V.H.useImperativeHandle(j,A,q)},je.useInsertionEffect=function(j,A){return V.H.useInsertionEffect(j,A)},je.useLayoutEffect=function(j,A){return V.H.useLayoutEffect(j,A)},je.useMemo=function(j,A){return V.H.useMemo(j,A)},je.useOptimistic=function(j,A){return V.H.useOptimistic(j,A)},je.useReducer=function(j,A,q){return V.H.useReducer(j,A,q)},je.useRef=function(j){return V.H.useRef(j)},je.useState=function(j){return V.H.useState(j)},je.useSyncExternalStore=function(j,A,q){return V.H.useSyncExternalStore(j,A,q)},je.useTransition=function(){return V.H.useTransition()},je.version="19.2.4",je}var Cv;function so(){return Cv||(Cv=1,Xf.exports=eE()),Xf.exports}var h=so();const me=eb(h),uo=F1({__proto__:null,default:me},[h]);var Kf={exports:{}},Ki={},Pf={exports:{}},Qf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Rv;function tE(){return Rv||(Rv=1,(function(n){function l(k,_){var ee=k.length;k.push(_);e:for(;0<ee;){var oe=ee-1>>>1,J=k[oe];if(0<s(J,_))k[oe]=_,k[ee]=J,ee=oe;else break e}}function r(k){return k.length===0?null:k[0]}function o(k){if(k.length===0)return null;var _=k[0],ee=k.pop();if(ee!==_){k[0]=ee;e:for(var oe=0,J=k.length,j=J>>>1;oe<j;){var A=2*(oe+1)-1,q=k[A],$=A+1,I=k[$];if(0>s(q,ee))$<J&&0>s(I,q)?(k[oe]=I,k[$]=ee,oe=$):(k[oe]=q,k[A]=ee,oe=A);else if($<J&&0>s(I,ee))k[oe]=I,k[$]=ee,oe=$;else break e}}return _}function s(k,_){var ee=k.sortIndex-_.sortIndex;return ee!==0?ee:k.id-_.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var g=[],m=[],x=1,v=null,S=3,C=!1,R=!1,w=!1,N=!1,T=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function M(k){for(var _=r(m);_!==null;){if(_.callback===null)o(m);else if(_.startTime<=k)o(m),_.sortIndex=_.expirationTime,l(g,_);else break;_=r(m)}}function z(k){if(w=!1,M(k),!R)if(r(g)!==null)R=!0,B||(B=!0,ie());else{var _=r(m);_!==null&&fe(z,_.startTime-k)}}var B=!1,V=-1,H=5,K=-1;function F(){return N?!0:!(n.unstable_now()-K<H)}function ne(){if(N=!1,B){var k=n.unstable_now();K=k;var _=!0;try{e:{R=!1,w&&(w=!1,D(V),V=-1),C=!0;var ee=S;try{t:{for(M(k),v=r(g);v!==null&&!(v.expirationTime>k&&F());){var oe=v.callback;if(typeof oe=="function"){v.callback=null,S=v.priorityLevel;var J=oe(v.expirationTime<=k);if(k=n.unstable_now(),typeof J=="function"){v.callback=J,M(k),_=!0;break t}v===r(g)&&o(g),M(k)}else o(g);v=r(g)}if(v!==null)_=!0;else{var j=r(m);j!==null&&fe(z,j.startTime-k),_=!1}}break e}finally{v=null,S=ee,C=!1}_=void 0}}finally{_?ie():B=!1}}}var ie;if(typeof U=="function")ie=function(){U(ne)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,ce=G.port2;G.port1.onmessage=ne,ie=function(){ce.postMessage(null)}}else ie=function(){T(ne,0)};function fe(k,_){V=T(function(){k(n.unstable_now())},_)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(k){switch(S){case 1:case 2:case 3:var _=3;break;default:_=S}var ee=S;S=_;try{return k()}finally{S=ee}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(k,_){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var ee=S;S=k;try{return _()}finally{S=ee}},n.unstable_scheduleCallback=function(k,_,ee){var oe=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?oe+ee:oe):ee=oe,k){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=ee+J,k={id:x++,callback:_,priorityLevel:k,startTime:ee,expirationTime:J,sortIndex:-1},ee>oe?(k.sortIndex=ee,l(m,k),r(g)===null&&k===r(m)&&(w?(D(V),V=-1):w=!0,fe(z,ee-oe))):(k.sortIndex=J,l(g,k),R||C||(R=!0,B||(B=!0,ie()))),k},n.unstable_shouldYield=F,n.unstable_wrapCallback=function(k){var _=S;return function(){var ee=S;S=_;try{return k.apply(this,arguments)}finally{S=ee}}}})(Qf)),Qf}var Tv;function nE(){return Tv||(Tv=1,Pf.exports=tE()),Pf.exports}var $f={exports:{}},It={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Nv;function aE(){if(Nv)return It;Nv=1;var n=so();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(g,m,x){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:g,containerInfo:m,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,It.createPortal=function(g,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return c(g,m,null,x)},It.flushSync=function(g){var m=d.T,x=o.p;try{if(d.T=null,o.p=2,g)return g()}finally{d.T=m,o.p=x,o.d.f()}},It.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},It.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},It.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var x=m.as,v=p(x,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,C=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:C}):x==="script"&&o.d.X(g,{crossOrigin:v,integrity:S,fetchPriority:C,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},It.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=p(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(g)},It.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,v=p(x,m.crossOrigin);o.d.L(g,x,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},It.preloadModule=function(g,m){if(typeof g=="string")if(m){var x=p(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(g)},It.requestFormReset=function(g){o.d.r(g)},It.unstable_batchedUpdates=function(g,m){return g(m)},It.useFormState=function(g,m,x){return d.H.useFormState(g,m,x)},It.useFormStatus=function(){return d.H.useHostTransitionStatus()},It.version="19.2.4",It}var jv;function tb(){if(jv)return $f.exports;jv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),$f.exports=aE(),$f.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Av;function lE(){if(Av)return Ki;Av=1;var n=nE(),l=so(),r=tb();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(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 p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(c(e)!==e)throw Error(o(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,i=t;;){var u=a.return;if(u===null)break;var f=u.alternate;if(f===null){if(i=u.return,i!==null){a=i;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===a)return g(u),e;if(f===i)return g(u),t;f=f.sibling}throw Error(o(188))}if(a.return!==i.return)a=u,i=f;else{for(var b=!1,E=u.child;E;){if(E===a){b=!0,a=u,i=f;break}if(E===i){b=!0,i=u,a=f;break}E=E.sibling}if(!b){for(E=f.child;E;){if(E===a){b=!0,a=f,i=u;break}if(E===i){b=!0,i=f,a=u;break}E=E.sibling}if(!b)throw Error(o(189))}}if(a.alternate!==i)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),U=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var G=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===G?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case T:return"Profiler";case N:return"StrictMode";case z:return"Suspense";case B:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case U:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case M:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var fe=Array.isArray,k=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},oe=[],J=-1;function j(e){return{current:e}}function A(e){0>J||(e.current=oe[J],oe[J]=null,J--)}function q(e,t){J++,oe[J]=e.current,e.current=t}var $=j(null),I=j(null),re=j(null),de=j(null);function se(e,t){switch(q(re,t),q(I,e),q($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ig(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ig(t),e=Xg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}A($),q($,e)}function he(){A($),A(I),A(re)}function Ye(e){e.memoizedState!==null&&q(de,e);var t=$.current,a=Xg(t,e.type);t!==a&&(q(I,e),q($,a))}function ot(e){I.current===e&&(A($),A(I)),de.current===e&&(A(de),Yi._currentValue=ee)}var ct,xe;function ve(e){if(ct===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ct=t&&t[1]||"",xe=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ct+e+xe}var Ce=!1;function nt(e,t){if(!e||Ce)return"";Ce=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Z){var Q=Z}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(Z){Q=Z}e.call(ae.prototype)}}else{try{throw Error()}catch(Z){Q=Z}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(Z){if(Z&&Q&&typeof Z.stack=="string")return[Z.stack,Q.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),b=f[0],E=f[1];if(b&&E){var O=b.split(`
|
|
44
|
+
`),P=E.split(`
|
|
45
|
+
`);for(u=i=0;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;for(;u<P.length&&!P[u].includes("DetermineComponentFrameRoot");)u++;if(i===O.length||u===P.length)for(i=O.length-1,u=P.length-1;1<=i&&0<=u&&O[i]!==P[u];)u--;for(;1<=i&&0<=u;i--,u--)if(O[i]!==P[u]){if(i!==1||u!==1)do if(i--,u--,0>u||O[i]!==P[u]){var W=`
|
|
46
|
+
`+O[i].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=i&&0<=u);break}}}finally{Ce=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ve(a):""}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve("Lazy");case 13:return e.child!==t&&t!==null?ve("Suspense Fallback"):ve("Suspense");case 19:return ve("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return ve("Activity");default:return""}}function Ne(e){try{var t="",a=null;do t+=Te(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var Ke=Object.prototype.hasOwnProperty,we=n.unstable_scheduleCallback,le=n.unstable_cancelCallback,ue=n.unstable_shouldYield,Oe=n.unstable_requestPaint,De=n.unstable_now,zt=n.unstable_getCurrentPriorityLevel,Pt=n.unstable_ImmediatePriority,bn=n.unstable_UserBlockingPriority,zn=n.unstable_NormalPriority,ht=n.unstable_LowPriority,pt=n.unstable_IdlePriority,Je=n.log,jt=n.unstable_setDisableYieldValue,cn=null,_t=null;function fn(e){if(typeof Je=="function"&&jt(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(cn,e)}catch{}}var At=Math.clz32?Math.clz32:xn,ti=Math.log,cl=Math.LN2;function xn(e){return e>>>=0,e===0?32:31-(ti(e)/cl|0)|0}var Na=256,Gl=262144,fl=4194304;function Gn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Re(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var E=i&134217727;return E!==0?(i=E&~f,i!==0?u=Gn(i):(b&=E,b!==0?u=Gn(b):a||(a=E&~e,a!==0&&(u=Gn(a))))):(E=i&~f,E!==0?u=Gn(E):b!==0?u=Gn(b):a||(a=i&~e,a!==0&&(u=Gn(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Mt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gt(){var e=fl;return fl<<=1,(fl&62914560)===0&&(fl=4194304),e}function ja(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ft(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zt(e,t,a,i,u,f){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,O=e.expirationTimes,P=e.hiddenUpdates;for(a=b&~a;0<a;){var W=31-At(a),ae=1<<W;E[W]=0,O[W]=-1;var Q=P[W];if(Q!==null)for(P[W]=null,W=0;W<Q.length;W++){var Z=Q[W];Z!==null&&(Z.lane&=-536870913)}a&=~ae}i!==0&&dl(e,i,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(b&~t))}function dl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-At(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function Ft(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-At(a),u=1<<i;u&t|e[i]&t&&(e[i]|=t),a&=~u}}function Wt(e,t){var a=t&-t;return a=(a&42)!==0?1:Il(a),(a&(e.suspendedLanes|t))!==0?0:a}function Il(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _n(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Du(){var e=_.p;return e!==0?e:(e=window.event,e===void 0?32:hv(e.type))}function Mm(e,t){var a=_.p;try{return _.p=e,t()}finally{_.p=a}}var Aa=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Aa,Jt="__reactProps$"+Aa,Xl="__reactContainer$"+Aa,zu="__reactEvents$"+Aa,Bx="__reactListeners$"+Aa,Hx="__reactHandles$"+Aa,Om="__reactResources$"+Aa,ni="__reactMarker$"+Aa;function _u(e){delete e[Lt],delete e[Jt],delete e[zu],delete e[Bx],delete e[Hx]}function Kl(e){var t=e[Lt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xl]||a[Lt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Wg(e);e!==null;){if(a=e[Lt])return a;e=Wg(e)}return t}e=a,a=e.parentNode}return null}function Pl(e){if(e=e[Lt]||e[Xl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ai(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Ql(e){var t=e[Om];return t||(t=e[Om]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ot(e){e[ni]=!0}var km=new Set,Dm={};function ml(e,t){$l(e,t),$l(e+"Capture",t)}function $l(e,t){for(Dm[e]=t,e=0;e<t.length;e++)km.add(t[e])}var Vx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zm={},_m={};function Yx(e){return Ke.call(_m,e)?!0:Ke.call(zm,e)?!1:Vx.test(e)?_m[e]=!0:(zm[e]=!0,!1)}function So(e,t,a){if(Yx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Eo(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ta(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qx(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,f=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(b){a=""+b,f.call(this,b)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lu(e){if(!e._valueTracker){var t=Lm(e)?"checked":"value";e._valueTracker=qx(e,t,""+e[t])}}function Um(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Lm(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function wo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Gx=/[\n"\\]/g;function En(e){return e.replace(Gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uu(e,t,a,i,u,f,b,E){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Sn(t)):e.value!==""+Sn(t)&&(e.value=""+Sn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?Bu(e,b,Sn(t)):a!=null?Bu(e,b,Sn(a)):i!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+Sn(E):e.removeAttribute("name")}function Bm(e,t,a,i,u,f,b,E){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Lu(e);return}a=a!=null?""+Sn(a):"",t=t!=null?""+Sn(t):a,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Lu(e)}function Bu(e,t,a){t==="number"&&wo(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Zl(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Sn(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Hm(e,t,a){if(t!=null&&(t=""+Sn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Sn(a):""}function Vm(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(o(92));if(fe(i)){if(1<i.length)throw Error(o(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Sn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),Lu(e)}function Fl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Ix=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ym(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Ix.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function qm(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&a[u]!==i&&Ym(e,u,i)}else for(var f in t)t.hasOwnProperty(f)&&Ym(e,f,t[f])}function Hu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Kx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Co(e){return Kx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var Vu=null;function Yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,Jl=null;function Gm(e){var t=Pl(e);if(t&&(e=t.stateNode)){var a=e[Jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Uu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+En(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var u=i[Jt]||null;if(!u)throw Error(o(90));Uu(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Um(i)}break e;case"textarea":Hm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Zl(e,!!a.multiple,t,!1)}}}var qu=!1;function Im(e,t,a){if(qu)return e(t,a);qu=!0;try{var i=e(t);return i}finally{if(qu=!1,(Wl!==null||Jl!==null)&&(fs(),Wl&&(t=Wl,e=Jl,Jl=Wl=null,Gm(t),e)))for(t=0;t<e.length;t++)Gm(e[t])}}function li(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Jt]||null;if(i===null)return null;a=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gu=!1;if(aa)try{var ri={};Object.defineProperty(ri,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",ri,ri),window.removeEventListener("test",ri,ri)}catch{Gu=!1}var Ma=null,Iu=null,Ro=null;function Xm(){if(Ro)return Ro;var e,t=Iu,a=t.length,i,u="value"in Ma?Ma.value:Ma.textContent,f=u.length;for(e=0;e<a&&t[e]===u[e];e++);var b=a-e;for(i=1;i<=b&&t[a-i]===u[f-i];i++);return Ro=u.slice(e,1<i?1-i:void 0)}function To(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 No(){return!0}function Km(){return!1}function en(e){function t(a,i,u,f,b){this._reactName=a,this._targetInst=u,this.type=i,this.nativeEvent=f,this.target=b,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(f):f[E]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?No:Km,this.isPropagationStopped=Km,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=No)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jo=en(hl),ii=v({},hl,{view:0,detail:0}),Px=en(ii),Xu,Ku,oi,Ao=v({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,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!==oi&&(oi&&e.type==="mousemove"?(Xu=e.screenX-oi.screenX,Ku=e.screenY-oi.screenY):Ku=Xu=0,oi=e),Xu)},movementY:function(e){return"movementY"in e?e.movementY:Ku}}),Pm=en(Ao),Qx=v({},Ao,{dataTransfer:0}),$x=en(Qx),Zx=v({},ii,{relatedTarget:0}),Pu=en(Zx),Fx=v({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),Wx=en(Fx),Jx=v({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eS=en(Jx),tS=v({},hl,{data:0}),Qm=en(tS),nS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aS={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"},lS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lS[e])?!!t[e]:!1}function Qu(){return rS}var iS=v({},ii,{key:function(e){if(e.key){var t=nS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=To(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?aS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?To(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?To(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),oS=en(iS),sS=v({},Ao,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$m=en(sS),uS=v({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),cS=en(uS),fS=v({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),dS=en(fS),mS=v({},Ao,{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}),hS=en(mS),pS=v({},hl,{newState:0,oldState:0}),gS=en(pS),vS=[9,13,27,32],$u=aa&&"CompositionEvent"in window,si=null;aa&&"documentMode"in document&&(si=document.documentMode);var yS=aa&&"TextEvent"in window&&!si,Zm=aa&&(!$u||si&&8<si&&11>=si),Fm=" ",Wm=!1;function Jm(e,t){switch(e){case"keyup":return vS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function bS(e,t){switch(e){case"compositionend":return eh(t);case"keypress":return t.which!==32?null:(Wm=!0,Fm);case"textInput":return e=t.data,e===Fm&&Wm?null:e;default:return null}}function xS(e,t){if(er)return e==="compositionend"||!$u&&Jm(e,t)?(e=Xm(),Ro=Iu=Ma=null,er=!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 Zm&&t.locale!=="ko"?null:t.data;default:return null}}var SS={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 th(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!SS[e.type]:t==="textarea"}function nh(e,t,a,i){Wl?Jl?Jl.push(i):Jl=[i]:Wl=i,t=ys(t,"onChange"),0<t.length&&(a=new jo("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var ui=null,ci=null;function ES(e){Bg(e,0)}function Mo(e){var t=ai(e);if(Um(t))return e}function ah(e,t){if(e==="change")return t}var lh=!1;if(aa){var Zu;if(aa){var Fu="oninput"in document;if(!Fu){var rh=document.createElement("div");rh.setAttribute("oninput","return;"),Fu=typeof rh.oninput=="function"}Zu=Fu}else Zu=!1;lh=Zu&&(!document.documentMode||9<document.documentMode)}function ih(){ui&&(ui.detachEvent("onpropertychange",oh),ci=ui=null)}function oh(e){if(e.propertyName==="value"&&Mo(ci)){var t=[];nh(t,ci,e,Yu(e)),Im(ES,t)}}function wS(e,t,a){e==="focusin"?(ih(),ui=t,ci=a,ui.attachEvent("onpropertychange",oh)):e==="focusout"&&ih()}function CS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mo(ci)}function RS(e,t){if(e==="click")return Mo(t)}function TS(e,t){if(e==="input"||e==="change")return Mo(t)}function NS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dn=typeof Object.is=="function"?Object.is:NS;function fi(e,t){if(dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var u=a[i];if(!Ke.call(t,u)||!dn(e[u],t[u]))return!1}return!0}function sh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uh(e,t){var a=sh(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=sh(a)}}function ch(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ch(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wo(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=wo(e.document)}return t}function Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var jS=aa&&"documentMode"in document&&11>=document.documentMode,tr=null,Ju=null,di=null,ec=!1;function dh(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ec||tr==null||tr!==wo(i)||(i=tr,"selectionStart"in i&&Wu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),di&&fi(di,i)||(di=i,i=ys(Ju,"onSelect"),0<i.length&&(t=new jo("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=tr)))}function pl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var nr={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},tc={},mh={};aa&&(mh=document.createElement("div").style,"AnimationEvent"in window||(delete nr.animationend.animation,delete nr.animationiteration.animation,delete nr.animationstart.animation),"TransitionEvent"in window||delete nr.transitionend.transition);function gl(e){if(tc[e])return tc[e];if(!nr[e])return e;var t=nr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in mh)return tc[e]=t[a];return e}var hh=gl("animationend"),ph=gl("animationiteration"),gh=gl("animationstart"),AS=gl("transitionrun"),MS=gl("transitionstart"),OS=gl("transitioncancel"),vh=gl("transitionend"),yh=new Map,nc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");nc.push("scrollEnd");function Ln(e,t){yh.set(e,t),ml(t,[e])}var Oo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},wn=[],ar=0,ac=0;function ko(){for(var e=ar,t=ac=ar=0;t<e;){var a=wn[t];wn[t++]=null;var i=wn[t];wn[t++]=null;var u=wn[t];wn[t++]=null;var f=wn[t];if(wn[t++]=null,i!==null&&u!==null){var b=i.pending;b===null?u.next=u:(u.next=b.next,b.next=u),i.pending=u}f!==0&&bh(a,u,f)}}function Do(e,t,a,i){wn[ar++]=e,wn[ar++]=t,wn[ar++]=a,wn[ar++]=i,ac|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function lc(e,t,a,i){return Do(e,t,a,i),zo(e)}function vl(e,t){return Do(e,null,null,t),zo(e)}function bh(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var u=!1,f=e.return;f!==null;)f.childLanes|=a,i=f.alternate,i!==null&&(i.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&t!==null&&(u=31-At(a),e=f.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=a|536870912),f):null}function zo(e){if(50<zi)throw zi=0,hf=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var lr={};function kS(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(e,t,a,i){return new kS(e,t,a,i)}function rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function la(e,t){var a=e.alternate;return a===null?(a=mn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function xh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _o(e,t,a,i,u,f){var b=0;if(i=e,typeof e=="function")rc(e)&&(b=1);else if(typeof e=="string")b=U1(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=mn(31,a,t,u),e.elementType=K,e.lanes=f,e;case w:return yl(a.children,u,f,t);case N:b=8,u|=24;break;case T:return e=mn(12,a,t,u|2),e.elementType=T,e.lanes=f,e;case z:return e=mn(13,a,t,u),e.elementType=z,e.lanes=f,e;case B:return e=mn(19,a,t,u),e.elementType=B,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:b=10;break e;case D:b=9;break e;case M:b=11;break e;case V:b=14;break e;case H:b=16,i=null;break e}b=29,a=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=mn(b,a,t,u),t.elementType=e,t.type=i,t.lanes=f,t}function yl(e,t,a,i){return e=mn(7,e,i,t),e.lanes=a,e}function ic(e,t,a){return e=mn(6,e,null,t),e.lanes=a,e}function Sh(e){var t=mn(18,null,null,0);return t.stateNode=e,t}function oc(e,t,a){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Eh=new WeakMap;function Cn(e,t){if(typeof e=="object"&&e!==null){var a=Eh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ne(t)},Eh.set(e,t),t)}return{value:e,source:t,stack:Ne(t)}}var rr=[],ir=0,Lo=null,mi=0,Rn=[],Tn=0,Oa=null,In=1,Xn="";function ra(e,t){rr[ir++]=mi,rr[ir++]=Lo,Lo=e,mi=t}function wh(e,t,a){Rn[Tn++]=In,Rn[Tn++]=Xn,Rn[Tn++]=Oa,Oa=e;var i=In;e=Xn;var u=32-At(i)-1;i&=~(1<<u),a+=1;var f=32-At(t)+u;if(30<f){var b=u-u%5;f=(i&(1<<b)-1).toString(32),i>>=b,u-=b,In=1<<32-At(t)+u|a<<u|i,Xn=f+e}else In=1<<f|a<<u|i,Xn=e}function sc(e){e.return!==null&&(ra(e,1),wh(e,1,0))}function uc(e){for(;e===Lo;)Lo=rr[--ir],rr[ir]=null,mi=rr[--ir],rr[ir]=null;for(;e===Oa;)Oa=Rn[--Tn],Rn[Tn]=null,Xn=Rn[--Tn],Rn[Tn]=null,In=Rn[--Tn],Rn[Tn]=null}function Ch(e,t){Rn[Tn++]=In,Rn[Tn++]=Xn,Rn[Tn++]=Oa,In=t.id,Xn=t.overflow,Oa=e}var Ut=null,at=null,Ve=!1,ka=null,Nn=!1,cc=Error(o(519));function Da(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hi(Cn(t,e)),cc}function Rh(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Lt]=e,t[Jt]=i,a){case"dialog":Le("cancel",t),Le("close",t);break;case"iframe":case"object":case"embed":Le("load",t);break;case"video":case"audio":for(a=0;a<Li.length;a++)Le(Li[a],t);break;case"source":Le("error",t);break;case"img":case"image":case"link":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"input":Le("invalid",t),Bm(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Le("invalid",t);break;case"textarea":Le("invalid",t),Vm(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||qg(t.textContent,a)?(i.popover!=null&&(Le("beforetoggle",t),Le("toggle",t)),i.onScroll!=null&&Le("scroll",t),i.onScrollEnd!=null&&Le("scrollend",t),i.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Da(e,!0)}function Th(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 31:case 13:Nn=!1;return;case 27:case 3:Nn=!0;return;default:Ut=Ut.return}}function or(e){if(e!==Ut)return!1;if(!Ve)return Th(e),Ve=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Af(e.type,e.memoizedProps)),a=!a),a&&at&&Da(e),Th(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));at=Fg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));at=Fg(e)}else t===27?(t=at,Pa(e.type)?(e=zf,zf=null,at=e):at=t):at=Ut?An(e.stateNode.nextSibling):null;return!0}function bl(){at=Ut=null,Ve=!1}function fc(){var e=ka;return e!==null&&(ln===null?ln=e:ln.push.apply(ln,e),ka=null),e}function hi(e){ka===null?ka=[e]:ka.push(e)}var dc=j(null),xl=null,ia=null;function za(e,t,a){q(dc,t._currentValue),t._currentValue=a}function oa(e){e._currentValue=dc.current,A(dc)}function mc(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function hc(e,t,a,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var b=u.child;f=f.firstContext;e:for(;f!==null;){var E=f;f=u;for(var O=0;O<t.length;O++)if(E.context===t[O]){f.lanes|=a,E=f.alternate,E!==null&&(E.lanes|=a),mc(f.return,a,e),i||(b=null);break e}f=E.next}}else if(u.tag===18){if(b=u.return,b===null)throw Error(o(341));b.lanes|=a,f=b.alternate,f!==null&&(f.lanes|=a),mc(b,a,e),b=null}else b=u.child;if(b!==null)b.return=u;else for(b=u;b!==null;){if(b===e){b=null;break}if(u=b.sibling,u!==null){u.return=b.return,b=u;break}b=b.return}u=b}}function sr(e,t,a,i){e=null;for(var u=t,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var b=u.alternate;if(b===null)throw Error(o(387));if(b=b.memoizedProps,b!==null){var E=u.type;dn(u.pendingProps.value,b.value)||(e!==null?e.push(E):e=[E])}}else if(u===de.current){if(b=u.alternate,b===null)throw Error(o(387));b.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Yi):e=[Yi])}u=u.return}e!==null&&hc(t,e,a,i),t.flags|=262144}function Uo(e){for(e=e.firstContext;e!==null;){if(!dn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sl(e){xl=e,ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return Nh(xl,e)}function Bo(e,t){return xl===null&&Sl(e),Nh(e,t)}function Nh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ia===null){if(e===null)throw Error(o(308));ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ia=ia.next=t;return a}var DS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},zS=n.unstable_scheduleCallback,_S=n.unstable_NormalPriority,St={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pc(){return{controller:new DS,data:new Map,refCount:0}}function pi(e){e.refCount--,e.refCount===0&&zS(_S,function(){e.controller.abort()})}var gi=null,gc=0,ur=0,cr=null;function LS(e,t){if(gi===null){var a=gi=[];gc=0,ur=xf(),cr={status:"pending",value:void 0,then:function(i){a.push(i)}}}return gc++,t.then(jh,jh),t}function jh(){if(--gc===0&&gi!==null){cr!==null&&(cr.status="fulfilled");var e=gi;gi=null,ur=0,cr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function US(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),i}var Ah=k.S;k.S=function(e,t){dg=De(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&LS(e,t),Ah!==null&&Ah(e,t)};var El=j(null);function vc(){var e=El.current;return e!==null?e:et.pooledCache}function Ho(e,t){t===null?q(El,El.current):q(El,t.pool)}function Mh(){var e=vc();return e===null?null:{parent:St._currentValue,pool:e}}var fr=Error(o(460)),yc=Error(o(474)),Vo=Error(o(542)),Yo={then:function(){}};function Oh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function kh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zh(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zh(e),e}throw Cl=t,fr}}function wl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Cl=a,fr):a}}var Cl=null;function Dh(){if(Cl===null)throw Error(o(459));var e=Cl;return Cl=null,e}function zh(e){if(e===fr||e===Vo)throw Error(o(483))}var dr=null,vi=0;function qo(e){var t=vi;return vi+=1,dr===null&&(dr=[]),kh(dr,e,t)}function yi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Go(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _h(e){function t(Y,L){if(e){var X=Y.deletions;X===null?(Y.deletions=[L],Y.flags|=16):X.push(L)}}function a(Y,L){if(!e)return null;for(;L!==null;)t(Y,L),L=L.sibling;return null}function i(Y){for(var L=new Map;Y!==null;)Y.key!==null?L.set(Y.key,Y):L.set(Y.index,Y),Y=Y.sibling;return L}function u(Y,L){return Y=la(Y,L),Y.index=0,Y.sibling=null,Y}function f(Y,L,X){return Y.index=X,e?(X=Y.alternate,X!==null?(X=X.index,X<L?(Y.flags|=67108866,L):X):(Y.flags|=67108866,L)):(Y.flags|=1048576,L)}function b(Y){return e&&Y.alternate===null&&(Y.flags|=67108866),Y}function E(Y,L,X,te){return L===null||L.tag!==6?(L=ic(X,Y.mode,te),L.return=Y,L):(L=u(L,X),L.return=Y,L)}function O(Y,L,X,te){var Se=X.type;return Se===w?W(Y,L,X.props.children,te,X.key):L!==null&&(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===H&&wl(Se)===L.type)?(L=u(L,X.props),yi(L,X),L.return=Y,L):(L=_o(X.type,X.key,X.props,null,Y.mode,te),yi(L,X),L.return=Y,L)}function P(Y,L,X,te){return L===null||L.tag!==4||L.stateNode.containerInfo!==X.containerInfo||L.stateNode.implementation!==X.implementation?(L=oc(X,Y.mode,te),L.return=Y,L):(L=u(L,X.children||[]),L.return=Y,L)}function W(Y,L,X,te,Se){return L===null||L.tag!==7?(L=yl(X,Y.mode,te,Se),L.return=Y,L):(L=u(L,X),L.return=Y,L)}function ae(Y,L,X){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=ic(""+L,Y.mode,X),L.return=Y,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case C:return X=_o(L.type,L.key,L.props,null,Y.mode,X),yi(X,L),X.return=Y,X;case R:return L=oc(L,Y.mode,X),L.return=Y,L;case H:return L=wl(L),ae(Y,L,X)}if(fe(L)||ie(L))return L=yl(L,Y.mode,X,null),L.return=Y,L;if(typeof L.then=="function")return ae(Y,qo(L),X);if(L.$$typeof===U)return ae(Y,Bo(Y,L),X);Go(Y,L)}return null}function Q(Y,L,X,te){var Se=L!==null?L.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Se!==null?null:E(Y,L,""+X,te);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case C:return X.key===Se?O(Y,L,X,te):null;case R:return X.key===Se?P(Y,L,X,te):null;case H:return X=wl(X),Q(Y,L,X,te)}if(fe(X)||ie(X))return Se!==null?null:W(Y,L,X,te,null);if(typeof X.then=="function")return Q(Y,L,qo(X),te);if(X.$$typeof===U)return Q(Y,L,Bo(Y,X),te);Go(Y,X)}return null}function Z(Y,L,X,te,Se){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Y=Y.get(X)||null,E(L,Y,""+te,Se);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case C:return Y=Y.get(te.key===null?X:te.key)||null,O(L,Y,te,Se);case R:return Y=Y.get(te.key===null?X:te.key)||null,P(L,Y,te,Se);case H:return te=wl(te),Z(Y,L,X,te,Se)}if(fe(te)||ie(te))return Y=Y.get(X)||null,W(L,Y,te,Se,null);if(typeof te.then=="function")return Z(Y,L,X,qo(te),Se);if(te.$$typeof===U)return Z(Y,L,X,Bo(L,te),Se);Go(L,te)}return null}function pe(Y,L,X,te){for(var Se=null,Ge=null,be=L,Me=L=0,He=null;be!==null&&Me<X.length;Me++){be.index>Me?(He=be,be=null):He=be.sibling;var Ie=Q(Y,be,X[Me],te);if(Ie===null){be===null&&(be=He);break}e&&be&&Ie.alternate===null&&t(Y,be),L=f(Ie,L,Me),Ge===null?Se=Ie:Ge.sibling=Ie,Ge=Ie,be=He}if(Me===X.length)return a(Y,be),Ve&&ra(Y,Me),Se;if(be===null){for(;Me<X.length;Me++)be=ae(Y,X[Me],te),be!==null&&(L=f(be,L,Me),Ge===null?Se=be:Ge.sibling=be,Ge=be);return Ve&&ra(Y,Me),Se}for(be=i(be);Me<X.length;Me++)He=Z(be,Y,Me,X[Me],te),He!==null&&(e&&He.alternate!==null&&be.delete(He.key===null?Me:He.key),L=f(He,L,Me),Ge===null?Se=He:Ge.sibling=He,Ge=He);return e&&be.forEach(function(Wa){return t(Y,Wa)}),Ve&&ra(Y,Me),Se}function Ee(Y,L,X,te){if(X==null)throw Error(o(151));for(var Se=null,Ge=null,be=L,Me=L=0,He=null,Ie=X.next();be!==null&&!Ie.done;Me++,Ie=X.next()){be.index>Me?(He=be,be=null):He=be.sibling;var Wa=Q(Y,be,Ie.value,te);if(Wa===null){be===null&&(be=He);break}e&&be&&Wa.alternate===null&&t(Y,be),L=f(Wa,L,Me),Ge===null?Se=Wa:Ge.sibling=Wa,Ge=Wa,be=He}if(Ie.done)return a(Y,be),Ve&&ra(Y,Me),Se;if(be===null){for(;!Ie.done;Me++,Ie=X.next())Ie=ae(Y,Ie.value,te),Ie!==null&&(L=f(Ie,L,Me),Ge===null?Se=Ie:Ge.sibling=Ie,Ge=Ie);return Ve&&ra(Y,Me),Se}for(be=i(be);!Ie.done;Me++,Ie=X.next())Ie=Z(be,Y,Me,Ie.value,te),Ie!==null&&(e&&Ie.alternate!==null&&be.delete(Ie.key===null?Me:Ie.key),L=f(Ie,L,Me),Ge===null?Se=Ie:Ge.sibling=Ie,Ge=Ie);return e&&be.forEach(function(Q1){return t(Y,Q1)}),Ve&&ra(Y,Me),Se}function We(Y,L,X,te){if(typeof X=="object"&&X!==null&&X.type===w&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case C:e:{for(var Se=X.key;L!==null;){if(L.key===Se){if(Se=X.type,Se===w){if(L.tag===7){a(Y,L.sibling),te=u(L,X.props.children),te.return=Y,Y=te;break e}}else if(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===H&&wl(Se)===L.type){a(Y,L.sibling),te=u(L,X.props),yi(te,X),te.return=Y,Y=te;break e}a(Y,L);break}else t(Y,L);L=L.sibling}X.type===w?(te=yl(X.props.children,Y.mode,te,X.key),te.return=Y,Y=te):(te=_o(X.type,X.key,X.props,null,Y.mode,te),yi(te,X),te.return=Y,Y=te)}return b(Y);case R:e:{for(Se=X.key;L!==null;){if(L.key===Se)if(L.tag===4&&L.stateNode.containerInfo===X.containerInfo&&L.stateNode.implementation===X.implementation){a(Y,L.sibling),te=u(L,X.children||[]),te.return=Y,Y=te;break e}else{a(Y,L);break}else t(Y,L);L=L.sibling}te=oc(X,Y.mode,te),te.return=Y,Y=te}return b(Y);case H:return X=wl(X),We(Y,L,X,te)}if(fe(X))return pe(Y,L,X,te);if(ie(X)){if(Se=ie(X),typeof Se!="function")throw Error(o(150));return X=Se.call(X),Ee(Y,L,X,te)}if(typeof X.then=="function")return We(Y,L,qo(X),te);if(X.$$typeof===U)return We(Y,L,Bo(Y,X),te);Go(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,L!==null&&L.tag===6?(a(Y,L.sibling),te=u(L,X),te.return=Y,Y=te):(a(Y,L),te=ic(X,Y.mode,te),te.return=Y,Y=te),b(Y)):a(Y,L)}return function(Y,L,X,te){try{vi=0;var Se=We(Y,L,X,te);return dr=null,Se}catch(be){if(be===fr||be===Vo)throw be;var Ge=mn(29,be,null,Y.mode);return Ge.lanes=te,Ge.return=Y,Ge}finally{}}}var Rl=_h(!0),Lh=_h(!1),_a=!1;function bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=zo(e),bh(e,null,a),t}return Do(e,i,t,a),zo(e)}function bi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ft(e,a)}}function Sc(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var u=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?u=f=b:f=f.next=b,a=a.next}while(a!==null);f===null?u=f=t:f=f.next=t}else u=f=t;a={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Ec=!1;function xi(){if(Ec){var e=cr;if(e!==null)throw e}}function Si(e,t,a,i){Ec=!1;var u=e.updateQueue;_a=!1;var f=u.firstBaseUpdate,b=u.lastBaseUpdate,E=u.shared.pending;if(E!==null){u.shared.pending=null;var O=E,P=O.next;O.next=null,b===null?f=P:b.next=P,b=O;var W=e.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==b&&(E===null?W.firstBaseUpdate=P:E.next=P,W.lastBaseUpdate=O))}if(f!==null){var ae=u.baseState;b=0,W=P=O=null,E=f;do{var Q=E.lane&-536870913,Z=Q!==E.lane;if(Z?(Be&Q)===Q:(i&Q)===Q){Q!==0&&Q===ur&&(Ec=!0),W!==null&&(W=W.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var pe=e,Ee=E;Q=t;var We=a;switch(Ee.tag){case 1:if(pe=Ee.payload,typeof pe=="function"){ae=pe.call(We,ae,Q);break e}ae=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ee.payload,Q=typeof pe=="function"?pe.call(We,ae,Q):pe,Q==null)break e;ae=v({},ae,Q);break e;case 2:_a=!0}}Q=E.callback,Q!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=u.callbacks,Z===null?u.callbacks=[Q]:Z.push(Q))}else Z={lane:Q,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(P=W=Z,O=ae):W=W.next=Z,b|=Q;if(E=E.next,E===null){if(E=u.shared.pending,E===null)break;Z=E,E=Z.next,Z.next=null,u.lastBaseUpdate=Z,u.shared.pending=null}}while(!0);W===null&&(O=ae),u.baseState=O,u.firstBaseUpdate=P,u.lastBaseUpdate=W,f===null&&(u.shared.lanes=0),qa|=b,e.lanes=b,e.memoizedState=ae}}function Uh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Bh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Uh(a[e],t)}var mr=j(null),Io=j(0);function Hh(e,t){e=ga,q(Io,e),q(mr,t),ga=e|t.baseLanes}function wc(){q(Io,ga),q(mr,mr.current)}function Cc(){ga=Io.current,A(mr),A(Io)}var hn=j(null),jn=null;function Ba(e){var t=e.alternate;q(yt,yt.current&1),q(hn,e),jn===null&&(t===null||mr.current!==null||t.memoizedState!==null)&&(jn=e)}function Rc(e){q(yt,yt.current),q(hn,e),jn===null&&(jn=e)}function Vh(e){e.tag===22?(q(yt,yt.current),q(hn,e),jn===null&&(jn=e)):Ha()}function Ha(){q(yt,yt.current),q(hn,hn.current)}function pn(e){A(hn),jn===e&&(jn=null),A(yt)}var yt=j(0);function Xo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||kf(a)||Df(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 sa=0,Ae=null,Ze=null,Et=null,Ko=!1,hr=!1,Tl=!1,Po=0,Ei=0,pr=null,BS=0;function gt(){throw Error(o(321))}function Tc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!dn(e[a],t[a]))return!1;return!0}function Nc(e,t,a,i,u,f){return sa=f,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?wp:qc,Tl=!1,f=a(i,u),Tl=!1,hr&&(f=qh(t,a,i,u)),Yh(e),f}function Yh(e){k.H=Ri;var t=Ze!==null&&Ze.next!==null;if(sa=0,Et=Ze=Ae=null,Ko=!1,Ei=0,pr=null,t)throw Error(o(300));e===null||wt||(e=e.dependencies,e!==null&&Uo(e)&&(wt=!0))}function qh(e,t,a,i){Ae=e;var u=0;do{if(hr&&(pr=null),Ei=0,hr=!1,25<=u)throw Error(o(301));if(u+=1,Et=Ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=Cp,f=t(a,i)}while(hr);return f}function HS(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?wi(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Ae.flags|=1024),t}function jc(){var e=Po!==0;return Po=0,e}function Ac(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mc(e){if(Ko){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ko=!1}sa=0,Et=Ze=Ae=null,hr=!1,Ei=Po=0,pr=null}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Ae.memoizedState=Et=e:Et=Et.next=e,Et}function bt(){if(Ze===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=Et===null?Ae.memoizedState:Et.next;if(t!==null)Et=t,Ze=e;else{if(e===null)throw Ae.alternate===null?Error(o(467)):Error(o(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Et===null?Ae.memoizedState=Et=e:Et=Et.next=e}return Et}function Qo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wi(e){var t=Ei;return Ei+=1,pr===null&&(pr=[]),e=kh(pr,e,t),t=Ae,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?wp:qc),e}function $o(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wi(e);if(e.$$typeof===U)return Bt(e)}throw Error(o(438,String(e)))}function Oc(e){var t=null,a=Ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ae.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Qo(),Ae.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=F;return t.index++,a}function ua(e,t){return typeof t=="function"?t(e):t}function Zo(e){var t=bt();return kc(t,Ze,e)}function kc(e,t,a){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=a;var u=e.baseQueue,f=i.pending;if(f!==null){if(u!==null){var b=u.next;u.next=f.next,f.next=b}t.baseQueue=u=f,i.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{t=u.next;var E=b=null,O=null,P=t,W=!1;do{var ae=P.lane&-536870913;if(ae!==P.lane?(Be&ae)===ae:(sa&ae)===ae){var Q=P.revertLane;if(Q===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),ae===ur&&(W=!0);else if((sa&Q)===Q){P=P.next,Q===ur&&(W=!0);continue}else ae={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},O===null?(E=O=ae,b=f):O=O.next=ae,Ae.lanes|=Q,qa|=Q;ae=P.action,Tl&&a(f,ae),f=P.hasEagerState?P.eagerState:a(f,ae)}else Q={lane:ae,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},O===null?(E=O=Q,b=f):O=O.next=Q,Ae.lanes|=ae,qa|=ae;P=P.next}while(P!==null&&P!==t);if(O===null?b=f:O.next=E,!dn(f,e.memoizedState)&&(wt=!0,W&&(a=cr,a!==null)))throw a;e.memoizedState=f,e.baseState=b,e.baseQueue=O,i.lastRenderedState=f}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Dc(e){var t=bt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=a.dispatch,u=a.pending,f=t.memoizedState;if(u!==null){a.pending=null;var b=u=u.next;do f=e(f,b.action),b=b.next;while(b!==u);dn(f,t.memoizedState)||(wt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,i]}function Gh(e,t,a){var i=Ae,u=bt(),f=Ve;if(f){if(a===void 0)throw Error(o(407));a=a()}else a=t();var b=!dn((Ze||u).memoizedState,a);if(b&&(u.memoizedState=a,wt=!0),u=u.queue,Lc(Kh.bind(null,i,u,e),[e]),u.getSnapshot!==t||b||Et!==null&&Et.memoizedState.tag&1){if(i.flags|=2048,gr(9,{destroy:void 0},Xh.bind(null,i,u,a,t),null),et===null)throw Error(o(349));f||(sa&127)!==0||Ih(i,t,a)}return a}function Ih(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=Qo(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Xh(e,t,a,i){t.value=a,t.getSnapshot=i,Ph(t)&&Qh(e)}function Kh(e,t,a){return a(function(){Ph(t)&&Qh(e)})}function Ph(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!dn(e,a)}catch{return!0}}function Qh(e){var t=vl(e,2);t!==null&&rn(t,e,2)}function zc(e){var t=Qt();if(typeof e=="function"){var a=e;if(e=a(),Tl){fn(!0);try{a()}finally{fn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t}function $h(e,t,a,i){return e.baseState=a,kc(e,Ze,typeof i=="function"?i:ua)}function VS(e,t,a,i,u){if(Jo(e))throw Error(o(485));if(e=t.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){f.listeners.push(b)}};k.T!==null?a(!0):f.isTransition=!1,i(f),a=t.pending,a===null?(f.next=t.pending=f,Zh(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Zh(e,t){var a=t.action,i=t.payload,u=e.state;if(t.isTransition){var f=k.T,b={};k.T=b;try{var E=a(u,i),O=k.S;O!==null&&O(b,E),Fh(e,t,E)}catch(P){_c(e,t,P)}finally{f!==null&&b.types!==null&&(f.types=b.types),k.T=f}}else try{f=a(u,i),Fh(e,t,f)}catch(P){_c(e,t,P)}}function Fh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Wh(e,t,i)},function(i){return _c(e,t,i)}):Wh(e,t,a)}function Wh(e,t,a){t.status="fulfilled",t.value=a,Jh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Zh(e,a)))}function _c(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Jh(t),t=t.next;while(t!==i)}e.action=null}function Jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ep(e,t){return t}function tp(e,t){if(Ve){var a=et.formState;if(a!==null){e:{var i=Ae;if(Ve){if(at){t:{for(var u=at,f=Nn;u.nodeType!==8;){if(!f){u=null;break t}if(u=An(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){at=An(u.nextSibling),i=u.data==="F!";break e}}Da(i)}i=!1}i&&(t=a[0])}}return a=Qt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ep,lastRenderedState:t},a.queue=i,a=xp.bind(null,Ae,i),i.dispatch=a,i=zc(!1),f=Yc.bind(null,Ae,!1,i.queue),i=Qt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,a=VS.bind(null,Ae,u,f,a),u.dispatch=a,i.memoizedState=e,[t,a,!1]}function np(e){var t=bt();return ap(t,Ze,e)}function ap(e,t,a){if(t=kc(e,t,ep)[0],e=Zo(ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=wi(t)}catch(b){throw b===fr?Vo:b}else i=t;t=bt();var u=t.queue,f=u.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,gr(9,{destroy:void 0},YS.bind(null,u,a),null)),[i,f,e]}function YS(e,t){e.action=t}function lp(e){var t=bt(),a=Ze;if(a!==null)return ap(t,a,e);bt(),t=t.memoizedState,a=bt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function gr(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Qo(),Ae.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function rp(){return bt().memoizedState}function Fo(e,t,a,i){var u=Qt();Ae.flags|=e,u.memoizedState=gr(1|t,{destroy:void 0},a,i===void 0?null:i)}function Wo(e,t,a,i){var u=bt();i=i===void 0?null:i;var f=u.memoizedState.inst;Ze!==null&&i!==null&&Tc(i,Ze.memoizedState.deps)?u.memoizedState=gr(t,f,a,i):(Ae.flags|=e,u.memoizedState=gr(1|t,f,a,i))}function ip(e,t){Fo(8390656,8,e,t)}function Lc(e,t){Wo(2048,8,e,t)}function qS(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Qo(),Ae.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function op(e){var t=bt().memoizedState;return qS({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function sp(e,t){return Wo(4,2,e,t)}function up(e,t){return Wo(4,4,e,t)}function cp(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fp(e,t,a){a=a!=null?a.concat([e]):null,Wo(4,4,cp.bind(null,t,e),a)}function Uc(){}function dp(e,t){var a=bt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Tc(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function mp(e,t){var a=bt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Tc(t,i[1]))return i[0];if(i=e(),Tl){fn(!0);try{e()}finally{fn(!1)}}return a.memoizedState=[i,t],i}function Bc(e,t,a){return a===void 0||(sa&1073741824)!==0&&(Be&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=hg(),Ae.lanes|=e,qa|=e,a)}function hp(e,t,a,i){return dn(a,t)?a:mr.current!==null?(e=Bc(e,a,i),dn(e,t)||(wt=!0),e):(sa&42)===0||(sa&1073741824)!==0&&(Be&261930)===0?(wt=!0,e.memoizedState=a):(e=hg(),Ae.lanes|=e,qa|=e,t)}function pp(e,t,a,i,u){var f=_.p;_.p=f!==0&&8>f?f:8;var b=k.T,E={};k.T=E,Yc(e,!1,t,a);try{var O=u(),P=k.S;if(P!==null&&P(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var W=US(O,i);Ci(e,t,W,yn(e))}else Ci(e,t,i,yn(e))}catch(ae){Ci(e,t,{then:function(){},status:"rejected",reason:ae},yn())}finally{_.p=f,b!==null&&E.types!==null&&(b.types=E.types),k.T=b}}function GS(){}function Hc(e,t,a,i){if(e.tag!==5)throw Error(o(476));var u=gp(e).queue;pp(e,u,t,ee,a===null?GS:function(){return vp(e),a(i)})}function gp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vp(e){var t=gp(e);t.next===null&&(t=e.alternate.memoizedState),Ci(e,t.next.queue,{},yn())}function Vc(){return Bt(Yi)}function yp(){return bt().memoizedState}function bp(){return bt().memoizedState}function IS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=yn();e=La(a);var i=Ua(t,e,a);i!==null&&(rn(i,t,a),bi(i,t,a)),t={cache:pc()},e.payload=t;return}t=t.return}}function XS(e,t,a){var i=yn();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Jo(e)?Sp(t,a):(a=lc(e,t,a,i),a!==null&&(rn(a,e,i),Ep(a,t,i)))}function xp(e,t,a){var i=yn();Ci(e,t,a,i)}function Ci(e,t,a,i){var u={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Jo(e))Sp(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var b=t.lastRenderedState,E=f(b,a);if(u.hasEagerState=!0,u.eagerState=E,dn(E,b))return Do(e,t,u,0),et===null&&ko(),!1}catch{}finally{}if(a=lc(e,t,u,i),a!==null)return rn(a,e,i),Ep(a,t,i),!0}return!1}function Yc(e,t,a,i){if(i={lane:2,revertLane:xf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Jo(e)){if(t)throw Error(o(479))}else t=lc(e,a,i,2),t!==null&&rn(t,e,2)}function Jo(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Sp(e,t){hr=Ko=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ep(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ft(e,a)}}var Ri={readContext:Bt,use:$o,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useLayoutEffect:gt,useInsertionEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useSyncExternalStore:gt,useId:gt,useHostTransitionStatus:gt,useFormState:gt,useActionState:gt,useOptimistic:gt,useMemoCache:gt,useCacheRefresh:gt};Ri.useEffectEvent=gt;var wp={readContext:Bt,use:$o,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:ip,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Fo(4194308,4,cp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Fo(4194308,4,e,t)},useInsertionEffect:function(e,t){Fo(4,2,e,t)},useMemo:function(e,t){var a=Qt();t=t===void 0?null:t;var i=e();if(Tl){fn(!0);try{e()}finally{fn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Qt();if(a!==void 0){var u=a(t);if(Tl){fn(!0);try{a(t)}finally{fn(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=XS.bind(null,Ae,e),[i.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,a=xp.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uc,useDeferredValue:function(e,t){var a=Qt();return Bc(a,e,t)},useTransition:function(){var e=zc(!1);return e=pp.bind(null,Ae,e.queue,!0,!1),Qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ae,u=Qt();if(Ve){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),et===null)throw Error(o(349));(Be&127)!==0||Ih(i,t,a)}u.memoizedState=a;var f={value:a,getSnapshot:t};return u.queue=f,ip(Kh.bind(null,i,f,e),[e]),i.flags|=2048,gr(9,{destroy:void 0},Xh.bind(null,i,f,a,t),null),a},useId:function(){var e=Qt(),t=et.identifierPrefix;if(Ve){var a=Xn,i=In;a=(i&~(1<<32-At(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Po++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=BS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Vc,useFormState:tp,useActionState:tp,useOptimistic:function(e){var t=Qt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Yc.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:Oc,useCacheRefresh:function(){return Qt().memoizedState=IS.bind(null,Ae)},useEffectEvent:function(e){var t=Qt(),a={impl:e};return t.memoizedState=a,function(){if((Xe&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},qc={readContext:Bt,use:$o,useCallback:dp,useContext:Bt,useEffect:Lc,useImperativeHandle:fp,useInsertionEffect:sp,useLayoutEffect:up,useMemo:mp,useReducer:Zo,useRef:rp,useState:function(){return Zo(ua)},useDebugValue:Uc,useDeferredValue:function(e,t){var a=bt();return hp(a,Ze.memoizedState,e,t)},useTransition:function(){var e=Zo(ua)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:wi(e),t]},useSyncExternalStore:Gh,useId:yp,useHostTransitionStatus:Vc,useFormState:np,useActionState:np,useOptimistic:function(e,t){var a=bt();return $h(a,Ze,e,t)},useMemoCache:Oc,useCacheRefresh:bp};qc.useEffectEvent=op;var Cp={readContext:Bt,use:$o,useCallback:dp,useContext:Bt,useEffect:Lc,useImperativeHandle:fp,useInsertionEffect:sp,useLayoutEffect:up,useMemo:mp,useReducer:Dc,useRef:rp,useState:function(){return Dc(ua)},useDebugValue:Uc,useDeferredValue:function(e,t){var a=bt();return Ze===null?Bc(a,e,t):hp(a,Ze.memoizedState,e,t)},useTransition:function(){var e=Dc(ua)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:wi(e),t]},useSyncExternalStore:Gh,useId:yp,useHostTransitionStatus:Vc,useFormState:lp,useActionState:lp,useOptimistic:function(e,t){var a=bt();return Ze!==null?$h(a,Ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Oc,useCacheRefresh:bp};Cp.useEffectEvent=op;function Gc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ic={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=yn(),u=La(i);u.payload=t,a!=null&&(u.callback=a),t=Ua(e,u,i),t!==null&&(rn(t,e,i),bi(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=yn(),u=La(i);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Ua(e,u,i),t!==null&&(rn(t,e,i),bi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=yn(),i=La(a);i.tag=2,t!=null&&(i.callback=t),t=Ua(e,i,a),t!==null&&(rn(t,e,a),bi(t,e,a))}};function Rp(e,t,a,i,u,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,b):t.prototype&&t.prototype.isPureReactComponent?!fi(a,i)||!fi(u,f):!0}function Tp(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Ic.enqueueReplaceState(t,t.state,null)}function Nl(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function Np(e){Oo(e)}function jp(e){console.error(e)}function Ap(e){Oo(e)}function es(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Mp(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Xc(e,t,a){return a=La(a),a.tag=3,a.payload={element:null},a.callback=function(){es(e,t)},a}function Op(e){return e=La(e),e.tag=3,e}function kp(e,t,a,i){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=i.value;e.payload=function(){return u(f)},e.callback=function(){Mp(t,a,i)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Mp(t,a,i),typeof u!="function"&&(Ga===null?Ga=new Set([this]):Ga.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function KS(e,t,a,i,u){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&sr(t,a,u,!0),a=hn.current,a!==null){switch(a.tag){case 31:case 13:return jn===null?ds():a.alternate===null&&vt===0&&(vt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,i===Yo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),vf(e,i,u)),!1;case 22:return a.flags|=65536,i===Yo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),vf(e,i,u)),!1}throw Error(o(435,a.tag))}return vf(e,i,u),ds(),!1}if(Ve)return t=hn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==cc&&(e=Error(o(422),{cause:i}),hi(Cn(e,a)))):(i!==cc&&(t=Error(o(423),{cause:i}),hi(Cn(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=Cn(i,a),u=Xc(e.stateNode,i,u),Sc(e,u),vt!==4&&(vt=2)),!1;var f=Error(o(520),{cause:i});if(f=Cn(f,a),Di===null?Di=[f]:Di.push(f),vt!==4&&(vt=2),t===null)return!0;i=Cn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Xc(a.stateNode,i,e),Sc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ga===null||!Ga.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Op(u),kp(u,e,a,i),Sc(a,u),!1}a=a.return}while(a!==null);return!1}var Kc=Error(o(461)),wt=!1;function Ht(e,t,a,i){t.child=e===null?Lh(t,null,a,i):Rl(t,e.child,a,i)}function Dp(e,t,a,i,u){a=a.render;var f=t.ref;if("ref"in i){var b={};for(var E in i)E!=="ref"&&(b[E]=i[E])}else b=i;return Sl(t),i=Nc(e,t,a,b,f,u),E=jc(),e!==null&&!wt?(Ac(e,t,u),ca(e,t,u)):(Ve&&E&&sc(t),t.flags|=1,Ht(e,t,i,u),t.child)}function zp(e,t,a,i,u){if(e===null){var f=a.type;return typeof f=="function"&&!rc(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,_p(e,t,f,i,u)):(e=_o(a.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!ef(e,u)){var b=f.memoizedProps;if(a=a.compare,a=a!==null?a:fi,a(b,i)&&e.ref===t.ref)return ca(e,t,u)}return t.flags|=1,e=la(f,i),e.ref=t.ref,e.return=t,t.child=e}function _p(e,t,a,i,u){if(e!==null){var f=e.memoizedProps;if(fi(f,i)&&e.ref===t.ref)if(wt=!1,t.pendingProps=i=f,ef(e,u))(e.flags&131072)!==0&&(wt=!0);else return t.lanes=e.lanes,ca(e,t,u)}return Pc(e,t,a,i,u)}function Lp(e,t,a,i){var u=i.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~f}else i=0,t.child=null;return Up(e,t,f,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ho(t,f!==null?f.cachePool:null),f!==null?Hh(t,f):wc(),Vh(t);else return i=t.lanes=536870912,Up(e,t,f!==null?f.baseLanes|a:a,a,i)}else f!==null?(Ho(t,f.cachePool),Hh(t,f),Ha(),t.memoizedState=null):(e!==null&&Ho(t,null),wc(),Ha());return Ht(e,t,u,a),t.child}function Ti(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Up(e,t,a,i,u){var f=vc();return f=f===null?null:{parent:St._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&Ho(t,null),wc(),Vh(t),e!==null&&sr(e,t,i,!0),t.childLanes=u,null}function ts(e,t){return t=as({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bp(e,t,a){return Rl(t,e.child,null,a),e=ts(t,t.pendingProps),e.flags|=2,pn(t),t.memoizedState=null,e}function PS(e,t,a){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ve){if(i.mode==="hidden")return e=ts(t,i),t.lanes=536870912,Ti(null,e);if(Rc(t),(e=at)?(e=Zg(e,Nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:In,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},a=Sh(e),a.return=t,t.child=a,Ut=t,at=null)):e=null,e===null)throw Da(t);return t.lanes=536870912,null}return ts(t,i)}var f=e.memoizedState;if(f!==null){var b=f.dehydrated;if(Rc(t),u)if(t.flags&256)t.flags&=-257,t=Bp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(wt||sr(e,t,a,!1),u=(a&e.childLanes)!==0,wt||u){if(i=et,i!==null&&(b=Wt(i,a),b!==0&&b!==f.retryLane))throw f.retryLane=b,vl(e,b),rn(i,e,b),Kc;ds(),t=Bp(e,t,a)}else e=f.treeContext,at=An(b.nextSibling),Ut=t,Ve=!0,ka=null,Nn=!1,e!==null&&Ch(t,e),t=ts(t,i),t.flags|=4096;return t}return e=la(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ns(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Pc(e,t,a,i,u){return Sl(t),a=Nc(e,t,a,i,void 0,u),i=jc(),e!==null&&!wt?(Ac(e,t,u),ca(e,t,u)):(Ve&&i&&sc(t),t.flags|=1,Ht(e,t,a,u),t.child)}function Hp(e,t,a,i,u,f){return Sl(t),t.updateQueue=null,a=qh(t,i,a,u),Yh(e),i=jc(),e!==null&&!wt?(Ac(e,t,f),ca(e,t,f)):(Ve&&i&&sc(t),t.flags|=1,Ht(e,t,a,f),t.child)}function Vp(e,t,a,i,u){if(Sl(t),t.stateNode===null){var f=lr,b=a.contextType;typeof b=="object"&&b!==null&&(f=Bt(b)),f=new a(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Ic,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},bc(t),b=a.contextType,f.context=typeof b=="object"&&b!==null?Bt(b):lr,f.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Gc(t,a,b,i),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&Ic.enqueueReplaceState(f,f.state,null),Si(t,i,f,u),xi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var E=t.memoizedProps,O=Nl(a,E);f.props=O;var P=f.context,W=a.contextType;b=lr,typeof W=="object"&&W!==null&&(b=Bt(W));var ae=a.getDerivedStateFromProps;W=typeof ae=="function"||typeof f.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,W||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(E||P!==b)&&Tp(t,f,i,b),_a=!1;var Q=t.memoizedState;f.state=Q,Si(t,i,f,u),xi(),P=t.memoizedState,E||Q!==P||_a?(typeof ae=="function"&&(Gc(t,a,ae,i),P=t.memoizedState),(O=_a||Rp(t,a,O,i,Q,P,b))?(W||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=P),f.props=i,f.state=P,f.context=b,i=O):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,xc(e,t),b=t.memoizedProps,W=Nl(a,b),f.props=W,ae=t.pendingProps,Q=f.context,P=a.contextType,O=lr,typeof P=="object"&&P!==null&&(O=Bt(P)),E=a.getDerivedStateFromProps,(P=typeof E=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==ae||Q!==O)&&Tp(t,f,i,O),_a=!1,Q=t.memoizedState,f.state=Q,Si(t,i,f,u),xi();var Z=t.memoizedState;b!==ae||Q!==Z||_a||e!==null&&e.dependencies!==null&&Uo(e.dependencies)?(typeof E=="function"&&(Gc(t,a,E,i),Z=t.memoizedState),(W=_a||Rp(t,a,W,i,Q,Z,O)||e!==null&&e.dependencies!==null&&Uo(e.dependencies))?(P||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,Z,O),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,Z,O)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Z),f.props=i,f.state=Z,f.context=O,i=W):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,ns(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Rl(t,e.child,null,u),t.child=Rl(t,null,a,u)):Ht(e,t,a,u),t.memoizedState=f.state,e=t.child):e=ca(e,t,u),e}function Yp(e,t,a,i){return bl(),t.flags|=256,Ht(e,t,a,i),t.child}var Qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $c(e){return{baseLanes:e,cachePool:Mh()}}function Zc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=vn),e}function qp(e,t,a){var i=t.pendingProps,u=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),b&&(u=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ve){if(u?Ba(t):Ha(),(e=at)?(e=Zg(e,Nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:In,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},a=Sh(e),a.return=t,t.child=a,Ut=t,at=null)):e=null,e===null)throw Da(t);return Df(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,u?(Ha(),u=t.mode,E=as({mode:"hidden",children:E},u),i=yl(i,u,a,null),E.return=t,i.return=t,E.sibling=i,t.child=E,i=t.child,i.memoizedState=$c(a),i.childLanes=Zc(e,b,a),t.memoizedState=Qc,Ti(null,i)):(Ba(t),Fc(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(f)t.flags&256?(Ba(t),t.flags&=-257,t=Wc(e,t,a)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),E=i.fallback,u=t.mode,i=as({mode:"visible",children:i.children},u),E=yl(E,u,a,null),E.flags|=2,i.return=t,E.return=t,i.sibling=E,t.child=i,Rl(t,e.child,null,a),i=t.child,i.memoizedState=$c(a),i.childLanes=Zc(e,b,a),t.memoizedState=Qc,t=Ti(null,i));else if(Ba(t),Df(E)){if(b=E.nextSibling&&E.nextSibling.dataset,b)var P=b.dgst;b=P,i=Error(o(419)),i.stack="",i.digest=b,hi({value:i,source:null,stack:null}),t=Wc(e,t,a)}else if(wt||sr(e,t,a,!1),b=(a&e.childLanes)!==0,wt||b){if(b=et,b!==null&&(i=Wt(b,a),i!==0&&i!==O.retryLane))throw O.retryLane=i,vl(e,i),rn(b,e,i),Kc;kf(E)||ds(),t=Wc(e,t,a)}else kf(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,at=An(E.nextSibling),Ut=t,Ve=!0,ka=null,Nn=!1,e!==null&&Ch(t,e),t=Fc(t,i.children),t.flags|=4096);return t}return u?(Ha(),E=i.fallback,u=t.mode,O=e.child,P=O.sibling,i=la(O,{mode:"hidden",children:i.children}),i.subtreeFlags=O.subtreeFlags&65011712,P!==null?E=la(P,E):(E=yl(E,u,a,null),E.flags|=2),E.return=t,i.return=t,i.sibling=E,t.child=i,Ti(null,i),i=t.child,E=e.child.memoizedState,E===null?E=$c(a):(u=E.cachePool,u!==null?(O=St._currentValue,u=u.parent!==O?{parent:O,pool:O}:u):u=Mh(),E={baseLanes:E.baseLanes|a,cachePool:u}),i.memoizedState=E,i.childLanes=Zc(e,b,a),t.memoizedState=Qc,Ti(e.child,i)):(Ba(t),a=e.child,e=a.sibling,a=la(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=a,t.memoizedState=null,a)}function Fc(e,t){return t=as({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function as(e,t){return e=mn(22,e,null,t),e.lanes=0,e}function Wc(e,t,a){return Rl(t,e.child,null,a),e=Fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gp(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),mc(e.return,t,a)}function Jc(e,t,a,i,u,f){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:u,treeForkCount:f}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=i,b.tail=a,b.tailMode=u,b.treeForkCount=f)}function Ip(e,t,a){var i=t.pendingProps,u=i.revealOrder,f=i.tail;i=i.children;var b=yt.current,E=(b&2)!==0;if(E?(b=b&1|2,t.flags|=128):b&=1,q(yt,b),Ht(e,t,i,a),i=Ve?mi:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gp(e,a,t);else if(e.tag===19)Gp(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&Xo(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Jc(t,!1,u,a,f,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Xo(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Jc(t,!0,a,null,f,i);break;case"together":Jc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function ca(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(sr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=la(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=la(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ef(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Uo(e)))}function QS(e,t,a){switch(t.tag){case 3:se(t,t.stateNode.containerInfo),za(t,St,e.memoizedState.cache),bl();break;case 27:case 5:Ye(t);break;case 4:se(t,t.stateNode.containerInfo);break;case 10:za(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Rc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Ba(t),t.flags|=128,null):(a&t.child.childLanes)!==0?qp(e,t,a):(Ba(t),e=ca(e,t,a),e!==null?e.sibling:null);Ba(t);break;case 19:var u=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(sr(e,t,a,!1),i=(a&t.childLanes)!==0),u){if(i)return Ip(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),q(yt,yt.current),i)break;return null;case 22:return t.lanes=0,Lp(e,t,a,t.pendingProps);case 24:za(t,St,e.memoizedState.cache)}return ca(e,t,a)}function Xp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)wt=!0;else{if(!ef(e,a)&&(t.flags&128)===0)return wt=!1,QS(e,t,a);wt=(e.flags&131072)!==0}else wt=!1,Ve&&(t.flags&1048576)!==0&&wh(t,mi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=wl(t.elementType),t.type=e,typeof e=="function")rc(e)?(i=Nl(e,i),t.tag=1,t=Vp(null,t,e,i,a)):(t.tag=0,t=Pc(null,t,e,i,a));else{if(e!=null){var u=e.$$typeof;if(u===M){t.tag=11,t=Dp(null,t,e,i,a);break e}else if(u===V){t.tag=14,t=zp(null,t,e,i,a);break e}}throw t=ce(e)||e,Error(o(306,t,""))}}return t;case 0:return Pc(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,u=Nl(i,t.pendingProps),Vp(e,t,i,u,a);case 3:e:{if(se(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var f=t.memoizedState;u=f.element,xc(e,t),Si(t,i,null,a);var b=t.memoizedState;if(i=b.cache,za(t,St,i),i!==f.cache&&hc(t,[St],a,!0),xi(),i=b.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Yp(e,t,i,a);break e}else if(i!==u){u=Cn(Error(o(424)),t),hi(u),t=Yp(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(at=An(e.firstChild),Ut=t,Ve=!0,ka=null,Nn=!0,a=Lh(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(bl(),i===u){t=ca(e,t,a);break e}Ht(e,t,i,a)}t=t.child}return t;case 26:return ns(e,t),e===null?(a=nv(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ve||(a=t.type,e=t.pendingProps,i=bs(re.current).createElement(a),i[Lt]=t,i[Jt]=e,Vt(i,a,e),Ot(i),t.stateNode=i):t.memoizedState=nv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ye(t),e===null&&Ve&&(i=t.stateNode=Jg(t.type,t.pendingProps,re.current),Ut=t,Nn=!0,u=at,Pa(t.type)?(zf=u,at=An(i.firstChild)):at=u),Ht(e,t,t.pendingProps.children,a),ns(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ve&&((u=i=at)&&(i=C1(i,t.type,t.pendingProps,Nn),i!==null?(t.stateNode=i,Ut=t,at=An(i.firstChild),Nn=!1,u=!0):u=!1),u||Da(t)),Ye(t),u=t.type,f=t.pendingProps,b=e!==null?e.memoizedProps:null,i=f.children,Af(u,f)?i=null:b!==null&&Af(u,b)&&(t.flags|=32),t.memoizedState!==null&&(u=Nc(e,t,HS,null,null,a),Yi._currentValue=u),ns(e,t),Ht(e,t,i,a),t.child;case 6:return e===null&&Ve&&((e=a=at)&&(a=R1(a,t.pendingProps,Nn),a!==null?(t.stateNode=a,Ut=t,at=null,e=!0):e=!1),e||Da(t)),null;case 13:return qp(e,t,a);case 4:return se(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Rl(t,null,i,a):Ht(e,t,i,a),t.child;case 11:return Dp(e,t,t.type,t.pendingProps,a);case 7:return Ht(e,t,t.pendingProps,a),t.child;case 8:return Ht(e,t,t.pendingProps.children,a),t.child;case 12:return Ht(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,za(t,t.type,i.value),Ht(e,t,i.children,a),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Sl(t),u=Bt(u),i=i(u),t.flags|=1,Ht(e,t,i,a),t.child;case 14:return zp(e,t,t.type,t.pendingProps,a);case 15:return _p(e,t,t.type,t.pendingProps,a);case 19:return Ip(e,t,a);case 31:return PS(e,t,a);case 22:return Lp(e,t,a,t.pendingProps);case 24:return Sl(t),i=Bt(St),e===null?(u=vc(),u===null&&(u=et,f=pc(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),t.memoizedState={parent:i,cache:u},bc(t),za(t,St,u)):((e.lanes&a)!==0&&(xc(e,t),Si(t,null,null,a),xi()),u=e.memoizedState,f=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),za(t,St,i)):(i=f.cache,za(t,St,i),i!==u.cache&&hc(t,[St],a,!0))),Ht(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function fa(e){e.flags|=4}function tf(e,t,a,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(yg())e.flags|=8192;else throw Cl=Yo,yc}else e.flags&=-16777217}function Kp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ov(t))if(yg())e.flags|=8192;else throw Cl=Yo,yc}function ls(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gt():536870912,e.lanes|=t,xr|=t)}function Ni(e,t){if(!Ve)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function $S(e,t,a){var i=t.pendingProps;switch(uc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),oa(St),he(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(or(t)?fa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fc())),lt(t),null;case 26:var u=t.type,f=t.memoizedState;return e===null?(fa(t),f!==null?(lt(t),Kp(t,f)):(lt(t),tf(t,u,null,i,a))):f?f!==e.memoizedState?(fa(t),lt(t),Kp(t,f)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&fa(t),lt(t),tf(t,u,e,i,a)),null;case 27:if(ot(t),a=re.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fa(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return lt(t),null}e=$.current,or(t)?Rh(t):(e=Jg(u,i,a),t.stateNode=e,fa(t))}return lt(t),null;case 5:if(ot(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fa(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return lt(t),null}if(f=$.current,or(t))Rh(t);else{var b=bs(re.current);switch(f){case 1:f=b.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:f=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":f=b.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":f=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":f=b.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof i.is=="string"?b.createElement("select",{is:i.is}):b.createElement("select"),i.multiple?f.multiple=!0:i.size&&(f.size=i.size);break;default:f=typeof i.is=="string"?b.createElement(u,{is:i.is}):b.createElement(u)}}f[Lt]=t,f[Jt]=i;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)f.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=f;e:switch(Vt(f,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&fa(t)}}return lt(t),tf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&fa(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,or(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,u=Ut,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||qg(e.nodeValue,a)),e||Da(t,!0)}else e=bs(e).createTextNode(i),e[Lt]=t,t.stateNode=e}return lt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=or(t),a!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Lt]=t}else bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else a=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(pn(t),t):(pn(t),null);if((t.flags&128)!==0)throw Error(o(558))}return lt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=or(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Lt]=t}else bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else u=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(pn(t),t):(pn(t),null)}return pn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==u&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ls(t,t.updateQueue),lt(t),null);case 4:return he(),e===null&&Cf(t.stateNode.containerInfo),lt(t),null;case 10:return oa(t.type),lt(t),null;case 19:if(A(yt),i=t.memoizedState,i===null)return lt(t),null;if(u=(t.flags&128)!==0,f=i.rendering,f===null)if(u)Ni(i,!1);else{if(vt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Xo(e),f!==null){for(t.flags|=128,Ni(i,!1),e=f.updateQueue,t.updateQueue=e,ls(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)xh(a,e),a=a.sibling;return q(yt,yt.current&1|2),Ve&&ra(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&De()>us&&(t.flags|=128,u=!0,Ni(i,!1),t.lanes=4194304)}else{if(!u)if(e=Xo(f),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,ls(t,e),Ni(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!Ve)return lt(t),null}else 2*De()-i.renderingStartTime>us&&a!==536870912&&(t.flags|=128,u=!0,Ni(i,!1),t.lanes=4194304);i.isBackwards?(f.sibling=t.child,t.child=f):(e=i.last,e!==null?e.sibling=f:t.child=f,i.last=f)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=De(),e.sibling=null,a=yt.current,q(yt,u?a&1|2:a&1),Ve&&ra(t,i.treeForkCount),e):(lt(t),null);case 22:case 23:return pn(t),Cc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),a=t.updateQueue,a!==null&&ls(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&A(El),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),oa(St),lt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function ZS(e,t){switch(uc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(St),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ot(t),null;case 31:if(t.memoizedState!==null){if(pn(t),t.alternate===null)throw Error(o(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(yt),null;case 4:return he(),null;case 10:return oa(t.type),null;case 22:case 23:return pn(t),Cc(),e!==null&&A(El),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(St),null;case 25:return null;default:return null}}function Pp(e,t){switch(uc(t),t.tag){case 3:oa(St),he();break;case 26:case 27:case 5:ot(t);break;case 4:he();break;case 31:t.memoizedState!==null&&pn(t);break;case 13:pn(t);break;case 19:A(yt);break;case 10:oa(t.type);break;case 22:case 23:pn(t),Cc(),e!==null&&A(El);break;case 24:oa(St)}}function ji(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){i=void 0;var f=a.create,b=a.inst;i=f(),b.destroy=i}a=a.next}while(a!==u)}}catch(E){Qe(t,t.return,E)}}function Va(e,t,a){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var f=u.next;i=f;do{if((i.tag&e)===e){var b=i.inst,E=b.destroy;if(E!==void 0){b.destroy=void 0,u=t;var O=a,P=E;try{P()}catch(W){Qe(u,O,W)}}}i=i.next}while(i!==f)}}catch(W){Qe(t,t.return,W)}}function Qp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Bh(t,a)}catch(i){Qe(e,e.return,i)}}}function $p(e,t,a){a.props=Nl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Qe(e,t,i)}}function Ai(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(u){Qe(e,t,u)}}function Kn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(u){Qe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Qe(e,t,u)}else a.current=null}function Zp(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(u){Qe(e,e.return,u)}}function nf(e,t,a){try{var i=e.stateNode;y1(i,e.type,a,t),i[Jt]=t}catch(u){Qe(e,e.return,u)}}function Fp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pa(e.type)||e.tag===4}function af(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Pa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lf(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=na));else if(i!==4&&(i===27&&Pa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(lf(e,t,a),e=e.sibling;e!==null;)lf(e,t,a),e=e.sibling}function rs(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Pa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(rs(e,t,a),e=e.sibling;e!==null;)rs(e,t,a),e=e.sibling}function Wp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Vt(t,i,a),t[Lt]=e,t[Jt]=a}catch(f){Qe(e,e.return,f)}}var da=!1,Ct=!1,rf=!1,Jp=typeof WeakSet=="function"?WeakSet:Set,kt=null;function FS(e,t){if(e=e.containerInfo,Nf=Ts,e=fh(e),Wu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var b=0,E=-1,O=-1,P=0,W=0,ae=e,Q=null;t:for(;;){for(var Z;ae!==a||u!==0&&ae.nodeType!==3||(E=b+u),ae!==f||i!==0&&ae.nodeType!==3||(O=b+i),ae.nodeType===3&&(b+=ae.nodeValue.length),(Z=ae.firstChild)!==null;)Q=ae,ae=Z;for(;;){if(ae===e)break t;if(Q===a&&++P===u&&(E=b),Q===f&&++W===i&&(O=b),(Z=ae.nextSibling)!==null)break;ae=Q,Q=ae.parentNode}ae=Z}a=E===-1||O===-1?null:{start:E,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(jf={focusedElem:e,selectionRange:a},Ts=!1,kt=t;kt!==null;)if(t=kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,kt=e;else for(;kt!==null;){switch(t=kt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,u=f.memoizedProps,f=f.memoizedState,i=a.stateNode;try{var pe=Nl(a.type,u);e=i.getSnapshotBeforeUpdate(pe,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){Qe(a,a.return,Ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Of(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Of(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,kt=e;break}kt=t.return}}function eg(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ha(e,a),i&4&&ji(5,a);break;case 1:if(ha(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Qe(a,a.return,b)}else{var u=Nl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Qe(a,a.return,b)}}i&64&&Qp(a),i&512&&Ai(a,a.return);break;case 3:if(ha(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Bh(e,t)}catch(b){Qe(a,a.return,b)}}break;case 27:t===null&&i&4&&Wp(a);case 26:case 5:ha(e,a),t===null&&i&4&&Zp(a),i&512&&Ai(a,a.return);break;case 12:ha(e,a);break;case 31:ha(e,a),i&4&&ag(e,a);break;case 13:ha(e,a),i&4&&lg(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=i1.bind(null,a),T1(e,a))));break;case 22:if(i=a.memoizedState!==null||da,!i){t=t!==null&&t.memoizedState!==null||Ct,u=da;var f=Ct;da=i,(Ct=t)&&!f?pa(e,a,(a.subtreeFlags&8772)!==0):ha(e,a),da=u,Ct=f}break;case 30:break;default:ha(e,a)}}function tg(e){var t=e.alternate;t!==null&&(e.alternate=null,tg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_u(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ut=null,tn=!1;function ma(e,t,a){for(a=a.child;a!==null;)ng(e,t,a),a=a.sibling}function ng(e,t,a){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(cn,a)}catch{}switch(a.tag){case 26:Ct||Kn(a,t),ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ct||Kn(a,t);var i=ut,u=tn;Pa(a.type)&&(ut=a.stateNode,tn=!1),ma(e,t,a),Bi(a.stateNode),ut=i,tn=u;break;case 5:Ct||Kn(a,t);case 6:if(i=ut,u=tn,ut=null,ma(e,t,a),ut=i,tn=u,ut!==null)if(tn)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(a.stateNode)}catch(f){Qe(a,t,f)}else try{ut.removeChild(a.stateNode)}catch(f){Qe(a,t,f)}break;case 18:ut!==null&&(tn?(e=ut,Qg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),jr(e)):Qg(ut,a.stateNode));break;case 4:i=ut,u=tn,ut=a.stateNode.containerInfo,tn=!0,ma(e,t,a),ut=i,tn=u;break;case 0:case 11:case 14:case 15:Va(2,a,t),Ct||Va(4,a,t),ma(e,t,a);break;case 1:Ct||(Kn(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&$p(a,t,i)),ma(e,t,a);break;case 21:ma(e,t,a);break;case 22:Ct=(i=Ct)||a.memoizedState!==null,ma(e,t,a),Ct=i;break;default:ma(e,t,a)}}function ag(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{jr(e)}catch(a){Qe(t,t.return,a)}}}function lg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{jr(e)}catch(a){Qe(t,t.return,a)}}function WS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jp),t;default:throw Error(o(435,e.tag))}}function is(e,t){var a=WS(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var u=o1.bind(null,e,i);i.then(u,u)}})}function nn(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],f=e,b=t,E=b;e:for(;E!==null;){switch(E.tag){case 27:if(Pa(E.type)){ut=E.stateNode,tn=!1;break e}break;case 5:ut=E.stateNode,tn=!1;break e;case 3:case 4:ut=E.stateNode.containerInfo,tn=!0;break e}E=E.return}if(ut===null)throw Error(o(160));ng(f,b,u),ut=null,tn=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rg(t,e),t=t.sibling}var Un=null;function rg(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:nn(t,e),an(e),i&4&&(Va(3,e,e.return),ji(3,e),Va(5,e,e.return));break;case 1:nn(t,e),an(e),i&512&&(Ct||a===null||Kn(a,a.return)),i&64&&da&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var u=Un;if(nn(t,e),an(e),i&512&&(Ct||a===null||Kn(a,a.return)),i&4){var f=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":f=u.getElementsByTagName("title")[0],(!f||f[ni]||f[Lt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(i),u.head.insertBefore(f,u.querySelector("head > title"))),Vt(f,i,a),f[Lt]=e,Ot(f),i=f;break e;case"link":var b=rv("link","href",u).get(i+(a.href||""));if(b){for(var E=0;E<b.length;E++)if(f=b[E],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(E,1);break t}}f=u.createElement(i),Vt(f,i,a),u.head.appendChild(f);break;case"meta":if(b=rv("meta","content",u).get(i+(a.content||""))){for(E=0;E<b.length;E++)if(f=b[E],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(E,1);break t}}f=u.createElement(i),Vt(f,i,a),u.head.appendChild(f);break;default:throw Error(o(468,i))}f[Lt]=e,Ot(f),i=f}e.stateNode=i}else iv(u,e.type,e.stateNode);else e.stateNode=lv(u,i,e.memoizedProps);else f!==i?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,i===null?iv(u,e.type,e.stateNode):lv(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&nf(e,e.memoizedProps,a.memoizedProps)}break;case 27:nn(t,e),an(e),i&512&&(Ct||a===null||Kn(a,a.return)),a!==null&&i&4&&nf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(nn(t,e),an(e),i&512&&(Ct||a===null||Kn(a,a.return)),e.flags&32){u=e.stateNode;try{Fl(u,"")}catch(pe){Qe(e,e.return,pe)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,nf(e,u,a!==null?a.memoizedProps:u)),i&1024&&(rf=!0);break;case 6:if(nn(t,e),an(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(pe){Qe(e,e.return,pe)}}break;case 3:if(Es=null,u=Un,Un=xs(t.containerInfo),nn(t,e),Un=u,an(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{jr(t.containerInfo)}catch(pe){Qe(e,e.return,pe)}rf&&(rf=!1,ig(e));break;case 4:i=Un,Un=xs(e.stateNode.containerInfo),nn(t,e),an(e),Un=i;break;case 12:nn(t,e),an(e);break;case 31:nn(t,e),an(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,is(e,i)));break;case 13:nn(t,e),an(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ss=De()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,is(e,i)));break;case 22:u=e.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,P=da,W=Ct;if(da=P||u,Ct=W||O,nn(t,e),Ct=W,da=P,an(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||O||da||Ct||jl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){O=a=t;try{if(f=O.stateNode,u)b=f.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{E=O.stateNode;var ae=O.memoizedProps.style,Q=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(pe){Qe(O,O.return,pe)}}}else if(t.tag===6){if(a===null){O=t;try{O.stateNode.nodeValue=u?"":O.memoizedProps}catch(pe){Qe(O,O.return,pe)}}}else if(t.tag===18){if(a===null){O=t;try{var Z=O.stateNode;u?$g(Z,!0):$g(O.stateNode,!1)}catch(pe){Qe(O,O.return,pe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,is(e,a))));break;case 19:nn(t,e),an(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,is(e,i)));break;case 30:break;case 21:break;default:nn(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Fp(i)){a=i;break}i=i.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,f=af(e);rs(e,f,u);break;case 5:var b=a.stateNode;a.flags&32&&(Fl(b,""),a.flags&=-33);var E=af(e);rs(e,E,b);break;case 3:case 4:var O=a.stateNode.containerInfo,P=af(e);lf(e,P,O);break;default:throw Error(o(161))}}catch(W){Qe(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ig(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ig(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ha(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)eg(e,t.alternate,t),t=t.sibling}function jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Va(4,t,t.return),jl(t);break;case 1:Kn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&$p(t,t.return,a),jl(t);break;case 27:Bi(t.stateNode);case 26:case 5:Kn(t,t.return),jl(t);break;case 22:t.memoizedState===null&&jl(t);break;case 30:jl(t);break;default:jl(t)}e=e.sibling}}function pa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,f=t,b=f.flags;switch(f.tag){case 0:case 11:case 15:pa(u,f,a),ji(4,f);break;case 1:if(pa(u,f,a),i=f,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(P){Qe(i,i.return,P)}if(i=f,u=i.updateQueue,u!==null){var E=i.stateNode;try{var O=u.shared.hiddenCallbacks;if(O!==null)for(u.shared.hiddenCallbacks=null,u=0;u<O.length;u++)Uh(O[u],E)}catch(P){Qe(i,i.return,P)}}a&&b&64&&Qp(f),Ai(f,f.return);break;case 27:Wp(f);case 26:case 5:pa(u,f,a),a&&i===null&&b&4&&Zp(f),Ai(f,f.return);break;case 12:pa(u,f,a);break;case 31:pa(u,f,a),a&&b&4&&ag(u,f);break;case 13:pa(u,f,a),a&&b&4&&lg(u,f);break;case 22:f.memoizedState===null&&pa(u,f,a),Ai(f,f.return);break;case 30:break;default:pa(u,f,a)}t=t.sibling}}function of(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&pi(a))}function sf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pi(e))}function Bn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)og(e,t,a,i),t=t.sibling}function og(e,t,a,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Bn(e,t,a,i),u&2048&&ji(9,t);break;case 1:Bn(e,t,a,i);break;case 3:Bn(e,t,a,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pi(e)));break;case 12:if(u&2048){Bn(e,t,a,i),e=t.stateNode;try{var f=t.memoizedProps,b=f.id,E=f.onPostCommit;typeof E=="function"&&E(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){Qe(t,t.return,O)}}else Bn(e,t,a,i);break;case 31:Bn(e,t,a,i);break;case 13:Bn(e,t,a,i);break;case 23:break;case 22:f=t.stateNode,b=t.alternate,t.memoizedState!==null?f._visibility&2?Bn(e,t,a,i):Mi(e,t):f._visibility&2?Bn(e,t,a,i):(f._visibility|=2,vr(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&of(b,t);break;case 24:Bn(e,t,a,i),u&2048&&sf(t.alternate,t);break;default:Bn(e,t,a,i)}}function vr(e,t,a,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,b=t,E=a,O=i,P=b.flags;switch(b.tag){case 0:case 11:case 15:vr(f,b,E,O,u),ji(8,b);break;case 23:break;case 22:var W=b.stateNode;b.memoizedState!==null?W._visibility&2?vr(f,b,E,O,u):Mi(f,b):(W._visibility|=2,vr(f,b,E,O,u)),u&&P&2048&&of(b.alternate,b);break;case 24:vr(f,b,E,O,u),u&&P&2048&&sf(b.alternate,b);break;default:vr(f,b,E,O,u)}t=t.sibling}}function Mi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,u=i.flags;switch(i.tag){case 22:Mi(a,i),u&2048&&of(i.alternate,i);break;case 24:Mi(a,i),u&2048&&sf(i.alternate,i);break;default:Mi(a,i)}t=t.sibling}}var Oi=8192;function yr(e,t,a){if(e.subtreeFlags&Oi)for(e=e.child;e!==null;)sg(e,t,a),e=e.sibling}function sg(e,t,a){switch(e.tag){case 26:yr(e,t,a),e.flags&Oi&&e.memoizedState!==null&&B1(a,Un,e.memoizedState,e.memoizedProps);break;case 5:yr(e,t,a);break;case 3:case 4:var i=Un;Un=xs(e.stateNode.containerInfo),yr(e,t,a),Un=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Oi,Oi=16777216,yr(e,t,a),Oi=i):yr(e,t,a));break;default:yr(e,t,a)}}function ug(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];kt=i,fg(i,e)}ug(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cg(e),e=e.sibling}function cg(e){switch(e.tag){case 0:case 11:case 15:ki(e),e.flags&2048&&Va(9,e,e.return);break;case 3:ki(e);break;case 12:ki(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,os(e)):ki(e);break;default:ki(e)}}function os(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];kt=i,fg(i,e)}ug(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Va(8,t,t.return),os(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,os(t));break;default:os(t)}e=e.sibling}}function fg(e,t){for(;kt!==null;){var a=kt;switch(a.tag){case 0:case 11:case 15:Va(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:pi(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,kt=i;else e:for(a=e;kt!==null;){i=kt;var u=i.sibling,f=i.return;if(tg(i),i===a){kt=null;break e}if(u!==null){u.return=f,kt=u;break e}kt=f}}}var JS={getCacheForType:function(e){var t=Bt(St),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Bt(St).controller.signal}},e1=typeof WeakMap=="function"?WeakMap:Map,Xe=0,et=null,_e=null,Be=0,Pe=0,gn=null,Ya=!1,br=!1,uf=!1,ga=0,vt=0,qa=0,Al=0,cf=0,vn=0,xr=0,Di=null,ln=null,ff=!1,ss=0,dg=0,us=1/0,cs=null,Ga=null,Rt=0,Ia=null,Sr=null,va=0,df=0,mf=null,mg=null,zi=0,hf=null;function yn(){return(Xe&2)!==0&&Be!==0?Be&-Be:k.T!==null?xf():Du()}function hg(){if(vn===0)if((Be&536870912)===0||Ve){var e=Gl;Gl<<=1,(Gl&3932160)===0&&(Gl=262144),vn=e}else vn=536870912;return e=hn.current,e!==null&&(e.flags|=32),vn}function rn(e,t,a){(e===et&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Er(e,0),Xa(e,Be,vn,!1)),ft(e,a),((Xe&2)===0||e!==et)&&(e===et&&((Xe&2)===0&&(Al|=a),vt===4&&Xa(e,Be,vn,!1)),Pn(e))}function pg(e,t,a){if((Xe&6)!==0)throw Error(o(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||st(e,t),u=i?a1(e,t):gf(e,t,!0),f=i;do{if(u===0){br&&!i&&Xa(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!t1(a)){u=gf(e,t,!1),f=!1;continue}if(u===2){if(f=t,e.errorRecoveryDisabledLanes&f)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var E=e;u=Di;var O=E.current.memoizedState.isDehydrated;if(O&&(Er(E,b).flags|=256),b=gf(E,b,!1),b!==2){if(uf&&!O){E.errorRecoveryDisabledLanes|=f,Al|=f,u=4;break e}f=ln,ln=u,f!==null&&(ln===null?ln=f:ln.push.apply(ln,f))}u=b}if(f=!1,u!==2)continue}}if(u===1){Er(e,0),Xa(e,t,0,!0);break}e:{switch(i=e,f=u,f){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Xa(i,t,vn,!Ya);break e;case 2:ln=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=ss+300-De(),10<u)){if(Xa(i,t,vn,!Ya),Re(i,0,!0)!==0)break e;va=t,i.timeoutHandle=Kg(gg.bind(null,i,a,ln,cs,ff,t,vn,Al,xr,Ya,f,"Throttled",-0,0),u);break e}gg(i,a,ln,cs,ff,t,vn,Al,xr,Ya,f,null,-0,0)}}break}while(!0);Pn(e)}function gg(e,t,a,i,u,f,b,E,O,P,W,ae,Q,Z){if(e.timeoutHandle=-1,ae=t.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},sg(t,f,ae);var pe=(f&62914560)===f?ss-De():(f&4194048)===f?dg-De():0;if(pe=H1(ae,pe),pe!==null){va=f,e.cancelPendingCommit=pe(Cg.bind(null,e,t,f,a,i,u,b,E,O,W,ae,null,Q,Z)),Xa(e,f,b,!P);return}}Cg(e,t,f,a,i,u,b,E,O)}function t1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var u=a[i],f=u.getSnapshot;u=u.value;try{if(!dn(f(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Xa(e,t,a,i){t&=~cf,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var f=31-At(u),b=1<<f;i[f]=-1,u&=~b}a!==0&&dl(e,a,t)}function fs(){return(Xe&6)===0?(_i(0),!1):!0}function pf(){if(_e!==null){if(Pe===0)var e=_e.return;else e=_e,ia=xl=null,Mc(e),dr=null,vi=0,e=_e;for(;e!==null;)Pp(e.alternate,e),e=e.return;_e=null}}function Er(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,S1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),va=0,pf(),et=e,_e=a=la(e.current,null),Be=t,Pe=0,gn=null,Ya=!1,br=st(e,t),uf=!1,xr=vn=cf=Al=qa=vt=0,ln=Di=null,ff=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-At(i),f=1<<u;t|=e[u],i&=~f}return ga=t,ko(),a}function vg(e,t){Ae=null,k.H=Ri,t===fr||t===Vo?(t=Dh(),Pe=3):t===yc?(t=Dh(),Pe=4):Pe=t===Kc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gn=t,_e===null&&(vt=1,es(e,Cn(t,e.current)))}function yg(){var e=hn.current;return e===null?!0:(Be&4194048)===Be?jn===null:(Be&62914560)===Be||(Be&536870912)!==0?e===jn:!1}function bg(){var e=k.H;return k.H=Ri,e===null?Ri:e}function xg(){var e=k.A;return k.A=JS,e}function ds(){vt=4,Ya||(Be&4194048)!==Be&&hn.current!==null||(br=!0),(qa&134217727)===0&&(Al&134217727)===0||et===null||Xa(et,Be,vn,!1)}function gf(e,t,a){var i=Xe;Xe|=2;var u=bg(),f=xg();(et!==e||Be!==t)&&(cs=null,Er(e,t)),t=!1;var b=vt;e:do try{if(Pe!==0&&_e!==null){var E=_e,O=gn;switch(Pe){case 8:pf(),b=6;break e;case 3:case 2:case 9:case 6:hn.current===null&&(t=!0);var P=Pe;if(Pe=0,gn=null,wr(e,E,O,P),a&&br){b=0;break e}break;default:P=Pe,Pe=0,gn=null,wr(e,E,O,P)}}n1(),b=vt;break}catch(W){vg(e,W)}while(!0);return t&&e.shellSuspendCounter++,ia=xl=null,Xe=i,k.H=u,k.A=f,_e===null&&(et=null,Be=0,ko()),b}function n1(){for(;_e!==null;)Sg(_e)}function a1(e,t){var a=Xe;Xe|=2;var i=bg(),u=xg();et!==e||Be!==t?(cs=null,us=De()+500,Er(e,t)):br=st(e,t);e:do try{if(Pe!==0&&_e!==null){t=_e;var f=gn;t:switch(Pe){case 1:Pe=0,gn=null,wr(e,t,f,1);break;case 2:case 9:if(Oh(f)){Pe=0,gn=null,Eg(t);break}t=function(){Pe!==2&&Pe!==9||et!==e||(Pe=7),Pn(e)},f.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:Oh(f)?(Pe=0,gn=null,Eg(t)):(Pe=0,gn=null,wr(e,t,f,7));break;case 5:var b=null;switch(_e.tag){case 26:b=_e.memoizedState;case 5:case 27:var E=_e;if(b?ov(b):E.stateNode.complete){Pe=0,gn=null;var O=E.sibling;if(O!==null)_e=O;else{var P=E.return;P!==null?(_e=P,ms(P)):_e=null}break t}}Pe=0,gn=null,wr(e,t,f,5);break;case 6:Pe=0,gn=null,wr(e,t,f,6);break;case 8:pf(),vt=6;break e;default:throw Error(o(462))}}l1();break}catch(W){vg(e,W)}while(!0);return ia=xl=null,k.H=i,k.A=u,Xe=a,_e!==null?0:(et=null,Be=0,ko(),vt)}function l1(){for(;_e!==null&&!ue();)Sg(_e)}function Sg(e){var t=Xp(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?ms(e):_e=t}function Eg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Hp(a,t,t.pendingProps,t.type,void 0,Be);break;case 11:t=Hp(a,t,t.pendingProps,t.type.render,t.ref,Be);break;case 5:Mc(t);default:Pp(a,t),t=_e=xh(t,ga),t=Xp(a,t,ga)}e.memoizedProps=e.pendingProps,t===null?ms(e):_e=t}function wr(e,t,a,i){ia=xl=null,Mc(t),dr=null,vi=0;var u=t.return;try{if(KS(e,u,t,a,Be)){vt=1,es(e,Cn(a,e.current)),_e=null;return}}catch(f){if(u!==null)throw _e=u,f;vt=1,es(e,Cn(a,e.current)),_e=null;return}t.flags&32768?(Ve||i===1?e=!0:br||(Be&536870912)!==0?e=!1:(Ya=e=!0,(i===2||i===9||i===3||i===6)&&(i=hn.current,i!==null&&i.tag===13&&(i.flags|=16384))),wg(t,e)):ms(t)}function ms(e){var t=e;do{if((t.flags&32768)!==0){wg(t,Ya);return}e=t.return;var a=$S(t.alternate,t,ga);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);vt===0&&(vt=5)}function wg(e,t){do{var a=ZS(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);vt=6,_e=null}function Cg(e,t,a,i,u,f,b,E,O){e.cancelPendingCommit=null;do hs();while(Rt!==0);if((Xe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(f=t.lanes|t.childLanes,f|=ac,Zt(e,a,f,b,E,O),e===et&&(_e=et=null,Be=0),Sr=t,Ia=e,va=a,df=f,mf=u,mg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,s1(zn,function(){return Ag(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=k.T,k.T=null,u=_.p,_.p=2,b=Xe,Xe|=4;try{FS(e,t,a)}finally{Xe=b,_.p=u,k.T=i}}Rt=1,Rg(),Tg(),Ng()}}function Rg(){if(Rt===1){Rt=0;var e=Ia,t=Sr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var i=_.p;_.p=2;var u=Xe;Xe|=4;try{rg(t,e);var f=jf,b=fh(e.containerInfo),E=f.focusedElem,O=f.selectionRange;if(b!==E&&E&&E.ownerDocument&&ch(E.ownerDocument.documentElement,E)){if(O!==null&&Wu(E)){var P=O.start,W=O.end;if(W===void 0&&(W=P),"selectionStart"in E)E.selectionStart=P,E.selectionEnd=Math.min(W,E.value.length);else{var ae=E.ownerDocument||document,Q=ae&&ae.defaultView||window;if(Q.getSelection){var Z=Q.getSelection(),pe=E.textContent.length,Ee=Math.min(O.start,pe),We=O.end===void 0?Ee:Math.min(O.end,pe);!Z.extend&&Ee>We&&(b=We,We=Ee,Ee=b);var Y=uh(E,Ee),L=uh(E,We);if(Y&&L&&(Z.rangeCount!==1||Z.anchorNode!==Y.node||Z.anchorOffset!==Y.offset||Z.focusNode!==L.node||Z.focusOffset!==L.offset)){var X=ae.createRange();X.setStart(Y.node,Y.offset),Z.removeAllRanges(),Ee>We?(Z.addRange(X),Z.extend(L.node,L.offset)):(X.setEnd(L.node,L.offset),Z.addRange(X))}}}}for(ae=[],Z=E;Z=Z.parentNode;)Z.nodeType===1&&ae.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Ts=!!Nf,jf=Nf=null}finally{Xe=u,_.p=i,k.T=a}}e.current=t,Rt=2}}function Tg(){if(Rt===2){Rt=0;var e=Ia,t=Sr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var i=_.p;_.p=2;var u=Xe;Xe|=4;try{eg(e,t.alternate,t)}finally{Xe=u,_.p=i,k.T=a}}Rt=3}}function Ng(){if(Rt===4||Rt===3){Rt=0,Oe();var e=Ia,t=Sr,a=va,i=mg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Rt=5:(Rt=0,Sr=Ia=null,jg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ga=null),_n(a),t=t.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(cn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=k.T,u=_.p,_.p=2,k.T=null;try{for(var f=e.onRecoverableError,b=0;b<i.length;b++){var E=i[b];f(E.value,{componentStack:E.stack})}}finally{k.T=t,_.p=u}}(va&3)!==0&&hs(),Pn(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===hf?zi++:(zi=0,hf=e):zi=0,_i(0)}}function jg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pi(t)))}function hs(){return Rg(),Tg(),Ng(),Ag()}function Ag(){if(Rt!==5)return!1;var e=Ia,t=df;df=0;var a=_n(va),i=k.T,u=_.p;try{_.p=32>a?32:a,k.T=null,a=mf,mf=null;var f=Ia,b=va;if(Rt=0,Sr=Ia=null,va=0,(Xe&6)!==0)throw Error(o(331));var E=Xe;if(Xe|=4,cg(f.current),og(f,f.current,b,a),Xe=E,_i(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(cn,f)}catch{}return!0}finally{_.p=u,k.T=i,jg(e,t)}}function Mg(e,t,a){t=Cn(a,t),t=Xc(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(ft(e,2),Pn(e))}function Qe(e,t,a){if(e.tag===3)Mg(e,e,a);else for(;t!==null;){if(t.tag===3){Mg(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ga===null||!Ga.has(i))){e=Cn(a,e),a=Op(2),i=Ua(t,a,2),i!==null&&(kp(a,i,t,e),ft(i,2),Pn(i));break}}t=t.return}}function vf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new e1;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(a)||(uf=!0,u.add(a),e=r1.bind(null,e,t,a),t.then(e,e))}function r1(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,et===e&&(Be&a)===a&&(vt===4||vt===3&&(Be&62914560)===Be&&300>De()-ss?(Xe&2)===0&&Er(e,0):cf|=a,xr===Be&&(xr=0)),Pn(e)}function Og(e,t){t===0&&(t=Gt()),e=vl(e,t),e!==null&&(ft(e,t),Pn(e))}function i1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Og(e,a)}function o1(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),Og(e,a)}function s1(e,t){return we(e,t)}var ps=null,Cr=null,yf=!1,gs=!1,bf=!1,Ka=0;function Pn(e){e!==Cr&&e.next===null&&(Cr===null?ps=Cr=e:Cr=Cr.next=e),gs=!0,yf||(yf=!0,c1())}function _i(e,t){if(!bf&&gs){bf=!0;do for(var a=!1,i=ps;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var f=0;else{var b=i.suspendedLanes,E=i.pingedLanes;f=(1<<31-At(42|e)+1)-1,f&=u&~(b&~E),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,_g(i,f))}else f=Be,f=Re(i,i===et?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||st(i,f)||(a=!0,_g(i,f));i=i.next}while(a);bf=!1}}function u1(){kg()}function kg(){gs=yf=!1;var e=0;Ka!==0&&x1()&&(e=Ka);for(var t=De(),a=null,i=ps;i!==null;){var u=i.next,f=Dg(i,t);f===0?(i.next=null,a===null?ps=u:a.next=u,u===null&&(Cr=a)):(a=i,(e!==0||(f&3)!==0)&&(gs=!0)),i=u}Rt!==0&&Rt!==5||_i(e),Ka!==0&&(Ka=0)}function Dg(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var b=31-At(f),E=1<<b,O=u[b];O===-1?((E&a)===0||(E&i)!==0)&&(u[b]=Mt(E,t)):O<=t&&(e.expiredLanes|=E),f&=~E}if(t=et,a=Be,a=Re(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&le(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||st(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&le(i),_n(a)){case 2:case 8:a=bn;break;case 32:a=zn;break;case 268435456:a=pt;break;default:a=zn}return i=zg.bind(null,e),a=we(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&le(i),e.callbackPriority=2,e.callbackNode=null,2}function zg(e,t){if(Rt!==0&&Rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(hs()&&e.callbackNode!==a)return null;var i=Be;return i=Re(e,e===et?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(pg(e,i,t),Dg(e,De()),e.callbackNode!=null&&e.callbackNode===a?zg.bind(null,e):null)}function _g(e,t){if(hs())return null;pg(e,t,!0)}function c1(){E1(function(){(Xe&6)!==0?we(Pt,u1):kg()})}function xf(){if(Ka===0){var e=ur;e===0&&(e=Na,Na<<=1,(Na&261888)===0&&(Na=256)),Ka=e}return Ka}function Lg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Co(""+e)}function Ug(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function f1(e,t,a,i,u){if(t==="submit"&&a&&a.stateNode===u){var f=Lg((u[Jt]||null).action),b=i.submitter;b&&(t=(t=b[Jt]||null)?Lg(t.formAction):b.getAttribute("formAction"),t!==null&&(f=t,b=null));var E=new jo("action","action",null,i,u);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ka!==0){var O=b?Ug(u,b):new FormData(u);Hc(a,{pending:!0,data:O,method:u.method,action:f},null,O)}}else typeof f=="function"&&(E.preventDefault(),O=b?Ug(u,b):new FormData(u),Hc(a,{pending:!0,data:O,method:u.method,action:f},f,O))},currentTarget:u}]})}}for(var Sf=0;Sf<nc.length;Sf++){var Ef=nc[Sf],d1=Ef.toLowerCase(),m1=Ef[0].toUpperCase()+Ef.slice(1);Ln(d1,"on"+m1)}Ln(hh,"onAnimationEnd"),Ln(ph,"onAnimationIteration"),Ln(gh,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(AS,"onTransitionRun"),Ln(MS,"onTransitionStart"),Ln(OS,"onTransitionCancel"),Ln(vh,"onTransitionEnd"),$l("onMouseEnter",["mouseout","mouseover"]),$l("onMouseLeave",["mouseout","mouseover"]),$l("onPointerEnter",["pointerout","pointerover"]),$l("onPointerLeave",["pointerout","pointerover"]),ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="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(" "),h1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Li));function Bg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],u=i.event;i=i.listeners;e:{var f=void 0;if(t)for(var b=i.length-1;0<=b;b--){var E=i[b],O=E.instance,P=E.currentTarget;if(E=E.listener,O!==f&&u.isPropagationStopped())break e;f=E,u.currentTarget=P;try{f(u)}catch(W){Oo(W)}u.currentTarget=null,f=O}else for(b=0;b<i.length;b++){if(E=i[b],O=E.instance,P=E.currentTarget,E=E.listener,O!==f&&u.isPropagationStopped())break e;f=E,u.currentTarget=P;try{f(u)}catch(W){Oo(W)}u.currentTarget=null,f=O}}}}function Le(e,t){var a=t[zu];a===void 0&&(a=t[zu]=new Set);var i=e+"__bubble";a.has(i)||(Hg(t,e,2,!1),a.add(i))}function wf(e,t,a){var i=0;t&&(i|=4),Hg(a,e,i,t)}var vs="_reactListening"+Math.random().toString(36).slice(2);function Cf(e){if(!e[vs]){e[vs]=!0,km.forEach(function(a){a!=="selectionchange"&&(h1.has(a)||wf(a,!1,e),wf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vs]||(t[vs]=!0,wf("selectionchange",!1,t))}}function Hg(e,t,a,i){switch(hv(t)){case 2:var u=q1;break;case 8:u=G1;break;default:u=Hf}a=u.bind(null,t,a,e),u=void 0,!Gu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function Rf(e,t,a,i,u){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var b=i.tag;if(b===3||b===4){var E=i.stateNode.containerInfo;if(E===u)break;if(b===4)for(b=i.return;b!==null;){var O=b.tag;if((O===3||O===4)&&b.stateNode.containerInfo===u)return;b=b.return}for(;E!==null;){if(b=Kl(E),b===null)return;if(O=b.tag,O===5||O===6||O===26||O===27){i=f=b;continue e}E=E.parentNode}}i=i.return}Im(function(){var P=f,W=Yu(a),ae=[];e:{var Q=yh.get(e);if(Q!==void 0){var Z=jo,pe=e;switch(e){case"keypress":if(To(a)===0)break e;case"keydown":case"keyup":Z=oS;break;case"focusin":pe="focus",Z=Pu;break;case"focusout":pe="blur",Z=Pu;break;case"beforeblur":case"afterblur":Z=Pu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=Pm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=$x;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=cS;break;case hh:case ph:case gh:Z=Wx;break;case vh:Z=dS;break;case"scroll":case"scrollend":Z=Px;break;case"wheel":Z=hS;break;case"copy":case"cut":case"paste":Z=eS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=$m;break;case"toggle":case"beforetoggle":Z=gS}var Ee=(t&4)!==0,We=!Ee&&(e==="scroll"||e==="scrollend"),Y=Ee?Q!==null?Q+"Capture":null:Q;Ee=[];for(var L=P,X;L!==null;){var te=L;if(X=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||X===null||Y===null||(te=li(L,Y),te!=null&&Ee.push(Ui(L,te,X))),We)break;L=L.return}0<Ee.length&&(Q=new Z(Q,pe,null,a,W),ae.push({event:Q,listeners:Ee}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",Q&&a!==Vu&&(pe=a.relatedTarget||a.fromElement)&&(Kl(pe)||pe[Xl]))break e;if((Z||Q)&&(Q=W.window===W?W:(Q=W.ownerDocument)?Q.defaultView||Q.parentWindow:window,Z?(pe=a.relatedTarget||a.toElement,Z=P,pe=pe?Kl(pe):null,pe!==null&&(We=c(pe),Ee=pe.tag,pe!==We||Ee!==5&&Ee!==27&&Ee!==6)&&(pe=null)):(Z=null,pe=P),Z!==pe)){if(Ee=Pm,te="onMouseLeave",Y="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=$m,te="onPointerLeave",Y="onPointerEnter",L="pointer"),We=Z==null?Q:ai(Z),X=pe==null?Q:ai(pe),Q=new Ee(te,L+"leave",Z,a,W),Q.target=We,Q.relatedTarget=X,te=null,Kl(W)===P&&(Ee=new Ee(Y,L+"enter",pe,a,W),Ee.target=X,Ee.relatedTarget=We,te=Ee),We=te,Z&&pe)t:{for(Ee=p1,Y=Z,L=pe,X=0,te=Y;te;te=Ee(te))X++;te=0;for(var Se=L;Se;Se=Ee(Se))te++;for(;0<X-te;)Y=Ee(Y),X--;for(;0<te-X;)L=Ee(L),te--;for(;X--;){if(Y===L||L!==null&&Y===L.alternate){Ee=Y;break t}Y=Ee(Y),L=Ee(L)}Ee=null}else Ee=null;Z!==null&&Vg(ae,Q,Z,Ee,!1),pe!==null&&We!==null&&Vg(ae,We,pe,Ee,!0)}}e:{if(Q=P?ai(P):window,Z=Q.nodeName&&Q.nodeName.toLowerCase(),Z==="select"||Z==="input"&&Q.type==="file")var Ge=ah;else if(th(Q))if(lh)Ge=TS;else{Ge=CS;var be=wS}else Z=Q.nodeName,!Z||Z.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?P&&Hu(P.elementType)&&(Ge=ah):Ge=RS;if(Ge&&(Ge=Ge(e,P))){nh(ae,Ge,a,W);break e}be&&be(e,Q,P),e==="focusout"&&P&&Q.type==="number"&&P.memoizedProps.value!=null&&Bu(Q,"number",Q.value)}switch(be=P?ai(P):window,e){case"focusin":(th(be)||be.contentEditable==="true")&&(tr=be,Ju=P,di=null);break;case"focusout":di=Ju=tr=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,dh(ae,a,W);break;case"selectionchange":if(jS)break;case"keydown":case"keyup":dh(ae,a,W)}var Me;if($u)e:{switch(e){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else er?Jm(e,a)&&(He="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(He="onCompositionStart");He&&(Zm&&a.locale!=="ko"&&(er||He!=="onCompositionStart"?He==="onCompositionEnd"&&er&&(Me=Xm()):(Ma=W,Iu="value"in Ma?Ma.value:Ma.textContent,er=!0)),be=ys(P,He),0<be.length&&(He=new Qm(He,e,null,a,W),ae.push({event:He,listeners:be}),Me?He.data=Me:(Me=eh(a),Me!==null&&(He.data=Me)))),(Me=yS?bS(e,a):xS(e,a))&&(He=ys(P,"onBeforeInput"),0<He.length&&(be=new Qm("onBeforeInput","beforeinput",null,a,W),ae.push({event:be,listeners:He}),be.data=Me)),f1(ae,e,P,a,W)}Bg(ae,t)})}function Ui(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ys(e,t){for(var a=t+"Capture",i=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=li(e,a),u!=null&&i.unshift(Ui(e,u,f)),u=li(e,t),u!=null&&i.push(Ui(e,u,f))),e.tag===3)return i;e=e.return}return[]}function p1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vg(e,t,a,i,u){for(var f=t._reactName,b=[];a!==null&&a!==i;){var E=a,O=E.alternate,P=E.stateNode;if(E=E.tag,O!==null&&O===i)break;E!==5&&E!==26&&E!==27||P===null||(O=P,u?(P=li(a,f),P!=null&&b.unshift(Ui(a,P,O))):u||(P=li(a,f),P!=null&&b.push(Ui(a,P,O)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var g1=/\r\n?/g,v1=/\u0000|\uFFFD/g;function Yg(e){return(typeof e=="string"?e:""+e).replace(g1,`
|
|
49
|
+
`).replace(v1,"")}function qg(e,t){return t=Yg(t),Yg(e)===t}function Fe(e,t,a,i,u,f){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Fl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Fl(e,""+i);break;case"className":Eo(e,"class",i);break;case"tabIndex":Eo(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Eo(e,a,i);break;case"style":qm(e,i,f);break;case"data":if(t!=="object"){Eo(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Co(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Fe(e,t,"name",u.name,u,null),Fe(e,t,"formEncType",u.formEncType,u,null),Fe(e,t,"formMethod",u.formMethod,u,null),Fe(e,t,"formTarget",u.formTarget,u,null)):(Fe(e,t,"encType",u.encType,u,null),Fe(e,t,"method",u.method,u,null),Fe(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Co(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=na);break;case"onScroll":i!=null&&Le("scroll",e);break;case"onScrollEnd":i!=null&&Le("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Co(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Le("beforetoggle",e),Le("toggle",e),So(e,"popover",i);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":So(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Xx.get(a)||a,So(e,a,i))}}function Tf(e,t,a,i,u,f){switch(a){case"style":qm(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof i=="string"?Fl(e,i):(typeof i=="number"||typeof i=="bigint")&&Fl(e,""+i);break;case"onScroll":i!=null&&Le("scroll",e);break;case"onScrollEnd":i!=null&&Le("scrollend",e);break;case"onClick":i!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),f=e[Jt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,u),typeof i=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,u);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):So(e,a,i)}}}function Vt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var i=!1,u=!1,f;for(f in a)if(a.hasOwnProperty(f)){var b=a[f];if(b!=null)switch(f){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Fe(e,t,f,b,a,null)}}u&&Fe(e,t,"srcSet",a.srcSet,a,null),i&&Fe(e,t,"src",a.src,a,null);return;case"input":Le("invalid",e);var E=f=b=u=null,O=null,P=null;for(i in a)if(a.hasOwnProperty(i)){var W=a[i];if(W!=null)switch(i){case"name":u=W;break;case"type":b=W;break;case"checked":O=W;break;case"defaultChecked":P=W;break;case"value":f=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(o(137,t));break;default:Fe(e,t,i,W,a,null)}}Bm(e,f,E,O,P,b,u,!1);return;case"select":Le("invalid",e),i=b=f=null;for(u in a)if(a.hasOwnProperty(u)&&(E=a[u],E!=null))switch(u){case"value":f=E;break;case"defaultValue":b=E;break;case"multiple":i=E;default:Fe(e,t,u,E,a,null)}t=f,a=b,e.multiple=!!i,t!=null?Zl(e,!!i,t,!1):a!=null&&Zl(e,!!i,a,!0);return;case"textarea":Le("invalid",e),f=u=i=null;for(b in a)if(a.hasOwnProperty(b)&&(E=a[b],E!=null))switch(b){case"value":i=E;break;case"defaultValue":u=E;break;case"children":f=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(o(91));break;default:Fe(e,t,b,E,a,null)}Vm(e,i,u,f);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(i=a[O],i!=null))switch(O){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Fe(e,t,O,i,a,null)}return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(i=0;i<Li.length;i++)Le(Li[i],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in a)if(a.hasOwnProperty(P)&&(i=a[P],i!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Fe(e,t,P,i,a,null)}return;default:if(Hu(t)){for(W in a)a.hasOwnProperty(W)&&(i=a[W],i!==void 0&&Tf(e,t,W,i,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(i=a[E],i!=null&&Fe(e,t,E,i,a,null))}function y1(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,b=null,E=null,O=null,P=null,W=null;for(Z in a){var ae=a[Z];if(a.hasOwnProperty(Z)&&ae!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":O=ae;default:i.hasOwnProperty(Z)||Fe(e,t,Z,null,i,ae)}}for(var Q in i){var Z=i[Q];if(ae=a[Q],i.hasOwnProperty(Q)&&(Z!=null||ae!=null))switch(Q){case"type":f=Z;break;case"name":u=Z;break;case"checked":P=Z;break;case"defaultChecked":W=Z;break;case"value":b=Z;break;case"defaultValue":E=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,t));break;default:Z!==ae&&Fe(e,t,Q,Z,i,ae)}}Uu(e,b,E,O,P,W,f,u);return;case"select":Z=b=E=Q=null;for(f in a)if(O=a[f],a.hasOwnProperty(f)&&O!=null)switch(f){case"value":break;case"multiple":Z=O;default:i.hasOwnProperty(f)||Fe(e,t,f,null,i,O)}for(u in i)if(f=i[u],O=a[u],i.hasOwnProperty(u)&&(f!=null||O!=null))switch(u){case"value":Q=f;break;case"defaultValue":E=f;break;case"multiple":b=f;default:f!==O&&Fe(e,t,u,f,i,O)}t=E,a=b,i=Z,Q!=null?Zl(e,!!a,Q,!1):!!i!=!!a&&(t!=null?Zl(e,!!a,t,!0):Zl(e,!!a,a?[]:"",!1));return;case"textarea":Z=Q=null;for(E in a)if(u=a[E],a.hasOwnProperty(E)&&u!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Fe(e,t,E,null,i,u)}for(b in i)if(u=i[b],f=a[b],i.hasOwnProperty(b)&&(u!=null||f!=null))switch(b){case"value":Q=u;break;case"defaultValue":Z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==f&&Fe(e,t,b,u,i,f)}Hm(e,Q,Z);return;case"option":for(var pe in a)if(Q=a[pe],a.hasOwnProperty(pe)&&Q!=null&&!i.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:Fe(e,t,pe,null,i,Q)}for(O in i)if(Q=i[O],Z=a[O],i.hasOwnProperty(O)&&Q!==Z&&(Q!=null||Z!=null))switch(O){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Fe(e,t,O,Q,i,Z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in a)Q=a[Ee],a.hasOwnProperty(Ee)&&Q!=null&&!i.hasOwnProperty(Ee)&&Fe(e,t,Ee,null,i,Q);for(P in i)if(Q=i[P],Z=a[P],i.hasOwnProperty(P)&&Q!==Z&&(Q!=null||Z!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(o(137,t));break;default:Fe(e,t,P,Q,i,Z)}return;default:if(Hu(t)){for(var We in a)Q=a[We],a.hasOwnProperty(We)&&Q!==void 0&&!i.hasOwnProperty(We)&&Tf(e,t,We,void 0,i,Q);for(W in i)Q=i[W],Z=a[W],!i.hasOwnProperty(W)||Q===Z||Q===void 0&&Z===void 0||Tf(e,t,W,Q,i,Z);return}}for(var Y in a)Q=a[Y],a.hasOwnProperty(Y)&&Q!=null&&!i.hasOwnProperty(Y)&&Fe(e,t,Y,null,i,Q);for(ae in i)Q=i[ae],Z=a[ae],!i.hasOwnProperty(ae)||Q===Z||Q==null&&Z==null||Fe(e,t,ae,Q,i,Z)}function Gg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var u=a[i],f=u.transferSize,b=u.initiatorType,E=u.duration;if(f&&E&&Gg(b)){for(b=0,E=u.responseEnd,i+=1;i<a.length;i++){var O=a[i],P=O.startTime;if(P>E)break;var W=O.transferSize,ae=O.initiatorType;W&&Gg(ae)&&(O=O.responseEnd,b+=W*(O<E?1:(E-P)/(O-P)))}if(--i,t+=8*(f+b)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Nf=null,jf=null;function bs(e){return e.nodeType===9?e:e.ownerDocument}function Ig(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Af(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Mf=null;function x1(){var e=window.event;return e&&e.type==="popstate"?e===Mf?!1:(Mf=e,!0):(Mf=null,!1)}var Kg=typeof setTimeout=="function"?setTimeout:void 0,S1=typeof clearTimeout=="function"?clearTimeout:void 0,Pg=typeof Promise=="function"?Promise:void 0,E1=typeof queueMicrotask=="function"?queueMicrotask:typeof Pg<"u"?function(e){return Pg.resolve(null).then(e).catch(w1)}:Kg;function w1(e){setTimeout(function(){throw e})}function Pa(e){return e==="head"}function Qg(e,t){var a=t,i=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(u),jr(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Bi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Bi(a);for(var f=a.firstChild;f;){var b=f.nextSibling,E=f.nodeName;f[ni]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=b}}else a==="body"&&Bi(e.ownerDocument.body);a=u}while(a);jr(t)}function $g(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Of(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Of(a),_u(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function C1(e,t,a,i){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ni])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=An(e.nextSibling),e===null)break}return null}function R1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=An(e.nextSibling),e===null))return null;return e}function Zg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=An(e.nextSibling),e===null))return null;return e}function kf(e){return e.data==="$?"||e.data==="$~"}function Df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function T1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function An(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zf=null;function Fg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return An(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Wg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Jg(e,t,a){switch(t=bs(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Bi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_u(e)}var Mn=new Map,ev=new Set;function xs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ya=_.d;_.d={f:N1,r:j1,D:A1,C:M1,L:O1,m:k1,X:z1,S:D1,M:_1};function N1(){var e=ya.f(),t=fs();return e||t}function j1(e){var t=Pl(e);t!==null&&t.tag===5&&t.type==="form"?vp(t):ya.r(e)}var Rr=typeof document>"u"?null:document;function tv(e,t,a){var i=Rr;if(i&&typeof t=="string"&&t){var u=En(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),ev.has(u)||(ev.add(u),e={rel:e,crossOrigin:a,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Vt(t,"link",e),Ot(t),i.head.appendChild(t)))}}function A1(e){ya.D(e),tv("dns-prefetch",e,null)}function M1(e,t){ya.C(e,t),tv("preconnect",e,t)}function O1(e,t,a){ya.L(e,t,a);var i=Rr;if(i&&e&&t){var u='link[rel="preload"][as="'+En(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+En(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+En(a.imageSizes)+'"]')):u+='[href="'+En(e)+'"]';var f=u;switch(t){case"style":f=Tr(e);break;case"script":f=Nr(e)}Mn.has(f)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Mn.set(f,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Hi(f))||t==="script"&&i.querySelector(Vi(f))||(t=i.createElement("link"),Vt(t,"link",e),Ot(t),i.head.appendChild(t)))}}function k1(e,t){ya.m(e,t);var a=Rr;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+En(i)+'"][href="'+En(e)+'"]',f=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Nr(e)}if(!Mn.has(f)&&(e=v({rel:"modulepreload",href:e},t),Mn.set(f,e),a.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Vi(f)))return}i=a.createElement("link"),Vt(i,"link",e),Ot(i),a.head.appendChild(i)}}}function D1(e,t,a){ya.S(e,t,a);var i=Rr;if(i&&e){var u=Ql(i).hoistableStyles,f=Tr(e);t=t||"default";var b=u.get(f);if(!b){var E={loading:0,preload:null};if(b=i.querySelector(Hi(f)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Mn.get(f))&&_f(e,a);var O=b=i.createElement("link");Ot(O),Vt(O,"link",e),O._p=new Promise(function(P,W){O.onload=P,O.onerror=W}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Ss(b,t,i)}b={type:"stylesheet",instance:b,count:1,state:E},u.set(f,b)}}}function z1(e,t){ya.X(e,t);var a=Rr;if(a&&e){var i=Ql(a).hoistableScripts,u=Nr(e),f=i.get(u);f||(f=a.querySelector(Vi(u)),f||(e=v({src:e,async:!0},t),(t=Mn.get(u))&&Lf(e,t),f=a.createElement("script"),Ot(f),Vt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(u,f))}}function _1(e,t){ya.M(e,t);var a=Rr;if(a&&e){var i=Ql(a).hoistableScripts,u=Nr(e),f=i.get(u);f||(f=a.querySelector(Vi(u)),f||(e=v({src:e,async:!0,type:"module"},t),(t=Mn.get(u))&&Lf(e,t),f=a.createElement("script"),Ot(f),Vt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(u,f))}}function nv(e,t,a,i){var u=(u=re.current)?xs(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Tr(a.href),a=Ql(u).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Tr(a.href);var f=Ql(u).hoistableStyles,b=f.get(e);if(b||(u=u.ownerDocument||u,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,b),(f=u.querySelector(Hi(e)))&&!f._p&&(b.instance=f,b.state.loading=5),Mn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Mn.set(e,a),f||L1(u,e,a,b.state))),t&&i===null)throw Error(o(528,""));return b}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Nr(a),a=Ql(u).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Tr(e){return'href="'+En(e)+'"'}function Hi(e){return'link[rel="stylesheet"]['+e+"]"}function av(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function L1(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Vt(t,"link",a),Ot(t),e.head.appendChild(t))}function Nr(e){return'[src="'+En(e)+'"]'}function Vi(e){return"script[async]"+e}function lv(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+En(a.href)+'"]');if(i)return t.instance=i,Ot(i),i;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ot(i),Vt(i,"style",u),Ss(i,a.precedence,e),t.instance=i;case"stylesheet":u=Tr(a.href);var f=e.querySelector(Hi(u));if(f)return t.state.loading|=4,t.instance=f,Ot(f),f;i=av(a),(u=Mn.get(u))&&_f(i,u),f=(e.ownerDocument||e).createElement("link"),Ot(f);var b=f;return b._p=new Promise(function(E,O){b.onload=E,b.onerror=O}),Vt(f,"link",i),t.state.loading|=4,Ss(f,a.precedence,e),t.instance=f;case"script":return f=Nr(a.src),(u=e.querySelector(Vi(f)))?(t.instance=u,Ot(u),u):(i=a,(u=Mn.get(f))&&(i=v({},a),Lf(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ot(u),Vt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ss(i,a.precedence,e));return t.instance}function Ss(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,f=u,b=0;b<i.length;b++){var E=i[b];if(E.dataset.precedence===t)f=E;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function _f(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Lf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Es=null;function rv(e,t,a){if(Es===null){var i=new Map,u=Es=new Map;u.set(a,i)}else u=Es,i=u.get(a),i||(i=new Map,u.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var f=a[u];if(!(f[ni]||f[Lt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var b=f.getAttribute(t)||"";b=e+b;var E=i.get(b);E?E.push(f):i.set(b,[f])}}return i}function iv(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function U1(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ov(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function B1(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Tr(i.href),f=t.querySelector(Hi(u));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ws.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,Ot(f);return}f=t.ownerDocument||t,i=av(i),(u=Mn.get(u))&&_f(i,u),f=f.createElement("link"),Ot(f);var b=f;b._p=new Promise(function(E,O){b.onload=E,b.onerror=O}),Vt(f,"link",i),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ws.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Uf=0;function H1(e,t){return e.stylesheets&&e.count===0&&Rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Uf===0&&(Uf=62500*b1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Uf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function ws(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cs=null;function Rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cs=new Map,t.forEach(V1,e),Cs=null,ws.call(e))}function V1(e,t){if(!(t.state.loading&4)){var a=Cs.get(e);if(a)var i=a.get(null);else{a=new Map,Cs.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var b=u[f];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),i=b)}i&&a.set(null,i)}u=t.instance,b=u.getAttribute("data-precedence"),f=a.get(b)||i,f===i&&a.set(null,u),a.set(b,u),this.count++,i=ws.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Yi={$$typeof:U,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Y1(e,t,a,i,u,f,b,E,O){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ja(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ja(0),this.hiddenUpdates=ja(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function sv(e,t,a,i,u,f,b,E,O,P,W,ae){return e=new Y1(e,t,a,b,O,P,W,ae,E),t=1,f===!0&&(t|=24),f=mn(3,null,null,t),e.current=f,f.stateNode=e,t=pc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:a,cache:t},bc(f),e}function uv(e){return e?(e=lr,e):lr}function cv(e,t,a,i,u,f){u=uv(u),i.context===null?i.context=u:i.pendingContext=u,i=La(t),i.payload={element:a},f=f===void 0?null:f,f!==null&&(i.callback=f),a=Ua(e,i,t),a!==null&&(rn(a,e,t),bi(a,e,t))}function fv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Bf(e,t){fv(e,t),(e=e.alternate)&&fv(e,t)}function dv(e){if(e.tag===13||e.tag===31){var t=vl(e,67108864);t!==null&&rn(t,e,67108864),Bf(e,67108864)}}function mv(e){if(e.tag===13||e.tag===31){var t=yn();t=Il(t);var a=vl(e,t);a!==null&&rn(a,e,t),Bf(e,t)}}var Ts=!0;function q1(e,t,a,i){var u=k.T;k.T=null;var f=_.p;try{_.p=2,Hf(e,t,a,i)}finally{_.p=f,k.T=u}}function G1(e,t,a,i){var u=k.T;k.T=null;var f=_.p;try{_.p=8,Hf(e,t,a,i)}finally{_.p=f,k.T=u}}function Hf(e,t,a,i){if(Ts){var u=Vf(i);if(u===null)Rf(e,t,i,Ns,a),pv(e,i);else if(X1(u,e,t,a,i))i.stopPropagation();else if(pv(e,i),t&4&&-1<I1.indexOf(e)){for(;u!==null;){var f=Pl(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var b=Gn(f.pendingLanes);if(b!==0){var E=f;for(E.pendingLanes|=2,E.entangledLanes|=2;b;){var O=1<<31-At(b);E.entanglements[1]|=O,b&=~O}Pn(f),(Xe&6)===0&&(us=De()+500,_i(0))}}break;case 31:case 13:E=vl(f,2),E!==null&&rn(E,f,2),fs(),Bf(f,2)}if(f=Vf(i),f===null&&Rf(e,t,i,Ns,a),f===u)break;u=f}u!==null&&i.stopPropagation()}else Rf(e,t,i,null,a)}}function Vf(e){return e=Yu(e),Yf(e)}var Ns=null;function Yf(e){if(Ns=null,e=Kl(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ns=e,null}function hv(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zt()){case Pt:return 2;case bn:return 8;case zn:case ht:return 32;case pt:return 268435456;default:return 32}default:return 32}}var qf=!1,Qa=null,$a=null,Za=null,qi=new Map,Gi=new Map,Fa=[],I1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function pv(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":$a=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gi.delete(t.pointerId)}}function Ii(e,t,a,i,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:f,targetContainers:[u]},t!==null&&(t=Pl(t),t!==null&&dv(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function X1(e,t,a,i,u){switch(t){case"focusin":return Qa=Ii(Qa,e,t,a,i,u),!0;case"dragenter":return $a=Ii($a,e,t,a,i,u),!0;case"mouseover":return Za=Ii(Za,e,t,a,i,u),!0;case"pointerover":var f=u.pointerId;return qi.set(f,Ii(qi.get(f)||null,e,t,a,i,u)),!0;case"gotpointercapture":return f=u.pointerId,Gi.set(f,Ii(Gi.get(f)||null,e,t,a,i,u)),!0}return!1}function gv(e){var t=Kl(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Mm(e.priority,function(){mv(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,Mm(e.priority,function(){mv(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function js(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Vf(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Vu=i,a.target.dispatchEvent(i),Vu=null}else return t=Pl(a),t!==null&&dv(t),e.blockedOn=a,!1;t.shift()}return!0}function vv(e,t,a){js(e)&&a.delete(t)}function K1(){qf=!1,Qa!==null&&js(Qa)&&(Qa=null),$a!==null&&js($a)&&($a=null),Za!==null&&js(Za)&&(Za=null),qi.forEach(vv),Gi.forEach(vv)}function As(e,t){e.blockedOn===t&&(e.blockedOn=null,qf||(qf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,K1)))}var Ms=null;function yv(e){Ms!==e&&(Ms=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ms===e&&(Ms=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(Yf(i||a)===null)continue;break}var f=Pl(a);f!==null&&(e.splice(t,3),t-=3,Hc(f,{pending:!0,data:u,method:a.method,action:i},i,u))}}))}function jr(e){function t(O){return As(O,e)}Qa!==null&&As(Qa,e),$a!==null&&As($a,e),Za!==null&&As(Za,e),qi.forEach(t),Gi.forEach(t);for(var a=0;a<Fa.length;a++){var i=Fa[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Fa.length&&(a=Fa[0],a.blockedOn===null);)gv(a),a.blockedOn===null&&Fa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var u=a[i],f=a[i+1],b=u[Jt]||null;if(typeof f=="function")b||yv(a);else if(b){var E=null;if(f&&f.hasAttribute("formAction")){if(u=f,b=f[Jt]||null)E=b.formAction;else if(Yf(u)!==null)continue}else E=b.action;typeof E=="function"?a[i+1]=E:(a.splice(i,3),i-=3),yv(a)}}}function bv(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(b){return u=b})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Gf(e){this._internalRoot=e}Os.prototype.render=Gf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,i=yn();cv(a,i,e,t,null,null)},Os.prototype.unmount=Gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cv(e.current,2,null,e,null,null),fs(),t[Xl]=null}};function Os(e){this._internalRoot=e}Os.prototype.unstable_scheduleHydration=function(e){if(e){var t=Du();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fa.length&&t!==0&&t<Fa[a].priority;a++);Fa.splice(a,0,e),a===0&&gv(e)}};var xv=l.version;if(xv!=="19.2.4")throw Error(o(527,xv,"19.2.4"));_.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var P1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ks.isDisabled&&ks.supportsFiber)try{cn=ks.inject(P1),_t=ks}catch{}}return Ki.createRoot=function(e,t){if(!s(e))throw Error(o(299));var a=!1,i="",u=Np,f=jp,b=Ap;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=sv(e,1,!1,null,null,a,i,null,u,f,b,bv),e[Xl]=t.current,Cf(e),new Gf(t)},Ki.hydrateRoot=function(e,t,a){if(!s(e))throw Error(o(299));var i=!1,u="",f=Np,b=jp,E=Ap,O=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),t=sv(e,1,!0,t,a??null,i,u,O,f,b,E,bv),t.context=uv(null),a=t.current,i=yn(),i=Il(i),u=La(i),u.callback=null,Ua(a,u,i),a=i,t.current.lanes=a,ft(t,a),Pn(t),e[Xl]=t.current,Cf(e),new Os(t)},Ki.version="19.2.4",Ki}var Mv;function rE(){if(Mv)return Kf.exports;Mv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Kf.exports=lE(),Kf.exports}var iE=rE();/**
|
|
50
|
+
* react-router v7.13.2
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Ov="popstate";function kv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function oE(n={}){function l(o,s){var m;let c=(m=s.state)==null?void 0:m.masked,{pathname:d,search:p,hash:g}=c||o.location;return _d("",{pathname:d,search:p,hash:g},s.state&&s.state.usr||null,s.state&&s.state.key||"default",c?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function r(o,s){return typeof s=="string"?s:ao(s)}return uE(l,r,null,n)}function mt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Jn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function sE(){return Math.random().toString(36).substring(2,10)}function Dv(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function _d(n,l,r=null,o,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Qr(l):l,state:r,key:l&&l.key||o||sE(),unstable_mask:s}}function ao({pathname:n="/",search:l="",hash:r=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Qr(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let o=n.indexOf("?");o>=0&&(l.search=n.substring(o),n=n.substring(0,o)),n&&(l.pathname=n)}return l}function uE(n,l,r,o={}){let{window:s=document.defaultView,v5Compat:c=!1}=o,d=s.history,p="POP",g=null,m=x();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function x(){return(d.state||{idx:null}).idx}function v(){p="POP";let N=x(),T=N==null?null:N-m;m=N,g&&g({action:p,location:w.location,delta:T})}function S(N,T){p="PUSH";let D=kv(N)?N:_d(w.location,N,T);m=x()+1;let U=Dv(D,m),M=w.createHref(D.unstable_mask||D);try{d.pushState(U,"",M)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;s.location.assign(M)}c&&g&&g({action:p,location:w.location,delta:1})}function C(N,T){p="REPLACE";let D=kv(N)?N:_d(w.location,N,T);m=x();let U=Dv(D,m),M=w.createHref(D.unstable_mask||D);d.replaceState(U,"",M),c&&g&&g({action:p,location:w.location,delta:0})}function R(N){return cE(N)}let w={get action(){return p},get location(){return n(s,d)},listen(N){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(Ov,v),g=N,()=>{s.removeEventListener(Ov,v),g=null}},createHref(N){return l(s,N)},createURL:R,encodeLocation(N){let T=R(N);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:S,replace:C,go(N){return d.go(N)}};return w}function cE(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),mt(r,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:ao(n);return o=o.replace(/ $/,"%20"),!l&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function nb(n,l,r="/"){return fE(n,l,r,!1)}function fE(n,l,r,o){let s=typeof l=="string"?Qr(l):l,c=wa(s.pathname||"/",r);if(c==null)return null;let d=ab(n);dE(d);let p=null;for(let g=0;p==null&&g<d.length;++g){let m=wE(c);p=SE(d[g],m,o)}return p}function ab(n,l=[],r=[],o="",s=!1){let c=(d,p,g=s,m)=>{let x={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(o)&&g)return;mt(x.relativePath.startsWith(o),`Absolute route path "${x.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(o.length)}let v=Wn([o,x.relativePath]),S=r.concat(x);d.children&&d.children.length>0&&(mt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),ab(d.children,l,S,v,g)),!(d.path==null&&!d.index)&&l.push({path:v,score:bE(v,d.index),routesMeta:S})};return n.forEach((d,p)=>{var g;if(d.path===""||!((g=d.path)!=null&&g.includes("?")))c(d,p);else for(let m of lb(d.path))c(d,p,!0,m)}),l}function lb(n){let l=n.split("/");if(l.length===0)return[];let[r,...o]=l,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(o.length===0)return s?[c,""]:[c];let d=lb(o.join("/")),p=[];return p.push(...d.map(g=>g===""?c:[c,g].join("/"))),s&&p.push(...d),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function dE(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:xE(l.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var mE=/^:[\w-]+$/,hE=3,pE=2,gE=1,vE=10,yE=-2,zv=n=>n==="*";function bE(n,l){let r=n.split("/"),o=r.length;return r.some(zv)&&(o+=yE),l&&(o+=pE),r.filter(s=>!zv(s)).reduce((s,c)=>s+(mE.test(c)?hE:c===""?gE:vE),o)}function xE(n,l){return n.length===l.length&&n.slice(0,-1).every((o,s)=>o===l[s])?n[n.length-1]-l[l.length-1]:0}function SE(n,l,r=!1){let{routesMeta:o}=n,s={},c="/",d=[];for(let p=0;p<o.length;++p){let g=o[p],m=p===o.length-1,x=c==="/"?l:l.slice(c.length)||"/",v=lu({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},x),S=g.route;if(!v&&m&&r&&!o[o.length-1].route.index&&(v=lu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},x)),!v)return null;Object.assign(s,v.params),d.push({params:s,pathname:Wn([c,v.pathname]),pathnameBase:NE(Wn([c,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(c=Wn([c,v.pathnameBase]))}return d}function lu(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,o]=EE(n.path,n.caseSensitive,n.end),s=l.match(r);if(!s)return null;let c=s[0],d=c.replace(/(.)\/+$/,"$1"),p=s.slice(1);return{params:o.reduce((m,{paramName:x,isOptional:v},S)=>{if(x==="*"){let R=p[S]||"";d=c.slice(0,c.length-R.length).replace(/(.)\/+$/,"$1")}const C=p[S];return v&&!C?m[x]=void 0:m[x]=(C||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:n}}function EE(n,l=!1,r=!0){Jn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let o=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,g,m,x)=>{if(o.push({paramName:p,isOptional:g!=null}),g){let v=x.charAt(m+d.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,l?void 0:"i"),o]}function wE(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Jn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function wa(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,o=n.charAt(r);return o&&o!=="/"?null:n.slice(r)||"/"}var CE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function RE(n,l="/"){let{pathname:r,search:o="",hash:s=""}=typeof n=="string"?Qr(n):n,c;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?c=_v(r.substring(1),"/"):c=_v(r,l)):c=l,{pathname:c,search:jE(o),hash:AE(s)}}function _v(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Zf(n,l,r,o){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function TE(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function rb(n){let l=TE(n);return l.map((r,o)=>o===l.length-1?r.pathname:r.pathnameBase)}function tm(n,l,r,o=!1){let s;typeof n=="string"?s=Qr(n):(s={...n},mt(!s.pathname||!s.pathname.includes("?"),Zf("?","pathname","search",s)),mt(!s.pathname||!s.pathname.includes("#"),Zf("#","pathname","hash",s)),mt(!s.search||!s.search.includes("#"),Zf("#","search","hash",s)));let c=n===""||s.pathname==="",d=c?"/":s.pathname,p;if(d==null)p=r;else{let v=l.length-1;if(!o&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),v-=1;s.pathname=S.join("/")}p=v>=0?l[v]:"/"}let g=RE(s,p),m=d&&d!=="/"&&d.endsWith("/"),x=(c||d===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(m||x)&&(g.pathname+="/"),g}var Wn=n=>n.join("/").replace(/\/\/+/g,"/"),NE=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jE=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,AE=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,ME=class{constructor(n,l,r,o=!1){this.status=n,this.statusText=l||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function OE(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function kE(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ib=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ob(n,l){let r=n;if(typeof r!="string"||!CE.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,s=!1;if(ib)try{let c=new URL(window.location.href),d=r.startsWith("//")?new URL(c.protocol+r):new URL(r),p=wa(d.pathname,l);d.origin===c.origin&&p!=null?r=p+d.search+d.hash:s=!0}catch{Jn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var sb=["POST","PUT","PATCH","DELETE"];new Set(sb);var DE=["GET",...sb];new Set(DE);var $r=h.createContext(null);$r.displayName="DataRouter";var vu=h.createContext(null);vu.displayName="DataRouterState";var zE=h.createContext(!1),ub=h.createContext({isTransitioning:!1});ub.displayName="ViewTransition";var _E=h.createContext(new Map);_E.displayName="Fetchers";var LE=h.createContext(null);LE.displayName="Await";var Dn=h.createContext(null);Dn.displayName="Navigation";var co=h.createContext(null);co.displayName="Location";var Ca=h.createContext({outlet:null,matches:[],isDataRoute:!1});Ca.displayName="Route";var nm=h.createContext(null);nm.displayName="RouteError";var cb="REACT_ROUTER_ERROR",UE="REDIRECT",BE="ROUTE_ERROR_RESPONSE";function HE(n){if(n.startsWith(`${cb}:${UE}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function VE(n){if(n.startsWith(`${cb}:${BE}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new ME(l.status,l.statusText,l.data)}catch{}}function YE(n,{relative:l}={}){mt(fo(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=h.useContext(Dn),{hash:s,pathname:c,search:d}=ho(n,{relative:l}),p=c;return r!=="/"&&(p=c==="/"?r:Wn([r,c])),o.createHref({pathname:p,search:d,hash:s})}function fo(){return h.useContext(co)!=null}function Ra(){return mt(fo(),"useLocation() may be used only in the context of a <Router> component."),h.useContext(co).location}var fb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function db(n){h.useContext(Dn).static||h.useLayoutEffect(n)}function mo(){let{isDataRoute:n}=h.useContext(Ca);return n?ew():qE()}function qE(){mt(fo(),"useNavigate() may be used only in the context of a <Router> component.");let n=h.useContext($r),{basename:l,navigator:r}=h.useContext(Dn),{matches:o}=h.useContext(Ca),{pathname:s}=Ra(),c=JSON.stringify(rb(o)),d=h.useRef(!1);return db(()=>{d.current=!0}),h.useCallback((g,m={})=>{if(Jn(d.current,fb),!d.current)return;if(typeof g=="number"){r.go(g);return}let x=tm(g,JSON.parse(c),s,m.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Wn([l,x.pathname])),(m.replace?r.replace:r.push)(x,m.state,m)},[l,r,c,s,n])}h.createContext(null);function ho(n,{relative:l}={}){let{matches:r}=h.useContext(Ca),{pathname:o}=Ra(),s=JSON.stringify(rb(r));return h.useMemo(()=>tm(n,JSON.parse(s),o,l==="path"),[n,s,o,l])}function GE(n,l){return mb(n,l)}function mb(n,l,r){var N;mt(fo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=h.useContext(Dn),{matches:s}=h.useContext(Ca),c=s[s.length-1],d=c?c.params:{},p=c?c.pathname:"/",g=c?c.pathnameBase:"/",m=c&&c.route;{let T=m&&m.path||"";pb(p,!m||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let x=Ra(),v;if(l){let T=typeof l=="string"?Qr(l):l;mt(g==="/"||((N=T.pathname)==null?void 0:N.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${T.pathname}" was given in the \`location\` prop.`),v=T}else v=x;let S=v.pathname||"/",C=S;if(g!=="/"){let T=g.replace(/^\//,"").split("/");C="/"+S.replace(/^\//,"").split("/").slice(T.length).join("/")}let R=nb(n,{pathname:C});Jn(m||R!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Jn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=QE(R&&R.map(T=>Object.assign({},T,{params:Object.assign({},d,T.params),pathname:Wn([g,o.encodeLocation?o.encodeLocation(T.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:Wn([g,o.encodeLocation?o.encodeLocation(T.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),s,r);return l&&w?h.createElement(co.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},w):w}function IE(){let n=JE(),l=OE(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},c={padding:"2px 4px",backgroundColor:o},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=h.createElement(h.Fragment,null,h.createElement("p",null,"💿 Hey developer 👋"),h.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",h.createElement("code",{style:c},"ErrorBoundary")," or"," ",h.createElement("code",{style:c},"errorElement")," prop on your route.")),h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},l),r?h.createElement("pre",{style:s},r):null,d)}var XE=h.createElement(IE,null),hb=class extends h.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=VE(n.digest);r&&(n=r)}let l=n!==void 0?h.createElement(Ca.Provider,{value:this.props.routeContext},h.createElement(nm.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?h.createElement(KE,{error:n},l):l}};hb.contextType=zE;var Ff=new WeakMap;function KE({children:n,error:l}){let{basename:r}=h.useContext(Dn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let o=HE(l.digest);if(o){let s=Ff.get(l);if(s)throw s;let c=ob(o.location,r);if(ib&&!Ff.get(l))if(c.isExternal||o.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:o.replace}));throw Ff.set(l,d),d}return h.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function PE({routeContext:n,match:l,children:r}){let o=h.useContext($r);return o&&o.static&&o.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=l.route.id),h.createElement(Ca.Provider,{value:n},r)}function QE(n,l=[],r){let o=r==null?void 0:r.state;if(n==null){if(!o)return null;if(o.errors)n=o.matches;else if(l.length===0&&!o.initialized&&o.matches.length>0)n=o.matches;else return null}let s=n,c=o==null?void 0:o.errors;if(c!=null){let x=s.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);mt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,x+1))}let d=!1,p=-1;if(r&&o){d=o.renderFallback;for(let x=0;x<s.length;x++){let v=s[x];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=x),v.route.id){let{loaderData:S,errors:C}=o,R=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!C||C[v.route.id]===void 0);if(v.route.lazy||R){r.isStatic&&(d=!0),p>=0?s=s.slice(0,p+1):s=[s[0]];break}}}}let g=r==null?void 0:r.onError,m=o&&g?(x,v)=>{var S,C;g(x,{location:o.location,params:((C=(S=o.matches)==null?void 0:S[0])==null?void 0:C.params)??{},unstable_pattern:kE(o.matches),errorInfo:v})}:void 0;return s.reduceRight((x,v,S)=>{let C,R=!1,w=null,N=null;o&&(C=c&&v.route.id?c[v.route.id]:void 0,w=v.route.errorElement||XE,d&&(p<0&&S===0?(pb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,N=null):p===S&&(R=!0,N=v.route.hydrateFallbackElement||null)));let T=l.concat(s.slice(0,S+1)),D=()=>{let U;return C?U=w:R?U=N:v.route.Component?U=h.createElement(v.route.Component,null):v.route.element?U=v.route.element:U=x,h.createElement(PE,{match:v,routeContext:{outlet:x,matches:T,isDataRoute:o!=null},children:U})};return o&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?h.createElement(hb,{location:o.location,revalidation:o.revalidation,component:w,error:C,children:D(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:m}):D()},null)}function am(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $E(n){let l=h.useContext($r);return mt(l,am(n)),l}function ZE(n){let l=h.useContext(vu);return mt(l,am(n)),l}function FE(n){let l=h.useContext(Ca);return mt(l,am(n)),l}function lm(n){let l=FE(n),r=l.matches[l.matches.length-1];return mt(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function WE(){return lm("useRouteId")}function JE(){var o;let n=h.useContext(nm),l=ZE("useRouteError"),r=lm("useRouteError");return n!==void 0?n:(o=l.errors)==null?void 0:o[r]}function ew(){let{router:n}=$E("useNavigate"),l=lm("useNavigate"),r=h.useRef(!1);return db(()=>{r.current=!0}),h.useCallback(async(s,c={})=>{Jn(r.current,fb),r.current&&(typeof s=="number"?await n.navigate(s):await n.navigate(s,{fromRouteId:l,...c}))},[n,l])}var Lv={};function pb(n,l,r){!l&&!Lv[n]&&(Lv[n]=!0,Jn(!1,r))}h.memo(tw);function tw({routes:n,future:l,state:r,isStatic:o,onError:s}){return mb(n,void 0,{state:r,isStatic:o,onError:s})}function zr(n){mt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function nw({basename:n="/",children:l=null,location:r,navigationType:o="POP",navigator:s,static:c=!1,unstable_useTransitions:d}){mt(!fo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),g=h.useMemo(()=>({basename:p,navigator:s,static:c,unstable_useTransitions:d,future:{}}),[p,s,c,d]);typeof r=="string"&&(r=Qr(r));let{pathname:m="/",search:x="",hash:v="",state:S=null,key:C="default",unstable_mask:R}=r,w=h.useMemo(()=>{let N=wa(m,p);return N==null?null:{location:{pathname:N,search:x,hash:v,state:S,key:C,unstable_mask:R},navigationType:o}},[p,m,x,v,S,C,o,R]);return Jn(w!=null,`<Router basename="${p}"> is not able to match the URL "${m}${x}${v}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:h.createElement(Dn.Provider,{value:g},h.createElement(co.Provider,{children:l,value:w}))}function aw({children:n,location:l}){return GE(Ld(n),l)}function Ld(n,l=[]){let r=[];return h.Children.forEach(n,(o,s)=>{if(!h.isValidElement(o))return;let c=[...l,s];if(o.type===h.Fragment){r.push.apply(r,Ld(o.props.children,c));return}mt(o.type===zr,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),mt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let d={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(d.children=Ld(o.props.children,c)),r.push(d)}),r}var Zs="get",Fs="application/x-www-form-urlencoded";function yu(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function lw(n){return yu(n)&&n.tagName.toLowerCase()==="button"}function rw(n){return yu(n)&&n.tagName.toLowerCase()==="form"}function iw(n){return yu(n)&&n.tagName.toLowerCase()==="input"}function ow(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function sw(n,l){return n.button===0&&(!l||l==="_self")&&!ow(n)}var Ds=null;function uw(){if(Ds===null)try{new FormData(document.createElement("form"),0),Ds=!1}catch{Ds=!0}return Ds}var cw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wf(n){return n!=null&&!cw.has(n)?(Jn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fs}"`),null):n}function fw(n,l){let r,o,s,c,d;if(rw(n)){let p=n.getAttribute("action");o=p?wa(p,l):null,r=n.getAttribute("method")||Zs,s=Wf(n.getAttribute("enctype"))||Fs,c=new FormData(n)}else if(lw(n)||iw(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(o=g?wa(g,l):null,r=n.getAttribute("formmethod")||p.getAttribute("method")||Zs,s=Wf(n.getAttribute("formenctype"))||Wf(p.getAttribute("enctype"))||Fs,c=new FormData(p,n),!uw()){let{name:m,type:x,value:v}=n;if(x==="image"){let S=m?`${m}.`:"";c.append(`${S}x`,"0"),c.append(`${S}y`,"0")}else m&&c.append(m,v)}}else{if(yu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Zs,o=null,s=Fs,d=n}return c&&s==="text/plain"&&(d=c,c=void 0),{action:o,method:r.toLowerCase(),encType:s,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rm(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function dw(n,l,r,o){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${o}`:s.pathname=`${s.pathname}.${o}`:s.pathname==="/"?s.pathname=`_root.${o}`:l&&wa(s.pathname,l)==="/"?s.pathname=`${l.replace(/\/$/,"")}/_root.${o}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${o}`,s}async function mw(n,l){if(n.id in l)return l[n.id];try{let r=await import(n.module);return l[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function hw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function pw(n,l,r){let o=await Promise.all(n.map(async s=>{let c=l.routes[s.route.id];if(c){let d=await mw(c,r);return d.links?d.links():[]}return[]}));return bw(o.flat(1).filter(hw).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Uv(n,l,r,o,s,c){let d=(g,m)=>r[m]?g.route.id!==r[m].route.id:!0,p=(g,m)=>{var x;return r[m].pathname!==g.pathname||((x=r[m].route.path)==null?void 0:x.endsWith("*"))&&r[m].params["*"]!==g.params["*"]};return c==="assets"?l.filter((g,m)=>d(g,m)||p(g,m)):c==="data"?l.filter((g,m)=>{var v;let x=o.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(d(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let S=g.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function gw(n,l,{includeHydrateFallback:r}={}){return vw(n.map(o=>{let s=l.routes[o.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function vw(n){return[...new Set(n)]}function yw(n){let l={},r=Object.keys(n).sort();for(let o of r)l[o]=n[o];return l}function bw(n,l){let r=new Set;return new Set(l),n.reduce((o,s)=>{let c=JSON.stringify(yw(s));return r.has(c)||(r.add(c),o.push({key:c,link:s})),o},[])}function gb(){let n=h.useContext($r);return rm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function xw(){let n=h.useContext(vu);return rm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var im=h.createContext(void 0);im.displayName="FrameworkContext";function vb(){let n=h.useContext(im);return rm(n,"You must render this element inside a <HydratedRouter> element"),n}function Sw(n,l){let r=h.useContext(im),[o,s]=h.useState(!1),[c,d]=h.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:x,onTouchStart:v}=l,S=h.useRef(null);h.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let w=T=>{T.forEach(D=>{d(D.isIntersecting)})},N=new IntersectionObserver(w,{threshold:.5});return S.current&&N.observe(S.current),()=>{N.disconnect()}}},[n]),h.useEffect(()=>{if(o){let w=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(w)}}},[o]);let C=()=>{s(!0)},R=()=>{s(!1),d(!1)};return r?n!=="intent"?[c,S,{}]:[c,S,{onFocus:Pi(p,C),onBlur:Pi(g,R),onMouseEnter:Pi(m,C),onMouseLeave:Pi(x,R),onTouchStart:Pi(v,C)}]:[!1,S,{}]}function Pi(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function Ew({page:n,...l}){let{router:r}=gb(),o=h.useMemo(()=>nb(r.routes,n,r.basename),[r.routes,n,r.basename]);return o?h.createElement(Cw,{page:n,matches:o,...l}):null}function ww(n){let{manifest:l,routeModules:r}=vb(),[o,s]=h.useState([]);return h.useEffect(()=>{let c=!1;return pw(n,l,r).then(d=>{c||s(d)}),()=>{c=!0}},[n,l,r]),o}function Cw({page:n,matches:l,...r}){let o=Ra(),{future:s,manifest:c,routeModules:d}=vb(),{basename:p}=gb(),{loaderData:g,matches:m}=xw(),x=h.useMemo(()=>Uv(n,l,m,c,o,"data"),[n,l,m,c,o]),v=h.useMemo(()=>Uv(n,l,m,c,o,"assets"),[n,l,m,c,o]),S=h.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let w=new Set,N=!1;if(l.forEach(D=>{var M;let U=c.routes[D.route.id];!U||!U.hasLoader||(!x.some(z=>z.route.id===D.route.id)&&D.route.id in g&&((M=d[D.route.id])!=null&&M.shouldRevalidate)||U.hasClientLoader?N=!0:w.add(D.route.id))}),w.size===0)return[];let T=dw(n,p,s.unstable_trailingSlashAwareDataRequests,"data");return N&&w.size>0&&T.searchParams.set("_routes",l.filter(D=>w.has(D.route.id)).map(D=>D.route.id).join(",")),[T.pathname+T.search]},[p,s.unstable_trailingSlashAwareDataRequests,g,o,c,x,l,n,d]),C=h.useMemo(()=>gw(v,c),[v,c]),R=ww(v);return h.createElement(h.Fragment,null,S.map(w=>h.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),C.map(w=>h.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),R.map(({key:w,link:N})=>h.createElement("link",{key:w,nonce:r.nonce,...N,crossOrigin:N.crossOrigin??r.crossOrigin})))}function Rw(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var Tw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Tw&&(window.__reactRouterVersion="7.13.2")}catch{}function Nw({basename:n,children:l,unstable_useTransitions:r,window:o}){let s=h.useRef();s.current==null&&(s.current=oE({window:o,v5Compat:!0}));let c=s.current,[d,p]=h.useState({action:c.action,location:c.location}),g=h.useCallback(m=>{r===!1?p(m):h.startTransition(()=>p(m))},[r]);return h.useLayoutEffect(()=>c.listen(g),[c,g]),h.createElement(nw,{basename:n,children:l,location:d.location,navigationType:d.action,navigator:c,unstable_useTransitions:r})}var yb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hr=h.forwardRef(function({onClick:l,discover:r="render",prefetch:o="none",relative:s,reloadDocument:c,replace:d,unstable_mask:p,state:g,target:m,to:x,preventScrollReset:v,viewTransition:S,unstable_defaultShouldRevalidate:C,...R},w){let{basename:N,navigator:T,unstable_useTransitions:D}=h.useContext(Dn),U=typeof x=="string"&&yb.test(x),M=ob(x,N);x=M.to;let z=YE(x,{relative:s}),B=Ra(),V=null;if(p){let fe=tm(p,[],B.unstable_mask?B.unstable_mask.pathname:"/",!0);N!=="/"&&(fe.pathname=fe.pathname==="/"?N:Wn([N,fe.pathname])),V=T.createHref(fe)}let[H,K,F]=Sw(o,R),ne=Ow(x,{replace:d,unstable_mask:p,state:g,target:m,preventScrollReset:v,relative:s,viewTransition:S,unstable_defaultShouldRevalidate:C,unstable_useTransitions:D});function ie(fe){l&&l(fe),fe.defaultPrevented||ne(fe)}let G=!(M.isExternal||c),ce=h.createElement("a",{...R,...F,href:(G?V:void 0)||M.absoluteURL||z,onClick:G?ie:l,ref:Rw(w,K),target:m,"data-discover":!U&&r==="render"?"true":void 0});return H&&!U?h.createElement(h.Fragment,null,ce,h.createElement(Ew,{page:z})):ce});Hr.displayName="Link";var jw=h.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:o="",end:s=!1,style:c,to:d,viewTransition:p,children:g,...m},x){let v=ho(d,{relative:m.relative}),S=Ra(),C=h.useContext(vu),{navigator:R,basename:w}=h.useContext(Dn),N=C!=null&&Lw(v)&&p===!0,T=R.encodeLocation?R.encodeLocation(v).pathname:v.pathname,D=S.pathname,U=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(D=D.toLowerCase(),U=U?U.toLowerCase():null,T=T.toLowerCase()),U&&w&&(U=wa(U,w)||U);const M=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let z=D===T||!s&&D.startsWith(T)&&D.charAt(M)==="/",B=U!=null&&(U===T||!s&&U.startsWith(T)&&U.charAt(T.length)==="/"),V={isActive:z,isPending:B,isTransitioning:N},H=z?l:void 0,K;typeof o=="function"?K=o(V):K=[o,z?"active":null,B?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let F=typeof c=="function"?c(V):c;return h.createElement(Hr,{...m,"aria-current":H,className:K,ref:x,style:F,to:d,viewTransition:p},typeof g=="function"?g(V):g)});jw.displayName="NavLink";var Aw=h.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:o,replace:s,state:c,method:d=Zs,action:p,onSubmit:g,relative:m,preventScrollReset:x,viewTransition:v,unstable_defaultShouldRevalidate:S,...C},R)=>{let{unstable_useTransitions:w}=h.useContext(Dn),N=zw(),T=_w(p,{relative:m}),D=d.toLowerCase()==="get"?"get":"post",U=typeof p=="string"&&yb.test(p),M=z=>{if(g&&g(z),z.defaultPrevented)return;z.preventDefault();let B=z.nativeEvent.submitter,V=(B==null?void 0:B.getAttribute("formmethod"))||d,H=()=>N(B||z.currentTarget,{fetcherKey:l,method:V,navigate:r,replace:s,state:c,relative:m,preventScrollReset:x,viewTransition:v,unstable_defaultShouldRevalidate:S});w&&r!==!1?h.startTransition(()=>H()):H()};return h.createElement("form",{ref:R,method:D,action:T,onSubmit:o?g:M,...C,"data-discover":!U&&n==="render"?"true":void 0})});Aw.displayName="Form";function Mw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bb(n){let l=h.useContext($r);return mt(l,Mw(n)),l}function Ow(n,{target:l,replace:r,unstable_mask:o,state:s,preventScrollReset:c,relative:d,viewTransition:p,unstable_defaultShouldRevalidate:g,unstable_useTransitions:m}={}){let x=mo(),v=Ra(),S=ho(n,{relative:d});return h.useCallback(C=>{if(sw(C,l)){C.preventDefault();let R=r!==void 0?r:ao(v)===ao(S),w=()=>x(n,{replace:R,unstable_mask:o,state:s,preventScrollReset:c,relative:d,viewTransition:p,unstable_defaultShouldRevalidate:g});m?h.startTransition(()=>w()):w()}},[v,x,S,r,o,s,l,n,c,d,p,g,m])}var kw=0,Dw=()=>`__${String(++kw)}__`;function zw(){let{router:n}=bb("useSubmit"),{basename:l}=h.useContext(Dn),r=WE(),o=n.fetch,s=n.navigate;return h.useCallback(async(c,d={})=>{let{action:p,method:g,encType:m,formData:x,body:v}=fw(c,l);if(d.navigate===!1){let S=d.fetcherKey||Dw();await o(S,r,d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:v,formMethod:d.method||g,formEncType:d.encType||m,flushSync:d.flushSync})}else await s(d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:v,formMethod:d.method||g,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[o,s,l,r])}function _w(n,{relative:l}={}){let{basename:r}=h.useContext(Dn),o=h.useContext(Ca);mt(o,"useFormAction must be used inside a RouteContext");let[s]=o.matches.slice(-1),c={...ho(n||".",{relative:l})},d=Ra();if(n==null){c.search=d.search;let p=new URLSearchParams(c.search),g=p.getAll("index");if(g.some(x=>x==="")){p.delete("index"),g.filter(v=>v).forEach(v=>p.append("index",v));let x=p.toString();c.search=x?`?${x}`:""}}return(!n||n===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:Wn([r,c.pathname])),ao(c)}function Lw(n,{relative:l}={}){let r=h.useContext(ub);mt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=bb("useViewTransitionState"),s=ho(n,{relative:l});if(!r.isTransitioning)return!1;let c=wa(r.currentLocation.pathname,o)||r.currentLocation.pathname,d=wa(r.nextLocation.pathname,o)||r.nextLocation.pathname;return lu(s.pathname,d)!=null||lu(s.pathname,c)!=null}var Zr=tb();const xb=eb(Zr);var Uw=(n,l,r,o,s,c,d,p)=>{let g=document.documentElement,m=["light","dark"];function x(C){(Array.isArray(n)?n:[n]).forEach(R=>{let w=R==="class",N=w&&c?s.map(T=>c[T]||T):s;w?(g.classList.remove(...N),g.classList.add(c&&c[C]?c[C]:C)):g.setAttribute(R,C)}),v(C)}function v(C){p&&m.includes(C)&&(g.style.colorScheme=C)}function S(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)x(o);else try{let C=localStorage.getItem(l)||r,R=d&&C==="system"?S():C;x(R)}catch{}},Bw=h.createContext(void 0),Hw={setTheme:n=>{},themes:[]},Vw=()=>{var n;return(n=h.useContext(Bw))!=null?n:Hw};h.memo(({forcedTheme:n,storageKey:l,attribute:r,enableSystem:o,enableColorScheme:s,defaultTheme:c,value:d,themes:p,nonce:g,scriptProps:m})=>{let x=JSON.stringify([r,l,c,n,p,d,o,s]).slice(1,-1);return h.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?g:"",dangerouslySetInnerHTML:{__html:`(${Uw.toString()})(${x})`}})});function Yw(n){if(typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",l.appendChild(r),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n))}const qw=n=>{switch(n){case"success":return Xw;case"info":return Pw;case"warning":return Kw;case"error":return Qw;default:return null}},Gw=Array(12).fill(0),Iw=({visible:n,className:l})=>me.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},me.createElement("div",{className:"sonner-spinner"},Gw.map((r,o)=>me.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Xw=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.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"})),Kw=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},me.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"})),Pw=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.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"})),Qw=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.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"})),$w=me.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"},me.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),me.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Zw=()=>{const[n,l]=me.useState(document.hidden);return me.useEffect(()=>{const r=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),n};let Ud=1;class Fw{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{const r=this.subscribers.indexOf(l);this.subscribers.splice(r,1)}),this.publish=l=>{this.subscribers.forEach(r=>r(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var r;const{message:o,...s}=l,c=typeof(l==null?void 0:l.id)=="number"||((r=l.id)==null?void 0:r.length)>0?l.id:Ud++,d=this.toasts.find(g=>g.id===c),p=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(g=>g.id===c?(this.publish({...g,...l,id:c,title:o}),{...g,...l,id:c,dismissible:p,title:o}):g):this.addToast({title:o,...s,dismissible:p,id:c}),c},this.dismiss=l=>(l?(this.dismissedToasts.add(l),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:l,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),l),this.message=(l,r)=>this.create({...r,message:l}),this.error=(l,r)=>this.create({...r,message:l,type:"error"}),this.success=(l,r)=>this.create({...r,type:"success",message:l}),this.info=(l,r)=>this.create({...r,type:"info",message:l}),this.warning=(l,r)=>this.create({...r,type:"warning",message:l}),this.loading=(l,r)=>this.create({...r,type:"loading",message:l}),this.promise=(l,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:l,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const s=Promise.resolve(l instanceof Function?l():l);let c=o!==void 0,d;const p=s.then(async m=>{if(d=["resolve",m],me.isValidElement(m))c=!1,this.create({id:o,type:"default",message:m});else if(Jw(m)&&!m.ok){c=!1;const v=typeof r.error=="function"?await r.error(`HTTP error! status: ${m.status}`):r.error,S=typeof r.description=="function"?await r.description(`HTTP error! status: ${m.status}`):r.description,R=typeof v=="object"&&!me.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:S,...R})}else if(m instanceof Error){c=!1;const v=typeof r.error=="function"?await r.error(m):r.error,S=typeof r.description=="function"?await r.description(m):r.description,R=typeof v=="object"&&!me.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:S,...R})}else if(r.success!==void 0){c=!1;const v=typeof r.success=="function"?await r.success(m):r.success,S=typeof r.description=="function"?await r.description(m):r.description,R=typeof v=="object"&&!me.isValidElement(v)?v:{message:v};this.create({id:o,type:"success",description:S,...R})}}).catch(async m=>{if(d=["reject",m],r.error!==void 0){c=!1;const x=typeof r.error=="function"?await r.error(m):r.error,v=typeof r.description=="function"?await r.description(m):r.description,C=typeof x=="object"&&!me.isValidElement(x)?x:{message:x};this.create({id:o,type:"error",description:v,...C})}}).finally(()=>{c&&(this.dismiss(o),o=void 0),r.finally==null||r.finally.call(r)}),g=()=>new Promise((m,x)=>p.then(()=>d[0]==="reject"?x(d[1]):m(d[1])).catch(x));return typeof o!="string"&&typeof o!="number"?{unwrap:g}:Object.assign(o,{unwrap:g})},this.custom=(l,r)=>{const o=(r==null?void 0:r.id)||Ud++;return this.create({jsx:l(o),id:o,...r}),o},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const on=new Fw,Ww=(n,l)=>{const r=(l==null?void 0:l.id)||Ud++;return on.addToast({title:n,...l,id:r}),r},Jw=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",eC=Ww,tC=()=>on.toasts,nC=()=>on.getActiveToasts(),tt=Object.assign(eC,{success:on.success,info:on.info,warning:on.warning,error:on.error,custom:on.custom,message:on.message,promise:on.promise,dismiss:on.dismiss,loading:on.loading},{getHistory:tC,getToasts:nC});Yw("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function zs(n){return n.label!==void 0}const aC=3,lC="24px",rC="16px",Bv=4e3,iC=356,oC=14,sC=45,uC=200;function Qn(...n){return n.filter(Boolean).join(" ")}function cC(n){const[l,r]=n.split("-"),o=[];return l&&o.push(l),r&&o.push(r),o}const fC=n=>{var l,r,o,s,c,d,p,g,m;const{invert:x,toast:v,unstyled:S,interacting:C,setHeights:R,visibleToasts:w,heights:N,index:T,toasts:D,expanded:U,removeToast:M,defaultRichColors:z,closeButton:B,style:V,cancelButtonStyle:H,actionButtonStyle:K,className:F="",descriptionClassName:ne="",duration:ie,position:G,gap:ce,expandByDefault:fe,classNames:k,icons:_,closeButtonAriaLabel:ee="Close toast"}=n,[oe,J]=me.useState(null),[j,A]=me.useState(null),[q,$]=me.useState(!1),[I,re]=me.useState(!1),[de,se]=me.useState(!1),[he,Ye]=me.useState(!1),[ot,ct]=me.useState(!1),[xe,ve]=me.useState(0),[Ce,nt]=me.useState(0),Te=me.useRef(v.duration||ie||Bv),Ne=me.useRef(null),Ke=me.useRef(null),we=T===0,le=T+1<=w,ue=v.type,Oe=v.dismissible!==!1,De=v.className||"",zt=v.descriptionClassName||"",Pt=me.useMemo(()=>N.findIndex(Re=>Re.toastId===v.id)||0,[N,v.id]),bn=me.useMemo(()=>{var Re;return(Re=v.closeButton)!=null?Re:B},[v.closeButton,B]),zn=me.useMemo(()=>v.duration||ie||Bv,[v.duration,ie]),ht=me.useRef(0),pt=me.useRef(0),Je=me.useRef(0),jt=me.useRef(null),[cn,_t]=G.split("-"),fn=me.useMemo(()=>N.reduce((Re,st,Mt)=>Mt>=Pt?Re:Re+st.height,0),[N,Pt]),At=Zw(),ti=v.invert||x,cl=ue==="loading";pt.current=me.useMemo(()=>Pt*ce+fn,[Pt,fn]),me.useEffect(()=>{Te.current=zn},[zn]),me.useEffect(()=>{$(!0)},[]),me.useEffect(()=>{const Re=Ke.current;if(Re){const st=Re.getBoundingClientRect().height;return nt(st),R(Mt=>[{toastId:v.id,height:st,position:v.position},...Mt]),()=>R(Mt=>Mt.filter(Gt=>Gt.toastId!==v.id))}},[R,v.id]),me.useLayoutEffect(()=>{if(!q)return;const Re=Ke.current,st=Re.style.height;Re.style.height="auto";const Mt=Re.getBoundingClientRect().height;Re.style.height=st,nt(Mt),R(Gt=>Gt.find(ft=>ft.toastId===v.id)?Gt.map(ft=>ft.toastId===v.id?{...ft,height:Mt}:ft):[{toastId:v.id,height:Mt,position:v.position},...Gt])},[q,v.title,v.description,R,v.id,v.jsx,v.action,v.cancel]);const xn=me.useCallback(()=>{re(!0),ve(pt.current),R(Re=>Re.filter(st=>st.toastId!==v.id)),setTimeout(()=>{M(v)},uC)},[v,M,R,pt]);me.useEffect(()=>{if(v.promise&&ue==="loading"||v.duration===1/0||v.type==="loading")return;let Re;return U||C||At?(()=>{if(Je.current<ht.current){const Gt=new Date().getTime()-ht.current;Te.current=Te.current-Gt}Je.current=new Date().getTime()})():(()=>{Te.current!==1/0&&(ht.current=new Date().getTime(),Re=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),xn()},Te.current))})(),()=>clearTimeout(Re)},[U,C,v,ue,At,xn]),me.useEffect(()=>{v.delete&&(xn(),v.onDismiss==null||v.onDismiss.call(v,v))},[xn,v.delete]);function Na(){var Re;if(_!=null&&_.loading){var st;return me.createElement("div",{className:Qn(k==null?void 0:k.loader,v==null||(st=v.classNames)==null?void 0:st.loader,"sonner-loader"),"data-visible":ue==="loading"},_.loading)}return me.createElement(Iw,{className:Qn(k==null?void 0:k.loader,v==null||(Re=v.classNames)==null?void 0:Re.loader),visible:ue==="loading"})}const Gl=v.icon||(_==null?void 0:_[ue])||qw(ue);var fl,Gn;return me.createElement("li",{tabIndex:0,ref:Ke,className:Qn(F,De,k==null?void 0:k.toast,v==null||(l=v.classNames)==null?void 0:l.toast,k==null?void 0:k.default,k==null?void 0:k[ue],v==null||(r=v.classNames)==null?void 0:r[ue]),"data-sonner-toast":"","data-rich-colors":(fl=v.richColors)!=null?fl:z,"data-styled":!(v.jsx||v.unstyled||S),"data-mounted":q,"data-promise":!!v.promise,"data-swiped":ot,"data-removed":I,"data-visible":le,"data-y-position":cn,"data-x-position":_t,"data-index":T,"data-front":we,"data-swiping":de,"data-dismissible":Oe,"data-type":ue,"data-invert":ti,"data-swipe-out":he,"data-swipe-direction":j,"data-expanded":!!(U||fe&&q),"data-testid":v.testId,style:{"--index":T,"--toasts-before":T,"--z-index":D.length-T,"--offset":`${I?xe:pt.current}px`,"--initial-height":fe?"auto":`${Ce}px`,...V,...v.style},onDragEnd:()=>{se(!1),J(null),jt.current=null},onPointerDown:Re=>{Re.button!==2&&(cl||!Oe||(Ne.current=new Date,ve(pt.current),Re.target.setPointerCapture(Re.pointerId),Re.target.tagName!=="BUTTON"&&(se(!0),jt.current={x:Re.clientX,y:Re.clientY})))},onPointerUp:()=>{var Re,st,Mt;if(he||!Oe)return;jt.current=null;const Gt=Number(((Re=Ke.current)==null?void 0:Re.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ja=Number(((st=Ke.current)==null?void 0:st.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ft=new Date().getTime()-((Mt=Ne.current)==null?void 0:Mt.getTime()),Zt=oe==="x"?Gt:ja,dl=Math.abs(Zt)/ft;if(Math.abs(Zt)>=sC||dl>.11){ve(pt.current),v.onDismiss==null||v.onDismiss.call(v,v),A(oe==="x"?Gt>0?"right":"left":ja>0?"down":"up"),xn(),Ye(!0);return}else{var Ft,Wt;(Ft=Ke.current)==null||Ft.style.setProperty("--swipe-amount-x","0px"),(Wt=Ke.current)==null||Wt.style.setProperty("--swipe-amount-y","0px")}ct(!1),se(!1),J(null)},onPointerMove:Re=>{var st,Mt,Gt;if(!jt.current||!Oe||((st=window.getSelection())==null?void 0:st.toString().length)>0)return;const ft=Re.clientY-jt.current.y,Zt=Re.clientX-jt.current.x;var dl;const Ft=(dl=n.swipeDirections)!=null?dl:cC(G);!oe&&(Math.abs(Zt)>1||Math.abs(ft)>1)&&J(Math.abs(Zt)>Math.abs(ft)?"x":"y");let Wt={x:0,y:0};const Il=_n=>1/(1.5+Math.abs(_n)/20);if(oe==="y"){if(Ft.includes("top")||Ft.includes("bottom"))if(Ft.includes("top")&&ft<0||Ft.includes("bottom")&&ft>0)Wt.y=ft;else{const _n=ft*Il(ft);Wt.y=Math.abs(_n)<Math.abs(ft)?_n:ft}}else if(oe==="x"&&(Ft.includes("left")||Ft.includes("right")))if(Ft.includes("left")&&Zt<0||Ft.includes("right")&&Zt>0)Wt.x=Zt;else{const _n=Zt*Il(Zt);Wt.x=Math.abs(_n)<Math.abs(Zt)?_n:Zt}(Math.abs(Wt.x)>0||Math.abs(Wt.y)>0)&&ct(!0),(Mt=Ke.current)==null||Mt.style.setProperty("--swipe-amount-x",`${Wt.x}px`),(Gt=Ke.current)==null||Gt.style.setProperty("--swipe-amount-y",`${Wt.y}px`)}},bn&&!v.jsx&&ue!=="loading"?me.createElement("button",{"aria-label":ee,"data-disabled":cl,"data-close-button":!0,onClick:cl||!Oe?()=>{}:()=>{xn(),v.onDismiss==null||v.onDismiss.call(v,v)},className:Qn(k==null?void 0:k.closeButton,v==null||(o=v.classNames)==null?void 0:o.closeButton)},(Gn=_==null?void 0:_.close)!=null?Gn:$w):null,(ue||v.icon||v.promise)&&v.icon!==null&&((_==null?void 0:_[ue])!==null||v.icon)?me.createElement("div",{"data-icon":"",className:Qn(k==null?void 0:k.icon,v==null||(s=v.classNames)==null?void 0:s.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Na():null,v.type!=="loading"?Gl:null):null,me.createElement("div",{"data-content":"",className:Qn(k==null?void 0:k.content,v==null||(c=v.classNames)==null?void 0:c.content)},me.createElement("div",{"data-title":"",className:Qn(k==null?void 0:k.title,v==null||(d=v.classNames)==null?void 0:d.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?me.createElement("div",{"data-description":"",className:Qn(ne,zt,k==null?void 0:k.description,v==null||(p=v.classNames)==null?void 0:p.description)},typeof v.description=="function"?v.description():v.description):null),me.isValidElement(v.cancel)?v.cancel:v.cancel&&zs(v.cancel)?me.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||H,onClick:Re=>{zs(v.cancel)&&Oe&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,Re),xn())},className:Qn(k==null?void 0:k.cancelButton,v==null||(g=v.classNames)==null?void 0:g.cancelButton)},v.cancel.label):null,me.isValidElement(v.action)?v.action:v.action&&zs(v.action)?me.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||K,onClick:Re=>{zs(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,Re),!Re.defaultPrevented&&xn())},className:Qn(k==null?void 0:k.actionButton,v==null||(m=v.classNames)==null?void 0:m.actionButton)},v.action.label):null)};function Hv(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function dC(n,l){const r={};return[n,l].forEach((o,s)=>{const c=s===1,d=c?"--mobile-offset":"--offset",p=c?rC:lC;function g(m){["top","right","bottom","left"].forEach(x=>{r[`${d}-${x}`]=typeof m=="number"?`${m}px`:m})}typeof o=="number"||typeof o=="string"?g(o):typeof o=="object"?["top","right","bottom","left"].forEach(m=>{o[m]===void 0?r[`${d}-${m}`]=p:r[`${d}-${m}`]=typeof o[m]=="number"?`${o[m]}px`:o[m]}):g(p)}),r}const mC=me.forwardRef(function(l,r){const{id:o,invert:s,position:c="bottom-right",hotkey:d=["altKey","KeyT"],expand:p,closeButton:g,className:m,offset:x,mobileOffset:v,theme:S="light",richColors:C,duration:R,style:w,visibleToasts:N=aC,toastOptions:T,dir:D=Hv(),gap:U=oC,icons:M,containerAriaLabel:z="Notifications"}=l,[B,V]=me.useState([]),H=me.useMemo(()=>o?B.filter(q=>q.toasterId===o):B.filter(q=>!q.toasterId),[B,o]),K=me.useMemo(()=>Array.from(new Set([c].concat(H.filter(q=>q.position).map(q=>q.position)))),[H,c]),[F,ne]=me.useState([]),[ie,G]=me.useState(!1),[ce,fe]=me.useState(!1),[k,_]=me.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ee=me.useRef(null),oe=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=me.useRef(null),j=me.useRef(!1),A=me.useCallback(q=>{V($=>{var I;return(I=$.find(re=>re.id===q.id))!=null&&I.delete||on.dismiss(q.id),$.filter(({id:re})=>re!==q.id)})},[]);return me.useEffect(()=>on.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{V($=>$.map(I=>I.id===q.id?{...I,delete:!0}:I))});return}setTimeout(()=>{xb.flushSync(()=>{V($=>{const I=$.findIndex(re=>re.id===q.id);return I!==-1?[...$.slice(0,I),{...$[I],...q},...$.slice(I+1)]:[q,...$]})})})}),[B]),me.useEffect(()=>{if(S!=="system"){_(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_("dark"):_("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:$})=>{_($?"dark":"light")})}catch{q.addListener(({matches:I})=>{try{_(I?"dark":"light")}catch(re){console.error(re)}})}},[S]),me.useEffect(()=>{B.length<=1&&G(!1)},[B]),me.useEffect(()=>{const q=$=>{var I;if(d.every(se=>$[se]||$.code===se)){var de;G(!0),(de=ee.current)==null||de.focus()}$.code==="Escape"&&(document.activeElement===ee.current||(I=ee.current)!=null&&I.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[d]),me.useEffect(()=>{if(ee.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,j.current=!1)}},[ee.current]),me.createElement("section",{ref:r,"aria-label":`${z} ${oe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},K.map((q,$)=>{var I;const[re,de]=q.split("-");return H.length?me.createElement("ol",{key:q,dir:D==="auto"?Hv():D,tabIndex:-1,ref:ee,className:m,"data-sonner-toaster":!0,"data-sonner-theme":k,"data-y-position":re,"data-x-position":de,style:{"--front-toast-height":`${((I=F[0])==null?void 0:I.height)||0}px`,"--width":`${iC}px`,"--gap":`${U}px`,...w,...dC(x,v)},onBlur:se=>{j.current&&!se.currentTarget.contains(se.relatedTarget)&&(j.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||j.current||(j.current=!0,J.current=se.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{ce||G(!1)},onDragEnd:()=>G(!1),onPointerDown:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||fe(!0)},onPointerUp:()=>fe(!1)},H.filter(se=>!se.position&&$===0||se.position===q).map((se,he)=>{var Ye,ot;return me.createElement(fC,{key:se.id,icons:M,index:he,toast:se,defaultRichColors:C,duration:(Ye=T==null?void 0:T.duration)!=null?Ye:R,className:T==null?void 0:T.className,descriptionClassName:T==null?void 0:T.descriptionClassName,invert:s,visibleToasts:N,closeButton:(ot=T==null?void 0:T.closeButton)!=null?ot:g,interacting:ce,position:q,style:T==null?void 0:T.style,unstyled:T==null?void 0:T.unstyled,classNames:T==null?void 0:T.classNames,cancelButtonStyle:T==null?void 0:T.cancelButtonStyle,actionButtonStyle:T==null?void 0:T.actionButtonStyle,closeButtonAriaLabel:T==null?void 0:T.closeButtonAriaLabel,removeToast:A,toasts:H.filter(ct=>ct.position==se.position),heights:F.filter(ct=>ct.position==se.position),setHeights:ne,expandByDefault:p,gap:U,expanded:ie,swipeDirections:l.swipeDirections})})):null}))});/**
|
|
61
|
+
* @license lucide-react v1.7.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const Sb=(...n)=>n.filter((l,r,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===r).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v1.7.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const hC=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
71
|
+
* @license lucide-react v1.7.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const pC=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,o)=>o?o.toUpperCase():r.toLowerCase());/**
|
|
76
|
+
* @license lucide-react v1.7.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const Vv=n=>{const l=pC(n);return l.charAt(0).toUpperCase()+l.slice(1)};/**
|
|
81
|
+
* @license lucide-react v1.7.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/var Jf={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"};/**
|
|
86
|
+
* @license lucide-react v1.7.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const gC=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},vC=h.createContext({}),yC=()=>h.useContext(vC),bC=h.forwardRef(({color:n,size:l,strokeWidth:r,absoluteStrokeWidth:o,className:s="",children:c,iconNode:d,...p},g)=>{const{size:m=24,strokeWidth:x=2,absoluteStrokeWidth:v=!1,color:S="currentColor",className:C=""}=yC()??{},R=o??v?Number(r??x)*24/Number(l??m):r??x;return h.createElement("svg",{ref:g,...Jf,width:l??m??Jf.width,height:l??m??Jf.height,stroke:n??S,strokeWidth:R,className:Sb("lucide",C,s),...!c&&!gC(p)&&{"aria-hidden":"true"},...p},[...d.map(([w,N])=>h.createElement(w,N)),...Array.isArray(c)?c:[c]])});/**
|
|
91
|
+
* @license lucide-react v1.7.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const Dt=(n,l)=>{const r=h.forwardRef(({className:o,...s},c)=>h.createElement(bC,{ref:c,iconNode:l,className:Sb(`lucide-${hC(Vv(n))}`,`lucide-${n}`,o),...s}));return r.displayName=Vv(n),r};/**
|
|
96
|
+
* @license lucide-react v1.7.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const xC=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Fr=Dt("arrow-left",xC);/**
|
|
101
|
+
* @license lucide-react v1.7.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const SC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Wr=Dt("arrow-right",SC);/**
|
|
106
|
+
* @license lucide-react v1.7.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const EC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jr=Dt("check",EC);/**
|
|
111
|
+
* @license lucide-react v1.7.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const wC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],CC=Dt("circle-check",wC);/**
|
|
116
|
+
* @license lucide-react v1.7.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const RC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],TC=Dt("circle",RC);/**
|
|
121
|
+
* @license lucide-react v1.7.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const NC=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],jC=Dt("command",NC);/**
|
|
126
|
+
* @license lucide-react v1.7.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const AC=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],Eb=Dt("hexagon",AC);/**
|
|
131
|
+
* @license lucide-react v1.7.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const MC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],OC=Dt("info",MC);/**
|
|
136
|
+
* @license lucide-react v1.7.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const kC=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],wb=Dt("layout-dashboard",kC);/**
|
|
141
|
+
* @license lucide-react v1.7.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const DC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],$t=Dt("loader-circle",DC);/**
|
|
146
|
+
* @license lucide-react v1.7.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const zC=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],_C=Dt("octagon-x",zC);/**
|
|
151
|
+
* @license lucide-react v1.7.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const LC=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Ji=Dt("play",LC);/**
|
|
156
|
+
* @license lucide-react v1.7.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const UC=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Cb=Dt("search",UC);/**
|
|
161
|
+
* @license lucide-react v1.7.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const BC=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rb=Dt("settings",BC);/**
|
|
166
|
+
* @license lucide-react v1.7.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const HC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Tb=Dt("square",HC);/**
|
|
171
|
+
* @license lucide-react v1.7.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const VC=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],YC=Dt("triangle-alert",VC);/**
|
|
176
|
+
* @license lucide-react v1.7.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const qC=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],GC=Dt("wand-sparkles",qC);/**
|
|
181
|
+
* @license lucide-react v1.7.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const IC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],om=Dt("x",IC),XC=({...n})=>{const{theme:l="system"}=Vw();return y.jsx(mC,{theme:l,className:"toaster group",icons:{success:y.jsx(CC,{className:"size-4"}),info:y.jsx(OC,{className:"size-4"}),warning:y.jsx(YC,{className:"size-4"}),error:y.jsx(_C,{className:"size-4"}),loading:y.jsx($t,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...n})},Yv=200,qv=500,KC=3e4;function PC(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}function sm(){const[n,l]=h.useState(!1),[r,o]=h.useState(null),[s,c]=h.useState([]),d=h.useRef(new Map),p=h.useRef(null),g=h.useRef(qv),m=h.useRef(null),x=h.useRef(!1),v=h.useCallback((S,C)=>{const R=d.current;return R.has(S)||R.set(S,new Set),R.get(S).add(C),()=>{var w;(w=R.get(S))==null||w.delete(C)}},[]);return h.useEffect(()=>{x.current=!1;function S(){if(x.current)return;const C=new WebSocket(PC());p.current=C,C.onopen=()=>{x.current||(l(!0),g.current=qv)},C.onmessage=R=>{if(!x.current)try{const w=JSON.parse(R.data);o(w),c(T=>{const D=[...T,w];return D.length>Yv?D.slice(-Yv):D});const N=d.current.get(w.type);if(N)for(const T of N)T(w)}catch{}},C.onclose=()=>{if(x.current)return;l(!1),p.current=null;const R=g.current;g.current=Math.min(R*2,KC),m.current=setTimeout(S,R)},C.onerror=()=>{C.close()}}return S(),()=>{x.current=!0,m.current&&clearTimeout(m.current),p.current&&(p.current.onclose=null,p.current.close())}},[]),{lastEvent:r,isConnected:n,events:s,on:v}}const QC=new Set(["task:started","task:done","task:cancelled","task:timeout","run:complete"]);function Nb(n,l){const[r,o]=h.useState([]),[s,c]=h.useState(!1),[d,p]=h.useState(null),g=h.useCallback(async()=>{if(n){c(!0),p(null);try{const m=await fetch(`/api/projects/${encodeURIComponent(n)}/tasks`);if(!m.ok)throw new Error(`HTTP ${m.status}`);const x=await m.json();o(x.tasks)}catch(m){p(m.message)}finally{c(!1)}}},[n]);return h.useEffect(()=>{g()},[g]),h.useEffect(()=>{l.lastEvent&&QC.has(l.lastEvent.type)&&g()},[l.lastEvent,g]),{tasks:r,isLoading:s,error:d,refetch:g}}async function ed(n,l){const r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:l?JSON.stringify(l):void 0});if(!r.ok){const o=await r.json().catch(()=>({error:`HTTP ${r.status}`}));throw new Error(o.error??`HTTP ${r.status}`)}}function um(n){const[l,r]=h.useState(null),[o,s]=h.useState(!1),c=h.useCallback(async()=>{try{const m=await fetch("/api/status");if(!m.ok)return;const x=await m.json();r(x),s(x.isRunning)}catch{}},[]);h.useEffect(()=>{c()},[c]),h.useEffect(()=>{if(n.lastEvent)switch(n.lastEvent.type){case"run:started":s(!0);break;case"run:stopped":case"run:complete":s(!1),c();break}},[n.lastEvent,c]);const d=h.useCallback(async(m,x)=>{await ed("/api/run/sprint",{projectId:m,tag:x}),s(!0)},[]),p=h.useCallback(async(m,x)=>{await ed("/api/run/epic",{projectId:m,epicId:x}),s(!0)},[]),g=h.useCallback(async()=>{await ed("/api/run/stop")},[]);return{startSprint:d,startEpic:p,stop:g,isRunning:o,status:l}}var Gv=1,$C=.9,ZC=.8,FC=.17,td=.1,nd=.999,WC=.9999,JC=.99,eR=/[\\\/_+.#"@\[\(\{&]/,tR=/[\\\/_+.#"@\[\(\{&]/g,nR=/[\s-]/,jb=/[\s-]/g;function Bd(n,l,r,o,s,c,d){if(c===l.length)return s===n.length?Gv:JC;var p=`${s},${c}`;if(d[p]!==void 0)return d[p];for(var g=o.charAt(c),m=r.indexOf(g,s),x=0,v,S,C,R;m>=0;)v=Bd(n,l,r,o,m+1,c+1,d),v>x&&(m===s?v*=Gv:eR.test(n.charAt(m-1))?(v*=ZC,C=n.slice(s,m-1).match(tR),C&&s>0&&(v*=Math.pow(nd,C.length))):nR.test(n.charAt(m-1))?(v*=$C,R=n.slice(s,m-1).match(jb),R&&s>0&&(v*=Math.pow(nd,R.length))):(v*=FC,s>0&&(v*=Math.pow(nd,m-s))),n.charAt(m)!==l.charAt(c)&&(v*=WC)),(v<td&&r.charAt(m-1)===o.charAt(c+1)||o.charAt(c+1)===o.charAt(c)&&r.charAt(m-1)!==o.charAt(c))&&(S=Bd(n,l,r,o,m+1,c+2,d),S*td>v&&(v=S*td)),v>x&&(x=v),m=r.indexOf(g,m+1);return d[p]=x,x}function Iv(n){return n.toLowerCase().replace(jb," ")}function aR(n,l,r){return n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,Bd(n,l,Iv(n),Iv(l),0,0,{})}function rl(n,l,{checkForDefaultPrevented:r=!0}={}){return function(s){if(n==null||n(s),r===!1||!s.defaultPrevented)return l==null?void 0:l(s)}}function Xv(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function il(...n){return l=>{let r=!1;const o=n.map(s=>{const c=Xv(s,l);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<o.length;s++){const c=o[s];typeof c=="function"?c():Xv(n[s],null)}}}}function Bl(...n){return h.useCallback(il(...n),n)}function lR(n,l){const r=h.createContext(l),o=c=>{const{children:d,...p}=c,g=h.useMemo(()=>p,Object.values(p));return y.jsx(r.Provider,{value:g,children:d})};o.displayName=n+"Provider";function s(c){const d=h.useContext(r);if(d)return d;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[o,s]}function rR(n,l=[]){let r=[];function o(c,d){const p=h.createContext(d),g=r.length;r=[...r,d];const m=v=>{var T;const{scope:S,children:C,...R}=v,w=((T=S==null?void 0:S[n])==null?void 0:T[g])||p,N=h.useMemo(()=>R,Object.values(R));return y.jsx(w.Provider,{value:N,children:C})};m.displayName=c+"Provider";function x(v,S){var w;const C=((w=S==null?void 0:S[n])==null?void 0:w[g])||p,R=h.useContext(C);if(R)return R;if(d!==void 0)return d;throw new Error(`\`${v}\` must be used within \`${c}\``)}return[m,x]}const s=()=>{const c=r.map(d=>h.createContext(d));return function(p){const g=(p==null?void 0:p[n])||c;return h.useMemo(()=>({[`__scope${n}`]:{...p,[n]:g}}),[p,g])}};return s.scopeName=n,[o,iR(s,...l)]}function iR(...n){const l=n[0];if(n.length===1)return l;const r=()=>{const o=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const d=o.reduce((p,{useScope:g,scopeName:m})=>{const v=g(c)[`__scope${m}`];return{...p,...v}},{});return h.useMemo(()=>({[`__scope${l.scopeName}`]:d}),[d])}};return r.scopeName=l.scopeName,r}var lo=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},oR=uo[" useId ".trim().toString()]||(()=>{}),sR=0;function Ea(n){const[l,r]=h.useState(oR());return lo(()=>{r(o=>o??String(sR++))},[n]),l?`radix-${l}`:""}var uR=uo[" useInsertionEffect ".trim().toString()]||lo;function cR({prop:n,defaultProp:l,onChange:r=()=>{},caller:o}){const[s,c,d]=fR({defaultProp:l,onChange:r}),p=n!==void 0,g=p?n:s;{const x=h.useRef(n!==void 0);h.useEffect(()=>{const v=x.current;v!==p&&console.warn(`${o} is changing from ${v?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=p},[p,o])}const m=h.useCallback(x=>{var v;if(p){const S=dR(x)?x(n):x;S!==n&&((v=d.current)==null||v.call(d,S))}else c(x)},[p,n,c,d]);return[g,m]}function fR({defaultProp:n,onChange:l}){const[r,o]=h.useState(n),s=h.useRef(r),c=h.useRef(l);return uR(()=>{c.current=l},[l]),h.useEffect(()=>{var d;s.current!==r&&((d=c.current)==null||d.call(c,r),s.current=r)},[r,s]),[r,o,c]}function dR(n){return typeof n=="function"}function po(n){const l=mR(n),r=h.forwardRef((o,s)=>{const{children:c,...d}=o,p=h.Children.toArray(c),g=p.find(pR);if(g){const m=g.props.children,x=p.map(v=>v===g?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:v);return y.jsx(l,{...d,ref:s,children:h.isValidElement(m)?h.cloneElement(m,void 0,x):null})}return y.jsx(l,{...d,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}function mR(n){const l=h.forwardRef((r,o)=>{const{children:s,...c}=r;if(h.isValidElement(s)){const d=vR(s),p=gR(c,s.props);return s.type!==h.Fragment&&(p.ref=o?il(o,d):d),h.cloneElement(s,p)}return h.Children.count(s)>1?h.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var hR=Symbol("radix.slottable");function pR(n){return h.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===hR}function gR(n,l){const r={...l};for(const o in l){const s=n[o],c=l[o];/^on[A-Z]/.test(o)?s&&c?r[o]=(...p)=>{const g=c(...p);return s(...p),g}:s&&(r[o]=s):o==="style"?r[o]={...s,...c}:o==="className"&&(r[o]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function vR(n){var o,s;let l=(o=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:o.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?n.ref:(l=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var yR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ab=yR.reduce((n,l)=>{const r=po(`Primitive.${l}`),o=h.forwardRef((s,c)=>{const{asChild:d,...p}=s,g=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(g,{...p,ref:c})});return o.displayName=`Primitive.${l}`,{...n,[l]:o}},{});function bR(n,l){n&&Zr.flushSync(()=>n.dispatchEvent(l))}function ro(n){const l=h.useRef(n);return h.useEffect(()=>{l.current=n}),h.useMemo(()=>(...r)=>{var o;return(o=l.current)==null?void 0:o.call(l,...r)},[])}function xR(n,l=globalThis==null?void 0:globalThis.document){const r=ro(n);h.useEffect(()=>{const o=s=>{s.key==="Escape"&&r(s)};return l.addEventListener("keydown",o,{capture:!0}),()=>l.removeEventListener("keydown",o,{capture:!0})},[r,l])}var SR="DismissableLayer",Hd="dismissableLayer.update",ER="dismissableLayer.pointerDownOutside",wR="dismissableLayer.focusOutside",Kv,Mb=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ob=h.forwardRef((n,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,onDismiss:p,...g}=n,m=h.useContext(Mb),[x,v]=h.useState(null),S=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=h.useState({}),R=Bl(l,V=>v(V)),w=Array.from(m.layers),[N]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(N),D=x?w.indexOf(x):-1,U=m.layersWithOutsidePointerEventsDisabled.size>0,M=D>=T,z=TR(V=>{const H=V.target,K=[...m.branches].some(F=>F.contains(H));!M||K||(s==null||s(V),d==null||d(V),V.defaultPrevented||p==null||p())},S),B=NR(V=>{const H=V.target;[...m.branches].some(F=>F.contains(H))||(c==null||c(V),d==null||d(V),V.defaultPrevented||p==null||p())},S);return xR(V=>{D===m.layers.size-1&&(o==null||o(V),!V.defaultPrevented&&p&&(V.preventDefault(),p()))},S),h.useEffect(()=>{if(x)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Kv=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(x)),m.layers.add(x),Pv(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Kv)}},[x,S,r,m]),h.useEffect(()=>()=>{x&&(m.layers.delete(x),m.layersWithOutsidePointerEventsDisabled.delete(x),Pv())},[x,m]),h.useEffect(()=>{const V=()=>C({});return document.addEventListener(Hd,V),()=>document.removeEventListener(Hd,V)},[]),y.jsx(Ab.div,{...g,ref:R,style:{pointerEvents:U?M?"auto":"none":void 0,...n.style},onFocusCapture:rl(n.onFocusCapture,B.onFocusCapture),onBlurCapture:rl(n.onBlurCapture,B.onBlurCapture),onPointerDownCapture:rl(n.onPointerDownCapture,z.onPointerDownCapture)})});Ob.displayName=SR;var CR="DismissableLayerBranch",RR=h.forwardRef((n,l)=>{const r=h.useContext(Mb),o=h.useRef(null),s=Bl(l,o);return h.useEffect(()=>{const c=o.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),y.jsx(Ab.div,{...n,ref:s})});RR.displayName=CR;function TR(n,l=globalThis==null?void 0:globalThis.document){const r=ro(n),o=h.useRef(!1),s=h.useRef(()=>{});return h.useEffect(()=>{const c=p=>{if(p.target&&!o.current){let g=function(){kb(ER,r,m,{discrete:!0})};const m={originalEvent:p};p.pointerType==="touch"?(l.removeEventListener("click",s.current),s.current=g,l.addEventListener("click",s.current,{once:!0})):g()}else l.removeEventListener("click",s.current);o.current=!1},d=window.setTimeout(()=>{l.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(d),l.removeEventListener("pointerdown",c),l.removeEventListener("click",s.current)}},[l,r]),{onPointerDownCapture:()=>o.current=!0}}function NR(n,l=globalThis==null?void 0:globalThis.document){const r=ro(n),o=h.useRef(!1);return h.useEffect(()=>{const s=c=>{c.target&&!o.current&&kb(wR,r,{originalEvent:c},{discrete:!1})};return l.addEventListener("focusin",s),()=>l.removeEventListener("focusin",s)},[l,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Pv(){const n=new CustomEvent(Hd);document.dispatchEvent(n)}function kb(n,l,r,{discrete:o}){const s=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});l&&s.addEventListener(n,l,{once:!0}),o?bR(s,c):s.dispatchEvent(c)}var jR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],AR=jR.reduce((n,l)=>{const r=po(`Primitive.${l}`),o=h.forwardRef((s,c)=>{const{asChild:d,...p}=s,g=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(g,{...p,ref:c})});return o.displayName=`Primitive.${l}`,{...n,[l]:o}},{}),ad="focusScope.autoFocusOnMount",ld="focusScope.autoFocusOnUnmount",Qv={bubbles:!1,cancelable:!0},MR="FocusScope",Db=h.forwardRef((n,l)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...d}=n,[p,g]=h.useState(null),m=ro(s),x=ro(c),v=h.useRef(null),S=Bl(l,w=>g(w)),C=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(o){let w=function(U){if(C.paused||!p)return;const M=U.target;p.contains(M)?v.current=M:nl(v.current,{select:!0})},N=function(U){if(C.paused||!p)return;const M=U.relatedTarget;M!==null&&(p.contains(M)||nl(v.current,{select:!0}))},T=function(U){if(document.activeElement===document.body)for(const z of U)z.removedNodes.length>0&&nl(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",N);const D=new MutationObserver(T);return p&&D.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",N),D.disconnect()}}},[o,p,C.paused]),h.useEffect(()=>{if(p){Zv.add(C);const w=document.activeElement;if(!p.contains(w)){const T=new CustomEvent(ad,Qv);p.addEventListener(ad,m),p.dispatchEvent(T),T.defaultPrevented||(OR(LR(zb(p)),{select:!0}),document.activeElement===w&&nl(p))}return()=>{p.removeEventListener(ad,m),setTimeout(()=>{const T=new CustomEvent(ld,Qv);p.addEventListener(ld,x),p.dispatchEvent(T),T.defaultPrevented||nl(w??document.body,{select:!0}),p.removeEventListener(ld,x),Zv.remove(C)},0)}}},[p,m,x,C]);const R=h.useCallback(w=>{if(!r&&!o||C.paused)return;const N=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(N&&T){const D=w.currentTarget,[U,M]=kR(D);U&&M?!w.shiftKey&&T===M?(w.preventDefault(),r&&nl(U,{select:!0})):w.shiftKey&&T===U&&(w.preventDefault(),r&&nl(M,{select:!0})):T===D&&w.preventDefault()}},[r,o,C.paused]);return y.jsx(AR.div,{tabIndex:-1,...d,ref:S,onKeyDown:R})});Db.displayName=MR;function OR(n,{select:l=!1}={}){const r=document.activeElement;for(const o of n)if(nl(o,{select:l}),document.activeElement!==r)return}function kR(n){const l=zb(n),r=$v(l,n),o=$v(l.reverse(),n);return[r,o]}function zb(n){const l=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function $v(n,l){for(const r of n)if(!DR(r,{upTo:l}))return r}function DR(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function zR(n){return n instanceof HTMLInputElement&&"select"in n}function nl(n,{select:l=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&zR(n)&&l&&n.select()}}var Zv=_R();function _R(){let n=[];return{add(l){const r=n[0];l!==r&&(r==null||r.pause()),n=Fv(n,l),n.unshift(l)},remove(l){var r;n=Fv(n,l),(r=n[0])==null||r.resume()}}}function Fv(n,l){const r=[...n],o=r.indexOf(l);return o!==-1&&r.splice(o,1),r}function LR(n){return n.filter(l=>l.tagName!=="A")}var UR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],BR=UR.reduce((n,l)=>{const r=po(`Primitive.${l}`),o=h.forwardRef((s,c)=>{const{asChild:d,...p}=s,g=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(g,{...p,ref:c})});return o.displayName=`Primitive.${l}`,{...n,[l]:o}},{}),HR="Portal",_b=h.forwardRef((n,l)=>{var p;const{container:r,...o}=n,[s,c]=h.useState(!1);lo(()=>c(!0),[]);const d=r||s&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return d?xb.createPortal(y.jsx(BR.div,{...o,ref:l}),d):null});_b.displayName=HR;function VR(n,l){return h.useReducer((r,o)=>l[r][o]??r,n)}var bu=n=>{const{present:l,children:r}=n,o=YR(l),s=typeof r=="function"?r({present:o.isPresent}):h.Children.only(r),c=Bl(o.ref,qR(s));return typeof r=="function"||o.isPresent?h.cloneElement(s,{ref:c}):null};bu.displayName="Presence";function YR(n){const[l,r]=h.useState(),o=h.useRef(null),s=h.useRef(n),c=h.useRef("none"),d=n?"mounted":"unmounted",[p,g]=VR(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const m=_s(o.current);c.current=p==="mounted"?m:"none"},[p]),lo(()=>{const m=o.current,x=s.current;if(x!==n){const S=c.current,C=_s(m);n?g("MOUNT"):C==="none"||(m==null?void 0:m.display)==="none"?g("UNMOUNT"):g(x&&S!==C?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,g]),lo(()=>{if(l){let m;const x=l.ownerDocument.defaultView??window,v=C=>{const w=_s(o.current).includes(CSS.escape(C.animationName));if(C.target===l&&w&&(g("ANIMATION_END"),!s.current)){const N=l.style.animationFillMode;l.style.animationFillMode="forwards",m=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=N)})}},S=C=>{C.target===l&&(c.current=_s(o.current))};return l.addEventListener("animationstart",S),l.addEventListener("animationcancel",v),l.addEventListener("animationend",v),()=>{x.clearTimeout(m),l.removeEventListener("animationstart",S),l.removeEventListener("animationcancel",v),l.removeEventListener("animationend",v)}}else g("ANIMATION_END")},[l,g]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:h.useCallback(m=>{o.current=m?getComputedStyle(m):null,r(m)},[])}}function _s(n){return(n==null?void 0:n.animationName)||"none"}function qR(n){var o,s;let l=(o=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:o.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?n.ref:(l=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var GR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],go=GR.reduce((n,l)=>{const r=po(`Primitive.${l}`),o=h.forwardRef((s,c)=>{const{asChild:d,...p}=s,g=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(g,{...p,ref:c})});return o.displayName=`Primitive.${l}`,{...n,[l]:o}},{}),rd=0;function IR(){h.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Wv()),document.body.insertAdjacentElement("beforeend",n[1]??Wv()),rd++,()=>{rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),rd--}},[])}function Wv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Fn=function(){return Fn=Object.assign||function(l){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(l[c]=r[c])}return l},Fn.apply(this,arguments)};function Lb(n,l){var r={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&l.indexOf(o)<0&&(r[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(n);s<o.length;s++)l.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(n,o[s])&&(r[o[s]]=n[o[s]]);return r}function XR(n,l,r){if(r||arguments.length===2)for(var o=0,s=l.length,c;o<s;o++)(c||!(o in l))&&(c||(c=Array.prototype.slice.call(l,0,o)),c[o]=l[o]);return n.concat(c||Array.prototype.slice.call(l))}var Ws="right-scroll-bar-position",Js="width-before-scroll-bar",KR="with-scroll-bars-hidden",PR="--removed-body-scroll-bar-size";function id(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function QR(n,l){var r=h.useState(function(){return{value:n,callback:l,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=l,r.facade}var $R=typeof window<"u"?h.useLayoutEffect:h.useEffect,Jv=new WeakMap;function ZR(n,l){var r=QR(null,function(o){return n.forEach(function(s){return id(s,o)})});return $R(function(){var o=Jv.get(r);if(o){var s=new Set(o),c=new Set(n),d=r.current;s.forEach(function(p){c.has(p)||id(p,null)}),c.forEach(function(p){s.has(p)||id(p,d)})}Jv.set(r,n)},[n]),r}function FR(n){return n}function WR(n,l){l===void 0&&(l=FR);var r=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(c){var d=l(c,o);return r.push(d),function(){r=r.filter(function(p){return p!==d})}},assignSyncMedium:function(c){for(o=!0;r.length;){var d=r;r=[],d.forEach(c)}r={push:function(p){return c(p)},filter:function(){return r}}},assignMedium:function(c){o=!0;var d=[];if(r.length){var p=r;r=[],p.forEach(c),d=r}var g=function(){var x=d;d=[],x.forEach(c)},m=function(){return Promise.resolve().then(g)};m(),r={push:function(x){d.push(x),m()},filter:function(x){return d=d.filter(x),r}}}};return s}function JR(n){n===void 0&&(n={});var l=WR(null);return l.options=Fn({async:!0,ssr:!1},n),l}var Ub=function(n){var l=n.sideCar,r=Lb(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=l.read();if(!o)throw new Error("Sidecar medium not found");return h.createElement(o,Fn({},r))};Ub.isSideCarExport=!0;function eT(n,l){return n.useMedium(l),Ub}var Bb=JR(),od=function(){},xu=h.forwardRef(function(n,l){var r=h.useRef(null),o=h.useState({onScrollCapture:od,onWheelCapture:od,onTouchMoveCapture:od}),s=o[0],c=o[1],d=n.forwardProps,p=n.children,g=n.className,m=n.removeScrollBar,x=n.enabled,v=n.shards,S=n.sideCar,C=n.noRelative,R=n.noIsolation,w=n.inert,N=n.allowPinchZoom,T=n.as,D=T===void 0?"div":T,U=n.gapMode,M=Lb(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=S,B=ZR([r,l]),V=Fn(Fn({},M),s);return h.createElement(h.Fragment,null,x&&h.createElement(z,{sideCar:Bb,removeScrollBar:m,shards:v,noRelative:C,noIsolation:R,inert:w,setCallbacks:c,allowPinchZoom:!!N,lockRef:r,gapMode:U}),d?h.cloneElement(h.Children.only(p),Fn(Fn({},V),{ref:B})):h.createElement(D,Fn({},V,{className:g,ref:B}),p))});xu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xu.classNames={fullWidth:Js,zeroRight:Ws};var tT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function nT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=tT();return l&&n.setAttribute("nonce",l),n}function aT(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function lT(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var rT=function(){var n=0,l=null;return{add:function(r){n==0&&(l=nT())&&(aT(l,r),lT(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},iT=function(){var n=rT();return function(l,r){h.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},Hb=function(){var n=iT(),l=function(r){var o=r.styles,s=r.dynamic;return n(o,s),null};return l},oT={left:0,top:0,right:0,gap:0},sd=function(n){return parseInt(n||"",10)||0},sT=function(n){var l=window.getComputedStyle(document.body),r=l[n==="padding"?"paddingLeft":"marginLeft"],o=l[n==="padding"?"paddingTop":"marginTop"],s=l[n==="padding"?"paddingRight":"marginRight"];return[sd(r),sd(o),sd(s)]},uT=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return oT;var l=sT(n),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,o-r+l[2]-l[0])}},cT=Hb(),Vr="data-scroll-locked",fT=function(n,l,r,o){var s=n.left,c=n.top,d=n.right,p=n.gap;return r===void 0&&(r="margin"),`
|
|
186
|
+
.`.concat(KR,` {
|
|
187
|
+
overflow: hidden `).concat(o,`;
|
|
188
|
+
padding-right: `).concat(p,"px ").concat(o,`;
|
|
189
|
+
}
|
|
190
|
+
body[`).concat(Vr,`] {
|
|
191
|
+
overflow: hidden `).concat(o,`;
|
|
192
|
+
overscroll-behavior: contain;
|
|
193
|
+
`).concat([l&&"position: relative ".concat(o,";"),r==="margin"&&`
|
|
194
|
+
padding-left: `.concat(s,`px;
|
|
195
|
+
padding-top: `).concat(c,`px;
|
|
196
|
+
padding-right: `).concat(d,`px;
|
|
197
|
+
margin-left:0;
|
|
198
|
+
margin-top:0;
|
|
199
|
+
margin-right: `).concat(p,"px ").concat(o,`;
|
|
200
|
+
`),r==="padding"&&"padding-right: ".concat(p,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.`).concat(Ws,` {
|
|
204
|
+
right: `).concat(p,"px ").concat(o,`;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.`).concat(Js,` {
|
|
208
|
+
margin-right: `).concat(p,"px ").concat(o,`;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.`).concat(Ws," .").concat(Ws,` {
|
|
212
|
+
right: 0 `).concat(o,`;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.`).concat(Js," .").concat(Js,` {
|
|
216
|
+
margin-right: 0 `).concat(o,`;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
body[`).concat(Vr,`] {
|
|
220
|
+
`).concat(PR,": ").concat(p,`px;
|
|
221
|
+
}
|
|
222
|
+
`)},ey=function(){var n=parseInt(document.body.getAttribute(Vr)||"0",10);return isFinite(n)?n:0},dT=function(){h.useEffect(function(){return document.body.setAttribute(Vr,(ey()+1).toString()),function(){var n=ey()-1;n<=0?document.body.removeAttribute(Vr):document.body.setAttribute(Vr,n.toString())}},[])},mT=function(n){var l=n.noRelative,r=n.noImportant,o=n.gapMode,s=o===void 0?"margin":o;dT();var c=h.useMemo(function(){return uT(s)},[s]);return h.createElement(cT,{styles:fT(c,!l,s,r?"":"!important")})},Vd=!1;if(typeof window<"u")try{var Ls=Object.defineProperty({},"passive",{get:function(){return Vd=!0,!0}});window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{Vd=!1}var Ar=Vd?{passive:!1}:!1,hT=function(n){return n.tagName==="TEXTAREA"},Vb=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!hT(n)&&r[l]==="visible")},pT=function(n){return Vb(n,"overflowY")},gT=function(n){return Vb(n,"overflowX")},ty=function(n,l){var r=l.ownerDocument,o=l;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=Yb(n,o);if(s){var c=qb(n,o),d=c[1],p=c[2];if(d>p)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},vT=function(n){var l=n.scrollTop,r=n.scrollHeight,o=n.clientHeight;return[l,r,o]},yT=function(n){var l=n.scrollLeft,r=n.scrollWidth,o=n.clientWidth;return[l,r,o]},Yb=function(n,l){return n==="v"?pT(l):gT(l)},qb=function(n,l){return n==="v"?vT(l):yT(l)},bT=function(n,l){return n==="h"&&l==="rtl"?-1:1},xT=function(n,l,r,o,s){var c=bT(n,window.getComputedStyle(l).direction),d=c*o,p=r.target,g=l.contains(p),m=!1,x=d>0,v=0,S=0;do{if(!p)break;var C=qb(n,p),R=C[0],w=C[1],N=C[2],T=w-N-c*R;(R||T)&&Yb(n,p)&&(v+=T,S+=R);var D=p.parentNode;p=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!g&&p!==document.body||g&&(l.contains(p)||l===p));return(x&&Math.abs(v)<1||!x&&Math.abs(S)<1)&&(m=!0),m},Us=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},ny=function(n){return[n.deltaX,n.deltaY]},ay=function(n){return n&&"current"in n?n.current:n},ST=function(n,l){return n[0]===l[0]&&n[1]===l[1]},ET=function(n){return`
|
|
223
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
224
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
225
|
+
`)},wT=0,Mr=[];function CT(n){var l=h.useRef([]),r=h.useRef([0,0]),o=h.useRef(),s=h.useState(wT++)[0],c=h.useState(Hb)[0],d=h.useRef(n);h.useEffect(function(){d.current=n},[n]),h.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var w=XR([n.lockRef.current],(n.shards||[]).map(ay),!0).filter(Boolean);return w.forEach(function(N){return N.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var p=h.useCallback(function(w,N){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!d.current.allowPinchZoom;var T=Us(w),D=r.current,U="deltaX"in w?w.deltaX:D[0]-T[0],M="deltaY"in w?w.deltaY:D[1]-T[1],z,B=w.target,V=Math.abs(U)>Math.abs(M)?"h":"v";if("touches"in w&&V==="h"&&B.type==="range")return!1;var H=window.getSelection(),K=H&&H.anchorNode,F=K?K===B||K.contains(B):!1;if(F)return!1;var ne=ty(V,B);if(!ne)return!0;if(ne?z=V:(z=V==="v"?"h":"v",ne=ty(V,B)),!ne)return!1;if(!o.current&&"changedTouches"in w&&(U||M)&&(o.current=z),!z)return!0;var ie=o.current||z;return xT(ie,N,w,ie==="h"?U:M)},[]),g=h.useCallback(function(w){var N=w;if(!(!Mr.length||Mr[Mr.length-1]!==c)){var T="deltaY"in N?ny(N):Us(N),D=l.current.filter(function(z){return z.name===N.type&&(z.target===N.target||N.target===z.shadowParent)&&ST(z.delta,T)})[0];if(D&&D.should){N.cancelable&&N.preventDefault();return}if(!D){var U=(d.current.shards||[]).map(ay).filter(Boolean).filter(function(z){return z.contains(N.target)}),M=U.length>0?p(N,U[0]):!d.current.noIsolation;M&&N.cancelable&&N.preventDefault()}}},[]),m=h.useCallback(function(w,N,T,D){var U={name:w,delta:N,target:T,should:D,shadowParent:RT(T)};l.current.push(U),setTimeout(function(){l.current=l.current.filter(function(M){return M!==U})},1)},[]),x=h.useCallback(function(w){r.current=Us(w),o.current=void 0},[]),v=h.useCallback(function(w){m(w.type,ny(w),w.target,p(w,n.lockRef.current))},[]),S=h.useCallback(function(w){m(w.type,Us(w),w.target,p(w,n.lockRef.current))},[]);h.useEffect(function(){return Mr.push(c),n.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:S}),document.addEventListener("wheel",g,Ar),document.addEventListener("touchmove",g,Ar),document.addEventListener("touchstart",x,Ar),function(){Mr=Mr.filter(function(w){return w!==c}),document.removeEventListener("wheel",g,Ar),document.removeEventListener("touchmove",g,Ar),document.removeEventListener("touchstart",x,Ar)}},[]);var C=n.removeScrollBar,R=n.inert;return h.createElement(h.Fragment,null,R?h.createElement(c,{styles:ET(s)}):null,C?h.createElement(mT,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function RT(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const TT=eT(Bb,CT);var Gb=h.forwardRef(function(n,l){return h.createElement(xu,Fn({},n,{ref:l,sideCar:TT}))});Gb.classNames=xu.classNames;var NT=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Or=new WeakMap,Bs=new WeakMap,Hs={},ud=0,Ib=function(n){return n&&(n.host||Ib(n.parentNode))},jT=function(n,l){return l.map(function(r){if(n.contains(r))return r;var o=Ib(r);return o&&n.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},AT=function(n,l,r,o){var s=jT(l,Array.isArray(n)?n:[n]);Hs[r]||(Hs[r]=new WeakMap);var c=Hs[r],d=[],p=new Set,g=new Set(s),m=function(v){!v||p.has(v)||(p.add(v),m(v.parentNode))};s.forEach(m);var x=function(v){!v||g.has(v)||Array.prototype.forEach.call(v.children,function(S){if(p.has(S))x(S);else try{var C=S.getAttribute(o),R=C!==null&&C!=="false",w=(Or.get(S)||0)+1,N=(c.get(S)||0)+1;Or.set(S,w),c.set(S,N),d.push(S),w===1&&R&&Bs.set(S,!0),N===1&&S.setAttribute(r,"true"),R||S.setAttribute(o,"true")}catch(T){console.error("aria-hidden: cannot operate on ",S,T)}})};return x(l),p.clear(),ud++,function(){d.forEach(function(v){var S=Or.get(v)-1,C=c.get(v)-1;Or.set(v,S),c.set(v,C),S||(Bs.has(v)||v.removeAttribute(o),Bs.delete(v)),C||v.removeAttribute(r)}),ud--,ud||(Or=new WeakMap,Or=new WeakMap,Bs=new WeakMap,Hs={})}},MT=function(n,l,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(n)?n:[n]),s=NT(n);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),AT(o,s,r,"aria-hidden")):function(){return null}},Su="Dialog",[Xb]=rR(Su),[OT,qn]=Xb(Su),Kb=n=>{const{__scopeDialog:l,children:r,open:o,defaultOpen:s,onOpenChange:c,modal:d=!0}=n,p=h.useRef(null),g=h.useRef(null),[m,x]=cR({prop:o,defaultProp:s??!1,onChange:c,caller:Su});return y.jsx(OT,{scope:l,triggerRef:p,contentRef:g,contentId:Ea(),titleId:Ea(),descriptionId:Ea(),open:m,onOpenChange:x,onOpenToggle:h.useCallback(()=>x(v=>!v),[x]),modal:d,children:r})};Kb.displayName=Su;var Pb="DialogTrigger",kT=h.forwardRef((n,l)=>{const{__scopeDialog:r,...o}=n,s=qn(Pb,r),c=Bl(l,s.triggerRef);return y.jsx(go.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":dm(s.open),...o,ref:c,onClick:rl(n.onClick,s.onOpenToggle)})});kT.displayName=Pb;var cm="DialogPortal",[DT,Qb]=Xb(cm,{forceMount:void 0}),$b=n=>{const{__scopeDialog:l,forceMount:r,children:o,container:s}=n,c=qn(cm,l);return y.jsx(DT,{scope:l,forceMount:r,children:h.Children.map(o,d=>y.jsx(bu,{present:r||c.open,children:y.jsx(_b,{asChild:!0,container:s,children:d})}))})};$b.displayName=cm;var ru="DialogOverlay",Zb=h.forwardRef((n,l)=>{const r=Qb(ru,n.__scopeDialog),{forceMount:o=r.forceMount,...s}=n,c=qn(ru,n.__scopeDialog);return c.modal?y.jsx(bu,{present:o||c.open,children:y.jsx(_T,{...s,ref:l})}):null});Zb.displayName=ru;var zT=po("DialogOverlay.RemoveScroll"),_T=h.forwardRef((n,l)=>{const{__scopeDialog:r,...o}=n,s=qn(ru,r);return y.jsx(Gb,{as:zT,allowPinchZoom:!0,shards:[s.contentRef],children:y.jsx(go.div,{"data-state":dm(s.open),...o,ref:l,style:{pointerEvents:"auto",...o.style}})})}),Dl="DialogContent",Fb=h.forwardRef((n,l)=>{const r=Qb(Dl,n.__scopeDialog),{forceMount:o=r.forceMount,...s}=n,c=qn(Dl,n.__scopeDialog);return y.jsx(bu,{present:o||c.open,children:c.modal?y.jsx(LT,{...s,ref:l}):y.jsx(UT,{...s,ref:l})})});Fb.displayName=Dl;var LT=h.forwardRef((n,l)=>{const r=qn(Dl,n.__scopeDialog),o=h.useRef(null),s=Bl(l,r.contentRef,o);return h.useEffect(()=>{const c=o.current;if(c)return MT(c)},[]),y.jsx(Wb,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rl(n.onCloseAutoFocus,c=>{var d;c.preventDefault(),(d=r.triggerRef.current)==null||d.focus()}),onPointerDownOutside:rl(n.onPointerDownOutside,c=>{const d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0;(d.button===2||p)&&c.preventDefault()}),onFocusOutside:rl(n.onFocusOutside,c=>c.preventDefault())})}),UT=h.forwardRef((n,l)=>{const r=qn(Dl,n.__scopeDialog),o=h.useRef(!1),s=h.useRef(!1);return y.jsx(Wb,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,p;(d=n.onCloseAutoFocus)==null||d.call(n,c),c.defaultPrevented||(o.current||(p=r.triggerRef.current)==null||p.focus(),c.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:c=>{var g,m;(g=n.onInteractOutside)==null||g.call(n,c),c.defaultPrevented||(o.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const d=c.target;((m=r.triggerRef.current)==null?void 0:m.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),Wb=h.forwardRef((n,l)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,...d}=n,p=qn(Dl,r),g=h.useRef(null),m=Bl(l,g);return IR(),y.jsxs(y.Fragment,{children:[y.jsx(Db,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:c,children:y.jsx(Ob,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":dm(p.open),...d,ref:m,onDismiss:()=>p.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(YT,{titleId:p.titleId}),y.jsx(GT,{contentRef:g,descriptionId:p.descriptionId})]})]})}),fm="DialogTitle",BT=h.forwardRef((n,l)=>{const{__scopeDialog:r,...o}=n,s=qn(fm,r);return y.jsx(go.h2,{id:s.titleId,...o,ref:l})});BT.displayName=fm;var Jb="DialogDescription",HT=h.forwardRef((n,l)=>{const{__scopeDialog:r,...o}=n,s=qn(Jb,r);return y.jsx(go.p,{id:s.descriptionId,...o,ref:l})});HT.displayName=Jb;var e0="DialogClose",VT=h.forwardRef((n,l)=>{const{__scopeDialog:r,...o}=n,s=qn(e0,r);return y.jsx(go.button,{type:"button",...o,ref:l,onClick:rl(n.onClick,()=>s.onOpenChange(!1))})});VT.displayName=e0;function dm(n){return n?"open":"closed"}var t0="DialogTitleWarning",[WO,n0]=lR(t0,{contentName:Dl,titleName:fm,docsSlug:"dialog"}),YT=({titleId:n})=>{const l=n0(t0),r=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
|
|
226
|
+
|
|
227
|
+
If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
228
|
+
|
|
229
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return h.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},qT="DialogDescriptionWarning",GT=({contentRef:n,descriptionId:l})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n0(qT).contentName}}.`;return h.useEffect(()=>{var c;const s=(c=n.current)==null?void 0:c.getAttribute("aria-describedby");l&&s&&(document.getElementById(l)||console.warn(o))},[o,n,l]),null},IT=Kb,XT=$b,KT=Zb,PT=Fb,QT=Symbol.for("react.lazy"),iu=uo[" use ".trim().toString()];function $T(n){return typeof n=="object"&&n!==null&&"then"in n}function a0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===QT&&"_payload"in n&&$T(n._payload)}function ZT(n){const l=FT(n),r=h.forwardRef((o,s)=>{let{children:c,...d}=o;a0(c)&&typeof iu=="function"&&(c=iu(c._payload));const p=h.Children.toArray(c),g=p.find(JT);if(g){const m=g.props.children,x=p.map(v=>v===g?h.Children.count(m)>1?h.Children.only(null):h.isValidElement(m)?m.props.children:null:v);return y.jsx(l,{...d,ref:s,children:h.isValidElement(m)?h.cloneElement(m,void 0,x):null})}return y.jsx(l,{...d,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}function FT(n){const l=h.forwardRef((r,o)=>{let{children:s,...c}=r;if(a0(s)&&typeof iu=="function"&&(s=iu(s._payload)),h.isValidElement(s)){const d=t2(s),p=e2(c,s.props);return s.type!==h.Fragment&&(p.ref=o?il(o,d):d),h.cloneElement(s,p)}return h.Children.count(s)>1?h.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var WT=Symbol("radix.slottable");function JT(n){return h.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===WT}function e2(n,l){const r={...l};for(const o in l){const s=n[o],c=l[o];/^on[A-Z]/.test(o)?s&&c?r[o]=(...p)=>{const g=c(...p);return s(...p),g}:s&&(r[o]=s):o==="style"?r[o]={...s,...c}:o==="className"&&(r[o]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function t2(n){var o,s;let l=(o=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:o.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?n.ref:(l=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var n2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sl=n2.reduce((n,l)=>{const r=ZT(`Primitive.${l}`),o=h.forwardRef((s,c)=>{const{asChild:d,...p}=s,g=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(g,{...p,ref:c})});return o.displayName=`Primitive.${l}`,{...n,[l]:o}},{}),Qi='[cmdk-group=""]',cd='[cmdk-group-items=""]',a2='[cmdk-group-heading=""]',l0='[cmdk-item=""]',ly=`${l0}:not([aria-disabled="true"])`,Yd="cmdk-item-select",_r="data-value",l2=(n,l,r)=>aR(n,l,r),r0=h.createContext(void 0),vo=()=>h.useContext(r0),i0=h.createContext(void 0),mm=()=>h.useContext(i0),o0=h.createContext(void 0),s0=h.forwardRef((n,l)=>{let r=Lr(()=>{var A,q;return{search:"",value:(q=(A=n.value)!=null?A:n.defaultValue)!=null?q:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=Lr(()=>new Set),s=Lr(()=>new Map),c=Lr(()=>new Map),d=Lr(()=>new Set),p=u0(n),{label:g,children:m,value:x,onValueChange:v,filter:S,shouldFilter:C,loop:R,disablePointerSelection:w=!1,vimBindings:N=!0,...T}=n,D=Ea(),U=Ea(),M=Ea(),z=h.useRef(null),B=p2();zl(()=>{if(x!==void 0){let A=x.trim();r.current.value=A,V.emit()}},[x]),zl(()=>{B(6,G)},[]);let V=h.useMemo(()=>({subscribe:A=>(d.current.add(A),()=>d.current.delete(A)),snapshot:()=>r.current,setState:(A,q,$)=>{var I,re,de,se;if(!Object.is(r.current[A],q)){if(r.current[A]=q,A==="search")ie(),F(),B(1,ne);else if(A==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let he=document.getElementById(M);he?he.focus():(I=document.getElementById(D))==null||I.focus()}if(B(7,()=>{var he;r.current.selectedItemId=(he=ce())==null?void 0:he.id,V.emit()}),$||B(5,G),((re=p.current)==null?void 0:re.value)!==void 0){let he=q??"";(se=(de=p.current).onValueChange)==null||se.call(de,he);return}}V.emit()}},emit:()=>{d.current.forEach(A=>A())}}),[]),H=h.useMemo(()=>({value:(A,q,$)=>{var I;q!==((I=c.current.get(A))==null?void 0:I.value)&&(c.current.set(A,{value:q,keywords:$}),r.current.filtered.items.set(A,K(q,$)),B(2,()=>{F(),V.emit()}))},item:(A,q)=>(o.current.add(A),q&&(s.current.has(q)?s.current.get(q).add(A):s.current.set(q,new Set([A]))),B(3,()=>{ie(),F(),r.current.value||ne(),V.emit()}),()=>{c.current.delete(A),o.current.delete(A),r.current.filtered.items.delete(A);let $=ce();B(4,()=>{ie(),($==null?void 0:$.getAttribute("id"))===A&&ne(),V.emit()})}),group:A=>(s.current.has(A)||s.current.set(A,new Set),()=>{c.current.delete(A),s.current.delete(A)}),filter:()=>p.current.shouldFilter,label:g||n["aria-label"],getDisablePointerSelection:()=>p.current.disablePointerSelection,listId:D,inputId:M,labelId:U,listInnerRef:z}),[]);function K(A,q){var $,I;let re=(I=($=p.current)==null?void 0:$.filter)!=null?I:l2;return A?re(A,r.current.search,q):0}function F(){if(!r.current.search||p.current.shouldFilter===!1)return;let A=r.current.filtered.items,q=[];r.current.filtered.groups.forEach(I=>{let re=s.current.get(I),de=0;re.forEach(se=>{let he=A.get(se);de=Math.max(he,de)}),q.push([I,de])});let $=z.current;fe().sort((I,re)=>{var de,se;let he=I.getAttribute("id"),Ye=re.getAttribute("id");return((de=A.get(Ye))!=null?de:0)-((se=A.get(he))!=null?se:0)}).forEach(I=>{let re=I.closest(cd);re?re.appendChild(I.parentElement===re?I:I.closest(`${cd} > *`)):$.appendChild(I.parentElement===$?I:I.closest(`${cd} > *`))}),q.sort((I,re)=>re[1]-I[1]).forEach(I=>{var re;let de=(re=z.current)==null?void 0:re.querySelector(`${Qi}[${_r}="${encodeURIComponent(I[0])}"]`);de==null||de.parentElement.appendChild(de)})}function ne(){let A=fe().find($=>$.getAttribute("aria-disabled")!=="true"),q=A==null?void 0:A.getAttribute(_r);V.setState("value",q||void 0)}function ie(){var A,q,$,I;if(!r.current.search||p.current.shouldFilter===!1){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let re=0;for(let de of o.current){let se=(q=(A=c.current.get(de))==null?void 0:A.value)!=null?q:"",he=(I=($=c.current.get(de))==null?void 0:$.keywords)!=null?I:[],Ye=K(se,he);r.current.filtered.items.set(de,Ye),Ye>0&&re++}for(let[de,se]of s.current)for(let he of se)if(r.current.filtered.items.get(he)>0){r.current.filtered.groups.add(de);break}r.current.filtered.count=re}function G(){var A,q,$;let I=ce();I&&(((A=I.parentElement)==null?void 0:A.firstChild)===I&&(($=(q=I.closest(Qi))==null?void 0:q.querySelector(a2))==null||$.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function ce(){var A;return(A=z.current)==null?void 0:A.querySelector(`${l0}[aria-selected="true"]`)}function fe(){var A;return Array.from(((A=z.current)==null?void 0:A.querySelectorAll(ly))||[])}function k(A){let q=fe()[A];q&&V.setState("value",q.getAttribute(_r))}function _(A){var q;let $=ce(),I=fe(),re=I.findIndex(se=>se===$),de=I[re+A];(q=p.current)!=null&&q.loop&&(de=re+A<0?I[I.length-1]:re+A===I.length?I[0]:I[re+A]),de&&V.setState("value",de.getAttribute(_r))}function ee(A){let q=ce(),$=q==null?void 0:q.closest(Qi),I;for(;$&&!I;)$=A>0?m2($,Qi):h2($,Qi),I=$==null?void 0:$.querySelector(ly);I?V.setState("value",I.getAttribute(_r)):_(A)}let oe=()=>k(fe().length-1),J=A=>{A.preventDefault(),A.metaKey?oe():A.altKey?ee(1):_(1)},j=A=>{A.preventDefault(),A.metaKey?k(0):A.altKey?ee(-1):_(-1)};return h.createElement(sl.div,{ref:l,tabIndex:-1,...T,"cmdk-root":"",onKeyDown:A=>{var q;(q=T.onKeyDown)==null||q.call(T,A);let $=A.nativeEvent.isComposing||A.keyCode===229;if(!(A.defaultPrevented||$))switch(A.key){case"n":case"j":{N&&A.ctrlKey&&J(A);break}case"ArrowDown":{J(A);break}case"p":case"k":{N&&A.ctrlKey&&j(A);break}case"ArrowUp":{j(A);break}case"Home":{A.preventDefault(),k(0);break}case"End":{A.preventDefault(),oe();break}case"Enter":{A.preventDefault();let I=ce();if(I){let re=new Event(Yd);I.dispatchEvent(re)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:v2},g),Eu(n,A=>h.createElement(i0.Provider,{value:V},h.createElement(r0.Provider,{value:H},A))))}),r2=h.forwardRef((n,l)=>{var r,o;let s=Ea(),c=h.useRef(null),d=h.useContext(o0),p=vo(),g=u0(n),m=(o=(r=g.current)==null?void 0:r.forceMount)!=null?o:d==null?void 0:d.forceMount;zl(()=>{if(!m)return p.item(s,d==null?void 0:d.id)},[m]);let x=c0(s,c,[n.value,n.children,c],n.keywords),v=mm(),S=ol(B=>B.value&&B.value===x.current),C=ol(B=>m||p.filter()===!1?!0:B.search?B.filtered.items.get(s)>0:!0);h.useEffect(()=>{let B=c.current;if(!(!B||n.disabled))return B.addEventListener(Yd,R),()=>B.removeEventListener(Yd,R)},[C,n.onSelect,n.disabled]);function R(){var B,V;w(),(V=(B=g.current).onSelect)==null||V.call(B,x.current)}function w(){v.setState("value",x.current,!0)}if(!C)return null;let{disabled:N,value:T,onSelect:D,forceMount:U,keywords:M,...z}=n;return h.createElement(sl.div,{ref:il(c,l),...z,id:s,"cmdk-item":"",role:"option","aria-disabled":!!N,"aria-selected":!!S,"data-disabled":!!N,"data-selected":!!S,onPointerMove:N||p.getDisablePointerSelection()?void 0:w,onClick:N?void 0:R},n.children)}),i2=h.forwardRef((n,l)=>{let{heading:r,children:o,forceMount:s,...c}=n,d=Ea(),p=h.useRef(null),g=h.useRef(null),m=Ea(),x=vo(),v=ol(C=>s||x.filter()===!1?!0:C.search?C.filtered.groups.has(d):!0);zl(()=>x.group(d),[]),c0(d,p,[n.value,n.heading,g]);let S=h.useMemo(()=>({id:d,forceMount:s}),[s]);return h.createElement(sl.div,{ref:il(p,l),...c,"cmdk-group":"",role:"presentation",hidden:v?void 0:!0},r&&h.createElement("div",{ref:g,"cmdk-group-heading":"","aria-hidden":!0,id:m},r),Eu(n,C=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?m:void 0},h.createElement(o0.Provider,{value:S},C))))}),o2=h.forwardRef((n,l)=>{let{alwaysRender:r,...o}=n,s=h.useRef(null),c=ol(d=>!d.search);return!r&&!c?null:h.createElement(sl.div,{ref:il(s,l),...o,"cmdk-separator":"",role:"separator"})}),s2=h.forwardRef((n,l)=>{let{onValueChange:r,...o}=n,s=n.value!=null,c=mm(),d=ol(m=>m.search),p=ol(m=>m.selectedItemId),g=vo();return h.useEffect(()=>{n.value!=null&&c.setState("search",n.value)},[n.value]),h.createElement(sl.input,{ref:l,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":g.listId,"aria-labelledby":g.labelId,"aria-activedescendant":p,id:g.inputId,type:"text",value:s?n.value:d,onChange:m=>{s||c.setState("search",m.target.value),r==null||r(m.target.value)}})}),u2=h.forwardRef((n,l)=>{let{children:r,label:o="Suggestions",...s}=n,c=h.useRef(null),d=h.useRef(null),p=ol(m=>m.selectedItemId),g=vo();return h.useEffect(()=>{if(d.current&&c.current){let m=d.current,x=c.current,v,S=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let C=m.offsetHeight;x.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px")})});return S.observe(m),()=>{cancelAnimationFrame(v),S.unobserve(m)}}},[]),h.createElement(sl.div,{ref:il(c,l),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":p,"aria-label":o,id:g.listId},Eu(n,m=>h.createElement("div",{ref:il(d,g.listInnerRef),"cmdk-list-sizer":""},m)))}),c2=h.forwardRef((n,l)=>{let{open:r,onOpenChange:o,overlayClassName:s,contentClassName:c,container:d,...p}=n;return h.createElement(IT,{open:r,onOpenChange:o},h.createElement(XT,{container:d},h.createElement(KT,{"cmdk-overlay":"",className:s}),h.createElement(PT,{"aria-label":n.label,"cmdk-dialog":"",className:c},h.createElement(s0,{ref:l,...p}))))}),f2=h.forwardRef((n,l)=>ol(r=>r.filtered.count===0)?h.createElement(sl.div,{ref:l,...n,"cmdk-empty":"",role:"presentation"}):null),d2=h.forwardRef((n,l)=>{let{progress:r,children:o,label:s="Loading...",...c}=n;return h.createElement(sl.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},Eu(n,d=>h.createElement("div",{"aria-hidden":!0},d)))}),Hl=Object.assign(s0,{List:u2,Item:r2,Input:s2,Group:i2,Separator:o2,Dialog:c2,Empty:f2,Loading:d2});function m2(n,l){let r=n.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function h2(n,l){let r=n.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function u0(n){let l=h.useRef(n);return zl(()=>{l.current=n}),l}var zl=typeof window>"u"?h.useEffect:h.useLayoutEffect;function Lr(n){let l=h.useRef();return l.current===void 0&&(l.current=n()),l}function ol(n){let l=mm(),r=()=>n(l.snapshot());return h.useSyncExternalStore(l.subscribe,r,r)}function c0(n,l,r,o=[]){let s=h.useRef(),c=vo();return zl(()=>{var d;let p=(()=>{var m;for(let x of r){if(typeof x=="string")return x.trim();if(typeof x=="object"&&"current"in x)return x.current?(m=x.current.textContent)==null?void 0:m.trim():s.current}})(),g=o.map(m=>m.trim());c.value(n,p,g),(d=l.current)==null||d.setAttribute(_r,p),s.current=p}),s}var p2=()=>{let[n,l]=h.useState(),r=Lr(()=>new Map);return zl(()=>{r.current.forEach(o=>o()),r.current=new Map},[n]),(o,s)=>{r.current.set(o,s),l({})}};function g2(n){let l=n.type;return typeof l=="function"?l(n.props):"render"in l?l.render(n.props):n}function Eu({asChild:n,children:l},r){return n&&h.isValidElement(l)?h.cloneElement(g2(l),{ref:l.ref},r(l.props.children)):r(l)}var v2={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function f0(n){var l,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(l=0;l<s;l++)n[l]&&(r=f0(n[l]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function d0(){for(var n,l,r=0,o="",s=arguments.length;r<s;r++)(n=arguments[r])&&(l=f0(n))&&(o&&(o+=" "),o+=l);return o}const y2=(n,l)=>{const r=new Array(n.length+l.length);for(let o=0;o<n.length;o++)r[o]=n[o];for(let o=0;o<l.length;o++)r[n.length+o]=l[o];return r},b2=(n,l)=>({classGroupId:n,validator:l}),m0=(n=new Map,l=null,r)=>({nextPart:n,validators:l,classGroupId:r}),ou="-",ry=[],x2="arbitrary..",S2=n=>{const l=w2(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return E2(d);const p=d.split(ou),g=p[0]===""&&p.length>1?1:0;return h0(p,g,l)},getConflictingClassGroupIds:(d,p)=>{if(p){const g=o[d],m=r[d];return g?m?y2(m,g):g:m||ry}return r[d]||ry}}},h0=(n,l,r)=>{if(n.length-l===0)return r.classGroupId;const s=n[l],c=r.nextPart.get(s);if(c){const m=h0(n,l+1,c);if(m)return m}const d=r.validators;if(d===null)return;const p=l===0?n.join(ou):n.slice(l).join(ou),g=d.length;for(let m=0;m<g;m++){const x=d[m];if(x.validator(p))return x.classGroupId}},E2=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=n.slice(1,-1),r=l.indexOf(":"),o=l.slice(0,r);return o?x2+o:void 0})(),w2=n=>{const{theme:l,classGroups:r}=n;return C2(r,l)},C2=(n,l)=>{const r=m0();for(const o in n){const s=n[o];hm(s,r,o,l)}return r},hm=(n,l,r,o)=>{const s=n.length;for(let c=0;c<s;c++){const d=n[c];R2(d,l,r,o)}},R2=(n,l,r,o)=>{if(typeof n=="string"){T2(n,l,r);return}if(typeof n=="function"){N2(n,l,r,o);return}j2(n,l,r,o)},T2=(n,l,r)=>{const o=n===""?l:p0(l,n);o.classGroupId=r},N2=(n,l,r,o)=>{if(A2(n)){hm(n(o),l,r,o);return}l.validators===null&&(l.validators=[]),l.validators.push(b2(r,n))},j2=(n,l,r,o)=>{const s=Object.entries(n),c=s.length;for(let d=0;d<c;d++){const[p,g]=s[d];hm(g,p0(l,p),r,o)}},p0=(n,l)=>{let r=n;const o=l.split(ou),s=o.length;for(let c=0;c<s;c++){const d=o[c];let p=r.nextPart.get(d);p||(p=m0(),r.nextPart.set(d,p)),r=p}return r},A2=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,M2=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,r=Object.create(null),o=Object.create(null);const s=(c,d)=>{r[c]=d,l++,l>n&&(l=0,o=r,r=Object.create(null))};return{get(c){let d=r[c];if(d!==void 0)return d;if((d=o[c])!==void 0)return s(c,d),d},set(c,d){c in r?r[c]=d:s(c,d)}}},qd="!",iy=":",O2=[],oy=(n,l,r,o,s)=>({modifiers:n,hasImportantModifier:l,baseClassName:r,maybePostfixModifierPosition:o,isExternal:s}),k2=n=>{const{prefix:l,experimentalParseClassName:r}=n;let o=s=>{const c=[];let d=0,p=0,g=0,m;const x=s.length;for(let w=0;w<x;w++){const N=s[w];if(d===0&&p===0){if(N===iy){c.push(s.slice(g,w)),g=w+1;continue}if(N==="/"){m=w;continue}}N==="["?d++:N==="]"?d--:N==="("?p++:N===")"&&p--}const v=c.length===0?s:s.slice(g);let S=v,C=!1;v.endsWith(qd)?(S=v.slice(0,-1),C=!0):v.startsWith(qd)&&(S=v.slice(1),C=!0);const R=m&&m>g?m-g:void 0;return oy(c,C,S,R)};if(l){const s=l+iy,c=o;o=d=>d.startsWith(s)?c(d.slice(s.length)):oy(O2,!1,d,void 0,!0)}if(r){const s=o;o=c=>r({className:c,parseClassName:s})}return o},D2=n=>{const l=new Map;return n.orderSensitiveModifiers.forEach((r,o)=>{l.set(r,1e6+o)}),r=>{const o=[];let s=[];for(let c=0;c<r.length;c++){const d=r[c],p=d[0]==="[",g=l.has(d);p||g?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(d)):s.push(d)}return s.length>0&&(s.sort(),o.push(...s)),o}},z2=n=>({cache:M2(n.cacheSize),parseClassName:k2(n),sortModifiers:D2(n),...S2(n)}),_2=/\s+/,L2=(n,l)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:c}=l,d=[],p=n.trim().split(_2);let g="";for(let m=p.length-1;m>=0;m-=1){const x=p[m],{isExternal:v,modifiers:S,hasImportantModifier:C,baseClassName:R,maybePostfixModifierPosition:w}=r(x);if(v){g=x+(g.length>0?" "+g:g);continue}let N=!!w,T=o(N?R.substring(0,w):R);if(!T){if(!N){g=x+(g.length>0?" "+g:g);continue}if(T=o(R),!T){g=x+(g.length>0?" "+g:g);continue}N=!1}const D=S.length===0?"":S.length===1?S[0]:c(S).join(":"),U=C?D+qd:D,M=U+T;if(d.indexOf(M)>-1)continue;d.push(M);const z=s(T,N);for(let B=0;B<z.length;++B){const V=z[B];d.push(U+V)}g=x+(g.length>0?" "+g:g)}return g},U2=(...n)=>{let l=0,r,o,s="";for(;l<n.length;)(r=n[l++])&&(o=g0(r))&&(s&&(s+=" "),s+=o);return s},g0=n=>{if(typeof n=="string")return n;let l,r="";for(let o=0;o<n.length;o++)n[o]&&(l=g0(n[o]))&&(r&&(r+=" "),r+=l);return r},B2=(n,...l)=>{let r,o,s,c;const d=g=>{const m=l.reduce((x,v)=>v(x),n());return r=z2(m),o=r.cache.get,s=r.cache.set,c=p,p(g)},p=g=>{const m=o(g);if(m)return m;const x=L2(g,r);return s(g,x),x};return c=d,(...g)=>c(U2(...g))},H2=[],Tt=n=>{const l=r=>r[n]||H2;return l.isThemeGetter=!0,l},v0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,V2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Y2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q2=/\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$/,G2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,I2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ja=n=>V2.test(n),ze=n=>!!n&&!Number.isNaN(Number(n)),el=n=>!!n&&Number.isInteger(Number(n)),fd=n=>n.endsWith("%")&&ze(n.slice(0,-1)),ba=n=>Y2.test(n),b0=()=>!0,K2=n=>q2.test(n)&&!G2.test(n),pm=()=>!1,P2=n=>I2.test(n),Q2=n=>X2.test(n),$2=n=>!ge(n)&&!ye(n),Z2=n=>ul(n,E0,pm),ge=n=>v0.test(n),Ml=n=>ul(n,w0,K2),sy=n=>ul(n,lN,ze),F2=n=>ul(n,R0,b0),W2=n=>ul(n,C0,pm),uy=n=>ul(n,x0,pm),J2=n=>ul(n,S0,Q2),Vs=n=>ul(n,T0,P2),ye=n=>y0.test(n),$i=n=>Vl(n,w0),eN=n=>Vl(n,C0),cy=n=>Vl(n,x0),tN=n=>Vl(n,E0),nN=n=>Vl(n,S0),Ys=n=>Vl(n,T0,!0),aN=n=>Vl(n,R0,!0),ul=(n,l,r)=>{const o=v0.exec(n);return o?o[1]?l(o[1]):r(o[2]):!1},Vl=(n,l,r=!1)=>{const o=y0.exec(n);return o?o[1]?l(o[1]):r:!1},x0=n=>n==="position"||n==="percentage",S0=n=>n==="image"||n==="url",E0=n=>n==="length"||n==="size"||n==="bg-size",w0=n=>n==="length",lN=n=>n==="number",C0=n=>n==="family-name",R0=n=>n==="number"||n==="weight",T0=n=>n==="shadow",rN=()=>{const n=Tt("color"),l=Tt("font"),r=Tt("text"),o=Tt("font-weight"),s=Tt("tracking"),c=Tt("leading"),d=Tt("breakpoint"),p=Tt("container"),g=Tt("spacing"),m=Tt("radius"),x=Tt("shadow"),v=Tt("inset-shadow"),S=Tt("text-shadow"),C=Tt("drop-shadow"),R=Tt("blur"),w=Tt("perspective"),N=Tt("aspect"),T=Tt("ease"),D=Tt("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...M(),ye,ge],B=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],H=()=>[ye,ge,g],K=()=>[Ja,"full","auto",...H()],F=()=>[el,"none","subgrid",ye,ge],ne=()=>["auto",{span:["full",el,ye,ge]},el,ye,ge],ie=()=>[el,"auto",ye,ge],G=()=>["auto","min","max","fr",ye,ge],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],fe=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...H()],_=()=>[Ja,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],ee=()=>[Ja,"screen","full","dvw","lvw","svw","min","max","fit",...H()],oe=()=>[Ja,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],J=()=>[n,ye,ge],j=()=>[...M(),cy,uy,{position:[ye,ge]}],A=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",tN,Z2,{size:[ye,ge]}],$=()=>[fd,$i,Ml],I=()=>["","none","full",m,ye,ge],re=()=>["",ze,$i,Ml],de=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[ze,fd,cy,uy],Ye=()=>["","none",R,ye,ge],ot=()=>["none",ze,ye,ge],ct=()=>["none",ze,ye,ge],xe=()=>[ze,ye,ge],ve=()=>[Ja,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ba],breakpoint:[ba],color:[b0],container:[ba],"drop-shadow":[ba],ease:["in","out","in-out"],font:[$2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ba],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ba],shadow:[ba],spacing:["px",ze],text:[ba],"text-shadow":[ba],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ja,ge,ye,N]}],container:["container"],columns:[{columns:[ze,ge,ye,p]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[el,"auto",ye,ge]}],basis:[{basis:[Ja,"full","auto",p,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,Ja,"auto","initial","none",ge]}],grow:[{grow:["",ze,ye,ge]}],shrink:[{shrink:["",ze,ye,ge]}],order:[{order:[el,"first","last","none",ye,ge]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...fe()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...fe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...fe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...fe(),"baseline"]}],"place-self":[{"place-self":["auto",...fe()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[p,"screen",..._()]}],"min-w":[{"min-w":[p,"screen","none",..._()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",r,$i,Ml]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,aN,F2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fd,ge]}],"font-family":[{font:[eN,W2,l]}],"font-features":[{"font-features":[ge]}],"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:[s,ye,ge]}],"line-clamp":[{"line-clamp":[ze,"none",ye,sy]}],leading:[{leading:[c,...H()]}],"list-image":[{"list-image":["none",ye,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",ye,Ml]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[ze,"auto",ye,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:A()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},el,ye,ge],radial:["",ye,ge],conic:[el,ye,ge]},nN,J2]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],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:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,ye,ge]}],"outline-w":[{outline:["",ze,$i,Ml]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",x,Ys,Vs]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",v,Ys,Vs]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[ze,Ml]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",S,Ys,Vs]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[ze,ye,ge]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[ye,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:A()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ge]}],filter:[{filter:["","none",ye,ge]}],blur:[{blur:Ye()}],brightness:[{brightness:[ze,ye,ge]}],contrast:[{contrast:[ze,ye,ge]}],"drop-shadow":[{"drop-shadow":["","none",C,Ys,Vs]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",ze,ye,ge]}],"hue-rotate":[{"hue-rotate":[ze,ye,ge]}],invert:[{invert:["",ze,ye,ge]}],saturate:[{saturate:[ze,ye,ge]}],sepia:[{sepia:["",ze,ye,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ge]}],"backdrop-blur":[{"backdrop-blur":Ye()}],"backdrop-brightness":[{"backdrop-brightness":[ze,ye,ge]}],"backdrop-contrast":[{"backdrop-contrast":[ze,ye,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,ye,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,ye,ge]}],"backdrop-invert":[{"backdrop-invert":["",ze,ye,ge]}],"backdrop-opacity":[{"backdrop-opacity":[ze,ye,ge]}],"backdrop-saturate":[{"backdrop-saturate":[ze,ye,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,ye,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",ye,ge]}],ease:[{ease:["linear","initial",T,ye,ge]}],delay:[{delay:[ze,ye,ge]}],animate:[{animate:["none",D,ye,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ye,ge]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:ot()}],"rotate-x":[{"rotate-x":ot()}],"rotate-y":[{"rotate-y":ot()}],"rotate-z":[{"rotate-z":ot()}],scale:[{scale:ct()}],"scale-x":[{"scale-x":ct()}],"scale-y":[{"scale-y":ct()}],"scale-z":[{"scale-z":ct()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[ye,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",ye,ge]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[ze,$i,Ml,sy]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},iN=B2(rN);function qe(...n){return iN(d0(n))}function oN(n,l){return function(o,...s){const c=new URL(n);return c.searchParams.set("code",o.toString()),s.forEach(d=>c.searchParams.append("args[]",d)),`${l} error #${o}; visit ${c} for the full message.`}}const ea=oN("https://base-ui.com/production-error","Base UI"),N0=h.createContext(void 0);function Yl(n){const l=h.useContext(N0);if(n===!1&&l===void 0)throw new Error(ea(27));return l}const fy={};function Yn(n,l){const r=h.useRef(fy);return r.current===fy&&(r.current=n(l)),r}function _l(n,l,r,o){const s=Yn(j0).current;return uN(s,n,l,r,o)&&A0(s,[n,l,r,o]),s.callback}function sN(n){const l=Yn(j0).current;return cN(l,n)&&A0(l,n),l.callback}function j0(){return{callback:null,cleanup:null,refs:[]}}function uN(n,l,r,o,s){return n.refs[0]!==l||n.refs[1]!==r||n.refs[2]!==o||n.refs[3]!==s}function cN(n,l){return n.refs.length!==l.length||n.refs.some((r,o)=>r!==l[o])}function A0(n,l){if(n.refs=l,l.every(r=>r==null)){n.callback=null;return}n.callback=r=>{if(n.cleanup&&(n.cleanup(),n.cleanup=null),r!=null){const o=Array(l.length).fill(null);for(let s=0;s<l.length;s+=1){const c=l[s];if(c!=null)switch(typeof c){case"function":{const d=c(r);typeof d=="function"&&(o[s]=d);break}case"object":{c.current=r;break}}}n.cleanup=()=>{for(let s=0;s<l.length;s+=1){const c=l[s];if(c!=null)switch(typeof c){case"function":{const d=o[s];typeof d=="function"?d():c(null);break}case"object":{c.current=null;break}}}}}}}const fN=parseInt(h.version,10);function gm(n){return fN>=n}function dy(n){if(!h.isValidElement(n))return null;const l=n,r=l.props;return(gm(19)?r==null?void 0:r.ref:l.ref)??null}function Gd(n,l){if(n&&!l)return n;if(!n&&l)return l;if(n||l)return{...n,...l}}function dN(n,l){const r={};for(const o in n){const s=n[o];if(l!=null&&l.hasOwnProperty(o)){const c=l[o](s);c!=null&&Object.assign(r,c);continue}s===!0?r[`data-${o.toLowerCase()}`]="":s&&(r[`data-${o.toLowerCase()}`]=s.toString())}return r}function mN(n,l){return typeof n=="function"?n(l):n}function hN(n,l){return typeof n=="function"?n(l):n}const eo={};function wu(n,l,r,o,s){let c={...Id(n,eo)};return l&&(c=eu(c,l)),r&&(c=eu(c,r)),o&&(c=eu(c,o)),c}function pN(n){if(n.length===0)return eo;if(n.length===1)return Id(n[0],eo);let l={...Id(n[0],eo)};for(let r=1;r<n.length;r+=1)l=eu(l,n[r]);return l}function eu(n,l){return M0(l)?l(n):gN(n,l)}function gN(n,l){if(!l)return n;for(const r in l){const o=l[r];switch(r){case"style":{n[r]=Gd(n.style,o);break}case"className":{n[r]=O0(n.className,o);break}default:vN(r,o)?n[r]=yN(n[r],o):n[r]=o}}return n}function vN(n,l){const r=n.charCodeAt(0),o=n.charCodeAt(1),s=n.charCodeAt(2);return r===111&&o===110&&s>=65&&s<=90&&(typeof l=="function"||typeof l>"u")}function M0(n){return typeof n=="function"}function Id(n,l){return M0(n)?n(l):n??eo}function yN(n,l){return l?n?r=>{if(bN(r)){const s=r;Xd(s);const c=l(s);return s.baseUIHandlerPrevented||n==null||n(s),c}const o=l(r);return n==null||n(r),o}:l:n}function Xd(n){return n.preventBaseUIHandler=()=>{n.baseUIHandlerPrevented=!0},n}function O0(n,l){return l?n?l+" "+n:l:n}function bN(n){return n!=null&&typeof n=="object"&&"nativeEvent"in n}function un(){}const Kd=Object.freeze([]),Kt=Object.freeze({}),xN="data-base-ui-click-trigger",SN={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Nt(n,l,r={}){const o=l.render,s=EN(l,r);if(r.enabled===!1)return null;const c=r.state??Kt;return CN(n,o,s,c)}function EN(n,l={}){const{className:r,style:o,render:s}=n,{state:c=Kt,ref:d,props:p,stateAttributesMapping:g,enabled:m=!0}=l,x=m?mN(r,c):void 0,v=m?hN(o,c):void 0,S=m?dN(c,g):Kt,C=m?Gd(S,Array.isArray(p)?pN(p):p)??Kt:Kt;return typeof document<"u"&&(m?Array.isArray(d)?C.ref=sN([C.ref,dy(s),...d]):C.ref=_l(C.ref,dy(s),d):_l(null,null)),m?(x!==void 0&&(C.className=O0(C.className,x)),v!==void 0&&(C.style=Gd(C.style,v)),C):Kt}const wN=Symbol.for("react.lazy");function CN(n,l,r,o){if(l){if(typeof l=="function")return l(r,o);const s=wu(r,l.props);s.ref=r.ref;let c=l;return(c==null?void 0:c.$$typeof)===wN&&(c=h.Children.toArray(l)[0]),h.cloneElement(c,s)}if(n&&typeof n=="string")return RN(n,r);throw new Error(ea(8))}function RN(n,l){return n==="button"?h.createElement("button",{type:"button",...l,key:l.key}):n==="img"?h.createElement("img",{alt:"",...l,key:l.key}):h.createElement(n,l)}let Ll=(function(n){return n.startingStyle="data-starting-style",n.endingStyle="data-ending-style",n})({});const TN={[Ll.startingStyle]:""},NN={[Ll.endingStyle]:""},vm={transitionStatus(n){return n==="starting"?TN:n==="ending"?NN:null}};let Ol=(function(n){return n.open="data-open",n.closed="data-closed",n[n.startingStyle=Ll.startingStyle]="startingStyle",n[n.endingStyle=Ll.endingStyle]="endingStyle",n.anchorHidden="data-anchor-hidden",n.side="data-side",n.align="data-align",n})({});const jN={[Ol.open]:""},AN={[Ol.closed]:""},MN={[Ol.anchorHidden]:""},k0={open(n){return n?jN:AN},anchorHidden(n){return n?MN:null}},ON={...k0,...vm},kN=h.forwardRef(function(l,r){const{render:o,className:s,forceRender:c=!1,...d}=l,{store:p}=Yl(),g=p.useState("open"),m=p.useState("nested"),x=p.useState("mounted"),v=p.useState("transitionStatus");return Nt("div",l,{state:{open:g,transitionStatus:v},ref:[p.context.backdropRef,r],stateAttributesMapping:ON,props:[{role:"presentation",hidden:!x,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:c||!m})});function Cu(){return typeof window<"u"}function Ru(n){return ym(n)?(n.nodeName||"").toLowerCase():"#document"}function Ta(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function DN(n){var l;return(l=(ym(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function ym(n){return Cu()?n instanceof Node||n instanceof Ta(n).Node:!1}function Ur(n){return Cu()?n instanceof Element||n instanceof Ta(n).Element:!1}function Vn(n){return Cu()?n instanceof HTMLElement||n instanceof Ta(n).HTMLElement:!1}function io(n){return!Cu()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Ta(n).ShadowRoot}function bm(n){const{overflow:l,overflowX:r,overflowY:o,display:s}=xm(n);return/auto|scroll|overlay|hidden|clip/.test(l+o+r)&&s!=="inline"&&s!=="contents"}let dd;function zN(){return dd==null&&(dd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dd}function md(n){return/^(html|body|#document)$/.test(Ru(n))}function xm(n){return Ta(n).getComputedStyle(n)}function _N(n){if(Ru(n)==="html")return n;const l=n.assignedSlot||n.parentNode||io(n)&&n.host||DN(n);return io(l)?l.host:l}const hd=uo[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],LN=hd&&hd!==h.useLayoutEffect?hd:n=>n();function Ue(n){const l=Yn(UN).current;return l.next=n,LN(l.effect),l.trampoline}function UN(){const n={next:void 0,callback:BN,trampoline:(...l)=>{var r;return(r=n.callback)==null?void 0:r.call(n,...l)},effect:()=>{n.callback=n.next}};return n}function BN(){}const HN={...uo},VN=()=>{},ke=typeof document<"u"?h.useLayoutEffect:VN,D0=h.createContext(void 0);function z0(n=!1){const l=h.useContext(D0);if(l===void 0&&!n)throw new Error(ea(16));return l}function YN(n){const{focusableWhenDisabled:l,disabled:r,composite:o=!1,tabIndex:s=0,isNativeButton:c}=n,d=o&&l!==!1,p=o&&l===!1;return{props:h.useMemo(()=>{const m={onKeyDown(x){r&&l&&x.key!=="Tab"&&x.preventDefault()}};return o||(m.tabIndex=s,!c&&r&&(m.tabIndex=l?s:-1)),(c&&(l||d)||!c&&r)&&(m["aria-disabled"]=r),c&&(!l||p)&&(m.disabled=r),m},[o,r,l,d,p,c,s])}}function Tu(n={}){const{disabled:l=!1,focusableWhenDisabled:r,tabIndex:o=0,native:s=!0,composite:c}=n,d=h.useRef(null),p=z0(!0),g=c??p!==void 0,{props:m}=YN({focusableWhenDisabled:r,disabled:l,composite:g,tabIndex:o,isNativeButton:s}),x=h.useCallback(()=>{const C=d.current;pd(C)&&g&&l&&m.disabled===void 0&&C.disabled&&(C.disabled=!1)},[l,m.disabled,g]);ke(x,[x]);const v=h.useCallback((C={})=>{const{onClick:R,onMouseDown:w,onKeyUp:N,onKeyDown:T,onPointerDown:D,...U}=C;return wu({type:s?"button":void 0,onClick(z){if(l){z.preventDefault();return}R==null||R(z)},onMouseDown(z){l||w==null||w(z)},onKeyDown(z){if(l||(Xd(z),T==null||T(z),z.baseUIHandlerPrevented))return;const B=z.target===z.currentTarget,V=z.currentTarget,H=pd(V),K=!s&&qN(V),F=B&&(s?H:!K),ne=z.key==="Enter",ie=z.key===" ",G=V.getAttribute("role"),ce=(G==null?void 0:G.startsWith("menuitem"))||G==="option"||G==="gridcell";if(B&&g&&ie){if(z.defaultPrevented&&ce)return;z.preventDefault(),K||s&&H?(V.click(),z.preventBaseUIHandler()):F&&(R==null||R(z),z.preventBaseUIHandler());return}F&&(!s&&(ie||ne)&&z.preventDefault(),!s&&ne&&(R==null||R(z)))},onKeyUp(z){if(!l){if(Xd(z),N==null||N(z),z.target===z.currentTarget&&s&&g&&pd(z.currentTarget)&&z.key===" "){z.preventDefault();return}z.baseUIHandlerPrevented||z.target===z.currentTarget&&!s&&!g&&z.key===" "&&(R==null||R(z))}},onPointerDown(z){if(l){z.preventDefault();return}D==null||D(z)}},s?void 0:{role:"button"},m,U)},[l,m,g,s]),S=Ue(C=>{d.current=C,x()});return{getButtonProps:v,buttonRef:S}}function pd(n){return Vn(n)&&n.tagName==="BUTTON"}function qN(n){return!!((n==null?void 0:n.tagName)==="A"&&(n!=null&&n.href))}const su="none",my="trigger-press",GN="trigger-hover",_0="outside-press",IN="close-press",L0="focus-out",XN="escape-key",KN="imperative-action";function kn(n,l,r,o){let s=!1,c=!1;const d=o??Kt;return{reason:n,event:l??new Event("base-ui"),cancel(){s=!0},allowPropagation(){c=!0},get isCanceled(){return s},get isPropagationAllowed(){return c},trigger:r,...d}}const PN=h.forwardRef(function(l,r){const{render:o,className:s,disabled:c=!1,nativeButton:d=!0,...p}=l,{store:g}=Yl(),m=g.useState("open");function x(R){m&&g.setOpen(!1,kn(IN,R.nativeEvent))}const{getButtonProps:v,buttonRef:S}=Tu({disabled:c,native:d});return Nt("button",l,{state:{disabled:c},ref:[r,S],props:[{onClick:x},p,v]})});let hy=0;function QN(n,l="mui"){const[r,o]=h.useState(n),s=n||r;return h.useEffect(()=>{r==null&&(hy+=1,o(`${l}-${hy}`))},[r,l]),s}const py=HN.useId;function Nu(n,l){if(py!==void 0){const r=py();return n??(l?`${l}-${r}`:r)}return QN(n,l)}function ql(n){return Nu(n,"base-ui")}const $N=h.forwardRef(function(l,r){const{render:o,className:s,id:c,...d}=l,{store:p}=Yl(),g=ql(c);return p.useSyncedValueWithCleanup("descriptionElementId",g),Nt("p",l,{ref:r,props:[{id:g},d]})}),ZN=[];function U0(n){h.useEffect(n,ZN)}const Zi=0;class Ul{constructor(){dt(this,"currentId",Zi);dt(this,"clear",()=>{this.currentId!==Zi&&(clearTimeout(this.currentId),this.currentId=Zi)});dt(this,"disposeEffect",()=>this.clear)}static create(){return new Ul}start(l,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Zi,r()},l)}isStarted(){return this.currentId!==Zi}}function uu(){const n=Yn(Ul.create).current;return U0(n.disposeEffect),n}const ei=typeof navigator<"u",gd=JN(),B0=tj(),H0=ej(),V0=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Y0=gd.platform==="MacIntel"&&gd.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(gd.platform),FN=ei&&/apple/i.test(navigator.vendor),Pd=ei&&/android/i.test(B0)||/android/i.test(H0);ei&&B0.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const WN=H0.includes("jsdom/");function JN(){if(!ei)return{platform:"",maxTouchPoints:-1};const n=navigator.userAgentData;return n!=null&&n.platform?{platform:n.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function ej(){if(!ei)return"";const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(({brand:l,version:r})=>`${l}/${r}`).join(" "):navigator.userAgent}function tj(){if(!ei)return"";const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform??""}const Qd="data-base-ui-focusable",q0="active",G0="selected",nj="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",vd="ArrowLeft",yd="ArrowRight",aj="ArrowUp",lj="ArrowDown";function Sa(n){var r;let l=n.activeElement;for(;((r=l==null?void 0:l.shadowRoot)==null?void 0:r.activeElement)!=null;)l=l.shadowRoot.activeElement;return l}function rt(n,l){var o;if(!n||!l)return!1;const r=(o=l.getRootNode)==null?void 0:o.call(l);if(n.contains(l))return!0;if(r&&io(r)){let s=l;for(;s;){if(n===s)return!0;s=s.parentNode||s.host}}return!1}function $n(n){return"composedPath"in n?n.composedPath()[0]:n.target}function Hn(n,l){if(l==null)return!1;if("composedPath"in n)return n.composedPath().includes(l);const r=n;return r.target!=null&&l.contains(r.target)}function rj(n){return n.matches("html,body")}function I0(n){return Vn(n)&&n.matches(nj)}function gy(n){return n?n.getAttribute("role")==="combobox"&&I0(n):!1}function $d(n){return n?n.hasAttribute(Qd)?n:n.querySelector(`[${Qd}]`)||n:null}function Yr(n,l,r=!0){return n.filter(s=>{var c;return s.parentId===l&&(!r||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Yr(n,s.id,r)])}function vy(n,l){var s;let r=[],o=(s=n.find(c=>c.id===l))==null?void 0:s.parentId;for(;o;){const c=n.find(d=>d.id===o);o=c==null?void 0:c.parentId,c&&(r=r.concat(c))}return r}function tu(n){n.preventDefault(),n.stopPropagation()}function ij(n){return"nativeEvent"in n}function oj(n){return n.pointerType===""&&n.isTrusted?!0:Pd&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function sj(n){return WN?!1:!Pd&&n.width===0&&n.height===0||Pd&&n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"||n.width<1&&n.height<1&&n.pressure===0&&n.detail===0&&n.pointerType==="touch"}function uj(n){const l=n.type;return l==="click"||l==="mousedown"||l==="keydown"||l==="keyup"}const bd=Math.floor;function qs(n,l,r){return Math.floor(n/l)!==r}function Zd(n,l){return l<0||l>=n.current.length}function cj(n,l){return On(n,{disabledIndices:l})}function fj(n,l){return On(n,{decrement:!0,startingIndex:n.current.length,disabledIndices:l})}function On(n,{startingIndex:l=-1,decrement:r=!1,disabledIndices:o,amount:s=1}={}){let c=l;do c+=r?-s:s;while(c>=0&&c<=n.current.length-1&&qr(n,c,o));return c}function dj(n,{event:l,orientation:r,loopFocus:o,rtl:s,cols:c,disabledIndices:d,minIndex:p,maxIndex:g,prevIndex:m,stopEvent:x=!1}){let v=m,S;if(l.key===aj?S="up":l.key===lj&&(S="down"),S){const C=[],R=[];let w=!1,N=0;{let H=null,K=-1;n.current.forEach((F,ne)=>{if(F==null)return;N+=1;const ie=F.closest('[role="row"]');ie&&(w=!0),(ie!==H||K===-1)&&(H=ie,K+=1,C[K]=[]),C[K].push(ne),R[ne]=K})}let T=!1,D=0;if(w)for(const H of C){const K=H.length;K>D&&(D=K),K!==c&&(T=!0)}const U=T&&N<n.current.length,M=D||c,z=H=>{if(!T||m===-1)return;const K=R[m];if(K==null)return;const F=C[K].indexOf(m),ne=H==="up"?-1:1;for(let ie=K+ne,G=0;G<C.length;G+=1,ie+=ne){if(ie<0||ie>=C.length){if(!o||U)return;ie=ie<0?C.length-1:0}const ce=C[ie];for(let fe=Math.min(F,ce.length-1);fe>=0;fe-=1){const k=ce[fe];if(!qr(n,k,d))return k}}},B=H=>{if(!U||m===-1)return;const K=m%M,F=H==="up"?-M:M,ne=g-g%M,ie=bd(g/M)+1;for(let G=m-K+F,ce=0;ce<ie;ce+=1,G+=F){if(G<0||G>g){if(!o)return;G=G<0?ne:0}const fe=Math.min(G+M-1,g);for(let k=Math.min(G+K,fe);k>=G;k-=1)if(!qr(n,k,d))return k}};x&&tu(l);const V=z(S)??B(S);if(V!==void 0)v=V;else if(m===-1)v=S==="up"?g:p;else if(v=On(n,{startingIndex:m,amount:M,decrement:S==="up",disabledIndices:d}),o){if(S==="up"&&(m-M<p||v<0)){const H=m%M,K=g%M,F=g-(K-H);K===H?v=g:v=K>H?F:F-M}S==="down"&&m+M>g&&(v=On(n,{startingIndex:m%M-M,amount:M,disabledIndices:d}))}Zd(n,v)&&(v=m)}if(r==="both"){const C=bd(m/c);l.key===(s?vd:yd)&&(x&&tu(l),m%c!==c-1?(v=On(n,{startingIndex:m,disabledIndices:d}),o&&qs(v,c,C)&&(v=On(n,{startingIndex:m-m%c-1,disabledIndices:d}))):o&&(v=On(n,{startingIndex:m-m%c-1,disabledIndices:d})),qs(v,c,C)&&(v=m)),l.key===(s?yd:vd)&&(x&&tu(l),m%c!==0?(v=On(n,{startingIndex:m,decrement:!0,disabledIndices:d}),o&&qs(v,c,C)&&(v=On(n,{startingIndex:m+(c-m%c),decrement:!0,disabledIndices:d}))):o&&(v=On(n,{startingIndex:m+(c-m%c),decrement:!0,disabledIndices:d})),qs(v,c,C)&&(v=m));const R=bd(g/c)===C;Zd(n,v)&&(o&&R?v=l.key===(s?yd:vd)?g:On(n,{startingIndex:m-m%c-1,disabledIndices:d}):v=m)}return v}function mj(n,l,r){const o=[];let s=0;return n.forEach(({width:c,height:d},p)=>{let g=!1;for(r&&(s=0);!g;){const m=[];for(let x=0;x<c;x+=1)for(let v=0;v<d;v+=1)m.push(s+x+v*l);s%l+c<=l&&m.every(x=>o[x]==null)?(m.forEach(x=>{o[x]=p}),g=!0):s+=1}}),[...o]}function hj(n,l,r,o,s){if(n===-1)return-1;const c=r.indexOf(n),d=l[n];switch(s){case"tl":return c;case"tr":return d?c+d.width-1:c;case"bl":return d?c+(d.height-1)*o:c;case"br":return r.lastIndexOf(n);default:return-1}}function pj(n,l){return l.flatMap((r,o)=>n.includes(r)?[o]:[])}function qr(n,l,r){if(typeof r=="function"?r(l):(r==null?void 0:r.includes(l))??!1)return!0;const s=n.current[l];return s?X0(s)?!r&&(s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true"):!0:!1}function X0(n){return xm(n).display!=="none"}/*!
|
|
230
|
+
* tabbable 6.4.0
|
|
231
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
232
|
+
*/var gj=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],cu=gj.join(","),K0=typeof Element>"u",Xr=K0?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,fu=!K0&&Element.prototype.getRootNode?function(n){var l;return n==null||(l=n.getRootNode)===null||l===void 0?void 0:l.call(n)}:function(n){return n==null?void 0:n.ownerDocument},du=function(l,r){var o;r===void 0&&(r=!0);var s=l==null||(o=l.getAttribute)===null||o===void 0?void 0:o.call(l,"inert"),c=s===""||s==="true",d=c||r&&l&&(typeof l.closest=="function"?l.closest("[inert]"):du(l.parentNode));return d},vj=function(l){var r,o=l==null||(r=l.getAttribute)===null||r===void 0?void 0:r.call(l,"contenteditable");return o===""||o==="true"},P0=function(l,r,o){if(du(l))return[];var s=Array.prototype.slice.apply(l.querySelectorAll(cu));return r&&Xr.call(l,cu)&&s.unshift(l),s=s.filter(o),s},mu=function(l,r,o){for(var s=[],c=Array.from(l);c.length;){var d=c.shift();if(!du(d,!1))if(d.tagName==="SLOT"){var p=d.assignedElements(),g=p.length?p:d.children,m=mu(g,!0,o);o.flatten?s.push.apply(s,m):s.push({scopeParent:d,candidates:m})}else{var x=Xr.call(d,cu);x&&o.filter(d)&&(r||!l.includes(d))&&s.push(d);var v=d.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(d),S=!du(v,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(d));if(v&&S){var C=mu(v===!0?d.children:v.children,!0,o);o.flatten?s.push.apply(s,C):s.push({scopeParent:d,candidates:C})}else c.unshift.apply(c,d.children)}}return s},Q0=function(l){return!isNaN(parseInt(l.getAttribute("tabindex"),10))},$0=function(l){if(!l)throw new Error("No node provided");return l.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(l.tagName)||vj(l))&&!Q0(l)?0:l.tabIndex},yj=function(l,r){var o=$0(l);return o<0&&r&&!Q0(l)?0:o},bj=function(l,r){return l.tabIndex===r.tabIndex?l.documentOrder-r.documentOrder:l.tabIndex-r.tabIndex},Z0=function(l){return l.tagName==="INPUT"},xj=function(l){return Z0(l)&&l.type==="hidden"},Sj=function(l){var r=l.tagName==="DETAILS"&&Array.prototype.slice.apply(l.children).some(function(o){return o.tagName==="SUMMARY"});return r},Ej=function(l,r){for(var o=0;o<l.length;o++)if(l[o].checked&&l[o].form===r)return l[o]},wj=function(l){if(!l.name)return!0;var r=l.form||fu(l),o=function(p){return r.querySelectorAll('input[type="radio"][name="'+p+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=o(window.CSS.escape(l.name));else try{s=o(l.name)}catch(d){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",d.message),!1}var c=Ej(s,l.form);return!c||c===l},Cj=function(l){return Z0(l)&&l.type==="radio"},Rj=function(l){return Cj(l)&&!wj(l)},Tj=function(l){var r,o=l&&fu(l),s=(r=o)===null||r===void 0?void 0:r.host,c=!1;if(o&&o!==l){var d,p,g;for(c=!!((d=s)!==null&&d!==void 0&&(p=d.ownerDocument)!==null&&p!==void 0&&p.contains(s)||l!=null&&(g=l.ownerDocument)!==null&&g!==void 0&&g.contains(l));!c&&s;){var m,x,v;o=fu(s),s=(m=o)===null||m===void 0?void 0:m.host,c=!!((x=s)!==null&&x!==void 0&&(v=x.ownerDocument)!==null&&v!==void 0&&v.contains(s))}}return c},yy=function(l){var r=l.getBoundingClientRect(),o=r.width,s=r.height;return o===0&&s===0},Nj=function(l,r){var o=r.displayCheck,s=r.getShadowRoot;if(o==="full-native"&&"checkVisibility"in l){var c=l.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(l).visibility==="hidden")return!0;var d=Xr.call(l,"details>summary:first-of-type"),p=d?l.parentElement:l;if(Xr.call(p,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof s=="function"){for(var g=l;l;){var m=l.parentElement,x=fu(l);if(m&&!m.shadowRoot&&s(m)===!0)return yy(l);l.assignedSlot?l=l.assignedSlot:!m&&x!==l.ownerDocument?l=x.host:l=m}l=g}if(Tj(l))return!l.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return yy(l);return!1},jj=function(l){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(l.tagName))for(var r=l.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var o=0;o<r.children.length;o++){var s=r.children.item(o);if(s.tagName==="LEGEND")return Xr.call(r,"fieldset[disabled] *")?!0:!s.contains(l)}return!0}r=r.parentElement}return!1},Fd=function(l,r){return!(r.disabled||xj(r)||Nj(r,l)||Sj(r)||jj(r))},Wd=function(l,r){return!(Rj(r)||$0(r)<0||!Fd(l,r))},Aj=function(l){var r=parseInt(l.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},F0=function(l){var r=[],o=[];return l.forEach(function(s,c){var d=!!s.scopeParent,p=d?s.scopeParent:s,g=yj(p,d),m=d?F0(s.candidates):p;g===0?d?r.push.apply(r,m):r.push(p):o.push({documentOrder:c,tabIndex:g,item:s,isScope:d,content:m})}),o.sort(bj).reduce(function(s,c){return c.isScope?s.push.apply(s,c.content):s.push(c.content),s},[]).concat(r)},ju=function(l,r){r=r||{};var o;return r.getShadowRoot?o=mu([l],r.includeContainer,{filter:Wd.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Aj}):o=P0(l,r.includeContainer,Wd.bind(null,r)),F0(o)},Mj=function(l,r){r=r||{};var o;return r.getShadowRoot?o=mu([l],r.includeContainer,{filter:Fd.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):o=P0(l,r.includeContainer,Fd.bind(null,r)),o},W0=function(l,r){if(r=r||{},!l)throw new Error("No node provided");return Xr.call(l,cu)===!1?!1:Wd(r,l)};function xt(n){return(n==null?void 0:n.ownerDocument)||document}const yo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function J0(n,l){const r=ju(n,yo()),o=r.length;if(o===0)return;const s=Sa(xt(n)),c=r.indexOf(s),d=c===-1?l===1?0:o-1:c+l;return r[d]}function ex(n){return J0(xt(n).body,1)||n}function tx(n){return J0(xt(n).body,-1)||n}function to(n,l){const r=l||n.currentTarget,o=n.relatedTarget;return!o||!rt(r,o)}function Oj(n){ju(n,yo()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function by(n){n.querySelectorAll("[data-tabindex]").forEach(r=>{const o=r.dataset.tabindex;delete r.dataset.tabindex,o?r.setAttribute("tabindex",o):r.removeAttribute("tabindex")})}function nu(n){const l=Yn(kj,n).current;return l.next=n,ke(l.effect),l}function kj(n){const l={current:n,next:n,effect:()=>{l.current=l.next}};return l}const Gs=null;class Dj{constructor(){dt(this,"callbacks",[]);dt(this,"callbacksCount",0);dt(this,"nextId",1);dt(this,"startId",1);dt(this,"isScheduled",!1);dt(this,"tick",l=>{var s;this.isScheduled=!1;const r=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let c=0;c<r.length;c+=1)(s=r[c])==null||s.call(r,l)})}request(l){const r=this.nextId;return this.nextId+=1,this.callbacks.push(l),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(l){const r=l-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}}const Is=new Dj;class Zn{constructor(){dt(this,"currentId",Gs);dt(this,"cancel",()=>{this.currentId!==Gs&&(Is.cancel(this.currentId),this.currentId=Gs)});dt(this,"disposeEffect",()=>this.cancel)}static create(){return new Zn}static request(l){return Is.request(l)}static cancel(l){return Is.cancel(l)}request(l){this.cancel(),this.currentId=Is.request(()=>{this.currentId=Gs,l()})}}function nx(){const n=Yn(Zn.create).current;return U0(n.disposeEffect),n}const ax={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Sm={...ax,position:"fixed",top:0,left:0},zj={...ax,position:"absolute"},hu=h.forwardRef(function(l,r){const[o,s]=h.useState();ke(()=>{FN&&s("button")},[]);const c={tabIndex:0,role:o};return y.jsx("span",{...l,ref:r,style:Sm,"aria-hidden":o?void 0:!0,...c,"data-base-ui-focus-guard":""})});function pu(n){return`data-base-ui-${n}`}let xy=0;function xd(n,l={}){const{preventScroll:r=!1,cancelPrevious:o=!0,sync:s=!1}=l;o&&cancelAnimationFrame(xy);const c=()=>n==null?void 0:n.focus({preventScroll:r});s?c():xy=requestAnimationFrame(c)}const Sd={inert:new WeakMap,"aria-hidden":new WeakMap},Sy="data-base-ui-inert",Jd={inert:new WeakSet,"aria-hidden":new WeakSet};let Fi=new WeakMap,Ed=0;function _j(n){return Jd[n]}function lx(n){return n?io(n)?n.host:lx(n.parentNode):null}const wd=(n,l)=>l.map(r=>{if(n.contains(r))return r;const o=lx(r);return n.contains(o)?o:null}).filter(r=>r!=null),Ey=n=>{const l=new Set;return n.forEach(r=>{let o=r;for(;o&&!l.has(o);)l.add(o),o=o.parentNode}),l},wy=(n,l,r)=>{const o=[],s=c=>{!c||r.has(c)||Array.from(c.children).forEach(d=>{Ru(d)!=="script"&&(l.has(d)?s(d):o.push(d))})};return s(n),o};function Lj(n,l,r,o,{mark:s=!0,markerIgnoreElements:c=[]}){const d=o?"inert":r?"aria-hidden":null;let p=null,g=null;const m=wd(l,n),x=s?wd(l,c):[],v=new Set(x),S=s?wy(l,Ey(m),new Set(m)).filter(w=>!v.has(w)):[],C=[],R=[];if(d){const w=Sd[d],N=_j(d);g=N,p=w;const T=wd(l,Array.from(l.querySelectorAll("[aria-live]"))),D=m.concat(T);wy(l,Ey(D),new Set(D)).forEach(M=>{const z=M.getAttribute(d),B=z!==null&&z!=="false",V=(w.get(M)||0)+1;w.set(M,V),C.push(M),V===1&&B&&N.add(M),B||M.setAttribute(d,d==="inert"?"":"true")})}return s&&S.forEach(w=>{const N=(Fi.get(w)||0)+1;Fi.set(w,N),R.push(w),N===1&&w.setAttribute(Sy,"")}),Ed+=1,()=>{p&&C.forEach(w=>{const T=(p.get(w)||0)-1;p.set(w,T),T||(!(g!=null&&g.has(w))&&d&&w.removeAttribute(d),g==null||g.delete(w))}),s&&R.forEach(w=>{const N=(Fi.get(w)||0)-1;Fi.set(w,N),N||w.removeAttribute(Sy)}),Ed-=1,Ed||(Sd.inert=new WeakMap,Sd["aria-hidden"]=new WeakMap,Jd.inert=new WeakSet,Jd["aria-hidden"]=new WeakSet,Fi=new WeakMap)}}function Cy(n,l={}){const{ariaHidden:r=!1,inert:o=!1,mark:s=!0,markerIgnoreElements:c=[]}=l,d=xt(n[0]).body;return Lj(n,d,r,o,{mark:s,markerIgnoreElements:c})}const rx=h.createContext(null),ix=()=>h.useContext(rx),Uj=pu("portal");function Bj(n={}){const{ref:l,container:r,componentProps:o=Kt,elementProps:s}=n,c=Nu(),d=ix(),p=d==null?void 0:d.portalNode,[g,m]=h.useState(null),[x,v]=h.useState(null),S=Ue(N=>{N!==null&&v(N)}),C=h.useRef(null);ke(()=>{if(r===null){C.current&&(C.current=null,v(null),m(null));return}if(c==null)return;const N=(r&&(ym(r)?r:r.current))??p??document.body;if(N==null){C.current&&(C.current=null,v(null),m(null));return}C.current!==N&&(C.current=N,v(null),m(N))},[r,p,c]);const R=Nt("div",o,{ref:[l,S],props:[{id:c,[Uj]:""},s]});return{portalNode:x,portalSubtree:g&&R?Zr.createPortal(R,g):null}}const Hj=h.forwardRef(function(l,r){const{children:o,container:s,className:c,render:d,renderGuards:p,...g}=l,{portalNode:m,portalSubtree:x}=Bj({container:s,ref:r,componentProps:l,elementProps:g}),v=h.useRef(null),S=h.useRef(null),C=h.useRef(null),R=h.useRef(null),[w,N]=h.useState(null),T=w==null?void 0:w.modal,D=w==null?void 0:w.open,U=typeof p=="boolean"?p:!!w&&!w.modal&&w.open&&!!m;h.useEffect(()=>{if(!m||T)return;function z(B){m&&B.relatedTarget&&to(B)&&(B.type==="focusin"?by:Oj)(m)}return m.addEventListener("focusin",z,!0),m.addEventListener("focusout",z,!0),()=>{m.removeEventListener("focusin",z,!0),m.removeEventListener("focusout",z,!0)}},[m,T]),h.useEffect(()=>{!m||D||by(m)},[D,m]);const M=h.useMemo(()=>({beforeOutsideRef:v,afterOutsideRef:S,beforeInsideRef:C,afterInsideRef:R,portalNode:m,setFocusManagerState:N}),[m]);return y.jsxs(h.Fragment,{children:[x,y.jsxs(rx.Provider,{value:M,children:[U&&m&&y.jsx(hu,{"data-type":"outside",ref:v,onFocus:z=>{var B;if(to(z,m))(B=C.current)==null||B.focus();else{const V=w?w.domReference:null,H=tx(V);H==null||H.focus()}}}),U&&m&&y.jsx("span",{"aria-owns":m.id,style:SN}),m&&Zr.createPortal(o,m),U&&m&&y.jsx(hu,{"data-type":"outside",ref:S,onFocus:z=>{var B;if(to(z,m))(B=R.current)==null||B.focus();else{const V=w?w.domReference:null,H=ex(V);H==null||H.focus(),w!=null&&w.closeOnFocusOut&&(w==null||w.onOpenChange(!1,kn(L0,z.nativeEvent)))}}})]})]})});function Vj(){const n=new Map;return{emit(l,r){var o;(o=n.get(l))==null||o.forEach(s=>s(r))},on(l,r){n.has(l)||n.set(l,new Set),n.get(l).add(r)},off(l,r){var o;(o=n.get(l))==null||o.delete(r)}}}const Yj=h.createContext(null),qj=h.createContext(null),ox=()=>{var n;return((n=h.useContext(Yj))==null?void 0:n.id)||null},sx=n=>{const l=h.useContext(qj);return n??l};function xa(n){return n==null?n:"current"in n?n.current:n}function Gj(n,l){const r=Ta(n.target);return n instanceof r.KeyboardEvent?"keyboard":n instanceof r.FocusEvent?l||"keyboard":"pointerType"in n?n.pointerType||"keyboard":"touches"in n?"touch":n instanceof r.MouseEvent?l||(n.detail===0?"keyboard":"mouse"):""}const Ry=20;let ll=[];function Em(){ll=ll.filter(n=>{var l;return(l=n.deref())==null?void 0:l.isConnected})}function Ij(n){Em(),n&&Ru(n)!=="body"&&(ll.push(new WeakRef(n)),ll.length>Ry&&(ll=ll.slice(-Ry)))}function Cd(){var n;return Em(),(n=ll[ll.length-1])==null?void 0:n.deref()}function Xj(n){if(!n)return null;const l=yo();return W0(n,l)?n:ju(n,l)[0]||n}function Kj(n){return!n||!n.isConnected?!1:typeof n.checkVisibility=="function"?n.checkVisibility():X0(n)}function Ty(n,l){var d;if(!l.current.includes("floating")&&!((d=n.getAttribute("role"))!=null&&d.includes("dialog")))return;const r=yo(),s=Mj(n,r).filter(p=>{const g=p.getAttribute("data-tabindex")||"";return W0(p,r)||p.hasAttribute("data-tabindex")&&!g.startsWith("-")}),c=n.getAttribute("tabindex");l.current.includes("floating")||s.length===0?c!=="0"&&n.setAttribute("tabindex","0"):(c!=="-1"||n.hasAttribute("data-tabindex")&&n.getAttribute("data-tabindex")!=="-1")&&(n.setAttribute("tabindex","-1"),n.setAttribute("data-tabindex","-1"))}function Pj(n){const{context:l,children:r,disabled:o=!1,initialFocus:s=!0,returnFocus:c=!0,restoreFocus:d=!1,modal:p=!0,closeOnFocusOut:g=!0,openInteractionType:m="",nextFocusableElement:x,previousFocusableElement:v,beforeContentFocusGuardRef:S,externalTree:C,getInsideElements:R}=n,w="rootStore"in l?l.rootStore:l,N=w.useState("open"),T=w.useState("domReferenceElement"),D=w.useState("floatingElement"),{events:U,dataRef:M}=w.context,z=Ue(()=>{var xe;return(xe=M.current.floatingContext)==null?void 0:xe.nodeId}),B=s===!1,V=gy(T)&&B,H=h.useRef(["content"]),K=nu(s),F=nu(c),ne=nu(m),ie=sx(C),G=ix(),ce=h.useRef(!1),fe=h.useRef(!1),k=h.useRef(!1),_=h.useRef(-1),ee=h.useRef(""),oe=h.useRef(""),J=h.useRef(null),j=h.useRef(null),A=_l(J,S,G==null?void 0:G.beforeInsideRef),q=_l(j,G==null?void 0:G.afterInsideRef),$=uu(),I=uu(),re=nx(),de=G!=null,se=$d(D),he=Ue((xe=se)=>xe?ju(xe,yo()):[]),Ye=Ue(()=>(R==null?void 0:R().filter(xe=>xe!=null))??[]),ot=Ue(xe=>{const ve=he(xe);return H.current.map(()=>ve).filter(Boolean).flat()});h.useEffect(()=>{if(o||!p)return;function xe(Ce){Ce.key==="Tab"&&rt(se,Sa(xt(se)))&&he().length===0&&!V&&tu(Ce)}const ve=xt(se);return ve.addEventListener("keydown",xe),()=>{ve.removeEventListener("keydown",xe)}},[o,T,se,p,H,V,he,ot]),h.useEffect(()=>{if(o||!N)return;const xe=xt(se);function ve(){k.current=!1}function Ce(Te){const Ne=$n(Te),Ke=Ye(),we=rt(D,Ne)||rt(T,Ne)||rt(G==null?void 0:G.portalNode,Ne)||Ke.some(le=>le===Ne||rt(le,Ne));k.current=!we,oe.current=Te.pointerType||"keyboard",Ne!=null&&Ne.closest(`[${xN}]`)&&(fe.current=!0)}function nt(){oe.current="keyboard"}return xe.addEventListener("pointerdown",Ce,!0),xe.addEventListener("pointerup",ve,!0),xe.addEventListener("pointercancel",ve,!0),xe.addEventListener("keydown",nt,!0),()=>{xe.removeEventListener("pointerdown",Ce,!0),xe.removeEventListener("pointerup",ve,!0),xe.removeEventListener("pointercancel",ve,!0),xe.removeEventListener("keydown",nt,!0)}},[o,D,T,se,N,G,Ye]),h.useEffect(()=>{if(o||!g)return;const xe=xt(se);function ve(){fe.current=!0,I.start(0,()=>{fe.current=!1})}function Ce(we){const le=$n(we),Oe=he().indexOf(le);Oe!==-1&&(_.current=Oe)}function nt(we){const le=we.relatedTarget,ue=we.currentTarget,Oe=$n(we);queueMicrotask(()=>{const De=z(),zt=w.context.triggerElements,Pt=Ye(),bn=(le==null?void 0:le.hasAttribute(pu("focus-guard")))&&[J.current,j.current,G==null?void 0:G.beforeInsideRef.current,G==null?void 0:G.afterInsideRef.current,G==null?void 0:G.beforeOutsideRef.current,G==null?void 0:G.afterOutsideRef.current,xa(v),xa(x)].includes(le),zn=!(rt(T,le)||rt(D,le)||rt(le,D)||rt(G==null?void 0:G.portalNode,le)||Pt.some(ht=>ht===le||rt(ht,le))||le!=null&&zt.hasElement(le)||zt.hasMatchingElement(ht=>rt(ht,le))||bn||ie&&(Yr(ie.nodesRef.current,De).find(ht=>{var pt,Je;return rt((pt=ht.context)==null?void 0:pt.elements.floating,le)||rt((Je=ht.context)==null?void 0:Je.elements.domReference,le)})||vy(ie.nodesRef.current,De).find(ht=>{var pt,Je,jt;return[(pt=ht.context)==null?void 0:pt.elements.floating,$d((Je=ht.context)==null?void 0:Je.elements.floating)].includes(le)||((jt=ht.context)==null?void 0:jt.elements.domReference)===le})));if(ue===T&&se&&Ty(se,H),d&&ue!==T&&!Kj(Oe)&&Sa(xe)===xe.body){if(Vn(se)&&(se.focus(),d==="popup")){re.request(()=>{se.focus()});return}const ht=_.current,pt=he(),Je=pt[ht]||pt[pt.length-1]||se;Vn(Je)&&Je.focus()}if(M.current.insideReactTree){M.current.insideReactTree=!1;return}(V||!p)&&le&&zn&&!fe.current&&(V||le!==Cd())&&(ce.current=!0,w.setOpen(!1,kn(L0,we)))})}function Te(){k.current||(M.current.insideReactTree=!0,$.start(0,()=>{M.current.insideReactTree=!1}))}const Ne=Vn(T)?T:null,Ke=[];if(!(!D&&!Ne))return Ne&&(Ne.addEventListener("focusout",nt),Ne.addEventListener("pointerdown",ve),Ke.push(()=>{Ne.removeEventListener("focusout",nt),Ne.removeEventListener("pointerdown",ve)})),D&&(D.addEventListener("focusin",Ce),D.addEventListener("focusout",nt),G&&(D.addEventListener("focusout",Te,!0),Ke.push(()=>{D.removeEventListener("focusout",Te,!0)})),Ke.push(()=>{D.removeEventListener("focusin",Ce),D.removeEventListener("focusout",nt)})),()=>{Ke.forEach(we=>{we()})}},[o,T,D,se,p,ie,G,w,g,d,he,V,z,H,M,$,I,re,x,v,Ye]),h.useEffect(()=>{var le,ue,Oe;if(o||!D||!N)return;const xe=Array.from(((le=G==null?void 0:G.portalNode)==null?void 0:le.querySelectorAll(`[${pu("portal")}]`))||[]),Ce=(Oe=(ue=(ie?vy(ie.nodesRef.current,z()):[]).find(De=>{var zt;return gy(((zt=De.context)==null?void 0:zt.elements.domReference)||null)}))==null?void 0:ue.context)==null?void 0:Oe.elements.domReference,Te=[...[D,...xe,J.current,j.current,G==null?void 0:G.beforeOutsideRef.current,G==null?void 0:G.afterOutsideRef.current,...Ye()],Ce,xa(v),xa(x),V?T:null].filter(De=>De!=null),Ne=Cy(Te,{ariaHidden:p||V,mark:!1}),Ke=[D,...xe].filter(De=>De!=null),we=Cy(Ke);return()=>{we(),Ne()}},[N,o,T,D,p,H,G,V,ie,z,x,v,Ye]),ke(()=>{if(!N||o||!Vn(se))return;const xe=xt(se),ve=Sa(xe);queueMicrotask(()=>{const Ce=ot(se),nt=K.current,Te=typeof nt=="function"?nt(ne.current||""):nt;if(Te===void 0||Te===!1)return;let Ne;Te===!0||Te===null?Ne=Ce[0]||se:Ne=xa(Te),Ne=Ne||Ce[0]||se,!rt(se,ve)&&xd(Ne,{preventScroll:Ne===se})})},[o,N,se,B,ot,K,ne]),ke(()=>{if(o||!se)return;const xe=xt(se),ve=Sa(xe);Ij(ve);function Ce(Te){if(Te.open||(ee.current=Gj(Te.nativeEvent,oe.current)),Te.reason===GN&&Te.nativeEvent.type==="mouseleave"&&(ce.current=!0),Te.reason===_0)if(Te.nested)ce.current=!1;else if(oj(Te.nativeEvent)||sj(Te.nativeEvent))ce.current=!1;else{let Ne=!1;document.createElement("div").focus({get preventScroll(){return Ne=!0,!1}}),Ne?ce.current=!1:ce.current=!0}}U.on("openchange",Ce);function nt(){const Te=F.current;let Ne=typeof Te=="function"?Te(ee.current):Te;if(Ne===void 0||Ne===!1)return null;if(Ne===null&&(Ne=!0),typeof Ne=="boolean"){const we=T||Cd();return we&&we.isConnected?we:null}const Ke=T||Cd();return xa(Ne)||Ke||null}return()=>{U.off("openchange",Ce);const Te=Sa(xe),Ne=Ye(),Ke=rt(D,Te)||Ne.some(le=>le===Te||rt(le,Te))||ie&&Yr(ie.nodesRef.current,z(),!1).some(le=>{var ue;return rt((ue=le.context)==null?void 0:ue.elements.floating,Te)}),we=nt();queueMicrotask(()=>{const le=Xj(we),ue=typeof F.current!="boolean";F.current&&!ce.current&&Vn(le)&&(!(!ue&&le!==Te&&Te!==xe.body)||Ke)&&le.focus({preventScroll:!0}),ce.current=!1})}},[o,D,se,F,M,U,ie,T,z,Ye]),ke(()=>{if(!V0||N||!D)return;const xe=Sa(xt(D));!Vn(xe)||!I0(xe)||rt(D,xe)&&xe.blur()},[N,D]),ke(()=>{if(!(o||!G))return G.setFocusManagerState({modal:p,closeOnFocusOut:g,open:N,onOpenChange:w.setOpen,domReference:T}),()=>{G.setFocusManagerState(null)}},[o,G,p,N,w,g,T]),ke(()=>{if(!(o||!se))return Ty(se,H),()=>{queueMicrotask(Em)}},[o,se,H]);const ct=!o&&(p?!V:!0)&&(de||p);return y.jsxs(h.Fragment,{children:[ct&&y.jsx(hu,{"data-type":"inside",ref:A,onFocus:xe=>{var ve;if(p){const Ce=ot();xd(Ce[Ce.length-1])}else if(G!=null&&G.portalNode)if(ce.current=!1,to(xe,G.portalNode)){const Ce=ex(T);Ce==null||Ce.focus()}else(ve=xa(v??G.beforeOutsideRef))==null||ve.focus()}}),r,ct&&y.jsx(hu,{"data-type":"inside",ref:q,onFocus:xe=>{var ve;if(p)xd(ot()[0]);else if(G!=null&&G.portalNode)if(g&&(ce.current=!0),to(xe,G.portalNode)){const Ce=tx(T);Ce==null||Ce.focus()}else(ve=xa(x??G.afterOutsideRef))==null||ve.focus()}})]})}const Qj={intentional:"onClick",sloppy:"onPointerDown"};function $j(){return!1}function Zj(n){return{escapeKey:typeof n=="boolean"?n:(n==null?void 0:n.escapeKey)??!1,outsidePress:typeof n=="boolean"?n:(n==null?void 0:n.outsidePress)??!0}}function Fj(n,l={}){const r="rootStore"in n?n.rootStore:n,o=r.useState("open"),s=r.useState("floatingElement"),{dataRef:c}=r.context,{enabled:d=!0,escapeKey:p=!0,outsidePress:g=!0,outsidePressEvent:m="sloppy",referencePress:x=$j,referencePressEvent:v="sloppy",bubbles:S,externalTree:C}=l,R=sx(C),w=Ue(typeof g=="function"?g:()=>!1),N=typeof g=="function"?w:g,T=N!==!1,D=Ue(()=>m),U=h.useRef(!1),M=h.useRef(!1),z=h.useRef(!1),{escapeKey:B,outsidePress:V}=Zj(S),H=h.useRef(null),K=uu(),F=uu(),ne=Ue(()=>{F.clear(),c.current.insideReactTree=!1}),ie=h.useRef(!1),G=h.useRef(""),ce=Ue(x),fe=Ue(j=>{var re;if(!o||!d||!p||j.key!=="Escape"||ie.current)return;const A=(re=c.current.floatingContext)==null?void 0:re.nodeId,q=R?Yr(R.nodesRef.current,A):[];if(!B&&q.length>0){let de=!0;if(q.forEach(se=>{var he;(he=se.context)!=null&&he.open&&!se.context.dataRef.current.__escapeKeyBubbles&&(de=!1)}),!de)return}const $=ij(j)?j.nativeEvent:j,I=kn(XN,$);r.setOpen(!1,I),!B&&!I.isPropagationAllowed&&j.stopPropagation()}),k=Ue(()=>{c.current.insideReactTree=!0,F.start(0,ne)});h.useEffect(()=>{if(!o||!d)return;c.current.__escapeKeyBubbles=B,c.current.__outsidePressBubbles=V;const j=new Ul,A=new Ul;function q(){j.clear(),ie.current=!0}function $(){j.start(zN()?5:0,()=>{ie.current=!1})}function I(){z.current=!0,A.start(0,()=>{z.current=!1})}function re(){U.current=!1,M.current=!1}function de(){const le=G.current,ue=le==="pen"||!le?"mouse":le,Oe=D(),De=typeof Oe=="function"?Oe():Oe;return typeof De=="string"?De:De[ue]}function se(le){const ue=de();return ue==="intentional"&&le.type!=="click"||ue==="sloppy"&&le.type==="click"}function he(le){var De;const ue=(De=c.current.floatingContext)==null?void 0:De.nodeId,Oe=R&&Yr(R.nodesRef.current,ue).some(zt=>{var Pt;return Hn(le,(Pt=zt.context)==null?void 0:Pt.elements.floating)});return Hn(le,r.select("floatingElement"))||Hn(le,r.select("domReferenceElement"))||Oe}function Ye(le){var pt;if(se(le)){ne();return}if(c.current.insideReactTree){ne();return}const ue=$n(le),Oe=`[${pu("inert")}]`;let De=Array.from(xt(r.select("floatingElement")).querySelectorAll(Oe));const zt=Ur(ue)?ue.getRootNode():null;io(zt)&&(De=De.concat(Array.from(zt.querySelectorAll(Oe))));const Pt=r.context.triggerElements;if(ue&&(Pt.hasElement(ue)||Pt.hasMatchingElement(Je=>rt(Je,ue))))return;let bn=Ur(ue)?ue:null;for(;bn&&!md(bn);){const Je=_N(bn);if(md(Je)||!Ur(Je))break;bn=Je}if(De.length&&Ur(ue)&&!rj(ue)&&!rt(ue,r.select("floatingElement"))&&De.every(Je=>!rt(bn,Je)))return;if(Vn(ue)&&!("touches"in le)){const Je=md(ue),jt=xm(ue),cn=/auto|scroll/,_t=Je||cn.test(jt.overflowX),fn=Je||cn.test(jt.overflowY),At=_t&&ue.clientWidth>0&&ue.scrollWidth>ue.clientWidth,ti=fn&&ue.clientHeight>0&&ue.scrollHeight>ue.clientHeight,cl=jt.direction==="rtl",xn=ti&&(cl?le.offsetX<=ue.offsetWidth-ue.clientWidth:le.offsetX>ue.clientWidth),Na=At&&le.offsetY>ue.clientHeight;if(xn||Na)return}if(he(le))return;if(de()==="intentional"&&z.current){A.clear(),z.current=!1;return}if(typeof N=="function"&&!N(le))return;const zn=(pt=c.current.floatingContext)==null?void 0:pt.nodeId,ht=R?Yr(R.nodesRef.current,zn):[];if(ht.length>0){let Je=!0;if(ht.forEach(jt=>{var cn;(cn=jt.context)!=null&&cn.open&&!jt.context.dataRef.current.__outsidePressBubbles&&(Je=!1)}),!Je)return}r.setOpen(!1,kn(_0,le)),ne()}function ot(le){de()!=="sloppy"||le.pointerType==="touch"||!r.select("open")||!d||Hn(le,r.select("floatingElement"))||Hn(le,r.select("domReferenceElement"))||Ye(le)}function ct(le){if(de()!=="sloppy"||!r.select("open")||!d||Hn(le,r.select("floatingElement"))||Hn(le,r.select("domReferenceElement")))return;const ue=le.touches[0];ue&&(H.current={startTime:Date.now(),startX:ue.clientX,startY:ue.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},K.start(1e3,()=>{H.current&&(H.current.dismissOnTouchEnd=!1,H.current.dismissOnMouseDown=!1)}))}function xe(le){G.current="touch";const ue=$n(le);function Oe(){ct(le),ue==null||ue.removeEventListener(le.type,Oe)}ue==null||ue.addEventListener(le.type,Oe)}function ve(le){if(K.clear(),le.type==="pointerdown"&&(G.current=le.pointerType),le.type==="mousedown"&&H.current&&!H.current.dismissOnMouseDown)return;const ue=$n(le);function Oe(){le.type==="pointerdown"?ot(le):Ye(le),ue==null||ue.removeEventListener(le.type,Oe)}ue==null||ue.addEventListener(le.type,Oe)}function Ce(le){if(!U.current)return;const ue=M.current;if(re(),de()==="intentional"){if(le.type==="pointercancel"){ue&&I();return}if(!he(le)){if(ue){I();return}typeof N=="function"&&!N(le)||(A.clear(),z.current=!0,ne())}}}function nt(le){if(de()!=="sloppy"||!H.current||Hn(le,r.select("floatingElement"))||Hn(le,r.select("domReferenceElement")))return;const ue=le.touches[0];if(!ue)return;const Oe=Math.abs(ue.clientX-H.current.startX),De=Math.abs(ue.clientY-H.current.startY),zt=Math.sqrt(Oe*Oe+De*De);zt>5&&(H.current.dismissOnTouchEnd=!0),zt>10&&(Ye(le),K.clear(),H.current=null)}function Te(le){const ue=$n(le);function Oe(){nt(le),ue==null||ue.removeEventListener(le.type,Oe)}ue==null||ue.addEventListener(le.type,Oe)}function Ne(le){de()!=="sloppy"||!H.current||Hn(le,r.select("floatingElement"))||Hn(le,r.select("domReferenceElement"))||(H.current.dismissOnTouchEnd&&Ye(le),K.clear(),H.current=null)}function Ke(le){const ue=$n(le);function Oe(){Ne(le),ue==null||ue.removeEventListener(le.type,Oe)}ue==null||ue.addEventListener(le.type,Oe)}const we=xt(s);return p&&(we.addEventListener("keydown",fe),we.addEventListener("compositionstart",q),we.addEventListener("compositionend",$)),T&&(we.addEventListener("click",ve,!0),we.addEventListener("pointerdown",ve,!0),we.addEventListener("pointerup",Ce,!0),we.addEventListener("pointercancel",Ce,!0),we.addEventListener("mousedown",ve,!0),we.addEventListener("mouseup",Ce,!0),we.addEventListener("touchstart",xe,!0),we.addEventListener("touchmove",Te,!0),we.addEventListener("touchend",Ke,!0)),()=>{p&&(we.removeEventListener("keydown",fe),we.removeEventListener("compositionstart",q),we.removeEventListener("compositionend",$)),T&&(we.removeEventListener("click",ve,!0),we.removeEventListener("pointerdown",ve,!0),we.removeEventListener("pointerup",Ce,!0),we.removeEventListener("pointercancel",Ce,!0),we.removeEventListener("mousedown",ve,!0),we.removeEventListener("mouseup",Ce,!0),we.removeEventListener("touchstart",xe,!0),we.removeEventListener("touchmove",Te,!0),we.removeEventListener("touchend",Ke,!0)),j.clear(),A.clear(),re(),z.current=!1}},[c,s,p,T,N,o,d,B,V,fe,ne,D,R,r,K]),h.useEffect(ne,[N,ne]);const _=h.useMemo(()=>({onKeyDown:fe,[Qj[v]]:j=>{ce()&&r.setOpen(!1,kn(my,j.nativeEvent))},...v!=="intentional"&&{onClick(j){ce()&&r.setOpen(!1,kn(my,j.nativeEvent))}}}),[fe,r,v,ce]),ee=Ue(j=>{if(!o||!d||j.button!==0)return;const A=$n(j.nativeEvent);rt(r.select("floatingElement"),A)&&(U.current||(U.current=!0,M.current=!1))}),oe=Ue(j=>{!o||!d||(j.defaultPrevented||j.nativeEvent.defaultPrevented)&&U.current&&(M.current=!0)}),J=h.useMemo(()=>({onKeyDown:fe,onPointerDown:oe,onMouseDown:oe,onClickCapture:k,onMouseDownCapture(j){k(),ee(j)},onPointerDownCapture(j){k(),ee(j)},onMouseUpCapture:k,onTouchEndCapture:k,onTouchMoveCapture:k}),[fe,k,ee,oe]);return h.useMemo(()=>d?{reference:_,floating:J,trigger:_}:{},[d,_,J])}var gu=Symbol("NOT_FOUND");function Wj(n,l=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(l)}function Jj(n,l=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(l)}function eA(n,l="expected all items to be functions, instead received the following types: "){if(!n.every(r=>typeof r=="function")){const r=n.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${l}[${r}]`)}}var Ny=n=>Array.isArray(n)?n:[n];function tA(n){const l=Array.isArray(n[0])?n[0]:n;return eA(l,"createSelector expects all input-selectors to be functions, but received the following types: "),l}function nA(n,l){const r=[],{length:o}=n;for(let s=0;s<o;s++)r.push(n[s].apply(null,l));return r}function aA(n){let l;return{get(r){return l&&n(l.key,r)?l.value:gu},put(r,o){l={key:r,value:o}},getEntries(){return l?[l]:[]},clear(){l=void 0}}}function lA(n,l){let r=[];function o(p){const g=r.findIndex(m=>l(p,m.key));if(g>-1){const m=r[g];return g>0&&(r.splice(g,1),r.unshift(m)),m.value}return gu}function s(p,g){o(p)===gu&&(r.unshift({key:p,value:g}),r.length>n&&r.pop())}function c(){return r}function d(){r=[]}return{get:o,put:s,getEntries:c,clear:d}}var rA=(n,l)=>n===l;function iA(n){return function(r,o){if(r===null||o===null||r.length!==o.length)return!1;const{length:s}=r;for(let c=0;c<s;c++)if(!n(r[c],o[c]))return!1;return!0}}function oA(n,l){const r=typeof l=="object"?l:{equalityCheck:l},{equalityCheck:o=rA,maxSize:s=1,resultEqualityCheck:c}=r,d=iA(o);let p=0;const g=s<=1?aA(d):lA(s,d);function m(){let x=g.get(arguments);if(x===gu){if(x=n.apply(null,arguments),p++,c){const S=g.getEntries().find(C=>c(C.value,x));S&&(x=S.value,p!==0&&p--)}g.put(arguments,x)}return x}return m.clearCache=()=>{g.clear(),m.resetResultsCount()},m.resultsCount=()=>p,m.resetResultsCount=()=>{p=0},m}var sA=class{constructor(n){this.value=n}deref(){return this.value}},uA=typeof WeakRef<"u"?WeakRef:sA,cA=0,jy=1;function Xs(){return{s:cA,v:void 0,o:null,p:null}}function ux(n,l={}){let r=Xs();const{resultEqualityCheck:o}=l;let s,c=0;function d(){var v;let p=r;const{length:g}=arguments;for(let S=0,C=g;S<C;S++){const R=arguments[S];if(typeof R=="function"||typeof R=="object"&&R!==null){let w=p.o;w===null&&(p.o=w=new WeakMap);const N=w.get(R);N===void 0?(p=Xs(),w.set(R,p)):p=N}else{let w=p.p;w===null&&(p.p=w=new Map);const N=w.get(R);N===void 0?(p=Xs(),w.set(R,p)):p=N}}const m=p;let x;if(p.s===jy)x=p.v;else if(x=n.apply(null,arguments),c++,o){const S=((v=s==null?void 0:s.deref)==null?void 0:v.call(s))??s;S!=null&&o(S,x)&&(x=S,c!==0&&c--),s=typeof x=="object"&&x!==null||typeof x=="function"?new uA(x):x}return m.s=jy,m.v=x,x}return d.clearCache=()=>{r=Xs(),d.resetResultsCount()},d.resultsCount=()=>c,d.resetResultsCount=()=>{c=0},d}function cx(n,...l){const r=typeof n=="function"?{memoize:n,memoizeOptions:l}:n,o=(...s)=>{let c=0,d=0,p,g={},m=s.pop();typeof m=="object"&&(g=m,m=s.pop()),Wj(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const x={...r,...g},{memoize:v,memoizeOptions:S=[],argsMemoize:C=ux,argsMemoizeOptions:R=[]}=x,w=Ny(S),N=Ny(R),T=tA(s),D=v(function(){return c++,m.apply(null,arguments)},...w),U=C(function(){d++;const z=nA(T,arguments);return p=D.apply(null,z),p},...N);return Object.assign(U,{resultFunc:m,memoizedResultFunc:D,dependencies:T,dependencyRecomputations:()=>d,resetDependencyRecomputations:()=>{d=0},lastResult:()=>p,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:v,argsMemoize:C})};return Object.assign(o,{withTypes:()=>o}),o}var fA=cx(ux),dA=Object.assign((n,l=fA)=>{Jj(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const r=Object.keys(n),o=r.map(c=>n[c]);return l(o,(...c)=>c.reduce((d,p,g)=>(d[r[g]]=p,d),{}))},{withTypes:()=>dA});cx({memoize:oA,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const $e=(n,l,r,o,s,c,...d)=>{if(d.length>0)throw new Error(ea(1));let p;if(n)p=n;else throw new Error("Missing arguments");return p};var Rd={exports:{}},Td={};/**
|
|
233
|
+
* @license React
|
|
234
|
+
* use-sync-external-store-shim.production.js
|
|
235
|
+
*
|
|
236
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the MIT license found in the
|
|
239
|
+
* LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/var Ay;function mA(){if(Ay)return Td;Ay=1;var n=so();function l(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var r=typeof Object.is=="function"?Object.is:l,o=n.useState,s=n.useEffect,c=n.useLayoutEffect,d=n.useDebugValue;function p(v,S){var C=S(),R=o({inst:{value:C,getSnapshot:S}}),w=R[0].inst,N=R[1];return c(function(){w.value=C,w.getSnapshot=S,g(w)&&N({inst:w})},[v,C,S]),s(function(){return g(w)&&N({inst:w}),v(function(){g(w)&&N({inst:w})})},[v]),d(C),C}function g(v){var S=v.getSnapshot;v=v.value;try{var C=S();return!r(v,C)}catch{return!0}}function m(v,S){return S()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return Td.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,Td}var My;function fx(){return My||(My=1,Rd.exports=mA()),Rd.exports}var hA=fx(),Nd={exports:{}},jd={};/**
|
|
241
|
+
* @license React
|
|
242
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
243
|
+
*
|
|
244
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the MIT license found in the
|
|
247
|
+
* LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/var Oy;function pA(){if(Oy)return jd;Oy=1;var n=so(),l=fx();function r(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}var o=typeof Object.is=="function"?Object.is:r,s=l.useSyncExternalStore,c=n.useRef,d=n.useEffect,p=n.useMemo,g=n.useDebugValue;return jd.useSyncExternalStoreWithSelector=function(m,x,v,S,C){var R=c(null);if(R.current===null){var w={hasValue:!1,value:null};R.current=w}else w=R.current;R=p(function(){function T(B){if(!D){if(D=!0,U=B,B=S(B),C!==void 0&&w.hasValue){var V=w.value;if(C(V,B))return M=V}return M=B}if(V=M,o(U,B))return V;var H=S(B);return C!==void 0&&C(V,H)?(U=B,V):(U=B,M=H)}var D=!1,U,M,z=v===void 0?null:v;return[function(){return T(x())},z===null?void 0:function(){return T(z())}]},[x,v,S,C]);var N=s(m,R[0],R[1]);return d(function(){w.hasValue=!0,w.value=N},[N]),g(N),N},jd}var ky;function gA(){return ky||(ky=1,Nd.exports=pA()),Nd.exports}var vA=gA();const yA=gm(19),bA=yA?SA:EA;function dx(n,l,r,o,s){return bA(n,l,r,o,s)}function xA(n,l,r,o,s){const c=h.useCallback(()=>l(n.getSnapshot(),r,o,s),[n,l,r,o,s]);return hA.useSyncExternalStore(n.subscribe,c,c)}function SA(n,l,r,o,s){return xA(n,l,r,o,s)}function EA(n,l,r,o,s){return vA.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getSnapshot,c=>l(c,r,o,s))}class wA{constructor(l){dt(this,"subscribe",l=>(this.listeners.add(l),()=>{this.listeners.delete(l)}));dt(this,"getSnapshot",()=>this.state);this.state=l,this.listeners=new Set,this.updateTick=0}setState(l){if(this.state===l)return;this.state=l,this.updateTick+=1;const r=this.updateTick;for(const o of this.listeners){if(r!==this.updateTick)return;o(l)}}update(l){for(const r in l)if(!Object.is(this.state[r],l[r])){this.setState({...this.state,...l});return}}set(l,r){Object.is(this.state[l],r)||this.setState({...this.state,[l]:r})}notifyAll(){const l={...this.state};this.setState(l)}use(l,r,o,s){return dx(this,l,r,o,s)}}class mx extends wA{constructor(l,r={},o){super(l),this.context=r,this.selectors=o}useSyncedValue(l,r){h.useDebugValue(l),ke(()=>{this.state[l]!==r&&this.set(l,r)},[l,r])}useSyncedValueWithCleanup(l,r){const o=this;ke(()=>(o.state[l]!==r&&o.set(l,r),()=>{o.set(l,void 0)}),[o,l,r])}useSyncedValues(l){const r=this,o=Object.values(l);ke(()=>{r.update(l)},[r,...o])}useControlledProp(l,r){h.useDebugValue(l);const o=r!==void 0;ke(()=>{o&&!Object.is(this.state[l],r)&&super.setState({...this.state,[l]:r})},[l,r,o])}select(l,r,o,s){const c=this.selectors[l];return c(this.state,r,o,s)}useState(l,r,o,s){return h.useDebugValue(l),dx(this,this.selectors[l],r,o,s)}useContextCallback(l,r){h.useDebugValue(l);const o=Ue(r??un);this.context[l]=o}useStateSetter(l){const r=h.useRef(void 0);return r.current===void 0&&(r.current=o=>{this.set(l,o)}),r.current}observe(l,r){let o;typeof l=="function"?o=l:o=this.selectors[l];let s=o(this.state);return r(s,s,this),this.subscribe(c=>{const d=o(c);if(!Object.is(s,d)){const p=s;s=d,r(d,p,this)}})}}const CA={open:$e(n=>n.open),domReferenceElement:$e(n=>n.domReferenceElement),referenceElement:$e(n=>n.positionReference??n.referenceElement),floatingElement:$e(n=>n.floatingElement),floatingId:$e(n=>n.floatingId)};class hx extends mx{constructor(r){const{nested:o,noEmit:s,onOpenChange:c,triggerElements:d,...p}=r;super({...p,positionReference:p.referenceElement,domReferenceElement:p.referenceElement},{onOpenChange:c,dataRef:{current:{}},events:Vj(),nested:o,noEmit:s,triggerElements:d},CA);dt(this,"setOpen",(r,o)=>{var s,c;if((!r||!this.state.open||uj(o.event))&&(this.context.dataRef.current.openEvent=r?o.event:void 0),!this.context.noEmit){const d={open:r,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",d)}(c=(s=this.context).onOpenChange)==null||c.call(s,r,o)})}}function px(n,l=!1,r=!1){const[o,s]=h.useState(n&&l?"idle":void 0),[c,d]=h.useState(n);return n&&!c&&(d(!0),s("starting")),!n&&c&&o!=="ending"&&!r&&s("ending"),!n&&!c&&o==="ending"&&s(void 0),ke(()=>{if(!n&&c&&o!=="ending"&&r){const p=Zn.request(()=>{s("ending")});return()=>{Zn.cancel(p)}}},[n,c,o,r]),ke(()=>{if(!n||l)return;const p=Zn.request(()=>{s(void 0)});return()=>{Zn.cancel(p)}},[l,n]),ke(()=>{if(!n||!l)return;n&&c&&o!=="idle"&&s("starting");const p=Zn.request(()=>{s("idle")});return()=>{Zn.cancel(p)}},[l,n,c,s,o]),h.useMemo(()=>({mounted:c,setMounted:d,transitionStatus:o}),[c,o])}function RA(n,l=!1,r=!0){const o=nx();return Ue((s,c=null)=>{o.cancel();function d(){Zr.flushSync(s)}const p=xa(n);if(p==null)return;const g=p;if(typeof g.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)s();else{let v=function(){const C=Ll.startingStyle;if(!g.hasAttribute(C)){o.request(S);return}const R=new MutationObserver(()=>{g.hasAttribute(C)||(R.disconnect(),S())});R.observe(g,{attributes:!0,attributeFilter:[C]}),c==null||c.addEventListener("abort",()=>R.disconnect(),{once:!0})},S=function(){Promise.all(g.getAnimations().map(C=>C.finished)).then(()=>{c!=null&&c.aborted||d()}).catch(()=>{const C=g.getAnimations();if(r){if(c!=null&&c.aborted)return;d()}else C.length>0&&C.some(R=>R.pending||R.playState!=="finished")&&S()})};var m=v,x=S;if(l){v();return}o.request(S)}})}function wm(n){const{enabled:l=!0,open:r,ref:o,onComplete:s}=n,c=Ue(s),d=RA(o,r,!1);h.useEffect(()=>{if(!l)return;const p=new AbortController;return d(c,p.signal),()=>{p.abort()}},[l,r,c,d])}function TA(n){const l=n.useState("open");ke(()=>{if(l&&!n.select("activeTriggerId")&&n.context.triggerElements.size===1){const r=n.context.triggerElements.entries().next();if(!r.done){const[o,s]=r.value;n.update({activeTriggerId:o,activeTriggerElement:s})}}},[l,n])}function NA(n,l,r){const{mounted:o,setMounted:s,transitionStatus:c}=px(n);l.useSyncedValues({mounted:o,transitionStatus:c});const d=Ue(()=>{var g,m;s(!1),l.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),(m=(g=l.context).onOpenChangeComplete)==null||m.call(g,!1)}),p=l.useState("preventUnmountingOnClose");return wm({enabled:!p,open:n,ref:l.context.popupRef,onComplete(){n||d()}}),{forceUnmount:d,transitionStatus:c}}class gx{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(l,r){const o=this.idMap.get(l);o!==r&&(o!==void 0&&this.elementsSet.delete(o),this.elementsSet.add(r),this.idMap.set(l,r))}delete(l){const r=this.idMap.get(l);r&&(this.elementsSet.delete(r),this.idMap.delete(l))}hasElement(l){return this.elementsSet.has(l)}hasMatchingElement(l){for(const r of this.elementsSet)if(l(r))return!0;return!1}getById(l){return this.idMap.get(l)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function jA(){return new hx({open:!1,floatingElement:null,referenceElement:null,triggerElements:new gx,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function AA(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:jA(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Kt,inactiveTriggerProps:Kt,popupProps:Kt}}const Ks=$e(n=>n.triggerIdProp??n.activeTriggerId),MA={open:$e(n=>n.openProp??n.open),mounted:$e(n=>n.mounted),transitionStatus:$e(n=>n.transitionStatus),floatingRootContext:$e(n=>n.floatingRootContext),preventUnmountingOnClose:$e(n=>n.preventUnmountingOnClose),payload:$e(n=>n.payload),activeTriggerId:Ks,activeTriggerElement:$e(n=>n.mounted?n.activeTriggerElement:null),isTriggerActive:$e((n,l)=>l!==void 0&&Ks(n)===l),isOpenedByTrigger:$e((n,l)=>l!==void 0&&Ks(n)===l&&n.open),isMountedByTrigger:$e((n,l)=>l!==void 0&&Ks(n)===l&&n.mounted),triggerProps:$e((n,l)=>l?n.activeTriggerProps:n.inactiveTriggerProps),popupProps:$e(n=>n.popupProps),popupElement:$e(n=>n.popupElement),positionerElement:$e(n=>n.positionerElement)};function OA(n){const{popupStore:l,noEmit:r=!1,treatPopupAsFloatingElement:o=!1,onOpenChange:s}=n,c=Nu(),d=ox()!=null,p=l.useState("open"),g=l.useState("activeTriggerElement"),m=l.useState(o?"popupElement":"positionerElement"),x=l.context.triggerElements,v=Yn(()=>new hx({open:p,referenceElement:g,floatingElement:m,triggerElements:x,onOpenChange:s,floatingId:c,nested:d,noEmit:r})).current;return ke(()=>{const S={open:p,floatingId:c,referenceElement:g,floatingElement:m};Ur(g)&&(S.domReferenceElement=g),v.state.positionReference===v.state.referenceElement&&(S.positionReference=g),v.update(S)},[p,c,g,m,v]),v.context.onOpenChange=s,v.context.nested=d,v.context.noEmit=r,v}function kA(n=[]){const l=n.map(m=>m==null?void 0:m.reference),r=n.map(m=>m==null?void 0:m.floating),o=n.map(m=>m==null?void 0:m.item),s=n.map(m=>m==null?void 0:m.trigger),c=h.useCallback(m=>Ps(m,n,"reference"),l),d=h.useCallback(m=>Ps(m,n,"floating"),r),p=h.useCallback(m=>Ps(m,n,"item"),o),g=h.useCallback(m=>Ps(m,n,"trigger"),s);return h.useMemo(()=>({getReferenceProps:c,getFloatingProps:d,getItemProps:p,getTriggerProps:g}),[c,d,p,g])}function Ps(n,l,r){var d;const o=new Map,s=r==="item",c={};r==="floating"&&(c.tabIndex=-1,c[Qd]="");for(const p in n)s&&n&&(p===q0||p===G0)||(c[p]=n[p]);for(let p=0;p<l.length;p+=1){let g;const m=(d=l[p])==null?void 0:d[r];typeof m=="function"?g=n?m(n):null:g=m,g&&Dy(c,g,s,o)}return Dy(c,n,s,o),c}function Dy(n,l,r,o){var s;for(const c in l){const d=l[c];r&&(c===q0||c===G0)||(c.startsWith("on")?(o.has(c)||o.set(c,[]),typeof d=="function"&&((s=o.get(c))==null||s.push(d),n[c]=(...p)=>{var g;return(g=o.get(c))==null?void 0:g.map(m=>m(...p)).find(m=>m!==void 0)})):n[c]=d)}}const DA=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function zA(n,l={}){const r="rootStore"in n?n.rootStore:n,o=r.useState("open"),s=r.useState("floatingId"),c=r.useState("domReferenceElement"),d=r.useState("floatingElement"),{role:p="dialog"}=l,g=Nu(),m=(c==null?void 0:c.id)||g,x=h.useMemo(()=>{var D;return((D=$d(d))==null?void 0:D.id)||s},[d,s]),v=DA.get(p)??p,C=ox()!=null,R=h.useMemo(()=>v==="tooltip"||p==="label"?Kt:{"aria-haspopup":v==="alertdialog"?"dialog":v,"aria-expanded":"false",...v==="listbox"&&{role:"combobox"},...v==="menu"&&C&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[v,C,p]),w=h.useMemo(()=>v==="tooltip"||p==="label"?{[`aria-${p==="label"?"labelledby":"describedby"}`]:o?x:void 0}:{...R,"aria-expanded":o?"true":"false","aria-controls":o?x:void 0,...v==="menu"&&{id:m}},[v,x,o,m,p,R]),N=h.useMemo(()=>{const D={id:x,...v&&{role:v}};return v==="tooltip"||p==="label"?D:{...D,...v==="menu"&&{"aria-labelledby":m}}},[v,x,m,p]),T=h.useCallback(({active:D,selected:U})=>{const M={role:"option",...D&&{id:`${x}-fui-option`}};switch(p){case"select":case"combobox":return{...M,"aria-selected":U}}return{}},[x,p]);return h.useMemo(()=>({reference:w,floating:N,item:T,trigger:R}),[w,N,R,T])}let _A=(function(n){return n.nestedDialogs="--nested-dialogs",n})({}),LA=(function(n){return n[n.open=Ol.open]="open",n[n.closed=Ol.closed]="closed",n[n.startingStyle=Ol.startingStyle]="startingStyle",n[n.endingStyle=Ol.endingStyle]="endingStyle",n.nested="data-nested",n.nestedDialogOpen="data-nested-dialog-open",n})({});const vx=h.createContext(void 0);function UA(){const n=h.useContext(vx);if(n===void 0)throw new Error(ea(26));return n}const Gr="ArrowUp",kl="ArrowDown",oo="ArrowLeft",Ir="ArrowRight",bo="Home",xo="End",yx=new Set([oo,Ir]),BA=new Set([oo,Ir,bo,xo]),bx=new Set([Gr,kl]),HA=new Set([Gr,kl,bo,xo]),xx=new Set([...yx,...bx]),VA=new Set([...xx,bo,xo]),YA=new Set([Gr,kl,oo,Ir,bo,xo]),qA="Shift",GA="Control",IA="Alt",XA="Meta",KA=new Set([qA,GA,IA,XA]);function PA(n){return Vn(n)&&n.tagName==="INPUT"}function zy(n){return!!(PA(n)&&n.selectionStart!=null||Vn(n)&&n.tagName==="TEXTAREA")}function _y(n,l,r,o){if(!n||!l||!l.scrollTo)return;let s=n.scrollLeft,c=n.scrollTop;const d=n.clientWidth<n.scrollWidth,p=n.clientHeight<n.scrollHeight;if(d&&o!=="vertical"){const g=Ly(n,l,"left"),m=Qs(n),x=Qs(l);r==="ltr"&&(g+l.offsetWidth+x.scrollMarginRight>n.scrollLeft+n.clientWidth-m.scrollPaddingRight?s=g+l.offsetWidth+x.scrollMarginRight-n.clientWidth+m.scrollPaddingRight:g-x.scrollMarginLeft<n.scrollLeft+m.scrollPaddingLeft&&(s=g-x.scrollMarginLeft-m.scrollPaddingLeft)),r==="rtl"&&(g-x.scrollMarginRight<n.scrollLeft+m.scrollPaddingLeft?s=g-x.scrollMarginLeft-m.scrollPaddingLeft:g+l.offsetWidth+x.scrollMarginRight>n.scrollLeft+n.clientWidth-m.scrollPaddingRight&&(s=g+l.offsetWidth+x.scrollMarginRight-n.clientWidth+m.scrollPaddingRight))}if(p&&o!=="horizontal"){const g=Ly(n,l,"top"),m=Qs(n),x=Qs(l);g-x.scrollMarginTop<n.scrollTop+m.scrollPaddingTop?c=g-x.scrollMarginTop-m.scrollPaddingTop:g+l.offsetHeight+x.scrollMarginBottom>n.scrollTop+n.clientHeight-m.scrollPaddingBottom&&(c=g+l.offsetHeight+x.scrollMarginBottom-n.clientHeight+m.scrollPaddingBottom)}n.scrollTo({left:s,top:c,behavior:"auto"})}function Ly(n,l,r){const o=r==="left"?"offsetLeft":"offsetTop";let s=0;for(;l.offsetParent&&(s+=l[o],l.offsetParent!==n);)l=l.offsetParent;return s}function Qs(n){const l=getComputedStyle(n);return{scrollMarginTop:parseFloat(l.scrollMarginTop)||0,scrollMarginRight:parseFloat(l.scrollMarginRight)||0,scrollMarginBottom:parseFloat(l.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(l.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(l.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(l.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(l.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(l.scrollPaddingLeft)||0}}const QA={...k0,...vm,nestedDialogOpen(n){return n?{[LA.nestedDialogOpen]:""}:null}},$A=h.forwardRef(function(l,r){const{className:o,finalFocus:s,initialFocus:c,render:d,...p}=l,{store:g}=Yl(),m=g.useState("descriptionElementId"),x=g.useState("disablePointerDismissal"),v=g.useState("floatingRootContext"),S=g.useState("popupProps"),C=g.useState("modal"),R=g.useState("mounted"),w=g.useState("nested"),N=g.useState("nestedOpenDialogCount"),T=g.useState("open"),D=g.useState("openMethod"),U=g.useState("titleElementId"),M=g.useState("transitionStatus"),z=g.useState("role");UA(),wm({open:T,ref:g.context.popupRef,onComplete(){var ne,ie;T&&((ie=(ne=g.context).onOpenChangeComplete)==null||ie.call(ne,!0))}});function B(ne){return ne==="touch"?g.context.popupRef.current:!0}const V=c===void 0?B:c,H=N>0,F=Nt("div",l,{state:{open:T,nested:w,transitionStatus:M,nestedDialogOpen:H},props:[S,{"aria-labelledby":U??void 0,"aria-describedby":m??void 0,role:z,tabIndex:-1,hidden:!R,onKeyDown(ne){YA.has(ne.key)&&ne.stopPropagation()},style:{[_A.nestedDialogs]:N}},p],ref:[r,g.context.popupRef,g.useStateSetter("popupElement")],stateAttributesMapping:QA});return y.jsx(Pj,{context:v,openInteractionType:D,disabled:!R,closeOnFocusOut:!x,initialFocus:V,returnFocus:s,modal:C!==!1,restoreFocus:"popup",children:F})});function Sx(n){return gm(19)?n:n?"true":void 0}const ZA=h.forwardRef(function(l,r){const{cutout:o,...s}=l;let c;if(o){const d=o==null?void 0:o.getBoundingClientRect();c=`polygon(
|
|
249
|
+
0% 0%,
|
|
250
|
+
100% 0%,
|
|
251
|
+
100% 100%,
|
|
252
|
+
0% 100%,
|
|
253
|
+
0% 0%,
|
|
254
|
+
${d.left}px ${d.top}px,
|
|
255
|
+
${d.left}px ${d.bottom}px,
|
|
256
|
+
${d.right}px ${d.bottom}px,
|
|
257
|
+
${d.right}px ${d.top}px,
|
|
258
|
+
${d.left}px ${d.top}px
|
|
259
|
+
)`}return y.jsx("div",{ref:r,role:"presentation","data-base-ui-inert":"",...s,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),FA=h.forwardRef(function(l,r){const{keepMounted:o=!1,...s}=l,{store:c}=Yl(),d=c.useState("mounted"),p=c.useState("modal"),g=c.useState("open");return d||o?y.jsx(vx.Provider,{value:o,children:y.jsxs(Hj,{ref:r,...s,children:[d&&p===!0&&y.jsx(ZA,{ref:c.context.internalBackdropRef,inert:Sx(!g)}),l.children]})}):null});function WA(n){const l=h.useRef(!0);l.current&&(l.current=!1,n())}let Uy={},By={},Hy="";function JA(n){if(typeof document>"u")return!1;const l=xt(n);return Ta(l).innerWidth-l.documentElement.clientWidth>0}function eM(n){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const r=xt(n),o=r.documentElement,s=r.body,c=bm(o)?o:s,d=c.style.overflowY,p=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",c.style.overflowY="scroll";const g=c.offsetWidth;c.style.overflowY="hidden";const m=c.offsetWidth;return c.style.overflowY=d,o.style.scrollbarGutter=p,g===m}function tM(n){const l=xt(n),r=l.documentElement,o=l.body,s=bm(r)?r:o,c={overflowY:s.style.overflowY,overflowX:s.style.overflowX};return Object.assign(s.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(s.style,c)}}function nM(n){var S;const l=xt(n),r=l.documentElement,o=l.body,s=Ta(r);let c=0,d=0,p=!1;const g=Zn.create();if(V0&&(((S=s.visualViewport)==null?void 0:S.scale)??1)!==1)return()=>{};function m(){const C=s.getComputedStyle(r),R=s.getComputedStyle(o),T=(C.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=r.scrollTop,d=r.scrollLeft,Uy={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},Hy=r.style.scrollBehavior,By={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};const D=r.scrollHeight>r.clientHeight,U=r.scrollWidth>r.clientWidth,M=C.overflowY==="scroll"||R.overflowY==="scroll",z=C.overflowX==="scroll"||R.overflowX==="scroll",B=Math.max(0,s.innerWidth-o.clientWidth),V=Math.max(0,s.innerHeight-o.clientHeight),H=parseFloat(R.marginTop)+parseFloat(R.marginBottom),K=parseFloat(R.marginLeft)+parseFloat(R.marginRight),F=bm(r)?r:o;if(p=eM(n),p){r.style.scrollbarGutter=T,F.style.overflowY="hidden",F.style.overflowX="hidden";return}Object.assign(r.style,{scrollbarGutter:T,overflowY:"hidden",overflowX:"hidden"}),(D||M)&&(r.style.overflowY="scroll"),(U||z)&&(r.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:H||V?`calc(100dvh - ${H+V}px)`:"100dvh",width:K||B?`calc(100vw - ${K+B}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),o.scrollTop=c,o.scrollLeft=d,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}function x(){Object.assign(r.style,Uy),Object.assign(o.style,By),p||(r.scrollTop=c,r.scrollLeft=d,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=Hy)}function v(){x(),g.request(m)}return m(),s.addEventListener("resize",v),()=>{g.cancel(),x(),typeof s.removeEventListener=="function"&&s.removeEventListener("resize",v)}}class aM{constructor(){dt(this,"lockCount",0);dt(this,"restore",null);dt(this,"timeoutLock",Ul.create());dt(this,"timeoutUnlock",Ul.create());dt(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});dt(this,"unlock",()=>{var l;this.lockCount===0&&this.restore&&((l=this.restore)==null||l.call(this),this.restore=null)})}acquire(l){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(l)),this.release}lock(l){if(this.lockCount===0||this.restore!==null)return;const o=xt(l).documentElement,s=Ta(o).getComputedStyle(o).overflowY;if(s==="hidden"||s==="clip"){this.restore=un;return}const c=Y0||!JA(l);this.restore=c?tM(l):nM(l)}}const lM=new aM;function rM(n=!0,l=null){ke(()=>{if(n)return lM.acquire(l)},[n,l])}function iM(n){const l=h.useRef(""),r=h.useCallback(s=>{s.defaultPrevented||(l.current=s.pointerType,n(s,s.pointerType))},[n]);return{onClick:h.useCallback(s=>{if(s.detail===0){n(s,"keyboard");return}"pointerType"in s?n(s,s.pointerType):n(s,l.current),l.current=""},[n]),onPointerDown:r}}function Ex(n,l){const r=h.useRef(n),o=Ue(l);ke(()=>{r.current!==n&&o(r.current)},[n,o]),ke(()=>{r.current=n},[n])}function oM(n){const[l,r]=h.useState(null),o=Ue((d,p)=>{n||r(p||(Y0?"touch":""))});Ex(n,d=>{d&&!n&&r(null)});const{onClick:s,onPointerDown:c}=iM(o);return h.useMemo(()=>({openMethod:l,triggerProps:{onClick:s,onPointerDown:c}}),[l,s,c])}function sM(n){const{store:l,parentContext:r,actionsRef:o}=n,s=l.useState("open"),c=l.useState("disablePointerDismissal"),d=l.useState("modal"),p=l.useState("popupElement"),{openMethod:g,triggerProps:m}=oM(s);TA(l);const{forceUnmount:x}=NA(s,l),v=Ue(K=>{const F=kn(K);return F.preventUnmountOnClose=()=>{l.set("preventUnmountingOnClose",!0)},F}),S=h.useCallback(()=>{l.setOpen(!1,v(KN))},[l,v]);h.useImperativeHandle(o,()=>({unmount:x,close:S}),[x,S]);const C=OA({popupStore:l,onOpenChange:l.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[R,w]=h.useState(0),N=R===0,T=zA(C),D=Fj(C,{outsidePressEvent(){return l.context.internalBackdropRef.current||l.context.backdropRef.current?"intentional":{mouse:d==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(K){if(!l.context.outsidePressEnabledRef.current||"button"in K&&K.button!==0||"touches"in K&&K.touches.length!==1)return!1;const F=$n(K);if(N&&!c){const ne=F;return d&&(l.context.internalBackdropRef.current||l.context.backdropRef.current)?l.context.internalBackdropRef.current===ne||l.context.backdropRef.current===ne||rt(ne,p)&&!(ne!=null&&ne.hasAttribute("data-base-ui-portal")):!0}return!1},escapeKey:N});rM(s&&d===!0,p);const{getReferenceProps:U,getFloatingProps:M,getTriggerProps:z}=kA([T,D]);l.useContextCallback("onNestedDialogOpen",K=>{w(K+1)}),l.useContextCallback("onNestedDialogClose",()=>{w(0)}),h.useEffect(()=>(r!=null&&r.onNestedDialogOpen&&s&&r.onNestedDialogOpen(R),r!=null&&r.onNestedDialogClose&&!s&&r.onNestedDialogClose(),()=>{r!=null&&r.onNestedDialogClose&&s&&r.onNestedDialogClose()}),[s,r,R]);const B=h.useMemo(()=>U(m),[U,m]),V=h.useMemo(()=>z(m),[z,m]),H=h.useMemo(()=>M(),[M]);l.useSyncedValues({openMethod:g,activeTriggerProps:B,inactiveTriggerProps:V,popupProps:H,floatingRootContext:C,nestedOpenDialogCount:R})}const uM={...MA,modal:$e(n=>n.modal),nested:$e(n=>n.nested),nestedOpenDialogCount:$e(n=>n.nestedOpenDialogCount),disablePointerDismissal:$e(n=>n.disablePointerDismissal),openMethod:$e(n=>n.openMethod),descriptionElementId:$e(n=>n.descriptionElementId),titleElementId:$e(n=>n.titleElementId),viewportElement:$e(n=>n.viewportElement),role:$e(n=>n.role)};class cM extends mx{constructor(r){super(fM(r),{popupRef:h.createRef(),backdropRef:h.createRef(),internalBackdropRef:h.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new gx,onOpenChange:void 0,onOpenChangeComplete:void 0},uM);dt(this,"setOpen",(r,o)=>{var p,g,m,x;if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!r&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),(g=(p=this.context).onOpenChange)==null||g.call(p,r,o),o.isCanceled)return;const s={open:r,nativeEvent:o.event,reason:o.reason,nested:this.state.nested};(m=this.state.floatingRootContext.context.events)==null||m.emit("openchange",s);const c={open:r},d=((x=o.trigger)==null?void 0:x.id)??null;(d||r)&&(c.activeTriggerId=d,c.activeTriggerElement=o.trigger??null),this.update(c)})}}function fM(n={}){return{...AA(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...n}}function dM(n){const{children:l,open:r,defaultOpen:o=!1,onOpenChange:s,onOpenChangeComplete:c,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:g,handle:m,triggerId:x,defaultTriggerId:v=null}=n,S=Yl(!0),C=!!S,R=Yn(()=>(m==null?void 0:m.store)??new cM({open:o,openProp:r,activeTriggerId:v,triggerIdProp:x,modal:p,disablePointerDismissal:d,nested:C})).current;WA(()=>{r===void 0&&R.state.open===!1&&o===!0&&R.update({open:!0,activeTriggerId:v})}),R.useControlledProp("openProp",r),R.useControlledProp("triggerIdProp",x),R.useSyncedValues({disablePointerDismissal:d,nested:C,modal:p}),R.useContextCallback("onOpenChange",s),R.useContextCallback("onOpenChangeComplete",c);const w=R.useState("payload");sM({store:R,actionsRef:g,parentContext:S==null?void 0:S.store.context});const N=h.useMemo(()=>({store:R}),[R]);return y.jsx(N0.Provider,{value:N,children:typeof l=="function"?l({payload:w}):l})}const mM=h.forwardRef(function(l,r){const{render:o,className:s,id:c,...d}=l,{store:p}=Yl(),g=ql(c);return p.useSyncedValueWithCleanup("titleElementId",g),Nt("h2",l,{ref:r,props:[{id:g},d]})}),hM=h.forwardRef(function(l,r){const{render:o,className:s,disabled:c=!1,focusableWhenDisabled:d=!1,nativeButton:p=!0,...g}=l,{getButtonProps:m,buttonRef:x}=Tu({disabled:c,focusableWhenDisabled:d,native:p});return Nt("button",l,{state:{disabled:c},ref:[r,x],props:[g,m]})}),Vy=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Yy=d0,Au=(n,l)=>r=>{var o;if((l==null?void 0:l.variants)==null)return Yy(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:c}=l,d=Object.keys(s).map(m=>{const x=r==null?void 0:r[m],v=c==null?void 0:c[m];if(x===null)return null;const S=Vy(x)||Vy(v);return s[m][S]}),p=r&&Object.entries(r).reduce((m,x)=>{let[v,S]=x;return S===void 0||(m[v]=S),m},{}),g=l==null||(o=l.compoundVariants)===null||o===void 0?void 0:o.reduce((m,x)=>{let{class:v,className:S,...C}=x;return Object.entries(C).every(R=>{let[w,N]=R;return Array.isArray(N)?N.includes({...c,...p}[w]):{...c,...p}[w]===N})?[...m,v,S]:m},[]);return Yy(n,d,g,r==null?void 0:r.class,r==null?void 0:r.className)},au=Au("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function it({className:n,variant:l="default",size:r="default",...o}){return y.jsx(hM,{"data-slot":"button",className:qe(au({variant:l,size:r,className:n})),...o})}function pM({...n}){return y.jsx(dM,{"data-slot":"dialog",...n})}function gM({...n}){return y.jsx(FA,{"data-slot":"dialog-portal",...n})}function vM({className:n,...l}){return y.jsx(kN,{"data-slot":"dialog-overlay",className:qe("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",n),...l})}function yM({className:n,children:l,showCloseButton:r=!0,...o}){return y.jsxs(gM,{children:[y.jsx(vM,{}),y.jsxs($A,{"data-slot":"dialog-content",className:qe("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...o,children:[l,r&&y.jsxs(PN,{"data-slot":"dialog-close",render:y.jsx(it,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[y.jsx(om,{}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function bM({className:n,...l}){return y.jsx("div",{"data-slot":"dialog-header",className:qe("flex flex-col gap-2",n),...l})}function xM({className:n,...l}){return y.jsx(mM,{"data-slot":"dialog-title",className:qe("font-heading text-base leading-none font-medium",n),...l})}function SM({className:n,...l}){return y.jsx($N,{"data-slot":"dialog-description",className:qe("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",n),...l})}let qy=(function(n){return n.disabled="data-disabled",n.valid="data-valid",n.invalid="data-invalid",n.touched="data-touched",n.dirty="data-dirty",n.filled="data-filled",n.focused="data-focused",n})({});const EM={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Wi={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},wM={disabled:!1,...Wi},wx={valid(n){return n===null?null:n?{[qy.valid]:""}:{[qy.invalid]:""}}},CM=h.createContext({invalid:void 0,name:void 0,validityData:{state:EM,errors:[],error:"",value:"",initialValue:null},setValidityData:un,disabled:void 0,touched:Wi.touched,setTouched:un,dirty:Wi.dirty,setDirty:un,filled:Wi.filled,setFilled:un,focused:Wi.focused,setFocused:un,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:wM,markedDirtyRef:{current:!1},validation:{getValidationProps:(n=Kt)=>n,getInputValidationProps:(n=Kt)=>n,inputRef:{current:null},commit:async()=>{}}});function Mu(n=!0){const l=h.useContext(CM);if(l.setValidityData===un&&!n)throw new Error(ea(28));return l}const RM=h.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:un,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function Cx(){return h.useContext(RM)}const TM=h.createContext({controlId:void 0,registerControlId:un,labelId:void 0,setLabelId:un,messageIds:[],setMessageIds:un,getDescriptionProps:n=>n});function Cm(){return h.useContext(TM)}function NM(n,l){return{...n,state:{...n.state,valid:!l&&n.state.valid}}}function Rm({controlled:n,default:l,name:r,state:o="value"}){const{current:s}=h.useRef(n!==void 0),[c,d]=h.useState(l),p=s?n:c,g=h.useCallback(m=>{s||d(m)},[]);return[p,g]}function Rx(n={}){const{id:l,implicit:r=!1,controlRef:o}=n,{controlId:s,registerControlId:c}=Cm(),d=ql(l),p=r?s:void 0,g=Yn(()=>Symbol("labelable-control")),m=h.useRef(!1),x=h.useRef(l!=null),v=Ue(()=>{!m.current||c===un||(m.current=!1,c(g.current,void 0))});return ke(()=>{if(c===un)return;let S;if(r){const C=o==null?void 0:o.current;Ur(C)&&C.closest("label")!=null?S=l??null:S=p??d}else if(l!=null)x.current=!0,S=l;else if(x.current)S=d;else{v();return}if(S===void 0){v();return}m.current=!0,c(g.current,S)},[l,o,p,c,r,d,g,v]),h.useEffect(()=>v,[v]),s??d}function Tx(n){const{enabled:l=!0,value:r,id:o,name:s,controlRef:c,commit:d}=n,{formRef:p}=Cx(),{invalid:g,markedDirtyRef:m,validityData:x,setValidityData:v}=Mu(),S=Ue(n.getValue);ke(()=>{if(!l)return;let C=r;C===void 0&&(C=S()),x.initialValue===null&&C!==null&&v(R=>({...R,initialValue:C}))},[l,v,r,x.initialValue,S]),ke(()=>{!l||!o||p.current.fields.set(o,{getValue:S,name:s,controlRef:c,validityData:NM(x,g),validate(C=!0){let R=r;R===void 0&&(R=S()),m.current=!0,C?Zr.flushSync(()=>d(R)):d(R)}})},[d,c,l,p,S,o,g,m,s,x,r]),ke(()=>{const C=p.current.fields;return()=>{o&&C.delete(o)}},[p,o])}const jM=h.forwardRef(function(l,r){const{render:o,className:s,id:c,name:d,value:p,disabled:g=!1,onValueChange:m,defaultValue:x,autoFocus:v=!1,...S}=l,{state:C,name:R,disabled:w,setTouched:N,setDirty:T,validityData:D,setFocused:U,setFilled:M,validationMode:z,validation:B}=Mu(),V=w||g,H=R??d,K={...C,disabled:V},{labelId:F}=Cm(),ne=Rx({id:c});ke(()=>{var ee;const _=p!=null;(ee=B.inputRef.current)!=null&&ee.value||_&&p!==""?M(!0):_&&p===""&&M(!1)},[B.inputRef,M,p]);const ie=h.useRef(null);ke(()=>{v&&ie.current===Sa(xt(ie.current))&&U(!0)},[v,U]);const[G]=Rm({controlled:p,default:x,name:"FieldControl",state:"value"}),ce=p!==void 0,fe=ce?G:void 0;return Tx({id:ne,name:H,commit:B.commit,value:fe,getValue:()=>{var _;return(_=B.inputRef.current)==null?void 0:_.value},controlRef:B.inputRef}),Nt("input",l,{ref:[r,ie],state:K,props:[{id:ne,disabled:V,name:H,ref:B.inputRef,"aria-labelledby":F,autoFocus:v,...ce?{value:fe}:{defaultValue:x},onChange(_){const ee=_.currentTarget.value;m==null||m(ee,kn(su,_.nativeEvent)),T(ee!==D.initialValue),M(ee!=="")},onFocus(){U(!0)},onBlur(_){N(!0),U(!1),z==="onBlur"&&B.commit(_.currentTarget.value)},onKeyDown(_){_.currentTarget.tagName==="INPUT"&&_.key==="Enter"&&(N(!0),B.commit(_.currentTarget.value))}},B.getInputValidationProps(),S],stateAttributesMapping:wx})}),AM=h.forwardRef(function(l,r){return y.jsx(jM,{ref:r,...l})});function Xt({className:n,type:l,...r}){return y.jsx(AM,{type:l,"data-slot":"input",className:qe("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",n),...r})}function MM({className:n,...l}){return y.jsx("div",{"data-slot":"input-group",role:"group",className:qe("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",n),...l})}const OM=Au("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function kM({className:n,align:l="inline-start",...r}){return y.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":l,className:qe(OM({align:l}),n),onClick:o=>{var s,c;o.target.closest("button")||(c=(s=o.currentTarget.parentElement)==null?void 0:s.querySelector("input"))==null||c.focus()},...r})}function DM({className:n,...l}){return y.jsx(Hl,{"data-slot":"command",className:qe("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",n),...l})}function zM({title:n="Command Palette",description:l="Search for a command to run...",children:r,className:o,showCloseButton:s=!1,...c}){return y.jsxs(pM,{...c,children:[y.jsxs(bM,{className:"sr-only",children:[y.jsx(xM,{children:n}),y.jsx(SM,{children:l})]}),y.jsx(yM,{className:qe("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0",o),showCloseButton:s,children:r})]})}function _M({className:n,...l}){return y.jsx("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:y.jsxs(MM,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[y.jsx(Hl.Input,{"data-slot":"command-input",className:qe("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",n),...l}),y.jsx(kM,{children:y.jsx(Cb,{className:"size-4 shrink-0 opacity-50"})})]})})}function LM({className:n,...l}){return y.jsx(Hl.List,{"data-slot":"command-list",className:qe("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",n),...l})}function UM({className:n,...l}){return y.jsx(Hl.Empty,{"data-slot":"command-empty",className:qe("py-6 text-center text-sm",n),...l})}function $s({className:n,...l}){return y.jsx(Hl.Group,{"data-slot":"command-group",className:qe("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",n),...l})}function Ad({className:n,...l}){return y.jsx(Hl.Separator,{"data-slot":"command-separator",className:qe("-mx-1 h-px bg-border",n),...l})}function tl({className:n,children:l,...r}){return y.jsxs(Hl.Item,{"data-slot":"command-item",className:qe("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",n),...r,children:[l,y.jsx(Jr,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function Md({className:n,...l}){return y.jsx("span",{"data-slot":"command-shortcut",className:qe("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground",n),...l})}function BM({projectId:n,isRunning:l,onStartSprint:r,onStop:o,tasks:s,epics:c,onStartEpic:d}){const[p,g]=h.useState(!1),m=mo();h.useEffect(()=>{function v(S){(S.metaKey||S.ctrlKey)&&S.key==="k"&&(S.preventDefault(),g(C=>!C))}return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[]);const x=h.useCallback(v=>{v(),g(!1)},[]);return y.jsx(zM,{open:p,onOpenChange:g,children:y.jsxs(DM,{children:[y.jsx(_M,{placeholder:"Type a command or search..."}),y.jsxs(LM,{children:[y.jsx(UM,{children:"No results found."}),y.jsxs($s,{heading:"Navigation",children:[y.jsxs(tl,{onSelect:()=>x(()=>m("/dashboard")),children:[y.jsx(wb,{className:"w-4 h-4"}),y.jsx("span",{children:"View Dashboard"})]}),y.jsxs(tl,{onSelect:()=>x(()=>m("/sprint")),children:[y.jsx(Ji,{className:"w-4 h-4"}),y.jsx("span",{children:"View Sprint"})]}),y.jsxs(tl,{onSelect:()=>x(()=>m("/settings")),children:[y.jsx(Rb,{className:"w-4 h-4"}),y.jsx("span",{children:"Open Settings"})]}),y.jsxs(tl,{onSelect:()=>x(()=>m("/wizard")),children:[y.jsx(GC,{className:"w-4 h-4"}),y.jsx("span",{children:"Setup Wizard"})]})]}),y.jsx(Ad,{}),y.jsxs($s,{heading:"Actions",children:[!l&&n&&y.jsxs(tl,{onSelect:()=>x(r),children:[y.jsx(Ji,{className:"w-4 h-4 text-primary"}),y.jsx("span",{children:"Run Sprint"}),y.jsx(Md,{children:"sprint"})]}),l&&y.jsxs(tl,{onSelect:()=>x(o),children:[y.jsx(Tb,{className:"w-4 h-4 text-destructive"}),y.jsx("span",{children:"Stop Current Run"}),y.jsx(Md,{children:"stop"})]})]}),c.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(Ad,{}),y.jsx($s,{heading:"Run Epic",children:c.map(v=>y.jsxs(tl,{onSelect:()=>x(()=>d(v.id)),disabled:l,children:[y.jsx(Ji,{className:"w-4 h-4 text-primary"}),y.jsx("span",{children:v.title})]},v.id))})]}),s.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(Ad,{}),y.jsx($s,{heading:"Tasks",children:s.map(v=>y.jsxs(tl,{onSelect:()=>g(!1),children:[y.jsx(Cb,{className:"w-4 h-4 text-muted-foreground"}),y.jsx("span",{className:"truncate",children:v.title}),y.jsx(Md,{children:v.status})]},v.id))})]})]})]})})}function Yt({className:n,size:l="default",...r}){return y.jsx("div",{"data-slot":"card","data-size":l,className:qe("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",n),...r})}function Kr({className:n,...l}){return y.jsx("div",{"data-slot":"card-header",className:qe("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",n),...l})}function Pr({className:n,...l}){return y.jsx("div",{"data-slot":"card-title",className:qe("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",n),...l})}function Ou({className:n,...l}){return y.jsx("div",{"data-slot":"card-description",className:qe("text-sm text-muted-foreground",n),...l})}function qt({className:n,...l}){return y.jsx("div",{"data-slot":"card-content",className:qe("px-4 group-data-[size=sm]/card:px-3",n),...l})}function sn({className:n,...l}){return y.jsx("label",{"data-slot":"label",className:qe("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...l})}const Nx=h.createContext(void 0);function HM(){const n=h.useContext(Nx);if(n===void 0)throw new Error(ea(63));return n}let Gy=(function(n){return n.checked="data-checked",n.unchecked="data-unchecked",n.disabled="data-disabled",n.readonly="data-readonly",n.required="data-required",n.valid="data-valid",n.invalid="data-invalid",n.touched="data-touched",n.dirty="data-dirty",n.filled="data-filled",n.focused="data-focused",n})({});const jx={...wx,checked(n){return n?{[Gy.checked]:""}:{[Gy.unchecked]:""}}};function VM(n,l,r,o=!0,s){const[c,d]=h.useState(),p=ql(s?`${s}-label`:void 0),g=n??l??c;return ke(()=>{const m=n||l||!o?void 0:YM(r.current,p);c!==m&&d(m)}),g}function YM(n,l){const r=qM(n);if(r)return!r.id&&l&&(r.id=l),r.id||void 0}function qM(n){if(!n)return;const l=n.parentElement;if(l&&l.tagName==="LABEL")return l;const r=n.id;if(r){const s=n.nextElementSibling;if(s&&s.htmlFor===r)return s}const o=n.labels;return o&&o[0]}const GM=h.forwardRef(function(l,r){const{checked:o,className:s,defaultChecked:c,"aria-labelledby":d,id:p,inputRef:g,name:m,nativeButton:x=!1,onCheckedChange:v,readOnly:S=!1,required:C=!1,disabled:R=!1,render:w,uncheckedValue:N,value:T,...D}=l,{clearErrors:U}=Cx(),{state:M,setTouched:z,setDirty:B,validityData:V,setFilled:H,setFocused:K,shouldValidateOnChange:F,validationMode:ne,disabled:ie,name:G,validation:ce}=Mu(),{labelId:fe}=Cm(),k=ie||R,_=G??m,ee=Ue(v),oe=h.useRef(null),J=_l(oe,g,ce.inputRef),j=h.useRef(null),A=ql(),q=Rx({id:p,implicit:!1,controlRef:j}),$=x?void 0:q,[I,re]=Rm({controlled:o,default:!!c,name:"Switch",state:"checked"});Tx({id:A,commit:ce.commit,value:I,controlRef:j,name:_,getValue:()=>I}),ke(()=>{oe.current&&H(oe.current.checked)},[oe,H]),Ex(I,()=>{U(_),B(I!==V.initialValue),H(I),F()?ce.commit(I):ce.commit(I,!0)});const{getButtonProps:de,buttonRef:se}=Tu({disabled:k,native:x}),he=VM(d,fe,oe,!x,$),Ye={id:x?q:A,role:"switch","aria-checked":I,"aria-readonly":S||void 0,"aria-required":C||void 0,"aria-labelledby":he,onFocus(){k||K(!0)},onBlur(){const ve=oe.current;!ve||k||(z(!0),K(!1),ne==="onBlur"&&ce.commit(ve.checked))},onClick(ve){var Ce;S||k||(ve.preventDefault(),(Ce=oe.current)==null||Ce.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:ve.shiftKey,ctrlKey:ve.ctrlKey,altKey:ve.altKey,metaKey:ve.metaKey})))}},ot=h.useMemo(()=>wu({checked:I,disabled:k,id:$,name:_,required:C,style:_?zj:Sm,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:J,onChange(ve){if(ve.nativeEvent.defaultPrevented)return;const Ce=ve.target.checked,nt=kn(su,ve.nativeEvent);ee==null||ee(Ce,nt),!nt.isCanceled&&re(Ce)},onFocus(){var ve;(ve=j.current)==null||ve.focus()}},ce.getInputValidationProps,T!==void 0?{value:T}:Kt),[I,k,J,$,_,ee,C,re,ce,T]),ct=h.useMemo(()=>({...M,checked:I,disabled:k,readOnly:S,required:C}),[M,I,k,S,C]),xe=Nt("span",l,{state:ct,ref:[r,j,se],props:[Ye,ce.getValidationProps,D,de],stateAttributesMapping:jx});return y.jsxs(Nx.Provider,{value:ct,children:[xe,!I&&_&&N!==void 0&&y.jsx("input",{type:"hidden",name:_,value:N}),y.jsx("input",{...ot})]})}),IM=h.forwardRef(function(l,r){const{render:o,className:s,...c}=l,{state:d}=Mu(),p=HM(),g={...d,...p};return Nt("span",l,{state:g,ref:r,stateAttributesMapping:jx,props:c})});function ku({className:n,size:l="default",...r}){return y.jsx(GM,{"data-slot":"switch","data-size":l,className:qe("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",n),...r,children:y.jsx(IM,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"})})}const al=["welcome","discover","select","permissions","notifications","done"],XM={welcome:"Welcome",discover:"Connect",select:"Project",permissions:"Permissions",notifications:"Notify",done:"Done"};function KM({current:n}){const l=al.indexOf(n);return y.jsx("div",{className:"flex items-center justify-center gap-1 mb-8",children:al.map((r,o)=>y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsxs("div",{className:"flex flex-col items-center gap-1",children:[y.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-xs font-medium border transition-all ${o<l?"bg-primary/20 border-primary text-primary":o===l?"bg-primary border-primary text-primary-foreground font-bold":"bg-muted border-border text-muted-foreground"}`,children:o<l?y.jsx(Jr,{className:"w-3.5 h-3.5"}):o+1}),y.jsx("span",{className:`text-[10px] ${o<=l?"text-foreground":"text-muted-foreground"}`,children:XM[r]})]}),o<al.length-1&&y.jsx("div",{className:`w-6 h-px mb-4 ${o<l?"bg-primary":"bg-border"}`})]},r))})}function PM({onNext:n}){return y.jsx(Yt,{className:"max-w-md mx-auto",children:y.jsxs(qt,{className:"flex flex-col items-center text-center py-10 space-y-6",children:[y.jsx(Eb,{className:"w-14 h-14 text-primary",strokeWidth:1.5}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h2",{className:"text-xl font-mono font-semibold",children:"gm-orchestrator"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:"Autonomous AI sprint runner for GraphMemory."}),y.jsx("p",{className:"text-xs text-muted-foreground",children:"Set up takes 60 seconds."})]}),y.jsxs(it,{onClick:n,className:"gap-2",children:["Get started ",y.jsx(Wr,{className:"w-4 h-4"})]})]})})}function QM({servers:n,loading:l,manualUrl:r,manualProbing:o,onManualUrlChange:s,onManualAdd:c,onNext:d,onBack:p}){return y.jsxs(Yt,{children:[y.jsxs(Kr,{children:[y.jsx(Pr,{children:"Connect GraphMemory"}),y.jsx(Ou,{children:l?"Scanning localhost...":`Found ${n.length} server${n.length!==1?"s":""}`})]}),y.jsxs(qt,{className:"space-y-4",children:[l?y.jsxs("div",{className:"flex items-center gap-3 text-muted-foreground text-sm py-4",children:[y.jsx($t,{className:"w-4 h-4 animate-spin text-primary"}),"Scanning for GraphMemory servers..."]}):n.length>0?y.jsx("div",{className:"space-y-2",children:n.map(g=>y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-muted/50 border border-border rounded-lg text-sm",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"w-2 h-2 rounded-full bg-[var(--color-done)]"}),y.jsx("span",{className:"font-mono text-sm",children:g.url})]}),y.jsxs("span",{className:"text-xs text-muted-foreground",children:[g.projects.length," project",g.projects.length!==1?"s":""]})]},g.url))}):null,y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{className:"text-xs text-muted-foreground",children:"Or enter URL manually:"}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Xt,{value:r,onChange:g=>s(g.target.value),placeholder:"http://localhost:3000",className:"font-mono text-sm"}),y.jsx(it,{variant:"secondary",onClick:c,disabled:!r.trim()||o,children:o?y.jsx($t,{className:"w-4 h-4 animate-spin"}):"Add"})]})]}),y.jsxs("div",{className:"flex justify-between pt-2",children:[y.jsxs(it,{variant:"ghost",onClick:p,className:"gap-1",children:[y.jsx(Fr,{className:"w-4 h-4"})," Back"]}),y.jsxs(it,{onClick:d,disabled:l||n.length===0,className:"gap-1",children:["Continue ",y.jsx(Wr,{className:"w-4 h-4"})]})]})]})]})}function $M({servers:n,selectedServer:l,selectedProject:r,onSelectServer:o,onSelectProject:s,onNext:c,onBack:d}){const p=n.find(m=>m.url===l),g=(p==null?void 0:p.projects)??[];return y.jsxs(Yt,{children:[y.jsxs(Kr,{children:[y.jsx(Pr,{children:"Select project"}),y.jsx(Ou,{children:"Choose a GraphMemory project to orchestrate."})]}),y.jsxs(qt,{className:"space-y-4",children:[n.length>1&&y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{className:"text-xs",children:"Server"}),y.jsx("select",{value:l,onChange:m=>{o(m.target.value),s("")},className:"w-full h-9 px-3 rounded-md border border-input bg-background text-sm font-mono",children:n.map(m=>y.jsx("option",{value:m.url,children:m.url},m.url))})]}),y.jsx("div",{className:"space-y-2",children:g.length>0?g.map(m=>y.jsxs("button",{type:"button",onClick:()=>s(m.id),className:`w-full flex items-center justify-between px-4 py-3 rounded-lg border text-sm text-left transition-colors ${r===m.id?"border-primary bg-primary/10":"border-border bg-muted/30 hover:bg-muted/50"}`,children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:`w-2 h-2 rounded-full ${r===m.id?"bg-primary":"bg-muted-foreground"}`}),y.jsx("span",{className:"font-mono",children:m.id})]}),y.jsxs("span",{className:"text-xs text-muted-foreground",children:[m.taskCount," tasks · ",m.epicCount," epics"]})]},m.id)):y.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No projects found on this server."})}),y.jsxs("div",{className:"flex justify-between pt-2",children:[y.jsxs(it,{variant:"ghost",onClick:d,className:"gap-1",children:[y.jsx(Fr,{className:"w-4 h-4"})," Back"]}),y.jsxs(it,{onClick:c,disabled:!r,className:"gap-1",children:["Continue ",y.jsx(Wr,{className:"w-4 h-4"})]})]})]})]})}function kr({label:n,description:l,checked:r,disabled:o,onChange:s}){return y.jsxs("div",{className:`flex items-center justify-between py-2.5 ${o?"opacity-60":""}`,children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium",children:n}),y.jsx("p",{className:"text-xs text-muted-foreground",children:l})]}),y.jsx(ku,{checked:r,disabled:o,onCheckedChange:s})]})}function ZM({permissions:n,onChange:l,onNext:r,onBack:o}){return y.jsxs(Yt,{children:[y.jsxs(Kr,{children:[y.jsx(Pr,{children:"What can Claude do?"}),y.jsx(Ou,{children:"Configure permissions for autonomous runs."})]}),y.jsxs(qt,{className:"space-y-4",children:[y.jsxs("div",{className:"divide-y divide-border",children:[y.jsx(kr,{label:"Read files",description:"Always enabled",checked:!0,disabled:!0,onChange:()=>{}}),y.jsx(kr,{label:"Write files",description:"Create and modify files",checked:n.writeFiles,onChange:s=>l({...n,writeFiles:s})}),y.jsx(kr,{label:"Run tests",description:"npm test, pytest, etc.",checked:n.runTests,onChange:s=>l({...n,runTests:s})}),y.jsx(kr,{label:"Git commit",description:"Stage and commit changes",checked:n.gitCommit,onChange:s=>l({...n,gitCommit:s})}),y.jsx(kr,{label:"Git push",description:"Push to remote repository",checked:n.gitPush,onChange:s=>l({...n,gitPush:s})}),y.jsx(kr,{label:"npm publish",description:"Publish packages to registry",checked:n.npmPublish,onChange:s=>l({...n,npmPublish:s})})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{className:"text-xs text-muted-foreground",children:"Custom command whitelist (comma-separated)"}),y.jsx(Xt,{value:n.customCommands,onChange:s=>l({...n,customCommands:s.target.value}),placeholder:"e.g. make build, cargo test",className:"font-mono text-sm"})]}),y.jsxs("div",{className:"flex justify-between pt-2",children:[y.jsxs(it,{variant:"ghost",onClick:o,className:"gap-1",children:[y.jsx(Fr,{className:"w-4 h-4"})," Back"]}),y.jsxs(it,{onClick:r,className:"gap-1",children:["Continue ",y.jsx(Wr,{className:"w-4 h-4"})]})]})]})]})}function FM({notifications:n,onChange:l,onNext:r,onBack:o}){return y.jsxs(Yt,{children:[y.jsxs(Kr,{children:[y.jsx(Pr,{children:"Notifications"}),y.jsx(Ou,{children:"Optional — configure how to be notified about run progress."})]}),y.jsxs(qt,{className:"space-y-4",children:[y.jsxs("div",{className:"space-y-3 rounded-lg border border-border p-4",children:[y.jsx(sn,{className:"text-sm font-medium",children:"Telegram"}),y.jsx(Xt,{value:n.telegramBotToken,onChange:s=>l({...n,telegramBotToken:s.target.value}),placeholder:"Bot token",className:"font-mono text-sm"}),y.jsx(Xt,{value:n.telegramChatId,onChange:s=>l({...n,telegramChatId:s.target.value}),placeholder:"Chat ID",className:"font-mono text-sm"})]}),y.jsxs("div",{className:"space-y-3 rounded-lg border border-border p-4",children:[y.jsx(sn,{className:"text-sm font-medium",children:"Webhook"}),y.jsx(Xt,{value:n.webhookUrl,onChange:s=>l({...n,webhookUrl:s.target.value}),placeholder:"https://example.com/webhook",className:"font-mono text-sm"})]}),y.jsx("div",{className:"rounded-lg border border-border p-4",children:y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium",children:"Desktop notifications"}),y.jsx("p",{className:"text-xs text-muted-foreground",children:"Browser push notifications"})]}),y.jsx(ku,{checked:n.desktopNotifications,onCheckedChange:s=>l({...n,desktopNotifications:s})})]})}),y.jsxs("div",{className:"flex justify-between pt-2",children:[y.jsxs(it,{variant:"ghost",onClick:o,className:"gap-1",children:[y.jsx(Fr,{className:"w-4 h-4"})," Back"]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(it,{variant:"secondary",onClick:r,children:"Skip"}),y.jsxs(it,{onClick:r,className:"gap-1",children:["Continue ",y.jsx(Wr,{className:"w-4 h-4"})]})]})]})]})]})}function WM({selectedProject:n,selectedServer:l,taskCount:r,saving:o,error:s,onSave:c,onBack:d}){return y.jsx(Yt,{className:"max-w-md mx-auto",children:y.jsxs(qt,{className:"flex flex-col items-center text-center py-10 space-y-6",children:[y.jsx("div",{className:"w-14 h-14 rounded-full bg-[var(--color-done)]/20 flex items-center justify-center",children:y.jsx(Jr,{className:"w-7 h-7 text-[var(--color-done)]"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h2",{className:"text-xl font-semibold",children:"You're ready"}),y.jsxs("p",{className:"text-sm text-muted-foreground font-mono",children:[n," · ",l]}),y.jsxs("p",{className:"text-sm text-muted-foreground",children:[r," tasks waiting"]})]}),s&&y.jsx("div",{className:"w-full px-4 py-3 rounded-lg bg-destructive/10 border border-destructive/30 text-sm text-destructive",children:s}),y.jsxs("div",{className:"flex gap-3",children:[y.jsxs(it,{variant:"ghost",onClick:d,disabled:o,className:"gap-1",children:[y.jsx(Fr,{className:"w-4 h-4"})," Back"]}),y.jsxs(it,{onClick:c,disabled:o,className:"gap-2",children:[o&&y.jsx($t,{className:"w-4 h-4 animate-spin"}),"Go to Dashboard ",y.jsx(Wr,{className:"w-4 h-4"})]})]})]})})}function Iy(){const n=mo(),[l,r]=h.useState("welcome"),[o,s]=h.useState(!0),[c,d]=h.useState([]),[p,g]=h.useState(!1),[m,x]=h.useState(""),[v,S]=h.useState(""),[C,R]=h.useState(""),[w,N]=h.useState({readFiles:!0,writeFiles:!0,runTests:!0,gitCommit:!0,gitPush:!1,npmPublish:!1,customCommands:""}),[T,D]=h.useState({telegramBotToken:"",telegramChatId:"",webhookUrl:"",desktopNotifications:!1}),[U,M]=h.useState(!1),[z,B]=h.useState(null);h.useEffect(()=>{(async()=>{var _;try{const ee=await fetch("/api/status");if(ee.ok){const oe=await ee.json();if((_=oe.config)!=null&&_.projectId&&!oe.setupRequired)try{if((await fetch(`/api/projects/${oe.config.projectId}/tasks?limit=1`)).ok){n("/dashboard",{replace:!0});return}}catch{}}}catch{}s(!1)})()},[n]);const V=h.useCallback(async()=>{g(!0);try{const _=await fetch("/api/projects");if(_.ok){const oe=(await _.json()).servers??[];d(oe),oe.length>0&&!v&&S(oe[0].url)}}catch{}g(!1)},[v]);h.useEffect(()=>{l==="discover"&&V()},[l,V]);const[H,K]=h.useState(!1),F=h.useCallback(async()=>{const _=m.trim().replace(/\/+$/,"");if(_){try{new URL(_)}catch{tt.error("Invalid URL");return}K(!0);try{const ee=await fetch("/api/projects/probe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:_})});if(ee.ok){const oe=await ee.json();d(J=>{const j=J.findIndex(A=>A.url===oe.server.url);if(j>=0){const A=[...J];return A[j]=oe.server,A}return[...J,oe.server]}),S(oe.server.url),x(""),tt.success(`Found ${oe.server.projects.length} project(s)`)}else{const oe=await ee.json().catch(()=>({error:"Connection failed"}));tt.error(oe.error??"No GraphMemory server found at this URL")}}catch{tt.error("Could not reach server")}K(!1)}},[m]),ne=h.useCallback(async()=>{M(!0),B(null);try{const _=c.find(J=>J.url===v),ee={baseUrl:(_==null?void 0:_.url)??v,projectId:C,permissions:w,notifications:T},oe=await fetch("/api/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(ee)});if(!oe.ok){const J=await oe.json().catch(()=>({error:`HTTP ${oe.status}`}));throw new Error(J.error??`HTTP ${oe.status}`)}tt.success("Configuration saved!"),n("/dashboard",{replace:!0})}catch(_){const ee=_ instanceof Error?_.message:"Failed to save config";B(ee),tt.error(ee)}M(!1)},[c,v,C,w,T,n]),ie=h.useCallback(()=>{const _=al.indexOf(l);_<al.length-1&&r(al[_+1])},[l]),G=h.useCallback(()=>{const _=al.indexOf(l);_>0&&r(al[_-1])},[l]);if(o)return y.jsx("div",{className:"flex items-center justify-center min-h-screen",children:y.jsx($t,{className:"w-6 h-6 animate-spin text-primary"})});const ce=c.find(_=>_.url===v),fe=ce==null?void 0:ce.projects.find(_=>_.id===C),k=(fe==null?void 0:fe.taskCount)??0;return y.jsx("div",{className:"min-h-screen flex items-center justify-center p-8",children:y.jsxs("div",{className:"w-full max-w-lg",children:[y.jsx(KM,{current:l}),l==="welcome"&&y.jsx(PM,{onNext:ie}),l==="discover"&&y.jsx(QM,{servers:c,loading:p,manualUrl:m,manualProbing:H,onManualUrlChange:x,onManualAdd:F,onNext:ie,onBack:G}),l==="select"&&y.jsx($M,{servers:c,selectedServer:v,selectedProject:C,onSelectServer:S,onSelectProject:R,onNext:ie,onBack:G}),l==="permissions"&&y.jsx(ZM,{permissions:w,onChange:N,onNext:ie,onBack:G}),l==="notifications"&&y.jsx(FM,{notifications:T,onChange:D,onNext:ie,onBack:G}),l==="done"&&y.jsx(WM,{selectedProject:C,selectedServer:v,taskCount:k,saving:U,error:z,onSave:ne,onBack:G})]})})}const Xy=new Map;function JM(n,l){const r=JSON.stringify({locale:n,options:l}),o=Xy.get(r);if(o)return o;const s=new Intl.NumberFormat(n,l);return Xy.set(r,s),s}function Ky(n,l,r){return n==null?"":JM(l,r).format(n)}function eO(n,l,r){return n==null?"":r?Ky(n,l,r):Ky(n/100,l,{style:"percent"})}const Ax=h.createContext(void 0);function Mx(){const n=h.useContext(Ax);if(n===void 0)throw new Error(ea(51));return n}let Od=(function(n){return n.complete="data-complete",n.indeterminate="data-indeterminate",n.progressing="data-progressing",n})({});const Tm={status(n){return n==="progressing"?{[Od.progressing]:""}:n==="complete"?{[Od.complete]:""}:n==="indeterminate"?{[Od.indeterminate]:""}:null}};function tO(n,l){return l==null?"indeterminate progress":n||`${l}%`}const nO=h.forwardRef(function(l,r){const{format:o,getAriaValueText:s=tO,locale:c,max:d=100,min:p=0,value:g,render:m,className:x,children:v,...S}=l,[C,R]=h.useState(),w=nu(o);let N="indeterminate";Number.isFinite(g)&&(N=g===d?"complete":"progressing");const T=eO(g,c,w.current),D=h.useMemo(()=>({status:N}),[N]),U={"aria-labelledby":C,"aria-valuemax":d,"aria-valuemin":p,"aria-valuenow":g??void 0,"aria-valuetext":s(T,g),role:"progressbar",children:y.jsxs(h.Fragment,{children:[v,y.jsx("span",{role:"presentation",style:Sm,children:"x"})]})},M=h.useMemo(()=>({formattedValue:T,max:d,min:p,setLabelId:R,state:D,status:N,value:g}),[T,d,p,R,D,N,g]),z=Nt("div",l,{state:D,ref:r,props:[U,S],stateAttributesMapping:Tm});return y.jsx(Ax.Provider,{value:M,children:z})}),aO=h.forwardRef(function(l,r){const{render:o,className:s,...c}=l,{state:d}=Mx();return Nt("div",l,{state:d,ref:r,props:c,stateAttributesMapping:Tm})});function lO(n,l,r){return(n-l)*100/(r-l)}const rO=h.forwardRef(function(l,r){const{render:o,className:s,...c}=l,{max:d,min:p,value:g,state:m}=Mx(),x=Number.isFinite(g)&&g!==null?lO(g,p,d):null,v=h.useCallback(()=>x==null?{}:{insetInlineStart:0,height:"inherit",width:`${x}%`},[x]);return Nt("div",l,{state:m,ref:r,props:[{style:v()},c],stateAttributesMapping:Tm})});function Nm({className:n,children:l,value:r,...o}){return y.jsxs(nO,{value:r,"data-slot":"progress",className:qe("flex flex-wrap gap-3",n),...o,children:[l,y.jsx(iO,{children:y.jsx(oO,{})})]})}function iO({className:n,...l}){return y.jsx(aO,{className:qe("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",n),"data-slot":"progress-track",...l})}function oO({className:n,...l}){return y.jsx(rO,{"data-slot":"progress-indicator",className:qe("h-full bg-primary transition-all",n),...l})}const sO=h.forwardRef(function(l,r){const{className:o,render:s,orientation:c="horizontal",...d}=l;return Nt("div",l,{state:{orientation:c},ref:r,props:[{role:"separator","aria-orientation":c},d]})});function em({className:n,orientation:l="horizontal",...r}){return y.jsx(sO,{"data-slot":"separator",orientation:l,className:qe("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",n),...r})}const uO=[{path:"/dashboard",label:"Dashboard",icon:wb},{path:"/sprint",label:"Sprint",icon:Ji},{path:"/settings",label:"Settings",icon:Rb}];function Br({projectId:n,taskCount:l,children:r}){const o=Ra();return y.jsxs("div",{className:"flex min-h-screen",children:[y.jsxs("aside",{className:"w-60 shrink-0 bg-card border-r border-border flex flex-col",children:[y.jsxs("div",{className:"px-4 py-5 flex items-center gap-2",children:[y.jsx(Eb,{className:"w-5 h-5 text-primary",strokeWidth:1.5}),y.jsx("span",{className:"font-mono text-sm font-semibold",children:"gm-orchestrator"})]}),y.jsx(em,{}),y.jsx("nav",{className:"flex-1 py-3",children:uO.map(({path:s,label:c,icon:d})=>{const p=o.pathname===s;return y.jsxs(Hr,{to:s,className:`flex items-center gap-3 px-4 py-2 text-sm transition-colors ${p?"border-l-2 border-primary bg-muted text-foreground font-medium":"border-l-2 border-transparent text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,children:[y.jsx(d,{className:"w-4 h-4"}),c]},s)})}),y.jsx(em,{}),y.jsxs("div",{className:"px-4 py-4 space-y-2",children:[n&&y.jsxs("div",{children:[y.jsx("p",{className:"text-xs font-mono font-medium truncate",children:n}),y.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[l," tasks"]})]}),y.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] text-muted-foreground",children:[y.jsx(jC,{className:"w-3 h-3"}),y.jsx("span",{children:"Cmd+K"})]})]})]}),y.jsx("main",{className:"flex-1 flex flex-col overflow-hidden",children:r})]})}function cO(n){return Nt(n.defaultTagName??"div",n,n)}const fO=Au("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function dO({className:n,variant:l="default",render:r,...o}){return cO({defaultTagName:"span",props:wu({className:qe(fO({variant:l}),n)},o),render:r,state:{slot:"badge",variant:l}})}const Py={done:{label:"Done",className:"bg-[var(--color-done)]/15 text-[var(--color-done)] border-[var(--color-done)]/30"},in_progress:{label:"Running",className:"bg-[var(--color-running)]/15 text-[var(--color-running)] border-[var(--color-running)]/30 animate-pulse-dot"},todo:{label:"Queued",className:"bg-[var(--color-queued)]/15 text-[var(--color-queued)] border-[var(--color-queued)]/30"},cancelled:{label:"Cancelled",className:"bg-[var(--color-cancelled)]/15 text-[var(--color-cancelled)] border-[var(--color-cancelled)]/30"}};function mO({status:n}){const l=Py[n]??Py.todo;return y.jsx(dO,{variant:"outline",className:`text-[10px] font-medium ${l.className}`,children:l.label})}function hO(n,l){const[r,o]=h.useState("");return h.useEffect(()=>{if(!n||!l){n&&!l&&o(Qy(Date.now()-new Date(n).getTime()));return}const s=new Date(n).getTime(),c=()=>o(Qy(Date.now()-s));c();const d=setInterval(c,1e3);return()=>clearInterval(d)},[n,l]),r}function Qy(n){const l=Math.floor(n/1e3);if(l<60)return`${l}s`;const r=Math.floor(l/60),o=l%60;return r<60?`${r}m ${o}s`:`${Math.floor(r/60)}h ${r%60}m`}function pO({task:n}){const l=n.status==="in_progress",r=hO(n.updatedAt,l);return y.jsxs("div",{className:`flex items-center gap-3 px-3 py-2.5 rounded-lg border transition-colors ${n.status==="done"?"border-border/50 opacity-70 task-done":n.status==="cancelled"?"border-border/50 opacity-50":"border-border hover:border-primary/30"}`,style:{borderLeftWidth:"3px",borderLeftColor:`var(--priority-${n.priority})`},children:[y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("span",{className:`text-sm ${n.status==="cancelled"?"line-through text-muted-foreground":""}`,children:n.title}),n.tags&&n.tags.length>0&&y.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:n.tags.map(o=>`#${o}`).join(" ")})]}),r&&y.jsx("span",{className:"text-xs text-muted-foreground font-mono shrink-0",children:r}),y.jsx(mO,{status:n.status})]})}function gO({epic:n}){var s,c;const l=((s=n.tasks)==null?void 0:s.length)??0,r=((c=n.tasks)==null?void 0:c.filter(d=>d.status==="done").length)??0,o=l>0?Math.round(r/l*100):0;return y.jsxs("div",{className:"rounded-lg border border-border p-3 space-y-2 hover:border-primary/30 transition-colors",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm font-medium truncate",children:n.title}),y.jsxs("span",{className:"text-xs text-muted-foreground shrink-0 ml-2",children:[r,"/",l]})]}),y.jsx(Nm,{value:o,className:"h-1.5"})]})}const $y={critical:0,high:1,medium:2,low:3},Zy=5;function vO(n){const[l,r]=h.useState([]),[o,s]=h.useState(!1),c=h.useCallback(async()=>{if(n){s(!0);try{const d=await fetch(`/api/projects/${encodeURIComponent(n)}/epics`);if(!d.ok)throw new Error(`HTTP ${d.status}`);const p=await d.json();r(p.epics)}catch{}finally{s(!1)}}},[n]);return h.useEffect(()=>{c()},[c]),{epics:l,isLoading:o}}function yO(){const n=new Date().getHours();return n<12?"Good morning.":n<18?"Good afternoon.":"Good evening."}function bO(){const n=mo(),l=sm(),[r,o]=h.useState(null);h.useEffect(()=>{(async()=>{var B;try{const V=await fetch("/api/status");if(!V.ok)return;const H=await V.json();(B=H.config)!=null&&B.projectId?o(H.config.projectId):n("/",{replace:!0})}catch{}})()},[n]);const{tasks:s,isLoading:c}=Nb(r,l),d=um(l),{epics:p,isLoading:g}=vO(r),[m,x]=h.useState(""),[v,S]=h.useState(!1),C=h.useMemo(()=>[...s].sort((B,V)=>($y[B.priority]??3)-($y[V.priority]??3)),[s]),R=h.useMemo(()=>{const B=new Date;return new Date(B.getFullYear(),B.getMonth(),B.getDate()).toISOString()},[]),w=h.useMemo(()=>{const B=s.filter(F=>F.status==="todo").length,V=s.filter(F=>F.status==="done").length,H=s.filter(F=>F.status==="done"&&F.completedAt&&F.completedAt>=R).length,K=s.filter(F=>F.status==="cancelled"&&F.completedAt&&F.completedAt>=R).length;return{total:s.length,todo:B,done:V,doneToday:H,cancelledToday:K}},[s,R]),N=w.doneToday+w.cancelledToday,T=N>0?Math.round(w.doneToday/N*100):0,D=h.useCallback(async()=>{if(r)try{await d.startSprint(r),n("/sprint")}catch(B){tt.error(B.message)}},[r,d,n]),U=h.useCallback(async()=>{if(!(!r||!m))try{await d.startEpic(r,m),n("/sprint")}catch(B){tt.error(B.message)}},[r,m,d,n]);if(!r)return y.jsx("div",{className:"flex items-center justify-center min-h-screen",children:y.jsx($t,{className:"w-6 h-6 animate-spin text-primary"})});const M=v?C:C.slice(0,Zy),z=C.length-Zy;return y.jsx(Br,{projectId:r,taskCount:w.total,children:y.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-6",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold",children:yO()}),y.jsxs("p",{className:"text-sm text-muted-foreground",children:[w.todo," tasks waiting in ",r]})]}),y.jsxs(it,{onClick:D,disabled:d.isRunning,className:"gap-2",children:[d.isRunning?y.jsx($t,{className:"w-4 h-4 animate-spin"}):y.jsx(Ji,{className:"w-4 h-4"}),d.isRunning?"Running...":"Run Sprint"]})]}),y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[y.jsxs(Yt,{className:"lg:col-span-2",children:[y.jsx(Kr,{className:"pb-3",children:y.jsx(Pr,{className:"text-sm font-medium uppercase tracking-wider text-muted-foreground",children:"Tasks"})}),y.jsx(qt,{className:"space-y-2",children:c&&s.length===0?y.jsxs("div",{className:"flex items-center gap-3 text-muted-foreground text-sm py-8",children:[y.jsx($t,{className:"w-4 h-4 animate-spin"}),"Loading tasks..."]}):C.length===0?y.jsx("p",{className:"text-muted-foreground text-sm py-8",children:"No tasks found."}):y.jsxs(y.Fragment,{children:[M.map(B=>y.jsx(pO,{task:B},B.id)),!v&&z>0&&y.jsxs("button",{type:"button",onClick:()=>S(!0),className:"text-xs text-muted-foreground hover:text-foreground transition-colors pt-1",children:["+ ",z," more"]})]})})]}),y.jsxs(Yt,{children:[y.jsx(Kr,{className:"pb-3",children:y.jsx(Pr,{className:"text-sm font-medium uppercase tracking-wider text-muted-foreground",children:"Epics"})}),y.jsx(qt,{className:"space-y-2",children:g&&p.length===0?y.jsx("div",{className:"flex items-center gap-3 text-muted-foreground text-sm py-4",children:y.jsx($t,{className:"w-4 h-4 animate-spin"})}):p.length===0?y.jsx("p",{className:"text-muted-foreground text-sm py-4",children:"No epics found."}):y.jsxs(y.Fragment,{children:[p.map(B=>y.jsx(gO,{epic:B},B.id)),y.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[y.jsxs("select",{value:m,onChange:B=>x(B.target.value),disabled:d.isRunning||g,className:"flex-1 h-8 px-2 rounded-md border border-input bg-background text-xs font-mono disabled:opacity-50",children:[y.jsx("option",{value:"",children:"Select epic..."}),p.map(B=>y.jsx("option",{value:B.id,children:B.title},B.id))]}),y.jsx(it,{size:"sm",variant:"secondary",onClick:U,disabled:!m||d.isRunning,className:"text-xs",children:"Run Epic"})]})]})})]})]}),N>0&&y.jsx(Yt,{children:y.jsxs(qt,{className:"py-4",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("span",{className:"text-sm font-medium",children:"Today"}),y.jsxs("span",{className:"text-xs text-muted-foreground",children:[y.jsxs("span",{className:"text-[var(--color-done)]",children:[w.doneToday," done"]}),w.cancelledToday>0&&y.jsxs(y.Fragment,{children:[" · ",y.jsxs("span",{className:"text-[var(--color-cancelled)]",children:[w.cancelledToday," cancelled"]})]})]})]}),y.jsx(Nm,{value:T,className:"h-2"})]})})]})})}const Fy=500;function xO({lines:n,taskId:l}){const r=h.useRef(null),o=h.useRef(null),s=h.useRef(!1),c=n.length>Fy?n.slice(n.length-Fy):n,d=n.length-c.length;h.useEffect(()=>{var g;s.current||(g=r.current)==null||g.scrollIntoView({behavior:"smooth"})},[n.length]);function p(){const g=o.current;if(!g)return;const m=g.scrollHeight-g.scrollTop-g.clientHeight<40;s.current=!m}return y.jsxs("div",{ref:o,onScroll:p,"data-task-id":l,className:"h-full bg-black/40 rounded-lg border border-border p-3 overflow-y-auto font-mono text-sm leading-relaxed",children:[d>0&&y.jsxs("div",{className:"text-muted-foreground text-xs mb-1",children:["... ",d," lines hidden ..."]}),c.map((g,m)=>{const x=g.startsWith(">");return y.jsx("div",{className:`whitespace-pre-wrap break-all log-line ${x?"text-primary":"text-foreground/80"}`,children:g},d+m)}),y.jsx("div",{ref:r})]})}function no(n){const l=Math.floor(n/1e3),r=Math.floor(l/60),o=l%60;return r<60?`${r}m ${String(o).padStart(2,"0")}s`:`${Math.floor(r/60)}h ${r%60}m`}function kd({item:n}){const{task:l,startedAt:r,finishedAt:o}=n,s=l.status==="in_progress",[c,d]=h.useState("");return h.useEffect(()=>{if(!r){d("");return}if(o){d(no(o-r));return}if(!s){d(no(Date.now()-r));return}const p=()=>d(no(Date.now()-r));p();const g=setInterval(p,1e3);return()=>clearInterval(g)},[r,o,s]),y.jsxs("div",{className:`flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${l.status==="done"?"opacity-60 task-done":""} ${l.status==="cancelled"?"opacity-50":""}`,children:[l.status==="done"&&y.jsx(Jr,{className:"w-4 h-4 text-[var(--color-done)] shrink-0"}),l.status==="in_progress"&&y.jsx("div",{className:"w-4 h-4 rounded-full bg-primary shrink-0 animate-pulse-dot"}),l.status==="todo"&&y.jsx(TC,{className:"w-4 h-4 text-muted-foreground shrink-0"}),l.status==="cancelled"&&y.jsx(om,{className:"w-4 h-4 text-[var(--color-cancelled)] shrink-0"}),y.jsx("span",{className:`flex-1 truncate ${l.status==="cancelled"?"line-through text-muted-foreground":""}`,children:l.title}),c&&y.jsx("span",{className:"text-xs text-muted-foreground font-mono shrink-0",children:c}),l.status==="done"&&y.jsx("span",{className:"text-[10px] text-[var(--color-done)]",children:"done"})]})}function SO(n){const[l,r]=h.useState(0),o=h.useRef(Date.now());return h.useEffect(()=>{if(!n)return;o.current=Date.now();const s=setInterval(()=>r(Date.now()-o.current),1e3);return()=>clearInterval(s)},[n]),l}function EO(){const n=sm(),l=um(n),[r,o]=h.useState(null),[s,c]=h.useState(new Map),[d,p]=h.useState([]),[g,m]=h.useState(null),[x,v]=h.useState(""),[S,C]=h.useState(null),[R,w]=h.useState(!1),[N,T]=h.useState(!1),D=h.useRef(!1),U=SO(N);h.useEffect(()=>{(async()=>{var F;try{const ne=await fetch("/api/status");if(!ne.ok)return;const ie=await ne.json();(F=ie.config)!=null&&F.projectId&&o(ie.config.projectId)}catch{}})()},[]),h.useEffect(()=>{l.isRunning&&!D.current&&(T(!0),D.current=!0)},[l.isRunning]),h.useEffect(()=>{if(!n.lastEvent)return;const F=n.lastEvent;switch(F.type){case"run:started":D.current=!0,T(!0),C(null),w(!1),c(new Map),p([]),m(null),v("");break;case"task:started":{const ne=F.payload.task;m(ne.id),v(ne.title),p([]),c(ie=>{const G=new Map(ie);return G.set(ne.id,{task:{...ne,status:"in_progress"},startedAt:Date.now()}),G});break}case"task:done":case"task:cancelled":case"task:timeout":{const ne=F.payload.task,ie=Date.now();c(G=>{const ce=new Map(G),fe=ce.get(ne.id);return ce.set(ne.id,{task:{...ne},startedAt:fe==null?void 0:fe.startedAt,finishedAt:ie}),ce}),g===ne.id&&m(null);break}case"task:retrying":{const ne=F.payload.task;c(ie=>{const G=new Map(ie);return G.set(ne.id,{task:{...ne,status:"in_progress"},startedAt:Date.now()}),G}),m(ne.id),v(ne.title),p([]);break}case"log:line":p(ne=>[...ne,F.payload.line]);break;case"run:complete":C(F.payload),T(!1),m(null),tt.success("Sprint complete!");break;case"run:stopped":w(!0),T(!1),m(null);break;case"error":p(ne=>[...ne,`[ERROR] ${F.payload.message}`]),tt.error(F.payload.message);break}},[n.lastEvent,g]);const M=h.useMemo(()=>Array.from(s.values()),[s]),z=h.useMemo(()=>M.filter(F=>F.task.status==="done").length,[M]),B=M.length,V=B>0?Math.round(z/B*100):0,H=h.useCallback(async()=>{try{await l.stop()}catch(F){tt.error(F.message)}},[l]),K=M.length;if(!N&&!S&&!R)return y.jsx(Br,{projectId:r,taskCount:0,children:y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[y.jsx("p",{className:"text-lg text-muted-foreground",children:"No active run"}),y.jsx(Hr,{to:"/dashboard",className:au(),children:"Go to Dashboard"})]})});if(S){const F=S;return y.jsx(Br,{projectId:r,taskCount:K,children:y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center p-6 gap-6",children:[y.jsx(Yt,{className:"w-full max-w-md",children:y.jsxs(qt,{className:"py-8 space-y-6",children:[y.jsxs("div",{className:"flex flex-col items-center gap-2",children:[y.jsx("div",{className:"w-12 h-12 rounded-full bg-[var(--color-done)]/20 flex items-center justify-center",children:y.jsx(Jr,{className:"w-6 h-6 text-[var(--color-done)]"})}),y.jsx("h2",{className:"text-lg font-semibold",children:"Sprint Complete"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:no(F.durationMs)})]}),y.jsxs("div",{className:"grid grid-cols-3 gap-3 text-center",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-[var(--color-done)]",children:F.done}),y.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Done"})]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-[var(--color-cancelled)]",children:F.cancelled}),y.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Cancelled"})]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-muted-foreground",children:F.skipped}),y.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Skipped"})]})]})]})}),M.length>0&&y.jsx(Yt,{className:"w-full max-w-2xl",children:y.jsx(qt,{className:"py-2 divide-y divide-border",children:M.map(ne=>y.jsx(kd,{item:ne},ne.task.id))})}),y.jsxs(Hr,{to:"/dashboard",className:au({className:"gap-2"}),children:[y.jsx(Fr,{className:"w-4 h-4"})," Back to Dashboard"]})]})})}return R&&!N?y.jsx(Br,{projectId:r,taskCount:K,children:y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center p-6 gap-4",children:[y.jsx("h2",{className:"text-lg font-semibold text-yellow-400",children:"Run Stopped"}),M.length>0&&y.jsx(Yt,{className:"w-full max-w-2xl",children:y.jsx(qt,{className:"py-2 divide-y divide-border",children:M.map(F=>y.jsx(kd,{item:F},F.task.id))})}),y.jsx(Hr,{to:"/dashboard",className:au(),children:"Back to Dashboard"})]})}):y.jsx(Br,{projectId:r,taskCount:K,children:y.jsxs("div",{className:"flex flex-col h-full",children:[y.jsxs("div",{className:"px-6 py-4 border-b border-border space-y-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-lg font-semibold",children:"Sprint"}),y.jsxs("p",{className:"text-xs text-muted-foreground",children:[N?"Running":"Idle"," · ",no(U)," elapsed"]})]}),y.jsxs(it,{variant:"destructive",size:"sm",onClick:H,className:"gap-1.5",children:[y.jsx(Tb,{className:"w-3.5 h-3.5"})," Stop"]})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(Nm,{value:V,className:"flex-1 h-2"}),y.jsxs("span",{className:"text-xs text-muted-foreground font-mono shrink-0",children:[z," / ",B]})]})]}),y.jsx("div",{className:"border-b border-border max-h-[40vh] overflow-y-auto divide-y divide-border/50",children:M.length===0?y.jsxs("div",{className:"px-6 py-4 text-sm text-muted-foreground flex items-center gap-2",children:[y.jsx($t,{className:"w-4 h-4 animate-spin"}),"Waiting for tasks..."]}):M.map(F=>y.jsx(kd,{item:F},F.task.id))}),y.jsxs("div",{className:"flex-1 px-6 py-4 flex flex-col min-h-0",children:[y.jsxs("p",{className:"text-xs text-muted-foreground mb-2 font-mono",children:["Claude",x?` — ${x}`:""]}),y.jsx("div",{className:"flex-1 min-h-0",children:y.jsx(xO,{lines:d,taskId:g??""})})]})]})})}const Ox=h.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function wO(){return h.useContext(Ox)}function kx(n){const{children:l,elementsRef:r,labelsRef:o,onMapChange:s}=n,c=Ue(s),d=h.useRef(0),p=Yn(RO).current,g=Yn(CO).current,[m,x]=h.useState(0),v=h.useRef(m),S=Ue((T,D)=>{g.set(T,D??null),v.current+=1,x(v.current)}),C=Ue(T=>{g.delete(T),v.current+=1,x(v.current)}),R=h.useMemo(()=>{const T=new Map;return Array.from(g.keys()).filter(U=>U.isConnected).sort(TO).forEach((U,M)=>{const z=g.get(U)??{};T.set(U,{...z,index:M})}),T},[g,m]);ke(()=>{if(typeof MutationObserver!="function"||R.size===0)return;const T=new MutationObserver(D=>{const U=new Set,M=z=>U.has(z)?U.delete(z):U.add(z);D.forEach(z=>{z.removedNodes.forEach(M),z.addedNodes.forEach(M)}),U.size===0&&(v.current+=1,x(v.current))});return R.forEach((D,U)=>{U.parentElement&&T.observe(U.parentElement,{childList:!0})}),()=>{T.disconnect()}},[R]),ke(()=>{v.current===m&&(r.current.length!==R.size&&(r.current.length=R.size),o&&o.current.length!==R.size&&(o.current.length=R.size),d.current=R.size),c(R)},[c,R,r,o,m]),ke(()=>()=>{r.current=[]},[r]),ke(()=>()=>{o&&(o.current=[])},[o]);const w=Ue(T=>(p.add(T),()=>{p.delete(T)}));ke(()=>{p.forEach(T=>T(R))},[p,R]);const N=h.useMemo(()=>({register:S,unregister:C,subscribeMapChange:w,elementsRef:r,labelsRef:o,nextIndexRef:d}),[S,C,w,r,o,d]);return y.jsx(Ox.Provider,{value:N,children:l})}function CO(){return new Map}function RO(){return new Set}function TO(n,l){const r=n.compareDocumentPosition(l);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}const NO=h.createContext(void 0);function Dx(){const n=h.useContext(NO);return(n==null?void 0:n.direction)??"ltr"}const zx=h.createContext(void 0);function jm(){const n=h.useContext(zx);if(n===void 0)throw new Error(ea(64));return n}let jO=(function(n){return n.activationDirection="data-activation-direction",n.orientation="data-orientation",n})({});const Am={tabActivationDirection:n=>({[jO.activationDirection]:n})},AO=h.forwardRef(function(l,r){const{className:o,defaultValue:s=0,onValueChange:c,orientation:d="horizontal",render:p,value:g,...m}=l,x=Dx(),v=Object.hasOwn(l,"defaultValue"),S=h.useRef([]),[C,R]=h.useState(()=>new Map),[w,N]=Rm({controlled:g,default:s,name:"Tabs",state:"value"}),T=g!==void 0,[D,U]=h.useState(()=>new Map),[M,z]=h.useState("none"),B=Ue((_,ee)=>{c==null||c(_,ee),!ee.isCanceled&&(N(_),z(ee.activationDirection))}),V=Ue((_,ee)=>{R(oe=>{if(oe.get(_)===ee)return oe;const J=new Map(oe);return J.set(_,ee),J})}),H=Ue((_,ee)=>{R(oe=>{if(!oe.has(_)||oe.get(_)!==ee)return oe;const J=new Map(oe);return J.delete(_),J})}),K=h.useCallback(_=>C.get(_),[C]),F=h.useCallback(_=>{for(const ee of D.values())if(_===(ee==null?void 0:ee.value))return ee==null?void 0:ee.id},[D]),ne=h.useCallback(_=>{if(_===void 0)return null;for(const[ee,oe]of D.entries())if(oe!=null&&_===(oe.value??oe.index))return ee;return null},[D]),ie=h.useMemo(()=>({direction:x,getTabElementBySelectedValue:ne,getTabIdByPanelValue:F,getTabPanelIdByValue:K,onValueChange:B,orientation:d,registerMountedTabPanel:V,setTabMap:U,unregisterMountedTabPanel:H,tabActivationDirection:M,value:w}),[x,ne,F,K,B,d,V,U,H,M,w]),G=h.useMemo(()=>{for(const _ of D.values())if(_!=null&&_.value===w)return _},[D,w]),ce=h.useMemo(()=>{for(const _ of D.values())if(_!=null&&!_.disabled)return _.value},[D]);ke(()=>{if(T||D.size===0)return;const _=G==null?void 0:G.disabled,ee=G==null&&w!==null;if(v&&_&&w===s||!_&&!ee)return;const J=ce??null;w!==J&&(N(J),z("none"))},[s,ce,v,T,G,z,N,D,w]);const k=Nt("div",l,{state:{orientation:d,tabActivationDirection:M},ref:r,props:m,stateAttributesMapping:Am});return y.jsx(zx.Provider,{value:ie,children:y.jsx(kx,{elementsRef:S,children:k})})}),_x="data-composite-item-active";let MO=(function(n){return n[n.None=0]="None",n[n.GuessFromOrder=1]="GuessFromOrder",n})({});function Lx(n={}){const{label:l,metadata:r,textRef:o,indexGuessBehavior:s,index:c}=n,{register:d,unregister:p,subscribeMapChange:g,elementsRef:m,labelsRef:x,nextIndexRef:v}=wO(),S=h.useRef(-1),[C,R]=h.useState(c??(s===MO.GuessFromOrder?()=>{if(S.current===-1){const T=v.current;v.current+=1,S.current=T}return S.current}:-1)),w=h.useRef(null),N=h.useCallback(T=>{var D;if(w.current=T,C!==-1&&T!==null&&(m.current[C]=T,x)){const U=l!==void 0;x.current[C]=U?l:((D=o==null?void 0:o.current)==null?void 0:D.textContent)??T.textContent}},[C,m,x,l,o]);return ke(()=>{if(c!=null)return;const T=w.current;if(T)return d(T,r),()=>{p(T)}},[c,d,p,r]),ke(()=>{if(c==null)return g(T=>{var U;const D=w.current?(U=T.get(w.current))==null?void 0:U.index:null;D!=null&&R(D)})},[c,g,R]),h.useMemo(()=>({ref:N,index:C}),[C,N])}function OO(n={}){const{highlightItemOnHover:l,highlightedIndex:r,onHighlightedIndexChange:o}=z0(),{ref:s,index:c}=Lx(n),d=r===c,p=h.useRef(null),g=_l(s,p);return{compositeProps:h.useMemo(()=>({tabIndex:d?0:-1,onFocus(){o(c)},onMouseMove(){const x=p.current;if(!l||!x)return;const v=x.hasAttribute("disabled")||x.ariaDisabled==="true";!d&&!v&&x.focus()}}),[d,o,c,l]),compositeRef:g,index:c}}const Ux=h.createContext(void 0);function kO(){const n=h.useContext(Ux);if(n===void 0)throw new Error(ea(65));return n}const DO=h.forwardRef(function(l,r){const{className:o,disabled:s=!1,render:c,value:d,id:p,nativeButton:g=!0,...m}=l,{value:x,getTabPanelIdByValue:v,orientation:S}=jm(),{activateOnFocus:C,highlightedTabIndex:R,onTabActivation:w,registerTabResizeObserverElement:N,setHighlightedTabIndex:T,tabsListElement:D}=kO(),U=ql(p),M=h.useMemo(()=>({disabled:s,id:U,value:d}),[s,U,d]),{compositeProps:z,compositeRef:B,index:V}=OO({metadata:M}),H=d===x,K=h.useRef(!1),F=h.useRef(null);h.useEffect(()=>{const j=F.current;if(j)return N(j)},[N]),ke(()=>{if(K.current){K.current=!1;return}if(!(H&&V>-1&&R!==V))return;const j=D;if(j!=null){const A=Sa(xt(j));if(A&&rt(j,A))return}s||T(V)},[H,V,R,T,s,D]);const{getButtonProps:ne,buttonRef:ie}=Tu({disabled:s,native:g,focusableWhenDisabled:!0}),G=v(d),ce=h.useRef(!1),fe=h.useRef(!1);function k(j){H||s||w(d,kn(su,j.nativeEvent,void 0,{activationDirection:"none"}))}function _(j){H||(V>-1&&!s&&T(V),!s&&C&&(!ce.current||ce.current&&fe.current)&&w(d,kn(su,j.nativeEvent,void 0,{activationDirection:"none"})))}function ee(j){if(H||s)return;ce.current=!0;function A(){ce.current=!1,fe.current=!1}(!j.button||j.button===0)&&(fe.current=!0,xt(j.currentTarget).addEventListener("pointerup",A,{once:!0}))}return Nt("button",l,{state:{disabled:s,active:H,orientation:S},ref:[r,ie,B,F],props:[z,{role:"tab","aria-controls":G,"aria-selected":H,id:U,onClick:k,onFocus:_,onPointerDown:ee,[_x]:H?"":void 0,onKeyDownCapture(){K.current=!0}},m,ne]})});let zO=(function(n){return n.index="data-index",n.activationDirection="data-activation-direction",n.orientation="data-orientation",n.hidden="data-hidden",n[n.startingStyle=Ll.startingStyle]="startingStyle",n[n.endingStyle=Ll.endingStyle]="endingStyle",n})({});const _O={...Am,...vm},LO=h.forwardRef(function(l,r){const{className:o,value:s,render:c,keepMounted:d=!1,...p}=l,{value:g,getTabIdByPanelValue:m,orientation:x,tabActivationDirection:v,registerMountedTabPanel:S,unregisterMountedTabPanel:C}=jm(),R=ql(),w=h.useMemo(()=>({id:R,value:s}),[R,s]),{ref:N,index:T}=Lx({metadata:w}),D=s===g,{mounted:U,transitionStatus:M,setMounted:z}=px(D),B=!U,V=m(s),H={hidden:B,orientation:x,tabActivationDirection:v,transitionStatus:M},K=h.useRef(null),F=Nt("div",l,{state:H,ref:[r,N,K],props:[{"aria-labelledby":V,hidden:B,id:R,role:"tabpanel",tabIndex:D?0:-1,inert:Sx(!D),[zO.index]:T},p],stateAttributesMapping:_O});return wm({open:D,ref:K,onComplete(){D||z(!1)}}),ke(()=>{if(!(B&&!d)&&R!=null)return S(s,R),()=>{C(s,R)}},[B,d,s,R,S,C]),d||U?F:null});function UO(n){return n==null||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}const BO=[];function HO(n){const{itemSizes:l,cols:r=1,loopFocus:o=!0,dense:s=!1,orientation:c="both",direction:d,highlightedIndex:p,onHighlightedIndexChange:g,rootRef:m,enableHomeAndEndKeys:x=!1,stopEventPropagation:v=!1,disabledIndices:S,modifierKeys:C=BO}=n,[R,w]=h.useState(0),N=r>1,T=h.useRef(null),D=_l(T,m),U=h.useRef([]),M=h.useRef(!1),z=p??R,B=Ue((K,F=!1)=>{if((g??w)(K),F){const ne=U.current[K];_y(T.current,ne,d,c)}}),V=Ue(K=>{if(K.size===0||M.current)return;M.current=!0;const F=Array.from(K.keys()),ne=F.find(G=>G==null?void 0:G.hasAttribute(_x))??null,ie=ne?F.indexOf(ne):-1;ie!==-1&&B(ie),_y(T.current,ne,d,c)}),H=h.useMemo(()=>({"aria-orientation":c==="both"?void 0:c,ref:D,onFocus(K){!T.current||!zy(K.target)||K.target.setSelectionRange(0,K.target.value.length??0)},onKeyDown(K){const F=x?VA:xx;if(!F.has(K.key)||VO(K,C)||!T.current)return;const ie=d==="rtl",G=ie?oo:Ir,ce={horizontal:G,vertical:kl,both:G}[c],fe=ie?Ir:oo,k={horizontal:fe,vertical:Gr,both:fe}[c];if(zy(K.target)&&!UO(K.target)){const q=K.target.selectionStart,$=K.target.selectionEnd,I=K.target.value??"";if(q==null||K.shiftKey||q!==$||K.key!==k&&q<I.length||K.key!==ce&&q>0)return}let _=z;const ee=cj(U,S),oe=fj(U,S);if(N){const q=l||Array.from({length:U.current.length},()=>({width:1,height:1})),$=mj(q,r,s),I=$.findIndex(de=>de!=null&&!qr(U,de,S)),re=$.reduce((de,se,he)=>se!=null&&!qr(U,se,S)?he:de,-1);_=$[dj({current:$.map(de=>de?U.current[de]:null)},{event:K,orientation:c,loopFocus:o,cols:r,disabledIndices:pj([...S||U.current.map((de,se)=>qr(U,se)?se:void 0),void 0],$),minIndex:I,maxIndex:re,prevIndex:hj(z>oe?ee:z,q,$,r,K.key===kl?"bl":K.key===Ir?"tr":"tl"),rtl:ie})]}const J={horizontal:[G],vertical:[kl],both:[G,kl]}[c],j={horizontal:[fe],vertical:[Gr],both:[fe,Gr]}[c],A=N?F:{horizontal:x?BA:yx,vertical:x?HA:bx,both:F}[c];x&&(K.key===bo?_=ee:K.key===xo&&(_=oe)),_===z&&(J.includes(K.key)||j.includes(K.key))&&(o&&_===oe&&J.includes(K.key)?_=ee:o&&_===ee&&j.includes(K.key)?_=oe:_=On(U,{startingIndex:_,decrement:j.includes(K.key),disabledIndices:S})),_!==z&&!Zd(U,_)&&(v&&K.stopPropagation(),A.has(K.key)&&K.preventDefault(),B(_,!0),queueMicrotask(()=>{var q;(q=U.current[_])==null||q.focus()}))}}),[r,s,d,S,U,x,z,N,l,o,D,C,B,c,v]);return h.useMemo(()=>({props:H,highlightedIndex:z,onHighlightedIndexChange:B,elementsRef:U,disabledIndices:S,onMapChange:V,relayKeyboardEvent:H.onKeyDown}),[H,z,B,U,S,V])}function VO(n,l){for(const r of KA.values())if(!l.includes(r)&&n.getModifierState(r))return!0;return!1}function YO(n){const{render:l,className:r,refs:o=Kd,props:s=Kd,state:c=Kt,stateAttributesMapping:d,highlightedIndex:p,onHighlightedIndexChange:g,orientation:m,dense:x,itemSizes:v,loopFocus:S,cols:C,enableHomeAndEndKeys:R,onMapChange:w,stopEventPropagation:N=!0,rootRef:T,disabledIndices:D,modifierKeys:U,highlightItemOnHover:M=!1,tag:z="div",...B}=n,V=Dx(),{props:H,highlightedIndex:K,onHighlightedIndexChange:F,elementsRef:ne,onMapChange:ie,relayKeyboardEvent:G}=HO({itemSizes:v,cols:C,loopFocus:S,dense:x,orientation:m,highlightedIndex:p,onHighlightedIndexChange:g,rootRef:T,stopEventPropagation:N,enableHomeAndEndKeys:R,direction:V,disabledIndices:D,modifierKeys:U}),ce=Nt(z,n,{state:c,ref:o,props:[H,...s,B],stateAttributesMapping:d}),fe=h.useMemo(()=>({highlightedIndex:K,onHighlightedIndexChange:F,highlightItemOnHover:M,relayKeyboardEvent:G}),[K,F,M,G]);return y.jsx(D0.Provider,{value:fe,children:y.jsx(kx,{elementsRef:ne,onMapChange:k=>{w==null||w(k),ie(k)},children:ce})})}const qO=h.forwardRef(function(l,r){const{activateOnFocus:o=!1,className:s,loopFocus:c=!0,render:d,...p}=l,{getTabElementBySelectedValue:g,onValueChange:m,orientation:x,value:v,setTabMap:S,tabActivationDirection:C}=jm(),[R,w]=h.useState(0),[N,T]=h.useState(null),D=h.useRef(new Set),U=h.useRef(new Set),M=h.useRef(null),z=Ue(()=>{D.current.forEach(G=>{G()})});h.useEffect(()=>{if(typeof ResizeObserver>"u")return;const G=new ResizeObserver(()=>{D.current.size&&z()});return M.current=G,N&&G.observe(N),U.current.forEach(ce=>{G.observe(ce)}),()=>{G.disconnect(),M.current=null}},[N,z]);const B=Ue(G=>(D.current.add(G),()=>{D.current.delete(G)})),V=Ue(G=>{var ce;return U.current.add(G),(ce=M.current)==null||ce.observe(G),()=>{var fe;U.current.delete(G),(fe=M.current)==null||fe.unobserve(G)}}),H=GO(v,x,N,g),K=Ue((G,ce)=>{if(G!==v){const fe=H(G);ce.activationDirection=fe,m(G,ce)}}),F={orientation:x,tabActivationDirection:C},ne={"aria-orientation":x==="vertical"?"vertical":void 0,role:"tablist"},ie=h.useMemo(()=>({activateOnFocus:o,highlightedTabIndex:R,registerIndicatorUpdateListener:B,registerTabResizeObserverElement:V,onTabActivation:K,setHighlightedTabIndex:w,tabsListElement:N}),[o,R,B,V,K,w,N]);return y.jsx(Ux.Provider,{value:ie,children:y.jsx(YO,{render:d,className:s,state:F,refs:[r,T],props:[ne,p],stateAttributesMapping:Am,highlightedIndex:R,enableHomeAndEndKeys:!0,loopFocus:c,orientation:x,onHighlightedIndexChange:w,onMapChange:S,disabledIndices:Kd})})});function Wy(n,l){const{left:r,top:o}=n.getBoundingClientRect(),{left:s,top:c}=l.getBoundingClientRect(),d=r-s,p=o-c;return{left:d,top:p}}function GO(n,l,r,o){const[s,c]=h.useState(null);return ke(()=>{if(n==null||r==null){c(null);return}const d=o(n);if(d==null){c(null);return}const{left:p,top:g}=Wy(d,r);c(l==="horizontal"?p:g)},[l,o,r,n]),h.useCallback(d=>{if(d===n)return"none";if(d==null)return c(null),"none";if(d!=null&&r!=null){const p=o(d);if(p!=null){const{left:g,top:m}=Wy(p,r);if(s==null)return c(l==="horizontal"?g:m),"none";if(l==="horizontal"){if(g<s)return c(g),"left";if(g>s)return c(g),"right"}else{if(m<s)return c(m),"up";if(m>s)return c(m),"down"}}}return"none"},[o,l,s,r,n])}function IO({className:n,orientation:l="horizontal",...r}){return y.jsx(AO,{"data-slot":"tabs","data-orientation":l,className:qe("group/tabs flex gap-2 data-horizontal:flex-col",n),...r})}const XO=Au("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function KO({className:n,variant:l="default",...r}){return y.jsx(qO,{"data-slot":"tabs-list","data-variant":l,className:qe(XO({variant:l}),n),...r})}function Dd({className:n,...l}){return y.jsx(DO,{"data-slot":"tabs-trigger",className:qe("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",n),...l})}function zd({className:n,...l}){return y.jsx(LO,{"data-slot":"tabs-content",className:qe("flex-1 text-sm outline-none",n),...l})}const PO={baseUrl:"",projectId:"",apiKey:"",timeoutMinutes:30,maxRetries:2,pollInterval:3,permissions:{readFiles:!0,writeFiles:!0,runTests:!0,gitCommit:!0,gitPush:!1,npmPublish:!1,customCommands:""},notifications:{telegramBotToken:"",telegramChatId:"",webhookUrl:"",webhookHeaders:"",desktopNotifications:!1}};function Jy(n){try{return new URL(n),!0}catch{return!1}}function Dr({label:n,description:l,checked:r,disabled:o,onChange:s}){return y.jsxs("div",{className:`flex items-center justify-between py-2.5 ${o?"opacity-60":""}`,children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium",children:n}),y.jsx("p",{className:"text-xs text-muted-foreground",children:l})]}),y.jsx(ku,{checked:r,disabled:o,onCheckedChange:s})]})}function QO(){const[n,l]=h.useState(PO),[r,o]=h.useState(!0),[s,c]=h.useState(!1),[d,p]=h.useState("idle"),[g,m]=h.useState(null),[x,v]=h.useState(!1),[S,C]=h.useState(null);h.useEffect(()=>{(async()=>{var M,z,B,V,H,K,F,ne,ie,G,ce;try{const fe=await fetch("/api/config");if(fe.ok){const k=await fe.json();C(k.projectId??null),l({baseUrl:k.baseUrl??"",projectId:k.projectId??"",apiKey:k.apiKey??"",timeoutMinutes:Math.round((k.timeoutMs??18e5)/6e4),maxRetries:k.maxRetries??2,pollInterval:Math.round((k.pauseMs??3e3)/1e3),permissions:{readFiles:!0,writeFiles:((M=k.permissions)==null?void 0:M.writeFiles)??!0,runTests:((z=k.permissions)==null?void 0:z.runTests)??!0,gitCommit:((B=k.permissions)==null?void 0:B.gitCommit)??!0,gitPush:((V=k.permissions)==null?void 0:V.gitPush)??!1,npmPublish:((H=k.permissions)==null?void 0:H.npmPublish)??!1,customCommands:((K=k.permissions)==null?void 0:K.customCommands)??""},notifications:{telegramBotToken:((F=k.notifications)==null?void 0:F.telegramBotToken)??"",telegramChatId:((ne=k.notifications)==null?void 0:ne.telegramChatId)??"",webhookUrl:((ie=k.notifications)==null?void 0:ie.webhookUrl)??"",webhookHeaders:((G=k.notifications)==null?void 0:G.webhookHeaders)??"",desktopNotifications:((ce=k.notifications)==null?void 0:ce.desktopNotifications)??!1}})}}catch{}o(!1)})()},[]);const R=h.useCallback(async()=>{if(!n.baseUrl||!Jy(n.baseUrl)){tt.error("Enter a valid GraphMemory URL first");return}p("testing");try{(await fetch("/api/projects")).ok?(p("success"),tt.success("Connection successful")):(p("error"),tt.error("Connection failed"))}catch{p("error"),tt.error("Connection failed — could not reach server")}},[n.baseUrl]),w=h.useCallback(async M=>{m(M);try{const z=await fetch("/api/notifications/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channel:M})});if(z.ok)tt.success(`Test ${M} notification sent`);else{const B=await z.json().catch(()=>({error:`HTTP ${z.status}`}));tt.error(B.error??`Test ${M} notification failed`)}}catch{tt.error(`Failed to send test ${M} notification`)}m(null)},[]),N=h.useCallback(async()=>{if(!n.baseUrl.trim()){tt.error("GraphMemory URL is required");return}if(!Jy(n.baseUrl)){tt.error("Invalid GraphMemory URL");return}if(!n.projectId.trim()){tt.error("Project ID is required");return}c(!0);try{const M={baseUrl:n.baseUrl.trim(),projectId:n.projectId.trim(),apiKey:n.apiKey||void 0,timeoutMs:n.timeoutMinutes*6e4,pauseMs:n.pollInterval*1e3,maxRetries:n.maxRetries,permissions:n.permissions,notifications:n.notifications},z=await fetch("/api/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)});if(!z.ok){const B=await z.json().catch(()=>({error:`HTTP ${z.status}`}));throw new Error(B.error??`HTTP ${z.status}`)}tt.success("Settings saved")}catch(M){tt.error(M instanceof Error?M.message:"Failed to save settings")}c(!1)},[n]),T=h.useCallback((M,z)=>{l(B=>({...B,[M]:z}))},[]),D=h.useCallback(M=>{l(z=>({...z,permissions:M}))},[]),U=h.useCallback(M=>{l(z=>({...z,notifications:M}))},[]);return r?y.jsx("div",{className:"flex items-center justify-center min-h-screen",children:y.jsx($t,{className:"w-6 h-6 animate-spin text-primary"})}):y.jsx(Br,{projectId:S,taskCount:0,children:y.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:y.jsxs("div",{className:"max-w-2xl mx-auto space-y-6",children:[y.jsx("h1",{className:"text-xl font-semibold",children:"Settings"}),y.jsxs(IO,{defaultValue:"connection",children:[y.jsxs(KO,{children:[y.jsx(Dd,{value:"connection",children:"Connection"}),y.jsx(Dd,{value:"permissions",children:"Permissions"}),y.jsx(Dd,{value:"notifications",children:"Notifications"})]}),y.jsxs(zd,{value:"connection",className:"space-y-4 pt-4",children:[y.jsx(Yt,{children:y.jsxs(qt,{className:"space-y-4 py-4",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{children:"GraphMemory URL"}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Xt,{value:n.baseUrl,onChange:M=>T("baseUrl",M.target.value),placeholder:"http://localhost:3000",className:"font-mono text-sm"}),y.jsxs(it,{variant:d==="success"?"secondary":d==="error"?"destructive":"secondary",onClick:R,disabled:d==="testing",className:"shrink-0 gap-1.5",children:[d==="testing"&&y.jsx($t,{className:"w-3.5 h-3.5 animate-spin"}),d==="success"&&y.jsx(Jr,{className:"w-3.5 h-3.5"}),d==="error"&&y.jsx(om,{className:"w-3.5 h-3.5"}),d==="testing"?"Testing...":d==="success"?"Connected":d==="error"?"Retry":"Test"]})]})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{children:"Project ID"}),y.jsx(Xt,{value:n.projectId,onChange:M=>T("projectId",M.target.value),placeholder:"my-project",className:"font-mono text-sm"})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{children:"API Key"}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Xt,{type:x?"text":"password",value:n.apiKey,onChange:M=>T("apiKey",M.target.value),placeholder:"Enter API key...",className:"font-mono text-sm"}),y.jsx(it,{variant:"ghost",size:"sm",onClick:()=>v(!x),children:x?"Hide":"Show"})]})]}),y.jsx(em,{}),y.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{className:"text-xs",children:"Timeout (min)"}),y.jsx(Xt,{type:"number",min:1,max:1440,value:n.timeoutMinutes,onChange:M=>T("timeoutMinutes",parseInt(M.target.value,10)||0),className:"font-mono text-sm"})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{className:"text-xs",children:"Max retries"}),y.jsx(Xt,{type:"number",min:0,max:10,value:n.maxRetries,onChange:M=>T("maxRetries",parseInt(M.target.value,10)||0),className:"font-mono text-sm"})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(sn,{className:"text-xs",children:"Poll interval (s)"}),y.jsx(Xt,{type:"number",min:1,max:60,value:n.pollInterval,onChange:M=>T("pollInterval",parseInt(M.target.value,10)||0),className:"font-mono text-sm"})]})]})]})}),y.jsx("div",{className:"flex justify-end",children:y.jsxs(it,{onClick:N,disabled:s,className:"gap-2",children:[s&&y.jsx($t,{className:"w-4 h-4 animate-spin"}),"Save"]})})]}),y.jsxs(zd,{value:"permissions",className:"space-y-4 pt-4",children:[y.jsx(Yt,{children:y.jsxs(qt,{className:"py-4",children:[y.jsxs("div",{className:"divide-y divide-border",children:[y.jsx(Dr,{label:"Read files",description:"Always enabled",checked:!0,disabled:!0,onChange:()=>{}}),y.jsx(Dr,{label:"Write files",description:"Create and modify files",checked:n.permissions.writeFiles,onChange:M=>D({...n.permissions,writeFiles:M})}),y.jsx(Dr,{label:"Run tests",description:"npm test, pytest, etc.",checked:n.permissions.runTests,onChange:M=>D({...n.permissions,runTests:M})}),y.jsx(Dr,{label:"Git commit",description:"Stage and commit changes",checked:n.permissions.gitCommit,onChange:M=>D({...n.permissions,gitCommit:M})}),y.jsx(Dr,{label:"Git push",description:"Push to remote repository",checked:n.permissions.gitPush,onChange:M=>D({...n.permissions,gitPush:M})}),y.jsx(Dr,{label:"npm publish",description:"Publish packages to registry",checked:n.permissions.npmPublish,onChange:M=>D({...n.permissions,npmPublish:M})})]}),y.jsxs("div",{className:"space-y-2 mt-4",children:[y.jsx(sn,{className:"text-xs",children:"Custom command whitelist (comma-separated)"}),y.jsx(Xt,{value:n.permissions.customCommands,onChange:M=>D({...n.permissions,customCommands:M.target.value}),placeholder:"e.g. make build, cargo test",className:"font-mono text-sm"})]})]})}),y.jsx("div",{className:"flex justify-end",children:y.jsxs(it,{onClick:N,disabled:s,className:"gap-2",children:[s&&y.jsx($t,{className:"w-4 h-4 animate-spin"}),"Save"]})})]}),y.jsxs(zd,{value:"notifications",className:"space-y-4 pt-4",children:[y.jsx(Yt,{children:y.jsxs(qt,{className:"py-4 space-y-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(sn,{className:"text-sm font-medium",children:"Telegram"}),y.jsx(it,{variant:"secondary",size:"sm",onClick:()=>w("telegram"),disabled:g==="telegram"||!n.notifications.telegramBotToken||!n.notifications.telegramChatId,className:"text-xs",children:g==="telegram"?"Sending...":"Send test"})]}),y.jsx(Xt,{value:n.notifications.telegramBotToken,onChange:M=>U({...n.notifications,telegramBotToken:M.target.value}),placeholder:"Bot token",className:"font-mono text-sm"}),y.jsx(Xt,{value:n.notifications.telegramChatId,onChange:M=>U({...n.notifications,telegramChatId:M.target.value}),placeholder:"Chat ID",className:"font-mono text-sm"})]})}),y.jsx(Yt,{children:y.jsxs(qt,{className:"py-4 space-y-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(sn,{className:"text-sm font-medium",children:"Webhook"}),y.jsx(it,{variant:"secondary",size:"sm",onClick:()=>w("webhook"),disabled:g==="webhook"||!n.notifications.webhookUrl,className:"text-xs",children:g==="webhook"?"Sending...":"Send test"})]}),y.jsx(Xt,{value:n.notifications.webhookUrl,onChange:M=>U({...n.notifications,webhookUrl:M.target.value}),placeholder:"https://example.com/webhook",className:"font-mono text-sm"}),y.jsx(Xt,{value:n.notifications.webhookHeaders,onChange:M=>U({...n.notifications,webhookHeaders:M.target.value}),placeholder:'Headers JSON: {"Authorization": "Bearer ..."}',className:"font-mono text-sm"})]})}),y.jsx(Yt,{children:y.jsx(qt,{className:"py-4",children:y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium",children:"Desktop notifications"}),y.jsx("p",{className:"text-xs text-muted-foreground",children:"Browser push notifications"})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(it,{variant:"secondary",size:"sm",onClick:()=>w("desktop"),disabled:g==="desktop"||!n.notifications.desktopNotifications,className:"text-xs",children:g==="desktop"?"Sending...":"Send test"}),y.jsx(ku,{checked:n.notifications.desktopNotifications,onCheckedChange:M=>U({...n.notifications,desktopNotifications:M})})]})]})})}),y.jsx("div",{className:"flex justify-end",children:y.jsxs(it,{onClick:N,disabled:s,className:"gap-2",children:[s&&y.jsx($t,{className:"w-4 h-4 animate-spin"}),"Save"]})})]})]})]})})})}function $O(){const n=mo(),l=sm(),[r,o]=h.useState(null),[s,c]=h.useState([]),d=um(l),{tasks:p}=Nb(r,l);h.useEffect(()=>{(async()=>{var v;try{const S=await fetch("/api/status");if(!S.ok)return;const C=await S.json();(v=C.config)!=null&&v.projectId&&o(C.config.projectId)}catch{}})()},[]),h.useEffect(()=>{r&&(async()=>{try{const v=await fetch(`/api/projects/${encodeURIComponent(r)}/epics`);if(!v.ok)return;const S=await v.json();c(S.epics)}catch{}})()},[r]);const g=h.useCallback(async()=>{if(r)try{await d.startSprint(r),n("/sprint")}catch(v){tt.error(v.message)}},[r,d,n]),m=h.useCallback(async v=>{if(r)try{await d.startEpic(r,v),n("/sprint")}catch(S){tt.error(S.message)}},[r,d,n]),x=h.useCallback(async()=>{try{await d.stop(),tt.success("Run stopped")}catch(v){tt.error(v.message)}},[d]);return y.jsxs(y.Fragment,{children:[y.jsx(BM,{projectId:r,isRunning:d.isRunning,onStartSprint:g,onStop:x,tasks:p,epics:s,onStartEpic:m}),y.jsxs(aw,{children:[y.jsx(zr,{path:"/",element:y.jsx(Iy,{})}),y.jsx(zr,{path:"/wizard",element:y.jsx(Iy,{})}),y.jsx(zr,{path:"/dashboard",element:y.jsx(bO,{})}),y.jsx(zr,{path:"/sprint",element:y.jsx(EO,{})}),y.jsx(zr,{path:"/settings",element:y.jsx(QO,{})})]}),y.jsx(XC,{richColors:!0,position:"bottom-right"})]})}function ZO(){return y.jsx("div",{className:"min-h-screen bg-background text-foreground",children:y.jsx($O,{})})}iE.createRoot(document.getElementById("root")).render(y.jsx(h.StrictMode,{children:y.jsx(Nw,{children:y.jsx(ZO,{})})}));
|