@axlsdk/studio 0.13.5 → 0.13.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,150 +0,0 @@
1
- var ag=Object.defineProperty;var ly=n=>{throw TypeError(n)};var ng=(n,u,r)=>u in n?ag(n,u,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[u]=r;var Fs=(n,u,r)=>ng(n,typeof u!="symbol"?u+"":u,r),uo=(n,u,r)=>u.has(n)||ly("Cannot "+r);var j=(n,u,r)=>(uo(n,u,"read from private field"),r?r.call(n):u.get(n)),le=(n,u,r)=>u.has(n)?ly("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(n):u.set(n,r),W=(n,u,r,c)=>(uo(n,u,"write to private field"),c?c.call(n,r):u.set(n,r),r),oe=(n,u,r)=>(uo(n,u,"access private method"),r);var Ri=(n,u,r,c)=>({set _(d){W(n,u,d,r)},get _(){return j(n,u,c)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const y of h.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function r(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(d){if(d.ep)return;d.ep=!0;const h=r(d);fetch(d.href,h)}})();var io={exports:{}},$s={};/**
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 ay;function sg(){if(ay)return $s;ay=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,d,h){var y=null;if(h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),"key"in d){h={};for(var p in d)p!=="key"&&(h[p]=d[p])}else h=d;return d=h.ref,{$$typeof:n,type:c,key:y,ref:d!==void 0?d:null,props:h}}return $s.Fragment=u,$s.jsx=r,$s.jsxs=r,$s}var ny;function ug(){return ny||(ny=1,io.exports=sg()),io.exports}var o=ug(),ro={exports:{}},ie={};/**
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 sy;function ig(){if(sy)return ie;sy=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),_=Symbol.iterator;function D(C){return C===null||typeof C!="object"?null:(C=_&&C[_]||C["@@iterator"],typeof C=="function"?C:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,Q={};function w(C,G,F){this.props=C,this.context=G,this.refs=Q,this.updater=F||K}w.prototype.isReactComponent={},w.prototype.setState=function(C,G){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,G,"setState")},w.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function Y(){}Y.prototype=w.prototype;function R(C,G,F){this.props=C,this.context=G,this.refs=Q,this.updater=F||K}var q=R.prototype=new Y;q.constructor=R,O(q,w.prototype),q.isPureReactComponent=!0;var J=Array.isArray;function Z(){}var $={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function fe(C,G,F){var V=F.ref;return{$$typeof:n,type:C,key:G,ref:V!==void 0?V:null,props:F}}function je(C,G){return fe(C.type,G,C.props)}function He(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function Ye(C){var G={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(F){return G[F]})}var qt=/\/+/g;function it(C,G){return typeof C=="object"&&C!==null&&C.key!=null?Ye(""+C.key):G.toString(36)}function We(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Z,Z):(C.status="pending",C.then(function(G){C.status==="pending"&&(C.status="fulfilled",C.value=G)},function(G){C.status==="pending"&&(C.status="rejected",C.reason=G)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function B(C,G,F,V,se){var ue=typeof C;(ue==="undefined"||ue==="boolean")&&(C=null);var xe=!1;if(C===null)xe=!0;else switch(ue){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(C.$$typeof){case n:case u:xe=!0;break;case b:return xe=C._init,B(xe(C._payload),G,F,V,se)}}if(xe)return se=se(C),xe=V===""?"."+it(C,0):V,J(se)?(F="",xe!=null&&(F=xe.replace(qt,"$&/")+"/"),B(se,G,F,"",function(ls){return ls})):se!=null&&(He(se)&&(se=je(se,F+(se.key==null||C&&C.key===se.key?"":(""+se.key).replace(qt,"$&/")+"/")+xe)),G.push(se)),1;xe=0;var tt=V===""?".":V+":";if(J(C))for(var Ge=0;Ge<C.length;Ge++)V=C[Ge],ue=tt+it(V,Ge),xe+=B(V,G,F,ue,se);else if(Ge=D(C),typeof Ge=="function")for(C=Ge.call(C),Ge=0;!(V=C.next()).done;)V=V.value,ue=tt+it(V,Ge++),xe+=B(V,G,F,ue,se);else if(ue==="object"){if(typeof C.then=="function")return B(We(C),G,F,V,se);throw G=String(C),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return xe}function k(C,G,F){if(C==null)return C;var V=[],se=0;return B(C,V,"","",function(ue){return G.call(F,ue,se++)}),V}function te(C){if(C._status===-1){var G=C._result;G=G(),G.then(function(F){(C._status===0||C._status===-1)&&(C._status=1,C._result=F)},function(F){(C._status===0||C._status===-1)&&(C._status=2,C._result=F)}),C._status===-1&&(C._status=0,C._result=G)}if(C._status===1)return C._result.default;throw C._result}var ge=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},Ce={map:k,forEach:function(C,G,F){k(C,function(){G.apply(this,arguments)},F)},count:function(C){var G=0;return k(C,function(){G++}),G},toArray:function(C){return k(C,function(G){return G})||[]},only:function(C){if(!He(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ie.Activity=g,ie.Children=Ce,ie.Component=w,ie.Fragment=r,ie.Profiler=d,ie.PureComponent=R,ie.StrictMode=c,ie.Suspense=x,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ie.__COMPILER_RUNTIME={__proto__:null,c:function(C){return $.H.useMemoCache(C)}},ie.cache=function(C){return function(){return C.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(C,G,F){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var V=O({},C.props),se=C.key;if(G!=null)for(ue in G.key!==void 0&&(se=""+G.key),G)!ee.call(G,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&G.ref===void 0||(V[ue]=G[ue]);var ue=arguments.length-2;if(ue===1)V.children=F;else if(1<ue){for(var xe=Array(ue),tt=0;tt<ue;tt++)xe[tt]=arguments[tt+2];V.children=xe}return fe(C.type,se,V)},ie.createContext=function(C){return C={$$typeof:y,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:h,_context:C},C},ie.createElement=function(C,G,F){var V,se={},ue=null;if(G!=null)for(V in G.key!==void 0&&(ue=""+G.key),G)ee.call(G,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(se[V]=G[V]);var xe=arguments.length-2;if(xe===1)se.children=F;else if(1<xe){for(var tt=Array(xe),Ge=0;Ge<xe;Ge++)tt[Ge]=arguments[Ge+2];se.children=tt}if(C&&C.defaultProps)for(V in xe=C.defaultProps,xe)se[V]===void 0&&(se[V]=xe[V]);return fe(C,ue,se)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(C){return{$$typeof:p,render:C}},ie.isValidElement=He,ie.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:te}},ie.memo=function(C,G){return{$$typeof:v,type:C,compare:G===void 0?null:G}},ie.startTransition=function(C){var G=$.T,F={};$.T=F;try{var V=C(),se=$.S;se!==null&&se(F,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(Z,ge)}catch(ue){ge(ue)}finally{G!==null&&F.types!==null&&(G.types=F.types),$.T=G}},ie.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ie.use=function(C){return $.H.use(C)},ie.useActionState=function(C,G,F){return $.H.useActionState(C,G,F)},ie.useCallback=function(C,G){return $.H.useCallback(C,G)},ie.useContext=function(C){return $.H.useContext(C)},ie.useDebugValue=function(){},ie.useDeferredValue=function(C,G){return $.H.useDeferredValue(C,G)},ie.useEffect=function(C,G){return $.H.useEffect(C,G)},ie.useEffectEvent=function(C){return $.H.useEffectEvent(C)},ie.useId=function(){return $.H.useId()},ie.useImperativeHandle=function(C,G,F){return $.H.useImperativeHandle(C,G,F)},ie.useInsertionEffect=function(C,G){return $.H.useInsertionEffect(C,G)},ie.useLayoutEffect=function(C,G){return $.H.useLayoutEffect(C,G)},ie.useMemo=function(C,G){return $.H.useMemo(C,G)},ie.useOptimistic=function(C,G){return $.H.useOptimistic(C,G)},ie.useReducer=function(C,G,F){return $.H.useReducer(C,G,F)},ie.useRef=function(C){return $.H.useRef(C)},ie.useState=function(C){return $.H.useState(C)},ie.useSyncExternalStore=function(C,G,F){return $.H.useSyncExternalStore(C,G,F)},ie.useTransition=function(){return $.H.useTransition()},ie.version="19.2.4",ie}var uy;function Lo(){return uy||(uy=1,ro.exports=ig()),ro.exports}var N=Lo(),co={exports:{}},Ws={},oo={exports:{}},fo={};/**
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 iy;function rg(){return iy||(iy=1,(function(n){function u(B,k){var te=B.length;B.push(k);e:for(;0<te;){var ge=te-1>>>1,Ce=B[ge];if(0<d(Ce,k))B[ge]=k,B[te]=Ce,te=ge;else break e}}function r(B){return B.length===0?null:B[0]}function c(B){if(B.length===0)return null;var k=B[0],te=B.pop();if(te!==k){B[0]=te;e:for(var ge=0,Ce=B.length,C=Ce>>>1;ge<C;){var G=2*(ge+1)-1,F=B[G],V=G+1,se=B[V];if(0>d(F,te))V<Ce&&0>d(se,F)?(B[ge]=se,B[V]=te,ge=V):(B[ge]=F,B[G]=te,ge=G);else if(V<Ce&&0>d(se,te))B[ge]=se,B[V]=te,ge=V;else break e}}return k}function d(B,k){var te=B.sortIndex-k.sortIndex;return te!==0?te:B.id-k.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var y=Date,p=y.now();n.unstable_now=function(){return y.now()-p}}var x=[],v=[],b=1,g=null,_=3,D=!1,K=!1,O=!1,Q=!1,w=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function q(B){for(var k=r(v);k!==null;){if(k.callback===null)c(v);else if(k.startTime<=B)c(v),k.sortIndex=k.expirationTime,u(x,k);else break;k=r(v)}}function J(B){if(O=!1,q(B),!K)if(r(x)!==null)K=!0,Z||(Z=!0,Ye());else{var k=r(v);k!==null&&We(J,k.startTime-B)}}var Z=!1,$=-1,ee=5,fe=-1;function je(){return Q?!0:!(n.unstable_now()-fe<ee)}function He(){if(Q=!1,Z){var B=n.unstable_now();fe=B;var k=!0;try{e:{K=!1,O&&(O=!1,Y($),$=-1),D=!0;var te=_;try{t:{for(q(B),g=r(x);g!==null&&!(g.expirationTime>B&&je());){var ge=g.callback;if(typeof ge=="function"){g.callback=null,_=g.priorityLevel;var Ce=ge(g.expirationTime<=B);if(B=n.unstable_now(),typeof Ce=="function"){g.callback=Ce,q(B),k=!0;break t}g===r(x)&&c(x),q(B)}else c(x);g=r(x)}if(g!==null)k=!0;else{var C=r(v);C!==null&&We(J,C.startTime-B),k=!1}}break e}finally{g=null,_=te,D=!1}k=void 0}}finally{k?Ye():Z=!1}}}var Ye;if(typeof R=="function")Ye=function(){R(He)};else if(typeof MessageChannel<"u"){var qt=new MessageChannel,it=qt.port2;qt.port1.onmessage=He,Ye=function(){it.postMessage(null)}}else Ye=function(){w(He,0)};function We(B,k){$=w(function(){B(n.unstable_now())},k)}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(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_next=function(B){switch(_){case 1:case 2:case 3:var k=3;break;default:k=_}var te=_;_=k;try{return B()}finally{_=te}},n.unstable_requestPaint=function(){Q=!0},n.unstable_runWithPriority=function(B,k){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var te=_;_=B;try{return k()}finally{_=te}},n.unstable_scheduleCallback=function(B,k,te){var ge=n.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ge+te:ge):te=ge,B){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=te+Ce,B={id:b++,callback:k,priorityLevel:B,startTime:te,expirationTime:Ce,sortIndex:-1},te>ge?(B.sortIndex=te,u(v,B),r(x)===null&&B===r(v)&&(O?(Y($),$=-1):O=!0,We(J,te-ge))):(B.sortIndex=Ce,u(x,B),K||D||(K=!0,Z||(Z=!0,Ye()))),B},n.unstable_shouldYield=je,n.unstable_wrapCallback=function(B){var k=_;return function(){var te=_;_=k;try{return B.apply(this,arguments)}finally{_=te}}}})(fo)),fo}var ry;function cg(){return ry||(ry=1,oo.exports=rg()),oo.exports}var ho={exports:{}},rt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var cy;function og(){if(cy)return rt;cy=1;var n=Lo();function u(x){var v="https://react.dev/errors/"+x;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)v+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+x+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(u(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(x,v,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:g==null?null:""+g,children:x,containerInfo:v,implementation:b}}var y=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(x,v){if(x==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,rt.createPortal=function(x,v){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(u(299));return h(x,v,null,b)},rt.flushSync=function(x){var v=y.T,b=c.p;try{if(y.T=null,c.p=2,x)return x()}finally{y.T=v,c.p=b,c.d.f()}},rt.preconnect=function(x,v){typeof x=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(x,v))},rt.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},rt.preinit=function(x,v){if(typeof x=="string"&&v&&typeof v.as=="string"){var b=v.as,g=p(b,v.crossOrigin),_=typeof v.integrity=="string"?v.integrity:void 0,D=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;b==="style"?c.d.S(x,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:g,integrity:_,fetchPriority:D}):b==="script"&&c.d.X(x,{crossOrigin:g,integrity:_,fetchPriority:D,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},rt.preinitModule=function(x,v){if(typeof x=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var b=p(v.as,v.crossOrigin);c.d.M(x,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(x)},rt.preload=function(x,v){if(typeof x=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var b=v.as,g=p(b,v.crossOrigin);c.d.L(x,b,{crossOrigin:g,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},rt.preloadModule=function(x,v){if(typeof x=="string")if(v){var b=p(v.as,v.crossOrigin);c.d.m(x,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(x)},rt.requestFormReset=function(x){c.d.r(x)},rt.unstable_batchedUpdates=function(x,v){return x(v)},rt.useFormState=function(x,v,b){return y.H.useFormState(x,v,b)},rt.useFormStatus=function(){return y.H.useHostTransitionStatus()},rt.version="19.2.4",rt}var oy;function fg(){if(oy)return ho.exports;oy=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(u){console.error(u)}}return n(),ho.exports=og(),ho.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 fy;function dg(){if(fy)return Ws;fy=1;var n=cg(),u=Lo(),r=fg();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(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 x(e){if(h(e)!==e)throw Error(c(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var s=l.return;if(s===null)break;var i=s.alternate;if(i===null){if(a=s.return,a!==null){l=a;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===l)return x(s),e;if(i===a)return x(s),t;i=i.sibling}throw Error(c(188))}if(l.return!==a.return)l=s,a=i;else{for(var f=!1,m=s.child;m;){if(m===l){f=!0,l=s,a=i;break}if(m===a){f=!0,a=s,l=i;break}m=m.sibling}if(!f){for(m=i.child;m;){if(m===l){f=!0,l=i,a=s;break}if(m===a){f=!0,a=i,l=s;break}m=m.sibling}if(!f)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,_=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),R=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),je=Symbol.for("react.memo_cache_sentinel"),He=Symbol.iterator;function Ye(e){return e===null||typeof e!="object"?null:(e=He&&e[He]||e["@@iterator"],typeof e=="function"?e:null)}var qt=Symbol.for("react.client.reference");function it(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case w:return"Profiler";case Q:return"StrictMode";case J:return"Suspense";case Z:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case K:return"Portal";case R:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:it(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return it(e(t))}catch{}}return null}var We=Array.isArray,B=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ge=[],Ce=-1;function C(e){return{current:e}}function G(e){0>Ce||(e.current=ge[Ce],ge[Ce]=null,Ce--)}function F(e,t){Ce++,ge[Ce]=e.current,e.current=t}var V=C(null),se=C(null),ue=C(null),xe=C(null);function tt(e,t){switch(F(ue,t),F(se,e),F(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cm(t),e=Tm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(V),F(V,e)}function Ge(){G(V),G(se),G(ue)}function ls(e){e.memoizedState!==null&&F(xe,e);var t=V.current,l=Tm(t,e.type);t!==l&&(F(se,e),F(V,l))}function ou(e){se.current===e&&(G(V),G(se)),xe.current===e&&(G(xe),Zs._currentValue=te)}var Gi,ef;function Ea(e){if(Gi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Gi=t&&t[1]||"",ef=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Gi+e+ef}var Xi=!1;function Ki(e,t){if(!e||Xi)return"";Xi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(U){var z=U}Reflect.construct(e,[],X)}else{try{X.call()}catch(U){z=U}e.call(X.prototype)}}else{try{throw Error()}catch(U){z=U}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(U){if(U&&z&&typeof U.stack=="string")return[U.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),f=i[0],m=i[1];if(f&&m){var S=f.split(`
44
- `),M=m.split(`
45
- `);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===M.length)for(a=S.length-1,s=M.length-1;1<=a&&0<=s&&S[a]!==M[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==M[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==M[s]){var H=`
46
- `+S[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=s);break}}}finally{Xi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ea(l):""}function Uv(e,t){switch(e.tag){case 26:case 27:case 5:return Ea(e.type);case 16:return Ea("Lazy");case 13:return e.child!==t&&t!==null?Ea("Suspense Fallback"):Ea("Suspense");case 19:return Ea("SuspenseList");case 0:case 15:return Ki(e.type,!1);case 11:return Ki(e.type.render,!1);case 1:return Ki(e.type,!0);case 31:return Ea("Activity");default:return""}}function tf(e){try{var t="",l=null;do t+=Uv(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var Zi=Object.prototype.hasOwnProperty,Vi=n.unstable_scheduleCallback,ki=n.unstable_cancelCallback,wv=n.unstable_shouldYield,Hv=n.unstable_requestPaint,Tt=n.unstable_now,qv=n.unstable_getCurrentPriorityLevel,lf=n.unstable_ImmediatePriority,af=n.unstable_UserBlockingPriority,fu=n.unstable_NormalPriority,Bv=n.unstable_LowPriority,nf=n.unstable_IdlePriority,Qv=n.log,Lv=n.unstable_setDisableYieldValue,as=null,Ot=null;function Ll(e){if(typeof Qv=="function"&&Lv(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(as,e)}catch{}}var Rt=Math.clz32?Math.clz32:Xv,Yv=Math.log,Gv=Math.LN2;function Xv(e){return e>>>=0,e===0?32:31-(Yv(e)/Gv|0)|0}var du=256,hu=262144,mu=4194304;function Ca(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 yu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var s=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~i,a!==0?s=Ca(a):(f&=m,f!==0?s=Ca(f):l||(l=m&~e,l!==0&&(s=Ca(l))))):(m=a&~i,m!==0?s=Ca(m):f!==0?s=Ca(f):l||(l=a&~e,l!==0&&(s=Ca(l)))),s===0?0:t!==0&&t!==s&&(t&i)===0&&(i=s&-s,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:s}function ns(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Kv(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 sf(){var e=mu;return mu<<=1,(mu&62914560)===0&&(mu=4194304),e}function Ji(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ss(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zv(e,t,l,a,s,i){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,S=e.expirationTimes,M=e.hiddenUpdates;for(l=f&~l;0<l;){var H=31-Rt(l),X=1<<H;m[H]=0,S[H]=-1;var z=M[H];if(z!==null)for(M[H]=null,H=0;H<z.length;H++){var U=z[H];U!==null&&(U.lane&=-536870913)}l&=~X}a!==0&&uf(e,a,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function uf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Rt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function rf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Rt(l),s=1<<a;s&t|e[a]&t&&(e[a]|=t),l&=~s}}function cf(e,t){var l=t&-t;return l=(l&42)!==0?1:Fi(l),(l&(e.suspendedLanes|t))!==0?0:l}function Fi(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 $i(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function of(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:Fm(e.type))}function ff(e,t){var l=k.p;try{return k.p=e,t()}finally{k.p=l}}var Yl=Math.random().toString(36).slice(2),lt="__reactFiber$"+Yl,mt="__reactProps$"+Yl,tn="__reactContainer$"+Yl,Wi="__reactEvents$"+Yl,Vv="__reactListeners$"+Yl,kv="__reactHandles$"+Yl,df="__reactResources$"+Yl,us="__reactMarker$"+Yl;function Ii(e){delete e[lt],delete e[mt],delete e[Wi],delete e[Vv],delete e[kv]}function ln(e){var t=e[lt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[tn]||l[lt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Dm(e);e!==null;){if(l=e[lt])return l;e=Dm(e)}return t}e=l,l=e.parentNode}return null}function an(e){if(e=e[lt]||e[tn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function is(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function nn(e){var t=e[df];return t||(t=e[df]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[us]=!0}var hf=new Set,mf={};function Ta(e,t){sn(e,t),sn(e+"Capture",t)}function sn(e,t){for(mf[e]=t,e=0;e<t.length;e++)hf.add(t[e])}var Jv=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]*$"),yf={},vf={};function Fv(e){return Zi.call(vf,e)?!0:Zi.call(yf,e)?!1:Jv.test(e)?vf[e]=!0:(yf[e]=!0,!1)}function vu(e,t,l){if(Fv(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function pu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function hl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $v(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){l=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pi(e){if(!e._valueTracker){var t=pf(e)?"checked":"value";e._valueTracker=$v(e,t,""+e[t])}}function gf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=pf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function gu(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 Wv=/[\n"\\]/g;function Qt(e){return e.replace(Wv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function er(e,t,l,a,s,i,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?tr(e,f,Bt(t)):l!=null?tr(e,f,Bt(l)):a!=null&&e.removeAttribute("value"),s==null&&i!=null&&(e.defaultChecked=!!i),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Bt(m):e.removeAttribute("name")}function xf(e,t,l,a,s,i,f,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Pi(e);return}l=l!=null?""+Bt(l):"",t=t!=null?""+Bt(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Pi(e)}function tr(e,t,l){t==="number"&&gu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function un(e,t,l,a){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Bt(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function bf(e,t,l){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Bt(l):""}function Sf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(We(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Bt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Pi(e)}function rn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Iv=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 jf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Iv.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Nf(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&l[s]!==a&&jf(e,s,a)}else for(var i in t)t.hasOwnProperty(i)&&jf(e,i,t[i])}function lr(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 Pv=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"]]),ep=/^[\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 xu(e){return ep.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ml(){}var ar=null;function nr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cn=null,on=null;function Ef(e){var t=an(e);if(t&&(e=t.stateNode)){var l=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(er(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var s=a[mt]||null;if(!s)throw Error(c(90));er(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&gf(a)}break e;case"textarea":bf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&un(e,!!l.multiple,t,!1)}}}var sr=!1;function Cf(e,t,l){if(sr)return e(t,l);sr=!0;try{var a=e(t);return a}finally{if(sr=!1,(cn!==null||on!==null)&&(ui(),cn&&(t=cn,e=on,on=cn=null,Ef(t),e)))for(t=0;t<e.length;t++)Ef(e[t])}}function rs(e,t){var l=e.stateNode;if(l===null)return null;var a=l[mt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var yl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ur=!1;if(yl)try{var cs={};Object.defineProperty(cs,"passive",{get:function(){ur=!0}}),window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{ur=!1}var Gl=null,ir=null,bu=null;function Tf(){if(bu)return bu;var e,t=ir,l=t.length,a,s="value"in Gl?Gl.value:Gl.textContent,i=s.length;for(e=0;e<l&&t[e]===s[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===s[i-a];a++);return bu=s.slice(e,1<a?1-a:void 0)}function Su(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 ju(){return!0}function Of(){return!1}function yt(e){function t(l,a,s,i,f){this._reactName=l,this._targetInst=s,this.type=a,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ju:Of,this.isPropagationStopped=Of,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ju)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),t}var Oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=yt(Oa),os=g({},Oa,{view:0,detail:0}),tp=yt(os),rr,cr,fs,Eu=g({},os,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fr,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!==fs&&(fs&&e.type==="mousemove"?(rr=e.screenX-fs.screenX,cr=e.screenY-fs.screenY):cr=rr=0,fs=e),rr)},movementY:function(e){return"movementY"in e?e.movementY:cr}}),Rf=yt(Eu),lp=g({},Eu,{dataTransfer:0}),ap=yt(lp),np=g({},os,{relatedTarget:0}),or=yt(np),sp=g({},Oa,{animationName:0,elapsedTime:0,pseudoElement:0}),up=yt(sp),ip=g({},Oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rp=yt(ip),cp=g({},Oa,{data:0}),Af=yt(cp),op={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fp={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"},dp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dp[e])?!!t[e]:!1}function fr(){return hp}var mp=g({},os,{key:function(e){if(e.key){var t=op[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Su(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fr,charCode:function(e){return e.type==="keypress"?Su(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Su(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yp=yt(mp),vp=g({},Eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mf=yt(vp),pp=g({},os,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fr}),gp=yt(pp),xp=g({},Oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),bp=yt(xp),Sp=g({},Eu,{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}),jp=yt(Sp),Np=g({},Oa,{newState:0,oldState:0}),Ep=yt(Np),Cp=[9,13,27,32],dr=yl&&"CompositionEvent"in window,ds=null;yl&&"documentMode"in document&&(ds=document.documentMode);var Tp=yl&&"TextEvent"in window&&!ds,zf=yl&&(!dr||ds&&8<ds&&11>=ds),_f=" ",Df=!1;function Uf(e,t){switch(e){case"keyup":return Cp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fn=!1;function Op(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(Df=!0,_f);case"textInput":return e=t.data,e===_f&&Df?null:e;default:return null}}function Rp(e,t){if(fn)return e==="compositionend"||!dr&&Uf(e,t)?(e=Tf(),bu=ir=Gl=null,fn=!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 zf&&t.locale!=="ko"?null:t.data;default:return null}}var Ap={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 Hf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ap[e.type]:t==="textarea"}function qf(e,t,l,a){cn?on?on.push(a):on=[a]:cn=a,t=hi(t,"onChange"),0<t.length&&(l=new Nu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var hs=null,ms=null;function Mp(e){xm(e,0)}function Cu(e){var t=is(e);if(gf(t))return e}function Bf(e,t){if(e==="change")return t}var Qf=!1;if(yl){var hr;if(yl){var mr="oninput"in document;if(!mr){var Lf=document.createElement("div");Lf.setAttribute("oninput","return;"),mr=typeof Lf.oninput=="function"}hr=mr}else hr=!1;Qf=hr&&(!document.documentMode||9<document.documentMode)}function Yf(){hs&&(hs.detachEvent("onpropertychange",Gf),ms=hs=null)}function Gf(e){if(e.propertyName==="value"&&Cu(ms)){var t=[];qf(t,ms,e,nr(e)),Cf(Mp,t)}}function zp(e,t,l){e==="focusin"?(Yf(),hs=t,ms=l,hs.attachEvent("onpropertychange",Gf)):e==="focusout"&&Yf()}function _p(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cu(ms)}function Dp(e,t){if(e==="click")return Cu(t)}function Up(e,t){if(e==="input"||e==="change")return Cu(t)}function wp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:wp;function ys(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var s=l[a];if(!Zi.call(t,s)||!At(e[s],t[s]))return!1}return!0}function Xf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kf(e,t){var l=Xf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Xf(l)}}function Zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=gu(e.document)}return t}function yr(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 Hp=yl&&"documentMode"in document&&11>=document.documentMode,dn=null,vr=null,vs=null,pr=!1;function kf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;pr||dn==null||dn!==gu(a)||(a=dn,"selectionStart"in a&&yr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),vs&&ys(vs,a)||(vs=a,a=hi(vr,"onSelect"),0<a.length&&(t=new Nu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=dn)))}function Ra(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var hn={animationend:Ra("Animation","AnimationEnd"),animationiteration:Ra("Animation","AnimationIteration"),animationstart:Ra("Animation","AnimationStart"),transitionrun:Ra("Transition","TransitionRun"),transitionstart:Ra("Transition","TransitionStart"),transitioncancel:Ra("Transition","TransitionCancel"),transitionend:Ra("Transition","TransitionEnd")},gr={},Jf={};yl&&(Jf=document.createElement("div").style,"AnimationEvent"in window||(delete hn.animationend.animation,delete hn.animationiteration.animation,delete hn.animationstart.animation),"TransitionEvent"in window||delete hn.transitionend.transition);function Aa(e){if(gr[e])return gr[e];if(!hn[e])return e;var t=hn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Jf)return gr[e]=t[l];return e}var Ff=Aa("animationend"),$f=Aa("animationiteration"),Wf=Aa("animationstart"),qp=Aa("transitionrun"),Bp=Aa("transitionstart"),Qp=Aa("transitioncancel"),If=Aa("transitionend"),Pf=new Map,xr="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(" ");xr.push("scrollEnd");function It(e,t){Pf.set(e,t),Ta(t,[e])}var Tu=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)},Lt=[],mn=0,br=0;function Ou(){for(var e=mn,t=br=mn=0;t<e;){var l=Lt[t];Lt[t++]=null;var a=Lt[t];Lt[t++]=null;var s=Lt[t];Lt[t++]=null;var i=Lt[t];if(Lt[t++]=null,a!==null&&s!==null){var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}i!==0&&ed(l,s,i)}}function Ru(e,t,l,a){Lt[mn++]=e,Lt[mn++]=t,Lt[mn++]=l,Lt[mn++]=a,br|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Sr(e,t,l,a){return Ru(e,t,l,a),Au(e)}function Ma(e,t){return Ru(e,null,null,t),Au(e)}function ed(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var s=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(s=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,s&&t!==null&&(s=31-Rt(l),e=i.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=l|536870912),i):null}function Au(e){if(50<Bs)throw Bs=0,Mc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var yn={};function Lp(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,l,a){return new Lp(e,t,l,a)}function jr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vl(e,t){var l=e.alternate;return l===null?(l=Mt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function td(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Mu(e,t,l,a,s,i){var f=0;if(a=e,typeof e=="function")jr(e)&&(f=1);else if(typeof e=="string")f=Z0(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Mt(31,l,t,s),e.elementType=fe,e.lanes=i,e;case O:return za(l.children,s,i,t);case Q:f=8,s|=24;break;case w:return e=Mt(12,l,t,s|2),e.elementType=w,e.lanes=i,e;case J:return e=Mt(13,l,t,s),e.elementType=J,e.lanes=i,e;case Z:return e=Mt(19,l,t,s),e.elementType=Z,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:f=10;break e;case Y:f=9;break e;case q:f=11;break e;case $:f=14;break e;case ee:f=16,a=null;break e}f=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Mt(f,l,t,s),t.elementType=e,t.type=a,t.lanes=i,t}function za(e,t,l,a){return e=Mt(7,e,a,t),e.lanes=l,e}function Nr(e,t,l){return e=Mt(6,e,null,t),e.lanes=l,e}function ld(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function Er(e,t,l){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ad=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var l=ad.get(e);return l!==void 0?l:(t={value:e,source:t,stack:tf(t)},ad.set(e,t),t)}return{value:e,source:t,stack:tf(t)}}var vn=[],pn=0,zu=null,ps=0,Gt=[],Xt=0,Xl=null,nl=1,sl="";function pl(e,t){vn[pn++]=ps,vn[pn++]=zu,zu=e,ps=t}function nd(e,t,l){Gt[Xt++]=nl,Gt[Xt++]=sl,Gt[Xt++]=Xl,Xl=e;var a=nl;e=sl;var s=32-Rt(a)-1;a&=~(1<<s),l+=1;var i=32-Rt(t)+s;if(30<i){var f=s-s%5;i=(a&(1<<f)-1).toString(32),a>>=f,s-=f,nl=1<<32-Rt(t)+s|l<<s|a,sl=i+e}else nl=1<<i|l<<s|a,sl=e}function Cr(e){e.return!==null&&(pl(e,1),nd(e,1,0))}function Tr(e){for(;e===zu;)zu=vn[--pn],vn[pn]=null,ps=vn[--pn],vn[pn]=null;for(;e===Xl;)Xl=Gt[--Xt],Gt[Xt]=null,sl=Gt[--Xt],Gt[Xt]=null,nl=Gt[--Xt],Gt[Xt]=null}function sd(e,t){Gt[Xt++]=nl,Gt[Xt++]=sl,Gt[Xt++]=Xl,nl=t.id,sl=t.overflow,Xl=e}var at=null,_e=null,ve=!1,Kl=null,Kt=!1,Or=Error(c(519));function Zl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gs(Yt(t,e)),Or}function ud(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[lt]=e,t[mt]=a,l){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(l=0;l<Ls.length;l++)he(Ls[l],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),xf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Sf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Nm(t.textContent,l)?(a.popover!=null&&(he("beforetoggle",t),he("toggle",t)),a.onScroll!=null&&he("scroll",t),a.onScrollEnd!=null&&he("scrollend",t),a.onClick!=null&&(t.onclick=ml),t=!0):t=!1,t||Zl(e,!0)}function id(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:at=at.return}}function gn(e){if(e!==at)return!1;if(!ve)return id(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Zc(e.type,e.memoizedProps)),l=!l),l&&_e&&Zl(e),id(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=_m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=_m(e)}else t===27?(t=_e,sa(e.type)?(e=$c,$c=null,_e=e):_e=t):_e=at?Vt(e.stateNode.nextSibling):null;return!0}function _a(){_e=at=null,ve=!1}function Rr(){var e=Kl;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Kl=null),e}function gs(e){Kl===null?Kl=[e]:Kl.push(e)}var Ar=C(null),Da=null,gl=null;function Vl(e,t,l){F(Ar,t._currentValue),t._currentValue=l}function xl(e){e._currentValue=Ar.current,G(Ar)}function Mr(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function zr(e,t,l,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var i=s.dependencies;if(i!==null){var f=s.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=s;for(var S=0;S<t.length;S++)if(m.context===t[S]){i.lanes|=l,m=i.alternate,m!==null&&(m.lanes|=l),Mr(i.return,l,e),a||(f=null);break e}i=m.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(c(341));f.lanes|=l,i=f.alternate,i!==null&&(i.lanes|=l),Mr(f,l,e),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===e){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function xn(e,t,l,a){e=null;for(var s=t,i=!1;s!==null;){if(!i){if((s.flags&524288)!==0)i=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var m=s.type;At(s.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(s===xe.current){if(f=s.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Zs):e=[Zs])}s=s.return}e!==null&&zr(t,e,l,a),t.flags|=262144}function _u(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ua(e){Da=e,gl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return rd(Da,e)}function Du(e,t){return Da===null&&Ua(e),rd(e,t)}function rd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},gl===null){if(e===null)throw Error(c(308));gl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gl=gl.next=t;return l}var Yp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Gp=n.unstable_scheduleCallback,Xp=n.unstable_NormalPriority,Ze={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _r(){return{controller:new Yp,data:new Map,refCount:0}}function xs(e){e.refCount--,e.refCount===0&&Gp(Xp,function(){e.controller.abort()})}var bs=null,Dr=0,bn=0,Sn=null;function Kp(e,t){if(bs===null){var l=bs=[];Dr=0,bn=Hc(),Sn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Dr++,t.then(cd,cd),t}function cd(){if(--Dr===0&&bs!==null){Sn!==null&&(Sn.status="fulfilled");var e=bs;bs=null,bn=0,Sn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Zp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),a}var od=B.S;B.S=function(e,t){kh=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kp(e,t),od!==null&&od(e,t)};var wa=C(null);function Ur(){var e=wa.current;return e!==null?e:ze.pooledCache}function Uu(e,t){t===null?F(wa,wa.current):F(wa,t.pool)}function fd(){var e=Ur();return e===null?null:{parent:Ze._currentValue,pool:e}}var jn=Error(c(460)),wr=Error(c(474)),wu=Error(c(542)),Hu={then:function(){}};function dd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function hd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ml,ml),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yd(e),e;default:if(typeof t.status=="string")t.then(ml,ml);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yd(e),e}throw qa=t,jn}}function Ha(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(qa=l,jn):l}}var qa=null;function md(){if(qa===null)throw Error(c(459));var e=qa;return qa=null,e}function yd(e){if(e===jn||e===wu)throw Error(c(483))}var Nn=null,Ss=0;function qu(e){var t=Ss;return Ss+=1,Nn===null&&(Nn=[]),hd(Nn,e,t)}function js(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Bu(e,t){throw t.$$typeof===_?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function vd(e){function t(T,E){if(e){var A=T.deletions;A===null?(T.deletions=[E],T.flags|=16):A.push(E)}}function l(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function a(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function s(T,E){return T=vl(T,E),T.index=0,T.sibling=null,T}function i(T,E,A){return T.index=A,e?(A=T.alternate,A!==null?(A=A.index,A<E?(T.flags|=67108866,E):A):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function f(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,E,A,L){return E===null||E.tag!==6?(E=Nr(A,T.mode,L),E.return=T,E):(E=s(E,A),E.return=T,E)}function S(T,E,A,L){var ae=A.type;return ae===O?H(T,E,A.props.children,L,A.key):E!==null&&(E.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ee&&Ha(ae)===E.type)?(E=s(E,A.props),js(E,A),E.return=T,E):(E=Mu(A.type,A.key,A.props,null,T.mode,L),js(E,A),E.return=T,E)}function M(T,E,A,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==A.containerInfo||E.stateNode.implementation!==A.implementation?(E=Er(A,T.mode,L),E.return=T,E):(E=s(E,A.children||[]),E.return=T,E)}function H(T,E,A,L,ae){return E===null||E.tag!==7?(E=za(A,T.mode,L,ae),E.return=T,E):(E=s(E,A),E.return=T,E)}function X(T,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Nr(""+E,T.mode,A),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case D:return A=Mu(E.type,E.key,E.props,null,T.mode,A),js(A,E),A.return=T,A;case K:return E=Er(E,T.mode,A),E.return=T,E;case ee:return E=Ha(E),X(T,E,A)}if(We(E)||Ye(E))return E=za(E,T.mode,A,null),E.return=T,E;if(typeof E.then=="function")return X(T,qu(E),A);if(E.$$typeof===R)return X(T,Du(T,E),A);Bu(T,E)}return null}function z(T,E,A,L){var ae=E!==null?E.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return ae!==null?null:m(T,E,""+A,L);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case D:return A.key===ae?S(T,E,A,L):null;case K:return A.key===ae?M(T,E,A,L):null;case ee:return A=Ha(A),z(T,E,A,L)}if(We(A)||Ye(A))return ae!==null?null:H(T,E,A,L,null);if(typeof A.then=="function")return z(T,E,qu(A),L);if(A.$$typeof===R)return z(T,E,Du(T,A),L);Bu(T,A)}return null}function U(T,E,A,L,ae){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return T=T.get(A)||null,m(E,T,""+L,ae);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case D:return T=T.get(L.key===null?A:L.key)||null,S(E,T,L,ae);case K:return T=T.get(L.key===null?A:L.key)||null,M(E,T,L,ae);case ee:return L=Ha(L),U(T,E,A,L,ae)}if(We(L)||Ye(L))return T=T.get(A)||null,H(E,T,L,ae,null);if(typeof L.then=="function")return U(T,E,A,qu(L),ae);if(L.$$typeof===R)return U(T,E,A,Du(E,L),ae);Bu(E,L)}return null}function I(T,E,A,L){for(var ae=null,be=null,P=E,ce=E=0,ye=null;P!==null&&ce<A.length;ce++){P.index>ce?(ye=P,P=null):ye=P.sibling;var Se=z(T,P,A[ce],L);if(Se===null){P===null&&(P=ye);break}e&&P&&Se.alternate===null&&t(T,P),E=i(Se,E,ce),be===null?ae=Se:be.sibling=Se,be=Se,P=ye}if(ce===A.length)return l(T,P),ve&&pl(T,ce),ae;if(P===null){for(;ce<A.length;ce++)P=X(T,A[ce],L),P!==null&&(E=i(P,E,ce),be===null?ae=P:be.sibling=P,be=P);return ve&&pl(T,ce),ae}for(P=a(P);ce<A.length;ce++)ye=U(P,T,ce,A[ce],L),ye!==null&&(e&&ye.alternate!==null&&P.delete(ye.key===null?ce:ye.key),E=i(ye,E,ce),be===null?ae=ye:be.sibling=ye,be=ye);return e&&P.forEach(function(oa){return t(T,oa)}),ve&&pl(T,ce),ae}function ne(T,E,A,L){if(A==null)throw Error(c(151));for(var ae=null,be=null,P=E,ce=E=0,ye=null,Se=A.next();P!==null&&!Se.done;ce++,Se=A.next()){P.index>ce?(ye=P,P=null):ye=P.sibling;var oa=z(T,P,Se.value,L);if(oa===null){P===null&&(P=ye);break}e&&P&&oa.alternate===null&&t(T,P),E=i(oa,E,ce),be===null?ae=oa:be.sibling=oa,be=oa,P=ye}if(Se.done)return l(T,P),ve&&pl(T,ce),ae;if(P===null){for(;!Se.done;ce++,Se=A.next())Se=X(T,Se.value,L),Se!==null&&(E=i(Se,E,ce),be===null?ae=Se:be.sibling=Se,be=Se);return ve&&pl(T,ce),ae}for(P=a(P);!Se.done;ce++,Se=A.next())Se=U(P,T,ce,Se.value,L),Se!==null&&(e&&Se.alternate!==null&&P.delete(Se.key===null?ce:Se.key),E=i(Se,E,ce),be===null?ae=Se:be.sibling=Se,be=Se);return e&&P.forEach(function(lg){return t(T,lg)}),ve&&pl(T,ce),ae}function Me(T,E,A,L){if(typeof A=="object"&&A!==null&&A.type===O&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case D:e:{for(var ae=A.key;E!==null;){if(E.key===ae){if(ae=A.type,ae===O){if(E.tag===7){l(T,E.sibling),L=s(E,A.props.children),L.return=T,T=L;break e}}else if(E.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ee&&Ha(ae)===E.type){l(T,E.sibling),L=s(E,A.props),js(L,A),L.return=T,T=L;break e}l(T,E);break}else t(T,E);E=E.sibling}A.type===O?(L=za(A.props.children,T.mode,L,A.key),L.return=T,T=L):(L=Mu(A.type,A.key,A.props,null,T.mode,L),js(L,A),L.return=T,T=L)}return f(T);case K:e:{for(ae=A.key;E!==null;){if(E.key===ae)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){l(T,E.sibling),L=s(E,A.children||[]),L.return=T,T=L;break e}else{l(T,E);break}else t(T,E);E=E.sibling}L=Er(A,T.mode,L),L.return=T,T=L}return f(T);case ee:return A=Ha(A),Me(T,E,A,L)}if(We(A))return I(T,E,A,L);if(Ye(A)){if(ae=Ye(A),typeof ae!="function")throw Error(c(150));return A=ae.call(A),ne(T,E,A,L)}if(typeof A.then=="function")return Me(T,E,qu(A),L);if(A.$$typeof===R)return Me(T,E,Du(T,A),L);Bu(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(l(T,E.sibling),L=s(E,A),L.return=T,T=L):(l(T,E),L=Nr(A,T.mode,L),L.return=T,T=L),f(T)):l(T,E)}return function(T,E,A,L){try{Ss=0;var ae=Me(T,E,A,L);return Nn=null,ae}catch(P){if(P===jn||P===wu)throw P;var be=Mt(29,P,null,T.mode);return be.lanes=L,be.return=T,be}finally{}}}var Ba=vd(!0),pd=vd(!1),kl=!1;function Hr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qr(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 Jl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ne&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Au(e),ed(e,null,l),t}return Ru(e,a,t,l),Au(e)}function Ns(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,rf(e,l)}}function Br(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var s=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?s=i=f:i=i.next=f,l=l.next}while(l!==null);i===null?s=i=t:i=i.next=t}else s=i=t;l={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Qr=!1;function Es(){if(Qr){var e=Sn;if(e!==null)throw e}}function Cs(e,t,l,a){Qr=!1;var s=e.updateQueue;kl=!1;var i=s.firstBaseUpdate,f=s.lastBaseUpdate,m=s.shared.pending;if(m!==null){s.shared.pending=null;var S=m,M=S.next;S.next=null,f===null?i=M:f.next=M,f=S;var H=e.alternate;H!==null&&(H=H.updateQueue,m=H.lastBaseUpdate,m!==f&&(m===null?H.firstBaseUpdate=M:m.next=M,H.lastBaseUpdate=S))}if(i!==null){var X=s.baseState;f=0,H=M=S=null,m=i;do{var z=m.lane&-536870913,U=z!==m.lane;if(U?(me&z)===z:(a&z)===z){z!==0&&z===bn&&(Qr=!0),H!==null&&(H=H.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var I=e,ne=m;z=t;var Me=l;switch(ne.tag){case 1:if(I=ne.payload,typeof I=="function"){X=I.call(Me,X,z);break e}X=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ne.payload,z=typeof I=="function"?I.call(Me,X,z):I,z==null)break e;X=g({},X,z);break e;case 2:kl=!0}}z=m.callback,z!==null&&(e.flags|=64,U&&(e.flags|=8192),U=s.callbacks,U===null?s.callbacks=[z]:U.push(z))}else U={lane:z,tag:m.tag,payload:m.payload,callback:m.callback,next:null},H===null?(M=H=U,S=X):H=H.next=U,f|=z;if(m=m.next,m===null){if(m=s.shared.pending,m===null)break;U=m,m=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);H===null&&(S=X),s.baseState=S,s.firstBaseUpdate=M,s.lastBaseUpdate=H,i===null&&(s.shared.lanes=0),ea|=f,e.lanes=f,e.memoizedState=X}}function gd(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function xd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)gd(l[e],t)}var En=C(null),Qu=C(0);function bd(e,t){e=Rl,F(Qu,e),F(En,t),Rl=e|t.baseLanes}function Lr(){F(Qu,Rl),F(En,En.current)}function Yr(){Rl=Qu.current,G(En),G(Qu)}var zt=C(null),Zt=null;function $l(e){var t=e.alternate;F(Xe,Xe.current&1),F(zt,e),Zt===null&&(t===null||En.current!==null||t.memoizedState!==null)&&(Zt=e)}function Gr(e){F(Xe,Xe.current),F(zt,e),Zt===null&&(Zt=e)}function Sd(e){e.tag===22?(F(Xe,Xe.current),F(zt,e),Zt===null&&(Zt=e)):Wl()}function Wl(){F(Xe,Xe.current),F(zt,zt.current)}function _t(e){G(zt),Zt===e&&(Zt=null),G(Xe)}var Xe=C(0);function Lu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Jc(l)||Fc(l)))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 bl=0,re=null,Re=null,Ve=null,Yu=!1,Cn=!1,Qa=!1,Gu=0,Ts=0,Tn=null,Vp=0;function qe(){throw Error(c(321))}function Xr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!At(e[l],t[l]))return!1;return!0}function Kr(e,t,l,a,s,i){return bl=i,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?nh:sc,Qa=!1,i=l(a,s),Qa=!1,Cn&&(i=Nd(t,l,a,s)),jd(e),i}function jd(e){B.H=As;var t=Re!==null&&Re.next!==null;if(bl=0,Ve=Re=re=null,Yu=!1,Ts=0,Tn=null,t)throw Error(c(300));e===null||ke||(e=e.dependencies,e!==null&&_u(e)&&(ke=!0))}function Nd(e,t,l,a){re=e;var s=0;do{if(Cn&&(Tn=null),Ts=0,Cn=!1,25<=s)throw Error(c(301));if(s+=1,Ve=Re=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}B.H=sh,i=t(l,a)}while(Cn);return i}function kp(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Os(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(re.flags|=1024),t}function Zr(){var e=Gu!==0;return Gu=0,e}function Vr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function kr(e){if(Yu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yu=!1}bl=0,Ve=Re=re=null,Cn=!1,Ts=Gu=0,Tn=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?re.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Ke(){if(Re===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ve===null?re.memoizedState:Ve.next;if(t!==null)Ve=t,Re=e;else{if(e===null)throw re.alternate===null?Error(c(467)):Error(c(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ve===null?re.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Os(e){var t=Ts;return Ts+=1,Tn===null&&(Tn=[]),e=hd(Tn,e,t),t=re,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?nh:sc),e}function Ku(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Os(e);if(e.$$typeof===R)return nt(e)}throw Error(c(438,String(e)))}function Jr(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=re.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Xu(),re.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=je;return t.index++,l}function Sl(e,t){return typeof t=="function"?t(e):t}function Zu(e){var t=Ke();return Fr(t,Re,e)}function Fr(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var s=e.baseQueue,i=a.pending;if(i!==null){if(s!==null){var f=s.next;s.next=i.next,i.next=f}t.baseQueue=s=i,a.pending=null}if(i=e.baseState,s===null)e.memoizedState=i;else{t=s.next;var m=f=null,S=null,M=t,H=!1;do{var X=M.lane&-536870913;if(X!==M.lane?(me&X)===X:(bl&X)===X){var z=M.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),X===bn&&(H=!0);else if((bl&z)===z){M=M.next,z===bn&&(H=!0);continue}else X={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(m=S=X,f=i):S=S.next=X,re.lanes|=z,ea|=z;X=M.action,Qa&&l(i,X),i=M.hasEagerState?M.eagerState:l(i,X)}else z={lane:X,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(m=S=z,f=i):S=S.next=z,re.lanes|=X,ea|=X;M=M.next}while(M!==null&&M!==t);if(S===null?f=i:S.next=m,!At(i,e.memoizedState)&&(ke=!0,H&&(l=Sn,l!==null)))throw l;e.memoizedState=i,e.baseState=f,e.baseQueue=S,a.lastRenderedState=i}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function $r(e){var t=Ke(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,s=l.pending,i=t.memoizedState;if(s!==null){l.pending=null;var f=s=s.next;do i=e(i,f.action),f=f.next;while(f!==s);At(i,t.memoizedState)||(ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Ed(e,t,l){var a=re,s=Ke(),i=ve;if(i){if(l===void 0)throw Error(c(407));l=l()}else l=t();var f=!At((Re||s).memoizedState,l);if(f&&(s.memoizedState=l,ke=!0),s=s.queue,Pr(Od.bind(null,a,s,e),[e]),s.getSnapshot!==t||f||Ve!==null&&Ve.memoizedState.tag&1){if(a.flags|=2048,On(9,{destroy:void 0},Td.bind(null,a,s,l,t),null),ze===null)throw Error(c(349));i||(bl&127)!==0||Cd(a,t,l)}return l}function Cd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=Xu(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Td(e,t,l,a){t.value=l,t.getSnapshot=a,Rd(t)&&Ad(e)}function Od(e,t,l){return l(function(){Rd(t)&&Ad(e)})}function Rd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!At(e,l)}catch{return!0}}function Ad(e){var t=Ma(e,2);t!==null&&bt(t,e,2)}function Wr(e){var t=ft();if(typeof e=="function"){var l=e;if(e=l(),Qa){Ll(!0);try{l()}finally{Ll(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:e},t}function Md(e,t,l,a){return e.baseState=l,Fr(e,Re,typeof a=="function"?a:Sl)}function Jp(e,t,l,a,s){if(Ju(e))throw Error(c(485));if(e=t.action,e!==null){var i={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};B.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,zd(t,i)):(i.next=l.next,t.pending=l.next=i)}}function zd(e,t){var l=t.action,a=t.payload,s=e.state;if(t.isTransition){var i=B.T,f={};B.T=f;try{var m=l(s,a),S=B.S;S!==null&&S(f,m),_d(e,t,m)}catch(M){Ir(e,t,M)}finally{i!==null&&f.types!==null&&(i.types=f.types),B.T=i}}else try{i=l(s,a),_d(e,t,i)}catch(M){Ir(e,t,M)}}function _d(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Dd(e,t,a)},function(a){return Ir(e,t,a)}):Dd(e,t,l)}function Dd(e,t,l){t.status="fulfilled",t.value=l,Ud(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,zd(e,l)))}function Ir(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ud(t),t=t.next;while(t!==a)}e.action=null}function Ud(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function Hd(e,t){if(ve){var l=ze.formState;if(l!==null){e:{var a=re;if(ve){if(_e){t:{for(var s=_e,i=Kt;s.nodeType!==8;){if(!i){s=null;break t}if(s=Vt(s.nextSibling),s===null){s=null;break t}}i=s.data,s=i==="F!"||i==="F"?s:null}if(s){_e=Vt(s.nextSibling),a=s.data==="F!";break e}}Zl(a)}a=!1}a&&(t=l[0])}}return l=ft(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},l.queue=a,l=th.bind(null,re,a),a.dispatch=l,a=Wr(!1),i=nc.bind(null,re,!1,a.queue),a=ft(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,l=Jp.bind(null,re,s,i,l),s.dispatch=l,a.memoizedState=e,[t,l,!1]}function qd(e){var t=Ke();return Bd(t,Re,e)}function Bd(e,t,l){if(t=Fr(e,t,wd)[0],e=Zu(Sl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Os(t)}catch(f){throw f===jn?wu:f}else a=t;t=Ke();var s=t.queue,i=s.dispatch;return l!==t.memoizedState&&(re.flags|=2048,On(9,{destroy:void 0},Fp.bind(null,s,l),null)),[a,i,e]}function Fp(e,t){e.action=t}function Qd(e){var t=Ke(),l=Re;if(l!==null)return Bd(t,l,e);Ke(),t=t.memoizedState,l=Ke();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function On(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=Xu(),re.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Ld(){return Ke().memoizedState}function Vu(e,t,l,a){var s=ft();re.flags|=e,s.memoizedState=On(1|t,{destroy:void 0},l,a===void 0?null:a)}function ku(e,t,l,a){var s=Ke();a=a===void 0?null:a;var i=s.memoizedState.inst;Re!==null&&a!==null&&Xr(a,Re.memoizedState.deps)?s.memoizedState=On(t,i,l,a):(re.flags|=e,s.memoizedState=On(1|t,i,l,a))}function Yd(e,t){Vu(8390656,8,e,t)}function Pr(e,t){ku(2048,8,e,t)}function $p(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=Xu(),re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Gd(e){var t=Ke().memoizedState;return $p({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Xd(e,t){return ku(4,2,e,t)}function Kd(e,t){return ku(4,4,e,t)}function Zd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vd(e,t,l){l=l!=null?l.concat([e]):null,ku(4,4,Zd.bind(null,t,e),l)}function ec(){}function kd(e,t){var l=Ke();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Xr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Jd(e,t){var l=Ke();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Xr(t,a[1]))return a[0];if(a=e(),Qa){Ll(!0);try{e()}finally{Ll(!1)}}return l.memoizedState=[a,t],a}function tc(e,t,l){return l===void 0||(bl&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Fh(),re.lanes|=e,ea|=e,l)}function Fd(e,t,l,a){return At(l,t)?l:En.current!==null?(e=tc(e,l,a),At(e,t)||(ke=!0),e):(bl&42)===0||(bl&1073741824)!==0&&(me&261930)===0?(ke=!0,e.memoizedState=l):(e=Fh(),re.lanes|=e,ea|=e,t)}function $d(e,t,l,a,s){var i=k.p;k.p=i!==0&&8>i?i:8;var f=B.T,m={};B.T=m,nc(e,!1,t,l);try{var S=s(),M=B.S;if(M!==null&&M(m,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=Zp(S,a);Rs(e,t,H,wt(e))}else Rs(e,t,a,wt(e))}catch(X){Rs(e,t,{then:function(){},status:"rejected",reason:X},wt())}finally{k.p=i,f!==null&&m.types!==null&&(f.types=m.types),B.T=f}}function Wp(){}function lc(e,t,l,a){if(e.tag!==5)throw Error(c(476));var s=Wd(e).queue;$d(e,s,t,te,l===null?Wp:function(){return Id(e),l(a)})}function Wd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Id(e){var t=Wd(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},wt())}function ac(){return nt(Zs)}function Pd(){return Ke().memoizedState}function eh(){return Ke().memoizedState}function Ip(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=wt();e=Jl(l);var a=Fl(t,e,l);a!==null&&(bt(a,t,l),Ns(a,t,l)),t={cache:_r()},e.payload=t;return}t=t.return}}function Pp(e,t,l){var a=wt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ju(e)?lh(t,l):(l=Sr(e,t,l,a),l!==null&&(bt(l,e,a),ah(l,t,a)))}function th(e,t,l){var a=wt();Rs(e,t,l,a)}function Rs(e,t,l,a){var s={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ju(e))lh(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var f=t.lastRenderedState,m=i(f,l);if(s.hasEagerState=!0,s.eagerState=m,At(m,f))return Ru(e,t,s,0),ze===null&&Ou(),!1}catch{}finally{}if(l=Sr(e,t,s,a),l!==null)return bt(l,e,a),ah(l,t,a),!0}return!1}function nc(e,t,l,a){if(a={lane:2,revertLane:Hc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ju(e)){if(t)throw Error(c(479))}else t=Sr(e,l,a,2),t!==null&&bt(t,e,2)}function Ju(e){var t=e.alternate;return e===re||t!==null&&t===re}function lh(e,t){Cn=Yu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function ah(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,rf(e,l)}}var As={readContext:nt,use:Ku,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};As.useEffectEvent=qe;var nh={readContext:nt,use:Ku,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Yd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Vu(4194308,4,Zd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Vu(4194308,4,e,t)},useInsertionEffect:function(e,t){Vu(4,2,e,t)},useMemo:function(e,t){var l=ft();t=t===void 0?null:t;var a=e();if(Qa){Ll(!0);try{e()}finally{Ll(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ft();if(l!==void 0){var s=l(t);if(Qa){Ll(!0);try{l(t)}finally{Ll(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=Pp.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Wr(e);var t=e.queue,l=th.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ec,useDeferredValue:function(e,t){var l=ft();return tc(l,e,t)},useTransition:function(){var e=Wr(!1);return e=$d.bind(null,re,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=re,s=ft();if(ve){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),ze===null)throw Error(c(349));(me&127)!==0||Cd(a,t,l)}s.memoizedState=l;var i={value:l,getSnapshot:t};return s.queue=i,Yd(Od.bind(null,a,i,e),[e]),a.flags|=2048,On(9,{destroy:void 0},Td.bind(null,a,i,l,t),null),l},useId:function(){var e=ft(),t=ze.identifierPrefix;if(ve){var l=sl,a=nl;l=(a&~(1<<32-Rt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Gu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Vp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ac,useFormState:Hd,useActionState:Hd,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=nc.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Jr,useCacheRefresh:function(){return ft().memoizedState=Ip.bind(null,re)},useEffectEvent:function(e){var t=ft(),l={impl:e};return t.memoizedState=l,function(){if((Ne&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},sc={readContext:nt,use:Ku,useCallback:kd,useContext:nt,useEffect:Pr,useImperativeHandle:Vd,useInsertionEffect:Xd,useLayoutEffect:Kd,useMemo:Jd,useReducer:Zu,useRef:Ld,useState:function(){return Zu(Sl)},useDebugValue:ec,useDeferredValue:function(e,t){var l=Ke();return Fd(l,Re.memoizedState,e,t)},useTransition:function(){var e=Zu(Sl)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Os(e),t]},useSyncExternalStore:Ed,useId:Pd,useHostTransitionStatus:ac,useFormState:qd,useActionState:qd,useOptimistic:function(e,t){var l=Ke();return Md(l,Re,e,t)},useMemoCache:Jr,useCacheRefresh:eh};sc.useEffectEvent=Gd;var sh={readContext:nt,use:Ku,useCallback:kd,useContext:nt,useEffect:Pr,useImperativeHandle:Vd,useInsertionEffect:Xd,useLayoutEffect:Kd,useMemo:Jd,useReducer:$r,useRef:Ld,useState:function(){return $r(Sl)},useDebugValue:ec,useDeferredValue:function(e,t){var l=Ke();return Re===null?tc(l,e,t):Fd(l,Re.memoizedState,e,t)},useTransition:function(){var e=$r(Sl)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Os(e),t]},useSyncExternalStore:Ed,useId:Pd,useHostTransitionStatus:ac,useFormState:Qd,useActionState:Qd,useOptimistic:function(e,t){var l=Ke();return Re!==null?Md(l,Re,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Jr,useCacheRefresh:eh};sh.useEffectEvent=Gd;function uc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ic={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=wt(),s=Jl(a);s.payload=t,l!=null&&(s.callback=l),t=Fl(e,s,a),t!==null&&(bt(t,e,a),Ns(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=wt(),s=Jl(a);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=Fl(e,s,a),t!==null&&(bt(t,e,a),Ns(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=wt(),a=Jl(l);a.tag=2,t!=null&&(a.callback=t),t=Fl(e,a,l),t!==null&&(bt(t,e,l),Ns(t,e,l))}};function uh(e,t,l,a,s,i,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,f):t.prototype&&t.prototype.isPureReactComponent?!ys(l,a)||!ys(s,i):!0}function ih(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&ic.enqueueReplaceState(t,t.state,null)}function La(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function rh(e){Tu(e)}function ch(e){console.error(e)}function oh(e){Tu(e)}function Fu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function fh(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function rc(e,t,l){return l=Jl(l),l.tag=3,l.payload={element:null},l.callback=function(){Fu(e,t)},l}function dh(e){return e=Jl(e),e.tag=3,e}function hh(e,t,l,a){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var i=a.value;e.payload=function(){return s(i)},e.callback=function(){fh(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){fh(t,l,a),typeof s!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function e0(e,t,l,a,s){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&xn(t,l,s,!0),l=zt.current,l!==null){switch(l.tag){case 31:case 13:return Zt===null?ii():l.alternate===null&&Be===0&&(Be=3),l.flags&=-257,l.flags|=65536,l.lanes=s,a===Hu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Dc(e,a,s)),!1;case 22:return l.flags|=65536,a===Hu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Dc(e,a,s)),!1}throw Error(c(435,l.tag))}return Dc(e,a,s),ii(),!1}if(ve)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Or&&(e=Error(c(422),{cause:a}),gs(Yt(e,l)))):(a!==Or&&(t=Error(c(423),{cause:a}),gs(Yt(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Yt(a,l),s=rc(e.stateNode,a,s),Br(e,s),Be!==4&&(Be=2)),!1;var i=Error(c(520),{cause:a});if(i=Yt(i,l),qs===null?qs=[i]:qs.push(i),Be!==4&&(Be=2),t===null)return!0;a=Yt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=rc(l.stateNode,a,e),Br(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ta===null||!ta.has(i))))return l.flags|=65536,s&=-s,l.lanes|=s,s=dh(s),hh(s,e,l,a),Br(l,s),!1}l=l.return}while(l!==null);return!1}var cc=Error(c(461)),ke=!1;function st(e,t,l,a){t.child=e===null?pd(t,null,l,a):Ba(t,e.child,l,a)}function mh(e,t,l,a,s){l=l.render;var i=t.ref;if("ref"in a){var f={};for(var m in a)m!=="ref"&&(f[m]=a[m])}else f=a;return Ua(t),a=Kr(e,t,l,f,i,s),m=Zr(),e!==null&&!ke?(Vr(e,t,s),jl(e,t,s)):(ve&&m&&Cr(t),t.flags|=1,st(e,t,a,s),t.child)}function yh(e,t,l,a,s){if(e===null){var i=l.type;return typeof i=="function"&&!jr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,vh(e,t,i,a,s)):(e=Mu(l.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!pc(e,s)){var f=i.memoizedProps;if(l=l.compare,l=l!==null?l:ys,l(f,a)&&e.ref===t.ref)return jl(e,t,s)}return t.flags|=1,e=vl(i,a),e.ref=t.ref,e.return=t,t.child=e}function vh(e,t,l,a,s){if(e!==null){var i=e.memoizedProps;if(ys(i,a)&&e.ref===t.ref)if(ke=!1,t.pendingProps=a=i,pc(e,s))(e.flags&131072)!==0&&(ke=!0);else return t.lanes=e.lanes,jl(e,t,s)}return oc(e,t,l,a,s)}function ph(e,t,l,a){var s=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~i}else a=0,t.child=null;return gh(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Uu(t,i!==null?i.cachePool:null),i!==null?bd(t,i):Lr(),Sd(t);else return a=t.lanes=536870912,gh(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Uu(t,i.cachePool),bd(t,i),Wl(),t.memoizedState=null):(e!==null&&Uu(t,null),Lr(),Wl());return st(e,t,s,l),t.child}function Ms(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gh(e,t,l,a,s){var i=Ur();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Uu(t,null),Lr(),Sd(t),e!==null&&xn(e,t,a,!0),t.childLanes=s,null}function $u(e,t){return t=Iu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function xh(e,t,l){return Ba(t,e.child,null,l),e=$u(t,t.pendingProps),e.flags|=2,_t(t),t.memoizedState=null,e}function t0(e,t,l){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=$u(t,a),t.lanes=536870912,Ms(null,e);if(Gr(t),(e=_e)?(e=zm(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xl!==null?{id:nl,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},l=ld(e),l.return=t,t.child=l,at=t,_e=null)):e=null,e===null)throw Zl(t);return t.lanes=536870912,null}return $u(t,a)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(Gr(t),s)if(t.flags&256)t.flags&=-257,t=xh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(ke||xn(e,t,l,!1),s=(l&e.childLanes)!==0,ke||s){if(a=ze,a!==null&&(f=cf(a,l),f!==0&&f!==i.retryLane))throw i.retryLane=f,Ma(e,f),bt(a,e,f),cc;ii(),t=xh(e,t,l)}else e=i.treeContext,_e=Vt(f.nextSibling),at=t,ve=!0,Kl=null,Kt=!1,e!==null&&sd(t,e),t=$u(t,a),t.flags|=4096;return t}return e=vl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function oc(e,t,l,a,s){return Ua(t),l=Kr(e,t,l,a,void 0,s),a=Zr(),e!==null&&!ke?(Vr(e,t,s),jl(e,t,s)):(ve&&a&&Cr(t),t.flags|=1,st(e,t,l,s),t.child)}function bh(e,t,l,a,s,i){return Ua(t),t.updateQueue=null,l=Nd(t,a,l,s),jd(e),a=Zr(),e!==null&&!ke?(Vr(e,t,i),jl(e,t,i)):(ve&&a&&Cr(t),t.flags|=1,st(e,t,l,i),t.child)}function Sh(e,t,l,a,s){if(Ua(t),t.stateNode===null){var i=yn,f=l.contextType;typeof f=="object"&&f!==null&&(i=nt(f)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ic,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Hr(t),f=l.contextType,i.context=typeof f=="object"&&f!==null?nt(f):yn,i.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(uc(t,l,f,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&ic.enqueueReplaceState(i,i.state,null),Cs(t,a,i,s),Es(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,S=La(l,m);i.props=S;var M=i.context,H=l.contextType;f=yn,typeof H=="object"&&H!==null&&(f=nt(H));var X=l.getDerivedStateFromProps;H=typeof X=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,H||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||M!==f)&&ih(t,i,a,f),kl=!1;var z=t.memoizedState;i.state=z,Cs(t,a,i,s),Es(),M=t.memoizedState,m||z!==M||kl?(typeof X=="function"&&(uc(t,l,X,a),M=t.memoizedState),(S=kl||uh(t,l,S,a,z,M,f))?(H||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=M),i.props=a,i.state=M,i.context=f,a=S):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,qr(e,t),f=t.memoizedProps,H=La(l,f),i.props=H,X=t.pendingProps,z=i.context,M=l.contextType,S=yn,typeof M=="object"&&M!==null&&(S=nt(M)),m=l.getDerivedStateFromProps,(M=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==X||z!==S)&&ih(t,i,a,S),kl=!1,z=t.memoizedState,i.state=z,Cs(t,a,i,s),Es();var U=t.memoizedState;f!==X||z!==U||kl||e!==null&&e.dependencies!==null&&_u(e.dependencies)?(typeof m=="function"&&(uc(t,l,m,a),U=t.memoizedState),(H=kl||uh(t,l,H,a,z,U,S)||e!==null&&e.dependencies!==null&&_u(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,U,S),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,U,S)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=U),i.props=a,i.state=U,i.context=S,a=H):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Wu(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Ba(t,e.child,null,s),t.child=Ba(t,null,l,s)):st(e,t,l,s),t.memoizedState=i.state,e=t.child):e=jl(e,t,s),e}function jh(e,t,l,a){return _a(),t.flags|=256,st(e,t,l,a),t.child}var fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function dc(e){return{baseLanes:e,cachePool:fd()}}function hc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ut),e}function Nh(e,t,l){var a=t.pendingProps,s=!1,i=(t.flags&128)!==0,f;if((f=i)||(f=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),f&&(s=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(s?$l(t):Wl(),(e=_e)?(e=zm(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xl!==null?{id:nl,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},l=ld(e),l.return=t,t.child=l,at=t,_e=null)):e=null,e===null)throw Zl(t);return Fc(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,s?(Wl(),s=t.mode,m=Iu({mode:"hidden",children:m},s),a=za(a,s,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=dc(l),a.childLanes=hc(e,f,l),t.memoizedState=fc,Ms(null,a)):($l(t),mc(t,m))}var S=e.memoizedState;if(S!==null&&(m=S.dehydrated,m!==null)){if(i)t.flags&256?($l(t),t.flags&=-257,t=yc(e,t,l)):t.memoizedState!==null?(Wl(),t.child=e.child,t.flags|=128,t=null):(Wl(),m=a.fallback,s=t.mode,a=Iu({mode:"visible",children:a.children},s),m=za(m,s,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,Ba(t,e.child,null,l),a=t.child,a.memoizedState=dc(l),a.childLanes=hc(e,f,l),t.memoizedState=fc,t=Ms(null,a));else if($l(t),Fc(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var M=f.dgst;f=M,a=Error(c(419)),a.stack="",a.digest=f,gs({value:a,source:null,stack:null}),t=yc(e,t,l)}else if(ke||xn(e,t,l,!1),f=(l&e.childLanes)!==0,ke||f){if(f=ze,f!==null&&(a=cf(f,l),a!==0&&a!==S.retryLane))throw S.retryLane=a,Ma(e,a),bt(f,e,a),cc;Jc(m)||ii(),t=yc(e,t,l)}else Jc(m)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,_e=Vt(m.nextSibling),at=t,ve=!0,Kl=null,Kt=!1,e!==null&&sd(t,e),t=mc(t,a.children),t.flags|=4096);return t}return s?(Wl(),m=a.fallback,s=t.mode,S=e.child,M=S.sibling,a=vl(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,M!==null?m=vl(M,m):(m=za(m,s,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,Ms(null,a),a=t.child,m=e.child.memoizedState,m===null?m=dc(l):(s=m.cachePool,s!==null?(S=Ze._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=fd(),m={baseLanes:m.baseLanes|l,cachePool:s}),a.memoizedState=m,a.childLanes=hc(e,f,l),t.memoizedState=fc,Ms(e.child,a)):($l(t),l=e.child,e=l.sibling,l=vl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function mc(e,t){return t=Iu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Iu(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function yc(e,t,l){return Ba(t,e.child,null,l),e=mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Eh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Mr(e.return,t,l)}function vc(e,t,l,a,s,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:s,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=s,f.treeForkCount=i)}function Ch(e,t,l){var a=t.pendingProps,s=a.revealOrder,i=a.tail;a=a.children;var f=Xe.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,F(Xe,f),st(e,t,a,l),a=ve?ps:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eh(e,l,t);else if(e.tag===19)Eh(e,l,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(s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&Lu(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),vc(t,!1,s,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Lu(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}vc(t,!0,l,null,i,a);break;case"together":vc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function jl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(xn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=vl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=vl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function pc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&_u(e)))}function l0(e,t,l){switch(t.tag){case 3:tt(t,t.stateNode.containerInfo),Vl(t,Ze,e.memoizedState.cache),_a();break;case 27:case 5:ls(t);break;case 4:tt(t,t.stateNode.containerInfo);break;case 10:Vl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Gr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?($l(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Nh(e,t,l):($l(t),e=jl(e,t,l),e!==null?e.sibling:null);$l(t);break;case 19:var s=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(xn(e,t,l,!1),a=(l&t.childLanes)!==0),s){if(a)return Ch(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),F(Xe,Xe.current),a)break;return null;case 22:return t.lanes=0,ph(e,t,l,t.pendingProps);case 24:Vl(t,Ze,e.memoizedState.cache)}return jl(e,t,l)}function Th(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ke=!0;else{if(!pc(e,l)&&(t.flags&128)===0)return ke=!1,l0(e,t,l);ke=(e.flags&131072)!==0}else ke=!1,ve&&(t.flags&1048576)!==0&&nd(t,ps,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ha(t.elementType),t.type=e,typeof e=="function")jr(e)?(a=La(e,a),t.tag=1,t=Sh(null,t,e,a,l)):(t.tag=0,t=oc(null,t,e,a,l));else{if(e!=null){var s=e.$$typeof;if(s===q){t.tag=11,t=mh(null,t,e,a,l);break e}else if(s===$){t.tag=14,t=yh(null,t,e,a,l);break e}}throw t=it(e)||e,Error(c(306,t,""))}}return t;case 0:return oc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,s=La(a,t.pendingProps),Sh(e,t,a,s,l);case 3:e:{if(tt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var i=t.memoizedState;s=i.element,qr(e,t),Cs(t,a,null,l);var f=t.memoizedState;if(a=f.cache,Vl(t,Ze,a),a!==i.cache&&zr(t,[Ze],l,!0),Es(),a=f.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=jh(e,t,a,l);break e}else if(a!==s){s=Yt(Error(c(424)),t),gs(s),t=jh(e,t,a,l);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(_e=Vt(e.firstChild),at=t,ve=!0,Kl=null,Kt=!0,l=pd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(_a(),a===s){t=jl(e,t,l);break e}st(e,t,a,l)}t=t.child}return t;case 26:return Wu(e,t),e===null?(l=qm(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=mi(ue.current).createElement(l),a[lt]=t,a[mt]=e,ut(a,l,e),Ie(a),t.stateNode=a):t.memoizedState=qm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ls(t),e===null&&ve&&(a=t.stateNode=Um(t.type,t.pendingProps,ue.current),at=t,Kt=!0,s=_e,sa(t.type)?($c=s,_e=Vt(a.firstChild)):_e=s),st(e,t,t.pendingProps.children,l),Wu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((s=a=_e)&&(a=_0(a,t.type,t.pendingProps,Kt),a!==null?(t.stateNode=a,at=t,_e=Vt(a.firstChild),Kt=!1,s=!0):s=!1),s||Zl(t)),ls(t),s=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,a=i.children,Zc(s,i)?a=null:f!==null&&Zc(s,f)&&(t.flags|=32),t.memoizedState!==null&&(s=Kr(e,t,kp,null,null,l),Zs._currentValue=s),Wu(e,t),st(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=_e)&&(l=D0(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,at=t,_e=null,e=!0):e=!1),e||Zl(t)),null;case 13:return Nh(e,t,l);case 4:return tt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ba(t,null,a,l):st(e,t,a,l),t.child;case 11:return mh(e,t,t.type,t.pendingProps,l);case 7:return st(e,t,t.pendingProps,l),t.child;case 8:return st(e,t,t.pendingProps.children,l),t.child;case 12:return st(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Vl(t,t.type,a.value),st(e,t,a.children,l),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Ua(t),s=nt(s),a=a(s),t.flags|=1,st(e,t,a,l),t.child;case 14:return yh(e,t,t.type,t.pendingProps,l);case 15:return vh(e,t,t.type,t.pendingProps,l);case 19:return Ch(e,t,l);case 31:return t0(e,t,l);case 22:return ph(e,t,l,t.pendingProps);case 24:return Ua(t),a=nt(Ze),e===null?(s=Ur(),s===null&&(s=ze,i=_r(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=l),s=i),t.memoizedState={parent:a,cache:s},Hr(t),Vl(t,Ze,s)):((e.lanes&l)!==0&&(qr(e,t),Cs(t,null,null,l),Es()),s=e.memoizedState,i=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Vl(t,Ze,a)):(a=i.cache,Vl(t,Ze,a),a!==s.cache&&zr(t,[Ze],l,!0))),st(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Nl(e){e.flags|=4}function gc(e,t,l,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Ph())e.flags|=8192;else throw qa=Hu,wr}else e.flags&=-16777217}function Oh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gm(t))if(Ph())e.flags|=8192;else throw qa=Hu,wr}function Pu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sf():536870912,e.lanes|=t,zn|=t)}function zs(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function a0(e,t,l){var a=t.pendingProps;switch(Tr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xl(Ze),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(gn(t)?Nl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rr())),De(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(Nl(t),i!==null?(De(t),Oh(t,i)):(De(t),gc(t,s,null,a,l))):i?i!==e.memoizedState?(Nl(t),De(t),Oh(t,i)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Nl(t),De(t),gc(t,s,e,a,l)),null;case 27:if(ou(t),l=ue.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Nl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}e=V.current,gn(t)?ud(t):(e=Um(s,a,l),t.stateNode=e,Nl(t))}return De(t),null;case 5:if(ou(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Nl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}if(i=V.current,gn(t))ud(t);else{var f=mi(ue.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?f.createElement(s,{is:a.is}):f.createElement(s)}}i[lt]=t,i[mt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=i;e:switch(ut(i,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Nl(t)}}return De(t),gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Nl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=ue.current,gn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,s=at,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[lt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Nm(e.nodeValue,l)),e||Zl(t,!0)}else e=mi(e).createTextNode(a),e[lt]=t,t.stateNode=e}return De(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=gn(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[lt]=t}else _a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else l=Rr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(_t(t),t):(_t(t),null);if((t.flags&128)!==0)throw Error(c(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=gn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(c(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(c(317));s[lt]=t}else _a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),s=!1}else s=Rr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(_t(t),t):(_t(t),null)}return _t(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==s&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Pu(t,t.updateQueue),De(t),null);case 4:return Ge(),e===null&&Lc(t.stateNode.containerInfo),De(t),null;case 10:return xl(t.type),De(t),null;case 19:if(G(Xe),a=t.memoizedState,a===null)return De(t),null;if(s=(t.flags&128)!==0,i=a.rendering,i===null)if(s)zs(a,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Lu(e),i!==null){for(t.flags|=128,zs(a,!1),e=i.updateQueue,t.updateQueue=e,Pu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)td(l,e),l=l.sibling;return F(Xe,Xe.current&1|2),ve&&pl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Tt()>ni&&(t.flags|=128,s=!0,zs(a,!1),t.lanes=4194304)}else{if(!s)if(e=Lu(i),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Pu(t,e),zs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ve)return De(t),null}else 2*Tt()-a.renderingStartTime>ni&&l!==536870912&&(t.flags|=128,s=!0,zs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Tt(),e.sibling=null,l=Xe.current,F(Xe,s?l&1|2:l&1),ve&&pl(t,a.treeForkCount),e):(De(t),null);case 22:case 23:return _t(t),Yr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),l=t.updateQueue,l!==null&&Pu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&G(wa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),xl(Ze),De(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function n0(e,t){switch(Tr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xl(Ze),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ou(t),null;case 31:if(t.memoizedState!==null){if(_t(t),t.alternate===null)throw Error(c(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Xe),null;case 4:return Ge(),null;case 10:return xl(t.type),null;case 22:case 23:return _t(t),Yr(),e!==null&&G(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xl(Ze),null;case 25:return null;default:return null}}function Rh(e,t){switch(Tr(t),t.tag){case 3:xl(Ze),Ge();break;case 26:case 27:case 5:ou(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&_t(t);break;case 13:_t(t);break;case 19:G(Xe);break;case 10:xl(t.type);break;case 22:case 23:_t(t),Yr(),e!==null&&G(wa);break;case 24:xl(Ze)}}function _s(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var s=a.next;l=s;do{if((l.tag&e)===e){a=void 0;var i=l.create,f=l.inst;a=i(),f.destroy=a}l=l.next}while(l!==s)}}catch(m){Oe(t,t.return,m)}}function Il(e,t,l){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var i=s.next;a=i;do{if((a.tag&e)===e){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,s=t;var S=l,M=m;try{M()}catch(H){Oe(s,S,H)}}}a=a.next}while(a!==i)}}catch(H){Oe(t,t.return,H)}}function Ah(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{xd(t,l)}catch(a){Oe(e,e.return,a)}}}function Mh(e,t,l){l.props=La(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Oe(e,t,a)}}function Ds(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(s){Oe(e,t,s)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(s){Oe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){Oe(e,t,s)}else l.current=null}function zh(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(s){Oe(e,e.return,s)}}function xc(e,t,l){try{var a=e.stateNode;T0(a,e.type,l,t),a[mt]=t}catch(s){Oe(e,e.return,s)}}function _h(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_h(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&&sa(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 Sc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ml));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Sc(e,t,l),e=e.sibling;e!==null;)Sc(e,t,l),e=e.sibling}function ei(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ei(e,t,l),e=e.sibling;e!==null;)ei(e,t,l),e=e.sibling}function Dh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ut(t,a,l),t[lt]=e,t[mt]=l}catch(i){Oe(e,e.return,i)}}var El=!1,Je=!1,jc=!1,Uh=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function s0(e,t){if(e=e.containerInfo,Xc=Si,e=Vf(e),yr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var s=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var f=0,m=-1,S=-1,M=0,H=0,X=e,z=null;t:for(;;){for(var U;X!==l||s!==0&&X.nodeType!==3||(m=f+s),X!==i||a!==0&&X.nodeType!==3||(S=f+a),X.nodeType===3&&(f+=X.nodeValue.length),(U=X.firstChild)!==null;)z=X,X=U;for(;;){if(X===e)break t;if(z===l&&++M===s&&(m=f),z===i&&++H===a&&(S=f),(U=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=U}l=m===-1||S===-1?null:{start:m,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Kc={focusedElem:e,selectionRange:l},Si=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,i=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(l=0;l<e.length;l++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,s=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var I=La(l.type,s);e=a.getSnapshotBeforeUpdate(I,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ne){Oe(l,l.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)kc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":kc(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function wh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Tl(e,l),a&4&&_s(5,l);break;case 1:if(Tl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Oe(l,l.return,f)}else{var s=La(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Oe(l,l.return,f)}}a&64&&Ah(l),a&512&&Ds(l,l.return);break;case 3:if(Tl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{xd(e,t)}catch(f){Oe(l,l.return,f)}}break;case 27:t===null&&a&4&&Dh(l);case 26:case 5:Tl(e,l),t===null&&a&4&&zh(l),a&512&&Ds(l,l.return);break;case 12:Tl(e,l);break;case 31:Tl(e,l),a&4&&Bh(e,l);break;case 13:Tl(e,l),a&4&&Qh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=m0.bind(null,l),U0(e,l))));break;case 22:if(a=l.memoizedState!==null||El,!a){t=t!==null&&t.memoizedState!==null||Je,s=El;var i=Je;El=a,(Je=t)&&!i?Ol(e,l,(l.subtreeFlags&8772)!==0):Tl(e,l),El=s,Je=i}break;case 30:break;default:Tl(e,l)}}function Hh(e){var t=e.alternate;t!==null&&(e.alternate=null,Hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ii(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 Ue=null,vt=!1;function Cl(e,t,l){for(l=l.child;l!==null;)qh(e,t,l),l=l.sibling}function qh(e,t,l){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(as,l)}catch{}switch(l.tag){case 26:Je||ul(l,t),Cl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Je||ul(l,t);var a=Ue,s=vt;sa(l.type)&&(Ue=l.stateNode,vt=!1),Cl(e,t,l),Gs(l.stateNode),Ue=a,vt=s;break;case 5:Je||ul(l,t);case 6:if(a=Ue,s=vt,Ue=null,Cl(e,t,l),Ue=a,vt=s,Ue!==null)if(vt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(i){Oe(l,t,i)}else try{Ue.removeChild(l.stateNode)}catch(i){Oe(l,t,i)}break;case 18:Ue!==null&&(vt?(e=Ue,Am(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Qn(e)):Am(Ue,l.stateNode));break;case 4:a=Ue,s=vt,Ue=l.stateNode.containerInfo,vt=!0,Cl(e,t,l),Ue=a,vt=s;break;case 0:case 11:case 14:case 15:Il(2,l,t),Je||Il(4,l,t),Cl(e,t,l);break;case 1:Je||(ul(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Mh(l,t,a)),Cl(e,t,l);break;case 21:Cl(e,t,l);break;case 22:Je=(a=Je)||l.memoizedState!==null,Cl(e,t,l),Je=a;break;default:Cl(e,t,l)}}function Bh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Qn(e)}catch(l){Oe(t,t.return,l)}}}function Qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Qn(e)}catch(l){Oe(t,t.return,l)}}function u0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Uh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Uh),t;default:throw Error(c(435,e.tag))}}function ti(e,t){var l=u0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var s=y0.bind(null,e,a);a.then(s,s)}})}function pt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var s=l[a],i=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(sa(m.type)){Ue=m.stateNode,vt=!1;break e}break;case 5:Ue=m.stateNode,vt=!1;break e;case 3:case 4:Ue=m.stateNode.containerInfo,vt=!0;break e}m=m.return}if(Ue===null)throw Error(c(160));qh(i,f,s),Ue=null,vt=!1,i=s.alternate,i!==null&&(i.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Lh(t,e),t=t.sibling}var Pt=null;function Lh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),gt(e),a&4&&(Il(3,e,e.return),_s(3,e),Il(5,e,e.return));break;case 1:pt(t,e),gt(e),a&512&&(Je||l===null||ul(l,l.return)),a&64&&El&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var s=Pt;if(pt(t,e),gt(e),a&512&&(Je||l===null||ul(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":i=s.getElementsByTagName("title")[0],(!i||i[us]||i[lt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(a),s.head.insertBefore(i,s.querySelector("head > title"))),ut(i,a,l),i[lt]=e,Ie(i),a=i;break e;case"link":var f=Lm("link","href",s).get(a+(l.href||""));if(f){for(var m=0;m<f.length;m++)if(i=f[m],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(m,1);break t}}i=s.createElement(a),ut(i,a,l),s.head.appendChild(i);break;case"meta":if(f=Lm("meta","content",s).get(a+(l.content||""))){for(m=0;m<f.length;m++)if(i=f[m],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(m,1);break t}}i=s.createElement(a),ut(i,a,l),s.head.appendChild(i);break;default:throw Error(c(468,a))}i[lt]=e,Ie(i),a=i}e.stateNode=a}else Ym(s,e.type,e.stateNode);else e.stateNode=Qm(s,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Ym(s,e.type,e.stateNode):Qm(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&xc(e,e.memoizedProps,l.memoizedProps)}break;case 27:pt(t,e),gt(e),a&512&&(Je||l===null||ul(l,l.return)),l!==null&&a&4&&xc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(pt(t,e),gt(e),a&512&&(Je||l===null||ul(l,l.return)),e.flags&32){s=e.stateNode;try{rn(s,"")}catch(I){Oe(e,e.return,I)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,xc(e,s,l!==null?l.memoizedProps:s)),a&1024&&(jc=!0);break;case 6:if(pt(t,e),gt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(I){Oe(e,e.return,I)}}break;case 3:if(pi=null,s=Pt,Pt=yi(t.containerInfo),pt(t,e),Pt=s,gt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Qn(t.containerInfo)}catch(I){Oe(e,e.return,I)}jc&&(jc=!1,Yh(e));break;case 4:a=Pt,Pt=yi(e.stateNode.containerInfo),pt(t,e),gt(e),Pt=a;break;case 12:pt(t,e),gt(e);break;case 31:pt(t,e),gt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ti(e,a)));break;case 13:pt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ai=Tt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ti(e,a)));break;case 22:s=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,M=El,H=Je;if(El=M||s,Je=H||S,pt(t,e),Je=H,El=M,gt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||S||El||Je||Ya(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(i=S.stateNode,s)f=i.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=S.stateNode;var X=S.memoizedProps.style,z=X!=null&&X.hasOwnProperty("display")?X.display:null;m.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(I){Oe(S,S.return,I)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(I){Oe(S,S.return,I)}}}else if(t.tag===18){if(l===null){S=t;try{var U=S.stateNode;s?Mm(U,!0):Mm(S.stateNode,!1)}catch(I){Oe(S,S.return,I)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ti(e,l))));break;case 19:pt(t,e),gt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ti(e,a)));break;case 30:break;case 21:break;default:pt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(_h(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var s=l.stateNode,i=bc(e);ei(e,i,s);break;case 5:var f=l.stateNode;l.flags&32&&(rn(f,""),l.flags&=-33);var m=bc(e);ei(e,m,f);break;case 3:case 4:var S=l.stateNode.containerInfo,M=bc(e);Sc(e,M,S);break;default:throw Error(c(161))}}catch(H){Oe(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wh(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Il(4,t,t.return),Ya(t);break;case 1:ul(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Mh(t,t.return,l),Ya(t);break;case 27:Gs(t.stateNode);case 26:case 5:ul(t,t.return),Ya(t);break;case 22:t.memoizedState===null&&Ya(t);break;case 30:Ya(t);break;default:Ya(t)}e=e.sibling}}function Ol(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,i=t,f=i.flags;switch(i.tag){case 0:case 11:case 15:Ol(s,i,l),_s(4,i);break;case 1:if(Ol(s,i,l),a=i,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){Oe(a,a.return,M)}if(a=i,s=a.updateQueue,s!==null){var m=a.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)gd(S[s],m)}catch(M){Oe(a,a.return,M)}}l&&f&64&&Ah(i),Ds(i,i.return);break;case 27:Dh(i);case 26:case 5:Ol(s,i,l),l&&a===null&&f&4&&zh(i),Ds(i,i.return);break;case 12:Ol(s,i,l);break;case 31:Ol(s,i,l),l&&f&4&&Bh(s,i);break;case 13:Ol(s,i,l),l&&f&4&&Qh(s,i);break;case 22:i.memoizedState===null&&Ol(s,i,l),Ds(i,i.return);break;case 30:break;default:Ol(s,i,l)}t=t.sibling}}function Nc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&xs(l))}function Ec(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xs(e))}function el(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gh(e,t,l,a),t=t.sibling}function Gh(e,t,l,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:el(e,t,l,a),s&2048&&_s(9,t);break;case 1:el(e,t,l,a);break;case 3:el(e,t,l,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xs(e)));break;case 12:if(s&2048){el(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,f=i.id,m=i.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Oe(t,t.return,S)}}else el(e,t,l,a);break;case 31:el(e,t,l,a);break;case 13:el(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,f=t.alternate,t.memoizedState!==null?i._visibility&2?el(e,t,l,a):Us(e,t):i._visibility&2?el(e,t,l,a):(i._visibility|=2,Rn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Nc(f,t);break;case 24:el(e,t,l,a),s&2048&&Ec(t.alternate,t);break;default:el(e,t,l,a)}}function Rn(e,t,l,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,f=t,m=l,S=a,M=f.flags;switch(f.tag){case 0:case 11:case 15:Rn(i,f,m,S,s),_s(8,f);break;case 23:break;case 22:var H=f.stateNode;f.memoizedState!==null?H._visibility&2?Rn(i,f,m,S,s):Us(i,f):(H._visibility|=2,Rn(i,f,m,S,s)),s&&M&2048&&Nc(f.alternate,f);break;case 24:Rn(i,f,m,S,s),s&&M&2048&&Ec(f.alternate,f);break;default:Rn(i,f,m,S,s)}t=t.sibling}}function Us(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,s=a.flags;switch(a.tag){case 22:Us(l,a),s&2048&&Nc(a.alternate,a);break;case 24:Us(l,a),s&2048&&Ec(a.alternate,a);break;default:Us(l,a)}t=t.sibling}}var ws=8192;function An(e,t,l){if(e.subtreeFlags&ws)for(e=e.child;e!==null;)Xh(e,t,l),e=e.sibling}function Xh(e,t,l){switch(e.tag){case 26:An(e,t,l),e.flags&ws&&e.memoizedState!==null&&V0(l,Pt,e.memoizedState,e.memoizedProps);break;case 5:An(e,t,l);break;case 3:case 4:var a=Pt;Pt=yi(e.stateNode.containerInfo),An(e,t,l),Pt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ws,ws=16777216,An(e,t,l),ws=a):An(e,t,l));break;default:An(e,t,l)}}function Kh(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 Hs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Pe=a,Vh(a,e)}Kh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zh(e),e=e.sibling}function Zh(e){switch(e.tag){case 0:case 11:case 15:Hs(e),e.flags&2048&&Il(9,e,e.return);break;case 3:Hs(e);break;case 12:Hs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,li(e)):Hs(e);break;default:Hs(e)}}function li(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Pe=a,Vh(a,e)}Kh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Il(8,t,t.return),li(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,li(t));break;default:li(t)}e=e.sibling}}function Vh(e,t){for(;Pe!==null;){var l=Pe;switch(l.tag){case 0:case 11:case 15:Il(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:xs(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Pe=a;else e:for(l=e;Pe!==null;){a=Pe;var s=a.sibling,i=a.return;if(Hh(a),a===l){Pe=null;break e}if(s!==null){s.return=i,Pe=s;break e}Pe=i}}}var i0={getCacheForType:function(e){var t=nt(Ze),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return nt(Ze).controller.signal}},r0=typeof WeakMap=="function"?WeakMap:Map,Ne=0,ze=null,de=null,me=0,Te=0,Dt=null,Pl=!1,Mn=!1,Cc=!1,Rl=0,Be=0,ea=0,Ga=0,Tc=0,Ut=0,zn=0,qs=null,xt=null,Oc=!1,ai=0,kh=0,ni=1/0,si=null,ta=null,Fe=0,la=null,_n=null,Al=0,Rc=0,Ac=null,Jh=null,Bs=0,Mc=null;function wt(){return(Ne&2)!==0&&me!==0?me&-me:B.T!==null?Hc():of()}function Fh(){if(Ut===0)if((me&536870912)===0||ve){var e=hu;hu<<=1,(hu&3932160)===0&&(hu=262144),Ut=e}else Ut=536870912;return e=zt.current,e!==null&&(e.flags|=32),Ut}function bt(e,t,l){(e===ze&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(Dn(e,0),aa(e,me,Ut,!1)),ss(e,l),((Ne&2)===0||e!==ze)&&(e===ze&&((Ne&2)===0&&(Ga|=l),Be===4&&aa(e,me,Ut,!1)),il(e))}function $h(e,t,l){if((Ne&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ns(e,t),s=a?f0(e,t):_c(e,t,!0),i=a;do{if(s===0){Mn&&!a&&aa(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!c0(l)){s=_c(e,t,!1),i=!1;continue}if(s===2){if(i=t,e.errorRecoveryDisabledLanes&i)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;s=qs;var S=m.current.memoizedState.isDehydrated;if(S&&(Dn(m,f).flags|=256),f=_c(m,f,!1),f!==2){if(Cc&&!S){m.errorRecoveryDisabledLanes|=i,Ga|=i,s=4;break e}i=xt,xt=s,i!==null&&(xt===null?xt=i:xt.push.apply(xt,i))}s=f}if(i=!1,s!==2)continue}}if(s===1){Dn(e,0),aa(e,t,0,!0);break}e:{switch(a=e,i=s,i){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:aa(a,t,Ut,!Pl);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(s=ai+300-Tt(),10<s)){if(aa(a,t,Ut,!Pl),yu(a,0,!0)!==0)break e;Al=t,a.timeoutHandle=Om(Wh.bind(null,a,l,xt,si,Oc,t,Ut,Ga,zn,Pl,i,"Throttled",-0,0),s);break e}Wh(a,l,xt,si,Oc,t,Ut,Ga,zn,Pl,i,null,-0,0)}}break}while(!0);il(e)}function Wh(e,t,l,a,s,i,f,m,S,M,H,X,z,U){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ml},Xh(t,i,X);var I=(i&62914560)===i?ai-Tt():(i&4194048)===i?kh-Tt():0;if(I=k0(X,I),I!==null){Al=i,e.cancelPendingCommit=I(sm.bind(null,e,t,i,l,a,s,f,m,S,H,X,null,z,U)),aa(e,i,f,!M);return}}sm(e,t,i,l,a,s,f,m,S)}function c0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var s=l[a],i=s.getSnapshot;s=s.value;try{if(!At(i(),s))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 aa(e,t,l,a){t&=~Tc,t&=~Ga,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var i=31-Rt(s),f=1<<i;a[i]=-1,s&=~f}l!==0&&uf(e,l,t)}function ui(){return(Ne&6)===0?(Qs(0),!1):!0}function zc(){if(de!==null){if(Te===0)var e=de.return;else e=de,gl=Da=null,kr(e),Nn=null,Ss=0,e=de;for(;e!==null;)Rh(e.alternate,e),e=e.return;de=null}}function Dn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,A0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Al=0,zc(),ze=e,de=l=vl(e.current,null),me=t,Te=0,Dt=null,Pl=!1,Mn=ns(e,t),Cc=!1,zn=Ut=Tc=Ga=ea=Be=0,xt=qs=null,Oc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Rt(a),i=1<<s;t|=e[s],a&=~i}return Rl=t,Ou(),l}function Ih(e,t){re=null,B.H=As,t===jn||t===wu?(t=md(),Te=3):t===wr?(t=md(),Te=4):Te=t===cc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,de===null&&(Be=1,Fu(e,Yt(t,e.current)))}function Ph(){var e=zt.current;return e===null?!0:(me&4194048)===me?Zt===null:(me&62914560)===me||(me&536870912)!==0?e===Zt:!1}function em(){var e=B.H;return B.H=As,e===null?As:e}function tm(){var e=B.A;return B.A=i0,e}function ii(){Be=4,Pl||(me&4194048)!==me&&zt.current!==null||(Mn=!0),(ea&134217727)===0&&(Ga&134217727)===0||ze===null||aa(ze,me,Ut,!1)}function _c(e,t,l){var a=Ne;Ne|=2;var s=em(),i=tm();(ze!==e||me!==t)&&(si=null,Dn(e,t)),t=!1;var f=Be;e:do try{if(Te!==0&&de!==null){var m=de,S=Dt;switch(Te){case 8:zc(),f=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var M=Te;if(Te=0,Dt=null,Un(e,m,S,M),l&&Mn){f=0;break e}break;default:M=Te,Te=0,Dt=null,Un(e,m,S,M)}}o0(),f=Be;break}catch(H){Ih(e,H)}while(!0);return t&&e.shellSuspendCounter++,gl=Da=null,Ne=a,B.H=s,B.A=i,de===null&&(ze=null,me=0,Ou()),f}function o0(){for(;de!==null;)lm(de)}function f0(e,t){var l=Ne;Ne|=2;var a=em(),s=tm();ze!==e||me!==t?(si=null,ni=Tt()+500,Dn(e,t)):Mn=ns(e,t);e:do try{if(Te!==0&&de!==null){t=de;var i=Dt;t:switch(Te){case 1:Te=0,Dt=null,Un(e,t,i,1);break;case 2:case 9:if(dd(i)){Te=0,Dt=null,am(t);break}t=function(){Te!==2&&Te!==9||ze!==e||(Te=7),il(e)},i.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:dd(i)?(Te=0,Dt=null,am(t)):(Te=0,Dt=null,Un(e,t,i,7));break;case 5:var f=null;switch(de.tag){case 26:f=de.memoizedState;case 5:case 27:var m=de;if(f?Gm(f):m.stateNode.complete){Te=0,Dt=null;var S=m.sibling;if(S!==null)de=S;else{var M=m.return;M!==null?(de=M,ri(M)):de=null}break t}}Te=0,Dt=null,Un(e,t,i,5);break;case 6:Te=0,Dt=null,Un(e,t,i,6);break;case 8:zc(),Be=6;break e;default:throw Error(c(462))}}d0();break}catch(H){Ih(e,H)}while(!0);return gl=Da=null,B.H=a,B.A=s,Ne=l,de!==null?0:(ze=null,me=0,Ou(),Be)}function d0(){for(;de!==null&&!wv();)lm(de)}function lm(e){var t=Th(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,t===null?ri(e):de=t}function am(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=bh(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=bh(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:kr(t);default:Rh(l,t),t=de=td(t,Rl),t=Th(l,t,Rl)}e.memoizedProps=e.pendingProps,t===null?ri(e):de=t}function Un(e,t,l,a){gl=Da=null,kr(t),Nn=null,Ss=0;var s=t.return;try{if(e0(e,s,t,l,me)){Be=1,Fu(e,Yt(l,e.current)),de=null;return}}catch(i){if(s!==null)throw de=s,i;Be=1,Fu(e,Yt(l,e.current)),de=null;return}t.flags&32768?(ve||a===1?e=!0:Mn||(me&536870912)!==0?e=!1:(Pl=e=!0,(a===2||a===9||a===3||a===6)&&(a=zt.current,a!==null&&a.tag===13&&(a.flags|=16384))),nm(t,e)):ri(t)}function ri(e){var t=e;do{if((t.flags&32768)!==0){nm(t,Pl);return}e=t.return;var l=a0(t.alternate,t,Rl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Be===0&&(Be=5)}function nm(e,t){do{var l=n0(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);Be=6,de=null}function sm(e,t,l,a,s,i,f,m,S){e.cancelPendingCommit=null;do ci();while(Fe!==0);if((Ne&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(i=t.lanes|t.childLanes,i|=br,Zv(e,l,i,f,m,S),e===ze&&(de=ze=null,me=0),_n=t,la=e,Al=l,Rc=i,Ac=s,Jh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,v0(fu,function(){return om(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,s=k.p,k.p=2,f=Ne,Ne|=4;try{s0(e,t,l)}finally{Ne=f,k.p=s,B.T=a}}Fe=1,um(),im(),rm()}}function um(){if(Fe===1){Fe=0;var e=la,t=_n,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var a=k.p;k.p=2;var s=Ne;Ne|=4;try{Lh(t,e);var i=Kc,f=Vf(e.containerInfo),m=i.focusedElem,S=i.selectionRange;if(f!==m&&m&&m.ownerDocument&&Zf(m.ownerDocument.documentElement,m)){if(S!==null&&yr(m)){var M=S.start,H=S.end;if(H===void 0&&(H=M),"selectionStart"in m)m.selectionStart=M,m.selectionEnd=Math.min(H,m.value.length);else{var X=m.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var U=z.getSelection(),I=m.textContent.length,ne=Math.min(S.start,I),Me=S.end===void 0?ne:Math.min(S.end,I);!U.extend&&ne>Me&&(f=Me,Me=ne,ne=f);var T=Kf(m,ne),E=Kf(m,Me);if(T&&E&&(U.rangeCount!==1||U.anchorNode!==T.node||U.anchorOffset!==T.offset||U.focusNode!==E.node||U.focusOffset!==E.offset)){var A=X.createRange();A.setStart(T.node,T.offset),U.removeAllRanges(),ne>Me?(U.addRange(A),U.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),U.addRange(A))}}}}for(X=[],U=m;U=U.parentNode;)U.nodeType===1&&X.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<X.length;m++){var L=X[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Si=!!Xc,Kc=Xc=null}finally{Ne=s,k.p=a,B.T=l}}e.current=t,Fe=2}}function im(){if(Fe===2){Fe=0;var e=la,t=_n,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var a=k.p;k.p=2;var s=Ne;Ne|=4;try{wh(e,t.alternate,t)}finally{Ne=s,k.p=a,B.T=l}}Fe=3}}function rm(){if(Fe===4||Fe===3){Fe=0,Hv();var e=la,t=_n,l=Al,a=Jh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,_n=la=null,cm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(ta=null),$i(l),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(as,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=B.T,s=k.p,k.p=2,B.T=null;try{for(var i=e.onRecoverableError,f=0;f<a.length;f++){var m=a[f];i(m.value,{componentStack:m.stack})}}finally{B.T=t,k.p=s}}(Al&3)!==0&&ci(),il(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===Mc?Bs++:(Bs=0,Mc=e):Bs=0,Qs(0)}}function cm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xs(t)))}function ci(){return um(),im(),rm(),om()}function om(){if(Fe!==5)return!1;var e=la,t=Rc;Rc=0;var l=$i(Al),a=B.T,s=k.p;try{k.p=32>l?32:l,B.T=null,l=Ac,Ac=null;var i=la,f=Al;if(Fe=0,_n=la=null,Al=0,(Ne&6)!==0)throw Error(c(331));var m=Ne;if(Ne|=4,Zh(i.current),Gh(i,i.current,f,l),Ne=m,Qs(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(as,i)}catch{}return!0}finally{k.p=s,B.T=a,cm(e,t)}}function fm(e,t,l){t=Yt(l,t),t=rc(e.stateNode,t,2),e=Fl(e,t,2),e!==null&&(ss(e,2),il(e))}function Oe(e,t,l){if(e.tag===3)fm(e,e,l);else for(;t!==null;){if(t.tag===3){fm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Yt(l,e),l=dh(2),a=Fl(t,l,2),a!==null&&(hh(l,a,t,e),ss(a,2),il(a));break}}t=t.return}}function Dc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new r0;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(l)||(Cc=!0,s.add(l),e=h0.bind(null,e,t,l),t.then(e,e))}function h0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(me&l)===l&&(Be===4||Be===3&&(me&62914560)===me&&300>Tt()-ai?(Ne&2)===0&&Dn(e,0):Tc|=l,zn===me&&(zn=0)),il(e)}function dm(e,t){t===0&&(t=sf()),e=Ma(e,t),e!==null&&(ss(e,t),il(e))}function m0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),dm(e,l)}function y0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),dm(e,l)}function v0(e,t){return Vi(e,t)}var oi=null,wn=null,Uc=!1,fi=!1,wc=!1,na=0;function il(e){e!==wn&&e.next===null&&(wn===null?oi=wn=e:wn=wn.next=e),fi=!0,Uc||(Uc=!0,g0())}function Qs(e,t){if(!wc&&fi){wc=!0;do for(var l=!1,a=oi;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var i=0;else{var f=a.suspendedLanes,m=a.pingedLanes;i=(1<<31-Rt(42|e)+1)-1,i&=s&~(f&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,vm(a,i))}else i=me,i=yu(a,a===ze?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||ns(a,i)||(l=!0,vm(a,i));a=a.next}while(l);wc=!1}}function p0(){hm()}function hm(){fi=Uc=!1;var e=0;na!==0&&R0()&&(e=na);for(var t=Tt(),l=null,a=oi;a!==null;){var s=a.next,i=mm(a,t);i===0?(a.next=null,l===null?oi=s:l.next=s,s===null&&(wn=l)):(l=a,(e!==0||(i&3)!==0)&&(fi=!0)),a=s}Fe!==0&&Fe!==5||Qs(e),na!==0&&(na=0)}function mm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-Rt(i),m=1<<f,S=s[f];S===-1?((m&l)===0||(m&a)!==0)&&(s[f]=Kv(m,t)):S<=t&&(e.expiredLanes|=m),i&=~m}if(t=ze,l=me,l=yu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ki(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ns(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ki(a),$i(l)){case 2:case 8:l=af;break;case 32:l=fu;break;case 268435456:l=nf;break;default:l=fu}return a=ym.bind(null,e),l=Vi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ki(a),e.callbackPriority=2,e.callbackNode=null,2}function ym(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ci()&&e.callbackNode!==l)return null;var a=me;return a=yu(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($h(e,a,t),mm(e,Tt()),e.callbackNode!=null&&e.callbackNode===l?ym.bind(null,e):null)}function vm(e,t){if(ci())return null;$h(e,t,!0)}function g0(){M0(function(){(Ne&6)!==0?Vi(lf,p0):hm()})}function Hc(){if(na===0){var e=bn;e===0&&(e=du,du<<=1,(du&261888)===0&&(du=256)),na=e}return na}function pm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xu(""+e)}function gm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function x0(e,t,l,a,s){if(t==="submit"&&l&&l.stateNode===s){var i=pm((s[mt]||null).action),f=a.submitter;f&&(t=(t=f[mt]||null)?pm(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var m=new Nu("action","action",null,a,s);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(na!==0){var S=f?gm(s,f):new FormData(s);lc(l,{pending:!0,data:S,method:s.method,action:i},null,S)}}else typeof i=="function"&&(m.preventDefault(),S=f?gm(s,f):new FormData(s),lc(l,{pending:!0,data:S,method:s.method,action:i},i,S))},currentTarget:s}]})}}for(var qc=0;qc<xr.length;qc++){var Bc=xr[qc],b0=Bc.toLowerCase(),S0=Bc[0].toUpperCase()+Bc.slice(1);It(b0,"on"+S0)}It(Ff,"onAnimationEnd"),It($f,"onAnimationIteration"),It(Wf,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(qp,"onTransitionRun"),It(Bp,"onTransitionStart"),It(Qp,"onTransitionCancel"),It(If,"onTransitionEnd"),sn("onMouseEnter",["mouseout","mouseover"]),sn("onMouseLeave",["mouseout","mouseover"]),sn("onPointerEnter",["pointerout","pointerover"]),sn("onPointerLeave",["pointerout","pointerover"]),Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="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(" "),j0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ls));function xm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],s=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var f=a.length-1;0<=f;f--){var m=a[f],S=m.instance,M=m.currentTarget;if(m=m.listener,S!==i&&s.isPropagationStopped())break e;i=m,s.currentTarget=M;try{i(s)}catch(H){Tu(H)}s.currentTarget=null,i=S}else for(f=0;f<a.length;f++){if(m=a[f],S=m.instance,M=m.currentTarget,m=m.listener,S!==i&&s.isPropagationStopped())break e;i=m,s.currentTarget=M;try{i(s)}catch(H){Tu(H)}s.currentTarget=null,i=S}}}}function he(e,t){var l=t[Wi];l===void 0&&(l=t[Wi]=new Set);var a=e+"__bubble";l.has(a)||(bm(t,e,2,!1),l.add(a))}function Qc(e,t,l){var a=0;t&&(a|=4),bm(l,e,a,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function Lc(e){if(!e[di]){e[di]=!0,hf.forEach(function(l){l!=="selectionchange"&&(j0.has(l)||Qc(l,!1,e),Qc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,Qc("selectionchange",!1,t))}}function bm(e,t,l,a){switch(Fm(t)){case 2:var s=$0;break;case 8:s=W0;break;default:s=to}l=s.bind(null,t,l,e),s=void 0,!ur||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function Yc(e,t,l,a,s){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var m=a.stateNode.containerInfo;if(m===s)break;if(f===4)for(f=a.return;f!==null;){var S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;m!==null;){if(f=ln(m),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){a=i=f;continue e}m=m.parentNode}}a=a.return}Cf(function(){var M=i,H=nr(l),X=[];e:{var z=Pf.get(e);if(z!==void 0){var U=Nu,I=e;switch(e){case"keypress":if(Su(l)===0)break e;case"keydown":case"keyup":U=yp;break;case"focusin":I="focus",U=or;break;case"focusout":I="blur",U=or;break;case"beforeblur":case"afterblur":U=or;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=ap;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=gp;break;case Ff:case $f:case Wf:U=up;break;case If:U=bp;break;case"scroll":case"scrollend":U=tp;break;case"wheel":U=jp;break;case"copy":case"cut":case"paste":U=rp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Mf;break;case"toggle":case"beforetoggle":U=Ep}var ne=(t&4)!==0,Me=!ne&&(e==="scroll"||e==="scrollend"),T=ne?z!==null?z+"Capture":null:z;ne=[];for(var E=M,A;E!==null;){var L=E;if(A=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||A===null||T===null||(L=rs(E,T),L!=null&&ne.push(Ys(E,L,A))),Me)break;E=E.return}0<ne.length&&(z=new U(z,I,null,l,H),X.push({event:z,listeners:ne}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",z&&l!==ar&&(I=l.relatedTarget||l.fromElement)&&(ln(I)||I[tn]))break e;if((U||z)&&(z=H.window===H?H:(z=H.ownerDocument)?z.defaultView||z.parentWindow:window,U?(I=l.relatedTarget||l.toElement,U=M,I=I?ln(I):null,I!==null&&(Me=h(I),ne=I.tag,I!==Me||ne!==5&&ne!==27&&ne!==6)&&(I=null)):(U=null,I=M),U!==I)){if(ne=Rf,L="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ne=Mf,L="onPointerLeave",T="onPointerEnter",E="pointer"),Me=U==null?z:is(U),A=I==null?z:is(I),z=new ne(L,E+"leave",U,l,H),z.target=Me,z.relatedTarget=A,L=null,ln(H)===M&&(ne=new ne(T,E+"enter",I,l,H),ne.target=A,ne.relatedTarget=Me,L=ne),Me=L,U&&I)t:{for(ne=N0,T=U,E=I,A=0,L=T;L;L=ne(L))A++;L=0;for(var ae=E;ae;ae=ne(ae))L++;for(;0<A-L;)T=ne(T),A--;for(;0<L-A;)E=ne(E),L--;for(;A--;){if(T===E||E!==null&&T===E.alternate){ne=T;break t}T=ne(T),E=ne(E)}ne=null}else ne=null;U!==null&&Sm(X,z,U,ne,!1),I!==null&&Me!==null&&Sm(X,Me,I,ne,!0)}}e:{if(z=M?is(M):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var be=Bf;else if(Hf(z))if(Qf)be=Up;else{be=_p;var P=zp}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?M&&lr(M.elementType)&&(be=Bf):be=Dp;if(be&&(be=be(e,M))){qf(X,be,l,H);break e}P&&P(e,z,M),e==="focusout"&&M&&z.type==="number"&&M.memoizedProps.value!=null&&tr(z,"number",z.value)}switch(P=M?is(M):window,e){case"focusin":(Hf(P)||P.contentEditable==="true")&&(dn=P,vr=M,vs=null);break;case"focusout":vs=vr=dn=null;break;case"mousedown":pr=!0;break;case"contextmenu":case"mouseup":case"dragend":pr=!1,kf(X,l,H);break;case"selectionchange":if(Hp)break;case"keydown":case"keyup":kf(X,l,H)}var ce;if(dr)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else fn?Uf(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(zf&&l.locale!=="ko"&&(fn||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&fn&&(ce=Tf()):(Gl=H,ir="value"in Gl?Gl.value:Gl.textContent,fn=!0)),P=hi(M,ye),0<P.length&&(ye=new Af(ye,e,null,l,H),X.push({event:ye,listeners:P}),ce?ye.data=ce:(ce=wf(l),ce!==null&&(ye.data=ce)))),(ce=Tp?Op(e,l):Rp(e,l))&&(ye=hi(M,"onBeforeInput"),0<ye.length&&(P=new Af("onBeforeInput","beforeinput",null,l,H),X.push({event:P,listeners:ye}),P.data=ce)),x0(X,e,M,l,H)}xm(X,t)})}function Ys(e,t,l){return{instance:e,listener:t,currentTarget:l}}function hi(e,t){for(var l=t+"Capture",a=[];e!==null;){var s=e,i=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||i===null||(s=rs(e,l),s!=null&&a.unshift(Ys(e,s,i)),s=rs(e,t),s!=null&&a.push(Ys(e,s,i))),e.tag===3)return a;e=e.return}return[]}function N0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sm(e,t,l,a,s){for(var i=t._reactName,f=[];l!==null&&l!==a;){var m=l,S=m.alternate,M=m.stateNode;if(m=m.tag,S!==null&&S===a)break;m!==5&&m!==26&&m!==27||M===null||(S=M,s?(M=rs(l,i),M!=null&&f.unshift(Ys(l,M,S))):s||(M=rs(l,i),M!=null&&f.push(Ys(l,M,S)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var E0=/\r\n?/g,C0=/\u0000|\uFFFD/g;function jm(e){return(typeof e=="string"?e:""+e).replace(E0,`
49
- `).replace(C0,"")}function Nm(e,t){return t=jm(t),jm(e)===t}function Ae(e,t,l,a,s,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||rn(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&rn(e,""+a);break;case"className":pu(e,"class",a);break;case"tabIndex":pu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":pu(e,l,a);break;case"style":Nf(e,a,i);break;case"data":if(t!=="object"){pu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=xu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Ae(e,t,"name",s.name,s,null),Ae(e,t,"formEncType",s.formEncType,s,null),Ae(e,t,"formMethod",s.formMethod,s,null),Ae(e,t,"formTarget",s.formTarget,s,null)):(Ae(e,t,"encType",s.encType,s,null),Ae(e,t,"method",s.method,s,null),Ae(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=xu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=ml);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(s.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=xu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":he("beforetoggle",e),he("toggle",e),vu(e,"popover",a);break;case"xlinkActuate":hl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":hl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":hl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":hl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":hl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":hl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":hl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":hl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":hl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":vu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Pv.get(l)||l,vu(e,l,a))}}function Gc(e,t,l,a,s,i){switch(l){case"style":Nf(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(s.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?rn(e,a):(typeof a=="number"||typeof a=="bigint")&&rn(e,""+a);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"onClick":a!=null&&(e.onclick=ml);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),i=e[mt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,s),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,s);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):vu(e,l,a)}}}function ut(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var a=!1,s=!1,i;for(i in l)if(l.hasOwnProperty(i)){var f=l[i];if(f!=null)switch(i){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ae(e,t,i,f,l,null)}}s&&Ae(e,t,"srcSet",l.srcSet,l,null),a&&Ae(e,t,"src",l.src,l,null);return;case"input":he("invalid",e);var m=i=f=s=null,S=null,M=null;for(a in l)if(l.hasOwnProperty(a)){var H=l[a];if(H!=null)switch(a){case"name":s=H;break;case"type":f=H;break;case"checked":S=H;break;case"defaultChecked":M=H;break;case"value":i=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:Ae(e,t,a,H,l,null)}}xf(e,i,m,S,M,f,s,!1);return;case"select":he("invalid",e),a=f=i=null;for(s in l)if(l.hasOwnProperty(s)&&(m=l[s],m!=null))switch(s){case"value":i=m;break;case"defaultValue":f=m;break;case"multiple":a=m;default:Ae(e,t,s,m,l,null)}t=i,l=f,e.multiple=!!a,t!=null?un(e,!!a,t,!1):l!=null&&un(e,!!a,l,!0);return;case"textarea":he("invalid",e),i=s=a=null;for(f in l)if(l.hasOwnProperty(f)&&(m=l[f],m!=null))switch(f){case"value":a=m;break;case"defaultValue":s=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:Ae(e,t,f,m,l,null)}Sf(e,a,s,i);return;case"option":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ae(e,t,S,a,l,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(a=0;a<Ls.length;a++)he(Ls[a],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(M in l)if(l.hasOwnProperty(M)&&(a=l[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ae(e,t,M,a,l,null)}return;default:if(lr(t)){for(H in l)l.hasOwnProperty(H)&&(a=l[H],a!==void 0&&Gc(e,t,H,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Ae(e,t,m,a,l,null))}function T0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,i=null,f=null,m=null,S=null,M=null,H=null;for(U in l){var X=l[U];if(l.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=X;default:a.hasOwnProperty(U)||Ae(e,t,U,null,a,X)}}for(var z in a){var U=a[z];if(X=l[z],a.hasOwnProperty(z)&&(U!=null||X!=null))switch(z){case"type":i=U;break;case"name":s=U;break;case"checked":M=U;break;case"defaultChecked":H=U;break;case"value":f=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:U!==X&&Ae(e,t,z,U,a,X)}}er(e,f,m,S,M,H,i,s);return;case"select":U=f=m=z=null;for(i in l)if(S=l[i],l.hasOwnProperty(i)&&S!=null)switch(i){case"value":break;case"multiple":U=S;default:a.hasOwnProperty(i)||Ae(e,t,i,null,a,S)}for(s in a)if(i=a[s],S=l[s],a.hasOwnProperty(s)&&(i!=null||S!=null))switch(s){case"value":z=i;break;case"defaultValue":m=i;break;case"multiple":f=i;default:i!==S&&Ae(e,t,s,i,a,S)}t=m,l=f,a=U,z!=null?un(e,!!l,z,!1):!!a!=!!l&&(t!=null?un(e,!!l,t,!0):un(e,!!l,l?[]:"",!1));return;case"textarea":U=z=null;for(m in l)if(s=l[m],l.hasOwnProperty(m)&&s!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ae(e,t,m,null,a,s)}for(f in a)if(s=a[f],i=l[f],a.hasOwnProperty(f)&&(s!=null||i!=null))switch(f){case"value":z=s;break;case"defaultValue":U=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(c(91));break;default:s!==i&&Ae(e,t,f,s,a,i)}bf(e,z,U);return;case"option":for(var I in l)if(z=l[I],l.hasOwnProperty(I)&&z!=null&&!a.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Ae(e,t,I,null,a,z)}for(S in a)if(z=a[S],U=l[S],a.hasOwnProperty(S)&&z!==U&&(z!=null||U!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ae(e,t,S,z,a,U)}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 ne in l)z=l[ne],l.hasOwnProperty(ne)&&z!=null&&!a.hasOwnProperty(ne)&&Ae(e,t,ne,null,a,z);for(M in a)if(z=a[M],U=l[M],a.hasOwnProperty(M)&&z!==U&&(z!=null||U!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Ae(e,t,M,z,a,U)}return;default:if(lr(t)){for(var Me in l)z=l[Me],l.hasOwnProperty(Me)&&z!==void 0&&!a.hasOwnProperty(Me)&&Gc(e,t,Me,void 0,a,z);for(H in a)z=a[H],U=l[H],!a.hasOwnProperty(H)||z===U||z===void 0&&U===void 0||Gc(e,t,H,z,a,U);return}}for(var T in l)z=l[T],l.hasOwnProperty(T)&&z!=null&&!a.hasOwnProperty(T)&&Ae(e,t,T,null,a,z);for(X in a)z=a[X],U=l[X],!a.hasOwnProperty(X)||z===U||z==null&&U==null||Ae(e,t,X,z,a,U)}function Em(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function O0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var s=l[a],i=s.transferSize,f=s.initiatorType,m=s.duration;if(i&&m&&Em(f)){for(f=0,m=s.responseEnd,a+=1;a<l.length;a++){var S=l[a],M=S.startTime;if(M>m)break;var H=S.transferSize,X=S.initiatorType;H&&Em(X)&&(S=S.responseEnd,f+=H*(S<m?1:(m-M)/(S-M)))}if(--a,t+=8*(i+f)/(s.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 Xc=null,Kc=null;function mi(e){return e.nodeType===9?e:e.ownerDocument}function Cm(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 Tm(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 Zc(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 Vc=null;function R0(){var e=window.event;return e&&e.type==="popstate"?e===Vc?!1:(Vc=e,!0):(Vc=null,!1)}var Om=typeof setTimeout=="function"?setTimeout:void 0,A0=typeof clearTimeout=="function"?clearTimeout:void 0,Rm=typeof Promise=="function"?Promise:void 0,M0=typeof queueMicrotask=="function"?queueMicrotask:typeof Rm<"u"?function(e){return Rm.resolve(null).then(e).catch(z0)}:Om;function z0(e){setTimeout(function(){throw e})}function sa(e){return e==="head"}function Am(e,t){var l=t,a=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(s),Qn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Gs(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Gs(l);for(var i=l.firstChild;i;){var f=i.nextSibling,m=i.nodeName;i[us]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=f}}else l==="body"&&Gs(e.ownerDocument.body);l=s}while(l);Qn(t)}function Mm(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function kc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":kc(l),Ii(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function _0(e,t,l,a){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[us])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function D0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Vt(e.nextSibling),e===null))return null;return e}function zm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function Jc(e){return e.data==="$?"||e.data==="$~"}function Fc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function U0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Vt(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 $c=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Vt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Dm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Um(e,t,l){switch(t=mi(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Gs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ii(e)}var kt=new Map,wm=new Set;function yi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ml=k.d;k.d={f:w0,r:H0,D:q0,C:B0,L:Q0,m:L0,X:G0,S:Y0,M:X0};function w0(){var e=Ml.f(),t=ui();return e||t}function H0(e){var t=an(e);t!==null&&t.tag===5&&t.type==="form"?Id(t):Ml.r(e)}var Hn=typeof document>"u"?null:document;function Hm(e,t,l){var a=Hn;if(a&&typeof t=="string"&&t){var s=Qt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),wm.has(s)||(wm.add(s),e={rel:e,crossOrigin:l,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),ut(t,"link",e),Ie(t),a.head.appendChild(t)))}}function q0(e){Ml.D(e),Hm("dns-prefetch",e,null)}function B0(e,t){Ml.C(e,t),Hm("preconnect",e,t)}function Q0(e,t,l){Ml.L(e,t,l);var a=Hn;if(a&&e&&t){var s='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+Qt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+Qt(l.imageSizes)+'"]')):s+='[href="'+Qt(e)+'"]';var i=s;switch(t){case"style":i=qn(e);break;case"script":i=Bn(e)}kt.has(i)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),kt.set(i,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(Xs(i))||t==="script"&&a.querySelector(Ks(i))||(t=a.createElement("link"),ut(t,"link",e),Ie(t),a.head.appendChild(t)))}}function L0(e,t){Ml.m(e,t);var l=Hn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Qt(a)+'"][href="'+Qt(e)+'"]',i=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Bn(e)}if(!kt.has(i)&&(e=g({rel:"modulepreload",href:e},t),kt.set(i,e),l.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ks(i)))return}a=l.createElement("link"),ut(a,"link",e),Ie(a),l.head.appendChild(a)}}}function Y0(e,t,l){Ml.S(e,t,l);var a=Hn;if(a&&e){var s=nn(a).hoistableStyles,i=qn(e);t=t||"default";var f=s.get(i);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(Xs(i)))m.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=kt.get(i))&&Wc(e,l);var S=f=a.createElement("link");Ie(S),ut(S,"link",e),S._p=new Promise(function(M,H){S.onload=M,S.onerror=H}),S.addEventListener("load",function(){m.loading|=1}),S.addEventListener("error",function(){m.loading|=2}),m.loading|=4,vi(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:m},s.set(i,f)}}}function G0(e,t){Ml.X(e,t);var l=Hn;if(l&&e){var a=nn(l).hoistableScripts,s=Bn(e),i=a.get(s);i||(i=l.querySelector(Ks(s)),i||(e=g({src:e,async:!0},t),(t=kt.get(s))&&Ic(e,t),i=l.createElement("script"),Ie(i),ut(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(s,i))}}function X0(e,t){Ml.M(e,t);var l=Hn;if(l&&e){var a=nn(l).hoistableScripts,s=Bn(e),i=a.get(s);i||(i=l.querySelector(Ks(s)),i||(e=g({src:e,async:!0,type:"module"},t),(t=kt.get(s))&&Ic(e,t),i=l.createElement("script"),Ie(i),ut(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(s,i))}}function qm(e,t,l,a){var s=(s=ue.current)?yi(s):null;if(!s)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=qn(l.href),l=nn(s).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=qn(l.href);var i=nn(s).hoistableStyles,f=i.get(e);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,f),(i=s.querySelector(Xs(e)))&&!i._p&&(f.instance=i,f.state.loading=5),kt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},kt.set(e,l),i||K0(s,e,l,f.state))),t&&a===null)throw Error(c(528,""));return f}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Bn(l),l=nn(s).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function qn(e){return'href="'+Qt(e)+'"'}function Xs(e){return'link[rel="stylesheet"]['+e+"]"}function Bm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function K0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ut(t,"link",l),Ie(t),e.head.appendChild(t))}function Bn(e){return'[src="'+Qt(e)+'"]'}function Ks(e){return"script[async]"+e}function Qm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Qt(l.href)+'"]');if(a)return t.instance=a,Ie(a),a;var s=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ie(a),ut(a,"style",s),vi(a,l.precedence,e),t.instance=a;case"stylesheet":s=qn(l.href);var i=e.querySelector(Xs(s));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;a=Bm(l),(s=kt.get(s))&&Wc(a,s),i=(e.ownerDocument||e).createElement("link"),Ie(i);var f=i;return f._p=new Promise(function(m,S){f.onload=m,f.onerror=S}),ut(i,"link",a),t.state.loading|=4,vi(i,l.precedence,e),t.instance=i;case"script":return i=Bn(l.src),(s=e.querySelector(Ks(i)))?(t.instance=s,Ie(s),s):(a=l,(s=kt.get(i))&&(a=g({},l),Ic(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ie(s),ut(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,vi(a,l.precedence,e));return t.instance}function vi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,i=s,f=0;f<a.length;f++){var m=a[f];if(m.dataset.precedence===t)i=m;else if(i!==s)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Wc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ic(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pi=null;function Lm(e,t,l){if(pi===null){var a=new Map,s=pi=new Map;s.set(l,a)}else s=pi,a=s.get(l),a||(a=new Map,s.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var i=l[s];if(!(i[us]||i[lt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(t)||"";f=e+f;var m=a.get(f);m?m.push(i):a.set(f,[i])}}return a}function Ym(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Z0(e,t,l){if(l===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 Gm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function V0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=qn(a.href),i=t.querySelector(Xs(s));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=gi.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ie(i);return}i=t.ownerDocument||t,a=Bm(a),(s=kt.get(s))&&Wc(a,s),i=i.createElement("link"),Ie(i);var f=i;f._p=new Promise(function(m,S){f.onload=m,f.onerror=S}),ut(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=gi.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Pc=0;function k0(e,t){return e.stylesheets&&e.count===0&&bi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&bi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Pc===0&&(Pc=62500*O0());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Pc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function gi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xi=null;function bi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xi=new Map,t.forEach(J0,e),xi=null,gi.call(e))}function J0(e,t){if(!(t.state.loading&4)){var l=xi.get(e);if(l)var a=l.get(null);else{l=new Map,xi.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<s.length;i++){var f=s[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}s=t.instance,f=s.getAttribute("data-precedence"),i=l.get(f)||a,i===a&&l.set(null,s),l.set(f,s),this.count++,a=gi.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),i?i.parentNode.insertBefore(s,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Zs={$$typeof:R,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function F0(e,t,l,a,s,i,f,m,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ji(0),this.hiddenUpdates=Ji(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Xm(e,t,l,a,s,i,f,m,S,M,H,X){return e=new F0(e,t,l,f,S,M,H,X,m),t=1,i===!0&&(t|=24),i=Mt(3,null,null,t),e.current=i,i.stateNode=e,t=_r(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Hr(i),e}function Km(e){return e?(e=yn,e):yn}function Zm(e,t,l,a,s,i){s=Km(s),a.context===null?a.context=s:a.pendingContext=s,a=Jl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Fl(e,a,t),l!==null&&(bt(l,e,t),Ns(l,e,t))}function Vm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function eo(e,t){Vm(e,t),(e=e.alternate)&&Vm(e,t)}function km(e){if(e.tag===13||e.tag===31){var t=Ma(e,67108864);t!==null&&bt(t,e,67108864),eo(e,67108864)}}function Jm(e){if(e.tag===13||e.tag===31){var t=wt();t=Fi(t);var l=Ma(e,t);l!==null&&bt(l,e,t),eo(e,t)}}var Si=!0;function $0(e,t,l,a){var s=B.T;B.T=null;var i=k.p;try{k.p=2,to(e,t,l,a)}finally{k.p=i,B.T=s}}function W0(e,t,l,a){var s=B.T;B.T=null;var i=k.p;try{k.p=8,to(e,t,l,a)}finally{k.p=i,B.T=s}}function to(e,t,l,a){if(Si){var s=lo(a);if(s===null)Yc(e,t,a,ji,l),$m(e,a);else if(P0(s,e,t,l,a))a.stopPropagation();else if($m(e,a),t&4&&-1<I0.indexOf(e)){for(;s!==null;){var i=an(s);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=Ca(i.pendingLanes);if(f!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var S=1<<31-Rt(f);m.entanglements[1]|=S,f&=~S}il(i),(Ne&6)===0&&(ni=Tt()+500,Qs(0))}}break;case 31:case 13:m=Ma(i,2),m!==null&&bt(m,i,2),ui(),eo(i,2)}if(i=lo(a),i===null&&Yc(e,t,a,ji,l),i===s)break;s=i}s!==null&&a.stopPropagation()}else Yc(e,t,a,null,l)}}function lo(e){return e=nr(e),ao(e)}var ji=null;function ao(e){if(ji=null,e=ln(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ji=e,null}function Fm(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(qv()){case lf:return 2;case af:return 8;case fu:case Bv:return 32;case nf:return 268435456;default:return 32}default:return 32}}var no=!1,ua=null,ia=null,ra=null,Vs=new Map,ks=new Map,ca=[],I0="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 $m(e,t){switch(e){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":Vs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ks.delete(t.pointerId)}}function Js(e,t,l,a,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[s]},t!==null&&(t=an(t),t!==null&&km(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function P0(e,t,l,a,s){switch(t){case"focusin":return ua=Js(ua,e,t,l,a,s),!0;case"dragenter":return ia=Js(ia,e,t,l,a,s),!0;case"mouseover":return ra=Js(ra,e,t,l,a,s),!0;case"pointerover":var i=s.pointerId;return Vs.set(i,Js(Vs.get(i)||null,e,t,l,a,s)),!0;case"gotpointercapture":return i=s.pointerId,ks.set(i,Js(ks.get(i)||null,e,t,l,a,s)),!0}return!1}function Wm(e){var t=ln(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,ff(e.priority,function(){Jm(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,ff(e.priority,function(){Jm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=lo(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);ar=a,l.target.dispatchEvent(a),ar=null}else return t=an(l),t!==null&&km(t),e.blockedOn=l,!1;t.shift()}return!0}function Im(e,t,l){Ni(e)&&l.delete(t)}function eg(){no=!1,ua!==null&&Ni(ua)&&(ua=null),ia!==null&&Ni(ia)&&(ia=null),ra!==null&&Ni(ra)&&(ra=null),Vs.forEach(Im),ks.forEach(Im)}function Ei(e,t){e.blockedOn===t&&(e.blockedOn=null,no||(no=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,eg)))}var Ci=null;function Pm(e){Ci!==e&&(Ci=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ci===e&&(Ci=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(ao(a||l)===null)continue;break}var i=an(l);i!==null&&(e.splice(t,3),t-=3,lc(i,{pending:!0,data:s,method:l.method,action:a},a,s))}}))}function Qn(e){function t(S){return Ei(S,e)}ua!==null&&Ei(ua,e),ia!==null&&Ei(ia,e),ra!==null&&Ei(ra,e),Vs.forEach(t),ks.forEach(t);for(var l=0;l<ca.length;l++){var a=ca[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ca.length&&(l=ca[0],l.blockedOn===null);)Wm(l),l.blockedOn===null&&ca.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var s=l[a],i=l[a+1],f=s[mt]||null;if(typeof i=="function")f||Pm(l);else if(f){var m=null;if(i&&i.hasAttribute("formAction")){if(s=i,f=i[mt]||null)m=f.formAction;else if(ao(s)!==null)continue}else m=f.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),Pm(l)}}}function ey(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function so(e){this._internalRoot=e}Ti.prototype.render=so.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=wt();Zm(l,a,e,t,null,null)},Ti.prototype.unmount=so.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zm(e.current,2,null,e,null,null),ui(),t[tn]=null}};function Ti(e){this._internalRoot=e}Ti.prototype.unstable_scheduleHydration=function(e){if(e){var t=of();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ca.length&&t!==0&&t<ca[l].priority;l++);ca.splice(l,0,e),l===0&&Wm(e)}};var ty=u.version;if(ty!=="19.2.4")throw Error(c(527,ty,"19.2.4"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var tg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oi.isDisabled&&Oi.supportsFiber)try{as=Oi.inject(tg),Ot=Oi}catch{}}return Ws.createRoot=function(e,t){if(!d(e))throw Error(c(299));var l=!1,a="",s=rh,i=ch,f=oh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Xm(e,1,!1,null,null,l,a,null,s,i,f,ey),e[tn]=t.current,Lc(e),new so(t)},Ws.hydrateRoot=function(e,t,l){if(!d(e))throw Error(c(299));var a=!1,s="",i=rh,f=ch,m=oh,S=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=Xm(e,1,!0,t,l??null,a,s,S,i,f,m,ey),t.context=Km(null),l=t.current,a=wt(),a=Fi(a),s=Jl(a),s.callback=null,Fl(l,s,a),l=a,t.current.lanes=l,ss(t,l),il(t),e[tn]=t.current,Lc(e),new Ti(t)},Ws.version="19.2.4",Ws}var dy;function hg(){if(dy)return co.exports;dy=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(u){console.error(u)}}return n(),co.exports=dg(),co.exports}var mg=hg(),In=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yg={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},da,Qo,Dy,vg=(Dy=class{constructor(){le(this,da,yg);le(this,Qo,!1)}setTimeoutProvider(n){W(this,da,n)}setTimeout(n,u){return j(this,da).setTimeout(n,u)}clearTimeout(n){j(this,da).clearTimeout(n)}setInterval(n,u){return j(this,da).setInterval(n,u)}clearInterval(n){j(this,da).clearInterval(n)}},da=new WeakMap,Qo=new WeakMap,Dy),Xa=new vg;function pg(n){setTimeout(n,0)}var Pa=typeof window>"u"||"Deno"in globalThis;function ht(){}function gg(n,u){return typeof n=="function"?n(u):n}function go(n){return typeof n=="number"&&n>=0&&n!==1/0}function Ky(n,u){return Math.max(n+(u||0)-Date.now(),0)}function ja(n,u){return typeof n=="function"?n(u):n}function Ft(n,u){return typeof n=="function"?n(u):n}function hy(n,u){const{type:r="all",exact:c,fetchStatus:d,predicate:h,queryKey:y,stale:p}=n;if(y){if(c){if(u.queryHash!==Yo(y,u.options))return!1}else if(!eu(u.queryKey,y))return!1}if(r!=="all"){const x=u.isActive();if(r==="active"&&!x||r==="inactive"&&x)return!1}return!(typeof p=="boolean"&&u.isStale()!==p||d&&d!==u.state.fetchStatus||h&&!h(u))}function my(n,u){const{exact:r,status:c,predicate:d,mutationKey:h}=n;if(h){if(!u.options.mutationKey)return!1;if(r){if(en(u.options.mutationKey)!==en(h))return!1}else if(!eu(u.options.mutationKey,h))return!1}return!(c&&u.state.status!==c||d&&!d(u))}function Yo(n,u){return((u==null?void 0:u.queryKeyHashFn)||en)(n)}function en(n){return JSON.stringify(n,(u,r)=>xo(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function eu(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(r=>eu(n[r],u[r])):!1}var xg=Object.prototype.hasOwnProperty;function Zy(n,u,r=0){if(n===u)return n;if(r>500)return u;const c=yy(n)&&yy(u);if(!c&&!(xo(n)&&xo(u)))return u;const h=(c?n:Object.keys(n)).length,y=c?u:Object.keys(u),p=y.length,x=c?new Array(p):{};let v=0;for(let b=0;b<p;b++){const g=c?b:y[b],_=n[g],D=u[g];if(_===D){x[g]=_,(c?b<h:xg.call(n,g))&&v++;continue}if(_===null||D===null||typeof _!="object"||typeof D!="object"){x[g]=D;continue}const K=Zy(_,D,r+1);x[g]=K,K===_&&v++}return h===p&&v===h?n:x}function Hi(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const r in n)if(n[r]!==u[r])return!1;return!0}function yy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function xo(n){if(!vy(n))return!1;const u=n.constructor;if(u===void 0)return!0;const r=u.prototype;return!(!vy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function vy(n){return Object.prototype.toString.call(n)==="[object Object]"}function bg(n){return new Promise(u=>{Xa.setTimeout(u,n)})}function bo(n,u,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,u):r.structuralSharing!==!1?Zy(n,u):u}function Sg(n,u,r=0){const c=[...n,u];return r&&c.length>r?c.slice(1):c}function jg(n,u,r=0){const c=[u,...n];return r&&c.length>r?c.slice(0,-1):c}var Go=Symbol();function Vy(n,u){return!n.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!n.queryFn||n.queryFn===Go?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Xo(n,u){return typeof n=="function"?n(...u):!!n}function Ng(n,u,r){let c=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??(d=u()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),n}var Ka,ha,Ln,Uy,Eg=(Uy=class extends In{constructor(){super();le(this,Ka);le(this,ha);le(this,Ln);W(this,Ln,u=>{if(!Pa&&window.addEventListener){const r=()=>u();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){j(this,ha)||this.setEventListener(j(this,Ln))}onUnsubscribe(){var u;this.hasListeners()||((u=j(this,ha))==null||u.call(this),W(this,ha,void 0))}setEventListener(u){var r;W(this,Ln,u),(r=j(this,ha))==null||r.call(this),W(this,ha,u(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(u){j(this,Ka)!==u&&(W(this,Ka,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(r=>{r(u)})}isFocused(){var u;return typeof j(this,Ka)=="boolean"?j(this,Ka):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},Ka=new WeakMap,ha=new WeakMap,Ln=new WeakMap,Uy),Ko=new Eg;function So(){let n,u;const r=new Promise((d,h)=>{n=d,u=h});r.status="pending",r.catch(()=>{});function c(d){Object.assign(r,d),delete r.resolve,delete r.reject}return r.resolve=d=>{c({status:"fulfilled",value:d}),n(d)},r.reject=d=>{c({status:"rejected",reason:d}),u(d)},r}var Cg=pg;function Tg(){let n=[],u=0,r=p=>{p()},c=p=>{p()},d=Cg;const h=p=>{u?n.push(p):d(()=>{r(p)})},y=()=>{const p=n;n=[],p.length&&d(()=>{c(()=>{p.forEach(x=>{r(x)})})})};return{batch:p=>{let x;u++;try{x=p()}finally{u--,u||y()}return x},batchCalls:p=>(...x)=>{h(()=>{p(...x)})},schedule:h,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{c=p},setScheduler:p=>{d=p}}}var $e=Tg(),Yn,ma,Gn,wy,Og=(wy=class extends In{constructor(){super();le(this,Yn,!0);le(this,ma);le(this,Gn);W(this,Gn,u=>{if(!Pa&&window.addEventListener){const r=()=>u(!0),c=()=>u(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){j(this,ma)||this.setEventListener(j(this,Gn))}onUnsubscribe(){var u;this.hasListeners()||((u=j(this,ma))==null||u.call(this),W(this,ma,void 0))}setEventListener(u){var r;W(this,Gn,u),(r=j(this,ma))==null||r.call(this),W(this,ma,u(this.setOnline.bind(this)))}setOnline(u){j(this,Yn)!==u&&(W(this,Yn,u),this.listeners.forEach(c=>{c(u)}))}isOnline(){return j(this,Yn)}},Yn=new WeakMap,ma=new WeakMap,Gn=new WeakMap,wy),qi=new Og;function Rg(n){return Math.min(1e3*2**n,3e4)}function ky(n){return(n??"online")==="online"?qi.isOnline():!0}var jo=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Jy(n){let u=!1,r=0,c;const d=So(),h=()=>d.status!=="pending",y=O=>{var Q;if(!h()){const w=new jo(O);_(w),(Q=n.onCancel)==null||Q.call(n,w)}},p=()=>{u=!0},x=()=>{u=!1},v=()=>Ko.isFocused()&&(n.networkMode==="always"||qi.isOnline())&&n.canRun(),b=()=>ky(n.networkMode)&&n.canRun(),g=O=>{h()||(c==null||c(),d.resolve(O))},_=O=>{h()||(c==null||c(),d.reject(O))},D=()=>new Promise(O=>{var Q;c=w=>{(h()||v())&&O(w)},(Q=n.onPause)==null||Q.call(n)}).then(()=>{var O;c=void 0,h()||(O=n.onContinue)==null||O.call(n)}),K=()=>{if(h())return;let O;const Q=r===0?n.initialPromise:void 0;try{O=Q??n.fn()}catch(w){O=Promise.reject(w)}Promise.resolve(O).then(g).catch(w=>{var Z;if(h())return;const Y=n.retry??(Pa?0:3),R=n.retryDelay??Rg,q=typeof R=="function"?R(r,w):R,J=Y===!0||typeof Y=="number"&&r<Y||typeof Y=="function"&&Y(r,w);if(u||!J){_(w);return}r++,(Z=n.onFail)==null||Z.call(n,r,w),bg(q).then(()=>v()?void 0:D()).then(()=>{u?_(w):K()})})};return{promise:d,status:()=>d.status,cancel:y,continue:()=>(c==null||c(),d),cancelRetry:p,continueRetry:x,canStart:b,start:()=>(b()?K():D().then(K),d)}}var Za,Hy,Fy=(Hy=class{constructor(){le(this,Za)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),go(this.gcTime)&&W(this,Za,Xa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Pa?1/0:300*1e3))}clearGcTimeout(){j(this,Za)&&(Xa.clearTimeout(j(this,Za)),W(this,Za,void 0))}},Za=new WeakMap,Hy),Va,Xn,Jt,ka,et,lu,Ja,tl,zl,qy,Ag=(qy=class extends Fy{constructor(u){super();le(this,tl);le(this,Va);le(this,Xn);le(this,Jt);le(this,ka);le(this,et);le(this,lu);le(this,Ja);W(this,Ja,!1),W(this,lu,u.defaultOptions),this.setOptions(u.options),this.observers=[],W(this,ka,u.client),W(this,Jt,j(this,ka).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,W(this,Va,gy(this.options)),this.state=u.state??j(this,Va),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var u;return(u=j(this,et))==null?void 0:u.promise}setOptions(u){if(this.options={...j(this,lu),...u},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=gy(this.options);r.data!==void 0&&(this.setState(py(r.data,r.dataUpdatedAt)),W(this,Va,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,Jt).remove(this)}setData(u,r){const c=bo(this.state.data,u,this.options);return oe(this,tl,zl).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(u,r){oe(this,tl,zl).call(this,{type:"setState",state:u,setStateOptions:r})}cancel(u){var c,d;const r=(c=j(this,et))==null?void 0:c.promise;return(d=j(this,et))==null||d.cancel(u),r?r.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Va))}isActive(){return this.observers.some(u=>Ft(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Go||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(u=>ja(u.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(u=0){return this.state.data===void 0?!0:u==="static"?!1:this.state.isInvalidated?!0:!Ky(this.state.dataUpdatedAt,u)}onFocus(){var r;const u=this.observers.find(c=>c.shouldFetchOnWindowFocus());u==null||u.refetch({cancelRefetch:!1}),(r=j(this,et))==null||r.continue()}onOnline(){var r;const u=this.observers.find(c=>c.shouldFetchOnReconnect());u==null||u.refetch({cancelRefetch:!1}),(r=j(this,et))==null||r.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),j(this,Jt).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){this.observers.includes(u)&&(this.observers=this.observers.filter(r=>r!==u),this.observers.length||(j(this,et)&&(j(this,Ja)?j(this,et).cancel({revert:!0}):j(this,et).cancelRetry()),this.scheduleGc()),j(this,Jt).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||oe(this,tl,zl).call(this,{type:"invalidate"})}async fetch(u,r){var x,v,b,g,_,D,K,O,Q,w,Y,R;if(this.state.fetchStatus!=="idle"&&((x=j(this,et))==null?void 0:x.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(j(this,et))return j(this,et).continueRetry(),j(this,et).promise}if(u&&this.setOptions(u),!this.options.queryFn){const q=this.observers.find(J=>J.options.queryFn);q&&this.setOptions(q.options)}const c=new AbortController,d=q=>{Object.defineProperty(q,"signal",{enumerable:!0,get:()=>(W(this,Ja,!0),c.signal)})},h=()=>{const q=Vy(this.options,r),Z=(()=>{const $={client:j(this,ka),queryKey:this.queryKey,meta:this.meta};return d($),$})();return W(this,Ja,!1),this.options.persister?this.options.persister(q,Z,this):q(Z)},p=(()=>{const q={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:j(this,ka),state:this.state,fetchFn:h};return d(q),q})();(v=this.options.behavior)==null||v.onFetch(p,this),W(this,Xn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=p.fetchOptions)==null?void 0:b.meta))&&oe(this,tl,zl).call(this,{type:"fetch",meta:(g=p.fetchOptions)==null?void 0:g.meta}),W(this,et,Jy({initialPromise:r==null?void 0:r.initialPromise,fn:p.fetchFn,onCancel:q=>{q instanceof jo&&q.revert&&this.setState({...j(this,Xn),fetchStatus:"idle"}),c.abort()},onFail:(q,J)=>{oe(this,tl,zl).call(this,{type:"failed",failureCount:q,error:J})},onPause:()=>{oe(this,tl,zl).call(this,{type:"pause"})},onContinue:()=>{oe(this,tl,zl).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const q=await j(this,et).start();if(q===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(q),(D=(_=j(this,Jt).config).onSuccess)==null||D.call(_,q,this),(O=(K=j(this,Jt).config).onSettled)==null||O.call(K,q,this.state.error,this),q}catch(q){if(q instanceof jo){if(q.silent)return j(this,et).promise;if(q.revert){if(this.state.data===void 0)throw q;return this.state.data}}throw oe(this,tl,zl).call(this,{type:"error",error:q}),(w=(Q=j(this,Jt).config).onError)==null||w.call(Q,q,this),(R=(Y=j(this,Jt).config).onSettled)==null||R.call(Y,this.state.data,q,this),q}finally{this.scheduleGc()}}},Va=new WeakMap,Xn=new WeakMap,Jt=new WeakMap,ka=new WeakMap,et=new WeakMap,lu=new WeakMap,Ja=new WeakMap,tl=new WeakSet,zl=function(u){const r=c=>{switch(u.type){case"failed":return{...c,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...$y(c.data,this.options),fetchMeta:u.meta??null};case"success":const d={...c,...py(u.data,u.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,Xn,u.manual?d:void 0),d;case"error":const h=u.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...u.state}}};this.state=r(this.state),$e.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),j(this,Jt).notify({query:this,type:"updated",action:u})})},qy);function $y(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ky(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function py(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function gy(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,r=u!==void 0,c=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var St,pe,au,dt,Fa,Kn,_l,ya,nu,Zn,Vn,$a,Wa,va,kn,Ee,Ps,No,Eo,Co,To,Oo,Ro,Ao,Wy,By,Mg=(By=class extends In{constructor(u,r){super();le(this,Ee);le(this,St);le(this,pe);le(this,au);le(this,dt);le(this,Fa);le(this,Kn);le(this,_l);le(this,ya);le(this,nu);le(this,Zn);le(this,Vn);le(this,$a);le(this,Wa);le(this,va);le(this,kn,new Set);this.options=r,W(this,St,u),W(this,ya,null),W(this,_l,So()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,pe).addObserver(this),xy(j(this,pe),this.options)?oe(this,Ee,Ps).call(this):this.updateResult(),oe(this,Ee,To).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mo(j(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mo(j(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,oe(this,Ee,Oo).call(this),oe(this,Ee,Ro).call(this),j(this,pe).removeObserver(this)}setOptions(u){const r=this.options,c=j(this,pe);if(this.options=j(this,St).defaultQueryOptions(u),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ft(this.options.enabled,j(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");oe(this,Ee,Ao).call(this),j(this,pe).setOptions(this.options),r._defaulted&&!Hi(this.options,r)&&j(this,St).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,pe),observer:this});const d=this.hasListeners();d&&by(j(this,pe),c,this.options,r)&&oe(this,Ee,Ps).call(this),this.updateResult(),d&&(j(this,pe)!==c||Ft(this.options.enabled,j(this,pe))!==Ft(r.enabled,j(this,pe))||ja(this.options.staleTime,j(this,pe))!==ja(r.staleTime,j(this,pe)))&&oe(this,Ee,No).call(this);const h=oe(this,Ee,Eo).call(this);d&&(j(this,pe)!==c||Ft(this.options.enabled,j(this,pe))!==Ft(r.enabled,j(this,pe))||h!==j(this,va))&&oe(this,Ee,Co).call(this,h)}getOptimisticResult(u){const r=j(this,St).getQueryCache().build(j(this,St),u),c=this.createResult(r,u);return _g(this,c)&&(W(this,dt,c),W(this,Kn,this.options),W(this,Fa,j(this,pe).state)),c}getCurrentResult(){return j(this,dt)}trackResult(u,r){return new Proxy(u,{get:(c,d)=>(this.trackProp(d),r==null||r(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&j(this,_l).status==="pending"&&j(this,_l).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,d))})}trackProp(u){j(this,kn).add(u)}getCurrentQuery(){return j(this,pe)}refetch({...u}={}){return this.fetch({...u})}fetchOptimistic(u){const r=j(this,St).defaultQueryOptions(u),c=j(this,St).getQueryCache().build(j(this,St),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(u){return oe(this,Ee,Ps).call(this,{...u,cancelRefetch:u.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,dt)))}createResult(u,r){var fe;const c=j(this,pe),d=this.options,h=j(this,dt),y=j(this,Fa),p=j(this,Kn),v=u!==c?u.state:j(this,au),{state:b}=u;let g={...b},_=!1,D;if(r._optimisticResults){const je=this.hasListeners(),He=!je&&xy(u,r),Ye=je&&by(u,c,r,d);(He||Ye)&&(g={...g,...$y(b.data,u.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:K,errorUpdatedAt:O,status:Q}=g;D=g.data;let w=!1;if(r.placeholderData!==void 0&&D===void 0&&Q==="pending"){let je;h!=null&&h.isPlaceholderData&&r.placeholderData===(p==null?void 0:p.placeholderData)?(je=h.data,w=!0):je=typeof r.placeholderData=="function"?r.placeholderData((fe=j(this,Vn))==null?void 0:fe.state.data,j(this,Vn)):r.placeholderData,je!==void 0&&(Q="success",D=bo(h==null?void 0:h.data,je,r),_=!0)}if(r.select&&D!==void 0&&!w)if(h&&D===(y==null?void 0:y.data)&&r.select===j(this,nu))D=j(this,Zn);else try{W(this,nu,r.select),D=r.select(D),D=bo(h==null?void 0:h.data,D,r),W(this,Zn,D),W(this,ya,null)}catch(je){W(this,ya,je)}j(this,ya)&&(K=j(this,ya),D=j(this,Zn),O=Date.now(),Q="error");const Y=g.fetchStatus==="fetching",R=Q==="pending",q=Q==="error",J=R&&Y,Z=D!==void 0,ee={status:Q,fetchStatus:g.fetchStatus,isPending:R,isSuccess:Q==="success",isError:q,isInitialLoading:J,isLoading:J,data:D,dataUpdatedAt:g.dataUpdatedAt,error:K,errorUpdatedAt:O,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>v.dataUpdateCount||g.errorUpdateCount>v.errorUpdateCount,isFetching:Y,isRefetching:Y&&!R,isLoadingError:q&&!Z,isPaused:g.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:q&&Z,isStale:Zo(u,r),refetch:this.refetch,promise:j(this,_l),isEnabled:Ft(r.enabled,u)!==!1};if(this.options.experimental_prefetchInRender){const je=ee.data!==void 0,He=ee.status==="error"&&!je,Ye=We=>{He?We.reject(ee.error):je&&We.resolve(ee.data)},qt=()=>{const We=W(this,_l,ee.promise=So());Ye(We)},it=j(this,_l);switch(it.status){case"pending":u.queryHash===c.queryHash&&Ye(it);break;case"fulfilled":(He||ee.data!==it.value)&&qt();break;case"rejected":(!He||ee.error!==it.reason)&&qt();break}}return ee}updateResult(){const u=j(this,dt),r=this.createResult(j(this,pe),this.options);if(W(this,Fa,j(this,pe).state),W(this,Kn,this.options),j(this,Fa).data!==void 0&&W(this,Vn,j(this,pe)),Hi(r,u))return;W(this,dt,r);const c=()=>{if(!u)return!0;const{notifyOnChangeProps:d}=this.options,h=typeof d=="function"?d():d;if(h==="all"||!h&&!j(this,kn).size)return!0;const y=new Set(h??j(this,kn));return this.options.throwOnError&&y.add("error"),Object.keys(j(this,dt)).some(p=>{const x=p;return j(this,dt)[x]!==u[x]&&y.has(x)})};oe(this,Ee,Wy).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&oe(this,Ee,To).call(this)}},St=new WeakMap,pe=new WeakMap,au=new WeakMap,dt=new WeakMap,Fa=new WeakMap,Kn=new WeakMap,_l=new WeakMap,ya=new WeakMap,nu=new WeakMap,Zn=new WeakMap,Vn=new WeakMap,$a=new WeakMap,Wa=new WeakMap,va=new WeakMap,kn=new WeakMap,Ee=new WeakSet,Ps=function(u){oe(this,Ee,Ao).call(this);let r=j(this,pe).fetch(this.options,u);return u!=null&&u.throwOnError||(r=r.catch(ht)),r},No=function(){oe(this,Ee,Oo).call(this);const u=ja(this.options.staleTime,j(this,pe));if(Pa||j(this,dt).isStale||!go(u))return;const c=Ky(j(this,dt).dataUpdatedAt,u)+1;W(this,$a,Xa.setTimeout(()=>{j(this,dt).isStale||this.updateResult()},c))},Eo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,pe)):this.options.refetchInterval)??!1},Co=function(u){oe(this,Ee,Ro).call(this),W(this,va,u),!(Pa||Ft(this.options.enabled,j(this,pe))===!1||!go(j(this,va))||j(this,va)===0)&&W(this,Wa,Xa.setInterval(()=>{(this.options.refetchIntervalInBackground||Ko.isFocused())&&oe(this,Ee,Ps).call(this)},j(this,va)))},To=function(){oe(this,Ee,No).call(this),oe(this,Ee,Co).call(this,oe(this,Ee,Eo).call(this))},Oo=function(){j(this,$a)&&(Xa.clearTimeout(j(this,$a)),W(this,$a,void 0))},Ro=function(){j(this,Wa)&&(Xa.clearInterval(j(this,Wa)),W(this,Wa,void 0))},Ao=function(){const u=j(this,St).getQueryCache().build(j(this,St),this.options);if(u===j(this,pe))return;const r=j(this,pe);W(this,pe,u),W(this,au,u.state),this.hasListeners()&&(r==null||r.removeObserver(this),u.addObserver(this))},Wy=function(u){$e.batch(()=>{u.listeners&&this.listeners.forEach(r=>{r(j(this,dt))}),j(this,St).getQueryCache().notify({query:j(this,pe),type:"observerResultsUpdated"})})},By);function zg(n,u){return Ft(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function xy(n,u){return zg(n,u)||n.state.data!==void 0&&Mo(n,u,u.refetchOnMount)}function Mo(n,u,r){if(Ft(u.enabled,n)!==!1&&ja(u.staleTime,n)!=="static"){const c=typeof r=="function"?r(n):r;return c==="always"||c!==!1&&Zo(n,u)}return!1}function by(n,u,r,c){return(n!==u||Ft(c.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Zo(n,r)}function Zo(n,u){return Ft(u.enabled,n)!==!1&&n.isStaleByTime(ja(u.staleTime,n))}function _g(n,u){return!Hi(n.getCurrentResult(),u)}function Sy(n){return{onFetch:(u,r)=>{var b,g,_,D,K;const c=u.options,d=(_=(g=(b=u.fetchOptions)==null?void 0:b.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,h=((D=u.state.data)==null?void 0:D.pages)||[],y=((K=u.state.data)==null?void 0:K.pageParams)||[];let p={pages:[],pageParams:[]},x=0;const v=async()=>{let O=!1;const Q=R=>{Ng(R,()=>u.signal,()=>O=!0)},w=Vy(u.options,u.fetchOptions),Y=async(R,q,J)=>{if(O)return Promise.reject();if(q==null&&R.pages.length)return Promise.resolve(R);const $=(()=>{const He={client:u.client,queryKey:u.queryKey,pageParam:q,direction:J?"backward":"forward",meta:u.options.meta};return Q(He),He})(),ee=await w($),{maxPages:fe}=u.options,je=J?jg:Sg;return{pages:je(R.pages,ee,fe),pageParams:je(R.pageParams,q,fe)}};if(d&&h.length){const R=d==="backward",q=R?Dg:jy,J={pages:h,pageParams:y},Z=q(c,J);p=await Y(J,Z,R)}else{const R=n??h.length;do{const q=x===0?y[0]??c.initialPageParam:jy(c,p);if(x>0&&q==null)break;p=await Y(p,q),x++}while(x<R)}return p};u.options.persister?u.fetchFn=()=>{var O,Q;return(Q=(O=u.options).persister)==null?void 0:Q.call(O,v,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},r)}:u.fetchFn=v}}}function jy(n,{pages:u,pageParams:r}){const c=u.length-1;return u.length>0?n.getNextPageParam(u[c],u,r[c],r):void 0}function Dg(n,{pages:u,pageParams:r}){var c;return u.length>0?(c=n.getPreviousPageParam)==null?void 0:c.call(n,u[0],u,r[0],r):void 0}var su,cl,ct,Ia,ol,fa,Qy,Ug=(Qy=class extends Fy{constructor(u){super();le(this,ol);le(this,su);le(this,cl);le(this,ct);le(this,Ia);W(this,su,u.client),this.mutationId=u.mutationId,W(this,ct,u.mutationCache),W(this,cl,[]),this.state=u.state||Iy(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){j(this,cl).includes(u)||(j(this,cl).push(u),this.clearGcTimeout(),j(this,ct).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){W(this,cl,j(this,cl).filter(r=>r!==u)),this.scheduleGc(),j(this,ct).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){j(this,cl).length||(this.state.status==="pending"?this.scheduleGc():j(this,ct).remove(this))}continue(){var u;return((u=j(this,Ia))==null?void 0:u.continue())??this.execute(this.state.variables)}async execute(u){var y,p,x,v,b,g,_,D,K,O,Q,w,Y,R,q,J,Z,$;const r=()=>{oe(this,ol,fa).call(this,{type:"continue"})},c={client:j(this,su),meta:this.options.meta,mutationKey:this.options.mutationKey};W(this,Ia,Jy({fn:()=>this.options.mutationFn?this.options.mutationFn(u,c):Promise.reject(new Error("No mutationFn found")),onFail:(ee,fe)=>{oe(this,ol,fa).call(this,{type:"failed",failureCount:ee,error:fe})},onPause:()=>{oe(this,ol,fa).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,ct).canRun(this)}));const d=this.state.status==="pending",h=!j(this,Ia).canStart();try{if(d)r();else{oe(this,ol,fa).call(this,{type:"pending",variables:u,isPaused:h}),j(this,ct).config.onMutate&&await j(this,ct).config.onMutate(u,this,c);const fe=await((p=(y=this.options).onMutate)==null?void 0:p.call(y,u,c));fe!==this.state.context&&oe(this,ol,fa).call(this,{type:"pending",context:fe,variables:u,isPaused:h})}const ee=await j(this,Ia).start();return await((v=(x=j(this,ct).config).onSuccess)==null?void 0:v.call(x,ee,u,this.state.context,this,c)),await((g=(b=this.options).onSuccess)==null?void 0:g.call(b,ee,u,this.state.context,c)),await((D=(_=j(this,ct).config).onSettled)==null?void 0:D.call(_,ee,null,this.state.variables,this.state.context,this,c)),await((O=(K=this.options).onSettled)==null?void 0:O.call(K,ee,null,u,this.state.context,c)),oe(this,ol,fa).call(this,{type:"success",data:ee}),ee}catch(ee){try{await((w=(Q=j(this,ct).config).onError)==null?void 0:w.call(Q,ee,u,this.state.context,this,c))}catch(fe){Promise.reject(fe)}try{await((R=(Y=this.options).onError)==null?void 0:R.call(Y,ee,u,this.state.context,c))}catch(fe){Promise.reject(fe)}try{await((J=(q=j(this,ct).config).onSettled)==null?void 0:J.call(q,void 0,ee,this.state.variables,this.state.context,this,c))}catch(fe){Promise.reject(fe)}try{await(($=(Z=this.options).onSettled)==null?void 0:$.call(Z,void 0,ee,u,this.state.context,c))}catch(fe){Promise.reject(fe)}throw oe(this,ol,fa).call(this,{type:"error",error:ee}),ee}finally{j(this,ct).runNext(this)}}},su=new WeakMap,cl=new WeakMap,ct=new WeakMap,Ia=new WeakMap,ol=new WeakSet,fa=function(u){const r=c=>{switch(u.type){case"failed":return{...c,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...c,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:u.error,failureCount:c.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=r(this.state),$e.batch(()=>{j(this,cl).forEach(c=>{c.onMutationUpdate(u)}),j(this,ct).notify({mutation:this,type:"updated",action:u})})},Qy);function Iy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Dl,ll,uu,Ly,wg=(Ly=class extends In{constructor(u={}){super();le(this,Dl);le(this,ll);le(this,uu);this.config=u,W(this,Dl,new Set),W(this,ll,new Map),W(this,uu,0)}build(u,r,c){const d=new Ug({client:u,mutationCache:this,mutationId:++Ri(this,uu)._,options:u.defaultMutationOptions(r),state:c});return this.add(d),d}add(u){j(this,Dl).add(u);const r=Ai(u);if(typeof r=="string"){const c=j(this,ll).get(r);c?c.push(u):j(this,ll).set(r,[u])}this.notify({type:"added",mutation:u})}remove(u){if(j(this,Dl).delete(u)){const r=Ai(u);if(typeof r=="string"){const c=j(this,ll).get(r);if(c)if(c.length>1){const d=c.indexOf(u);d!==-1&&c.splice(d,1)}else c[0]===u&&j(this,ll).delete(r)}}this.notify({type:"removed",mutation:u})}canRun(u){const r=Ai(u);if(typeof r=="string"){const c=j(this,ll).get(r),d=c==null?void 0:c.find(h=>h.state.status==="pending");return!d||d===u}else return!0}runNext(u){var c;const r=Ai(u);if(typeof r=="string"){const d=(c=j(this,ll).get(r))==null?void 0:c.find(h=>h!==u&&h.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$e.batch(()=>{j(this,Dl).forEach(u=>{this.notify({type:"removed",mutation:u})}),j(this,Dl).clear(),j(this,ll).clear()})}getAll(){return Array.from(j(this,Dl))}find(u){const r={exact:!0,...u};return this.getAll().find(c=>my(r,c))}findAll(u={}){return this.getAll().filter(r=>my(u,r))}notify(u){$e.batch(()=>{this.listeners.forEach(r=>{r(u)})})}resumePausedMutations(){const u=this.getAll().filter(r=>r.state.isPaused);return $e.batch(()=>Promise.all(u.map(r=>r.continue().catch(ht))))}},Dl=new WeakMap,ll=new WeakMap,uu=new WeakMap,Ly);function Ai(n){var u;return(u=n.options.scope)==null?void 0:u.id}var Ul,pa,jt,wl,ql,_i,zo,Yy,Hg=(Yy=class extends In{constructor(r,c){super();le(this,ql);le(this,Ul);le(this,pa);le(this,jt);le(this,wl);W(this,Ul,r),this.setOptions(c),this.bindMethods(),oe(this,ql,_i).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var d;const c=this.options;this.options=j(this,Ul).defaultMutationOptions(r),Hi(this.options,c)||j(this,Ul).getMutationCache().notify({type:"observerOptionsUpdated",mutation:j(this,jt),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&en(c.mutationKey)!==en(this.options.mutationKey)?this.reset():((d=j(this,jt))==null?void 0:d.state.status)==="pending"&&j(this,jt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=j(this,jt))==null||r.removeObserver(this)}onMutationUpdate(r){oe(this,ql,_i).call(this),oe(this,ql,zo).call(this,r)}getCurrentResult(){return j(this,pa)}reset(){var r;(r=j(this,jt))==null||r.removeObserver(this),W(this,jt,void 0),oe(this,ql,_i).call(this),oe(this,ql,zo).call(this)}mutate(r,c){var d;return W(this,wl,c),(d=j(this,jt))==null||d.removeObserver(this),W(this,jt,j(this,Ul).getMutationCache().build(j(this,Ul),this.options)),j(this,jt).addObserver(this),j(this,jt).execute(r)}},Ul=new WeakMap,pa=new WeakMap,jt=new WeakMap,wl=new WeakMap,ql=new WeakSet,_i=function(){var c;const r=((c=j(this,jt))==null?void 0:c.state)??Iy();W(this,pa,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},zo=function(r){$e.batch(()=>{var c,d,h,y,p,x,v,b;if(j(this,wl)&&this.hasListeners()){const g=j(this,pa).variables,_=j(this,pa).context,D={client:j(this,Ul),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(d=(c=j(this,wl)).onSuccess)==null||d.call(c,r.data,g,_,D)}catch(K){Promise.reject(K)}try{(y=(h=j(this,wl)).onSettled)==null||y.call(h,r.data,null,g,_,D)}catch(K){Promise.reject(K)}}else if((r==null?void 0:r.type)==="error"){try{(x=(p=j(this,wl)).onError)==null||x.call(p,r.error,g,_,D)}catch(K){Promise.reject(K)}try{(b=(v=j(this,wl)).onSettled)==null||b.call(v,void 0,r.error,g,_,D)}catch(K){Promise.reject(K)}}}this.listeners.forEach(g=>{g(j(this,pa))})})},Yy),fl,Gy,qg=(Gy=class extends In{constructor(u={}){super();le(this,fl);this.config=u,W(this,fl,new Map)}build(u,r,c){const d=r.queryKey,h=r.queryHash??Yo(d,r);let y=this.get(h);return y||(y=new Ag({client:u,queryKey:d,queryHash:h,options:u.defaultQueryOptions(r),state:c,defaultOptions:u.getQueryDefaults(d)}),this.add(y)),y}add(u){j(this,fl).has(u.queryHash)||(j(this,fl).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){const r=j(this,fl).get(u.queryHash);r&&(u.destroy(),r===u&&j(this,fl).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){$e.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return j(this,fl).get(u)}getAll(){return[...j(this,fl).values()]}find(u){const r={exact:!0,...u};return this.getAll().find(c=>hy(r,c))}findAll(u={}){const r=this.getAll();return Object.keys(u).length>0?r.filter(c=>hy(u,c)):r}notify(u){$e.batch(()=>{this.listeners.forEach(r=>{r(u)})})}onFocus(){$e.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){$e.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},fl=new WeakMap,Gy),Qe,ga,xa,Jn,Fn,ba,$n,Wn,Xy,Bg=(Xy=class{constructor(n={}){le(this,Qe);le(this,ga);le(this,xa);le(this,Jn);le(this,Fn);le(this,ba);le(this,$n);le(this,Wn);W(this,Qe,n.queryCache||new qg),W(this,ga,n.mutationCache||new wg),W(this,xa,n.defaultOptions||{}),W(this,Jn,new Map),W(this,Fn,new Map),W(this,ba,0)}mount(){Ri(this,ba)._++,j(this,ba)===1&&(W(this,$n,Ko.subscribe(async n=>{n&&(await this.resumePausedMutations(),j(this,Qe).onFocus())})),W(this,Wn,qi.subscribe(async n=>{n&&(await this.resumePausedMutations(),j(this,Qe).onOnline())})))}unmount(){var n,u;Ri(this,ba)._--,j(this,ba)===0&&((n=j(this,$n))==null||n.call(this),W(this,$n,void 0),(u=j(this,Wn))==null||u.call(this),W(this,Wn,void 0))}isFetching(n){return j(this,Qe).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return j(this,ga).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const u=this.defaultQueryOptions({queryKey:n});return(r=j(this,Qe).get(u.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),r=j(this,Qe).build(this,u),c=r.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(ja(u.staleTime,r))&&this.prefetchQuery(u),Promise.resolve(c))}getQueriesData(n){return j(this,Qe).findAll(n).map(({queryKey:u,state:r})=>{const c=r.data;return[u,c]})}setQueryData(n,u,r){const c=this.defaultQueryOptions({queryKey:n}),d=j(this,Qe).get(c.queryHash),h=d==null?void 0:d.state.data,y=gg(u,h);if(y!==void 0)return j(this,Qe).build(this,c).setData(y,{...r,manual:!0})}setQueriesData(n,u,r){return $e.batch(()=>j(this,Qe).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,u,r)]))}getQueryState(n){var r;const u=this.defaultQueryOptions({queryKey:n});return(r=j(this,Qe).get(u.queryHash))==null?void 0:r.state}removeQueries(n){const u=j(this,Qe);$e.batch(()=>{u.findAll(n).forEach(r=>{u.remove(r)})})}resetQueries(n,u){const r=j(this,Qe);return $e.batch(()=>(r.findAll(n).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const r={revert:!0,...u},c=$e.batch(()=>j(this,Qe).findAll(n).map(d=>d.cancel(r)));return Promise.all(c).then(ht).catch(ht)}invalidateQueries(n,u={}){return $e.batch(()=>(j(this,Qe).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},u)))}refetchQueries(n,u={}){const r={...u,cancelRefetch:u.cancelRefetch??!0},c=$e.batch(()=>j(this,Qe).findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let h=d.fetch(void 0,r);return r.throwOnError||(h=h.catch(ht)),d.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(ht)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const r=j(this,Qe).build(this,u);return r.isStaleByTime(ja(u.staleTime,r))?r.fetch(u):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ht).catch(ht)}fetchInfiniteQuery(n){return n.behavior=Sy(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ht).catch(ht)}ensureInfiniteQueryData(n){return n.behavior=Sy(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return qi.isOnline()?j(this,ga).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,Qe)}getMutationCache(){return j(this,ga)}getDefaultOptions(){return j(this,xa)}setDefaultOptions(n){W(this,xa,n)}setQueryDefaults(n,u){j(this,Jn).set(en(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...j(this,Jn).values()],r={};return u.forEach(c=>{eu(n,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(n,u){j(this,Fn).set(en(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...j(this,Fn).values()],r={};return u.forEach(c=>{eu(n,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const u={...j(this,xa).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Yo(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Go&&(u.enabled=!1),u}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...j(this,xa).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){j(this,Qe).clear(),j(this,ga).clear()}},Qe=new WeakMap,ga=new WeakMap,xa=new WeakMap,Jn=new WeakMap,Fn=new WeakMap,ba=new WeakMap,$n=new WeakMap,Wn=new WeakMap,Xy),Py=N.createContext(void 0),iu=n=>{const u=N.useContext(Py);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},Qg=({client:n,children:u})=>(N.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),o.jsx(Py.Provider,{value:n,children:u})),ev=N.createContext(!1),Lg=()=>N.useContext(ev);ev.Provider;function Yg(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Gg=N.createContext(Yg()),Xg=()=>N.useContext(Gg),Kg=(n,u,r)=>{const c=r!=null&&r.state.error&&typeof n.throwOnError=="function"?Xo(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||c)&&(u.isReset()||(n.retryOnMount=!1))},Zg=n=>{N.useEffect(()=>{n.clearReset()},[n])},Vg=({result:n,errorResetBoundary:u,throwOnError:r,query:c,suspense:d})=>n.isError&&!u.isReset()&&!n.isFetching&&c&&(d&&n.data===void 0||Xo(r,[n.error,c])),kg=n=>{if(n.suspense){const r=d=>d==="static"?d:Math.max(d??1e3,1e3),c=n.staleTime;n.staleTime=typeof c=="function"?(...d)=>r(c(...d)):r(c),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Jg=(n,u)=>n.isLoading&&n.isFetching&&!u,Fg=(n,u)=>(n==null?void 0:n.suspense)&&u.isPending,Ny=(n,u,r)=>u.fetchOptimistic(n).catch(()=>{r.clearReset()});function $g(n,u,r){var _,D,K,O;const c=Lg(),d=Xg(),h=iu(),y=h.defaultQueryOptions(n);(D=(_=h.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||D.call(_,y);const p=h.getQueryCache().get(y.queryHash);y._optimisticResults=c?"isRestoring":"optimistic",kg(y),Kg(y,d,p),Zg(d);const x=!h.getQueryCache().get(y.queryHash),[v]=N.useState(()=>new u(h,y)),b=v.getOptimisticResult(y),g=!c&&n.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(Q=>{const w=g?v.subscribe($e.batchCalls(Q)):ht;return v.updateResult(),w},[v,g]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),N.useEffect(()=>{v.setOptions(y)},[y,v]),Fg(y,b))throw Ny(y,v,d);if(Vg({result:b,errorResetBoundary:d,throwOnError:y.throwOnError,query:p,suspense:y.suspense}))throw b.error;if((O=(K=h.getDefaultOptions().queries)==null?void 0:K._experimental_afterQuery)==null||O.call(K,y,b),y.experimental_prefetchInRender&&!Pa&&Jg(b,c)){const Q=x?Ny(y,v,d):p==null?void 0:p.promise;Q==null||Q.catch(ht).finally(()=>{v.updateResult()})}return y.notifyOnChangeProps?b:v.trackResult(b)}function Wt(n,u){return $g(n,Mg)}function _o(n,u){const r=iu(),[c]=N.useState(()=>new Hg(r,n));N.useEffect(()=>{c.setOptions(n)},[c,n]);const d=N.useSyncExternalStore(N.useCallback(y=>c.subscribe($e.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h=N.useCallback((y,p)=>{c.mutate(y,p).catch(ht)},[c]);if(d.error&&Xo(c.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:h,mutateAsync:d.mutate}}const Wg=new Bg({defaultOptions:{queries:{staleTime:5e3,retry:1}}});/**
50
- * react-router v7.13.0
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 Ey="popstate";function Ig(n={}){function u(c,d){let{pathname:h,search:y,hash:p}=c.location;return Do("",{pathname:h,search:y,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){return typeof d=="string"?d:tu(d)}return ex(u,r,null,n)}function we(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function al(n,u){if(!n){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Pg(){return Math.random().toString(36).substring(2,10)}function Cy(n,u){return{usr:n.state,key:n.key,idx:u}}function Do(n,u,r=null,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?Pn(u):u,state:r,key:u&&u.key||c||Pg()}}function tu({pathname:n="/",search:u="",hash:r=""}){return u&&u!=="?"&&(n+=u.charAt(0)==="?"?u:"?"+u),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Pn(n){let u={};if(n){let r=n.indexOf("#");r>=0&&(u.hash=n.substring(r),n=n.substring(0,r));let c=n.indexOf("?");c>=0&&(u.search=n.substring(c),n=n.substring(0,c)),n&&(u.pathname=n)}return u}function ex(n,u,r,c={}){let{window:d=document.defaultView,v5Compat:h=!1}=c,y=d.history,p="POP",x=null,v=b();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function b(){return(y.state||{idx:null}).idx}function g(){p="POP";let Q=b(),w=Q==null?null:Q-v;v=Q,x&&x({action:p,location:O.location,delta:w})}function _(Q,w){p="PUSH";let Y=Do(O.location,Q,w);v=b()+1;let R=Cy(Y,v),q=O.createHref(Y);try{y.pushState(R,"",q)}catch(J){if(J instanceof DOMException&&J.name==="DataCloneError")throw J;d.location.assign(q)}h&&x&&x({action:p,location:O.location,delta:1})}function D(Q,w){p="REPLACE";let Y=Do(O.location,Q,w);v=b();let R=Cy(Y,v),q=O.createHref(Y);y.replaceState(R,"",q),h&&x&&x({action:p,location:O.location,delta:0})}function K(Q){return tx(Q)}let O={get action(){return p},get location(){return n(d,y)},listen(Q){if(x)throw new Error("A history only accepts one active listener");return d.addEventListener(Ey,g),x=Q,()=>{d.removeEventListener(Ey,g),x=null}},createHref(Q){return u(d,Q)},createURL:K,encodeLocation(Q){let w=K(Q);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:_,replace:D,go(Q){return y.go(Q)}};return O}function tx(n,u=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),we(r,"No window.location.(origin|href) available to create URL");let c=typeof n=="string"?n:tu(n);return c=c.replace(/ $/,"%20"),!u&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function tv(n,u,r="/"){return lx(n,u,r,!1)}function lx(n,u,r,c){let d=typeof u=="string"?Pn(u):u,h=Bl(d.pathname||"/",r);if(h==null)return null;let y=lv(n);ax(y);let p=null;for(let x=0;p==null&&x<y.length;++x){let v=mx(h);p=dx(y[x],v,c)}return p}function lv(n,u=[],r=[],c="",d=!1){let h=(y,p,x=d,v)=>{let b={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:p,route:y};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(c)&&x)return;we(b.relativePath.startsWith(c),`Absolute route path "${b.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(c.length)}let g=Hl([c,b.relativePath]),_=r.concat(b);y.children&&y.children.length>0&&(we(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),lv(y.children,u,_,g,x)),!(y.path==null&&!y.index)&&u.push({path:g,score:ox(g,y.index),routesMeta:_})};return n.forEach((y,p)=>{var x;if(y.path===""||!((x=y.path)!=null&&x.includes("?")))h(y,p);else for(let v of av(y.path))h(y,p,!0,v)}),u}function av(n){let u=n.split("/");if(u.length===0)return[];let[r,...c]=u,d=r.endsWith("?"),h=r.replace(/\?$/,"");if(c.length===0)return d?[h,""]:[h];let y=av(c.join("/")),p=[];return p.push(...y.map(x=>x===""?h:[h,x].join("/"))),d&&p.push(...y),p.map(x=>n.startsWith("/")&&x===""?"/":x)}function ax(n){n.sort((u,r)=>u.score!==r.score?r.score-u.score:fx(u.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var nx=/^:[\w-]+$/,sx=3,ux=2,ix=1,rx=10,cx=-2,Ty=n=>n==="*";function ox(n,u){let r=n.split("/"),c=r.length;return r.some(Ty)&&(c+=cx),u&&(c+=ux),r.filter(d=>!Ty(d)).reduce((d,h)=>d+(nx.test(h)?sx:h===""?ix:rx),c)}function fx(n,u){return n.length===u.length&&n.slice(0,-1).every((c,d)=>c===u[d])?n[n.length-1]-u[u.length-1]:0}function dx(n,u,r=!1){let{routesMeta:c}=n,d={},h="/",y=[];for(let p=0;p<c.length;++p){let x=c[p],v=p===c.length-1,b=h==="/"?u:u.slice(h.length)||"/",g=Bi({path:x.relativePath,caseSensitive:x.caseSensitive,end:v},b),_=x.route;if(!g&&v&&r&&!c[c.length-1].route.index&&(g=Bi({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},b)),!g)return null;Object.assign(d,g.params),y.push({params:d,pathname:Hl([h,g.pathname]),pathnameBase:gx(Hl([h,g.pathnameBase])),route:_}),g.pathnameBase!=="/"&&(h=Hl([h,g.pathnameBase]))}return y}function Bi(n,u){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,c]=hx(n.path,n.caseSensitive,n.end),d=u.match(r);if(!d)return null;let h=d[0],y=h.replace(/(.)\/+$/,"$1"),p=d.slice(1);return{params:c.reduce((v,{paramName:b,isOptional:g},_)=>{if(b==="*"){let K=p[_]||"";y=h.slice(0,h.length-K.length).replace(/(.)\/+$/,"$1")}const D=p[_];return g&&!D?v[b]=void 0:v[b]=(D||"").replace(/%2F/g,"/"),v},{}),pathname:h,pathnameBase:y,pattern:n}}function hx(n,u=!1,r=!0){al(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 c=[],d="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,p,x)=>(c.push({paramName:p,isOptional:x!=null}),x?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(c.push({paramName:"*"}),d+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":n!==""&&n!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,u?void 0:"i"),c]}function mx(n){try{return n.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return al(!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 (${u}).`),n}}function Bl(n,u){if(u==="/")return n;if(!n.toLowerCase().startsWith(u.toLowerCase()))return null;let r=u.endsWith("/")?u.length-1:u.length,c=n.charAt(r);return c&&c!=="/"?null:n.slice(r)||"/"}var yx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function vx(n,u="/"){let{pathname:r,search:c="",hash:d=""}=typeof n=="string"?Pn(n):n,h;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?h=Oy(r.substring(1),"/"):h=Oy(r,u)):h=u,{pathname:h,search:xx(c),hash:bx(d)}}function Oy(n,u){let r=u.replace(/\/+$/,"").split("/");return n.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function mo(n,u,r,c){return`Cannot include a '${n}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. 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 px(n){return n.filter((u,r)=>r===0||u.route.path&&u.route.path.length>0)}function Vo(n){let u=px(n);return u.map((r,c)=>c===u.length-1?r.pathname:r.pathnameBase)}function ko(n,u,r,c=!1){let d;typeof n=="string"?d=Pn(n):(d={...n},we(!d.pathname||!d.pathname.includes("?"),mo("?","pathname","search",d)),we(!d.pathname||!d.pathname.includes("#"),mo("#","pathname","hash",d)),we(!d.search||!d.search.includes("#"),mo("#","search","hash",d)));let h=n===""||d.pathname==="",y=h?"/":d.pathname,p;if(y==null)p=r;else{let g=u.length-1;if(!c&&y.startsWith("..")){let _=y.split("/");for(;_[0]==="..";)_.shift(),g-=1;d.pathname=_.join("/")}p=g>=0?u[g]:"/"}let x=vx(d,p),v=y&&y!=="/"&&y.endsWith("/"),b=(h||y===".")&&r.endsWith("/");return!x.pathname.endsWith("/")&&(v||b)&&(x.pathname+="/"),x}var Hl=n=>n.join("/").replace(/\/\/+/g,"/"),gx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),xx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,bx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Sx=class{constructor(n,u,r,c=!1){this.status=n,this.statusText=u||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function jx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Nx(n){return n.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var nv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sv(n,u){let r=n;if(typeof r!="string"||!yx.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(nv)try{let h=new URL(window.location.href),y=r.startsWith("//")?new URL(h.protocol+r):new URL(r),p=Bl(y.pathname,u);y.origin===h.origin&&p!=null?r=p+y.search+y.hash:d=!0}catch{al(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var uv=["POST","PUT","PATCH","DELETE"];new Set(uv);var Ex=["GET",...uv];new Set(Ex);var es=N.createContext(null);es.displayName="DataRouter";var Li=N.createContext(null);Li.displayName="DataRouterState";var Cx=N.createContext(!1),iv=N.createContext({isTransitioning:!1});iv.displayName="ViewTransition";var Tx=N.createContext(new Map);Tx.displayName="Fetchers";var Ox=N.createContext(null);Ox.displayName="Await";var Ht=N.createContext(null);Ht.displayName="Navigation";var ru=N.createContext(null);ru.displayName="Location";var dl=N.createContext({outlet:null,matches:[],isDataRoute:!1});dl.displayName="Route";var Jo=N.createContext(null);Jo.displayName="RouteError";var rv="REACT_ROUTER_ERROR",Rx="REDIRECT",Ax="ROUTE_ERROR_RESPONSE";function Mx(n){if(n.startsWith(`${rv}:${Rx}:{`))try{let u=JSON.parse(n.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function zx(n){if(n.startsWith(`${rv}:${Ax}:{`))try{let u=JSON.parse(n.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new Sx(u.status,u.statusText,u.data)}catch{}}function _x(n,{relative:u}={}){we(ts(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=N.useContext(Ht),{hash:d,pathname:h,search:y}=cu(n,{relative:u}),p=h;return r!=="/"&&(p=h==="/"?r:Hl([r,h])),c.createHref({pathname:p,search:y,hash:d})}function ts(){return N.useContext(ru)!=null}function Na(){return we(ts(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(ru).location}var cv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ov(n){N.useContext(Ht).static||N.useLayoutEffect(n)}function fv(){let{isDataRoute:n}=N.useContext(dl);return n?Zx():Dx()}function Dx(){we(ts(),"useNavigate() may be used only in the context of a <Router> component.");let n=N.useContext(es),{basename:u,navigator:r}=N.useContext(Ht),{matches:c}=N.useContext(dl),{pathname:d}=Na(),h=JSON.stringify(Vo(c)),y=N.useRef(!1);return ov(()=>{y.current=!0}),N.useCallback((x,v={})=>{if(al(y.current,cv),!y.current)return;if(typeof x=="number"){r.go(x);return}let b=ko(x,JSON.parse(h),d,v.relative==="path");n==null&&u!=="/"&&(b.pathname=b.pathname==="/"?u:Hl([u,b.pathname])),(v.replace?r.replace:r.push)(b,v.state,v)},[u,r,h,d,n])}N.createContext(null);function cu(n,{relative:u}={}){let{matches:r}=N.useContext(dl),{pathname:c}=Na(),d=JSON.stringify(Vo(r));return N.useMemo(()=>ko(n,JSON.parse(d),c,u==="path"),[n,d,c,u])}function Ux(n,u){return dv(n,u)}function dv(n,u,r,c,d){var Y;we(ts(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=N.useContext(Ht),{matches:y}=N.useContext(dl),p=y[y.length-1],x=p?p.params:{},v=p?p.pathname:"/",b=p?p.pathnameBase:"/",g=p&&p.route;{let R=g&&g.path||"";mv(v,!g||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let _=Na(),D;if(u){let R=typeof u=="string"?Pn(u):u;we(b==="/"||((Y=R.pathname)==null?void 0:Y.startsWith(b)),`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 "${b}" but pathname "${R.pathname}" was given in the \`location\` prop.`),D=R}else D=_;let K=D.pathname||"/",O=K;if(b!=="/"){let R=b.replace(/^\//,"").split("/");O="/"+K.replace(/^\//,"").split("/").slice(R.length).join("/")}let Q=tv(n,{pathname:O});al(g||Q!=null,`No routes matched location "${D.pathname}${D.search}${D.hash}" `),al(Q==null||Q[Q.length-1].route.element!==void 0||Q[Q.length-1].route.Component!==void 0||Q[Q.length-1].route.lazy!==void 0,`Matched leaf route at location "${D.pathname}${D.search}${D.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=Qx(Q&&Q.map(R=>Object.assign({},R,{params:Object.assign({},x,R.params),pathname:Hl([b,h.encodeLocation?h.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?b:Hl([b,h.encodeLocation?h.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),y,r,c,d);return u&&w?N.createElement(ru.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...D},navigationType:"POP"}},w):w}function wx(){let n=Kx(),u=jx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},h={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",n),y=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:h},"ErrorBoundary")," or"," ",N.createElement("code",{style:h},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},u),r?N.createElement("pre",{style:d},r):null,y)}var Hx=N.createElement(wx,null),hv=class extends N.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,u){return u.location!==n.location||u.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:u.error,location:u.location,revalidation:n.revalidation||u.revalidation}}componentDidCatch(n,u){this.props.onError?this.props.onError(n,u):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=zx(n.digest);r&&(n=r)}let u=n!==void 0?N.createElement(dl.Provider,{value:this.props.routeContext},N.createElement(Jo.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?N.createElement(qx,{error:n},u):u}};hv.contextType=Cx;var yo=new WeakMap;function qx({children:n,error:u}){let{basename:r}=N.useContext(Ht);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let c=Mx(u.digest);if(c){let d=yo.get(u);if(d)throw d;let h=sv(c.location,r);if(nv&&!yo.get(u))if(h.isExternal||c.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:c.replace}));throw yo.set(u,y),y}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return n}function Bx({routeContext:n,match:u,children:r}){let c=N.useContext(es);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),N.createElement(dl.Provider,{value:n},r)}function Qx(n,u=[],r=null,c=null,d=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(u.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let h=n,y=r==null?void 0:r.errors;if(y!=null){let b=h.findIndex(g=>g.route.id&&(y==null?void 0:y[g.route.id])!==void 0);we(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),h=h.slice(0,Math.min(h.length,b+1))}let p=!1,x=-1;if(r)for(let b=0;b<h.length;b++){let g=h[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(x=b),g.route.id){let{loaderData:_,errors:D}=r,K=g.route.loader&&!_.hasOwnProperty(g.route.id)&&(!D||D[g.route.id]===void 0);if(g.route.lazy||K){p=!0,x>=0?h=h.slice(0,x+1):h=[h[0]];break}}}let v=r&&c?(b,g)=>{var _,D;c(b,{location:r.location,params:((D=(_=r.matches)==null?void 0:_[0])==null?void 0:D.params)??{},unstable_pattern:Nx(r.matches),errorInfo:g})}:void 0;return h.reduceRight((b,g,_)=>{let D,K=!1,O=null,Q=null;r&&(D=y&&g.route.id?y[g.route.id]:void 0,O=g.route.errorElement||Hx,p&&(x<0&&_===0?(mv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,Q=null):x===_&&(K=!0,Q=g.route.hydrateFallbackElement||null)));let w=u.concat(h.slice(0,_+1)),Y=()=>{let R;return D?R=O:K?R=Q:g.route.Component?R=N.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=b,N.createElement(Bx,{match:g,routeContext:{outlet:b,matches:w,isDataRoute:r!=null},children:R})};return r&&(g.route.ErrorBoundary||g.route.errorElement||_===0)?N.createElement(hv,{location:r.location,revalidation:r.revalidation,component:O,error:D,children:Y(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:v}):Y()},null)}function Fo(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lx(n){let u=N.useContext(es);return we(u,Fo(n)),u}function Yx(n){let u=N.useContext(Li);return we(u,Fo(n)),u}function Gx(n){let u=N.useContext(dl);return we(u,Fo(n)),u}function $o(n){let u=Gx(n),r=u.matches[u.matches.length-1];return we(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Xx(){return $o("useRouteId")}function Kx(){var c;let n=N.useContext(Jo),u=Yx("useRouteError"),r=$o("useRouteError");return n!==void 0?n:(c=u.errors)==null?void 0:c[r]}function Zx(){let{router:n}=Lx("useNavigate"),u=$o("useNavigate"),r=N.useRef(!1);return ov(()=>{r.current=!0}),N.useCallback(async(d,h={})=>{al(r.current,cv),r.current&&(typeof d=="number"?await n.navigate(d):await n.navigate(d,{fromRouteId:u,...h}))},[n,u])}var Ry={};function mv(n,u,r){!u&&!Ry[n]&&(Ry[n]=!0,al(!1,r))}N.memo(Vx);function Vx({routes:n,future:u,state:r,onError:c}){return dv(n,void 0,r,c,u)}function kx({to:n,replace:u,state:r,relative:c}){we(ts(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=N.useContext(Ht);al(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=N.useContext(dl),{pathname:y}=Na(),p=fv(),x=ko(n,Vo(h),y,c==="path"),v=JSON.stringify(x);return N.useEffect(()=>{p(JSON.parse(v),{replace:u,state:r,relative:c})},[p,v,c,u,r]),null}function rl(n){we(!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 Jx({basename:n="/",children:u=null,location:r,navigationType:c="POP",navigator:d,static:h=!1,unstable_useTransitions:y}){we(!ts(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),x=N.useMemo(()=>({basename:p,navigator:d,static:h,unstable_useTransitions:y,future:{}}),[p,d,h,y]);typeof r=="string"&&(r=Pn(r));let{pathname:v="/",search:b="",hash:g="",state:_=null,key:D="default"}=r,K=N.useMemo(()=>{let O=Bl(v,p);return O==null?null:{location:{pathname:O,search:b,hash:g,state:_,key:D},navigationType:c}},[p,v,b,g,_,D,c]);return al(K!=null,`<Router basename="${p}"> is not able to match the URL "${v}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),K==null?null:N.createElement(Ht.Provider,{value:x},N.createElement(ru.Provider,{children:u,value:K}))}function Fx({children:n,location:u}){return Ux(Uo(n),u)}function Uo(n,u=[]){let r=[];return N.Children.forEach(n,(c,d)=>{if(!N.isValidElement(c))return;let h=[...u,d];if(c.type===N.Fragment){r.push.apply(r,Uo(c.props.children,h));return}we(c.type===rl,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),we(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||h.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=Uo(c.props.children,h)),r.push(y)}),r}var Di="get",Ui="application/x-www-form-urlencoded";function Yi(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function $x(n){return Yi(n)&&n.tagName.toLowerCase()==="button"}function Wx(n){return Yi(n)&&n.tagName.toLowerCase()==="form"}function Ix(n){return Yi(n)&&n.tagName.toLowerCase()==="input"}function Px(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function eb(n,u){return n.button===0&&(!u||u==="_self")&&!Px(n)}var Mi=null;function tb(){if(Mi===null)try{new FormData(document.createElement("form"),0),Mi=!1}catch{Mi=!0}return Mi}var lb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vo(n){return n!=null&&!lb.has(n)?(al(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ui}"`),null):n}function ab(n,u){let r,c,d,h,y;if(Wx(n)){let p=n.getAttribute("action");c=p?Bl(p,u):null,r=n.getAttribute("method")||Di,d=vo(n.getAttribute("enctype"))||Ui,h=new FormData(n)}else if($x(n)||Ix(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 x=n.getAttribute("formaction")||p.getAttribute("action");if(c=x?Bl(x,u):null,r=n.getAttribute("formmethod")||p.getAttribute("method")||Di,d=vo(n.getAttribute("formenctype"))||vo(p.getAttribute("enctype"))||Ui,h=new FormData(p,n),!tb()){let{name:v,type:b,value:g}=n;if(b==="image"){let _=v?`${v}.`:"";h.append(`${_}x`,"0"),h.append(`${_}y`,"0")}else v&&h.append(v,g)}}else{if(Yi(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Di,c=null,d=Ui,y=n}return h&&d==="text/plain"&&(y=h,h=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:h,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wo(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function nb(n,u,r,c){let d=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:u&&Bl(d.pathname,u)==="/"?d.pathname=`${u.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function sb(n,u){if(n.id in u)return u[n.id];try{let r=await import(n.module);return u[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 ub(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 ib(n,u,r){let c=await Promise.all(n.map(async d=>{let h=u.routes[d.route.id];if(h){let y=await sb(h,r);return y.links?y.links():[]}return[]}));return fb(c.flat(1).filter(ub).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Ay(n,u,r,c,d,h){let y=(x,v)=>r[v]?x.route.id!==r[v].route.id:!0,p=(x,v)=>{var b;return r[v].pathname!==x.pathname||((b=r[v].route.path)==null?void 0:b.endsWith("*"))&&r[v].params["*"]!==x.params["*"]};return h==="assets"?u.filter((x,v)=>y(x,v)||p(x,v)):h==="data"?u.filter((x,v)=>{var g;let b=c.routes[x.route.id];if(!b||!b.hasLoader)return!1;if(y(x,v)||p(x,v))return!0;if(x.route.shouldRevalidate){let _=x.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(n,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof _=="boolean")return _}return!0}):[]}function rb(n,u,{includeHydrateFallback:r}={}){return cb(n.map(c=>{let d=u.routes[c.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function cb(n){return[...new Set(n)]}function ob(n){let u={},r=Object.keys(n).sort();for(let c of r)u[c]=n[c];return u}function fb(n,u){let r=new Set;return new Set(u),n.reduce((c,d)=>{let h=JSON.stringify(ob(d));return r.has(h)||(r.add(h),c.push({key:h,link:d})),c},[])}function yv(){let n=N.useContext(es);return Wo(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function db(){let n=N.useContext(Li);return Wo(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Io=N.createContext(void 0);Io.displayName="FrameworkContext";function vv(){let n=N.useContext(Io);return Wo(n,"You must render this element inside a <HydratedRouter> element"),n}function hb(n,u){let r=N.useContext(Io),[c,d]=N.useState(!1),[h,y]=N.useState(!1),{onFocus:p,onBlur:x,onMouseEnter:v,onMouseLeave:b,onTouchStart:g}=u,_=N.useRef(null);N.useEffect(()=>{if(n==="render"&&y(!0),n==="viewport"){let O=w=>{w.forEach(Y=>{y(Y.isIntersecting)})},Q=new IntersectionObserver(O,{threshold:.5});return _.current&&Q.observe(_.current),()=>{Q.disconnect()}}},[n]),N.useEffect(()=>{if(c){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[c]);let D=()=>{d(!0)},K=()=>{d(!1),y(!1)};return r?n!=="intent"?[h,_,{}]:[h,_,{onFocus:Is(p,D),onBlur:Is(x,K),onMouseEnter:Is(v,D),onMouseLeave:Is(b,K),onTouchStart:Is(g,D)}]:[!1,_,{}]}function Is(n,u){return r=>{n&&n(r),r.defaultPrevented||u(r)}}function mb({page:n,...u}){let{router:r}=yv(),c=N.useMemo(()=>tv(r.routes,n,r.basename),[r.routes,n,r.basename]);return c?N.createElement(vb,{page:n,matches:c,...u}):null}function yb(n){let{manifest:u,routeModules:r}=vv(),[c,d]=N.useState([]);return N.useEffect(()=>{let h=!1;return ib(n,u,r).then(y=>{h||d(y)}),()=>{h=!0}},[n,u,r]),c}function vb({page:n,matches:u,...r}){let c=Na(),{future:d,manifest:h,routeModules:y}=vv(),{basename:p}=yv(),{loaderData:x,matches:v}=db(),b=N.useMemo(()=>Ay(n,u,v,h,c,"data"),[n,u,v,h,c]),g=N.useMemo(()=>Ay(n,u,v,h,c,"assets"),[n,u,v,h,c]),_=N.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let O=new Set,Q=!1;if(u.forEach(Y=>{var q;let R=h.routes[Y.route.id];!R||!R.hasLoader||(!b.some(J=>J.route.id===Y.route.id)&&Y.route.id in x&&((q=y[Y.route.id])!=null&&q.shouldRevalidate)||R.hasClientLoader?Q=!0:O.add(Y.route.id))}),O.size===0)return[];let w=nb(n,p,d.unstable_trailingSlashAwareDataRequests,"data");return Q&&O.size>0&&w.searchParams.set("_routes",u.filter(Y=>O.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[w.pathname+w.search]},[p,d.unstable_trailingSlashAwareDataRequests,x,c,h,b,u,n,y]),D=N.useMemo(()=>rb(g,h),[g,h]),K=yb(g);return N.createElement(N.Fragment,null,_.map(O=>N.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),D.map(O=>N.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),K.map(({key:O,link:Q})=>N.createElement("link",{key:O,nonce:r.nonce,...Q,crossOrigin:Q.crossOrigin??r.crossOrigin})))}function pb(...n){return u=>{n.forEach(r=>{typeof r=="function"?r(u):r!=null&&(r.current=u)})}}var gb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gb&&(window.__reactRouterVersion="7.13.0")}catch{}function xb({basename:n,children:u,unstable_useTransitions:r,window:c}){let d=N.useRef();d.current==null&&(d.current=Ig({window:c,v5Compat:!0}));let h=d.current,[y,p]=N.useState({action:h.action,location:h.location}),x=N.useCallback(v=>{r===!1?p(v):N.startTransition(()=>p(v))},[r]);return N.useLayoutEffect(()=>h.listen(x),[h,x]),N.createElement(Jx,{basename:n,children:u,location:y.location,navigationType:y.action,navigator:h,unstable_useTransitions:r})}var pv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gv=N.forwardRef(function({onClick:u,discover:r="render",prefetch:c="none",relative:d,reloadDocument:h,replace:y,state:p,target:x,to:v,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:_,...D},K){let{basename:O,unstable_useTransitions:Q}=N.useContext(Ht),w=typeof v=="string"&&pv.test(v),Y=sv(v,O);v=Y.to;let R=_x(v,{relative:d}),[q,J,Z]=hb(c,D),$=jb(v,{replace:y,state:p,target:x,preventScrollReset:b,relative:d,viewTransition:g,unstable_defaultShouldRevalidate:_,unstable_useTransitions:Q});function ee(je){u&&u(je),je.defaultPrevented||$(je)}let fe=N.createElement("a",{...D,...Z,href:Y.absoluteURL||R,onClick:Y.isExternal||h?u:ee,ref:pb(K,J),target:x,"data-discover":!w&&r==="render"?"true":void 0});return q&&!w?N.createElement(N.Fragment,null,fe,N.createElement(mb,{page:R})):fe});gv.displayName="Link";var xv=N.forwardRef(function({"aria-current":u="page",caseSensitive:r=!1,className:c="",end:d=!1,style:h,to:y,viewTransition:p,children:x,...v},b){let g=cu(y,{relative:v.relative}),_=Na(),D=N.useContext(Li),{navigator:K,basename:O}=N.useContext(Ht),Q=D!=null&&Ob(g)&&p===!0,w=K.encodeLocation?K.encodeLocation(g).pathname:g.pathname,Y=_.pathname,R=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;r||(Y=Y.toLowerCase(),R=R?R.toLowerCase():null,w=w.toLowerCase()),R&&O&&(R=Bl(R,O)||R);const q=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let J=Y===w||!d&&Y.startsWith(w)&&Y.charAt(q)==="/",Z=R!=null&&(R===w||!d&&R.startsWith(w)&&R.charAt(w.length)==="/"),$={isActive:J,isPending:Z,isTransitioning:Q},ee=J?u:void 0,fe;typeof c=="function"?fe=c($):fe=[c,J?"active":null,Z?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let je=typeof h=="function"?h($):h;return N.createElement(gv,{...v,"aria-current":ee,className:fe,ref:b,style:je,to:y,viewTransition:p},typeof x=="function"?x($):x)});xv.displayName="NavLink";var bb=N.forwardRef(({discover:n="render",fetcherKey:u,navigate:r,reloadDocument:c,replace:d,state:h,method:y=Di,action:p,onSubmit:x,relative:v,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:_,...D},K)=>{let{unstable_useTransitions:O}=N.useContext(Ht),Q=Cb(),w=Tb(p,{relative:v}),Y=y.toLowerCase()==="get"?"get":"post",R=typeof p=="string"&&pv.test(p),q=J=>{if(x&&x(J),J.defaultPrevented)return;J.preventDefault();let Z=J.nativeEvent.submitter,$=(Z==null?void 0:Z.getAttribute("formmethod"))||y,ee=()=>Q(Z||J.currentTarget,{fetcherKey:u,method:$,navigate:r,replace:d,state:h,relative:v,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:_});O&&r!==!1?N.startTransition(()=>ee()):ee()};return N.createElement("form",{ref:K,method:Y,action:w,onSubmit:c?x:q,...D,"data-discover":!R&&n==="render"?"true":void 0})});bb.displayName="Form";function Sb(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bv(n){let u=N.useContext(es);return we(u,Sb(n)),u}function jb(n,{target:u,replace:r,state:c,preventScrollReset:d,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:p,unstable_useTransitions:x}={}){let v=fv(),b=Na(),g=cu(n,{relative:h});return N.useCallback(_=>{if(eb(_,u)){_.preventDefault();let D=r!==void 0?r:tu(b)===tu(g),K=()=>v(n,{replace:D,state:c,preventScrollReset:d,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:p});x?N.startTransition(()=>K()):K()}},[b,v,g,r,c,u,n,d,h,y,p,x])}var Nb=0,Eb=()=>`__${String(++Nb)}__`;function Cb(){let{router:n}=bv("useSubmit"),{basename:u}=N.useContext(Ht),r=Xx(),c=n.fetch,d=n.navigate;return N.useCallback(async(h,y={})=>{let{action:p,method:x,encType:v,formData:b,body:g}=ab(h,u);if(y.navigate===!1){let _=y.fetcherKey||Eb();await c(_,r,y.action||p,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:b,body:g,formMethod:y.method||x,formEncType:y.encType||v,flushSync:y.flushSync})}else await d(y.action||p,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:b,body:g,formMethod:y.method||x,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,u,r])}function Tb(n,{relative:u}={}){let{basename:r}=N.useContext(Ht),c=N.useContext(dl);we(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),h={...cu(n||".",{relative:u})},y=Na();if(n==null){h.search=y.search;let p=new URLSearchParams(h.search),x=p.getAll("index");if(x.some(b=>b==="")){p.delete("index"),x.filter(g=>g).forEach(g=>p.append("index",g));let b=p.toString();h.search=b?`?${b}`:""}}return(!n||n===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(h.pathname=h.pathname==="/"?r:Hl([r,h.pathname])),tu(h)}function Ob(n,{relative:u}={}){let r=N.useContext(iv);we(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=bv("useViewTransitionState"),d=cu(n,{relative:u});if(!r.isTransitioning)return!1;let h=Bl(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=Bl(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Bi(d.pathname,y)!=null||Bi(d.pathname,h)!=null}/**
61
- * @license lucide-react v0.474.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 Rb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sv=(...n)=>n.filter((u,r,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===r).join(" ").trim();/**
66
- * @license lucide-react v0.474.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
- */var Ab={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"};/**
71
- * @license lucide-react v0.474.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 Mb=N.forwardRef(({color:n="currentColor",size:u=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:h,iconNode:y,...p},x)=>N.createElement("svg",{ref:x,...Ab,width:u,height:u,stroke:n,strokeWidth:c?Number(r)*24/Number(u):r,className:Sv("lucide",d),...p},[...y.map(([v,b])=>N.createElement(v,b)),...Array.isArray(h)?h:[h]]));/**
76
- * @license lucide-react v0.474.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 Ct=(n,u)=>{const r=N.forwardRef(({className:c,...d},h)=>N.createElement(Mb,{ref:h,iconNode:u,className:Sv(`lucide-${Rb(n)}`,c),...d}));return r.displayName=`${n}`,r};/**
81
- * @license lucide-react v0.474.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
- */const zb=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],jv=Ct("Activity",zb);/**
86
- * @license lucide-react v0.474.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 _b=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],wo=Ct("ArrowRight",_b);/**
91
- * @license lucide-react v0.474.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 Db=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],Nv=Ct("Brain",Db);/**
96
- * @license lucide-react v0.474.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 Ub=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Ev=Ct("DollarSign",Ub);/**
101
- * @license lucide-react v0.474.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 wb=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],Cv=Ct("FlaskConical",wb);/**
106
- * @license lucide-react v0.474.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 Hb=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],qb=Ct("MessageSquare",Hb);/**
111
- * @license lucide-react v0.474.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 Bb=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Tv=Ct("Play",Bb);/**
116
- * @license lucide-react v0.474.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 Qb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Lb=Ct("Plus",Qb);/**
121
- * @license lucide-react v0.474.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 Yb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Gb=Ct("Search",Yb);/**
126
- * @license lucide-react v0.474.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 Xb=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Kb=Ct("Send",Xb);/**
131
- * @license lucide-react v0.474.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 Zb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Vb=Ct("ShieldCheck",Zb);/**
136
- * @license lucide-react v0.474.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 kb=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Ov=Ct("Trash2",kb);/**
141
- * @license lucide-react v0.474.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 Jb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Rv=Ct("Users",Jb);/**
146
- * @license lucide-react v0.474.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 Fb=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Av=Ct("Wrench",Fb);function Ho(...n){return n.filter(Boolean).join(" ")}function Nt(n){return n===0?"$0.00":n<.01?`$${n.toFixed(4)}`:`$${n.toFixed(2)}`}function Et(n){return n<1e3?`${Math.round(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}function wi(n){return n.toLocaleString()}function $b(n){switch(n){case"running":return"text-blue-500";case"completed":return"text-green-500";case"failed":return"text-red-500";case"waiting":return"text-amber-500";default:return"text-gray-500"}}const Wb=[{to:"/playground",label:"Playground",icon:qb},{to:"/workflows",label:"Workflows",icon:Tv},{to:"/traces",label:"Traces",icon:jv},{to:"/costs",label:"Costs",icon:Ev},{to:"/memory",label:"Memory",icon:Nv},{to:"/sessions",label:"Sessions",icon:Rv},{to:"/tools",label:"Tools",icon:Av},{to:"/evals",label:"Evals",icon:Cv}];function Ib(){return o.jsxs("aside",{className:"w-56 border-r border-[hsl(var(--border))] bg-[hsl(var(--card))] flex flex-col h-screen",children:[o.jsx("div",{className:"p-4 border-b border-[hsl(var(--border))]",children:o.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"Axl Studio"})}),o.jsx("nav",{className:"flex-1 p-2 space-y-0.5",children:Wb.map(({to:n,label:u,icon:r})=>o.jsxs(xv,{to:n,className:({isActive:c})=>Ho("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",c?"bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))] font-medium":"text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]"),children:[o.jsx(r,{size:16}),u]},n))}),o.jsx("div",{className:"p-4 border-t border-[hsl(var(--border))] text-xs text-[hsl(var(--muted-foreground))]",children:"@axlsdk/studio"})]})}function Ql({title:n,description:u,actions:r,children:c}){return o.jsxs("div",{className:"flex flex-col h-screen",children:[o.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-[hsl(var(--border))]",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-xl font-semibold",children:n}),u&&o.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-0.5",children:u})]}),r&&o.jsx("div",{className:"flex items-center gap-2",children:r})]}),o.jsx("main",{className:"flex-1 overflow-auto p-6",children:c})]})}function $t({title:n,description:u,icon:r}){return o.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[r&&o.jsx("div",{className:"mb-3 text-[hsl(var(--muted-foreground))]",children:r}),o.jsx("h3",{className:"text-sm font-medium text-[hsl(var(--foreground))]",children:n}),u&&o.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-1 max-w-sm",children:u})]})}function Pb({text:n,className:u}){return o.jsxs("div",{className:`whitespace-pre-wrap ${u??""}`,children:[n,o.jsx("span",{className:"animate-pulse",children:"|"})]})}function ot({data:n,collapsed:u=!1,className:r}){const[c,d]=N.useState(u),h=JSON.stringify(n,null,2),y=h.length>200;return o.jsxs("div",{className:`relative ${r??""}`,children:[y&&o.jsx("button",{onClick:()=>d(!c),className:"text-xs text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))] mb-1",children:c?"Expand":"Collapse"}),o.jsx("pre",{className:"text-xs font-mono p-3 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-96",children:c?JSON.stringify(n):h})]})}const e1=(window.__AXL_STUDIO_BASE__??"")+"/api";async function Le(n,u){const c=await(await fetch(`${e1}${n}`,{headers:{"Content-Type":"application/json",...u==null?void 0:u.headers},...u})).json();if(!c.ok)throw new Error(c.error.message);return c.data}const t1=()=>Le("/workflows"),l1=n=>Le(`/workflows/${encodeURIComponent(n)}`),a1=(n,u,r=!1)=>Le(`/workflows/${encodeURIComponent(n)}/execute`,{method:"POST",body:JSON.stringify({input:u,stream:r})}),n1=()=>Le("/executions"),s1=()=>Le("/sessions"),u1=n=>Le(`/sessions/${encodeURIComponent(n)}`),i1=n=>Le(`/sessions/${encodeURIComponent(n)}`,{method:"DELETE"}),r1=()=>Le("/agents"),c1=()=>Le("/tools"),o1=n=>Le(`/tools/${encodeURIComponent(n)}`),f1=(n,u)=>Le(`/tools/${encodeURIComponent(n)}/test`,{method:"POST",body:JSON.stringify({input:u})}),d1=n=>Le(`/memory/${encodeURIComponent(n)}`),h1=(n,u,r)=>Le(`/memory/${encodeURIComponent(n)}/${encodeURIComponent(u)}`,{method:"PUT",body:JSON.stringify({value:r})}),m1=(n,u)=>Le(`/memory/${encodeURIComponent(n)}/${encodeURIComponent(u)}`,{method:"DELETE"}),y1=(n,u,r)=>Le("/memory/search",{method:"POST",body:JSON.stringify({query:n,scope:u,limit:r})}),v1=()=>Le("/costs"),p1=()=>Le("/costs/reset",{method:"POST"}),g1=()=>Le("/evals"),x1=()=>Le("/evals/history"),b1=n=>Le(`/evals/${encodeURIComponent(n)}/run`,{method:"POST"}),S1=(n,u)=>Le("/evals/compare",{method:"POST",body:JSON.stringify({baseline:n,candidate:u})}),j1=(n,u,r)=>Le("/playground/chat",{method:"POST",body:JSON.stringify({message:n,sessionId:u,agent:r})});class N1{constructor(){Fs(this,"ws",null);Fs(this,"listeners",new Map);Fs(this,"reconnectTimer",null);Fs(this,"url");const u=window.location.protocol==="https:"?"wss:":"ws:",r=window.__AXL_STUDIO_BASE__??"";this.url=`${u}//${window.location.host}${r}/ws`}connect(){var u;((u=this.ws)==null?void 0:u.readyState)!==WebSocket.OPEN&&(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{for(const r of this.listeners.keys())this.send({type:"subscribe",channel:r})},this.ws.onmessage=r=>{try{const c=JSON.parse(r.data);if(c.type==="event"&&c.channel){const d=this.listeners.get(c.channel);if(d)for(const y of d)y(c.data);const h=c.channel.indexOf(":");if(h>0){const y=c.channel.substring(0,h)+":*",p=this.listeners.get(y);if(p)for(const x of p)x(c.data)}}}catch{}},this.ws.onclose=()=>{this.scheduleReconnect()},this.ws.onerror=()=>{var r;(r=this.ws)==null||r.close()})}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},2e3))}send(u){var r;((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(u))}subscribe(u,r){let c=this.listeners.get(u);return c||(c=new Set,this.listeners.set(u,c),this.send({type:"subscribe",channel:u})),c.add(r),this.connect(),()=>{c.delete(r),c.size===0&&(this.listeners.delete(u),this.send({type:"unsubscribe",channel:u}))}}disconnect(){var u;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(u=this.ws)==null||u.close(),this.ws=null}}const E1=new N1;function Po(n,u){const r=N.useRef(u);r.current=u,N.useEffect(()=>{if(n)return E1.subscribe(n,c=>r.current(c))},[n])}function Mv(n){const[u,r]=N.useState({tokens:"",events:[],done:!1,error:null,result:null}),c=N.useCallback(d=>{const h=d;r(y=>{switch(h.type){case"token":return{...y,tokens:y.tokens+h.data,events:[...y.events,h]};case"done":return{...y,done:!0,result:h.result,events:[...y.events,h]};case"error":return{...y,done:!0,error:h.message,events:[...y.events,h]};default:return{...y,events:[...y.events,h]}}})},[]);return Po(n?`execution:${n}`:null,c),u}function C1(){const[n,u]=N.useState([]),[r,c]=N.useState(""),[d,h]=N.useState(null),[y,p]=N.useState(null),[x,v]=N.useState(""),[b,g]=N.useState(!1),_=N.useRef(null),{data:D=[]}=Wt({queryKey:["agents"],queryFn:r1}),K=Mv(y);N.useEffect(()=>{K.tokens&&b&&u(w=>{const Y=w[w.length-1];return(Y==null?void 0:Y.role)==="assistant"?[...w.slice(0,-1),{...Y,content:K.tokens}]:[...w,{role:"assistant",content:K.tokens}]}),K.done&&(g(!1),p(null))},[K.tokens,K.done,b]),N.useEffect(()=>{const w=[],Y=[],R=[];for(const q of K.events){if(q.type==="tool_call"&&w.push({name:q.name,args:q.args}),q.type==="tool_result"){const J=w.find(Z=>Z.name===q.name&&!Z.result);J&&(J.result=q.result)}q.type==="handoff"&&Y.push({source:q.source,target:q.target,mode:q.mode??"oneway"}),q.type==="tool_approval"&&R.push({tool:q.name,approved:q.approved})}(w.length>0||Y.length>0||R.length>0)&&u(q=>{const J=q[q.length-1];return(J==null?void 0:J.role)==="assistant"?[...q.slice(0,-1),{...J,toolCalls:w.length>0?w:J.toolCalls,handoffs:Y.length>0?Y:J.handoffs,approvals:R.length>0?R:J.approvals}]:q})},[K.events]),N.useEffect(()=>{var w;(w=_.current)==null||w.scrollIntoView({behavior:"smooth"})},[n]);const O=N.useCallback(async()=>{if(!r.trim()||b)return;const w=r.trim();c(""),u(Y=>[...Y,{role:"user",content:w}]),g(!0);try{const Y=await j1(w,d??void 0,x||void 0);h(Y.sessionId),p(Y.executionId)}catch(Y){g(!1),u(R=>[...R,{role:"assistant",content:`Error: ${Y instanceof Error?Y.message:String(Y)}`}])}},[r,b,d,x]),Q=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),O())};return o.jsx(Ql,{title:"Agent Playground",description:"Chat with registered agents in real-time",actions:o.jsxs("div",{className:"flex items-center gap-2",children:[D.length>0&&o.jsxs("select",{value:x,onChange:w=>v(w.target.value),className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Default agent"}),D.map(w=>o.jsx("option",{value:w.name,children:w.name},w.name))]}),o.jsx("button",{onClick:()=>{u([]),h(null),p(null)},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"New Chat"})]}),children:o.jsxs("div",{className:"flex flex-col h-full max-w-3xl mx-auto",children:[o.jsxs("div",{className:"flex-1 overflow-auto space-y-4 pb-4",children:[n.length===0&&o.jsx($t,{title:"Start a conversation",description:"Type a message below to chat with an agent. Tool calls, handoffs, and streaming responses will be displayed in real-time."}),n.map((w,Y)=>o.jsx("div",{className:`flex ${w.role==="user"?"justify-end":"justify-start"}`,children:o.jsxs("div",{className:`max-w-[80%] rounded-lg px-4 py-2.5 text-sm ${w.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]"}`,children:[w.role==="assistant"&&b&&Y===n.length-1?o.jsx(Pb,{text:w.content}):o.jsx("div",{className:"whitespace-pre-wrap",children:w.content}),w.handoffs&&w.handoffs.length>0&&o.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:w.handoffs.map((R,q)=>o.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[o.jsx(wo,{size:12,className:"text-amber-500"}),o.jsx("span",{className:"font-medium",children:R.source}),o.jsx(wo,{size:10}),o.jsx("span",{className:"font-medium",children:R.target}),o.jsxs("span",{className:"text-[hsl(var(--muted-foreground))]",children:["(",R.mode,")"]})]},q))}),w.approvals&&w.approvals.length>0&&o.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:w.approvals.map((R,q)=>o.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[o.jsx(Vb,{size:12,className:R.approved?"text-green-500":"text-red-500"}),o.jsxs("span",{children:["Tool ",o.jsx("span",{className:"font-mono",children:R.tool}),":"," ",R.approved?"approved":"denied"]})]},q))}),w.toolCalls&&w.toolCalls.length>0&&o.jsx("div",{className:"mt-2 space-y-2 border-t border-[hsl(var(--border))] pt-2",children:w.toolCalls.map((R,q)=>o.jsxs("details",{className:"text-xs",children:[o.jsxs("summary",{className:"cursor-pointer font-medium",children:["Tool: ",R.name]}),o.jsxs("div",{className:"mt-1 space-y-1",children:[o.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Input:"}),o.jsx(ot,{data:R.args,collapsed:!0}),R.result!==void 0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Output:"}),o.jsx(ot,{data:R.result,collapsed:!0})]})]})]},q))})]})},Y)),o.jsx("div",{ref:_})]}),o.jsx("div",{className:"border-t border-[hsl(var(--border))] pt-4",children:o.jsxs("div",{className:"flex items-end gap-2",children:[o.jsx("textarea",{value:r,onChange:w=>c(w.target.value),onKeyDown:Q,placeholder:"Type a message...",rows:1,className:"flex-1 px-3 py-2.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] resize-none focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]"}),o.jsx("button",{onClick:O,disabled:!r.trim()||b,className:"p-2.5 rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50 transition-opacity",children:o.jsx(Kb,{size:16})})]})})]})})}function zv({value:n,onChange:u,placeholder:r,className:c}){const[d,h]=N.useState(null),y=N.useCallback(p=>{const x=p.target.value;u(x);try{x.trim()&&JSON.parse(x),h(null)}catch(v){h(v instanceof Error?v.message:"Invalid JSON")}},[u]);return o.jsxs("div",{className:c,children:[o.jsx("textarea",{value:n,onChange:y,placeholder:r??"{}",className:"w-full h-32 p-3 text-xs font-mono rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] text-[hsl(var(--foreground))] resize-y focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]",spellCheck:!1}),d&&o.jsx("p",{className:"text-xs text-red-500 mt-1",children:d})]})}function _v({schema:n,onSubmit:u,submitLabel:r="Submit",className:c}){const[d,h]=N.useState({}),y=n.properties??{},p=new Set(n.required??[]),x=N.useCallback(v=>{v.preventDefault();const b={};for(const[g,_]of Object.entries(y)){const D=d[g]??"";if(!(!D&&!p.has(g)))if(_.type==="number")b[g]=Number(D);else if(_.type==="boolean")b[g]=D==="true";else if(_.type==="object"||_.type==="array")try{b[g]=JSON.parse(D)}catch{b[g]=D}else b[g]=D}u(b)},[d,y,p,u]);return o.jsxs("form",{onSubmit:x,className:`space-y-3 ${c??""}`,children:[Object.entries(y).map(([v,b])=>o.jsxs("div",{children:[o.jsxs("label",{className:"block text-xs font-medium text-[hsl(var(--foreground))] mb-1",children:[v,p.has(v)&&o.jsx("span",{className:"text-red-500 ml-0.5",children:"*"}),b.description&&o.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] font-normal ml-1",children:["- ",b.description]})]}),b.enum?o.jsxs("select",{value:d[v]??"",onChange:g=>h({...d,[v]:g.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Select..."}),b.enum.map(g=>o.jsx("option",{value:g,children:g},g))]}):b.type==="boolean"?o.jsxs("select",{value:d[v]??"",onChange:g=>h({...d,[v]:g.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Select..."}),o.jsx("option",{value:"true",children:"true"}),o.jsx("option",{value:"false",children:"false"})]}):o.jsx("input",{type:b.type==="number"?"number":"text",value:d[v]??"",onChange:g=>h({...d,[v]:g.target.value}),placeholder:b.type??"string",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"})]},v)),o.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 transition-opacity",children:r})]})}function Dv({status:n,className:u}){return o.jsxs("span",{className:Ho("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium",$b(n),n==="running"&&"animate-pulse",u),children:[o.jsx("span",{className:Ho("w-1.5 h-1.5 rounded-full",n==="running"&&"bg-blue-500",n==="completed"&&"bg-green-500",n==="failed"&&"bg-red-500",n==="waiting"&&"bg-amber-500")}),n]})}function Sa({cost:n,className:u}){return o.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${u??""}`,children:Nt(n)})}function qo({ms:n,className:u}){return o.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${u??""}`,children:Et(n)})}function T1(){const[n,u]=N.useState(""),[r,c]=N.useState("{}"),[d,h]=N.useState(!0),[y,p]=N.useState(null),[x,v]=N.useState(null),[b,g]=N.useState(null),[_,D]=N.useState("idle"),{data:K=[]}=Wt({queryKey:["workflows"],queryFn:t1}),{data:O}=Wt({queryKey:["workflow",n],queryFn:()=>l1(n),enabled:!!n}),Q=Mv(y),w=N.useCallback(async Z=>{if(n){v(null),g(null),D("running");try{const $=await a1(n,Z,!0);$.streaming&&$.executionId?p($.executionId):(v($.result),D("completed"))}catch($){g($ instanceof Error?$.message:String($)),D("failed")}}},[n]),Y=N.useCallback(()=>{try{const Z=JSON.parse(r);w(Z)}catch(Z){g(Z instanceof Error?Z.message:String(Z)),D("failed")}},[r,w]),R=N.useCallback(Z=>{w(Z)},[w]);N.useEffect(()=>{Q.done&&_==="running"&&(D(Q.error?"failed":"completed"),Q.error&&g(Q.error),Q.result&&v(Q.result),p(null))},[Q.done,Q.error,Q.result,_]);const q=Q.events.filter(Z=>Z.type==="step").map(Z=>Z.data),J=!!(O!=null&&O.inputSchema);return o.jsx(Ql,{title:"Workflow Runner",description:"Execute and debug registered workflows",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium mb-1",children:"Workflow"}),o.jsxs("select",{value:n,onChange:Z=>{u(Z.target.value),c("{}"),v(null),g(null),D("idle")},className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Select a workflow..."}),K.map(Z=>o.jsx("option",{value:Z.name,children:Z.name},Z.name))]})]}),(O==null?void 0:O.outputSchema)!=null&&o.jsxs("details",{className:"text-xs",children:[o.jsx("summary",{className:"cursor-pointer text-[hsl(var(--muted-foreground))]",children:"Output Schema"}),o.jsx("div",{className:"mt-1",children:o.jsx(ot,{data:O.outputSchema,collapsed:!0})})]}),J&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("label",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Input mode:"}),o.jsx("button",{onClick:()=>h(!0),className:`px-2 py-0.5 text-xs rounded ${d?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))]"}`,children:"Form"}),o.jsx("button",{onClick:()=>h(!1),className:`px-2 py-0.5 text-xs rounded ${d?"border border-[hsl(var(--input))]":"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]"}`,children:"JSON"})]}),J&&d?o.jsx(_v,{schema:O.inputSchema,onSubmit:R,submitLabel:_==="running"?"Running...":"Execute"}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium mb-1",children:"Input (JSON)"}),o.jsx(zv,{value:r,onChange:c})]}),o.jsxs("button",{onClick:Y,disabled:!n||_==="running",className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:[o.jsx(Tv,{size:14}),"Execute"]})]})]}),o.jsxs("div",{className:"space-y-4",children:[_!=="idle"&&o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(Dv,{status:_}),Q.events.length>0&&o.jsxs(o.Fragment,{children:[q.some(Z=>Z.cost)&&o.jsx(Sa,{cost:q.reduce((Z,$)=>Z+($.cost??0),0)}),q.some(Z=>Z.duration)&&o.jsx(qo,{ms:q.reduce((Z,$)=>Z+($.duration??0),0)})]})]}),q.length>0&&o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Timeline"}),o.jsx("div",{className:"space-y-1.5",children:q.map((Z,$)=>o.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))]",children:[o.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))]",children:["#",Z.step]}),o.jsx("span",{className:"font-medium",children:Z.type}),Z.agent&&o.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:Z.agent}),Z.tool&&o.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:Z.tool}),o.jsx("span",{className:"flex-1"}),Z.duration&&o.jsx(qo,{ms:Z.duration}),Z.cost&&o.jsx(Sa,{cost:Z.cost})]},$))})]}),x!==null&&o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Result"}),o.jsx(ot,{data:x})]}),b&&o.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:b}),_==="idle"&&o.jsx($t,{title:"No execution",description:"Select a workflow and click Execute to see results."})]})]})})}const O1={agent_call:"bg-blue-500",tool_call:"bg-purple-500",tool_call_complete:"bg-purple-400",workflow_start:"bg-green-500",workflow_complete:"bg-green-400",handoff:"bg-amber-500",await_human:"bg-red-500",vote_start:"bg-cyan-500",spawn:"bg-indigo-500"};function My(n){return O1[n]??"bg-slate-500"}function R1(n){const u=n.type;return u==="workflow_start"||u==="workflow_complete"?0:u==="agent_call"||u==="spawn"||u==="vote_start"?1:u==="tool_call"||u==="tool_call_complete"||u==="handoff"?2:1}function A1(){const[n,u]=N.useState(null),[r,c]=N.useState([]),[d,h]=N.useState(""),[y,p]=N.useState(""),{data:x=[],refetch:v}=Wt({queryKey:["executions"],queryFn:n1,refetchInterval:3e3});Po("trace:*",N.useCallback(O=>{c(Q=>[...Q.slice(-200),O])},[]));const b=n?n.steps:r;let g=b;d&&(g=g.filter(O=>O.type===d)),y&&(g=g.filter(O=>O.agent===y));const _=[...new Set(b.map(O=>O.type))],D=[...new Set(b.map(O=>O.agent).filter(Boolean))],K=Math.max(...g.map(O=>O.duration??0),1);return o.jsx(Ql,{title:"Trace Explorer",description:"Inspect execution traces with waterfall visualization",actions:o.jsx("button",{onClick:()=>{v(),c([])},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Refresh"}),children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[o.jsxs("div",{className:"lg:col-span-1 space-y-2",children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Executions"}),o.jsxs("button",{onClick:()=>u(null),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${n?"border-[hsl(var(--border))]":"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]"}`,children:["Live Events (",r.length,")"]}),x.map(O=>o.jsxs("button",{onClick:()=>u(O),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${(n==null?void 0:n.executionId)===O.executionId?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-medium truncate",children:O.workflow}),o.jsx(Dv,{status:O.status})]}),o.jsxs("div",{className:"flex items-center justify-between mt-0.5",children:[o.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] truncate",children:[O.executionId.slice(0,8),"... | ",O.steps.length," steps"]}),O.totalCost>0&&o.jsx(Sa,{cost:O.totalCost})]})]},O.executionId)),x.length===0&&o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No executions yet"})]}),o.jsxs("div",{className:"lg:col-span-3",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[o.jsxs("select",{value:d,onChange:O=>h(O.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"All types"}),_.map(O=>o.jsx("option",{value:O,children:O},O))]}),D.length>0&&o.jsxs("select",{value:y,onChange:O=>p(O.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"All agents"}),D.map(O=>o.jsx("option",{value:O,children:O},O))]}),o.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[g.length," events"]})]}),g.length===0?o.jsx($t,{icon:o.jsx(jv,{size:32}),title:"No trace events",description:"Execute a workflow to see trace events here."}):o.jsx("div",{className:"space-y-1",children:g.map((O,Q)=>{const w=R1(O);return o.jsxs("details",{className:"group",children:[o.jsxs("summary",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))] cursor-pointer hover:bg-[hsl(var(--accent))]",style:{marginLeft:`${w*16}px`},children:[o.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))] w-8",children:["#",O.step]}),o.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${My(O.type)}`}),o.jsx("span",{className:"font-medium w-28 truncate",children:O.type}),O.agent&&o.jsx("span",{className:"text-blue-600 dark:text-blue-400 w-28 truncate",children:O.agent}),O.tool&&o.jsx("span",{className:"text-purple-600 dark:text-purple-400 w-28 truncate",children:O.tool}),o.jsx("div",{className:"flex-1 h-3 bg-[hsl(var(--background))] rounded overflow-hidden",children:O.duration&&o.jsx("div",{className:`h-full rounded ${My(O.type)}`,style:{width:`${Math.max(O.duration/K*100,2)}%`,opacity:.7}})}),O.duration&&o.jsx(qo,{ms:O.duration}),O.cost&&o.jsx(Sa,{cost:O.cost})]}),o.jsxs("div",{className:"mt-1 mb-2 p-3 rounded bg-[hsl(var(--card))] border border-[hsl(var(--border))]",style:{marginLeft:`${w*16+32}px`},children:[O.model&&o.jsxs("p",{className:"text-xs mb-1",children:[o.jsx("strong",{children:"Model:"})," ",O.model]}),O.promptVersion&&o.jsxs("p",{className:"text-xs mb-1",children:[o.jsx("strong",{children:"Version:"})," ",O.promptVersion]}),O.tokens&&o.jsxs("p",{className:"text-xs mb-1",children:[o.jsx("strong",{children:"Tokens:"})," in=",O.tokens.input," out=",O.tokens.output,O.tokens.reasoning?` reasoning=${O.tokens.reasoning}`:""]}),O.data!=null&&o.jsx(ot,{data:O.data,collapsed:!0})]})]},Q)})})]})]})})}function M1({tokens:n,label:u,className:r}){return o.jsxs("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${r??""}`,children:[u&&o.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:u}),wi(n)]})}function z1(){const[n,u]=N.useState(null),{data:r,refetch:c}=Wt({queryKey:["costs"],queryFn:v1});Po("costs",N.useCallback(y=>{u(y)},[]));const d=n??r,h=async()=>{await p1(),u(null),c()};return d?o.jsxs(Ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",actions:o.jsx("button",{onClick:h,className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Reset"}),children:[o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[o.jsx(zi,{label:"Total Cost",value:Nt(d.totalCost)}),o.jsx(zi,{label:"Input Tokens",value:wi(d.totalTokens.input)}),o.jsx(zi,{label:"Output Tokens",value:wi(d.totalTokens.output)}),o.jsx(zi,{label:"Reasoning Tokens",value:wi(d.totalTokens.reasoning)})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Agent"}),Object.keys(d.byAgent).length===0?o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No agent data"}):o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Agent"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),o.jsx("tbody",{children:Object.entries(d.byAgent).sort(([,y],[,p])=>p.cost-y.cost).map(([y,p])=>o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:y}),o.jsx("td",{className:"py-2 text-right",children:p.calls}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(Sa,{cost:p.cost})})]},y))})]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Model"}),Object.keys(d.byModel).length===0?o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No model data"}):o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Model"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Tokens"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),o.jsx("tbody",{children:Object.entries(d.byModel).sort(([,y],[,p])=>p.cost-y.cost).map(([y,p])=>o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:y}),o.jsx("td",{className:"py-2 text-right",children:p.calls}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(M1,{tokens:p.tokens.input+p.tokens.output})}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(Sa,{cost:p.cost})})]},y))})]})]}),o.jsxs("div",{className:"lg:col-span-2",children:[o.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Workflow"}),Object.keys(d.byWorkflow).length===0?o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No workflow data"}):o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Workflow"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Executions"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Total Cost"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Avg Cost"})]})}),o.jsx("tbody",{children:Object.entries(d.byWorkflow).sort(([,y],[,p])=>p.cost-y.cost).map(([y,p])=>o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:y}),o.jsx("td",{className:"py-2 text-right",children:p.executions}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(Sa,{cost:p.cost})}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(Sa,{cost:p.executions>0?p.cost/p.executions:0})})]},y))})]})]})]})]}):o.jsx(Ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",children:o.jsx($t,{icon:o.jsx(Ev,{size:32}),title:"No cost data",description:"Execute workflows to see cost data."})})}function zi({label:n,value:u}){return o.jsxs("div",{className:"p-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:n}),o.jsx("p",{className:"text-2xl font-semibold mt-1",children:u})]})}function _1(){const[n,u]=N.useState("session"),[r,c]=N.useState(""),[d,h]=N.useState("{}"),[y,p]=N.useState(!1),[x,v]=N.useState(""),[b,g]=N.useState(null),_=iu(),{data:D=[]}=Wt({queryKey:["memory",n],queryFn:()=>d1(n)}),K=_o({mutationFn:({key:Y,value:R})=>h1(n,Y,R),onSuccess:()=>{_.invalidateQueries({queryKey:["memory",n]}),p(!1),c(""),h("{}")}}),O=_o({mutationFn:Y=>m1(n,Y),onSuccess:()=>{_.invalidateQueries({queryKey:["memory",n]})}}),Q=N.useCallback(async()=>{if(!x.trim())return;const Y=await y1(x,n);g(Y.results)},[x,n]),w=N.useCallback(()=>{if(r.trim())try{const Y=JSON.parse(d);K.mutate({key:r,value:Y})}catch{K.mutate({key:r,value:d})}},[r,d,K]);return o.jsxs(Ql,{title:"Memory Browser",description:"View and manage agent memory entries",actions:o.jsxs("button",{onClick:()=>p(!y),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:[o.jsx(Lb,{size:14}),"Add Entry"]}),children:[o.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[["session","global"].map(Y=>o.jsx("button",{onClick:()=>{u(Y),g(null)},className:`px-3 py-1.5 text-sm rounded-md ${n===Y?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:Y.charAt(0).toUpperCase()+Y.slice(1)},Y)),o.jsx("div",{className:"flex-1"}),o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("input",{value:x,onChange:Y=>v(Y.target.value),onKeyDown:Y=>Y.key==="Enter"&&Q(),placeholder:"Semantic search...",className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] w-48"}),o.jsx("button",{onClick:Q,className:"p-1.5 rounded-md hover:bg-[hsl(var(--accent))]",children:o.jsx(Gb,{size:14})})]})]}),y&&o.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] space-y-3",children:[o.jsx("input",{value:r,onChange:Y=>c(Y.target.value),placeholder:"Key",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"}),o.jsx(zv,{value:d,onChange:h,placeholder:"Value (JSON)"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("button",{onClick:w,disabled:!r.trim(),className:"px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:"Save"}),o.jsx("button",{onClick:()=>p(!1),className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Cancel"})]})]}),b&&o.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Search Results"}),b.length===0?o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No results found"}):o.jsx(ot,{data:b})]}),D.length===0?o.jsx($t,{icon:o.jsx(Nv,{size:32}),title:"No memory entries",description:`No entries in the ${n} scope. Use ctx.remember() in workflows or add entries manually.`}):o.jsx("div",{className:"space-y-2",children:D.map(Y=>o.jsxs("div",{className:"p-3 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsx("span",{className:"text-sm font-mono font-medium",children:Y.key}),o.jsx("button",{onClick:()=>O.mutate(Y.key),className:"p-1 rounded hover:bg-[hsl(var(--destructive))] hover:text-[hsl(var(--destructive-foreground))] text-[hsl(var(--muted-foreground))]",children:o.jsx(Ov,{size:14})})]}),o.jsx(ot,{data:Y.value,collapsed:!0})]},Y.key))})]})}function D1(){const[n,u]=N.useState(null),[r,c]=N.useState(null),d=iu(),{data:h=[]}=Wt({queryKey:["sessions"],queryFn:s1,refetchInterval:5e3}),{data:y}=Wt({queryKey:["session",n],queryFn:()=>u1(n),enabled:!!n}),p=_o({mutationFn:i1,onSuccess:()=>{d.invalidateQueries({queryKey:["sessions"]}),u(null)}}),x=y!=null&&y.history?r!==null?y.history.slice(0,r+1):y.history:[];return o.jsx(Ql,{title:"Session Manager",description:"Browse active sessions, replay conversations, and view handoff chains",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Sessions (",h.length,")"]}),h.length===0?o.jsx($t,{icon:o.jsx(Rv,{size:24}),title:"No sessions",description:"Sessions are created when using runtime.session()"}):h.map(v=>o.jsxs("button",{onClick:()=>{u(v.id),c(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${n===v.id?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[o.jsx("div",{className:"font-mono truncate",children:v.id}),o.jsxs("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5",children:[v.messageCount," messages"]})]},v.id))]}),o.jsx("div",{className:"lg:col-span-2",children:y?o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium font-mono",children:y.id}),o.jsxs("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[y.history.length," messages"]})]}),o.jsxs("button",{onClick:()=>p.mutate(y.id),className:"flex items-center gap-1 px-2 py-1 text-xs rounded-md border border-red-300 text-red-600 hover:bg-red-50 dark:border-red-800 dark:text-red-400 dark:hover:bg-red-950",children:[o.jsx(Ov,{size:12}),"Delete"]})]}),y.handoffHistory&&y.handoffHistory.length>0&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-xs font-medium mb-2",children:"Handoff Chain"}),o.jsx("div",{className:"flex items-center gap-1 flex-wrap",children:y.handoffHistory.map((v,b)=>o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.source}),o.jsx(wo,{size:12,className:"text-[hsl(var(--muted-foreground))]"}),o.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.target}),o.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:["(",v.mode,")"]}),b<y.handoffHistory.length-1&&o.jsx("span",{className:"mx-1 text-[hsl(var(--muted-foreground))]",children:"|"})]},b))})]}),y.history.length>1&&o.jsxs("div",{children:[o.jsxs("label",{className:"block text-xs font-medium mb-1",children:["Replay:"," ",r!==null?`${r+1} / ${y.history.length}`:"All"]}),o.jsx("input",{type:"range",min:0,max:y.history.length-1,value:r??y.history.length-1,onChange:v=>c(Number(v.target.value)),className:"w-full"})]}),o.jsx("div",{className:"space-y-3",children:x.map((v,b)=>o.jsxs("div",{className:`p-3 rounded-md text-sm ${v.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] ml-8":v.role==="assistant"?"bg-[hsl(var(--secondary))] mr-8":"bg-[hsl(var(--muted))] text-xs font-mono"}`,children:[o.jsx("div",{className:"text-xs font-medium mb-1 opacity-70",children:v.role}),o.jsx("div",{className:"whitespace-pre-wrap",children:v.content}),v.tool_calls&&v.tool_calls.length>0&&o.jsx("div",{className:"mt-2 space-y-1",children:v.tool_calls.map(g=>o.jsxs("details",{className:"text-xs",children:[o.jsx("summary",{className:"cursor-pointer font-mono",children:g.function.name}),o.jsx(ot,{data:JSON.parse(g.function.arguments),collapsed:!0})]},g.id))})]},b))})]}):o.jsx($t,{title:"Select a session",description:"Click a session to view its history"})})]})})}function U1(){const[n,u]=N.useState(null),[r,c]=N.useState(null),[d,h]=N.useState(null),[y,p]=N.useState(!1),{data:x=[]}=Wt({queryKey:["tools"],queryFn:c1}),{data:v}=Wt({queryKey:["tool",n],queryFn:()=>o1(n),enabled:!!n}),b=N.useCallback(async g=>{if(n){c(null),h(null),p(!0);try{const _=await f1(n,g);c(_.result)}catch(_){h(_ instanceof Error?_.message:String(_))}finally{p(!1)}}},[n]);return o.jsx(Ql,{title:"Tool Inspector",description:"View tool schemas and test tools directly",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Tools (",x.length,")"]}),x.length===0?o.jsx($t,{icon:o.jsx(Av,{size:24}),title:"No tools",description:"Register tools with runtime.registerTool()"}):x.map(g=>o.jsxs("button",{onClick:()=>{u(g.name),c(null),h(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${n===g.name?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[o.jsx("div",{className:"font-medium",children:g.name}),o.jsx("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5 truncate",children:g.description}),o.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[g.sensitive&&o.jsx("span",{className:"px-1 py-0.5 rounded bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300 text-[10px]",children:"sensitive"}),g.requireApproval&&o.jsx("span",{className:"px-1 py-0.5 rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 text-[10px]",children:"approval"})]})]},g.name))]}),o.jsx("div",{className:"lg:col-span-2",children:n?v?o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-lg font-medium",children:v.name}),o.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:v.description})]}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.sensitive&&o.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300",children:"Sensitive"}),v.requireApproval&&o.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:"Requires Approval"}),v.retry.attempts&&v.retry.attempts>1&&o.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300",children:["Retry: ",v.retry.attempts,"x ",v.retry.backoff]}),v.hasHooks&&v.hooks&&o.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300",children:["Hooks:"," ",[v.hooks.hasBefore&&"before",v.hooks.hasAfter&&"after"].filter(Boolean).join(" + ")]})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-2",children:"Input Schema"}),o.jsx(ot,{data:v.inputSchema})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-2",children:"Test Tool"}),o.jsx(_v,{schema:v.inputSchema,onSubmit:b,submitLabel:y?"Running...":"Run Tool"})]}),r!==null&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-2",children:"Result"}),o.jsx(ot,{data:r})]}),d&&o.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:d})]}):o.jsx("div",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Loading..."}):o.jsx($t,{title:"Select a tool",description:"Click a tool to view its schema and test it"})})]})})}function w1({summary:n,items:u,totalCost:r}){const c=n.scorers?Object.entries(n.scorers):[];return c.length===0&&!n.timing&&r<=0?null:o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Summary"}),o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Metric"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Mean"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"P50"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"P95"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Min"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Max"})]})}),o.jsxs("tbody",{children:[c.map(([d,h])=>{const y=u.some(p=>!p.error&&p.scores[d]!=null);return o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:d}),y?o.jsxs(o.Fragment,{children:[o.jsx("td",{className:"py-2 text-right font-mono",children:h.mean.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:h.p50.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:h.p95.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:h.min.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:h.max.toFixed(3)})]}):o.jsx("td",{colSpan:5,className:"py-2 text-center text-[hsl(var(--muted-foreground))]",children:"No valid scores"})]},d)}),n.timing&&o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono text-[hsl(var(--muted-foreground))]",children:"Timing"}),o.jsx("td",{className:"py-2 text-right font-mono",children:Et(n.timing.mean)}),o.jsx("td",{className:"py-2 text-right font-mono",children:Et(n.timing.p50)}),o.jsx("td",{className:"py-2 text-right font-mono",children:Et(n.timing.p95)}),o.jsx("td",{className:"py-2 text-right font-mono",children:Et(n.timing.min)}),o.jsx("td",{className:"py-2 text-right font-mono",children:Et(n.timing.max)})]})]})]}),r>0&&o.jsxs("div",{className:"mt-2 text-xs text-[hsl(var(--muted-foreground))]",children:["Total cost: ",o.jsx("span",{className:"font-mono",children:Nt(r)})]})]})}function Qi(n){return n>=.8?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":n>=.5?"bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300":"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300"}function H1({items:n,scorerNames:u,onSelectItem:r,errorFilter:c,onErrorFilterChange:d,scorerFilter:h,onScorerFilterChange:y,threshold:p,onThresholdChange:x,sortField:v,onSortFieldChange:b,sortDir:g,onSortDirChange:_}){const D=p!==""?parseFloat(p):null,K=c!=="all"||h!==""&&D!=null&&!isNaN(D),O=N.useMemo(()=>n.map((R,q)=>({item:R,index:q})),[n]),Q=N.useMemo(()=>{let R=O;return c==="errors"?R=R.filter(({item:q})=>!!q.error):c==="no-errors"&&(R=R.filter(({item:q})=>!q.error)),h&&D!=null&&!isNaN(D)&&(R=R.filter(({item:q})=>{const J=q.scores[h];return J!=null&&J<D})),R},[O,c,h,D]),w=N.useMemo(()=>{const R=[...Q],q=g==="asc"?1:-1;return R.sort((J,Z)=>{let $,ee;return v==="index"?($=J.index,ee=Z.index):v==="duration"?($=J.item.duration??1/0,ee=Z.item.duration??1/0):v==="cost"?($=J.item.cost??1/0,ee=Z.item.cost??1/0):($=J.item.scores[v]??-1/0,ee=Z.item.scores[v]??-1/0),($-ee)*q}),R},[Q,v,g]),Y=[{value:"index",label:"Item index"},{value:"duration",label:"Duration"},{value:"cost",label:"Cost"},...u.map(R=>({value:R,label:`Score: ${R}`}))];return o.jsxs("div",{children:[o.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Items (",n.length,")"]}),o.jsxs("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:[o.jsxs("select",{value:c,onChange:R=>d(R.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"all",children:"All items"}),o.jsx("option",{value:"errors",children:"Errors only"}),o.jsx("option",{value:"no-errors",children:"No errors"})]}),u.length>0&&o.jsxs(o.Fragment,{children:[o.jsxs("select",{value:h,onChange:R=>y(R.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Score filter..."}),u.map(R=>o.jsx("option",{value:R,children:R},R))]}),h&&o.jsx("input",{type:"number",step:"0.1",min:"0",max:"1",placeholder:"< threshold",value:p,onChange:R=>x(R.target.value),className:"w-24 px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]"})]}),o.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[o.jsx("select",{value:v,onChange:R=>b(R.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:Y.map(R=>o.jsx("option",{value:R.value,children:R.label},R.value))}),o.jsx("button",{onClick:()=>_(g==="asc"?"desc":"asc"),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",title:g==="asc"?"Ascending":"Descending",children:g==="asc"?"↑":"↓"})]})]}),K&&o.jsxs("div",{className:"flex items-center gap-2 mb-2 text-xs text-[hsl(var(--muted-foreground))]",children:[o.jsxs("span",{children:[Q.length," of ",n.length," items"]}),o.jsx("button",{onClick:()=>{d("all"),y(""),x("")},className:"text-[hsl(var(--primary))] hover:underline",children:"Reset filters"})]}),w.length===0&&K&&o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))] py-4 text-center",children:"No items match the current filters."}),o.jsx("div",{className:"space-y-1",children:w.map(({item:R,index:q})=>o.jsxs("button",{onClick:()=>r(q),className:"w-full text-left flex items-center justify-between px-3 py-2 text-xs rounded-md border border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))] cursor-pointer",children:[o.jsxs("span",{className:"font-mono",children:["Item #",q+1,R.error&&o.jsx("span",{className:"ml-2 text-red-600 dark:text-red-400",children:"(error)"}),R.scorerErrors&&R.scorerErrors.length>0&&!R.error&&o.jsx("span",{className:"ml-2 text-amber-600 dark:text-amber-400",children:"(scorer errors)"})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[Object.entries(R.scores).filter(([,J])=>J!=null).map(([J,Z])=>o.jsxs("span",{className:`px-1.5 py-0.5 rounded font-mono ${Qi(Z)}`,children:[J,": ",Z.toFixed(2)]},J)),R.duration!=null&&o.jsx("span",{className:"px-1.5 py-0.5 rounded font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]",children:Et(R.duration)}),R.cost!=null&&R.cost>0&&o.jsx("span",{className:"px-1.5 py-0.5 rounded font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]",children:Nt(R.cost)})]})]},q))})]})}const zy=300;function q1({text:n}){const[u,r]=N.useState(!1),c=n.length>zy;return o.jsxs("div",{children:[o.jsx("pre",{className:"text-xs font-mono p-3 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-96 whitespace-pre-wrap",children:c&&!u?n.slice(0,zy)+"...":n}),c&&o.jsx("button",{onClick:()=>r(!u),className:"text-xs text-[hsl(var(--primary))] hover:underline mt-1",children:u?"Show less":"Show more"})]})}function B1({item:n,itemIndex:u,scorerNames:r,onBack:c}){const d=n.scorerErrors??[],h=n.cost??0,y=n.scorerCost??0,p=h+y;return o.jsxs("div",{className:"space-y-4",children:[o.jsx("button",{onClick:c,className:"px-3 py-1.5 text-xs rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Back to list"}),o.jsxs("h3",{className:"text-sm font-medium",children:["Item #",u+1]}),o.jsxs("div",{className:"text-xs",children:[o.jsx("span",{className:"font-medium",children:"Input:"}),o.jsx(ot,{data:n.input,collapsed:!0})]}),n.annotations!=null&&o.jsxs("div",{className:"text-xs",children:[o.jsx("span",{className:"font-medium",children:"Expected:"}),o.jsx(ot,{data:n.annotations,collapsed:!0})]}),o.jsxs("div",{className:"text-xs",children:[o.jsx("span",{className:"font-medium",children:"Output:"}),o.jsx(ot,{data:n.output,collapsed:!0})]}),n.error&&o.jsxs("div",{className:"text-xs",children:[o.jsx("span",{className:"font-medium text-red-600 dark:text-red-400",children:"Error:"}),o.jsx("span",{className:"ml-1",children:n.error})]}),(n.duration!=null||p>0)&&o.jsxs("div",{className:"flex items-center gap-3 text-xs text-[hsl(var(--muted-foreground))]",children:[n.duration!=null&&o.jsxs("span",{children:["Duration: ",o.jsx("span",{className:"font-mono",children:Et(n.duration)})]}),p>0&&h>0&&y>0&&o.jsxs("span",{children:["Cost: ",o.jsx("span",{className:"font-mono",children:Nt(h)})," workflow"," + ",o.jsx("span",{className:"font-mono",children:Nt(y)})," scoring"," = ",o.jsx("span",{className:"font-mono",children:Nt(p)})]}),p>0&&!(h>0&&y>0)&&o.jsxs("span",{children:["Cost: ",o.jsx("span",{className:"font-mono",children:Nt(p)})]})]}),r.length>0&&o.jsxs("div",{className:"space-y-3",children:[o.jsx("h4",{className:"text-xs font-medium text-[hsl(var(--muted-foreground))]",children:"Scorer Details"}),r.map(x=>{var _;const v=n.scores[x],b=(_=n.scoreDetails)==null?void 0:_[x],g=d.find(D=>D.includes(`"${x}"`));return o.jsxs("div",{className:"border border-[hsl(var(--border))] rounded-md p-3 space-y-2",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[o.jsx("span",{className:"font-mono font-medium",children:x}),v!=null&&o.jsx("span",{className:`px-1.5 py-0.5 rounded font-mono ${Qi(v)}`,children:v.toFixed(3)}),v==null&&!g&&o.jsx("span",{className:"px-1.5 py-0.5 rounded font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--muted-foreground))]",children:"null"}),(b==null?void 0:b.duration)!=null&&o.jsx("span",{className:"px-1.5 py-0.5 rounded font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]",children:Et(b.duration)}),(b==null?void 0:b.cost)!=null&&b.cost>0&&o.jsx("span",{className:"px-1.5 py-0.5 rounded font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]",children:Nt(b.cost)})]}),(b==null?void 0:b.metadata)&&typeof b.metadata.reasoning=="string"&&b.metadata.reasoning.length>0&&o.jsxs("div",{className:"text-xs",children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Reasoning:"}),o.jsx(q1,{text:b.metadata.reasoning})]}),(b==null?void 0:b.metadata)&&(()=>{const D=Object.keys(b.metadata).filter(O=>O!=="reasoning");if(D.length===0)return null;const K={};for(const O of D)K[O]=b.metadata[O];return o.jsxs("div",{className:"text-xs",children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Metadata:"}),o.jsx(ot,{data:K,collapsed:!0})]})})(),g&&o.jsx("div",{className:"text-xs text-amber-600 dark:text-amber-400",children:g})]},x)})]})]})}const Bo=10,Q1=["[0, 0.1)","[0.1, 0.2)","[0.2, 0.3)","[0.3, 0.4)","[0.4, 0.5)","[0.5, 0.6)","[0.6, 0.7)","[0.7, 0.8)","[0.8, 0.9)","[0.9, 1.0]"];function L1(n){const u=Math.max(0,Math.min(1,n)),r=Math.floor(u*Bo);return Math.min(r,Bo-1)}function Y1({name:n,buckets:u,maxCount:r}){const c=u.some(d=>d>0);return o.jsxs("div",{children:[o.jsx("h4",{className:"text-xs font-mono font-medium mb-2",children:n}),c?o.jsx("div",{className:"space-y-0.5",children:u.map((d,h)=>o.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[o.jsx("span",{className:"w-16 text-right font-mono text-[hsl(var(--muted-foreground))]",children:Q1[h]}),o.jsx("div",{className:"flex-1 h-4 bg-[hsl(var(--secondary))] rounded overflow-hidden",children:d>0&&o.jsx("div",{className:"h-full bg-[hsl(var(--primary))] rounded",style:{width:`${d/r*100}%`,opacity:.8}})}),o.jsx("span",{className:"w-6 text-right font-mono text-[hsl(var(--muted-foreground))]",children:d})]},h))}):o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No valid scores"})]})}function G1({items:n,scorerNames:u}){const r=N.useMemo(()=>u.map(c=>{const d=new Array(Bo).fill(0);for(const y of n){const p=y.scores[c];p!=null&&!y.error&&d[L1(p)]++}const h=Math.max(...d,1);return{name:c,buckets:d,maxCount:h}}),[n,u]);return u.length===0?null:o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-3",children:"Score Distribution"}),o.jsx("div",{className:"grid grid-cols-1 gap-4",children:r.map(c=>o.jsx(Y1,{name:c.name,buckets:c.buckets,maxCount:c.maxCount},c.name))})]})}function po({value:n,percent:u,invert:r,format:c}){const d=r?n<0:n>0,h=r?n>0:n<0,y=d?"text-green-600 dark:text-green-400":h?"text-red-600 dark:text-red-400":"",p=c?`${n>0?"+":n<0?"-":""}${c(Math.abs(n))}`:`${n>0?"+":""}${Math.abs(n)<100?n.toFixed(3):n.toFixed(0)}`;return o.jsxs(o.Fragment,{children:[o.jsx("td",{className:`py-2 text-right font-mono ${y}`,children:p}),o.jsxs("td",{className:`py-2 text-right font-mono ${y}`,children:[u>0?"+":"",u.toFixed(1),"%"]})]})}function X1({compareResult:n,baseline:u,candidate:r}){const[c,d]=N.useState(null),h=(y,p)=>{(c==null?void 0:c.type)===y&&(c==null?void 0:c.index)===p?d(null):d({type:y,index:p})};return o.jsxs("div",{className:"space-y-4",children:[n.summary&&o.jsx("p",{className:"text-sm",children:n.summary}),n.scorers&&Object.keys(n.scorers).length>0&&o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Scorer Comparison"}),o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Metric"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"%"})]})}),o.jsxs("tbody",{children:[Object.entries(n.scorers).map(([y,p])=>o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:y}),o.jsx("td",{className:"py-2 text-right font-mono",children:p.baselineMean.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:p.candidateMean.toFixed(3)}),o.jsx(po,{value:p.delta,percent:p.deltaPercent})]},y)),n.timing&&o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono text-[hsl(var(--muted-foreground))]",children:"Timing (mean)"}),o.jsx("td",{className:"py-2 text-right font-mono",children:Et(n.timing.baselineMean)}),o.jsx("td",{className:"py-2 text-right font-mono",children:Et(n.timing.candidateMean)}),o.jsx(po,{value:n.timing.delta,percent:n.timing.deltaPercent,invert:!0,format:Et})]}),n.cost&&o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono text-[hsl(var(--muted-foreground))]",children:"Cost (total)"}),o.jsx("td",{className:"py-2 text-right font-mono",children:Nt(n.cost.baselineTotal)}),o.jsx("td",{className:"py-2 text-right font-mono",children:Nt(n.cost.candidateTotal)}),o.jsx(po,{value:n.cost.delta,percent:n.cost.deltaPercent,invert:!0,format:Nt})]})]})]})]}),n.regressions&&n.regressions.length>0&&o.jsxs("div",{children:[o.jsxs("h3",{className:"text-sm font-medium mb-2 text-red-600 dark:text-red-400",children:["Regressions (",n.regressions.length,")"]}),o.jsx("div",{className:"space-y-1",children:n.regressions.map((y,p)=>{const x=(c==null?void 0:c.type)==="regression"&&c.index===p,v=u==null?void 0:u.items[y.itemIndex],b=r==null?void 0:r.items[y.itemIndex];return o.jsxs("div",{children:[o.jsxs("button",{onClick:()=>h("regression",p),className:"w-full text-left flex items-center justify-between px-3 py-1.5 text-xs border border-[hsl(var(--border))] rounded hover:bg-[hsl(var(--accent))] cursor-pointer",children:[o.jsxs("span",{className:"font-mono",children:["Item #",y.itemIndex+1," - ",y.scorer]}),o.jsxs("span",{className:"font-mono text-red-600 dark:text-red-400",children:[y.baselineScore.toFixed(2)," ","→"," ",y.candidateScore.toFixed(2)," (",y.delta.toFixed(2),")"]})]}),x&&v&&b&&o.jsx(_y,{baselineItem:v,candidateItem:b,scorer:y.scorer})]},p)})})]}),n.improvements&&n.improvements.length>0&&o.jsxs("div",{children:[o.jsxs("h3",{className:"text-sm font-medium mb-2 text-green-600 dark:text-green-400",children:["Improvements (",n.improvements.length,")"]}),o.jsx("div",{className:"space-y-1",children:n.improvements.map((y,p)=>{const x=(c==null?void 0:c.type)==="improvement"&&c.index===p,v=u==null?void 0:u.items[y.itemIndex],b=r==null?void 0:r.items[y.itemIndex];return o.jsxs("div",{children:[o.jsxs("button",{onClick:()=>h("improvement",p),className:"w-full text-left flex items-center justify-between px-3 py-1.5 text-xs border border-[hsl(var(--border))] rounded hover:bg-[hsl(var(--accent))] cursor-pointer",children:[o.jsxs("span",{className:"font-mono",children:["Item #",y.itemIndex+1," - ",y.scorer]}),o.jsxs("span",{className:"font-mono text-green-600 dark:text-green-400",children:[y.baselineScore.toFixed(2)," ","→"," ",y.candidateScore.toFixed(2)," (+",y.delta.toFixed(2),")"]})]}),x&&v&&b&&o.jsx(_y,{baselineItem:v,candidateItem:b,scorer:y.scorer})]},p)})})]})]})}function _y({baselineItem:n,candidateItem:u,scorer:r}){var p,x,v,b;const c=(p=n.scoreDetails)==null?void 0:p[r],d=(x=u.scoreDetails)==null?void 0:x[r],h=typeof((v=c==null?void 0:c.metadata)==null?void 0:v.reasoning)=="string"?c.metadata.reasoning:null,y=typeof((b=d==null?void 0:d.metadata)==null?void 0:b.reasoning)=="string"?d.metadata.reasoning:null;return o.jsxs("div",{className:"mt-1 mb-2 p-3 rounded bg-[hsl(var(--card))] border border-[hsl(var(--border))] grid grid-cols-2 gap-4 text-xs",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx("h5",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Baseline Output"}),o.jsx(ot,{data:n.output,collapsed:!0}),c&&o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:"Score:"}),c.score!=null&&o.jsx("span",{className:`px-1.5 py-0.5 rounded font-mono ${Qi(c.score)}`,children:c.score.toFixed(3)})]}),h&&o.jsxs("div",{children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Reasoning:"}),o.jsx("pre",{className:"text-xs font-mono p-2 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-48 whitespace-pre-wrap mt-1",children:h})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx("h5",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Candidate Output"}),o.jsx(ot,{data:u.output,collapsed:!0}),d&&o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:"Score:"}),d.score!=null&&o.jsx("span",{className:`px-1.5 py-0.5 rounded font-mono ${Qi(d.score)}`,children:d.score.toFixed(3)})]}),y&&o.jsxs("div",{children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Reasoning:"}),o.jsx("pre",{className:"text-xs font-mono p-2 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-48 whitespace-pre-wrap mt-1",children:y})]})]})]})}function K1(){var F;const n=iu(),[u,r]=N.useState("run"),[c,d]=N.useState(""),[h,y]=N.useState(!1),[p,x]=N.useState(null),[v,b]=N.useState(null),[g,_]=N.useState(null),[D,K]=N.useState("all"),[O,Q]=N.useState(""),[w,Y]=N.useState(""),[R,q]=N.useState("index"),[J,Z]=N.useState("asc"),[$,ee]=N.useState(""),[fe,je]=N.useState(!1),[He,Ye]=N.useState(null),[qt,it]=N.useState(null),[We,B]=N.useState(null),{data:k=[]}=Wt({queryKey:["evals"],queryFn:g1}),{data:te=[]}=Wt({queryKey:["evalHistory"],queryFn:x1}),ge=k.find(V=>V.name===c),Ce=N.useCallback(async()=>{if(c){y(!0),b(null),x(null),_(null);try{const V=await b1(c);x(V),n.invalidateQueries({queryKey:["evalHistory"]})}catch(V){b(V instanceof Error?V.message:String(V))}finally{y(!1)}}},[c,n]),C=N.useCallback(async()=>{if(te.length<2)return;const V=te[0].eval,se=te.filter(ue=>ue.eval===V);if(!(se.length<2)){je(!0);try{const ue=se[0].data,xe=se[1].data;it(xe),B(ue);const tt=await S1(xe,ue);Ye(tt)}catch(ue){b(ue instanceof Error?ue.message:String(ue))}finally{je(!1)}}},[te]),G=(F=p==null?void 0:p.summary)!=null&&F.scorers?Object.keys(p.summary.scorers):[];return o.jsxs(Ql,{title:"Eval Runner",description:"Run evaluations, view results, and compare runs",children:[o.jsx("div",{className:"flex items-center gap-1 mb-6",children:["run","history","compare"].map(V=>o.jsx("button",{onClick:()=>r(V),className:`px-3 py-1.5 text-sm rounded-md ${u===V?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:V.charAt(0).toUpperCase()+V.slice(1)},V))}),u==="run"&&o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium mb-1",children:"Eval"}),k.length===0?o.jsxs("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:["No evals registered. Define evals with"," ",o.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"defineEval()"})," ","and load them via the"," ",o.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"evals"})," ","middleware option or"," ",o.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"runtime.registerEval()"}),"."]}):o.jsxs("select",{value:c,onChange:V=>d(V.target.value),className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Select an eval..."}),k.map(V=>o.jsx("option",{value:V.name,children:V.name},V.name))]})]}),ge&&o.jsxs("div",{className:"space-y-2 text-xs",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Workflow:"}),o.jsx("span",{className:"font-mono",children:ge.workflow})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Dataset:"}),o.jsx("span",{className:"font-mono",children:ge.dataset})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Scorers:"}),o.jsx("div",{className:"flex flex-wrap gap-1",children:ge.scorers.map(V=>o.jsx("span",{className:"px-1.5 py-0.5 rounded bg-[hsl(var(--muted))] font-mono",children:V},V))})]})]}),o.jsx("button",{onClick:Ce,disabled:!c||h,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:h?"Running...":"Run Eval"})]}),o.jsxs("div",{children:[v&&o.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm mb-4",children:v}),p?o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"flex items-center gap-4 text-xs text-[hsl(var(--muted-foreground))]",children:[o.jsxs("span",{children:[p.summary.count," items, ",p.summary.failures," failures"]}),p.duration>0&&o.jsx("span",{children:Et(p.duration)}),p.totalCost>0&&o.jsx("span",{children:Nt(p.totalCost)})]}),g!=null?o.jsx(B1,{item:p.items[g],itemIndex:g,scorerNames:G,onBack:()=>_(null)}):o.jsxs(o.Fragment,{children:[o.jsx(w1,{summary:p.summary,items:p.items,totalCost:p.totalCost}),o.jsx(G1,{items:p.items,scorerNames:G}),p.items.length>0&&o.jsx(H1,{items:p.items,scorerNames:G,onSelectItem:_,errorFilter:D,onErrorFilterChange:K,scorerFilter:O,onScorerFilterChange:Q,threshold:w,onThresholdChange:Y,sortField:R,onSortFieldChange:q,sortDir:J,onSortDirChange:Z})]})]}):o.jsx($t,{icon:o.jsx(Cv,{size:32}),title:"No results",description:"Select an eval and run it to see results."})]})]}),u==="history"&&o.jsx("div",{children:te.length===0?o.jsx($t,{title:"No eval history",description:"Run evaluations to build history."}):o.jsx(Z1,{history:te,evalFilter:$,onEvalFilterChange:ee,onSelect:V=>{x(V),_(null),r("run")}})}),u==="compare"&&o.jsx("div",{className:"space-y-4",children:te.length<2?o.jsx($t,{title:"Need at least 2 eval runs",description:"Run evaluations to compare results."}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Comparing most recent run against previous run."}),o.jsx("button",{onClick:C,disabled:fe,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:fe?"Comparing...":"Compare"}),He&&o.jsx(X1,{compareResult:He,baseline:qt,candidate:We})]})})]})}function Z1({history:n,evalFilter:u,onEvalFilterChange:r,onSelect:c}){var x;const d=[...new Set(n.map(v=>v.eval))].sort(),h=u?n.filter(v=>v.eval===u):n,y=new Set;for(const v of h){const b=v.data;if((x=b.summary)!=null&&x.scorers)for(const g of Object.keys(b.summary.scorers))y.add(g)}const p=[...y].sort();return o.jsxs("div",{children:[d.length>1&&o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsxs("select",{value:u,onChange:v=>r(v.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"All evals"}),d.map(v=>o.jsx("option",{value:v,children:v},v))]}),u&&o.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[h.length," run",h.length!==1?"s":""]})]}),o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Eval"}),o.jsx("th",{className:"text-left py-2 font-medium",children:"Timestamp"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Items"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Failures"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Duration"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"}),p.map(v=>o.jsx("th",{className:"text-right py-2 font-medium font-mono",children:v},v))]})}),o.jsx("tbody",{children:h.map(v=>{const b=v.data;return o.jsxs("tr",{className:"border-b border-[hsl(var(--border))] cursor-pointer hover:bg-[hsl(var(--accent))]",onClick:()=>c(b),children:[o.jsx("td",{className:"py-2 font-mono",children:v.eval}),o.jsx("td",{className:"py-2",children:new Date(v.timestamp).toLocaleString()}),o.jsx("td",{className:"py-2 text-right",children:b.summary.count}),o.jsx("td",{className:"py-2 text-right",children:b.summary.failures>0?o.jsx("span",{className:"text-red-600 dark:text-red-400",children:b.summary.failures}):0}),o.jsx("td",{className:"py-2 text-right font-mono",children:b.duration>0?Et(b.duration):"-"}),o.jsx("td",{className:"py-2 text-right font-mono",children:b.totalCost>0?Nt(b.totalCost):"-"}),p.map(g=>{var D,K;const _=(K=(D=b.summary)==null?void 0:D.scorers)==null?void 0:K[g];return o.jsx("td",{className:"py-2 text-right font-mono",children:_?_.mean.toFixed(3):"-"},g)})]},v.id)})})]})]})}function V1(){return o.jsx(xb,{basename:window.__AXL_STUDIO_BASE__||"/",children:o.jsxs("div",{className:"flex h-screen overflow-hidden",children:[o.jsx(Ib,{}),o.jsx("div",{className:"flex-1 overflow-hidden",children:o.jsxs(Fx,{children:[o.jsx(rl,{path:"/playground",element:o.jsx(C1,{})}),o.jsx(rl,{path:"/workflows",element:o.jsx(T1,{})}),o.jsx(rl,{path:"/traces",element:o.jsx(A1,{})}),o.jsx(rl,{path:"/costs",element:o.jsx(z1,{})}),o.jsx(rl,{path:"/memory",element:o.jsx(_1,{})}),o.jsx(rl,{path:"/sessions",element:o.jsx(D1,{})}),o.jsx(rl,{path:"/tools",element:o.jsx(U1,{})}),o.jsx(rl,{path:"/evals",element:o.jsx(K1,{})}),o.jsx(rl,{path:"*",element:o.jsx(kx,{to:"/playground",replace:!0})})]})})]})})}mg.createRoot(document.getElementById("root")).render(o.jsx(N.StrictMode,{children:o.jsx(Qg,{client:Wg,children:o.jsx(V1,{})})}));