@passelin/mock-bff 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,268 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function l(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=l(a);fetch(a.href,i)}})();var tE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wd={exports:{}},Pu={};/**
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=Symbol.for("react.transitional.element"),Cy=Symbol.for("react.fragment");function Id(e,t,l){var n=null;if(l!==void 0&&(n=""+l),t.key!==void 0&&(n=""+t.key),"key"in t){l={};for(var a in t)a!=="key"&&(l[a]=t[a])}else l=t;return t=l.ref,{$$typeof:Ay,type:e,key:n,ref:t!==void 0?t:null,props:l}}Pu.Fragment=Cy;Pu.jsx=Id;Pu.jsxs=Id;Wd.exports=Pu;var o=Wd.exports,Pd={exports:{}},U={};/**
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 bf=Symbol.for("react.transitional.element"),Ty=Symbol.for("react.portal"),Ny=Symbol.for("react.fragment"),zy=Symbol.for("react.strict_mode"),_y=Symbol.for("react.profiler"),Oy=Symbol.for("react.consumer"),jy=Symbol.for("react.context"),My=Symbol.for("react.forward_ref"),Ry=Symbol.for("react.suspense"),Dy=Symbol.for("react.memo"),eh=Symbol.for("react.lazy"),wy=Symbol.for("react.activity"),ko=Symbol.iterator;function Uy(e){return e===null||typeof e!="object"?null:(e=ko&&e[ko]||e["@@iterator"],typeof e=="function"?e:null)}var th={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lh=Object.assign,nh={};function la(e,t,l){this.props=e,this.context=t,this.refs=nh,this.updater=l||th}la.prototype.isReactComponent={};la.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};la.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ah(){}ah.prototype=la.prototype;function Sf(e,t,l){this.props=e,this.context=t,this.refs=nh,this.updater=l||th}var Ef=Sf.prototype=new ah;Ef.constructor=Sf;lh(Ef,la.prototype);Ef.isPureReactComponent=!0;var Ko=Array.isArray;function pr(){}var ae={H:null,A:null,T:null,S:null},ih=Object.prototype.hasOwnProperty;function Af(e,t,l){var n=l.ref;return{$$typeof:bf,type:e,key:t,ref:n!==void 0?n:null,props:l}}function Hy(e,t){return Af(e.type,t,e.props)}function Cf(e){return typeof e=="object"&&e!==null&&e.$$typeof===bf}function Ly(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return t[l]})}var Jo=/\/+/g;function Nc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ly(""+e.key):t.toString(36)}function By(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(pr,pr):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function xn(e,t,l,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(i){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case bf:case Ty:u=!0;break;case eh:return u=e._init,xn(u(e._payload),t,l,n,a)}}if(u)return a=a(e),u=n===""?"."+Nc(e,0):n,Ko(a)?(l="",u!=null&&(l=u.replace(Jo,"$&/")+"/"),xn(a,t,l,"",function(f){return f})):a!=null&&(Cf(a)&&(a=Hy(a,l+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Jo,"$&/")+"/")+u)),t.push(a)),1;u=0;var c=n===""?".":n+":";if(Ko(e))for(var r=0;r<e.length;r++)n=e[r],i=c+Nc(n,r),u+=xn(n,t,l,i,a);else if(r=Uy(e),typeof r=="function")for(e=r.call(e),r=0;!(n=e.next()).done;)n=n.value,i=c+Nc(n,r++),u+=xn(n,t,l,i,a);else if(i==="object"){if(typeof e.then=="function")return xn(By(e),t,l,n,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function Li(e,t,l){if(e==null)return e;var n=[],a=0;return xn(e,n,"","",function(i){return t.call(l,i,a++)}),n}function Yy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l)},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Fo=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)},qy={map:Li,forEach:function(e,t,l){Li(e,function(){t.apply(this,arguments)},l)},count:function(e){var t=0;return Li(e,function(){t++}),t},toArray:function(e){return Li(e,function(t){return t})||[]},only:function(e){if(!Cf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Activity=wy;U.Children=qy;U.Component=la;U.Fragment=Ny;U.Profiler=_y;U.PureComponent=Sf;U.StrictMode=zy;U.Suspense=Ry;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae;U.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ae.H.useMemoCache(e)}};U.cache=function(e){return function(){return e.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(e,t,l){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=lh({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!ih.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(n[i]=t[i]);var i=arguments.length-2;if(i===1)n.children=l;else if(1<i){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+2];n.children=u}return Af(e.type,a,n)};U.createContext=function(e){return e={$$typeof:jy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Oy,_context:e},e};U.createElement=function(e,t,l){var n,a={},i=null;if(t!=null)for(n in t.key!==void 0&&(i=""+t.key),t)ih.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var u=arguments.length-2;if(u===1)a.children=l;else if(1<u){for(var c=Array(u),r=0;r<u;r++)c[r]=arguments[r+2];a.children=c}if(e&&e.defaultProps)for(n in u=e.defaultProps,u)a[n]===void 0&&(a[n]=u[n]);return Af(e,i,a)};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:My,render:e}};U.isValidElement=Cf;U.lazy=function(e){return{$$typeof:eh,_payload:{_status:-1,_result:e},_init:Yy}};U.memo=function(e,t){return{$$typeof:Dy,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=ae.T,l={};ae.T=l;try{var n=e(),a=ae.S;a!==null&&a(l,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(pr,Fo)}catch(i){Fo(i)}finally{t!==null&&l.types!==null&&(t.types=l.types),ae.T=t}};U.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()};U.use=function(e){return ae.H.use(e)};U.useActionState=function(e,t,l){return ae.H.useActionState(e,t,l)};U.useCallback=function(e,t){return ae.H.useCallback(e,t)};U.useContext=function(e){return ae.H.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e,t){return ae.H.useDeferredValue(e,t)};U.useEffect=function(e,t){return ae.H.useEffect(e,t)};U.useEffectEvent=function(e){return ae.H.useEffectEvent(e)};U.useId=function(){return ae.H.useId()};U.useImperativeHandle=function(e,t,l){return ae.H.useImperativeHandle(e,t,l)};U.useInsertionEffect=function(e,t){return ae.H.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return ae.H.useLayoutEffect(e,t)};U.useMemo=function(e,t){return ae.H.useMemo(e,t)};U.useOptimistic=function(e,t){return ae.H.useOptimistic(e,t)};U.useReducer=function(e,t,l){return ae.H.useReducer(e,t,l)};U.useRef=function(e){return ae.H.useRef(e)};U.useState=function(e){return ae.H.useState(e)};U.useSyncExternalStore=function(e,t,l){return ae.H.useSyncExternalStore(e,t,l)};U.useTransition=function(){return ae.H.useTransition()};U.version="19.2.4";Pd.exports=U;var g=Pd.exports;const Gy=xf(g);var uh={exports:{}},ec={},ch={exports:{}},rh={};/**
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
+ */(function(e){function t(N,H){var L=N.length;N.push(H);e:for(;0<L;){var ee=L-1>>>1,te=N[ee];if(0<a(te,H))N[ee]=H,N[L]=te,L=ee;else break e}}function l(N){return N.length===0?null:N[0]}function n(N){if(N.length===0)return null;var H=N[0],L=N.pop();if(L!==H){N[0]=L;e:for(var ee=0,te=N.length,$e=te>>>1;ee<$e;){var bt=2*(ee+1)-1,Bt=N[bt],St=bt+1,Ae=N[St];if(0>a(Bt,L))St<te&&0>a(Ae,Bt)?(N[ee]=Ae,N[St]=L,ee=St):(N[ee]=Bt,N[bt]=L,ee=bt);else if(St<te&&0>a(Ae,L))N[ee]=Ae,N[St]=L,ee=St;else break e}}return H}function a(N,H){var L=N.sortIndex-H.sortIndex;return L!==0?L:N.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var r=[],f=[],d=1,s=null,h=3,y=!1,x=!1,S=!1,A=!1,p=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function b(N){for(var H=l(f);H!==null;){if(H.callback===null)n(f);else if(H.startTime<=N)n(f),H.sortIndex=H.expirationTime,t(r,H);else break;H=l(f)}}function C(N){if(S=!1,b(N),!x)if(l(r)!==null)x=!0,R||(R=!0,Ue());else{var H=l(f);H!==null&&He(C,H.startTime-N)}}var R=!1,T=-1,O=5,_=-1;function D(){return A?!0:!(e.unstable_now()-_<O)}function F(){if(A=!1,R){var N=e.unstable_now();_=N;var H=!0;try{e:{x=!1,S&&(S=!1,m(T),T=-1),y=!0;var L=h;try{t:{for(b(N),s=l(r);s!==null&&!(s.expirationTime>N&&D());){var ee=s.callback;if(typeof ee=="function"){s.callback=null,h=s.priorityLevel;var te=ee(s.expirationTime<=N);if(N=e.unstable_now(),typeof te=="function"){s.callback=te,b(N),H=!0;break t}s===l(r)&&n(r),b(N)}else n(r);s=l(r)}if(s!==null)H=!0;else{var $e=l(f);$e!==null&&He(C,$e.startTime-N),H=!1}}break e}finally{s=null,h=L,y=!1}H=void 0}}finally{H?Ue():R=!1}}}var Ue;if(typeof v=="function")Ue=function(){v(F)};else if(typeof MessageChannel<"u"){var zt=new MessageChannel,Lt=zt.port2;zt.port1.onmessage=F,Ue=function(){Lt.postMessage(null)}}else Ue=function(){p(F,0)};function He(N,H){T=p(function(){N(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var H=3;break;default:H=h}var L=h;h=H;try{return N()}finally{h=L}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(N,H){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var L=h;h=N;try{return H()}finally{h=L}},e.unstable_scheduleCallback=function(N,H,L){var ee=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?ee+L:ee):L=ee,N){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=L+te,N={id:d++,callback:H,priorityLevel:N,startTime:L,expirationTime:te,sortIndex:-1},L>ee?(N.sortIndex=L,t(f,N),l(r)===null&&N===l(f)&&(S?(m(T),T=-1):S=!0,He(C,L-ee))):(N.sortIndex=te,t(r,N),x||y||(x=!0,R||(R=!0,Ue()))),N},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(N){var H=h;return function(){var L=h;h=H;try{return N.apply(this,arguments)}finally{h=L}}}})(rh);ch.exports=rh;var Qy=ch.exports,fh={exports:{}},Ge={};/**
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 Vy=g;function oh(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 ol(){}var qe={d:{f:ol,r:function(){throw Error(oh(522))},D:ol,C:ol,L:ol,m:ol,X:ol,S:ol,M:ol},p:0,findDOMNode:null},Xy=Symbol.for("react.portal");function Zy(e,t,l){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xy,key:n==null?null:""+n,children:e,containerInfo:t,implementation:l}}var Da=Vy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function tc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=qe;Ge.createPortal=function(e,t){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(oh(299));return Zy(e,t,null,l)};Ge.flushSync=function(e){var t=Da.T,l=qe.p;try{if(Da.T=null,qe.p=2,e)return e()}finally{Da.T=t,qe.p=l,qe.d.f()}};Ge.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,qe.d.C(e,t))};Ge.prefetchDNS=function(e){typeof e=="string"&&qe.d.D(e)};Ge.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var l=t.as,n=tc(l,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;l==="style"?qe.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:i}):l==="script"&&qe.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ge.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var l=tc(t.as,t.crossOrigin);qe.d.M(e,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&qe.d.M(e)};Ge.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var l=t.as,n=tc(l,t.crossOrigin);qe.d.L(e,l,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Ge.preloadModule=function(e,t){if(typeof e=="string")if(t){var l=tc(t.as,t.crossOrigin);qe.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else qe.d.m(e)};Ge.requestFormReset=function(e){qe.d.r(e)};Ge.unstable_batchedUpdates=function(e,t){return e(t)};Ge.useFormState=function(e,t,l){return Da.H.useFormState(e,t,l)};Ge.useFormStatus=function(){return Da.H.useHostTransitionStatus()};Ge.version="19.2.4";function sh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sh)}catch(e){console.error(e)}}sh(),fh.exports=Ge;var dh=fh.exports;const lE=xf(dh);/**
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 Ee=Qy,hh=g,ky=dh;function E(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 mh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function di(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function ph(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 yh(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 $o(e){if(di(e)!==e)throw Error(E(188))}function Ky(e){var t=e.alternate;if(!t){if(t=di(e),t===null)throw Error(E(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return $o(a),e;if(i===n)return $o(a),t;i=i.sibling}throw Error(E(188))}if(l.return!==n.return)l=a,n=i;else{for(var u=!1,c=a.child;c;){if(c===l){u=!0,l=a,n=i;break}if(c===n){u=!0,n=a,l=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===l){u=!0,l=i,n=a;break}if(c===n){u=!0,n=i,l=a;break}c=c.sibling}if(!u)throw Error(E(189))}}if(l.alternate!==n)throw Error(E(190))}if(l.tag!==3)throw Error(E(188));return l.stateNode.current===l?e:t}function vh(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=vh(e),t!==null)return t;e=e.sibling}return null}var ie=Object.assign,Jy=Symbol.for("react.element"),Bi=Symbol.for("react.transitional.element"),za=Symbol.for("react.portal"),An=Symbol.for("react.fragment"),gh=Symbol.for("react.strict_mode"),yr=Symbol.for("react.profiler"),xh=Symbol.for("react.consumer"),kt=Symbol.for("react.context"),Tf=Symbol.for("react.forward_ref"),vr=Symbol.for("react.suspense"),gr=Symbol.for("react.suspense_list"),Nf=Symbol.for("react.memo"),sl=Symbol.for("react.lazy"),xr=Symbol.for("react.activity"),Fy=Symbol.for("react.memo_cache_sentinel"),Wo=Symbol.iterator;function xa(e){return e===null||typeof e!="object"?null:(e=Wo&&e[Wo]||e["@@iterator"],typeof e=="function"?e:null)}var $y=Symbol.for("react.client.reference");function br(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case An:return"Fragment";case yr:return"Profiler";case gh:return"StrictMode";case vr:return"Suspense";case gr:return"SuspenseList";case xr:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case za:return"Portal";case kt:return e.displayName||"Context";case xh:return(e._context.displayName||"Context")+".Consumer";case Tf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nf:return t=e.displayName||null,t!==null?t:br(e.type)||"Memo";case sl:t=e._payload,e=e._init;try{return br(e(t))}catch{}}return null}var _a=Array.isArray,w=hh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=ky.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kl={pending:!1,data:null,method:null,action:null},Sr=[],Cn=-1;function Ut(e){return{current:e}}function _e(e){0>Cn||(e.current=Sr[Cn],Sr[Cn]=null,Cn--)}function P(e,t){Cn++,Sr[Cn]=e.current,e.current=t}var Rt=Ut(null),Ka=Ut(null),El=Ut(null),gu=Ut(null);function xu(e,t){switch(P(El,t),P(Ka,e),P(Rt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nd(t),e=Y0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_e(Rt),P(Rt,e)}function Xn(){_e(Rt),_e(Ka),_e(El)}function Er(e){e.memoizedState!==null&&P(gu,e);var t=Rt.current,l=Y0(t,e.type);t!==l&&(P(Ka,e),P(Rt,l))}function bu(e){Ka.current===e&&(_e(Rt),_e(Ka)),gu.current===e&&(_e(gu),ai._currentValue=kl)}var zc,Io;function Gl(e){if(zc===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);zc=t&&t[1]||"",Io=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+zc+e+Io}var _c=!1;function Oc(e,t){if(!e||_c)return"";_c=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(y){var h=y}Reflect.construct(e,[],s)}else{try{s.call()}catch(y){h=y}e.call(s.prototype)}}else{try{throw Error()}catch(y){h=y}(s=e())&&typeof s.catch=="function"&&s.catch(function(){})}}catch(y){if(y&&h&&typeof y.stack=="string")return[y.stack,h.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),u=i[0],c=i[1];if(u&&c){var r=u.split(`
44
+ `),f=c.split(`
45
+ `);for(a=n=0;n<r.length&&!r[n].includes("DetermineComponentFrameRoot");)n++;for(;a<f.length&&!f[a].includes("DetermineComponentFrameRoot");)a++;if(n===r.length||a===f.length)for(n=r.length-1,a=f.length-1;1<=n&&0<=a&&r[n]!==f[a];)a--;for(;1<=n&&0<=a;n--,a--)if(r[n]!==f[a]){if(n!==1||a!==1)do if(n--,a--,0>a||r[n]!==f[a]){var d=`
46
+ `+r[n].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=n&&0<=a);break}}}finally{_c=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Gl(l):""}function Wy(e,t){switch(e.tag){case 26:case 27:case 5:return Gl(e.type);case 16:return Gl("Lazy");case 13:return e.child!==t&&t!==null?Gl("Suspense Fallback"):Gl("Suspense");case 19:return Gl("SuspenseList");case 0:case 15:return Oc(e.type,!1);case 11:return Oc(e.type.render,!1);case 1:return Oc(e.type,!0);case 31:return Gl("Activity");default:return""}}function Po(e){try{var t="",l=null;do t+=Wy(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}var Ar=Object.prototype.hasOwnProperty,zf=Ee.unstable_scheduleCallback,jc=Ee.unstable_cancelCallback,Iy=Ee.unstable_shouldYield,Py=Ee.unstable_requestPaint,tt=Ee.unstable_now,ev=Ee.unstable_getCurrentPriorityLevel,bh=Ee.unstable_ImmediatePriority,Sh=Ee.unstable_UserBlockingPriority,Su=Ee.unstable_NormalPriority,tv=Ee.unstable_LowPriority,Eh=Ee.unstable_IdlePriority,lv=Ee.log,nv=Ee.unstable_setDisableYieldValue,hi=null,lt=null;function vl(e){if(typeof lv=="function"&&nv(e),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(hi,e)}catch{}}var nt=Math.clz32?Math.clz32:uv,av=Math.log,iv=Math.LN2;function uv(e){return e>>>=0,e===0?32:31-(av(e)/iv|0)|0}var Yi=256,qi=262144,Gi=4194304;function Ql(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 lc(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var c=n&134217727;return c!==0?(n=c&~i,n!==0?a=Ql(n):(u&=c,u!==0?a=Ql(u):l||(l=c&~e,l!==0&&(a=Ql(l))))):(c=n&~i,c!==0?a=Ql(c):u!==0?a=Ql(u):l||(l=n&~e,l!==0&&(a=Ql(l)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function mi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function cv(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 Ah(){var e=Gi;return Gi<<=1,!(Gi&62914560)&&(Gi=4194304),e}function Mc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function pi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rv(e,t,l,n,a,i){var u=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 c=e.entanglements,r=e.expirationTimes,f=e.hiddenUpdates;for(l=u&~l;0<l;){var d=31-nt(l),s=1<<d;c[d]=0,r[d]=-1;var h=f[d];if(h!==null)for(f[d]=null,d=0;d<h.length;d++){var y=h[d];y!==null&&(y.lane&=-536870913)}l&=~s}n!==0&&Ch(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function Ch(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-nt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Th(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-nt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function Nh(e,t){var l=t&-t;return l=l&42?1:_f(l),l&(e.suspendedLanes|t)?0:l}function _f(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 Of(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function zh(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:$0(e.type))}function es(e,t){var l=k.p;try{return k.p=e,t()}finally{k.p=l}}var Ll=Math.random().toString(36).slice(2),je="__reactFiber$"+Ll,Je="__reactProps$"+Ll,na="__reactContainer$"+Ll,Cr="__reactEvents$"+Ll,fv="__reactListeners$"+Ll,ov="__reactHandles$"+Ll,ts="__reactResources$"+Ll,yi="__reactMarker$"+Ll;function jf(e){delete e[je],delete e[Je],delete e[Cr],delete e[fv],delete e[ov]}function Tn(e){var t=e[je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[na]||l[je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=rd(e);e!==null;){if(l=e[je])return l;e=rd(e)}return t}e=l,l=e.parentNode}return null}function aa(e){if(e=e[je]||e[na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Oa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(E(33))}function Ln(e){var t=e[ts];return t||(t=e[ts]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ze(e){e[yi]=!0}var _h=new Set,Oh={};function nn(e,t){Zn(e,t),Zn(e+"Capture",t)}function Zn(e,t){for(Oh[e]=t,e=0;e<t.length;e++)_h.add(t[e])}var sv=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]*$"),ls={},ns={};function dv(e){return Ar.call(ns,e)?!0:Ar.call(ls,e)?!1:sv.test(e)?ns[e]=!0:(ls[e]=!0,!1)}function tu(e,t,l){if(dv(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Qi(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 Yt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hv(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(u){l=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tr(e){if(!e._valueTracker){var t=jh(e)?"checked":"value";e._valueTracker=hv(e,t,""+e[t])}}function Mh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=jh(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Eu(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 mv=/[\n"\\]/g;function ht(e){return e.replace(mv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nr(e,t,l,n,a,i,u,c){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ot(t)):e.value!==""+ot(t)&&(e.value=""+ot(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?zr(e,u,ot(t)):l!=null?zr(e,u,ot(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.name=""+ot(c):e.removeAttribute("name")}function Rh(e,t,l,n,a,i,u,c){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)){Tr(e);return}l=l!=null?""+ot(l):"",t=t!=null?""+ot(t):l,c||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=c?e.checked:!!n,e.defaultChecked=!!n,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),Tr(e)}function zr(e,t,l){t==="number"&&Eu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Bn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+ot(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Dh(e,t,l){if(t!=null&&(t=""+ot(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+ot(l):""}function wh(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(E(92));if(_a(n)){if(1<n.length)throw Error(E(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=ot(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Tr(e)}function kn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var pv=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 as(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||pv.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Uh(e,t,l){if(t!=null&&typeof t!="object")throw Error(E(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&as(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&as(e,i,t[i])}function Mf(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 yv=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"]]),vv=/^[\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 lu(e){return vv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kt(){}var _r=null;function Rf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nn=null,Yn=null;function is(e){var t=aa(e);if(t&&(e=t.stateNode)){var l=e[Je]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nr(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="'+ht(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[Je]||null;if(!a)throw Error(E(90));Nr(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Mh(n)}break e;case"textarea":Dh(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Bn(e,!!l.multiple,t,!1)}}}var Rc=!1;function Hh(e,t,l){if(Rc)return e(t,l);Rc=!0;try{var n=e(t);return n}finally{if(Rc=!1,(Nn!==null||Yn!==null)&&(mc(),Nn&&(t=Nn,e=Yn,Yn=Nn=null,is(t),e)))for(t=0;t<e.length;t++)is(e[t])}}function Ja(e,t){var l=e.stateNode;if(l===null)return null;var n=l[Je]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(E(231,t,typeof l));return l}var It=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Or=!1;if(It)try{var ba={};Object.defineProperty(ba,"passive",{get:function(){Or=!0}}),window.addEventListener("test",ba,ba),window.removeEventListener("test",ba,ba)}catch{Or=!1}var gl=null,Df=null,nu=null;function Lh(){if(nu)return nu;var e,t=Df,l=t.length,n,a="value"in gl?gl.value:gl.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var u=l-e;for(n=1;n<=u&&t[l-n]===a[i-n];n++);return nu=a.slice(e,1<n?1-n:void 0)}function au(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 Vi(){return!0}function us(){return!1}function Fe(e){function t(l,n,a,i,u){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(l=e[c],this[c]=l?l(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Vi:us,this.isPropagationStopped=us,this}return ie(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=Vi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Vi)},persist:function(){},isPersistent:Vi}),t}var an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nc=Fe(an),vi=ie({},an,{view:0,detail:0}),gv=Fe(vi),Dc,wc,Sa,ac=ie({},vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wf,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!==Sa&&(Sa&&e.type==="mousemove"?(Dc=e.screenX-Sa.screenX,wc=e.screenY-Sa.screenY):wc=Dc=0,Sa=e),Dc)},movementY:function(e){return"movementY"in e?e.movementY:wc}}),cs=Fe(ac),xv=ie({},ac,{dataTransfer:0}),bv=Fe(xv),Sv=ie({},vi,{relatedTarget:0}),Uc=Fe(Sv),Ev=ie({},an,{animationName:0,elapsedTime:0,pseudoElement:0}),Av=Fe(Ev),Cv=ie({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tv=Fe(Cv),Nv=ie({},an,{data:0}),rs=Fe(Nv),zv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_v={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"},Ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ov[e])?!!t[e]:!1}function wf(){return jv}var Mv=ie({},vi,{key:function(e){if(e.key){var t=zv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=au(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_v[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wf,charCode:function(e){return e.type==="keypress"?au(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?au(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rv=Fe(Mv),Dv=ie({},ac,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fs=Fe(Dv),wv=ie({},vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wf}),Uv=Fe(wv),Hv=ie({},an,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lv=Fe(Hv),Bv=ie({},ac,{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}),Yv=Fe(Bv),qv=ie({},an,{newState:0,oldState:0}),Gv=Fe(qv),Qv=[9,13,27,32],Uf=It&&"CompositionEvent"in window,wa=null;It&&"documentMode"in document&&(wa=document.documentMode);var Vv=It&&"TextEvent"in window&&!wa,Bh=It&&(!Uf||wa&&8<wa&&11>=wa),os=" ",ss=!1;function Yh(e,t){switch(e){case"keyup":return Qv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function Xv(e,t){switch(e){case"compositionend":return qh(t);case"keypress":return t.which!==32?null:(ss=!0,os);case"textInput":return e=t.data,e===os&&ss?null:e;default:return null}}function Zv(e,t){if(zn)return e==="compositionend"||!Uf&&Yh(e,t)?(e=Lh(),nu=Df=gl=null,zn=!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 Bh&&t.locale!=="ko"?null:t.data;default:return null}}var kv={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 ds(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!kv[e.type]:t==="textarea"}function Gh(e,t,l,n){Nn?Yn?Yn.push(n):Yn=[n]:Nn=n,t=qu(t,"onChange"),0<t.length&&(l=new nc("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Ua=null,Fa=null;function Kv(e){H0(e,0)}function ic(e){var t=Oa(e);if(Mh(t))return e}function hs(e,t){if(e==="change")return t}var Qh=!1;if(It){var Hc;if(It){var Lc="oninput"in document;if(!Lc){var ms=document.createElement("div");ms.setAttribute("oninput","return;"),Lc=typeof ms.oninput=="function"}Hc=Lc}else Hc=!1;Qh=Hc&&(!document.documentMode||9<document.documentMode)}function ps(){Ua&&(Ua.detachEvent("onpropertychange",Vh),Fa=Ua=null)}function Vh(e){if(e.propertyName==="value"&&ic(Fa)){var t=[];Gh(t,Fa,e,Rf(e)),Hh(Kv,t)}}function Jv(e,t,l){e==="focusin"?(ps(),Ua=t,Fa=l,Ua.attachEvent("onpropertychange",Vh)):e==="focusout"&&ps()}function Fv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ic(Fa)}function $v(e,t){if(e==="click")return ic(t)}function Wv(e,t){if(e==="input"||e==="change")return ic(t)}function Iv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var it=typeof Object.is=="function"?Object.is:Iv;function $a(e,t){if(it(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Ar.call(t,a)||!it(e[a],t[a]))return!1}return!0}function ys(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vs(e,t){var l=ys(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ys(l)}}function Xh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Eu(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=Eu(e.document)}return t}function Hf(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 Pv=It&&"documentMode"in document&&11>=document.documentMode,_n=null,jr=null,Ha=null,Mr=!1;function gs(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Mr||_n==null||_n!==Eu(n)||(n=_n,"selectionStart"in n&&Hf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ha&&$a(Ha,n)||(Ha=n,n=qu(jr,"onSelect"),0<n.length&&(t=new nc("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=_n)))}function ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var On={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},Bc={},kh={};It&&(kh=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function un(e){if(Bc[e])return Bc[e];if(!On[e])return e;var t=On[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in kh)return Bc[e]=t[l];return e}var Kh=un("animationend"),Jh=un("animationiteration"),Fh=un("animationstart"),eg=un("transitionrun"),tg=un("transitionstart"),lg=un("transitioncancel"),$h=un("transitionend"),Wh=new Map,Rr="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(" ");Rr.push("scrollEnd");function Nt(e,t){Wh.set(e,t),nn(t,[e])}var Au=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)},ft=[],jn=0,Lf=0;function uc(){for(var e=jn,t=Lf=jn=0;t<e;){var l=ft[t];ft[t++]=null;var n=ft[t];ft[t++]=null;var a=ft[t];ft[t++]=null;var i=ft[t];if(ft[t++]=null,n!==null&&a!==null){var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}i!==0&&Ih(l,a,i)}}function cc(e,t,l,n){ft[jn++]=e,ft[jn++]=t,ft[jn++]=l,ft[jn++]=n,Lf|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Bf(e,t,l,n){return cc(e,t,l,n),Cu(e)}function cn(e,t){return cc(e,null,null,t),Cu(e)}function Ih(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=e.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-nt(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function Cu(e){if(50<Za)throw Za=0,Pr=null,Error(E(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Mn={};function ng(e,t,l,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pe(e,t,l,n){return new ng(e,t,l,n)}function Yf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=Pe(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 Ph(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 iu(e,t,l,n,a,i){var u=0;if(n=e,typeof e=="function")Yf(e)&&(u=1);else if(typeof e=="string")u=rx(e,l,Rt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case xr:return e=Pe(31,l,t,a),e.elementType=xr,e.lanes=i,e;case An:return Kl(l.children,a,i,t);case gh:u=8,a|=24;break;case yr:return e=Pe(12,l,t,a|2),e.elementType=yr,e.lanes=i,e;case vr:return e=Pe(13,l,t,a),e.elementType=vr,e.lanes=i,e;case gr:return e=Pe(19,l,t,a),e.elementType=gr,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kt:u=10;break e;case xh:u=9;break e;case Tf:u=11;break e;case Nf:u=14;break e;case sl:u=16,n=null;break e}u=29,l=Error(E(130,e===null?"null":typeof e,"")),n=null}return t=Pe(u,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Kl(e,t,l,n){return e=Pe(7,e,n,t),e.lanes=l,e}function Yc(e,t,l){return e=Pe(6,e,null,t),e.lanes=l,e}function em(e){var t=Pe(18,null,null,0);return t.stateNode=e,t}function qc(e,t,l){return t=Pe(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xs=new WeakMap;function mt(e,t){if(typeof e=="object"&&e!==null){var l=xs.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Po(t)},xs.set(e,t),t)}return{value:e,source:t,stack:Po(t)}}var Rn=[],Dn=0,Tu=null,Wa=0,st=[],dt=0,Rl=null,Ot=1,jt="";function Xt(e,t){Rn[Dn++]=Wa,Rn[Dn++]=Tu,Tu=e,Wa=t}function tm(e,t,l){st[dt++]=Ot,st[dt++]=jt,st[dt++]=Rl,Rl=e;var n=Ot;e=jt;var a=32-nt(n)-1;n&=~(1<<a),l+=1;var i=32-nt(t)+a;if(30<i){var u=a-a%5;i=(n&(1<<u)-1).toString(32),n>>=u,a-=u,Ot=1<<32-nt(t)+a|l<<a|n,jt=i+e}else Ot=1<<i|l<<a|n,jt=e}function qf(e){e.return!==null&&(Xt(e,1),tm(e,1,0))}function Gf(e){for(;e===Tu;)Tu=Rn[--Dn],Rn[Dn]=null,Wa=Rn[--Dn],Rn[Dn]=null;for(;e===Rl;)Rl=st[--dt],st[dt]=null,jt=st[--dt],st[dt]=null,Ot=st[--dt],st[dt]=null}function lm(e,t){st[dt++]=Ot,st[dt++]=jt,st[dt++]=Rl,Ot=t.id,jt=t.overflow,Rl=e}var Me=null,ne=null,X=!1,Al=null,pt=!1,Dr=Error(E(519));function Dl(e){var t=Error(E(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ia(mt(t,e)),Dr}function bs(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[je]=e,t[Je]=n,l){case"dialog":Y("cancel",t),Y("close",t);break;case"iframe":case"object":case"embed":Y("load",t);break;case"video":case"audio":for(l=0;l<li.length;l++)Y(li[l],t);break;case"source":Y("error",t);break;case"img":case"image":case"link":Y("error",t),Y("load",t);break;case"details":Y("toggle",t);break;case"input":Y("invalid",t),Rh(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Y("invalid",t);break;case"textarea":Y("invalid",t),wh(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||B0(t.textContent,l)?(n.popover!=null&&(Y("beforetoggle",t),Y("toggle",t)),n.onScroll!=null&&Y("scroll",t),n.onScrollEnd!=null&&Y("scrollend",t),n.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||Dl(e,!0)}function Ss(e){for(Me=e.return;Me;)switch(Me.tag){case 5:case 31:case 13:pt=!1;return;case 27:case 3:pt=!0;return;default:Me=Me.return}}function yn(e){if(e!==Me)return!1;if(!X)return Ss(e),X=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||af(e.type,e.memoizedProps)),l=!l),l&&ne&&Dl(e),Ss(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));ne=cd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));ne=cd(e)}else t===27?(t=ne,Bl(e.type)?(e=ff,ff=null,ne=e):ne=t):ne=Me?vt(e.stateNode.nextSibling):null;return!0}function Il(){ne=Me=null,X=!1}function Gc(){var e=Al;return e!==null&&(Ze===null?Ze=e:Ze.push.apply(Ze,e),Al=null),e}function Ia(e){Al===null?Al=[e]:Al.push(e)}var wr=Ut(null),rn=null,Jt=null;function hl(e,t,l){P(wr,t._currentValue),t._currentValue=l}function $t(e){e._currentValue=wr.current,_e(wr)}function Ur(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function Hr(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var u=a.child;i=i.firstContext;e:for(;i!==null;){var c=i;i=a;for(var r=0;r<t.length;r++)if(c.context===t[r]){i.lanes|=l,c=i.alternate,c!==null&&(c.lanes|=l),Ur(i.return,l,e),n||(u=null);break e}i=c.next}}else if(a.tag===18){if(u=a.return,u===null)throw Error(E(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),Ur(u,l,e),u=null}else u=a.child;if(u!==null)u.return=a;else for(u=a;u!==null;){if(u===e){u=null;break}if(a=u.sibling,a!==null){a.return=u.return,u=a;break}u=u.return}a=u}}function ia(e,t,l,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var u=a.alternate;if(u===null)throw Error(E(387));if(u=u.memoizedProps,u!==null){var c=a.type;it(a.pendingProps.value,u.value)||(e!==null?e.push(c):e=[c])}}else if(a===gu.current){if(u=a.alternate,u===null)throw Error(E(387));u.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}a=a.return}e!==null&&Hr(t,e,l,n),t.flags|=262144}function Nu(e){for(e=e.firstContext;e!==null;){if(!it(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pl(e){rn=e,Jt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Re(e){return nm(rn,e)}function Xi(e,t){return rn===null&&Pl(e),nm(e,t)}function nm(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Jt===null){if(e===null)throw Error(E(308));Jt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Jt=Jt.next=t;return l}var ag=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},ig=Ee.unstable_scheduleCallback,ug=Ee.unstable_NormalPriority,ye={$$typeof:kt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qf(){return{controller:new ag,data:new Map,refCount:0}}function gi(e){e.refCount--,e.refCount===0&&ig(ug,function(){e.controller.abort()})}var La=null,Lr=0,Kn=0,qn=null;function cg(e,t){if(La===null){var l=La=[];Lr=0,Kn=mo(),qn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Lr++,t.then(Es,Es),t}function Es(){if(--Lr===0&&La!==null){qn!==null&&(qn.status="fulfilled");var e=La;La=null,Kn=0,qn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rg(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var As=w.S;w.S=function(e,t){v0=tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&cg(e,t),As!==null&&As(e,t)};var Jl=Ut(null);function Vf(){var e=Jl.current;return e!==null?e:I.pooledCache}function uu(e,t){t===null?P(Jl,Jl.current):P(Jl,t.pool)}function am(){var e=Vf();return e===null?null:{parent:ye._currentValue,pool:e}}var ua=Error(E(460)),Xf=Error(E(474)),rc=Error(E(542)),zu={then:function(){}};function Cs(e){return e=e.status,e==="fulfilled"||e==="rejected"}function im(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Kt,Kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ns(e),e;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(e=I,e!==null&&100<e.shellSuspendCounter)throw Error(E(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ns(e),e}throw Fl=t,ua}}function Vl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Fl=l,ua):l}}var Fl=null;function Ts(){if(Fl===null)throw Error(E(459));var e=Fl;return Fl=null,e}function Ns(e){if(e===ua||e===rc)throw Error(E(483))}var Gn=null,Pa=0;function Zi(e){var t=Pa;return Pa+=1,Gn===null&&(Gn=[]),im(Gn,e,t)}function Ea(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ki(e,t){throw t.$$typeof===Jy?Error(E(525)):(e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function um(e){function t(p,m){if(e){var v=p.deletions;v===null?(p.deletions=[m],p.flags|=16):v.push(m)}}function l(p,m){if(!e)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function n(p){for(var m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function a(p,m){return p=Ft(p,m),p.index=0,p.sibling=null,p}function i(p,m,v){return p.index=v,e?(v=p.alternate,v!==null?(v=v.index,v<m?(p.flags|=67108866,m):v):(p.flags|=67108866,m)):(p.flags|=1048576,m)}function u(p){return e&&p.alternate===null&&(p.flags|=67108866),p}function c(p,m,v,b){return m===null||m.tag!==6?(m=Yc(v,p.mode,b),m.return=p,m):(m=a(m,v),m.return=p,m)}function r(p,m,v,b){var C=v.type;return C===An?d(p,m,v.props.children,b,v.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===sl&&Vl(C)===m.type)?(m=a(m,v.props),Ea(m,v),m.return=p,m):(m=iu(v.type,v.key,v.props,null,p.mode,b),Ea(m,v),m.return=p,m)}function f(p,m,v,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=qc(v,p.mode,b),m.return=p,m):(m=a(m,v.children||[]),m.return=p,m)}function d(p,m,v,b,C){return m===null||m.tag!==7?(m=Kl(v,p.mode,b,C),m.return=p,m):(m=a(m,v),m.return=p,m)}function s(p,m,v){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Yc(""+m,p.mode,v),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Bi:return v=iu(m.type,m.key,m.props,null,p.mode,v),Ea(v,m),v.return=p,v;case za:return m=qc(m,p.mode,v),m.return=p,m;case sl:return m=Vl(m),s(p,m,v)}if(_a(m)||xa(m))return m=Kl(m,p.mode,v,null),m.return=p,m;if(typeof m.then=="function")return s(p,Zi(m),v);if(m.$$typeof===kt)return s(p,Xi(p,m),v);ki(p,m)}return null}function h(p,m,v,b){var C=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return C!==null?null:c(p,m,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Bi:return v.key===C?r(p,m,v,b):null;case za:return v.key===C?f(p,m,v,b):null;case sl:return v=Vl(v),h(p,m,v,b)}if(_a(v)||xa(v))return C!==null?null:d(p,m,v,b,null);if(typeof v.then=="function")return h(p,m,Zi(v),b);if(v.$$typeof===kt)return h(p,m,Xi(p,v),b);ki(p,v)}return null}function y(p,m,v,b,C){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return p=p.get(v)||null,c(m,p,""+b,C);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Bi:return p=p.get(b.key===null?v:b.key)||null,r(m,p,b,C);case za:return p=p.get(b.key===null?v:b.key)||null,f(m,p,b,C);case sl:return b=Vl(b),y(p,m,v,b,C)}if(_a(b)||xa(b))return p=p.get(v)||null,d(m,p,b,C,null);if(typeof b.then=="function")return y(p,m,v,Zi(b),C);if(b.$$typeof===kt)return y(p,m,v,Xi(m,b),C);ki(m,b)}return null}function x(p,m,v,b){for(var C=null,R=null,T=m,O=m=0,_=null;T!==null&&O<v.length;O++){T.index>O?(_=T,T=null):_=T.sibling;var D=h(p,T,v[O],b);if(D===null){T===null&&(T=_);break}e&&T&&D.alternate===null&&t(p,T),m=i(D,m,O),R===null?C=D:R.sibling=D,R=D,T=_}if(O===v.length)return l(p,T),X&&Xt(p,O),C;if(T===null){for(;O<v.length;O++)T=s(p,v[O],b),T!==null&&(m=i(T,m,O),R===null?C=T:R.sibling=T,R=T);return X&&Xt(p,O),C}for(T=n(T);O<v.length;O++)_=y(T,p,O,v[O],b),_!==null&&(e&&_.alternate!==null&&T.delete(_.key===null?O:_.key),m=i(_,m,O),R===null?C=_:R.sibling=_,R=_);return e&&T.forEach(function(F){return t(p,F)}),X&&Xt(p,O),C}function S(p,m,v,b){if(v==null)throw Error(E(151));for(var C=null,R=null,T=m,O=m=0,_=null,D=v.next();T!==null&&!D.done;O++,D=v.next()){T.index>O?(_=T,T=null):_=T.sibling;var F=h(p,T,D.value,b);if(F===null){T===null&&(T=_);break}e&&T&&F.alternate===null&&t(p,T),m=i(F,m,O),R===null?C=F:R.sibling=F,R=F,T=_}if(D.done)return l(p,T),X&&Xt(p,O),C;if(T===null){for(;!D.done;O++,D=v.next())D=s(p,D.value,b),D!==null&&(m=i(D,m,O),R===null?C=D:R.sibling=D,R=D);return X&&Xt(p,O),C}for(T=n(T);!D.done;O++,D=v.next())D=y(T,p,O,D.value,b),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?O:D.key),m=i(D,m,O),R===null?C=D:R.sibling=D,R=D);return e&&T.forEach(function(Ue){return t(p,Ue)}),X&&Xt(p,O),C}function A(p,m,v,b){if(typeof v=="object"&&v!==null&&v.type===An&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Bi:e:{for(var C=v.key;m!==null;){if(m.key===C){if(C=v.type,C===An){if(m.tag===7){l(p,m.sibling),b=a(m,v.props.children),b.return=p,p=b;break e}}else if(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===sl&&Vl(C)===m.type){l(p,m.sibling),b=a(m,v.props),Ea(b,v),b.return=p,p=b;break e}l(p,m);break}else t(p,m);m=m.sibling}v.type===An?(b=Kl(v.props.children,p.mode,b,v.key),b.return=p,p=b):(b=iu(v.type,v.key,v.props,null,p.mode,b),Ea(b,v),b.return=p,p=b)}return u(p);case za:e:{for(C=v.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){l(p,m.sibling),b=a(m,v.children||[]),b.return=p,p=b;break e}else{l(p,m);break}else t(p,m);m=m.sibling}b=qc(v,p.mode,b),b.return=p,p=b}return u(p);case sl:return v=Vl(v),A(p,m,v,b)}if(_a(v))return x(p,m,v,b);if(xa(v)){if(C=xa(v),typeof C!="function")throw Error(E(150));return v=C.call(v),S(p,m,v,b)}if(typeof v.then=="function")return A(p,m,Zi(v),b);if(v.$$typeof===kt)return A(p,m,Xi(p,v),b);ki(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,m!==null&&m.tag===6?(l(p,m.sibling),b=a(m,v),b.return=p,p=b):(l(p,m),b=Yc(v,p.mode,b),b.return=p,p=b),u(p)):l(p,m)}return function(p,m,v,b){try{Pa=0;var C=A(p,m,v,b);return Gn=null,C}catch(T){if(T===ua||T===rc)throw T;var R=Pe(29,T,null,p.mode);return R.lanes=b,R.return=p,R}finally{}}}var en=um(!0),cm=um(!1),dl=!1;function Zf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Br(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 Cl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Z&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Cu(e),Ih(e,null,l),t}return cc(e,n,t,l),Cu(e)}function Ba(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Th(e,l)}}function Qc(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Yr=!1;function Ya(){if(Yr){var e=qn;if(e!==null)throw e}}function qa(e,t,l,n){Yr=!1;var a=e.updateQueue;dl=!1;var i=a.firstBaseUpdate,u=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var r=c,f=r.next;r.next=null,u===null?i=f:u.next=f,u=r;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==u&&(c===null?d.firstBaseUpdate=f:c.next=f,d.lastBaseUpdate=r))}if(i!==null){var s=a.baseState;u=0,d=f=r=null,c=i;do{var h=c.lane&-536870913,y=h!==c.lane;if(y?(Q&h)===h:(n&h)===h){h!==0&&h===Kn&&(Yr=!0),d!==null&&(d=d.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var x=e,S=c;h=t;var A=l;switch(S.tag){case 1:if(x=S.payload,typeof x=="function"){s=x.call(A,s,h);break e}s=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=S.payload,h=typeof x=="function"?x.call(A,s,h):x,h==null)break e;s=ie({},s,h);break e;case 2:dl=!0}}h=c.callback,h!==null&&(e.flags|=64,y&&(e.flags|=8192),y=a.callbacks,y===null?a.callbacks=[h]:y.push(h))}else y={lane:h,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(f=d=y,r=s):d=d.next=y,u|=h;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;y=c,c=y.next,y.next=null,a.lastBaseUpdate=y,a.shared.pending=null}}while(!0);d===null&&(r=s),a.baseState=r,a.firstBaseUpdate=f,a.lastBaseUpdate=d,i===null&&(a.shared.lanes=0),Ul|=u,e.lanes=u,e.memoizedState=s}}function rm(e,t){if(typeof e!="function")throw Error(E(191,e));e.call(t)}function fm(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)rm(l[e],t)}var Jn=Ut(null),_u=Ut(0);function zs(e,t){e=ll,P(_u,e),P(Jn,t),ll=e|t.baseLanes}function qr(){P(_u,ll),P(Jn,Jn.current)}function kf(){ll=_u.current,_e(Jn),_e(_u)}var ut=Ut(null),yt=null;function ml(e){var t=e.alternate;P(se,se.current&1),P(ut,e),yt===null&&(t===null||Jn.current!==null||t.memoizedState!==null)&&(yt=e)}function Gr(e){P(se,se.current),P(ut,e),yt===null&&(yt=e)}function om(e){e.tag===22?(P(se,se.current),P(ut,e),yt===null&&(yt=e)):pl()}function pl(){P(se,se.current),P(ut,ut.current)}function Ie(e){_e(ut),yt===e&&(yt=null),_e(se)}var se=Ut(0);function Ou(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||cf(l)||rf(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)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 Pt=0,B=null,W=null,me=null,ju=!1,Qn=!1,tn=!1,Mu=0,ei=0,Vn=null,fg=0;function fe(){throw Error(E(321))}function Kf(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!it(e[l],t[l]))return!1;return!0}function Jf(e,t,l,n,a,i){return Pt=i,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?Gm:io,tn=!1,i=l(n,a),tn=!1,Qn&&(i=dm(t,l,n,a)),sm(e),i}function sm(e){w.H=ti;var t=W!==null&&W.next!==null;if(Pt=0,me=W=B=null,ju=!1,ei=0,Vn=null,t)throw Error(E(300));e===null||ge||(e=e.dependencies,e!==null&&Nu(e)&&(ge=!0))}function dm(e,t,l,n){B=e;var a=0;do{if(Qn&&(Vn=null),ei=0,Qn=!1,25<=a)throw Error(E(301));if(a+=1,me=W=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}w.H=Qm,i=t(l,n)}while(Qn);return i}function og(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?xi(t):t,e=e.useState()[0],(W!==null?W.memoizedState:null)!==e&&(B.flags|=1024),t}function Ff(){var e=Mu!==0;return Mu=0,e}function $f(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Wf(e){if(ju){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ju=!1}Pt=0,me=W=B=null,Qn=!1,ei=Mu=0,Vn=null}function Be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?B.memoizedState=me=e:me=me.next=e,me}function de(){if(W===null){var e=B.alternate;e=e!==null?e.memoizedState:null}else e=W.next;var t=me===null?B.memoizedState:me.next;if(t!==null)me=t,W=e;else{if(e===null)throw B.alternate===null?Error(E(467)):Error(E(310));W=e,e={memoizedState:W.memoizedState,baseState:W.baseState,baseQueue:W.baseQueue,queue:W.queue,next:null},me===null?B.memoizedState=me=e:me=me.next=e}return me}function fc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xi(e){var t=ei;return ei+=1,Vn===null&&(Vn=[]),e=im(Vn,e,t),t=B,(me===null?t.memoizedState:me.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?Gm:io),e}function oc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xi(e);if(e.$$typeof===kt)return Re(e)}throw Error(E(438,String(e)))}function If(e){var t=null,l=B.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=B.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=fc(),B.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Fy;return t.index++,l}function el(e,t){return typeof t=="function"?t(e):t}function cu(e){var t=de();return Pf(t,W,e)}function Pf(e,t,l){var n=e.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=l;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var u=a.next;a.next=i.next,i.next=u}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var c=u=null,r=null,f=t,d=!1;do{var s=f.lane&-536870913;if(s!==f.lane?(Q&s)===s:(Pt&s)===s){var h=f.revertLane;if(h===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),s===Kn&&(d=!0);else if((Pt&h)===h){f=f.next,h===Kn&&(d=!0);continue}else s={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},r===null?(c=r=s,u=i):r=r.next=s,B.lanes|=h,Ul|=h;s=f.action,tn&&l(i,s),i=f.hasEagerState?f.eagerState:l(i,s)}else h={lane:s,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},r===null?(c=r=h,u=i):r=r.next=h,B.lanes|=s,Ul|=s;f=f.next}while(f!==null&&f!==t);if(r===null?u=i:r.next=c,!it(i,e.memoizedState)&&(ge=!0,d&&(l=qn,l!==null)))throw l;e.memoizedState=i,e.baseState=u,e.baseQueue=r,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Vc(e){var t=de(),l=t.queue;if(l===null)throw Error(E(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,i=t.memoizedState;if(a!==null){l.pending=null;var u=a=a.next;do i=e(i,u.action),u=u.next;while(u!==a);it(i,t.memoizedState)||(ge=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function hm(e,t,l){var n=B,a=de(),i=X;if(i){if(l===void 0)throw Error(E(407));l=l()}else l=t();var u=!it((W||a).memoizedState,l);if(u&&(a.memoizedState=l,ge=!0),a=a.queue,eo(ym.bind(null,n,a,e),[e]),a.getSnapshot!==t||u||me!==null&&me.memoizedState.tag&1){if(n.flags|=2048,Fn(9,{destroy:void 0},pm.bind(null,n,a,l,t),null),I===null)throw Error(E(349));i||Pt&127||mm(n,t,l)}return l}function mm(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=B.updateQueue,t===null?(t=fc(),B.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function pm(e,t,l,n){t.value=l,t.getSnapshot=n,vm(t)&&gm(e)}function ym(e,t,l){return l(function(){vm(t)&&gm(e)})}function vm(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!it(e,l)}catch{return!0}}function gm(e){var t=cn(e,2);t!==null&&Ke(t,e,2)}function Qr(e){var t=Be();if(typeof e=="function"){var l=e;if(e=l(),tn){vl(!0);try{l()}finally{vl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t}function xm(e,t,l,n){return e.baseState=l,Pf(e,W,typeof n=="function"?n:el)}function sg(e,t,l,n,a){if(dc(e))throw Error(E(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};w.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,bm(t,i)):(i.next=l.next,t.pending=l.next=i)}}function bm(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=w.T,u={};w.T=u;try{var c=l(a,n),r=w.S;r!==null&&r(u,c),_s(e,t,c)}catch(f){Vr(e,t,f)}finally{i!==null&&u.types!==null&&(i.types=u.types),w.T=i}}else try{i=l(a,n),_s(e,t,i)}catch(f){Vr(e,t,f)}}function _s(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Os(e,t,n)},function(n){return Vr(e,t,n)}):Os(e,t,l)}function Os(e,t,l){t.status="fulfilled",t.value=l,Sm(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,bm(e,l)))}function Vr(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,Sm(t),t=t.next;while(t!==n)}e.action=null}function Sm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Em(e,t){return t}function js(e,t){if(X){var l=I.formState;if(l!==null){e:{var n=B;if(X){if(ne){t:{for(var a=ne,i=pt;a.nodeType!==8;){if(!i){a=null;break t}if(a=vt(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){ne=vt(a.nextSibling),n=a.data==="F!";break e}}Dl(n)}n=!1}n&&(t=l[0])}}return l=Be(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Em,lastRenderedState:t},l.queue=n,l=Bm.bind(null,B,n),n.dispatch=l,n=Qr(!1),i=ao.bind(null,B,!1,n.queue),n=Be(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=sg.bind(null,B,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function Ms(e){var t=de();return Am(t,W,e)}function Am(e,t,l){if(t=Pf(e,t,Em)[0],e=cu(el)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=xi(t)}catch(u){throw u===ua?rc:u}else n=t;t=de();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(B.flags|=2048,Fn(9,{destroy:void 0},dg.bind(null,a,l),null)),[n,i,e]}function dg(e,t){e.action=t}function Rs(e){var t=de(),l=W;if(l!==null)return Am(t,l,e);de(),t=t.memoizedState,l=de();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function Fn(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=B.updateQueue,t===null&&(t=fc(),B.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Cm(){return de().memoizedState}function ru(e,t,l,n){var a=Be();B.flags|=e,a.memoizedState=Fn(1|t,{destroy:void 0},l,n===void 0?null:n)}function sc(e,t,l,n){var a=de();n=n===void 0?null:n;var i=a.memoizedState.inst;W!==null&&n!==null&&Kf(n,W.memoizedState.deps)?a.memoizedState=Fn(t,i,l,n):(B.flags|=e,a.memoizedState=Fn(1|t,i,l,n))}function Ds(e,t){ru(8390656,8,e,t)}function eo(e,t){sc(2048,8,e,t)}function hg(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=fc(),B.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Tm(e){var t=de().memoizedState;return hg({ref:t,nextImpl:e}),function(){if(Z&2)throw Error(E(440));return t.impl.apply(void 0,arguments)}}function Nm(e,t){return sc(4,2,e,t)}function zm(e,t){return sc(4,4,e,t)}function _m(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 Om(e,t,l){l=l!=null?l.concat([e]):null,sc(4,4,_m.bind(null,t,e),l)}function to(){}function jm(e,t){var l=de();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Kf(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Mm(e,t){var l=de();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Kf(t,n[1]))return n[0];if(n=e(),tn){vl(!0);try{e()}finally{vl(!1)}}return l.memoizedState=[n,t],n}function lo(e,t,l){return l===void 0||Pt&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=l,e=x0(),B.lanes|=e,Ul|=e,l)}function Rm(e,t,l,n){return it(l,t)?l:Jn.current!==null?(e=lo(e,l,n),it(e,t)||(ge=!0),e):!(Pt&42)||Pt&1073741824&&!(Q&261930)?(ge=!0,e.memoizedState=l):(e=x0(),B.lanes|=e,Ul|=e,t)}function Dm(e,t,l,n,a){var i=k.p;k.p=i!==0&&8>i?i:8;var u=w.T,c={};w.T=c,ao(e,!1,t,l);try{var r=a(),f=w.S;if(f!==null&&f(c,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var d=rg(r,n);Ga(e,t,d,at(e))}else Ga(e,t,n,at(e))}catch(s){Ga(e,t,{then:function(){},status:"rejected",reason:s},at())}finally{k.p=i,u!==null&&c.types!==null&&(u.types=c.types),w.T=u}}function mg(){}function Xr(e,t,l,n){if(e.tag!==5)throw Error(E(476));var a=wm(e).queue;Dm(e,a,t,kl,l===null?mg:function(){return Um(e),l(n)})}function wm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:kl,baseState:kl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:kl},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Um(e){var t=wm(e);t.next===null&&(t=e.alternate.memoizedState),Ga(e,t.next.queue,{},at())}function no(){return Re(ai)}function Hm(){return de().memoizedState}function Lm(){return de().memoizedState}function pg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=at();e=Cl(l);var n=Tl(t,e,l);n!==null&&(Ke(n,t,l),Ba(n,t,l)),t={cache:Qf()},e.payload=t;return}t=t.return}}function yg(e,t,l){var n=at();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},dc(e)?Ym(t,l):(l=Bf(e,t,l,n),l!==null&&(Ke(l,e,n),qm(l,t,n)))}function Bm(e,t,l){var n=at();Ga(e,t,l,n)}function Ga(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(dc(e))Ym(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,l);if(a.hasEagerState=!0,a.eagerState=c,it(c,u))return cc(e,t,a,0),I===null&&uc(),!1}catch{}finally{}if(l=Bf(e,t,a,n),l!==null)return Ke(l,e,n),qm(l,t,n),!0}return!1}function ao(e,t,l,n){if(n={lane:2,revertLane:mo(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e)){if(t)throw Error(E(479))}else t=Bf(e,l,n,2),t!==null&&Ke(t,e,2)}function dc(e){var t=e.alternate;return e===B||t!==null&&t===B}function Ym(e,t){Qn=ju=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function qm(e,t,l){if(l&4194048){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Th(e,l)}}var ti={readContext:Re,use:oc,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useLayoutEffect:fe,useInsertionEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useSyncExternalStore:fe,useId:fe,useHostTransitionStatus:fe,useFormState:fe,useActionState:fe,useOptimistic:fe,useMemoCache:fe,useCacheRefresh:fe};ti.useEffectEvent=fe;var Gm={readContext:Re,use:oc,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:Ds,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ru(4194308,4,_m.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){ru(4,2,e,t)},useMemo:function(e,t){var l=Be();t=t===void 0?null:t;var n=e();if(tn){vl(!0);try{e()}finally{vl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=Be();if(l!==void 0){var a=l(t);if(tn){vl(!0);try{l(t)}finally{vl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=yg.bind(null,B,e),[n.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:function(e){e=Qr(e);var t=e.queue,l=Bm.bind(null,B,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:to,useDeferredValue:function(e,t){var l=Be();return lo(l,e,t)},useTransition:function(){var e=Qr(!1);return e=Dm.bind(null,B,e.queue,!0,!1),Be().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=B,a=Be();if(X){if(l===void 0)throw Error(E(407));l=l()}else{if(l=t(),I===null)throw Error(E(349));Q&127||mm(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,Ds(ym.bind(null,n,i,e),[e]),n.flags|=2048,Fn(9,{destroy:void 0},pm.bind(null,n,i,l,t),null),l},useId:function(){var e=Be(),t=I.identifierPrefix;if(X){var l=jt,n=Ot;l=(n&~(1<<32-nt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Mu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=fg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:no,useFormState:js,useActionState:js,useOptimistic:function(e){var t=Be();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ao.bind(null,B,!0,l),l.dispatch=t,[e,t]},useMemoCache:If,useCacheRefresh:function(){return Be().memoizedState=pg.bind(null,B)},useEffectEvent:function(e){var t=Be(),l={impl:e};return t.memoizedState=l,function(){if(Z&2)throw Error(E(440));return l.impl.apply(void 0,arguments)}}},io={readContext:Re,use:oc,useCallback:jm,useContext:Re,useEffect:eo,useImperativeHandle:Om,useInsertionEffect:Nm,useLayoutEffect:zm,useMemo:Mm,useReducer:cu,useRef:Cm,useState:function(){return cu(el)},useDebugValue:to,useDeferredValue:function(e,t){var l=de();return Rm(l,W.memoizedState,e,t)},useTransition:function(){var e=cu(el)[0],t=de().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:hm,useId:Hm,useHostTransitionStatus:no,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){var l=de();return xm(l,W,e,t)},useMemoCache:If,useCacheRefresh:Lm};io.useEffectEvent=Tm;var Qm={readContext:Re,use:oc,useCallback:jm,useContext:Re,useEffect:eo,useImperativeHandle:Om,useInsertionEffect:Nm,useLayoutEffect:zm,useMemo:Mm,useReducer:Vc,useRef:Cm,useState:function(){return Vc(el)},useDebugValue:to,useDeferredValue:function(e,t){var l=de();return W===null?lo(l,e,t):Rm(l,W.memoizedState,e,t)},useTransition:function(){var e=Vc(el)[0],t=de().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:hm,useId:Hm,useHostTransitionStatus:no,useFormState:Rs,useActionState:Rs,useOptimistic:function(e,t){var l=de();return W!==null?xm(l,W,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:If,useCacheRefresh:Lm};Qm.useEffectEvent=Tm;function Xc(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:ie({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Zr={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=at(),a=Cl(n);a.payload=t,l!=null&&(a.callback=l),t=Tl(e,a,n),t!==null&&(Ke(t,e,n),Ba(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=at(),a=Cl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=Tl(e,a,n),t!==null&&(Ke(t,e,n),Ba(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=at(),n=Cl(l);n.tag=2,t!=null&&(n.callback=t),t=Tl(e,n,l),t!==null&&(Ke(t,e,l),Ba(t,e,l))}};function ws(e,t,l,n,a,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,u):t.prototype&&t.prototype.isPureReactComponent?!$a(l,n)||!$a(a,i):!0}function Us(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Zr.enqueueReplaceState(t,t.state,null)}function ln(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=ie({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Vm(e){Au(e)}function Xm(e){console.error(e)}function Zm(e){Au(e)}function Ru(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Hs(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function kr(e,t,l){return l=Cl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ru(e,t)},l}function km(e){return e=Cl(e),e.tag=3,e}function Km(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){Hs(t,l,n)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Hs(t,l,n),typeof a!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var c=n.stack;this.componentDidCatch(n.value,{componentStack:c!==null?c:""})})}function vg(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&ia(t,l,a,!0),l=ut.current,l!==null){switch(l.tag){case 31:case 13:return yt===null?Lu():l.alternate===null&&oe===0&&(oe=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===zu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),tr(e,n,a)),!1;case 22:return l.flags|=65536,n===zu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),tr(e,n,a)),!1}throw Error(E(435,l.tag))}return tr(e,n,a),Lu(),!1}if(X)return t=ut.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Dr&&(e=Error(E(422),{cause:n}),Ia(mt(e,l)))):(n!==Dr&&(t=Error(E(423),{cause:n}),Ia(mt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=mt(n,l),a=kr(e.stateNode,n,a),Qc(e,a),oe!==4&&(oe=2)),!1;var i=Error(E(520),{cause:n});if(i=mt(i,l),Xa===null?Xa=[i]:Xa.push(i),oe!==4&&(oe=2),t===null)return!0;n=mt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=kr(l.stateNode,n,e),Qc(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"&&(Nl===null||!Nl.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=km(a),Km(a,e,l,n),Qc(l,a),!1}l=l.return}while(l!==null);return!1}var uo=Error(E(461)),ge=!1;function Oe(e,t,l,n){t.child=e===null?cm(t,null,l,n):en(t,e.child,l,n)}function Ls(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var u={};for(var c in n)c!=="ref"&&(u[c]=n[c])}else u=n;return Pl(t),n=Jf(e,t,l,u,i,a),c=Ff(),e!==null&&!ge?($f(e,t,a),tl(e,t,a)):(X&&c&&qf(t),t.flags|=1,Oe(e,t,n,a),t.child)}function Bs(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!Yf(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Jm(e,t,i,n,a)):(e=iu(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!co(e,a)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:$a,l(u,n)&&e.ref===t.ref)return tl(e,t,a)}return t.flags|=1,e=Ft(i,n),e.ref=t.ref,e.return=t,t.child=e}function Jm(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if($a(i,n)&&e.ref===t.ref)if(ge=!1,t.pendingProps=n=i,co(e,a))e.flags&131072&&(ge=!0);else return t.lanes=e.lanes,tl(e,t,a)}return Kr(e,t,l,n,a)}function Fm(e,t,l,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return Ys(e,t,i,l,n)}if(l&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&uu(t,i!==null?i.cachePool:null),i!==null?zs(t,i):qr(),om(t);else return n=t.lanes=536870912,Ys(e,t,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(uu(t,i.cachePool),zs(t,i),pl(),t.memoizedState=null):(e!==null&&uu(t,null),qr(),pl());return Oe(e,t,a,l),t.child}function ja(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ys(e,t,l,n,a){var i=Vf();return i=i===null?null:{parent:ye._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&uu(t,null),qr(),om(t),e!==null&&ia(e,t,n,!0),t.childLanes=a,null}function fu(e,t){return t=Du({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qs(e,t,l){return en(t,e.child,null,l),e=fu(t,t.pendingProps),e.flags|=2,Ie(t),t.memoizedState=null,e}function gg(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(X){if(n.mode==="hidden")return e=fu(t,n),t.lanes=536870912,ja(null,e);if(Gr(t),(e=ne)?(e=G0(e,pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Rl!==null?{id:Ot,overflow:jt}:null,retryLane:536870912,hydrationErrors:null},l=em(e),l.return=t,t.child=l,Me=t,ne=null)):e=null,e===null)throw Dl(t);return t.lanes=536870912,null}return fu(t,n)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(Gr(t),a)if(t.flags&256)t.flags&=-257,t=qs(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(E(558));else if(ge||ia(e,t,l,!1),a=(l&e.childLanes)!==0,ge||a){if(n=I,n!==null&&(u=Nh(n,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,cn(e,u),Ke(n,e,u),uo;Lu(),t=qs(e,t,l)}else e=i.treeContext,ne=vt(u.nextSibling),Me=t,X=!0,Al=null,pt=!1,e!==null&&lm(t,e),t=fu(t,n),t.flags|=4096;return t}return e=Ft(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ou(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(E(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Kr(e,t,l,n,a){return Pl(t),l=Jf(e,t,l,n,void 0,a),n=Ff(),e!==null&&!ge?($f(e,t,a),tl(e,t,a)):(X&&n&&qf(t),t.flags|=1,Oe(e,t,l,a),t.child)}function Gs(e,t,l,n,a,i){return Pl(t),t.updateQueue=null,l=dm(t,n,l,a),sm(e),n=Ff(),e!==null&&!ge?($f(e,t,i),tl(e,t,i)):(X&&n&&qf(t),t.flags|=1,Oe(e,t,l,i),t.child)}function Qs(e,t,l,n,a){if(Pl(t),t.stateNode===null){var i=Mn,u=l.contextType;typeof u=="object"&&u!==null&&(i=Re(u)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Zr,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},Zf(t),u=l.contextType,i.context=typeof u=="object"&&u!==null?Re(u):Mn,i.state=t.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Xc(t,l,u,n),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&Zr.enqueueReplaceState(i,i.state,null),qa(t,n,i,a),Ya(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var c=t.memoizedProps,r=ln(l,c);i.props=r;var f=i.context,d=l.contextType;u=Mn,typeof d=="object"&&d!==null&&(u=Re(d));var s=l.getDerivedStateFromProps;d=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c||f!==u)&&Us(t,i,n,u),dl=!1;var h=t.memoizedState;i.state=h,qa(t,n,i,a),Ya(),f=t.memoizedState,c||h!==f||dl?(typeof s=="function"&&(Xc(t,l,s,n),f=t.memoizedState),(r=dl||ws(t,l,r,n,h,f,u))?(d||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=n,t.memoizedState=f),i.props=n,i.state=f,i.context=u,n=r):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Br(e,t),u=t.memoizedProps,d=ln(l,u),i.props=d,s=t.pendingProps,h=i.context,f=l.contextType,r=Mn,typeof f=="object"&&f!==null&&(r=Re(f)),c=l.getDerivedStateFromProps,(f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==s||h!==r)&&Us(t,i,n,r),dl=!1,h=t.memoizedState,i.state=h,qa(t,n,i,a),Ya();var y=t.memoizedState;u!==s||h!==y||dl||e!==null&&e.dependencies!==null&&Nu(e.dependencies)?(typeof c=="function"&&(Xc(t,l,c,n),y=t.memoizedState),(d=dl||ws(t,l,d,n,h,y,r)||e!==null&&e.dependencies!==null&&Nu(e.dependencies))?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,y,r),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,y,r)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=y),i.props=n,i.state=y,i.context=r,n=d):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,ou(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=en(t,e.child,null,a),t.child=en(t,null,l,a)):Oe(e,t,l,a),t.memoizedState=i.state,e=t.child):e=tl(e,t,a),e}function Vs(e,t,l,n){return Il(),t.flags|=256,Oe(e,t,l,n),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kc(e){return{baseLanes:e,cachePool:am()}}function Kc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=et),e}function $m(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(se.current&2)!==0),u&&(a=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(X){if(a?ml(t):pl(),(e=ne)?(e=G0(e,pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Rl!==null?{id:Ot,overflow:jt}:null,retryLane:536870912,hydrationErrors:null},l=em(e),l.return=t,t.child=l,Me=t,ne=null)):e=null,e===null)throw Dl(t);return rf(e)?t.lanes=32:t.lanes=536870912,null}var c=n.children;return n=n.fallback,a?(pl(),a=t.mode,c=Du({mode:"hidden",children:c},a),n=Kl(n,a,l,null),c.return=t,n.return=t,c.sibling=n,t.child=c,n=t.child,n.memoizedState=kc(l),n.childLanes=Kc(e,u,l),t.memoizedState=Zc,ja(null,n)):(ml(t),Jr(t,c))}var r=e.memoizedState;if(r!==null&&(c=r.dehydrated,c!==null)){if(i)t.flags&256?(ml(t),t.flags&=-257,t=Jc(e,t,l)):t.memoizedState!==null?(pl(),t.child=e.child,t.flags|=128,t=null):(pl(),c=n.fallback,a=t.mode,n=Du({mode:"visible",children:n.children},a),c=Kl(c,a,l,null),c.flags|=2,n.return=t,c.return=t,n.sibling=c,t.child=n,en(t,e.child,null,l),n=t.child,n.memoizedState=kc(l),n.childLanes=Kc(e,u,l),t.memoizedState=Zc,t=ja(null,n));else if(ml(t),rf(c)){if(u=c.nextSibling&&c.nextSibling.dataset,u)var f=u.dgst;u=f,n=Error(E(419)),n.stack="",n.digest=u,Ia({value:n,source:null,stack:null}),t=Jc(e,t,l)}else if(ge||ia(e,t,l,!1),u=(l&e.childLanes)!==0,ge||u){if(u=I,u!==null&&(n=Nh(u,l),n!==0&&n!==r.retryLane))throw r.retryLane=n,cn(e,n),Ke(u,e,n),uo;cf(c)||Lu(),t=Jc(e,t,l)}else cf(c)?(t.flags|=192,t.child=e.child,t=null):(e=r.treeContext,ne=vt(c.nextSibling),Me=t,X=!0,Al=null,pt=!1,e!==null&&lm(t,e),t=Jr(t,n.children),t.flags|=4096);return t}return a?(pl(),c=n.fallback,a=t.mode,r=e.child,f=r.sibling,n=Ft(r,{mode:"hidden",children:n.children}),n.subtreeFlags=r.subtreeFlags&65011712,f!==null?c=Ft(f,c):(c=Kl(c,a,l,null),c.flags|=2),c.return=t,n.return=t,n.sibling=c,t.child=n,ja(null,n),n=t.child,c=e.child.memoizedState,c===null?c=kc(l):(a=c.cachePool,a!==null?(r=ye._currentValue,a=a.parent!==r?{parent:r,pool:r}:a):a=am(),c={baseLanes:c.baseLanes|l,cachePool:a}),n.memoizedState=c,n.childLanes=Kc(e,u,l),t.memoizedState=Zc,ja(e.child,n)):(ml(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function Jr(e,t){return t=Du({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Du(e,t){return e=Pe(22,e,null,t),e.lanes=0,e}function Jc(e,t,l){return en(t,e.child,null,l),e=Jr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xs(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ur(e.return,t,l)}function Fc(e,t,l,n,a,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=n,u.tail=l,u.tailMode=a,u.treeForkCount=i)}function Wm(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var u=se.current,c=(u&2)!==0;if(c?(u=u&1|2,t.flags|=128):u&=1,P(se,u),Oe(e,t,n,l),n=X?Wa:0,!c&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xs(e,l,t);else if(e.tag===19)Xs(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(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&Ou(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Fc(t,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ou(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Fc(t,!0,l,null,i,n);break;case"together":Fc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,!(l&t.childLanes))if(e!==null){if(ia(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function co(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Nu(e)))}function xg(e,t,l){switch(t.tag){case 3:xu(t,t.stateNode.containerInfo),hl(t,ye,e.memoizedState.cache),Il();break;case 27:case 5:Er(t);break;case 4:xu(t,t.stateNode.containerInfo);break;case 10:hl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Gr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(ml(t),t.flags|=128,null):l&t.child.childLanes?$m(e,t,l):(ml(t),e=tl(e,t,l),e!==null?e.sibling:null);ml(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(ia(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return Wm(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),P(se,se.current),n)break;return null;case 22:return t.lanes=0,Fm(e,t,l,t.pendingProps);case 24:hl(t,ye,e.memoizedState.cache)}return tl(e,t,l)}function Im(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ge=!0;else{if(!co(e,l)&&!(t.flags&128))return ge=!1,xg(e,t,l);ge=!!(e.flags&131072)}else ge=!1,X&&t.flags&1048576&&tm(t,Wa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Vl(t.elementType),t.type=e,typeof e=="function")Yf(e)?(n=ln(e,n),t.tag=1,t=Qs(null,t,e,n,l)):(t.tag=0,t=Kr(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===Tf){t.tag=11,t=Ls(null,t,e,n,l);break e}else if(a===Nf){t.tag=14,t=Bs(null,t,e,n,l);break e}}throw t=br(e)||e,Error(E(306,t,""))}}return t;case 0:return Kr(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=ln(n,t.pendingProps),Qs(e,t,n,a,l);case 3:e:{if(xu(t,t.stateNode.containerInfo),e===null)throw Error(E(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,Br(e,t),qa(t,n,null,l);var u=t.memoizedState;if(n=u.cache,hl(t,ye,n),n!==i.cache&&Hr(t,[ye],l,!0),Ya(),n=u.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Vs(e,t,n,l);break e}else if(n!==a){a=mt(Error(E(424)),t),Ia(a),t=Vs(e,t,n,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(ne=vt(e.firstChild),Me=t,X=!0,Al=null,pt=!0,l=cm(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Il(),n===a){t=tl(e,t,l);break e}Oe(e,t,n,l)}t=t.child}return t;case 26:return ou(e,t),e===null?(l=od(t.type,null,t.pendingProps,null))?t.memoizedState=l:X||(l=t.type,e=t.pendingProps,n=Gu(El.current).createElement(l),n[je]=t,n[Je]=e,De(n,l,e),ze(n),t.stateNode=n):t.memoizedState=od(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Er(t),e===null&&X&&(n=t.stateNode=Q0(t.type,t.pendingProps,El.current),Me=t,pt=!0,a=ne,Bl(t.type)?(ff=a,ne=vt(n.firstChild)):ne=a),Oe(e,t,t.pendingProps.children,l),ou(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&X&&((a=n=ne)&&(n=Fg(n,t.type,t.pendingProps,pt),n!==null?(t.stateNode=n,Me=t,ne=vt(n.firstChild),pt=!1,a=!0):a=!1),a||Dl(t)),Er(t),a=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,n=i.children,af(a,i)?n=null:u!==null&&af(a,u)&&(t.flags|=32),t.memoizedState!==null&&(a=Jf(e,t,og,null,null,l),ai._currentValue=a),ou(e,t),Oe(e,t,n,l),t.child;case 6:return e===null&&X&&((e=l=ne)&&(l=$g(l,t.pendingProps,pt),l!==null?(t.stateNode=l,Me=t,ne=null,e=!0):e=!1),e||Dl(t)),null;case 13:return $m(e,t,l);case 4:return xu(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=en(t,null,n,l):Oe(e,t,n,l),t.child;case 11:return Ls(e,t,t.type,t.pendingProps,l);case 7:return Oe(e,t,t.pendingProps,l),t.child;case 8:return Oe(e,t,t.pendingProps.children,l),t.child;case 12:return Oe(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,hl(t,t.type,n.value),Oe(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Pl(t),a=Re(a),n=n(a),t.flags|=1,Oe(e,t,n,l),t.child;case 14:return Bs(e,t,t.type,t.pendingProps,l);case 15:return Jm(e,t,t.type,t.pendingProps,l);case 19:return Wm(e,t,l);case 31:return gg(e,t,l);case 22:return Fm(e,t,l,t.pendingProps);case 24:return Pl(t),n=Re(ye),e===null?(a=Vf(),a===null&&(a=I,i=Qf(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},Zf(t),hl(t,ye,a)):(e.lanes&l&&(Br(e,t),qa(t,null,null,l),Ya()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),hl(t,ye,n)):(n=i.cache,hl(t,ye,n),n!==a.cache&&Hr(t,[ye],l,!0))),Oe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(E(156,t.tag))}function qt(e){e.flags|=4}function $c(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(E0())e.flags|=8192;else throw Fl=zu,Xf}else e.flags&=-16777217}function Zs(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Z0(t))if(E0())e.flags|=8192;else throw Fl=zu,Xf}function Ki(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ah():536870912,e.lanes|=t,$n|=t)}function Aa(e,t){if(!X)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 n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function le(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function bg(e,t,l){var n=t.pendingProps;switch(Gf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return le(t),null;case 1:return le(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$t(ye),Xn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(yn(t)?qt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gc())),le(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(qt(t),i!==null?(le(t),Zs(t,i)):(le(t),$c(t,a,null,n,l))):i?i!==e.memoizedState?(qt(t),le(t),Zs(t,i)):(le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&qt(t),le(t),$c(t,a,e,n,l)),null;case 27:if(bu(t),l=El.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&qt(t);else{if(!n){if(t.stateNode===null)throw Error(E(166));return le(t),null}e=Rt.current,yn(t)?bs(t):(e=Q0(a,n,l),t.stateNode=e,qt(t))}return le(t),null;case 5:if(bu(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&qt(t);else{if(!n){if(t.stateNode===null)throw Error(E(166));return le(t),null}if(i=Rt.current,yn(t))bs(t);else{var u=Gu(El.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?u.createElement("select",{is:n.is}):u.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?u.createElement(a,{is:n.is}):u.createElement(a)}}i[je]=t,i[Je]=n;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=i;e:switch(De(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&qt(t)}}return le(t),$c(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&qt(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(E(166));if(e=El.current,yn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=Me,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[je]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||B0(e.nodeValue,l)),e||Dl(t,!0)}else e=Gu(e).createTextNode(n),e[je]=t,t.stateNode=e}return le(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=yn(t),l!==null){if(e===null){if(!n)throw Error(E(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(557));e[je]=t}else Il(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;le(t),e=!1}else l=Gc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ie(t),t):(Ie(t),null);if(t.flags&128)throw Error(E(558))}return le(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=yn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(E(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(E(317));a[je]=t}else Il(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;le(t),a=!1}else a=Gc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ie(t),t):(Ie(t),null)}return Ie(t),t.flags&128?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ki(t,t.updateQueue),le(t),null);case 4:return Xn(),e===null&&po(t.stateNode.containerInfo),le(t),null;case 10:return $t(t.type),le(t),null;case 19:if(_e(se),n=t.memoizedState,n===null)return le(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)Aa(n,!1);else{if(oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Ou(e),i!==null){for(t.flags|=128,Aa(n,!1),e=i.updateQueue,t.updateQueue=e,Ki(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ph(l,e),l=l.sibling;return P(se,se.current&1|2),X&&Xt(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&tt()>Uu&&(t.flags|=128,a=!0,Aa(n,!1),t.lanes=4194304)}else{if(!a)if(e=Ou(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ki(t,e),Aa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!X)return le(t),null}else 2*tt()-n.renderingStartTime>Uu&&l!==536870912&&(t.flags|=128,a=!0,Aa(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=tt(),e.sibling=null,l=se.current,P(se,a?l&1|2:l&1),X&&Xt(t,n.treeForkCount),e):(le(t),null);case 22:case 23:return Ie(t),kf(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?l&536870912&&!(t.flags&128)&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),l=t.updateQueue,l!==null&&Ki(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&_e(Jl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),$t(ye),le(t),null;case 25:return null;case 30:return null}throw Error(E(156,t.tag))}function Sg(e,t){switch(Gf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $t(ye),Xn(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bu(t),null;case 31:if(t.memoizedState!==null){if(Ie(t),t.alternate===null)throw Error(E(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ie(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(se),null;case 4:return Xn(),null;case 10:return $t(t.type),null;case 22:case 23:return Ie(t),kf(),e!==null&&_e(Jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $t(ye),null;case 25:return null;default:return null}}function Pm(e,t){switch(Gf(t),t.tag){case 3:$t(ye),Xn();break;case 26:case 27:case 5:bu(t);break;case 4:Xn();break;case 31:t.memoizedState!==null&&Ie(t);break;case 13:Ie(t);break;case 19:_e(se);break;case 10:$t(t.type);break;case 22:case 23:Ie(t),kf(),e!==null&&_e(Jl);break;case 24:$t(ye)}}function bi(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,u=l.inst;n=i(),u.destroy=n}l=l.next}while(l!==a)}}catch(c){J(t,t.return,c)}}function wl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var u=n.inst,c=u.destroy;if(c!==void 0){u.destroy=void 0,a=t;var r=l,f=c;try{f()}catch(d){J(a,r,d)}}}n=n.next}while(n!==i)}}catch(d){J(t,t.return,d)}}function e0(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{fm(t,l)}catch(n){J(e,e.return,n)}}}function t0(e,t,l){l.props=ln(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){J(e,t,n)}}function Qa(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){J(e,t,a)}}function Mt(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){J(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){J(e,t,a)}else l.current=null}function l0(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){J(e,e.return,a)}}function Wc(e,t,l){try{var n=e.stateNode;Vg(n,e.type,l,t),n[Je]=t}catch(a){J(e,e.return,a)}}function n0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Bl(e.type)||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||n0(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&&Bl(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 Fr(e,t,l){var n=e.tag;if(n===5||n===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=Kt));else if(n!==4&&(n===27&&Bl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Fr(e,t,l),e=e.sibling;e!==null;)Fr(e,t,l),e=e.sibling}function wu(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Bl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(wu(e,t,l),e=e.sibling;e!==null;)wu(e,t,l),e=e.sibling}function a0(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);De(t,n,l),t[je]=e,t[Je]=l}catch(i){J(e,e.return,i)}}var Zt=!1,pe=!1,Pc=!1,ks=typeof WeakSet=="function"?WeakSet:Set,Ne=null;function Eg(e,t){if(e=e.containerInfo,lf=Zu,e=Zh(e),Hf(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var u=0,c=-1,r=-1,f=0,d=0,s=e,h=null;t:for(;;){for(var y;s!==l||a!==0&&s.nodeType!==3||(c=u+a),s!==i||n!==0&&s.nodeType!==3||(r=u+n),s.nodeType===3&&(u+=s.nodeValue.length),(y=s.firstChild)!==null;)h=s,s=y;for(;;){if(s===e)break t;if(h===l&&++f===a&&(c=u),h===i&&++d===n&&(r=u),(y=s.nextSibling)!==null)break;s=h,h=s.parentNode}s=y}l=c===-1||r===-1?null:{start:c,end:r}}else l=null}l=l||{start:0,end:0}}else l=null;for(nf={focusedElem:e,selectionRange:l},Zu=!1,Ne=t;Ne!==null;)if(t=Ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ne=e;else for(;Ne!==null;){switch(t=Ne,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,l=t,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var x=ln(l.type,a);e=n.getSnapshotBeforeUpdate(x,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(S){J(l,l.return,S)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)uf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(E(163))}if(e=t.sibling,e!==null){e.return=t.return,Ne=e;break}Ne=t.return}}function i0(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Qt(e,l),n&4&&bi(5,l);break;case 1:if(Qt(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(u){J(l,l.return,u)}else{var a=ln(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){J(l,l.return,u)}}n&64&&e0(l),n&512&&Qa(l,l.return);break;case 3:if(Qt(e,l),n&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{fm(e,t)}catch(u){J(l,l.return,u)}}break;case 27:t===null&&n&4&&a0(l);case 26:case 5:Qt(e,l),t===null&&n&4&&l0(l),n&512&&Qa(l,l.return);break;case 12:Qt(e,l);break;case 31:Qt(e,l),n&4&&r0(e,l);break;case 13:Qt(e,l),n&4&&f0(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Mg.bind(null,l),Wg(e,l))));break;case 22:if(n=l.memoizedState!==null||Zt,!n){t=t!==null&&t.memoizedState!==null||pe,a=Zt;var i=pe;Zt=n,(pe=t)&&!i?Vt(e,l,(l.subtreeFlags&8772)!==0):Qt(e,l),Zt=a,pe=i}break;case 30:break;default:Qt(e,l)}}function u0(e){var t=e.alternate;t!==null&&(e.alternate=null,u0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jf(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,Xe=!1;function Gt(e,t,l){for(l=l.child;l!==null;)c0(e,t,l),l=l.sibling}function c0(e,t,l){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(hi,l)}catch{}switch(l.tag){case 26:pe||Mt(l,t),Gt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:pe||Mt(l,t);var n=ue,a=Xe;Bl(l.type)&&(ue=l.stateNode,Xe=!1),Gt(e,t,l),ka(l.stateNode),ue=n,Xe=a;break;case 5:pe||Mt(l,t);case 6:if(n=ue,a=Xe,ue=null,Gt(e,t,l),ue=n,Xe=a,ue!==null)if(Xe)try{(ue.nodeType===9?ue.body:ue.nodeName==="HTML"?ue.ownerDocument.body:ue).removeChild(l.stateNode)}catch(i){J(l,t,i)}else try{ue.removeChild(l.stateNode)}catch(i){J(l,t,i)}break;case 18:ue!==null&&(Xe?(e=ue,id(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ea(e)):id(ue,l.stateNode));break;case 4:n=ue,a=Xe,ue=l.stateNode.containerInfo,Xe=!0,Gt(e,t,l),ue=n,Xe=a;break;case 0:case 11:case 14:case 15:wl(2,l,t),pe||wl(4,l,t),Gt(e,t,l);break;case 1:pe||(Mt(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&t0(l,t,n)),Gt(e,t,l);break;case 21:Gt(e,t,l);break;case 22:pe=(n=pe)||l.memoizedState!==null,Gt(e,t,l),pe=n;break;default:Gt(e,t,l)}}function r0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ea(e)}catch(l){J(t,t.return,l)}}}function f0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ea(e)}catch(l){J(t,t.return,l)}}function Ag(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ks),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ks),t;default:throw Error(E(435,e.tag))}}function Ji(e,t){var l=Ag(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Rg.bind(null,e,n);n.then(a,a)}})}function Qe(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,u=t,c=u;e:for(;c!==null;){switch(c.tag){case 27:if(Bl(c.type)){ue=c.stateNode,Xe=!1;break e}break;case 5:ue=c.stateNode,Xe=!1;break e;case 3:case 4:ue=c.stateNode.containerInfo,Xe=!0;break e}c=c.return}if(ue===null)throw Error(E(160));c0(i,u,a),ue=null,Xe=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)o0(t,e),t=t.sibling}var At=null;function o0(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Qe(t,e),Ve(e),n&4&&(wl(3,e,e.return),bi(3,e),wl(5,e,e.return));break;case 1:Qe(t,e),Ve(e),n&512&&(pe||l===null||Mt(l,l.return)),n&64&&Zt&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=At;if(Qe(t,e),Ve(e),n&512&&(pe||l===null||Mt(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[yi]||i[je]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),De(i,n,l),i[je]=e,ze(i),n=i;break e;case"link":var u=dd("link","href",a).get(n+(l.href||""));if(u){for(var c=0;c<u.length;c++)if(i=u[c],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)){u.splice(c,1);break t}}i=a.createElement(n),De(i,n,l),a.head.appendChild(i);break;case"meta":if(u=dd("meta","content",a).get(n+(l.content||""))){for(c=0;c<u.length;c++)if(i=u[c],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)){u.splice(c,1);break t}}i=a.createElement(n),De(i,n,l),a.head.appendChild(i);break;default:throw Error(E(468,n))}i[je]=e,ze(i),n=i}e.stateNode=n}else hd(a,e.type,e.stateNode);else e.stateNode=sd(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?hd(a,e.type,e.stateNode):sd(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Wc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Qe(t,e),Ve(e),n&512&&(pe||l===null||Mt(l,l.return)),l!==null&&n&4&&Wc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Qe(t,e),Ve(e),n&512&&(pe||l===null||Mt(l,l.return)),e.flags&32){a=e.stateNode;try{kn(a,"")}catch(x){J(e,e.return,x)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Wc(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Pc=!0);break;case 6:if(Qe(t,e),Ve(e),n&4){if(e.stateNode===null)throw Error(E(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(x){J(e,e.return,x)}}break;case 3:if(hu=null,a=At,At=Qu(t.containerInfo),Qe(t,e),At=a,Ve(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{ea(t.containerInfo)}catch(x){J(e,e.return,x)}Pc&&(Pc=!1,s0(e));break;case 4:n=At,At=Qu(e.stateNode.containerInfo),Qe(t,e),Ve(e),At=n;break;case 12:Qe(t,e),Ve(e);break;case 31:Qe(t,e),Ve(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ji(e,n)));break;case 13:Qe(t,e),Ve(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(hc=tt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ji(e,n)));break;case 22:a=e.memoizedState!==null;var r=l!==null&&l.memoizedState!==null,f=Zt,d=pe;if(Zt=f||a,pe=d||r,Qe(t,e),pe=d,Zt=f,Ve(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||r||Zt||pe||Xl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){r=l=t;try{if(i=r.stateNode,a)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{c=r.stateNode;var s=r.memoizedProps.style,h=s!=null&&s.hasOwnProperty("display")?s.display:null;c.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(x){J(r,r.return,x)}}}else if(t.tag===6){if(l===null){r=t;try{r.stateNode.nodeValue=a?"":r.memoizedProps}catch(x){J(r,r.return,x)}}}else if(t.tag===18){if(l===null){r=t;try{var y=r.stateNode;a?ud(y,!0):ud(r.stateNode,!1)}catch(x){J(r,r.return,x)}}}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}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Ji(e,l))));break;case 19:Qe(t,e),Ve(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ji(e,n)));break;case 30:break;case 21:break;default:Qe(t,e),Ve(e)}}function Ve(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(n0(n)){l=n;break}n=n.return}if(l==null)throw Error(E(160));switch(l.tag){case 27:var a=l.stateNode,i=Ic(e);wu(e,i,a);break;case 5:var u=l.stateNode;l.flags&32&&(kn(u,""),l.flags&=-33);var c=Ic(e);wu(e,c,u);break;case 3:case 4:var r=l.stateNode.containerInfo,f=Ic(e);Fr(e,f,r);break;default:throw Error(E(161))}}catch(d){J(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function s0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;s0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)i0(e,t.alternate,t),t=t.sibling}function Xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:wl(4,t,t.return),Xl(t);break;case 1:Mt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&t0(t,t.return,l),Xl(t);break;case 27:ka(t.stateNode);case 26:case 5:Mt(t,t.return),Xl(t);break;case 22:t.memoizedState===null&&Xl(t);break;case 30:Xl(t);break;default:Xl(t)}e=e.sibling}}function Vt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:Vt(a,i,l),bi(4,i);break;case 1:if(Vt(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(f){J(n,n.return,f)}if(n=i,a=n.updateQueue,a!==null){var c=n.stateNode;try{var r=a.shared.hiddenCallbacks;if(r!==null)for(a.shared.hiddenCallbacks=null,a=0;a<r.length;a++)rm(r[a],c)}catch(f){J(n,n.return,f)}}l&&u&64&&e0(i),Qa(i,i.return);break;case 27:a0(i);case 26:case 5:Vt(a,i,l),l&&n===null&&u&4&&l0(i),Qa(i,i.return);break;case 12:Vt(a,i,l);break;case 31:Vt(a,i,l),l&&u&4&&r0(a,i);break;case 13:Vt(a,i,l),l&&u&4&&f0(a,i);break;case 22:i.memoizedState===null&&Vt(a,i,l),Qa(i,i.return);break;case 30:break;default:Vt(a,i,l)}t=t.sibling}}function ro(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&&gi(l))}function fo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gi(e))}function Et(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)d0(e,t,l,n),t=t.sibling}function d0(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Et(e,t,l,n),a&2048&&bi(9,t);break;case 1:Et(e,t,l,n);break;case 3:Et(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gi(e)));break;case 12:if(a&2048){Et(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,c=i.onPostCommit;typeof c=="function"&&c(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(r){J(t,t.return,r)}}else Et(e,t,l,n);break;case 31:Et(e,t,l,n);break;case 13:Et(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?Et(e,t,l,n):Va(e,t):i._visibility&2?Et(e,t,l,n):(i._visibility|=2,bn(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&ro(u,t);break;case 24:Et(e,t,l,n),a&2048&&fo(t.alternate,t);break;default:Et(e,t,l,n)}}function bn(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,u=t,c=l,r=n,f=u.flags;switch(u.tag){case 0:case 11:case 15:bn(i,u,c,r,a),bi(8,u);break;case 23:break;case 22:var d=u.stateNode;u.memoizedState!==null?d._visibility&2?bn(i,u,c,r,a):Va(i,u):(d._visibility|=2,bn(i,u,c,r,a)),a&&f&2048&&ro(u.alternate,u);break;case 24:bn(i,u,c,r,a),a&&f&2048&&fo(u.alternate,u);break;default:bn(i,u,c,r,a)}t=t.sibling}}function Va(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:Va(l,n),a&2048&&ro(n.alternate,n);break;case 24:Va(l,n),a&2048&&fo(n.alternate,n);break;default:Va(l,n)}t=t.sibling}}var Ma=8192;function vn(e,t,l){if(e.subtreeFlags&Ma)for(e=e.child;e!==null;)h0(e,t,l),e=e.sibling}function h0(e,t,l){switch(e.tag){case 26:vn(e,t,l),e.flags&Ma&&e.memoizedState!==null&&fx(l,At,e.memoizedState,e.memoizedProps);break;case 5:vn(e,t,l);break;case 3:case 4:var n=At;At=Qu(e.stateNode.containerInfo),vn(e,t,l),At=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ma,Ma=16777216,vn(e,t,l),Ma=n):vn(e,t,l));break;default:vn(e,t,l)}}function m0(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 Ca(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Ne=n,y0(n,e)}m0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)p0(e),e=e.sibling}function p0(e){switch(e.tag){case 0:case 11:case 15:Ca(e),e.flags&2048&&wl(9,e,e.return);break;case 3:Ca(e);break;case 12:Ca(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,su(e)):Ca(e);break;default:Ca(e)}}function su(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Ne=n,y0(n,e)}m0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wl(8,t,t.return),su(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,su(t));break;default:su(t)}e=e.sibling}}function y0(e,t){for(;Ne!==null;){var l=Ne;switch(l.tag){case 0:case 11:case 15:wl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:gi(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Ne=n;else e:for(l=e;Ne!==null;){n=Ne;var a=n.sibling,i=n.return;if(u0(n),n===l){Ne=null;break e}if(a!==null){a.return=i,Ne=a;break e}Ne=i}}}var Cg={getCacheForType:function(e){var t=Re(ye),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Re(ye).controller.signal}},Tg=typeof WeakMap=="function"?WeakMap:Map,Z=0,I=null,q=null,Q=0,K=0,We=null,xl=!1,ca=!1,oo=!1,ll=0,oe=0,Ul=0,$l=0,so=0,et=0,$n=0,Xa=null,Ze=null,$r=!1,hc=0,v0=0,Uu=1/0,Hu=null,Nl=null,be=0,zl=null,Wn=null,Wt=0,Wr=0,Ir=null,g0=null,Za=0,Pr=null;function at(){return Z&2&&Q!==0?Q&-Q:w.T!==null?mo():zh()}function x0(){if(et===0)if(!(Q&536870912)||X){var e=qi;qi<<=1,!(qi&3932160)&&(qi=262144),et=e}else et=536870912;return e=ut.current,e!==null&&(e.flags|=32),et}function Ke(e,t,l){(e===I&&(K===2||K===9)||e.cancelPendingCommit!==null)&&(In(e,0),bl(e,Q,et,!1)),pi(e,l),(!(Z&2)||e!==I)&&(e===I&&(!(Z&2)&&($l|=l),oe===4&&bl(e,Q,et,!1)),Ht(e))}function b0(e,t,l){if(Z&6)throw Error(E(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||mi(e,t),a=n?_g(e,t):er(e,t,!0),i=n;do{if(a===0){ca&&!n&&bl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Ng(l)){a=er(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var c=e;a=Xa;var r=c.current.memoizedState.isDehydrated;if(r&&(In(c,u).flags|=256),u=er(c,u,!1),u!==2){if(oo&&!r){c.errorRecoveryDisabledLanes|=i,$l|=i,a=4;break e}i=Ze,Ze=a,i!==null&&(Ze===null?Ze=i:Ze.push.apply(Ze,i))}a=u}if(i=!1,a!==2)continue}}if(a===1){In(e,0),bl(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(E(345));case 4:if((t&4194048)!==t)break;case 6:bl(n,t,et,!xl);break e;case 2:Ze=null;break;case 3:case 5:break;default:throw Error(E(329))}if((t&62914560)===t&&(a=hc+300-tt(),10<a)){if(bl(n,t,et,!xl),lc(n,0,!0)!==0)break e;Wt=t,n.timeoutHandle=q0(Ks.bind(null,n,l,Ze,Hu,$r,t,et,$l,$n,xl,i,"Throttled",-0,0),a);break e}Ks(n,l,Ze,Hu,$r,t,et,$l,$n,xl,i,null,-0,0)}}break}while(!0);Ht(e)}function Ks(e,t,l,n,a,i,u,c,r,f,d,s,h,y){if(e.timeoutHandle=-1,s=t.subtreeFlags,s&8192||(s&16785408)===16785408){s={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},h0(t,i,s);var x=(i&62914560)===i?hc-tt():(i&4194048)===i?v0-tt():0;if(x=ox(s,x),x!==null){Wt=i,e.cancelPendingCommit=x(Fs.bind(null,e,t,i,l,n,a,u,c,r,d,s,null,h,y)),bl(e,i,u,!f);return}}Fs(e,t,i,l,n,a,u,c,r)}function Ng(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 n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!it(i(),a))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 bl(e,t,l,n){t&=~so,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-nt(a),u=1<<i;n[i]=-1,a&=~u}l!==0&&Ch(e,l,t)}function mc(){return Z&6?!0:(Si(0),!1)}function ho(){if(q!==null){if(K===0)var e=q.return;else e=q,Jt=rn=null,Wf(e),Gn=null,Pa=0,e=q;for(;e!==null;)Pm(e.alternate,e),e=e.return;q=null}}function In(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,kg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Wt=0,ho(),I=e,q=l=Ft(e.current,null),Q=t,K=0,We=null,xl=!1,ca=mi(e,t),oo=!1,$n=et=so=$l=Ul=oe=0,Ze=Xa=null,$r=!1,t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-nt(n),i=1<<a;t|=e[a],n&=~i}return ll=t,uc(),l}function S0(e,t){B=null,w.H=ti,t===ua||t===rc?(t=Ts(),K=3):t===Xf?(t=Ts(),K=4):K=t===uo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,We=t,q===null&&(oe=1,Ru(e,mt(t,e.current)))}function E0(){var e=ut.current;return e===null?!0:(Q&4194048)===Q?yt===null:(Q&62914560)===Q||Q&536870912?e===yt:!1}function A0(){var e=w.H;return w.H=ti,e===null?ti:e}function C0(){var e=w.A;return w.A=Cg,e}function Lu(){oe=4,xl||(Q&4194048)!==Q&&ut.current!==null||(ca=!0),!(Ul&134217727)&&!($l&134217727)||I===null||bl(I,Q,et,!1)}function er(e,t,l){var n=Z;Z|=2;var a=A0(),i=C0();(I!==e||Q!==t)&&(Hu=null,In(e,t)),t=!1;var u=oe;e:do try{if(K!==0&&q!==null){var c=q,r=We;switch(K){case 8:ho(),u=6;break e;case 3:case 2:case 9:case 6:ut.current===null&&(t=!0);var f=K;if(K=0,We=null,wn(e,c,r,f),l&&ca){u=0;break e}break;default:f=K,K=0,We=null,wn(e,c,r,f)}}zg(),u=oe;break}catch(d){S0(e,d)}while(!0);return t&&e.shellSuspendCounter++,Jt=rn=null,Z=n,w.H=a,w.A=i,q===null&&(I=null,Q=0,uc()),u}function zg(){for(;q!==null;)T0(q)}function _g(e,t){var l=Z;Z|=2;var n=A0(),a=C0();I!==e||Q!==t?(Hu=null,Uu=tt()+500,In(e,t)):ca=mi(e,t);e:do try{if(K!==0&&q!==null){t=q;var i=We;t:switch(K){case 1:K=0,We=null,wn(e,t,i,1);break;case 2:case 9:if(Cs(i)){K=0,We=null,Js(t);break}t=function(){K!==2&&K!==9||I!==e||(K=7),Ht(e)},i.then(t,t);break e;case 3:K=7;break e;case 4:K=5;break e;case 7:Cs(i)?(K=0,We=null,Js(t)):(K=0,We=null,wn(e,t,i,7));break;case 5:var u=null;switch(q.tag){case 26:u=q.memoizedState;case 5:case 27:var c=q;if(u?Z0(u):c.stateNode.complete){K=0,We=null;var r=c.sibling;if(r!==null)q=r;else{var f=c.return;f!==null?(q=f,pc(f)):q=null}break t}}K=0,We=null,wn(e,t,i,5);break;case 6:K=0,We=null,wn(e,t,i,6);break;case 8:ho(),oe=6;break e;default:throw Error(E(462))}}Og();break}catch(d){S0(e,d)}while(!0);return Jt=rn=null,w.H=n,w.A=a,Z=l,q!==null?0:(I=null,Q=0,uc(),oe)}function Og(){for(;q!==null&&!Iy();)T0(q)}function T0(e){var t=Im(e.alternate,e,ll);e.memoizedProps=e.pendingProps,t===null?pc(e):q=t}function Js(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Gs(l,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=Gs(l,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:Wf(t);default:Pm(l,t),t=q=Ph(t,ll),t=Im(l,t,ll)}e.memoizedProps=e.pendingProps,t===null?pc(e):q=t}function wn(e,t,l,n){Jt=rn=null,Wf(t),Gn=null,Pa=0;var a=t.return;try{if(vg(e,a,t,l,Q)){oe=1,Ru(e,mt(l,e.current)),q=null;return}}catch(i){if(a!==null)throw q=a,i;oe=1,Ru(e,mt(l,e.current)),q=null;return}t.flags&32768?(X||n===1?e=!0:ca||Q&536870912?e=!1:(xl=e=!0,(n===2||n===9||n===3||n===6)&&(n=ut.current,n!==null&&n.tag===13&&(n.flags|=16384))),N0(t,e)):pc(t)}function pc(e){var t=e;do{if(t.flags&32768){N0(t,xl);return}e=t.return;var l=bg(t.alternate,t,ll);if(l!==null){q=l;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);oe===0&&(oe=5)}function N0(e,t){do{var l=Sg(e.alternate,e);if(l!==null){l.flags&=32767,q=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=l}while(e!==null);oe=6,q=null}function Fs(e,t,l,n,a,i,u,c,r){e.cancelPendingCommit=null;do yc();while(be!==0);if(Z&6)throw Error(E(327));if(t!==null){if(t===e.current)throw Error(E(177));if(i=t.lanes|t.childLanes,i|=Lf,rv(e,l,i,u,c,r),e===I&&(q=I=null,Q=0),Wn=t,zl=e,Wt=l,Wr=i,Ir=a,g0=n,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Dg(Su,function(){return M0(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,t.subtreeFlags&13878||n){n=w.T,w.T=null,a=k.p,k.p=2,u=Z,Z|=4;try{Eg(e,t,l)}finally{Z=u,k.p=a,w.T=n}}be=1,z0(),_0(),O0()}}function z0(){if(be===1){be=0;var e=zl,t=Wn,l=(t.flags&13878)!==0;if(t.subtreeFlags&13878||l){l=w.T,w.T=null;var n=k.p;k.p=2;var a=Z;Z|=4;try{o0(t,e);var i=nf,u=Zh(e.containerInfo),c=i.focusedElem,r=i.selectionRange;if(u!==c&&c&&c.ownerDocument&&Xh(c.ownerDocument.documentElement,c)){if(r!==null&&Hf(c)){var f=r.start,d=r.end;if(d===void 0&&(d=f),"selectionStart"in c)c.selectionStart=f,c.selectionEnd=Math.min(d,c.value.length);else{var s=c.ownerDocument||document,h=s&&s.defaultView||window;if(h.getSelection){var y=h.getSelection(),x=c.textContent.length,S=Math.min(r.start,x),A=r.end===void 0?S:Math.min(r.end,x);!y.extend&&S>A&&(u=A,A=S,S=u);var p=vs(c,S),m=vs(c,A);if(p&&m&&(y.rangeCount!==1||y.anchorNode!==p.node||y.anchorOffset!==p.offset||y.focusNode!==m.node||y.focusOffset!==m.offset)){var v=s.createRange();v.setStart(p.node,p.offset),y.removeAllRanges(),S>A?(y.addRange(v),y.extend(m.node,m.offset)):(v.setEnd(m.node,m.offset),y.addRange(v))}}}}for(s=[],y=c;y=y.parentNode;)y.nodeType===1&&s.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<s.length;c++){var b=s[c];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Zu=!!lf,nf=lf=null}finally{Z=a,k.p=n,w.T=l}}e.current=t,be=2}}function _0(){if(be===2){be=0;var e=zl,t=Wn,l=(t.flags&8772)!==0;if(t.subtreeFlags&8772||l){l=w.T,w.T=null;var n=k.p;k.p=2;var a=Z;Z|=4;try{i0(e,t.alternate,t)}finally{Z=a,k.p=n,w.T=l}}be=3}}function O0(){if(be===4||be===3){be=0,Py();var e=zl,t=Wn,l=Wt,n=g0;t.subtreeFlags&10256||t.flags&10256?be=5:(be=0,Wn=zl=null,j0(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Nl=null),Of(l),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(hi,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=w.T,a=k.p,k.p=2,w.T=null;try{for(var i=e.onRecoverableError,u=0;u<n.length;u++){var c=n[u];i(c.value,{componentStack:c.stack})}}finally{w.T=t,k.p=a}}Wt&3&&yc(),Ht(e),a=e.pendingLanes,l&261930&&a&42?e===Pr?Za++:(Za=0,Pr=e):Za=0,Si(0)}}function j0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gi(t)))}function yc(){return z0(),_0(),O0(),M0()}function M0(){if(be!==5)return!1;var e=zl,t=Wr;Wr=0;var l=Of(Wt),n=w.T,a=k.p;try{k.p=32>l?32:l,w.T=null,l=Ir,Ir=null;var i=zl,u=Wt;if(be=0,Wn=zl=null,Wt=0,Z&6)throw Error(E(331));var c=Z;if(Z|=4,p0(i.current),d0(i,i.current,u,l),Z=c,Si(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(hi,i)}catch{}return!0}finally{k.p=a,w.T=n,j0(e,t)}}function $s(e,t,l){t=mt(l,t),t=kr(e.stateNode,t,2),e=Tl(e,t,2),e!==null&&(pi(e,2),Ht(e))}function J(e,t,l){if(e.tag===3)$s(e,e,l);else for(;t!==null;){if(t.tag===3){$s(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Nl===null||!Nl.has(n))){e=mt(l,e),l=km(2),n=Tl(t,l,2),n!==null&&(Km(l,n,t,e),pi(n,2),Ht(n));break}}t=t.return}}function tr(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Tg;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(oo=!0,a.add(l),e=jg.bind(null,e,t,l),t.then(e,e))}function jg(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,I===e&&(Q&l)===l&&(oe===4||oe===3&&(Q&62914560)===Q&&300>tt()-hc?!(Z&2)&&In(e,0):so|=l,$n===Q&&($n=0)),Ht(e)}function R0(e,t){t===0&&(t=Ah()),e=cn(e,t),e!==null&&(pi(e,t),Ht(e))}function Mg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),R0(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(E(314))}n!==null&&n.delete(t),R0(e,l)}function Dg(e,t){return zf(e,t)}var Bu=null,Sn=null,ef=!1,Yu=!1,lr=!1,Sl=0;function Ht(e){e!==Sn&&e.next===null&&(Sn===null?Bu=Sn=e:Sn=Sn.next=e),Yu=!0,ef||(ef=!0,Ug())}function Si(e,t){if(!lr&&Yu){lr=!0;do for(var l=!1,n=Bu;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var u=n.suspendedLanes,c=n.pingedLanes;i=(1<<31-nt(42|e)+1)-1,i&=a&~(u&~c),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Ws(n,i))}else i=Q,i=lc(n,n===I?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(i&3)||mi(n,i)||(l=!0,Ws(n,i));n=n.next}while(l);lr=!1}}function wg(){D0()}function D0(){Yu=ef=!1;var e=0;Sl!==0&&Zg()&&(e=Sl);for(var t=tt(),l=null,n=Bu;n!==null;){var a=n.next,i=w0(n,t);i===0?(n.next=null,l===null?Bu=a:l.next=a,a===null&&(Sn=l)):(l=n,(e!==0||i&3)&&(Yu=!0)),n=a}be!==0&&be!==5||Si(e),Sl!==0&&(Sl=0)}function w0(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-nt(i),c=1<<u,r=a[u];r===-1?(!(c&l)||c&n)&&(a[u]=cv(c,t)):r<=t&&(e.expiredLanes|=c),i&=~c}if(t=I,l=Q,l=lc(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(K===2||K===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&jc(n),e.callbackNode=null,e.callbackPriority=0;if(!(l&3)||mi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&jc(n),Of(l)){case 2:case 8:l=Sh;break;case 32:l=Su;break;case 268435456:l=Eh;break;default:l=Su}return n=U0.bind(null,e),l=zf(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&jc(n),e.callbackPriority=2,e.callbackNode=null,2}function U0(e,t){if(be!==0&&be!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(yc()&&e.callbackNode!==l)return null;var n=Q;return n=lc(e,e===I?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(b0(e,n,t),w0(e,tt()),e.callbackNode!=null&&e.callbackNode===l?U0.bind(null,e):null)}function Ws(e,t){if(yc())return null;b0(e,t,!0)}function Ug(){Kg(function(){Z&6?zf(bh,wg):D0()})}function mo(){if(Sl===0){var e=Kn;e===0&&(e=Yi,Yi<<=1,!(Yi&261888)&&(Yi=256)),Sl=e}return Sl}function Is(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(""+e)}function Ps(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 Hg(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=Is((a[Je]||null).action),u=n.submitter;u&&(t=(t=u[Je]||null)?Is(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var c=new nc("action","action",null,n,a);e.push({event:c,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Sl!==0){var r=u?Ps(a,u):new FormData(a);Xr(l,{pending:!0,data:r,method:a.method,action:i},null,r)}}else typeof i=="function"&&(c.preventDefault(),r=u?Ps(a,u):new FormData(a),Xr(l,{pending:!0,data:r,method:a.method,action:i},i,r))},currentTarget:a}]})}}for(var nr=0;nr<Rr.length;nr++){var ar=Rr[nr],Lg=ar.toLowerCase(),Bg=ar[0].toUpperCase()+ar.slice(1);Nt(Lg,"on"+Bg)}Nt(Kh,"onAnimationEnd");Nt(Jh,"onAnimationIteration");Nt(Fh,"onAnimationStart");Nt("dblclick","onDoubleClick");Nt("focusin","onFocus");Nt("focusout","onBlur");Nt(eg,"onTransitionRun");Nt(tg,"onTransitionStart");Nt(lg,"onTransitionCancel");Nt($h,"onTransitionEnd");Zn("onMouseEnter",["mouseout","mouseover"]);Zn("onMouseLeave",["mouseout","mouseover"]);Zn("onPointerEnter",["pointerout","pointerover"]);Zn("onPointerLeave",["pointerout","pointerover"]);nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));nn("onBeforeInput",["compositionend","keypress","textInput","paste"]);nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(li));function H0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var u=n.length-1;0<=u;u--){var c=n[u],r=c.instance,f=c.currentTarget;if(c=c.listener,r!==i&&a.isPropagationStopped())break e;i=c,a.currentTarget=f;try{i(a)}catch(d){Au(d)}a.currentTarget=null,i=r}else for(u=0;u<n.length;u++){if(c=n[u],r=c.instance,f=c.currentTarget,c=c.listener,r!==i&&a.isPropagationStopped())break e;i=c,a.currentTarget=f;try{i(a)}catch(d){Au(d)}a.currentTarget=null,i=r}}}}function Y(e,t){var l=t[Cr];l===void 0&&(l=t[Cr]=new Set);var n=e+"__bubble";l.has(n)||(L0(t,e,2,!1),l.add(n))}function ir(e,t,l){var n=0;t&&(n|=4),L0(l,e,n,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[Fi]){e[Fi]=!0,_h.forEach(function(l){l!=="selectionchange"&&(Yg.has(l)||ir(l,!1,e),ir(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,ir("selectionchange",!1,t))}}function L0(e,t,l,n){switch($0(t)){case 2:var a=hx;break;case 8:a=mx;break;default:a=xo}l=a.bind(null,t,l,e),a=void 0,!Or||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function ur(e,t,l,n,a){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var u=n.tag;if(u===3||u===4){var c=n.stateNode.containerInfo;if(c===a)break;if(u===4)for(u=n.return;u!==null;){var r=u.tag;if((r===3||r===4)&&u.stateNode.containerInfo===a)return;u=u.return}for(;c!==null;){if(u=Tn(c),u===null)return;if(r=u.tag,r===5||r===6||r===26||r===27){n=i=u;continue e}c=c.parentNode}}n=n.return}Hh(function(){var f=i,d=Rf(l),s=[];e:{var h=Wh.get(e);if(h!==void 0){var y=nc,x=e;switch(e){case"keypress":if(au(l)===0)break e;case"keydown":case"keyup":y=Rv;break;case"focusin":x="focus",y=Uc;break;case"focusout":x="blur",y=Uc;break;case"beforeblur":case"afterblur":y=Uc;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":y=cs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=bv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Uv;break;case Kh:case Jh:case Fh:y=Av;break;case $h:y=Lv;break;case"scroll":case"scrollend":y=gv;break;case"wheel":y=Yv;break;case"copy":case"cut":case"paste":y=Tv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=fs;break;case"toggle":case"beforetoggle":y=Gv}var S=(t&4)!==0,A=!S&&(e==="scroll"||e==="scrollend"),p=S?h!==null?h+"Capture":null:h;S=[];for(var m=f,v;m!==null;){var b=m;if(v=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||v===null||p===null||(b=Ja(m,p),b!=null&&S.push(ni(m,b,v))),A)break;m=m.return}0<S.length&&(h=new y(h,x,null,l,d),s.push({event:h,listeners:S}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&l!==_r&&(x=l.relatedTarget||l.fromElement)&&(Tn(x)||x[na]))break e;if((y||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,y?(x=l.relatedTarget||l.toElement,y=f,x=x?Tn(x):null,x!==null&&(A=di(x),S=x.tag,x!==A||S!==5&&S!==27&&S!==6)&&(x=null)):(y=null,x=f),y!==x)){if(S=cs,b="onMouseLeave",p="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(S=fs,b="onPointerLeave",p="onPointerEnter",m="pointer"),A=y==null?h:Oa(y),v=x==null?h:Oa(x),h=new S(b,m+"leave",y,l,d),h.target=A,h.relatedTarget=v,b=null,Tn(d)===f&&(S=new S(p,m+"enter",x,l,d),S.target=v,S.relatedTarget=A,b=S),A=b,y&&x)t:{for(S=qg,p=y,m=x,v=0,b=p;b;b=S(b))v++;b=0;for(var C=m;C;C=S(C))b++;for(;0<v-b;)p=S(p),v--;for(;0<b-v;)m=S(m),b--;for(;v--;){if(p===m||m!==null&&p===m.alternate){S=p;break t}p=S(p),m=S(m)}S=null}else S=null;y!==null&&ed(s,h,y,S,!1),x!==null&&A!==null&&ed(s,A,x,S,!0)}}e:{if(h=f?Oa(f):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var R=hs;else if(ds(h))if(Qh)R=Wv;else{R=Fv;var T=Jv}else y=h.nodeName,!y||y.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?f&&Mf(f.elementType)&&(R=hs):R=$v;if(R&&(R=R(e,f))){Gh(s,R,l,d);break e}T&&T(e,h,f),e==="focusout"&&f&&h.type==="number"&&f.memoizedProps.value!=null&&zr(h,"number",h.value)}switch(T=f?Oa(f):window,e){case"focusin":(ds(T)||T.contentEditable==="true")&&(_n=T,jr=f,Ha=null);break;case"focusout":Ha=jr=_n=null;break;case"mousedown":Mr=!0;break;case"contextmenu":case"mouseup":case"dragend":Mr=!1,gs(s,l,d);break;case"selectionchange":if(Pv)break;case"keydown":case"keyup":gs(s,l,d)}var O;if(Uf)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else zn?Yh(e,l)&&(_="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(_="onCompositionStart");_&&(Bh&&l.locale!=="ko"&&(zn||_!=="onCompositionStart"?_==="onCompositionEnd"&&zn&&(O=Lh()):(gl=d,Df="value"in gl?gl.value:gl.textContent,zn=!0)),T=qu(f,_),0<T.length&&(_=new rs(_,e,null,l,d),s.push({event:_,listeners:T}),O?_.data=O:(O=qh(l),O!==null&&(_.data=O)))),(O=Vv?Xv(e,l):Zv(e,l))&&(_=qu(f,"onBeforeInput"),0<_.length&&(T=new rs("onBeforeInput","beforeinput",null,l,d),s.push({event:T,listeners:_}),T.data=O)),Hg(s,e,f,l,d)}H0(s,t)})}function ni(e,t,l){return{instance:e,listener:t,currentTarget:l}}function qu(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Ja(e,l),a!=null&&n.unshift(ni(e,a,i)),a=Ja(e,t),a!=null&&n.push(ni(e,a,i))),e.tag===3)return n;e=e.return}return[]}function qg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ed(e,t,l,n,a){for(var i=t._reactName,u=[];l!==null&&l!==n;){var c=l,r=c.alternate,f=c.stateNode;if(c=c.tag,r!==null&&r===n)break;c!==5&&c!==26&&c!==27||f===null||(r=f,a?(f=Ja(l,i),f!=null&&u.unshift(ni(l,f,r))):a||(f=Ja(l,i),f!=null&&u.push(ni(l,f,r)))),l=l.return}u.length!==0&&e.push({event:t,listeners:u})}var Gg=/\r\n?/g,Qg=/\u0000|\uFFFD/g;function td(e){return(typeof e=="string"?e:""+e).replace(Gg,`
49
+ `).replace(Qg,"")}function B0(e,t){return t=td(t),td(e)===t}function $(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||kn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&kn(e,""+n);break;case"className":Qi(e,"class",n);break;case"tabIndex":Qi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Qi(e,l,n);break;case"style":Uh(e,n,i);break;case"data":if(t!=="object"){Qi(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=lu(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="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"&&$(e,t,"name",a.name,a,null),$(e,t,"formEncType",a.formEncType,a,null),$(e,t,"formMethod",a.formMethod,a,null),$(e,t,"formTarget",a.formTarget,a,null)):($(e,t,"encType",a.encType,a,null),$(e,t,"method",a.method,a,null),$(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=lu(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Kt);break;case"onScroll":n!=null&&Y("scroll",e);break;case"onScrollEnd":n!=null&&Y("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(E(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(E(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=lu(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Y("beforetoggle",e),Y("toggle",e),tu(e,"popover",n);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":tu(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=yv.get(l)||l,tu(e,l,n))}}function tf(e,t,l,n,a,i){switch(l){case"style":Uh(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(E(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(E(60));e.innerHTML=l}}break;case"children":typeof n=="string"?kn(e,n):(typeof n=="number"||typeof n=="bigint")&&kn(e,""+n);break;case"onScroll":n!=null&&Y("scroll",e);break;case"onScrollEnd":n!=null&&Y("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Oh.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),i=e[Je]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):tu(e,l,n)}}}function De(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Y("error",e),Y("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(E(137,t));default:$(e,t,i,u,l,null)}}a&&$(e,t,"srcSet",l.srcSet,l,null),n&&$(e,t,"src",l.src,l,null);return;case"input":Y("invalid",e);var c=i=u=a=null,r=null,f=null;for(n in l)if(l.hasOwnProperty(n)){var d=l[n];if(d!=null)switch(n){case"name":a=d;break;case"type":u=d;break;case"checked":r=d;break;case"defaultChecked":f=d;break;case"value":i=d;break;case"defaultValue":c=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(E(137,t));break;default:$(e,t,n,d,l,null)}}Rh(e,i,c,r,f,u,a,!1);return;case"select":Y("invalid",e),n=u=i=null;for(a in l)if(l.hasOwnProperty(a)&&(c=l[a],c!=null))switch(a){case"value":i=c;break;case"defaultValue":u=c;break;case"multiple":n=c;default:$(e,t,a,c,l,null)}t=i,l=u,e.multiple=!!n,t!=null?Bn(e,!!n,t,!1):l!=null&&Bn(e,!!n,l,!0);return;case"textarea":Y("invalid",e),i=a=n=null;for(u in l)if(l.hasOwnProperty(u)&&(c=l[u],c!=null))switch(u){case"value":n=c;break;case"defaultValue":a=c;break;case"children":i=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(E(91));break;default:$(e,t,u,c,l,null)}wh(e,n,a,i);return;case"option":for(r in l)if(l.hasOwnProperty(r)&&(n=l[r],n!=null))switch(r){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:$(e,t,r,n,l,null)}return;case"dialog":Y("beforetoggle",e),Y("toggle",e),Y("cancel",e),Y("close",e);break;case"iframe":case"object":Y("load",e);break;case"video":case"audio":for(n=0;n<li.length;n++)Y(li[n],e);break;case"image":Y("error",e),Y("load",e);break;case"details":Y("toggle",e);break;case"embed":case"source":case"link":Y("error",e),Y("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(f in l)if(l.hasOwnProperty(f)&&(n=l[f],n!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(E(137,t));default:$(e,t,f,n,l,null)}return;default:if(Mf(t)){for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!==void 0&&tf(e,t,d,n,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(n=l[c],n!=null&&$(e,t,c,n,l,null))}function Vg(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,u=null,c=null,r=null,f=null,d=null;for(y in l){var s=l[y];if(l.hasOwnProperty(y)&&s!=null)switch(y){case"checked":break;case"value":break;case"defaultValue":r=s;default:n.hasOwnProperty(y)||$(e,t,y,null,n,s)}}for(var h in n){var y=n[h];if(s=l[h],n.hasOwnProperty(h)&&(y!=null||s!=null))switch(h){case"type":i=y;break;case"name":a=y;break;case"checked":f=y;break;case"defaultChecked":d=y;break;case"value":u=y;break;case"defaultValue":c=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(E(137,t));break;default:y!==s&&$(e,t,h,y,n,s)}}Nr(e,u,c,r,f,d,i,a);return;case"select":y=u=c=h=null;for(i in l)if(r=l[i],l.hasOwnProperty(i)&&r!=null)switch(i){case"value":break;case"multiple":y=r;default:n.hasOwnProperty(i)||$(e,t,i,null,n,r)}for(a in n)if(i=n[a],r=l[a],n.hasOwnProperty(a)&&(i!=null||r!=null))switch(a){case"value":h=i;break;case"defaultValue":c=i;break;case"multiple":u=i;default:i!==r&&$(e,t,a,i,n,r)}t=c,l=u,n=y,h!=null?Bn(e,!!l,h,!1):!!n!=!!l&&(t!=null?Bn(e,!!l,t,!0):Bn(e,!!l,l?[]:"",!1));return;case"textarea":y=h=null;for(c in l)if(a=l[c],l.hasOwnProperty(c)&&a!=null&&!n.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:$(e,t,c,null,n,a)}for(u in n)if(a=n[u],i=l[u],n.hasOwnProperty(u)&&(a!=null||i!=null))switch(u){case"value":h=a;break;case"defaultValue":y=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(E(91));break;default:a!==i&&$(e,t,u,a,n,i)}Dh(e,h,y);return;case"option":for(var x in l)if(h=l[x],l.hasOwnProperty(x)&&h!=null&&!n.hasOwnProperty(x))switch(x){case"selected":e.selected=!1;break;default:$(e,t,x,null,n,h)}for(r in n)if(h=n[r],y=l[r],n.hasOwnProperty(r)&&h!==y&&(h!=null||y!=null))switch(r){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:$(e,t,r,h,n,y)}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 S in l)h=l[S],l.hasOwnProperty(S)&&h!=null&&!n.hasOwnProperty(S)&&$(e,t,S,null,n,h);for(f in n)if(h=n[f],y=l[f],n.hasOwnProperty(f)&&h!==y&&(h!=null||y!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(E(137,t));break;default:$(e,t,f,h,n,y)}return;default:if(Mf(t)){for(var A in l)h=l[A],l.hasOwnProperty(A)&&h!==void 0&&!n.hasOwnProperty(A)&&tf(e,t,A,void 0,n,h);for(d in n)h=n[d],y=l[d],!n.hasOwnProperty(d)||h===y||h===void 0&&y===void 0||tf(e,t,d,h,n,y);return}}for(var p in l)h=l[p],l.hasOwnProperty(p)&&h!=null&&!n.hasOwnProperty(p)&&$(e,t,p,null,n,h);for(s in n)h=n[s],y=l[s],!n.hasOwnProperty(s)||h===y||h==null&&y==null||$(e,t,s,h,n,y)}function ld(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,u=a.initiatorType,c=a.duration;if(i&&c&&ld(u)){for(u=0,c=a.responseEnd,n+=1;n<l.length;n++){var r=l[n],f=r.startTime;if(f>c)break;var d=r.transferSize,s=r.initiatorType;d&&ld(s)&&(r=r.responseEnd,u+=d*(r<c?1:(c-f)/(r-f)))}if(--n,t+=8*(i+u)/(a.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 lf=null,nf=null;function Gu(e){return e.nodeType===9?e:e.ownerDocument}function nd(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 Y0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function af(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cr=null;function Zg(){var e=window.event;return e&&e.type==="popstate"?e===cr?!1:(cr=e,!0):(cr=null,!1)}var q0=typeof setTimeout=="function"?setTimeout:void 0,kg=typeof clearTimeout=="function"?clearTimeout:void 0,ad=typeof Promise=="function"?Promise:void 0,Kg=typeof queueMicrotask=="function"?queueMicrotask:typeof ad<"u"?function(e){return ad.resolve(null).then(e).catch(Jg)}:q0;function Jg(e){setTimeout(function(){throw e})}function Bl(e){return e==="head"}function id(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),ea(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")ka(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ka(l);for(var i=l.firstChild;i;){var u=i.nextSibling,c=i.nodeName;i[yi]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&ka(e.ownerDocument.body);l=a}while(l);ea(t)}function ud(e,t){var l=e;e=0;do{var n=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||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function uf(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":uf(l),jf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Fg(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[yi])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!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=vt(e.nextSibling),e===null)break}return null}function $g(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 G0(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 cf(e){return e.data==="$?"||e.data==="$~"}function rf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Wg(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}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 ff=null;function cd(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 rd(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 Q0(e,t,l){switch(t=Gu(l),e){case"html":if(e=t.documentElement,!e)throw Error(E(452));return e;case"head":if(e=t.head,!e)throw Error(E(453));return e;case"body":if(e=t.body,!e)throw Error(E(454));return e;default:throw Error(E(451))}}function ka(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jf(e)}var gt=new Map,fd=new Set;function Qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var il=k.d;k.d={f:Ig,r:Pg,D:ex,C:tx,L:lx,m:nx,X:ix,S:ax,M:ux};function Ig(){var e=il.f(),t=mc();return e||t}function Pg(e){var t=aa(e);t!==null&&t.tag===5&&t.type==="form"?Um(t):il.r(e)}var ra=typeof document>"u"?null:document;function V0(e,t,l){var n=ra;if(n&&typeof t=="string"&&t){var a=ht(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),fd.has(a)||(fd.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),De(t,"link",e),ze(t),n.head.appendChild(t)))}}function ex(e){il.D(e),V0("dns-prefetch",e,null)}function tx(e,t){il.C(e,t),V0("preconnect",e,t)}function lx(e,t,l){il.L(e,t,l);var n=ra;if(n&&e&&t){var a='link[rel="preload"][as="'+ht(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+ht(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+ht(l.imageSizes)+'"]')):a+='[href="'+ht(e)+'"]';var i=a;switch(t){case"style":i=Pn(e);break;case"script":i=fa(e)}gt.has(i)||(e=ie({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),gt.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Ei(i))||t==="script"&&n.querySelector(Ai(i))||(t=n.createElement("link"),De(t,"link",e),ze(t),n.head.appendChild(t)))}}function nx(e,t){il.m(e,t);var l=ra;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+ht(n)+'"][href="'+ht(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=fa(e)}if(!gt.has(i)&&(e=ie({rel:"modulepreload",href:e},t),gt.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ai(i)))return}n=l.createElement("link"),De(n,"link",e),ze(n),l.head.appendChild(n)}}}function ax(e,t,l){il.S(e,t,l);var n=ra;if(n&&e){var a=Ln(n).hoistableStyles,i=Pn(e);t=t||"default";var u=a.get(i);if(!u){var c={loading:0,preload:null};if(u=n.querySelector(Ei(i)))c.loading=5;else{e=ie({rel:"stylesheet",href:e,"data-precedence":t},l),(l=gt.get(i))&&yo(e,l);var r=u=n.createElement("link");ze(r),De(r,"link",e),r._p=new Promise(function(f,d){r.onload=f,r.onerror=d}),r.addEventListener("load",function(){c.loading|=1}),r.addEventListener("error",function(){c.loading|=2}),c.loading|=4,du(u,t,n)}u={type:"stylesheet",instance:u,count:1,state:c},a.set(i,u)}}}function ix(e,t){il.X(e,t);var l=ra;if(l&&e){var n=Ln(l).hoistableScripts,a=fa(e),i=n.get(a);i||(i=l.querySelector(Ai(a)),i||(e=ie({src:e,async:!0},t),(t=gt.get(a))&&vo(e,t),i=l.createElement("script"),ze(i),De(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function ux(e,t){il.M(e,t);var l=ra;if(l&&e){var n=Ln(l).hoistableScripts,a=fa(e),i=n.get(a);i||(i=l.querySelector(Ai(a)),i||(e=ie({src:e,async:!0,type:"module"},t),(t=gt.get(a))&&vo(e,t),i=l.createElement("script"),ze(i),De(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function od(e,t,l,n){var a=(a=El.current)?Qu(a):null;if(!a)throw Error(E(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Pn(l.href),l=Ln(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Pn(l.href);var i=Ln(a).hoistableStyles,u=i.get(e);if(u||(a=a.ownerDocument||a,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=a.querySelector(Ei(e)))&&!i._p&&(u.instance=i,u.state.loading=5),gt.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},gt.set(e,l),i||cx(a,e,l,u.state))),t&&n===null)throw Error(E(528,""));return u}if(t&&n!==null)throw Error(E(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=fa(l),l=Ln(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(E(444,e))}}function Pn(e){return'href="'+ht(e)+'"'}function Ei(e){return'link[rel="stylesheet"]['+e+"]"}function X0(e){return ie({},e,{"data-precedence":e.precedence,precedence:null})}function cx(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),De(t,"link",l),ze(t),e.head.appendChild(t))}function fa(e){return'[src="'+ht(e)+'"]'}function Ai(e){return"script[async]"+e}function sd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ht(l.href)+'"]');if(n)return t.instance=n,ze(n),n;var a=ie({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ze(n),De(n,"style",a),du(n,l.precedence,e),t.instance=n;case"stylesheet":a=Pn(l.href);var i=e.querySelector(Ei(a));if(i)return t.state.loading|=4,t.instance=i,ze(i),i;n=X0(l),(a=gt.get(a))&&yo(n,a),i=(e.ownerDocument||e).createElement("link"),ze(i);var u=i;return u._p=new Promise(function(c,r){u.onload=c,u.onerror=r}),De(i,"link",n),t.state.loading|=4,du(i,l.precedence,e),t.instance=i;case"script":return i=fa(l.src),(a=e.querySelector(Ai(i)))?(t.instance=a,ze(a),a):(n=l,(a=gt.get(i))&&(n=ie({},l),vo(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),ze(a),De(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(E(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,du(n,l.precedence,e));return t.instance}function du(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,u=0;u<n.length;u++){var c=n[u];if(c.dataset.precedence===t)i=c;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function yo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hu=null;function dd(e,t,l){if(hu===null){var n=new Map,a=hu=new Map;a.set(l,n)}else a=hu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var i=l[a];if(!(i[yi]||i[je]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var c=n.get(u);c?c.push(i):n.set(u,[i])}}return n}function hd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function rx(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 Z0(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function fx(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var a=Pn(n.href),i=t.querySelector(Ei(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,ze(i);return}i=t.ownerDocument||t,n=X0(n),(a=gt.get(a))&&yo(n,a),i=i.createElement("link"),ze(i);var u=i;u._p=new Promise(function(c,r){u.onload=c,u.onerror=r}),De(i,"link",n),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&!(l.state.loading&3)&&(e.count++,l=Vu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var rr=0;function ox(e,t){return e.stylesheets&&e.count===0&&mu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&mu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&rr===0&&(rr=62500*Xg());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>rr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xu=null;function mu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xu=new Map,t.forEach(sx,e),Xu=null,Vu.call(e))}function sx(e,t){if(!(t.state.loading&4)){var l=Xu.get(e);if(l)var n=l.get(null);else{l=new Map,Xu.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var u=a[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),n=u)}n&&l.set(null,n)}a=t.instance,u=a.getAttribute("data-precedence"),i=l.get(u)||n,i===n&&l.set(null,a),l.set(u,a),this.count++,n=Vu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:kt,Provider:null,Consumer:null,_currentValue:kl,_currentValue2:kl,_threadCount:0};function dx(e,t,l,n,a,i,u,c,r){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=Mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mc(0),this.hiddenUpdates=Mc(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function k0(e,t,l,n,a,i,u,c,r,f,d,s){return e=new dx(e,t,l,u,r,f,d,s,c),t=1,i===!0&&(t|=24),i=Pe(3,null,null,t),e.current=i,i.stateNode=e,t=Qf(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},Zf(i),e}function K0(e){return e?(e=Mn,e):Mn}function J0(e,t,l,n,a,i){a=K0(a),n.context===null?n.context=a:n.pendingContext=a,n=Cl(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=Tl(e,n,t),l!==null&&(Ke(l,e,t),Ba(l,e,t))}function md(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function go(e,t){md(e,t),(e=e.alternate)&&md(e,t)}function F0(e){if(e.tag===13||e.tag===31){var t=cn(e,67108864);t!==null&&Ke(t,e,67108864),go(e,67108864)}}function pd(e){if(e.tag===13||e.tag===31){var t=at();t=_f(t);var l=cn(e,t);l!==null&&Ke(l,e,t),go(e,t)}}var Zu=!0;function hx(e,t,l,n){var a=w.T;w.T=null;var i=k.p;try{k.p=2,xo(e,t,l,n)}finally{k.p=i,w.T=a}}function mx(e,t,l,n){var a=w.T;w.T=null;var i=k.p;try{k.p=8,xo(e,t,l,n)}finally{k.p=i,w.T=a}}function xo(e,t,l,n){if(Zu){var a=of(n);if(a===null)ur(e,t,n,ku,l),yd(e,n);else if(yx(a,e,t,l,n))n.stopPropagation();else if(yd(e,n),t&4&&-1<px.indexOf(e)){for(;a!==null;){var i=aa(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Ql(i.pendingLanes);if(u!==0){var c=i;for(c.pendingLanes|=2,c.entangledLanes|=2;u;){var r=1<<31-nt(u);c.entanglements[1]|=r,u&=~r}Ht(i),!(Z&6)&&(Uu=tt()+500,Si(0))}}break;case 31:case 13:c=cn(i,2),c!==null&&Ke(c,i,2),mc(),go(i,2)}if(i=of(n),i===null&&ur(e,t,n,ku,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else ur(e,t,n,null,l)}}function of(e){return e=Rf(e),bo(e)}var ku=null;function bo(e){if(ku=null,e=Tn(e),e!==null){var t=di(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=ph(t),e!==null)return e;e=null}else if(l===31){if(e=yh(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 ku=e,null}function $0(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(ev()){case bh:return 2;case Sh:return 8;case Su:case tv:return 32;case Eh:return 268435456;default:return 32}default:return 32}}var sf=!1,_l=null,Ol=null,jl=null,ii=new Map,ui=new Map,yl=[],px="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 yd(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ol=null;break;case"mouseover":case"mouseout":jl=null;break;case"pointerover":case"pointerout":ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(t.pointerId)}}function Ta(e,t,l,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=aa(t),t!==null&&F0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function yx(e,t,l,n,a){switch(t){case"focusin":return _l=Ta(_l,e,t,l,n,a),!0;case"dragenter":return Ol=Ta(Ol,e,t,l,n,a),!0;case"mouseover":return jl=Ta(jl,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return ii.set(i,Ta(ii.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,ui.set(i,Ta(ui.get(i)||null,e,t,l,n,a)),!0}return!1}function W0(e){var t=Tn(e.target);if(t!==null){var l=di(t);if(l!==null){if(t=l.tag,t===13){if(t=ph(l),t!==null){e.blockedOn=t,es(e.priority,function(){pd(l)});return}}else if(t===31){if(t=yh(l),t!==null){e.blockedOn=t,es(e.priority,function(){pd(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 pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=of(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);_r=n,l.target.dispatchEvent(n),_r=null}else return t=aa(l),t!==null&&F0(t),e.blockedOn=l,!1;t.shift()}return!0}function vd(e,t,l){pu(e)&&l.delete(t)}function vx(){sf=!1,_l!==null&&pu(_l)&&(_l=null),Ol!==null&&pu(Ol)&&(Ol=null),jl!==null&&pu(jl)&&(jl=null),ii.forEach(vd),ui.forEach(vd)}function $i(e,t){e.blockedOn===t&&(e.blockedOn=null,sf||(sf=!0,Ee.unstable_scheduleCallback(Ee.unstable_NormalPriority,vx)))}var Wi=null;function gd(e){Wi!==e&&(Wi=e,Ee.unstable_scheduleCallback(Ee.unstable_NormalPriority,function(){Wi===e&&(Wi=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(bo(n||l)===null)continue;break}var i=aa(l);i!==null&&(e.splice(t,3),t-=3,Xr(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ea(e){function t(r){return $i(r,e)}_l!==null&&$i(_l,e),Ol!==null&&$i(Ol,e),jl!==null&&$i(jl,e),ii.forEach(t),ui.forEach(t);for(var l=0;l<yl.length;l++){var n=yl[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<yl.length&&(l=yl[0],l.blockedOn===null);)W0(l),l.blockedOn===null&&yl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],u=a[Je]||null;if(typeof i=="function")u||gd(l);else if(u){var c=null;if(i&&i.hasAttribute("formAction")){if(a=i,u=i[Je]||null)c=u.formAction;else if(bo(a)!==null)continue}else c=u.action;typeof c=="function"?l[n+1]=c:(l.splice(n,3),n-=3),gd(l)}}}function I0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return a=u})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!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 n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function So(e){this._internalRoot=e}vc.prototype.render=So.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));var l=t.current,n=at();J0(l,n,e,t,null,null)};vc.prototype.unmount=So.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;J0(e.current,2,null,e,null,null),mc(),t[na]=null}};function vc(e){this._internalRoot=e}vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=zh();e={blockedOn:null,target:e,priority:t};for(var l=0;l<yl.length&&t!==0&&t<yl[l].priority;l++);yl.splice(l,0,e),l===0&&W0(e)}};var xd=hh.version;if(xd!=="19.2.4")throw Error(E(527,xd,"19.2.4"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=Ky(t),e=e!==null?vh(e):null,e=e===null?null:e.stateNode,e};var gx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{hi=Ii.inject(gx),lt=Ii}catch{}}ec.createRoot=function(e,t){if(!mh(e))throw Error(E(299));var l=!1,n="",a=Vm,i=Xm,u=Zm;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=k0(e,1,!1,null,null,l,n,null,a,i,u,I0),e[na]=t.current,po(e),new So(t)};ec.hydrateRoot=function(e,t,l){if(!mh(e))throw Error(E(299));var n=!1,a="",i=Vm,u=Xm,c=Zm,r=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(r=l.formState)),t=k0(e,1,!0,t,l??null,n,a,r,i,u,c,I0),t.context=K0(null),l=t.current,n=at(),n=_f(n),a=Cl(n),a.callback=null,Tl(l,a,n),l=n,t.current.lanes=l,pi(t,l),Ht(t),e[na]=t.current,po(e),new vc(t)};ec.version="19.2.4";function P0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P0)}catch(e){console.error(e)}}P0(),uh.exports=ec;var xx=uh.exports;const bx=xf(xx);/**
50
+ * react-router v7.13.2
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var bd="popstate";function Sd(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Sx(e={}){function t(a,i){let{pathname:u="/",search:c="",hash:r=""}=fn(a.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),df("",{pathname:u,search:c,hash:r},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function l(a,i){let u=a.document.querySelector("base"),c="";if(u&&u.getAttribute("href")){let r=a.location.href,f=r.indexOf("#");c=f===-1?r:r.slice(0,f)}return c+"#"+(typeof i=="string"?i:ci(i))}function n(a,i){Tt(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(i)})`)}return Ax(t,l,n,e)}function ce(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Tt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ex(){return Math.random().toString(36).substring(2,10)}function Ed(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function df(e,t,l=null,n,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?fn(t):t,state:l,key:t&&t.key||n||Ex(),unstable_mask:a}}function ci({pathname:e="/",search:t="",hash:l=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),l&&l!=="#"&&(e+=l.charAt(0)==="#"?l:"#"+l),e}function fn(e){let t={};if(e){let l=e.indexOf("#");l>=0&&(t.hash=e.substring(l),e=e.substring(0,l));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Ax(e,t,l,n={}){let{window:a=document.defaultView,v5Compat:i=!1}=n,u=a.history,c="POP",r=null,f=d();f==null&&(f=0,u.replaceState({...u.state,idx:f},""));function d(){return(u.state||{idx:null}).idx}function s(){c="POP";let A=d(),p=A==null?null:A-f;f=A,r&&r({action:c,location:S.location,delta:p})}function h(A,p){c="PUSH";let m=Sd(A)?A:df(S.location,A,p);l&&l(m,A),f=d()+1;let v=Ed(m,f),b=S.createHref(m.unstable_mask||m);try{u.pushState(v,"",b)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(b)}i&&r&&r({action:c,location:S.location,delta:1})}function y(A,p){c="REPLACE";let m=Sd(A)?A:df(S.location,A,p);l&&l(m,A),f=d();let v=Ed(m,f),b=S.createHref(m.unstable_mask||m);u.replaceState(v,"",b),i&&r&&r({action:c,location:S.location,delta:0})}function x(A){return Cx(A)}let S={get action(){return c},get location(){return e(a,u)},listen(A){if(r)throw new Error("A history only accepts one active listener");return a.addEventListener(bd,s),r=A,()=>{a.removeEventListener(bd,s),r=null}},createHref(A){return t(a,A)},createURL:x,encodeLocation(A){let p=x(A);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:y,go(A){return u.go(A)}};return S}function Cx(e,t=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),ce(l,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:ci(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=l+n),new URL(n,l)}function ep(e,t,l="/"){return Tx(e,t,l,!1)}function Tx(e,t,l,n){let a=typeof t=="string"?fn(t):t,i=nl(a.pathname||"/",l);if(i==null)return null;let u=tp(e);Nx(u);let c=null;for(let r=0;c==null&&r<u.length;++r){let f=Lx(i);c=Ux(u[r],f,n)}return c}function tp(e,t=[],l=[],n="",a=!1){let i=(u,c,r=a,f)=>{let d={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:c,route:u};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&r)return;ce(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let s=Dt([n,d.relativePath]),h=l.concat(d);u.children&&u.children.length>0&&(ce(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),tp(u.children,t,h,s,r)),!(u.path==null&&!u.index)&&t.push({path:s,score:Dx(s,u.index),routesMeta:h})};return e.forEach((u,c)=>{var r;if(u.path===""||!((r=u.path)!=null&&r.includes("?")))i(u,c);else for(let f of lp(u.path))i(u,c,!0,f)}),t}function lp(e){let t=e.split("/");if(t.length===0)return[];let[l,...n]=t,a=l.endsWith("?"),i=l.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let u=lp(n.join("/")),c=[];return c.push(...u.map(r=>r===""?i:[i,r].join("/"))),a&&c.push(...u),c.map(r=>e.startsWith("/")&&r===""?"/":r)}function Nx(e){e.sort((t,l)=>t.score!==l.score?l.score-t.score:wx(t.routesMeta.map(n=>n.childrenIndex),l.routesMeta.map(n=>n.childrenIndex)))}var zx=/^:[\w-]+$/,_x=3,Ox=2,jx=1,Mx=10,Rx=-2,Ad=e=>e==="*";function Dx(e,t){let l=e.split("/"),n=l.length;return l.some(Ad)&&(n+=Rx),t&&(n+=Ox),l.filter(a=>!Ad(a)).reduce((a,i)=>a+(zx.test(i)?_x:i===""?jx:Mx),n)}function wx(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Ux(e,t,l=!1){let{routesMeta:n}=e,a={},i="/",u=[];for(let c=0;c<n.length;++c){let r=n[c],f=c===n.length-1,d=i==="/"?t:t.slice(i.length)||"/",s=Ku({path:r.relativePath,caseSensitive:r.caseSensitive,end:f},d),h=r.route;if(!s&&f&&l&&!n[n.length-1].route.index&&(s=Ku({path:r.relativePath,caseSensitive:r.caseSensitive,end:!1},d)),!s)return null;Object.assign(a,s.params),u.push({params:a,pathname:Dt([i,s.pathname]),pathnameBase:Gx(Dt([i,s.pathnameBase])),route:h}),s.pathnameBase!=="/"&&(i=Dt([i,s.pathnameBase]))}return u}function Ku(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,n]=Hx(e.path,e.caseSensitive,e.end),a=t.match(l);if(!a)return null;let i=a[0],u=i.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:n.reduce((f,{paramName:d,isOptional:s},h)=>{if(d==="*"){let x=c[h]||"";u=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=c[h];return s&&!y?f[d]=void 0:f[d]=(y||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:u,pattern:e}}function Hx(e,t=!1,l=!0){Tt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,c,r,f,d)=>{if(n.push({paramName:c,isOptional:r!=null}),r){let s=d.charAt(f+u.length);return s&&s!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Lx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function nl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let l=t.endsWith("/")?t.length-1:t.length,n=e.charAt(l);return n&&n!=="/"?null:e.slice(l)||"/"}var Bx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Yx(e,t="/"){let{pathname:l,search:n="",hash:a=""}=typeof e=="string"?fn(e):e,i;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?i=Cd(l.substring(1),"/"):i=Cd(l,t)):i=t,{pathname:i,search:Qx(n),hash:Vx(a)}}function Cd(e,t){let l=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?l.length>1&&l.pop():a!=="."&&l.push(a)}),l.length>1?l.join("/"):"/"}function fr(e,t,l,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qx(e){return e.filter((t,l)=>l===0||t.route.path&&t.route.path.length>0)}function np(e){let t=qx(e);return t.map((l,n)=>n===t.length-1?l.pathname:l.pathnameBase)}function Eo(e,t,l,n=!1){let a;typeof e=="string"?a=fn(e):(a={...e},ce(!a.pathname||!a.pathname.includes("?"),fr("?","pathname","search",a)),ce(!a.pathname||!a.pathname.includes("#"),fr("#","pathname","hash",a)),ce(!a.search||!a.search.includes("#"),fr("#","search","hash",a)));let i=e===""||a.pathname==="",u=i?"/":a.pathname,c;if(u==null)c=l;else{let s=t.length-1;if(!n&&u.startsWith("..")){let h=u.split("/");for(;h[0]==="..";)h.shift(),s-=1;a.pathname=h.join("/")}c=s>=0?t[s]:"/"}let r=Yx(a,c),f=u&&u!=="/"&&u.endsWith("/"),d=(i||u===".")&&l.endsWith("/");return!r.pathname.endsWith("/")&&(f||d)&&(r.pathname+="/"),r}var Dt=e=>e.join("/").replace(/\/\/+/g,"/"),Gx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Vx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Xx=class{constructor(e,t,l,n=!1){this.status=e,this.statusText=t||"",this.internal=n,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Zx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function kx(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ap=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ip(e,t){let l=e;if(typeof l!="string"||!Bx.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let n=l,a=!1;if(ap)try{let i=new URL(window.location.href),u=l.startsWith("//")?new URL(i.protocol+l):new URL(l),c=nl(u.pathname,t);u.origin===i.origin&&c!=null?l=c+u.search+u.hash:a=!0}catch{Tt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var up=["POST","PUT","PATCH","DELETE"];new Set(up);var Kx=["GET",...up];new Set(Kx);var oa=g.createContext(null);oa.displayName="DataRouter";var gc=g.createContext(null);gc.displayName="DataRouterState";var Jx=g.createContext(!1),cp=g.createContext({isTransitioning:!1});cp.displayName="ViewTransition";var Fx=g.createContext(new Map);Fx.displayName="Fetchers";var $x=g.createContext(null);$x.displayName="Await";var xt=g.createContext(null);xt.displayName="Navigation";var Ci=g.createContext(null);Ci.displayName="Location";var ul=g.createContext({outlet:null,matches:[],isDataRoute:!1});ul.displayName="Route";var Ao=g.createContext(null);Ao.displayName="RouteError";var rp="REACT_ROUTER_ERROR",Wx="REDIRECT",Ix="ROUTE_ERROR_RESPONSE";function Px(e){if(e.startsWith(`${rp}:${Wx}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function e1(e){if(e.startsWith(`${rp}:${Ix}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Xx(t.status,t.statusText,t.data)}catch{}}function t1(e,{relative:t}={}){ce(Ti(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:n}=g.useContext(xt),{hash:a,pathname:i,search:u}=Ni(e,{relative:t}),c=i;return l!=="/"&&(c=i==="/"?l:Dt([l,i])),n.createHref({pathname:c,search:u,hash:a})}function Ti(){return g.useContext(Ci)!=null}function cl(){return ce(Ti(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Ci).location}var fp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function op(e){g.useContext(xt).static||g.useLayoutEffect(e)}function l1(){let{isDataRoute:e}=g.useContext(ul);return e?p1():n1()}function n1(){ce(Ti(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(oa),{basename:t,navigator:l}=g.useContext(xt),{matches:n}=g.useContext(ul),{pathname:a}=cl(),i=JSON.stringify(np(n)),u=g.useRef(!1);return op(()=>{u.current=!0}),g.useCallback((r,f={})=>{if(Tt(u.current,fp),!u.current)return;if(typeof r=="number"){l.go(r);return}let d=Eo(r,JSON.parse(i),a,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Dt([t,d.pathname])),(f.replace?l.replace:l.push)(d,f.state,f)},[t,l,i,a,e])}g.createContext(null);function Ni(e,{relative:t}={}){let{matches:l}=g.useContext(ul),{pathname:n}=cl(),a=JSON.stringify(np(l));return g.useMemo(()=>Eo(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function a1(e,t){return sp(e,t)}function sp(e,t,l){var A;ce(Ti(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=g.useContext(xt),{matches:a}=g.useContext(ul),i=a[a.length-1],u=i?i.params:{},c=i?i.pathname:"/",r=i?i.pathnameBase:"/",f=i&&i.route;{let p=f&&f.path||"";hp(c,!f||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${p}">) 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="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let d=cl(),s;if(t){let p=typeof t=="string"?fn(t):t;ce(r==="/"||((A=p.pathname)==null?void 0:A.startsWith(r)),`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 "${r}" but pathname "${p.pathname}" was given in the \`location\` prop.`),s=p}else s=d;let h=s.pathname||"/",y=h;if(r!=="/"){let p=r.replace(/^\//,"").split("/");y="/"+h.replace(/^\//,"").split("/").slice(p.length).join("/")}let x=ep(e,{pathname:y});Tt(f||x!=null,`No routes matched location "${s.pathname}${s.search}${s.hash}" `),Tt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${s.pathname}${s.search}${s.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 S=f1(x&&x.map(p=>Object.assign({},p,{params:Object.assign({},u,p.params),pathname:Dt([r,n.encodeLocation?n.encodeLocation(p.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?r:Dt([r,n.encodeLocation?n.encodeLocation(p.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),a,l);return t&&S?g.createElement(Ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...s},navigationType:"POP"}},S):S}function i1(){let e=m1(),t=Zx(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),l=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:i},"ErrorBoundary")," or"," ",g.createElement("code",{style:i},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),l?g.createElement("pre",{style:a},l):null,u)}var u1=g.createElement(i1,null),dp=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const l=e1(e.digest);l&&(e=l)}let t=e!==void 0?g.createElement(ul.Provider,{value:this.props.routeContext},g.createElement(Ao.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(c1,{error:e},t):t}};dp.contextType=Jx;var or=new WeakMap;function c1({children:e,error:t}){let{basename:l}=g.useContext(xt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=Px(t.digest);if(n){let a=or.get(t);if(a)throw a;let i=ip(n.location,l);if(ap&&!or.get(t))if(i.isExternal||n.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:n.replace}));throw or.set(t,u),u}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function r1({routeContext:e,match:t,children:l}){let n=g.useContext(oa);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(ul.Provider,{value:e},l)}function f1(e,t=[],l){let n=l==null?void 0:l.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,i=n==null?void 0:n.errors;if(i!=null){let d=a.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id])!==void 0);ce(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(l&&n){u=n.renderFallback;for(let d=0;d<a.length;d++){let s=a[d];if((s.route.HydrateFallback||s.route.hydrateFallbackElement)&&(c=d),s.route.id){let{loaderData:h,errors:y}=n,x=s.route.loader&&!h.hasOwnProperty(s.route.id)&&(!y||y[s.route.id]===void 0);if(s.route.lazy||x){l.isStatic&&(u=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let r=l==null?void 0:l.onError,f=n&&r?(d,s)=>{var h,y;r(d,{location:n.location,params:((y=(h=n.matches)==null?void 0:h[0])==null?void 0:y.params)??{},unstable_pattern:kx(n.matches),errorInfo:s})}:void 0;return a.reduceRight((d,s,h)=>{let y,x=!1,S=null,A=null;n&&(y=i&&s.route.id?i[s.route.id]:void 0,S=s.route.errorElement||u1,u&&(c<0&&h===0?(hp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,A=null):c===h&&(x=!0,A=s.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,h+1)),m=()=>{let v;return y?v=S:x?v=A:s.route.Component?v=g.createElement(s.route.Component,null):s.route.element?v=s.route.element:v=d,g.createElement(r1,{match:s,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:v})};return n&&(s.route.ErrorBoundary||s.route.errorElement||h===0)?g.createElement(dp,{location:n.location,revalidation:n.revalidation,component:S,error:y,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0},onError:f}):m()},null)}function Co(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function o1(e){let t=g.useContext(oa);return ce(t,Co(e)),t}function s1(e){let t=g.useContext(gc);return ce(t,Co(e)),t}function d1(e){let t=g.useContext(ul);return ce(t,Co(e)),t}function To(e){let t=d1(e),l=t.matches[t.matches.length-1];return ce(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function h1(){return To("useRouteId")}function m1(){var n;let e=g.useContext(Ao),t=s1("useRouteError"),l=To("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[l]}function p1(){let{router:e}=o1("useNavigate"),t=To("useNavigate"),l=g.useRef(!1);return op(()=>{l.current=!0}),g.useCallback(async(a,i={})=>{Tt(l.current,fp),l.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var Td={};function hp(e,t,l){!t&&!Td[e]&&(Td[e]=!0,Tt(!1,l))}g.memo(y1);function y1({routes:e,future:t,state:l,isStatic:n,onError:a}){return sp(e,void 0,{state:l,isStatic:n,onError:a})}function Zl(e){ce(!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 v1({basename:e="/",children:t=null,location:l,navigationType:n="POP",navigator:a,static:i=!1,unstable_useTransitions:u}){ce(!Ti(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),r=g.useMemo(()=>({basename:c,navigator:a,static:i,unstable_useTransitions:u,future:{}}),[c,a,i,u]);typeof l=="string"&&(l=fn(l));let{pathname:f="/",search:d="",hash:s="",state:h=null,key:y="default",unstable_mask:x}=l,S=g.useMemo(()=>{let A=nl(f,c);return A==null?null:{location:{pathname:A,search:d,hash:s,state:h,key:y,unstable_mask:x},navigationType:n}},[c,f,d,s,h,y,n,x]);return Tt(S!=null,`<Router basename="${c}"> is not able to match the URL "${f}${d}${s}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:g.createElement(xt.Provider,{value:r},g.createElement(Ci.Provider,{children:t,value:S}))}function g1({children:e,location:t}){return a1(hf(e),t)}function hf(e,t=[]){let l=[];return g.Children.forEach(e,(n,a)=>{if(!g.isValidElement(n))return;let i=[...t,a];if(n.type===g.Fragment){l.push.apply(l,hf(n.props.children,i));return}ce(n.type===Zl,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ce(!n.props.index||!n.props.children,"An index route cannot have child routes.");let u={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(u.children=hf(n.props.children,i)),l.push(u)}),l}var yu="get",vu="application/x-www-form-urlencoded";function xc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function x1(e){return xc(e)&&e.tagName.toLowerCase()==="button"}function b1(e){return xc(e)&&e.tagName.toLowerCase()==="form"}function S1(e){return xc(e)&&e.tagName.toLowerCase()==="input"}function E1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function A1(e,t){return e.button===0&&(!t||t==="_self")&&!E1(e)}var Pi=null;function C1(){if(Pi===null)try{new FormData(document.createElement("form"),0),Pi=!1}catch{Pi=!0}return Pi}var T1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sr(e){return e!=null&&!T1.has(e)?(Tt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vu}"`),null):e}function N1(e,t){let l,n,a,i,u;if(b1(e)){let c=e.getAttribute("action");n=c?nl(c,t):null,l=e.getAttribute("method")||yu,a=sr(e.getAttribute("enctype"))||vu,i=new FormData(e)}else if(x1(e)||S1(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let r=e.getAttribute("formaction")||c.getAttribute("action");if(n=r?nl(r,t):null,l=e.getAttribute("formmethod")||c.getAttribute("method")||yu,a=sr(e.getAttribute("formenctype"))||sr(c.getAttribute("enctype"))||vu,i=new FormData(c,e),!C1()){let{name:f,type:d,value:s}=e;if(d==="image"){let h=f?`${f}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else f&&i.append(f,s)}}else{if(xc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=yu,n=null,a=vu,u=e}return i&&a==="text/plain"&&(u=i,i=void 0),{action:n,method:l.toLowerCase(),encType:a,formData:i,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function No(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function z1(e,t,l,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${n}`:a.pathname=`${a.pathname}.${n}`:a.pathname==="/"?a.pathname=`_root.${n}`:t&&nl(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}async function _1(e,t){if(e.id in t)return t[e.id];try{let l=await import(e.module);return t[e.id]=l,l}catch(l){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function O1(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function j1(e,t,l){let n=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let u=await _1(i,l);return u.links?u.links():[]}return[]}));return w1(n.flat(1).filter(O1).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Nd(e,t,l,n,a,i){let u=(r,f)=>l[f]?r.route.id!==l[f].route.id:!0,c=(r,f)=>{var d;return l[f].pathname!==r.pathname||((d=l[f].route.path)==null?void 0:d.endsWith("*"))&&l[f].params["*"]!==r.params["*"]};return i==="assets"?t.filter((r,f)=>u(r,f)||c(r,f)):i==="data"?t.filter((r,f)=>{var s;let d=n.routes[r.route.id];if(!d||!d.hasLoader)return!1;if(u(r,f)||c(r,f))return!0;if(r.route.shouldRevalidate){let h=r.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((s=l[0])==null?void 0:s.params)||{},nextUrl:new URL(e,window.origin),nextParams:r.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function M1(e,t,{includeHydrateFallback:l}={}){return R1(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),l&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function R1(e){return[...new Set(e)]}function D1(e){let t={},l=Object.keys(e).sort();for(let n of l)t[n]=e[n];return t}function w1(e,t){let l=new Set;return new Set(t),e.reduce((n,a)=>{let i=JSON.stringify(D1(a));return l.has(i)||(l.add(i),n.push({key:i,link:a})),n},[])}function mp(){let e=g.useContext(oa);return No(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function U1(){let e=g.useContext(gc);return No(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var zo=g.createContext(void 0);zo.displayName="FrameworkContext";function pp(){let e=g.useContext(zo);return No(e,"You must render this element inside a <HydratedRouter> element"),e}function H1(e,t){let l=g.useContext(zo),[n,a]=g.useState(!1),[i,u]=g.useState(!1),{onFocus:c,onBlur:r,onMouseEnter:f,onMouseLeave:d,onTouchStart:s}=t,h=g.useRef(null);g.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=p=>{p.forEach(m=>{u(m.isIntersecting)})},A=new IntersectionObserver(S,{threshold:.5});return h.current&&A.observe(h.current),()=>{A.disconnect()}}},[e]),g.useEffect(()=>{if(n){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[n]);let y=()=>{a(!0)},x=()=>{a(!1),u(!1)};return l?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Na(c,y),onBlur:Na(r,x),onMouseEnter:Na(f,y),onMouseLeave:Na(d,x),onTouchStart:Na(s,y)}]:[!1,h,{}]}function Na(e,t){return l=>{e&&e(l),l.defaultPrevented||t(l)}}function L1({page:e,...t}){let{router:l}=mp(),n=g.useMemo(()=>ep(l.routes,e,l.basename),[l.routes,e,l.basename]);return n?g.createElement(Y1,{page:e,matches:n,...t}):null}function B1(e){let{manifest:t,routeModules:l}=pp(),[n,a]=g.useState([]);return g.useEffect(()=>{let i=!1;return j1(e,t,l).then(u=>{i||a(u)}),()=>{i=!0}},[e,t,l]),n}function Y1({page:e,matches:t,...l}){let n=cl(),{future:a,manifest:i,routeModules:u}=pp(),{basename:c}=mp(),{loaderData:r,matches:f}=U1(),d=g.useMemo(()=>Nd(e,t,f,i,n,"data"),[e,t,f,i,n]),s=g.useMemo(()=>Nd(e,t,f,i,n,"assets"),[e,t,f,i,n]),h=g.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let S=new Set,A=!1;if(t.forEach(m=>{var b;let v=i.routes[m.route.id];!v||!v.hasLoader||(!d.some(C=>C.route.id===m.route.id)&&m.route.id in r&&((b=u[m.route.id])!=null&&b.shouldRevalidate)||v.hasClientLoader?A=!0:S.add(m.route.id))}),S.size===0)return[];let p=z1(e,c,a.unstable_trailingSlashAwareDataRequests,"data");return A&&S.size>0&&p.searchParams.set("_routes",t.filter(m=>S.has(m.route.id)).map(m=>m.route.id).join(",")),[p.pathname+p.search]},[c,a.unstable_trailingSlashAwareDataRequests,r,n,i,d,t,e,u]),y=g.useMemo(()=>M1(s,i),[s,i]),x=B1(s);return g.createElement(g.Fragment,null,h.map(S=>g.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...l})),y.map(S=>g.createElement("link",{key:S,rel:"modulepreload",href:S,...l})),x.map(({key:S,link:A})=>g.createElement("link",{key:S,nonce:l.nonce,...A,crossOrigin:A.crossOrigin??l.crossOrigin})))}function q1(...e){return t=>{e.forEach(l=>{typeof l=="function"?l(t):l!=null&&(l.current=t)})}}var G1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{G1&&(window.__reactRouterVersion="7.13.2")}catch{}function Q1({basename:e,children:t,unstable_useTransitions:l,window:n}){let a=g.useRef();a.current==null&&(a.current=Sx({window:n,v5Compat:!0}));let i=a.current,[u,c]=g.useState({action:i.action,location:i.location}),r=g.useCallback(f=>{l===!1?c(f):g.startTransition(()=>c(f))},[l]);return g.useLayoutEffect(()=>i.listen(r),[i,r]),g.createElement(v1,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:i,unstable_useTransitions:l})}var yp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vp=g.forwardRef(function({onClick:t,discover:l="render",prefetch:n="none",relative:a,reloadDocument:i,replace:u,unstable_mask:c,state:r,target:f,to:d,preventScrollReset:s,viewTransition:h,unstable_defaultShouldRevalidate:y,...x},S){let{basename:A,navigator:p,unstable_useTransitions:m}=g.useContext(xt),v=typeof d=="string"&&yp.test(d),b=ip(d,A);d=b.to;let C=t1(d,{relative:a}),R=cl(),T=null;if(c){let He=Eo(c,[],R.unstable_mask?R.unstable_mask.pathname:"/",!0);A!=="/"&&(He.pathname=He.pathname==="/"?A:Dt([A,He.pathname])),T=p.createHref(He)}let[O,_,D]=H1(n,x),F=Z1(d,{replace:u,unstable_mask:c,state:r,target:f,preventScrollReset:s,relative:a,viewTransition:h,unstable_defaultShouldRevalidate:y,unstable_useTransitions:m});function Ue(He){t&&t(He),He.defaultPrevented||F(He)}let zt=!(b.isExternal||i),Lt=g.createElement("a",{...x,...D,href:(zt?T:void 0)||b.absoluteURL||C,onClick:zt?Ue:t,ref:q1(S,_),target:f,"data-discover":!v&&l==="render"?"true":void 0});return O&&!v?g.createElement(g.Fragment,null,Lt,g.createElement(L1,{page:C})):Lt});vp.displayName="Link";var gp=g.forwardRef(function({"aria-current":t="page",caseSensitive:l=!1,className:n="",end:a=!1,style:i,to:u,viewTransition:c,children:r,...f},d){let s=Ni(u,{relative:f.relative}),h=cl(),y=g.useContext(gc),{navigator:x,basename:S}=g.useContext(xt),A=y!=null&&$1(s)&&c===!0,p=x.encodeLocation?x.encodeLocation(s).pathname:s.pathname,m=h.pathname,v=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;l||(m=m.toLowerCase(),v=v?v.toLowerCase():null,p=p.toLowerCase()),v&&S&&(v=nl(v,S)||v);const b=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let C=m===p||!a&&m.startsWith(p)&&m.charAt(b)==="/",R=v!=null&&(v===p||!a&&v.startsWith(p)&&v.charAt(p.length)==="/"),T={isActive:C,isPending:R,isTransitioning:A},O=C?t:void 0,_;typeof n=="function"?_=n(T):_=[n,C?"active":null,R?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let D=typeof i=="function"?i(T):i;return g.createElement(vp,{...f,"aria-current":O,className:_,ref:d,style:D,to:u,viewTransition:c},typeof r=="function"?r(T):r)});gp.displayName="NavLink";var V1=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:l,reloadDocument:n,replace:a,state:i,method:u=yu,action:c,onSubmit:r,relative:f,preventScrollReset:d,viewTransition:s,unstable_defaultShouldRevalidate:h,...y},x)=>{let{unstable_useTransitions:S}=g.useContext(xt),A=J1(),p=F1(c,{relative:f}),m=u.toLowerCase()==="get"?"get":"post",v=typeof c=="string"&&yp.test(c),b=C=>{if(r&&r(C),C.defaultPrevented)return;C.preventDefault();let R=C.nativeEvent.submitter,T=(R==null?void 0:R.getAttribute("formmethod"))||u,O=()=>A(R||C.currentTarget,{fetcherKey:t,method:T,navigate:l,replace:a,state:i,relative:f,preventScrollReset:d,viewTransition:s,unstable_defaultShouldRevalidate:h});S&&l!==!1?g.startTransition(()=>O()):O()};return g.createElement("form",{ref:x,method:m,action:p,onSubmit:n?r:b,...y,"data-discover":!v&&e==="render"?"true":void 0})});V1.displayName="Form";function X1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xp(e){let t=g.useContext(oa);return ce(t,X1(e)),t}function Z1(e,{target:t,replace:l,unstable_mask:n,state:a,preventScrollReset:i,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:r,unstable_useTransitions:f}={}){let d=l1(),s=cl(),h=Ni(e,{relative:u});return g.useCallback(y=>{if(A1(y,t)){y.preventDefault();let x=l!==void 0?l:ci(s)===ci(h),S=()=>d(e,{replace:x,unstable_mask:n,state:a,preventScrollReset:i,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:r});f?g.startTransition(()=>S()):S()}},[s,d,h,l,n,a,t,e,i,u,c,r,f])}var k1=0,K1=()=>`__${String(++k1)}__`;function J1(){let{router:e}=xp("useSubmit"),{basename:t}=g.useContext(xt),l=h1(),n=e.fetch,a=e.navigate;return g.useCallback(async(i,u={})=>{let{action:c,method:r,encType:f,formData:d,body:s}=N1(i,t);if(u.navigate===!1){let h=u.fetcherKey||K1();await n(h,l,u.action||c,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:d,body:s,formMethod:u.method||r,formEncType:u.encType||f,flushSync:u.flushSync})}else await a(u.action||c,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:d,body:s,formMethod:u.method||r,formEncType:u.encType||f,replace:u.replace,state:u.state,fromRouteId:l,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,a,t,l])}function F1(e,{relative:t}={}){let{basename:l}=g.useContext(xt),n=g.useContext(ul);ce(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),i={...Ni(e||".",{relative:t})},u=cl();if(e==null){i.search=u.search;let c=new URLSearchParams(i.search),r=c.getAll("index");if(r.some(d=>d==="")){c.delete("index"),r.filter(s=>s).forEach(s=>c.append("index",s));let d=c.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(i.pathname=i.pathname==="/"?l:Dt([l,i.pathname])),ci(i)}function $1(e,{relative:t}={}){let l=g.useContext(cp);ce(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=xp("useViewTransitionState"),a=Ni(e,{relative:t});if(!l.isTransitioning)return!1;let i=nl(l.currentLocation.pathname,n)||l.currentLocation.pathname,u=nl(l.nextLocation.pathname,n)||l.nextLocation.pathname;return Ku(a.pathname,u)!=null||Ku(a.pathname,i)!=null}/**
61
+ * @license lucide-react v0.577.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 bp=(...e)=>e.filter((t,l,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===l).join(" ").trim();/**
66
+ * @license lucide-react v0.577.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const W1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
71
+ * @license lucide-react v0.577.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 I1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,l,n)=>n?n.toUpperCase():l.toLowerCase());/**
76
+ * @license lucide-react v0.577.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 zd=e=>{const t=I1(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
81
+ * @license lucide-react v0.577.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */var P1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
86
+ * @license lucide-react v0.577.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 eb=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
91
+ * @license lucide-react v0.577.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 tb=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:l=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:u,...c},r)=>g.createElement("svg",{ref:r,...P1,width:t,height:t,stroke:e,strokeWidth:n?Number(l)*24/Number(t):l,className:bp("lucide",a),...!i&&!eb(c)&&{"aria-hidden":"true"},...c},[...u.map(([f,d])=>g.createElement(f,d)),...Array.isArray(i)?i:[i]]));/**
96
+ * @license lucide-react v0.577.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 ct=(e,t)=>{const l=g.forwardRef(({className:n,...a},i)=>g.createElement(tb,{ref:i,iconNode:t,className:bp(`lucide-${W1(zd(e))}`,`lucide-${e}`,n),...a}));return l.displayName=zd(e),l};/**
101
+ * @license lucide-react v0.577.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 lb=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],nb=ct("eye",lb);/**
106
+ * @license lucide-react v0.577.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 ab=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],_d=ct("file-braces",ab);/**
111
+ * @license lucide-react v0.577.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 ib=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],Sp=ct("file-up",ib);/**
116
+ * @license lucide-react v0.577.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 ub=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Od=ct("gauge",ub);/**
121
+ * @license lucide-react v0.577.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 cb=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],jd=ct("list-tree",cb);/**
126
+ * @license lucide-react v0.577.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 rb=[["path",{d:"M3 5h1",key:"1mv5vm"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M3 19h1",key:"w6f3n9"}],["path",{d:"M8 5h1",key:"1nxr5w"}],["path",{d:"M8 12h1",key:"1con00"}],["path",{d:"M8 19h1",key:"k7p10e"}],["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}]],Md=ct("logs",rb);/**
131
+ * @license lucide-react v0.577.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 fb=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ob=ct("menu",fb);/**
136
+ * @license lucide-react v0.577.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 sb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],db=ct("plus",sb);/**
141
+ * @license lucide-react v0.577.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 hb=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],Rd=ct("route",hb);/**
146
+ * @license lucide-react v0.577.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 mb=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Dd=ct("settings",mb);/**
151
+ * @license lucide-react v0.577.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const pb=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],wd=ct("trash-2",pb);/**
156
+ * @license lucide-react v0.577.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const yb=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],vb=ct("upload",yb);/**
161
+ * @license lucide-react v0.577.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const gb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xb=ct("x",gb);function rt({to:e,label:t,icon:l,onClick:n}){return o.jsxs(gp,{to:e,onClick:n,className:({isActive:a})=>`inline-flex items-center gap-2 px-3 py-2 text-sm font-medium transition border-b-2 ${a?"border-brand-400 text-zinc-100":"border-transparent text-zinc-400 hover:text-zinc-200 hover:border-zinc-600"}`,children:[l,o.jsx("span",{children:t})]})}function bb({prompt:e,onClose:t,showToast:l}){return o.jsx("div",{className:"fixed inset-0 z-40 bg-black/60 flex items-center justify-center p-4",children:o.jsxs("div",{className:"w-full max-w-4xl rounded-2xl border border-zinc-700 bg-zinc-900 p-4",children:[o.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[o.jsx("h3",{className:"text-sm font-semibold",children:"Stored AI Prompt"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("button",{onClick:async()=>{var a;const n=e;try{if((a=navigator.clipboard)!=null&&a.writeText){await navigator.clipboard.writeText(n),l("Prompt copied");return}}catch{}try{const i=document.createElement("textarea");i.value=n,i.style.position="fixed",i.style.opacity="0",i.style.pointerEvents="none",document.body.appendChild(i),i.focus(),i.select();const u=document.execCommand("copy");document.body.removeChild(i),l(u?"Prompt copied":"Failed to copy prompt")}catch{l("Failed to copy prompt")}},className:"rounded border border-zinc-700 px-2 py-1 text-xs",children:"Copy"}),o.jsx("button",{onClick:t,className:"rounded border border-zinc-700 px-2 py-1 text-xs",children:"Close"})]})]}),o.jsx("pre",{className:"max-h-[70vh] overflow-auto rounded-xl border border-zinc-800 bg-zinc-950 p-3 text-xs whitespace-pre-wrap",children:e})]})})}function Sb(e){return e.open?o.jsx("div",{className:"fixed inset-0 z-50 bg-black/60 flex items-center justify-center p-4",children:o.jsxs("div",{className:"w-full max-w-md rounded-2xl border border-zinc-700 bg-zinc-900 p-4",children:[o.jsx("h3",{className:"text-sm font-semibold",children:e.title??"Confirm action"}),o.jsx("p",{className:"mt-2 text-sm text-zinc-300 whitespace-pre-wrap",children:e.message}),o.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[o.jsx("button",{onClick:e.onCancel,className:"rounded border border-zinc-700 px-3 py-2 text-xs",children:e.cancelLabel??"Cancel"}),o.jsx("button",{onClick:e.onConfirm,className:"rounded bg-rose-600 px-3 py-2 text-xs text-white",children:e.confirmLabel??"Confirm"})]})]})}):null}function Eb(e){return e.open?o.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",children:o.jsxs("div",{className:"w-full max-w-3xl rounded-2xl border border-zinc-700 bg-zinc-900 p-4",children:[o.jsxs("div",{className:"mb-4 flex items-start justify-between gap-4",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-semibold",children:"Create endpoint / variant"}),o.jsx("p",{className:"mt-1 text-sm text-zinc-400",children:"Create a new endpoint or add a new variant to an existing endpoint."})]}),o.jsx("button",{onClick:e.onClose,className:"rounded border border-zinc-700 px-3 py-2 text-xs",children:"Close"})]}),o.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-4",children:[o.jsxs("label",{className:"flex flex-col gap-1 text-xs text-zinc-400",children:[o.jsx("span",{children:"HTTP method"}),o.jsxs("select",{value:e.createMethod,onChange:t=>e.setCreateMethod(t.target.value),className:"rounded-lg border border-zinc-700 bg-zinc-950 px-3 py-2 text-sm text-zinc-100",children:[o.jsx("option",{children:"GET"}),o.jsx("option",{children:"POST"}),o.jsx("option",{children:"PUT"}),o.jsx("option",{children:"PATCH"}),o.jsx("option",{children:"DELETE"})]})]}),o.jsxs("label",{className:"flex flex-col gap-1 text-xs text-zinc-400 md:col-span-2",children:[o.jsx("span",{children:"Endpoint path"}),o.jsx("input",{value:e.createPath,onChange:t=>e.setCreatePath(t.target.value),placeholder:"/api/new-endpoint",className:"rounded-lg border border-zinc-700 bg-zinc-950 px-3 py-2 text-sm text-zinc-100"})]}),o.jsxs("label",{className:"flex flex-col gap-1 text-xs text-zinc-400",children:[o.jsx("span",{children:"Variant id"}),o.jsx("input",{value:e.createVariantId,onChange:t=>e.setCreateVariantId(t.target.value),placeholder:"variant id",className:"rounded-lg border border-zinc-700 bg-zinc-950 px-3 py-2 text-sm text-zinc-100"})]})]}),o.jsxs("div",{className:"mt-3 grid grid-cols-1 gap-3 md:grid-cols-[12rem_minmax(0,1fr)]",children:[o.jsxs("label",{className:"flex flex-col gap-1 text-xs text-zinc-400",children:[o.jsx("span",{children:"Response status"}),o.jsx("input",{type:"number",value:e.createStatus,onChange:t=>e.setCreateStatus(Number(t.target.value)),className:"rounded-lg border border-zinc-700 bg-zinc-950 px-3 py-2 text-sm text-zinc-100"})]}),o.jsx("div",{className:"rounded-lg border border-zinc-800 bg-zinc-950/60 px-3 py-2 text-xs text-zinc-400",children:"Response bodies are stored as JSON and created with an application/json content type."})]}),o.jsxs("label",{className:"mt-3 flex flex-col gap-1 text-xs text-zinc-400",children:[o.jsx("span",{children:"Response body JSON"}),o.jsx("textarea",{value:e.createBody,onChange:t=>e.setCreateBody(t.target.value),className:"h-64 w-full rounded-xl border border-zinc-700 bg-zinc-950 p-3 font-mono text-xs text-zinc-100"})]}),o.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[o.jsx("button",{onClick:e.onClose,className:"rounded border border-zinc-700 px-3 py-2 text-xs",children:"Cancel"}),o.jsx("button",{onClick:e.onCreate,disabled:e.busy||!e.createPath.trim(),className:"rounded-xl bg-brand-600 px-4 py-2 text-sm font-medium disabled:opacity-50",children:"Create"})]})]})}):null}function Ct(e){const t=e.tone==="highlight"?"border-brand-500/40 bg-gradient-to-b from-zinc-900 to-zinc-950":"border-zinc-800 bg-zinc-900/70";return o.jsxs("section",{className:`rounded-2xl border ${t} shadow-glow p-5`,children:[o.jsxs("div",{className:"mb-4 flex items-start justify-between gap-4",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-lg font-semibold tracking-tight",children:e.title}),e.subtitle?o.jsx("p",{className:"mt-1 text-sm text-zinc-400",children:e.subtitle}):null]}),e.actions]}),e.children]})}function Ab(e){const t=e.filteredEndpoints.filter(l=>e.selectedEndpointKeys[`${l.method} ${l.path}`]).length;return o.jsxs(Ct,{title:"Endpoint Management",subtitle:"Search, review and clear endpoint groups.",actions:o.jsx("div",{className:"flex items-center gap-2",children:o.jsx("button",{onClick:e.clearSelectedEndpoints,disabled:e.busy||t===0,className:"rounded-xl border border-rose-700 text-rose-300 px-3 py-2 text-xs hover:bg-rose-900/30 disabled:opacity-50",children:"Delete"})}),children:[o.jsx("div",{className:"mb-3",children:o.jsx("input",{value:e.endpointSearch,onChange:l=>e.setEndpointSearch(l.target.value),placeholder:"Search endpoints (method or path)…",className:"w-full md:w-96 rounded-lg border border-zinc-700 bg-zinc-950 px-3 py-2 text-xs text-zinc-100 placeholder-zinc-500"})}),o.jsx("div",{className:"overflow-y-auto overflow-x-hidden max-h-[32rem] rounded-xl border border-zinc-800",children:o.jsxs("table",{className:"w-full table-fixed text-sm",children:[o.jsx("thead",{className:"bg-zinc-800/60 text-zinc-300",children:o.jsxs("tr",{children:[o.jsx("th",{className:"w-10 px-3 py-2 text-left",children:o.jsx("input",{type:"checkbox",checked:e.allFilteredSelected,onChange:l=>e.setAllFilteredSelection(l.target.checked)})}),o.jsx("th",{className:"w-24 px-3 py-2 text-left",children:"Method"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Path"}),o.jsx("th",{className:"w-20 px-3 py-2 text-left",children:"Variants"}),o.jsx("th",{className:"w-20 px-3 py-2 text-left",children:"Default"}),o.jsx("th",{className:"w-24 px-3 py-2 text-left"})]})}),o.jsxs("tbody",{children:[e.filteredEndpoints.map((l,n)=>o.jsxs("tr",{className:"border-t border-zinc-800 hover:bg-zinc-800/30",children:[o.jsx("td",{className:"px-3 py-2",children:o.jsx("input",{type:"checkbox",checked:!!e.selectedEndpointKeys[`${l.method} ${l.path}`],onChange:a=>e.toggleEndpointSelection(l.method,l.path,a.target.checked)})}),o.jsx("td",{className:"px-3 py-2 font-mono text-brand-300 whitespace-nowrap",children:l.method}),o.jsx("td",{className:"px-3 py-2 font-mono break-all",children:l.path}),o.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:l.variants}),o.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:l.hasDefault?"Yes":"No"}),o.jsx("td",{className:"px-3 py-2",children:o.jsx("button",{onClick:()=>e.clearEndpoint(l.method,l.path),className:"rounded-lg border border-rose-700 text-rose-300 px-2 py-1 text-xs hover:bg-rose-900/30 whitespace-nowrap",children:"Clear"})})]},l.method+l.path+n)),e.filteredEndpoints.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:6,className:"px-3 py-6 text-sm text-zinc-400",children:"No matching endpoints."})}):null]})]})})]})}function Cb(e){return o.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6",children:[o.jsx(Ct,{title:"Recent Requests",subtitle:"In-memory rolling logs (newest first).",actions:o.jsx("div",{className:"flex gap-2",children:o.jsx("button",{onClick:e.clearLogs,className:"rounded-lg border border-rose-700 text-rose-300 px-3 py-2 text-xs",children:"Clear"})}),children:e.requests.length===0?o.jsx("div",{className:"rounded-xl border border-dashed border-zinc-700 p-6 text-sm text-zinc-400",children:"No requests yet. Hit your endpoints to populate this feed."}):o.jsx("div",{className:"max-h-[34rem] overflow-auto rounded-xl border border-zinc-800",children:o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{className:"sticky top-0 bg-zinc-900 text-zinc-300 border-b border-zinc-800",children:o.jsxs("tr",{children:[o.jsx("th",{className:"px-3 py-2 text-left",children:"Time"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Method"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Path"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Match"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Status"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Prompt"})]})}),o.jsx("tbody",{children:e.requests.map((t,l)=>o.jsxs("tr",{className:"border-b border-zinc-800/70 hover:bg-zinc-800/20",children:[o.jsx("td",{className:"px-3 py-2 whitespace-nowrap text-zinc-400",children:new Date(t.at).toLocaleTimeString()}),o.jsx("td",{className:"px-3 py-2 font-mono text-brand-300",children:t.method}),o.jsx("td",{className:"px-3 py-2 font-mono break-all",children:t.path}),o.jsx("td",{className:"px-3 py-2",children:t.match}),o.jsx("td",{className:"px-3 py-2",children:t.status}),o.jsx("td",{className:"px-3 py-2",children:t.prompt?o.jsxs("button",{onClick:()=>e.setPromptDialog(t.prompt),className:"rounded border border-zinc-700 px-2 py-1 hover:bg-zinc-800 inline-flex items-center gap-1",children:[o.jsx(nb,{className:"h-3.5 w-3.5"}),"View"]}):o.jsx("span",{className:"text-zinc-500",children:"—"})})]},`${t.at}-${l}`))})]})})}),o.jsx(Ct,{title:"Misses",subtitle:"Unmatched requests captured during runtime.",actions:o.jsx("div",{className:"flex gap-2",children:o.jsx("button",{onClick:e.clearMisses,className:"rounded-lg border border-rose-700 text-rose-300 px-3 py-2 text-xs",children:"Clear"})}),children:e.misses.length===0?o.jsx("div",{className:"rounded-xl border border-dashed border-zinc-700 p-6 text-sm text-zinc-400",children:"No misses recorded. Nice coverage so far."}):o.jsx("div",{className:"max-h-[34rem] overflow-auto rounded-xl border border-zinc-800",children:o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{className:"sticky top-0 bg-zinc-900 text-zinc-300 border-b border-zinc-800",children:o.jsxs("tr",{children:[o.jsx("th",{className:"px-3 py-2 text-left",children:"Time"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Method"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Path"}),o.jsx("th",{className:"px-3 py-2 text-left",children:"Resolved By"})]})}),o.jsx("tbody",{children:e.misses.map((t,l)=>o.jsxs("tr",{className:"border-b border-zinc-800/70 hover:bg-zinc-800/20",children:[o.jsx("td",{className:"px-3 py-2 whitespace-nowrap text-zinc-400",children:t.at?new Date(t.at).toLocaleTimeString():"—"}),o.jsx("td",{className:"px-3 py-2 font-mono text-brand-300",children:t.method??"—"}),o.jsx("td",{className:"px-3 py-2 font-mono break-all",children:t.path??"—"}),o.jsx("td",{className:"px-3 py-2",children:t.resolvedBy??"—"})]},`${t.at}-${l}`))})]})})})]})}function eu({label:e,value:t}){return o.jsxs("div",{className:"rounded-xl border border-zinc-800 bg-zinc-900/70 p-4",children:[o.jsx("p",{className:"text-xs uppercase tracking-wide text-zinc-400",children:e}),o.jsx("p",{className:"mt-1 text-2xl font-semibold text-zinc-100",children:t})]})}function Tb(e){return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[o.jsx(eu,{label:"Endpoints",value:e.stats.endpoints}),o.jsx(eu,{label:"Variants",value:e.stats.variants}),o.jsx(eu,{label:"Misses",value:e.stats.misses}),o.jsx(eu,{label:"Recent Req Logs",value:e.stats.requests})]}),o.jsxs("div",{className:"rounded-xl border border-zinc-800 bg-zinc-900/60 p-3 flex flex-wrap gap-2 items-center",children:[o.jsx("span",{className:"text-xs text-zinc-400 mr-2",children:"Quick actions"}),o.jsx("button",{onClick:e.refresh,className:"rounded-lg border border-zinc-700 px-3 py-1.5 text-xs hover:bg-zinc-800",children:"Refresh data"}),o.jsx("button",{onClick:()=>e.setHash("#/endpoints"),className:"rounded-lg border border-zinc-700 px-3 py-1.5 text-xs hover:bg-zinc-800",children:"Manage endpoints"}),o.jsx("button",{onClick:()=>e.setHash("#/variants"),className:"rounded-lg border border-zinc-700 px-3 py-1.5 text-xs hover:bg-zinc-800",children:"Edit variants"}),o.jsx("button",{onClick:()=>e.setHash("#/logs"),className:"rounded-lg border border-zinc-700 px-3 py-1.5 text-xs hover:bg-zinc-800",children:"View logs"})]}),o.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6",children:[o.jsx(Ct,{title:"Import HAR",subtitle:"Upload real traffic captures to generate endpoint variants.",tone:"highlight",actions:o.jsxs("button",{disabled:e.busy||!e.harFile,onClick:()=>e.uploadFile("/-/api/har",e.harFile,"HAR imported"),className:"rounded-xl bg-brand-600 px-4 py-2 text-sm font-medium disabled:opacity-50 inline-flex items-center gap-2",children:[o.jsx(vb,{className:"h-4 w-4"}),"Upload HAR"]}),children:o.jsx("input",{type:"file",accept:".har,.json",onChange:t=>{var l;return e.setHarFile(((l=t.target.files)==null?void 0:l[0])??null)},className:"block w-full text-sm file:mr-4 file:rounded-lg file:border-0 file:bg-brand-600 file:px-4 file:py-2 file:text-white hover:file:bg-brand-500"})}),o.jsx(Ct,{title:"Import OpenAPI",subtitle:"Upload JSON/YAML contract for validation and guidance.",tone:"highlight",actions:o.jsxs("button",{disabled:e.busy||!e.openApiFile,onClick:()=>e.uploadFile("/-/api/openapi",e.openApiFile,"OpenAPI imported"),className:"rounded-xl bg-indigo-600 px-4 py-2 text-sm font-medium disabled:opacity-50 inline-flex items-center gap-2",children:[o.jsx(Sp,{className:"h-4 w-4"}),"Upload OpenAPI"]}),children:o.jsx("input",{type:"file",accept:".json,.yaml,.yml",onChange:t=>{var l;return e.setOpenApiFile(((l=t.target.files)==null?void 0:l[0])??null)},className:"block w-full text-sm file:mr-4 file:rounded-lg file:border-0 file:bg-indigo-600 file:px-4 file:py-2 file:text-white hover:file:bg-indigo-500"})})]})]})}function Nb(e){var t,l,n,a,i,u,c,r,f,d;return o.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6",children:[o.jsxs(Ct,{title:"Runtime Config",subtitle:"Live config editor (AI mode, seeds, redaction, openapi mode).",actions:o.jsx("button",{onClick:e.saveConfig,disabled:e.busy||!!e.configError,className:"rounded-xl bg-brand-600 px-4 py-2 text-sm font-medium disabled:opacity-50",children:"Save config"}),children:[o.jsxs("label",{className:"mb-3 inline-flex items-center gap-2 text-xs text-zinc-300",children:[o.jsx("input",{type:"checkbox",checked:e.getAiStorePrompt(),onChange:s=>e.setAiStorePrompt(s.target.checked)}),"Store AI generation prompt with saved generated variants (off by default)"]}),o.jsxs("div",{className:"mb-3 grid grid-cols-1 md:grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("p",{className:"mb-1 text-xs text-zinc-400",children:"AI Provider"}),o.jsx("select",{value:e.providerName,onChange:s=>e.setProviderName(s.target.value),className:"w-full rounded-xl border border-zinc-700 bg-zinc-950 px-3 py-2 text-xs",children:Object.keys(e.providerInfo.providers??{openai:{},anthropic:{},ollama:{},none:{}}).map(s=>o.jsx("option",{value:s,children:s},s))})]}),o.jsxs("div",{children:[o.jsx("p",{className:"mb-1 text-xs text-zinc-400",children:"Model"}),o.jsx("select",{value:e.providerModel,onChange:s=>e.setProviderModel(s.target.value),className:"w-full rounded-xl border border-zinc-700 bg-zinc-950 px-3 py-2 text-xs",children:(((l=(t=e.providerInfo.providers)==null?void 0:t[e.providerName])==null?void 0:l.models)??[]).map(s=>o.jsx("option",{value:s,children:s},s))})]})]}),o.jsxs("div",{className:"mb-3 grid grid-cols-1 gap-2",children:[o.jsxs("label",{className:"text-xs text-zinc-400",children:["OpenAI Base URL",o.jsx("input",{value:e.openaiBaseUrl,onChange:s=>e.setOpenaiBaseUrl(s.target.value),className:"mt-1 w-full rounded-xl border border-zinc-700 bg-zinc-950 px-3 py-2 text-xs"})]}),o.jsxs("label",{className:"text-xs text-zinc-400",children:["Anthropic Base URL",o.jsx("input",{value:e.anthropicBaseUrl,onChange:s=>e.setAnthropicBaseUrl(s.target.value),className:"mt-1 w-full rounded-xl border border-zinc-700 bg-zinc-950 px-3 py-2 text-xs"})]}),o.jsxs("label",{className:"text-xs text-zinc-400",children:["Ollama Base URL",o.jsx("input",{value:e.ollamaBaseUrl,onChange:s=>e.setOllamaBaseUrl(s.target.value),className:"mt-1 w-full rounded-xl border border-zinc-700 bg-zinc-950 px-3 py-2 text-xs"})]}),o.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-950/60 p-2 text-[11px] text-zinc-400 space-y-1",children:[o.jsxs("div",{children:["OpenAI key: ",o.jsx("span",{className:"text-zinc-200",children:((a=(n=e.providerInfo.providers)==null?void 0:n.openai)==null?void 0:a.apiKeyPreview)??"not set"})]}),o.jsx("div",{children:((u=(i=e.providerInfo.providers)==null?void 0:i.openai)==null?void 0:u.apiKeyHint)??"Set OPENAI_API_KEY in your shell before starting dev."}),o.jsxs("div",{className:"pt-1",children:["Anthropic key: ",o.jsx("span",{className:"text-zinc-200",children:((r=(c=e.providerInfo.providers)==null?void 0:c.anthropic)==null?void 0:r.apiKeyPreview)??"not set"})]}),o.jsx("div",{children:((d=(f=e.providerInfo.providers)==null?void 0:f.anthropic)==null?void 0:d.apiKeyHint)??"Set ANTHROPIC_API_KEY in your shell before starting dev."})]}),o.jsx("div",{children:o.jsx("button",{onClick:e.loadProviders,type:"button",className:"rounded-lg border border-zinc-700 px-3 py-1.5 text-xs",children:"Refresh provider/model list"})})]}),o.jsxs("div",{className:"mb-3",children:[o.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[o.jsx("p",{className:"text-xs text-zinc-400",children:"AI Prompt Template (optional)"}),o.jsx("button",{type:"button",onClick:()=>e.setShowPromptHints(!e.showPromptHints),className:"rounded border border-zinc-700 px-2 py-0.5 text-[11px] text-zinc-300 hover:bg-zinc-800",children:e.showPromptHints?"Hide hints":"Hint"})]}),e.showPromptHints?o.jsxs("div",{className:"mb-2 rounded-lg border border-zinc-800 bg-zinc-950/70 p-2 text-[11px] text-zinc-300 space-y-1",children:[o.jsxs("div",{children:[o.jsx("code",{children:"{{method}}"})," HTTP method (e.g. GET, POST)"]}),o.jsxs("div",{children:[o.jsx("code",{children:"{{path}}"})," Request path"]}),o.jsxs("div",{children:[o.jsx("code",{children:"{{query_json}}"})," Query parameters as JSON"]}),o.jsxs("div",{children:[o.jsx("code",{children:"{{body_json}}"})," Request body as JSON"]}),o.jsxs("div",{children:[o.jsx("code",{children:"{{headers_json}}"})," Request headers as JSON"]}),o.jsxs("div",{children:[o.jsx("code",{children:"{{context}}"})," Current context text (truncated)"]}),o.jsxs("div",{children:[o.jsx("code",{children:"{{similar_examples_json}}"})," Similar endpoint examples as JSON"]}),o.jsxs("div",{children:[o.jsx("code",{children:"{{datetime_iso}}"})," Current ISO datetime"]}),o.jsxs("div",{children:[o.jsx("code",{children:"{{date}}"})," Current date (YYYY-MM-DD)"]})]}):null,o.jsx("textarea",{value:e.promptTemplate,onChange:s=>e.setPromptTemplate(s.target.value),placeholder:"Use placeholders like {{method}}, {{path}}, {{query_json}}, {{body_json}}, {{headers_json}}, {{context}}, {{similar_examples_json}}, {{datetime_iso}}, {{date}}",className:"h-36 w-full rounded-xl border border-zinc-700 bg-zinc-950 p-3 font-mono text-xs"})]}),o.jsx("textarea",{value:e.configText,onChange:s=>e.setConfigText(s.target.value),className:"h-80 w-full rounded-xl border border-zinc-700 bg-zinc-950 p-3 font-mono text-xs"}),e.configError?o.jsx("p",{className:"mt-2 text-xs text-rose-400",children:e.configError}):o.jsx("p",{className:"mt-2 text-xs text-emerald-400",children:"JSON valid"})]}),o.jsx(Ct,{title:"Context",subtitle:"Continuously updated generation context.",actions:o.jsx("button",{onClick:e.saveContext,disabled:e.busy,className:"rounded-xl bg-indigo-600 px-4 py-2 text-sm font-medium disabled:opacity-50",children:"Save context"}),children:o.jsx("textarea",{value:e.context,onChange:s=>e.setContext(s.target.value),className:"h-80 w-full rounded-xl border border-zinc-700 bg-zinc-950 p-3 font-mono text-xs"})})]})}function zb(e){const t=e.filteredEndpoints.filter(l=>e.selectedEndpointKeys[`${l.method} ${l.path}`]).length;return o.jsx(o.Fragment,{children:o.jsxs("div",{className:"space-y-6",children:[o.jsxs(Ct,{title:"Endpoints",subtitle:"Pick an endpoint to load variants or create a new endpoint and variant.",actions:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("button",{onClick:e.openCreateDialog,className:"inline-flex items-center gap-2 rounded-xl bg-brand-600 px-3 py-2 text-xs font-medium text-white",children:[o.jsx(db,{className:"h-4 w-4"}),"Create"]}),o.jsx("button",{onClick:e.clearSelectedEndpoints,disabled:e.busy||t===0,className:"rounded-xl border border-rose-700 px-3 py-2 text-xs text-rose-300 hover:bg-rose-900/30 disabled:opacity-50",children:"Delete"})]}),children:[o.jsxs("div",{className:"mb-3 flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("input",{type:"checkbox",checked:e.allFilteredSelected,onChange:l=>e.setAllFilteredSelection(l.target.checked)}),o.jsx("span",{className:"text-xs text-zinc-400",children:"Select or deselect all shown"})]}),o.jsx("input",{value:e.endpointSearch,onChange:l=>e.setEndpointSearch(l.target.value),placeholder:"Search endpoints...",className:"w-full rounded-lg border border-zinc-700 bg-zinc-950 px-3 py-2 text-xs md:max-w-sm"})]}),o.jsxs("div",{className:"max-h-[24rem] space-y-2 overflow-auto",children:[e.filteredEndpoints.map((l,n)=>o.jsx("div",{className:`w-full rounded-lg border px-3 py-2 ${e.selectedMethod===l.method&&e.selectedPath===l.path?"border-brand-500 bg-brand-500/10":"border-zinc-700 hover:bg-zinc-800"}`,children:o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("input",{type:"checkbox",checked:!!e.selectedEndpointKeys[`${l.method} ${l.path}`],onChange:a=>e.toggleEndpointSelection(l.method,l.path,a.target.checked),className:"shrink-0"}),o.jsxs("button",{onClick:()=>e.loadVariants(l.method,l.path),className:"min-w-0 flex-1 text-left",children:[o.jsx("div",{className:"font-mono text-xs text-brand-300",children:l.method}),o.jsx("div",{className:"mt-1 break-all font-mono text-xs",children:l.path})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[o.jsxs("span",{className:"rounded-full border border-zinc-700 px-2 py-1 text-[11px] text-zinc-400",children:[l.variants," variant",l.variants===1?"":"s"]}),o.jsx("button",{onClick:()=>e.clearEndpoint(l.method,l.path),className:"self-center rounded p-1.5 text-rose-300 hover:bg-rose-900/30","aria-label":"Delete endpoint",children:o.jsx(wd,{className:"h-4 w-4"})})]})]})},l.method+l.path+n)),e.filteredEndpoints.length===0?o.jsx("div",{className:"rounded-lg border border-dashed border-zinc-800 px-3 py-6 text-sm text-zinc-400",children:"No matching endpoints."}):null]})]}),o.jsxs("div",{className:"grid grid-cols-1 gap-6 xl:grid-cols-[minmax(22rem,32rem)_minmax(0,1fr)]",children:[o.jsxs(Ct,{title:"Variants",subtitle:e.selectedMethod&&e.selectedPath?`Endpoint: ${e.selectedMethod} ${e.selectedPath}`:"Select an endpoint from the list above first.",children:[o.jsx("div",{className:"space-y-2 max-h-80 overflow-auto",children:e.variantList.map(l=>o.jsx("div",{className:`w-full rounded-lg border px-3 py-2 transition ${e.selectedVariantId===l.id?"border-brand-500 bg-brand-500/10":"border-zinc-700 hover:bg-zinc-800"}`,children:o.jsxs("div",{className:"flex items-start justify-between gap-2",children:[o.jsxs("button",{onClick:()=>e.selectVariant(l.id),className:"flex-1 text-left",children:[o.jsx("div",{className:"font-mono text-xs",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},title:l.displayLabel||l.id,children:l.displayLabel||l.id}),o.jsxs("div",{className:"text-xs text-zinc-400 mt-1",children:[l.source," · status ",l.status]})]}),o.jsx("button",{onClick:()=>e.deleteVariant(l.id),disabled:e.variantList.length<=1,className:"self-center rounded p-1.5 text-rose-300 hover:bg-rose-900/30 shrink-0 disabled:opacity-40",children:o.jsx(wd,{className:"h-4 w-4"})})]})},l.id))}),e.selectedMethod&&e.selectedPath&&e.variantList.length===0?o.jsx("p",{className:"mt-3 text-xs text-zinc-400",children:"No variants found for the selected endpoint."}):null]}),o.jsxs(Ct,{title:"Variant Editor",subtitle:e.selectedVariantId||"Select a variant to edit",actions:o.jsxs("div",{className:"flex gap-2",children:[o.jsx("button",{onClick:()=>{try{e.setVariantEditor(JSON.stringify(JSON.parse(e.variantEditor),null,2))}catch{}},disabled:!e.selectedVariantId,className:"rounded-xl border border-zinc-700 px-3 py-2 text-xs",children:"Format"}),o.jsx("button",{onClick:e.saveVariant,disabled:e.busy||!e.selectedVariantId||!!e.variantError,className:"rounded-xl bg-brand-600 px-4 py-2 text-sm font-medium disabled:opacity-50",children:"Save variant"})]}),children:[o.jsx("textarea",{value:e.variantEditor,onChange:l=>e.setVariantEditor(l.target.value),className:"h-80 w-full rounded-xl border border-zinc-700 bg-zinc-950 p-3 font-mono text-xs"}),e.variantError?o.jsx("p",{className:"mt-2 text-xs text-rose-400",children:e.variantError}):e.selectedVariantId?o.jsx("p",{className:"mt-2 text-xs text-emerald-400",children:"JSON valid"}):null]})]})]})})}const _b="modulepreload",Ob=function(e){return"/-/admin/"+e},Ud={},jb=function(t,l,n){let a=Promise.resolve();if(l&&l.length>0){document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=Promise.allSettled(l.map(r=>{if(r=Ob(r),r in Ud)return;Ud[r]=!0;const f=r.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${d}`))return;const s=document.createElement("link");if(s.rel=f?"stylesheet":_b,f||(s.as="script"),s.crossOrigin="",s.href=r,c&&s.setAttribute("nonce",c),document.head.appendChild(s),f)return new Promise((h,y)=>{s.addEventListener("load",h),s.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${r}`)))})}))}function i(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return a.then(u=>{for(const c of u||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Ep(e){return typeof e>"u"||e===null}function Mb(e){return typeof e=="object"&&e!==null}function Rb(e){return Array.isArray(e)?e:Ep(e)?[]:[e]}function Db(e,t){var l,n,a,i;if(t)for(i=Object.keys(t),l=0,n=i.length;l<n;l+=1)a=i[l],e[a]=t[a];return e}function wb(e,t){var l="",n;for(n=0;n<t;n+=1)l+=e;return l}function Ub(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Hb=Ep,Lb=Mb,Bb=Rb,Yb=wb,qb=Ub,Gb=Db,Se={isNothing:Hb,isObject:Lb,toArray:Bb,repeat:Yb,isNegativeZero:qb,extend:Gb};function Ap(e,t){var l="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(l+='in "'+e.mark.name+'" '),l+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(l+=`
166
+
167
+ `+e.mark.snippet),n+" "+l):n}function ri(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ap(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ri.prototype=Object.create(Error.prototype);ri.prototype.constructor=ri;ri.prototype.toString=function(t){return this.name+": "+Ap(this,t)};var Ye=ri;function dr(e,t,l,n,a){var i="",u="",c=Math.floor(a/2)-1;return n-t>c&&(i=" ... ",t=n-c+i.length),l-n>c&&(u=" ...",l=n+c-u.length),{str:i+e.slice(t,l).replace(/\t/g,"→")+u,pos:n-t+i.length}}function hr(e,t){return Se.repeat(" ",t-e.length)+e}function Qb(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var l=/\r?\n|\r|\0/g,n=[0],a=[],i,u=-1;i=l.exec(e.buffer);)a.push(i.index),n.push(i.index+i[0].length),e.position<=i.index&&u<0&&(u=n.length-2);u<0&&(u=n.length-1);var c="",r,f,d=Math.min(e.line+t.linesAfter,a.length).toString().length,s=t.maxLength-(t.indent+d+3);for(r=1;r<=t.linesBefore&&!(u-r<0);r++)f=dr(e.buffer,n[u-r],a[u-r],e.position-(n[u]-n[u-r]),s),c=Se.repeat(" ",t.indent)+hr((e.line-r+1).toString(),d)+" | "+f.str+`
168
+ `+c;for(f=dr(e.buffer,n[u],a[u],e.position,s),c+=Se.repeat(" ",t.indent)+hr((e.line+1).toString(),d)+" | "+f.str+`
169
+ `,c+=Se.repeat("-",t.indent+d+3+f.pos)+`^
170
+ `,r=1;r<=t.linesAfter&&!(u+r>=a.length);r++)f=dr(e.buffer,n[u+r],a[u+r],e.position-(n[u]-n[u+r]),s),c+=Se.repeat(" ",t.indent)+hr((e.line+r+1).toString(),d)+" | "+f.str+`
171
+ `;return c.replace(/\n$/,"")}var Vb=Qb,Xb=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Zb=["scalar","sequence","mapping"];function kb(e){var t={};return e!==null&&Object.keys(e).forEach(function(l){e[l].forEach(function(n){t[String(n)]=l})}),t}function Kb(e,t){if(t=t||{},Object.keys(t).forEach(function(l){if(Xb.indexOf(l)===-1)throw new Ye('Unknown option "'+l+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(l){return l},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=kb(t.styleAliases||null),Zb.indexOf(this.kind)===-1)throw new Ye('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var we=Kb;function Hd(e,t){var l=[];return e[t].forEach(function(n){var a=l.length;l.forEach(function(i,u){i.tag===n.tag&&i.kind===n.kind&&i.multi===n.multi&&(a=u)}),l[a]=n}),l}function Jb(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,l;function n(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,l=arguments.length;t<l;t+=1)arguments[t].forEach(n);return e}function mf(e){return this.extend(e)}mf.prototype.extend=function(t){var l=[],n=[];if(t instanceof we)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(l=l.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Ye("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(i){if(!(i instanceof we))throw new Ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Ye("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Ye("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof we))throw new Ye("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(mf.prototype);return a.implicit=(this.implicit||[]).concat(l),a.explicit=(this.explicit||[]).concat(n),a.compiledImplicit=Hd(a,"implicit"),a.compiledExplicit=Hd(a,"explicit"),a.compiledTypeMap=Jb(a.compiledImplicit,a.compiledExplicit),a};var Cp=mf,Tp=new we("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Np=new we("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),zp=new we("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),_p=new Cp({explicit:[Tp,Np,zp]});function Fb(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function $b(){return null}function Wb(e){return e===null}var Op=new we("tag:yaml.org,2002:null",{kind:"scalar",resolve:Fb,construct:$b,predicate:Wb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ib(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Pb(e){return e==="true"||e==="True"||e==="TRUE"}function e2(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var jp=new we("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ib,construct:Pb,predicate:e2,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function t2(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function l2(e){return 48<=e&&e<=55}function n2(e){return 48<=e&&e<=57}function a2(e){if(e===null)return!1;var t=e.length,l=0,n=!1,a;if(!t)return!1;if(a=e[l],(a==="-"||a==="+")&&(a=e[++l]),a==="0"){if(l+1===t)return!0;if(a=e[++l],a==="b"){for(l++;l<t;l++)if(a=e[l],a!=="_"){if(a!=="0"&&a!=="1")return!1;n=!0}return n&&a!=="_"}if(a==="x"){for(l++;l<t;l++)if(a=e[l],a!=="_"){if(!t2(e.charCodeAt(l)))return!1;n=!0}return n&&a!=="_"}if(a==="o"){for(l++;l<t;l++)if(a=e[l],a!=="_"){if(!l2(e.charCodeAt(l)))return!1;n=!0}return n&&a!=="_"}}if(a==="_")return!1;for(;l<t;l++)if(a=e[l],a!=="_"){if(!n2(e.charCodeAt(l)))return!1;n=!0}return!(!n||a==="_")}function i2(e){var t=e,l=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(l=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return l*parseInt(t.slice(2),2);if(t[1]==="x")return l*parseInt(t.slice(2),16);if(t[1]==="o")return l*parseInt(t.slice(2),8)}return l*parseInt(t,10)}function u2(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Se.isNegativeZero(e)}var Mp=new we("tag:yaml.org,2002:int",{kind:"scalar",resolve:a2,construct:i2,predicate:u2,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),c2=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function r2(e){return!(e===null||!c2.test(e)||e[e.length-1]==="_")}function f2(e){var t,l;return t=e.replace(/_/g,"").toLowerCase(),l=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?l===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:l*parseFloat(t,10)}var o2=/^[-+]?[0-9]+e/;function s2(e,t){var l;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Se.isNegativeZero(e))return"-0.0";return l=e.toString(10),o2.test(l)?l.replace("e",".e"):l}function d2(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Se.isNegativeZero(e))}var Rp=new we("tag:yaml.org,2002:float",{kind:"scalar",resolve:r2,construct:f2,predicate:d2,represent:s2,defaultStyle:"lowercase"}),Dp=_p.extend({implicit:[Op,jp,Mp,Rp]}),wp=Dp,Up=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function h2(e){return e===null?!1:Up.exec(e)!==null||Hp.exec(e)!==null}function m2(e){var t,l,n,a,i,u,c,r=0,f=null,d,s,h;if(t=Up.exec(e),t===null&&(t=Hp.exec(e)),t===null)throw new Error("Date resolve error");if(l=+t[1],n=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(l,n,a));if(i=+t[4],u=+t[5],c=+t[6],t[7]){for(r=t[7].slice(0,3);r.length<3;)r+="0";r=+r}return t[9]&&(d=+t[10],s=+(t[11]||0),f=(d*60+s)*6e4,t[9]==="-"&&(f=-f)),h=new Date(Date.UTC(l,n,a,i,u,c,r)),f&&h.setTime(h.getTime()-f),h}function p2(e){return e.toISOString()}var Lp=new we("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:h2,construct:m2,instanceOf:Date,represent:p2});function y2(e){return e==="<<"||e===null}var Bp=new we("tag:yaml.org,2002:merge",{kind:"scalar",resolve:y2}),_o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
172
+ \r`;function v2(e){if(e===null)return!1;var t,l,n=0,a=e.length,i=_o;for(l=0;l<a;l++)if(t=i.indexOf(e.charAt(l)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function g2(e){var t,l,n=e.replace(/[\r\n=]/g,""),a=n.length,i=_o,u=0,c=[];for(t=0;t<a;t++)t%4===0&&t&&(c.push(u>>16&255),c.push(u>>8&255),c.push(u&255)),u=u<<6|i.indexOf(n.charAt(t));return l=a%4*6,l===0?(c.push(u>>16&255),c.push(u>>8&255),c.push(u&255)):l===18?(c.push(u>>10&255),c.push(u>>2&255)):l===12&&c.push(u>>4&255),new Uint8Array(c)}function x2(e){var t="",l=0,n,a,i=e.length,u=_o;for(n=0;n<i;n++)n%3===0&&n&&(t+=u[l>>18&63],t+=u[l>>12&63],t+=u[l>>6&63],t+=u[l&63]),l=(l<<8)+e[n];return a=i%3,a===0?(t+=u[l>>18&63],t+=u[l>>12&63],t+=u[l>>6&63],t+=u[l&63]):a===2?(t+=u[l>>10&63],t+=u[l>>4&63],t+=u[l<<2&63],t+=u[64]):a===1&&(t+=u[l>>2&63],t+=u[l<<4&63],t+=u[64],t+=u[64]),t}function b2(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Yp=new we("tag:yaml.org,2002:binary",{kind:"scalar",resolve:v2,construct:g2,predicate:b2,represent:x2}),S2=Object.prototype.hasOwnProperty,E2=Object.prototype.toString;function A2(e){if(e===null)return!0;var t=[],l,n,a,i,u,c=e;for(l=0,n=c.length;l<n;l+=1){if(a=c[l],u=!1,E2.call(a)!=="[object Object]")return!1;for(i in a)if(S2.call(a,i))if(!u)u=!0;else return!1;if(!u)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function C2(e){return e!==null?e:[]}var qp=new we("tag:yaml.org,2002:omap",{kind:"sequence",resolve:A2,construct:C2}),T2=Object.prototype.toString;function N2(e){if(e===null)return!0;var t,l,n,a,i,u=e;for(i=new Array(u.length),t=0,l=u.length;t<l;t+=1){if(n=u[t],T2.call(n)!=="[object Object]"||(a=Object.keys(n),a.length!==1))return!1;i[t]=[a[0],n[a[0]]]}return!0}function z2(e){if(e===null)return[];var t,l,n,a,i,u=e;for(i=new Array(u.length),t=0,l=u.length;t<l;t+=1)n=u[t],a=Object.keys(n),i[t]=[a[0],n[a[0]]];return i}var Gp=new we("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:N2,construct:z2}),_2=Object.prototype.hasOwnProperty;function O2(e){if(e===null)return!0;var t,l=e;for(t in l)if(_2.call(l,t)&&l[t]!==null)return!1;return!0}function j2(e){return e!==null?e:{}}var Qp=new we("tag:yaml.org,2002:set",{kind:"mapping",resolve:O2,construct:j2}),Oo=wp.extend({implicit:[Lp,Bp],explicit:[Yp,qp,Gp,Qp]}),Hl=Object.prototype.hasOwnProperty,Ju=1,Vp=2,Xp=3,Fu=4,mr=1,M2=2,Ld=3,R2=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D2=/[\x85\u2028\u2029]/,w2=/[,\[\]\{\}]/,Zp=/^(?:!|!!|![a-z\-]+!)$/i,kp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Bd(e){return Object.prototype.toString.call(e)}function wt(e){return e===10||e===13}function Wl(e){return e===9||e===32}function ke(e){return e===9||e===32||e===10||e===13}function Un(e){return e===44||e===91||e===93||e===123||e===125}function U2(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function H2(e){return e===120?2:e===117?4:e===85?8:0}function L2(e){return 48<=e&&e<=57?e-48:-1}function Yd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
173
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function B2(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Kp(e,t,l){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:l}):e[t]=l}var Jp=new Array(256),Fp=new Array(256);for(var gn=0;gn<256;gn++)Jp[gn]=Yd(gn)?1:0,Fp[gn]=Yd(gn);function Y2(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Oo,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $p(e,t){var l={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return l.snippet=Vb(l),new Ye(t,l)}function M(e,t){throw $p(e,t)}function $u(e,t){e.onWarning&&e.onWarning.call(null,$p(e,t))}var qd={YAML:function(t,l,n){var a,i,u;t.version!==null&&M(t,"duplication of %YAML directive"),n.length!==1&&M(t,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),a===null&&M(t,"ill-formed argument of the YAML directive"),i=parseInt(a[1],10),u=parseInt(a[2],10),i!==1&&M(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=u<2,u!==1&&u!==2&&$u(t,"unsupported YAML version of the document")},TAG:function(t,l,n){var a,i;n.length!==2&&M(t,"TAG directive accepts exactly two arguments"),a=n[0],i=n[1],Zp.test(a)||M(t,"ill-formed tag handle (first argument) of the TAG directive"),Hl.call(t.tagMap,a)&&M(t,'there is a previously declared suffix for "'+a+'" tag handle'),kp.test(i)||M(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{M(t,"tag prefix is malformed: "+i)}t.tagMap[a]=i}};function Ml(e,t,l,n){var a,i,u,c;if(t<l){if(c=e.input.slice(t,l),n)for(a=0,i=c.length;a<i;a+=1)u=c.charCodeAt(a),u===9||32<=u&&u<=1114111||M(e,"expected valid JSON character");else R2.test(c)&&M(e,"the stream contains non-printable characters");e.result+=c}}function Gd(e,t,l,n){var a,i,u,c;for(Se.isObject(l)||M(e,"cannot merge mappings; the provided source object is unacceptable"),a=Object.keys(l),u=0,c=a.length;u<c;u+=1)i=a[u],Hl.call(t,i)||(Kp(t,i,l[i]),n[i]=!0)}function Hn(e,t,l,n,a,i,u,c,r){var f,d;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),f=0,d=a.length;f<d;f+=1)Array.isArray(a[f])&&M(e,"nested arrays are not supported inside keys"),typeof a=="object"&&Bd(a[f])==="[object Object]"&&(a[f]="[object Object]");if(typeof a=="object"&&Bd(a)==="[object Object]"&&(a="[object Object]"),a=String(a),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(f=0,d=i.length;f<d;f+=1)Gd(e,t,i[f],l);else Gd(e,t,i,l);else!e.json&&!Hl.call(l,a)&&Hl.call(t,a)&&(e.line=u||e.line,e.lineStart=c||e.lineStart,e.position=r||e.position,M(e,"duplicated mapping key")),Kp(t,a,i),delete l[a];return t}function jo(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):M(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ve(e,t,l){for(var n=0,a=e.input.charCodeAt(e.position);a!==0;){for(;Wl(a);)a===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&a===35)do a=e.input.charCodeAt(++e.position);while(a!==10&&a!==13&&a!==0);if(wt(a))for(jo(e),a=e.input.charCodeAt(e.position),n++,e.lineIndent=0;a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return l!==-1&&n!==0&&e.lineIndent<l&&$u(e,"deficient indentation"),n}function bc(e){var t=e.position,l;return l=e.input.charCodeAt(t),!!((l===45||l===46)&&l===e.input.charCodeAt(t+1)&&l===e.input.charCodeAt(t+2)&&(t+=3,l=e.input.charCodeAt(t),l===0||ke(l)))}function Mo(e,t){t===1?e.result+=" ":t>1&&(e.result+=Se.repeat(`
174
+ `,t-1))}function q2(e,t,l){var n,a,i,u,c,r,f,d,s=e.kind,h=e.result,y;if(y=e.input.charCodeAt(e.position),ke(y)||Un(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96||(y===63||y===45)&&(a=e.input.charCodeAt(e.position+1),ke(a)||l&&Un(a)))return!1;for(e.kind="scalar",e.result="",i=u=e.position,c=!1;y!==0;){if(y===58){if(a=e.input.charCodeAt(e.position+1),ke(a)||l&&Un(a))break}else if(y===35){if(n=e.input.charCodeAt(e.position-1),ke(n))break}else{if(e.position===e.lineStart&&bc(e)||l&&Un(y))break;if(wt(y))if(r=e.line,f=e.lineStart,d=e.lineIndent,ve(e,!1,-1),e.lineIndent>=t){c=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=r,e.lineStart=f,e.lineIndent=d;break}}c&&(Ml(e,i,u,!1),Mo(e,e.line-r),i=u=e.position,c=!1),Wl(y)||(u=e.position+1),y=e.input.charCodeAt(++e.position)}return Ml(e,i,u,!1),e.result?!0:(e.kind=s,e.result=h,!1)}function G2(e,t){var l,n,a;if(l=e.input.charCodeAt(e.position),l!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(l=e.input.charCodeAt(e.position))!==0;)if(l===39)if(Ml(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),l===39)n=e.position,e.position++,a=e.position;else return!0;else wt(l)?(Ml(e,n,a,!0),Mo(e,ve(e,!1,t)),n=a=e.position):e.position===e.lineStart&&bc(e)?M(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);M(e,"unexpected end of the stream within a single quoted scalar")}function Q2(e,t){var l,n,a,i,u,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,l=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ml(e,l,e.position,!0),e.position++,!0;if(c===92){if(Ml(e,l,e.position,!0),c=e.input.charCodeAt(++e.position),wt(c))ve(e,!1,t);else if(c<256&&Jp[c])e.result+=Fp[c],e.position++;else if((u=H2(c))>0){for(a=u,i=0;a>0;a--)c=e.input.charCodeAt(++e.position),(u=U2(c))>=0?i=(i<<4)+u:M(e,"expected hexadecimal character");e.result+=B2(i),e.position++}else M(e,"unknown escape sequence");l=n=e.position}else wt(c)?(Ml(e,l,n,!0),Mo(e,ve(e,!1,t)),l=n=e.position):e.position===e.lineStart&&bc(e)?M(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}M(e,"unexpected end of the stream within a double quoted scalar")}function V2(e,t){var l=!0,n,a,i,u=e.tag,c,r=e.anchor,f,d,s,h,y,x=Object.create(null),S,A,p,m;if(m=e.input.charCodeAt(e.position),m===91)d=93,y=!1,c=[];else if(m===123)d=125,y=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),m=e.input.charCodeAt(++e.position);m!==0;){if(ve(e,!0,t),m=e.input.charCodeAt(e.position),m===d)return e.position++,e.tag=u,e.anchor=r,e.kind=y?"mapping":"sequence",e.result=c,!0;l?m===44&&M(e,"expected the node content, but found ','"):M(e,"missed comma between flow collection entries"),A=S=p=null,s=h=!1,m===63&&(f=e.input.charCodeAt(e.position+1),ke(f)&&(s=h=!0,e.position++,ve(e,!0,t))),n=e.line,a=e.lineStart,i=e.position,ta(e,t,Ju,!1,!0),A=e.tag,S=e.result,ve(e,!0,t),m=e.input.charCodeAt(e.position),(h||e.line===n)&&m===58&&(s=!0,m=e.input.charCodeAt(++e.position),ve(e,!0,t),ta(e,t,Ju,!1,!0),p=e.result),y?Hn(e,c,x,A,S,p,n,a,i):s?c.push(Hn(e,null,x,A,S,p,n,a,i)):c.push(S),ve(e,!0,t),m=e.input.charCodeAt(e.position),m===44?(l=!0,m=e.input.charCodeAt(++e.position)):l=!1}M(e,"unexpected end of the stream within a flow collection")}function X2(e,t){var l,n,a=mr,i=!1,u=!1,c=t,r=0,f=!1,d,s;if(s=e.input.charCodeAt(e.position),s===124)n=!1;else if(s===62)n=!0;else return!1;for(e.kind="scalar",e.result="";s!==0;)if(s=e.input.charCodeAt(++e.position),s===43||s===45)mr===a?a=s===43?Ld:M2:M(e,"repeat of a chomping mode identifier");else if((d=L2(s))>=0)d===0?M(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?M(e,"repeat of an indentation width identifier"):(c=t+d-1,u=!0);else break;if(Wl(s)){do s=e.input.charCodeAt(++e.position);while(Wl(s));if(s===35)do s=e.input.charCodeAt(++e.position);while(!wt(s)&&s!==0)}for(;s!==0;){for(jo(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!u||e.lineIndent<c)&&s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>c&&(c=e.lineIndent),wt(s)){r++;continue}if(e.lineIndent<c){a===Ld?e.result+=Se.repeat(`
175
+ `,i?1+r:r):a===mr&&i&&(e.result+=`
176
+ `);break}for(n?Wl(s)?(f=!0,e.result+=Se.repeat(`
177
+ `,i?1+r:r)):f?(f=!1,e.result+=Se.repeat(`
178
+ `,r+1)):r===0?i&&(e.result+=" "):e.result+=Se.repeat(`
179
+ `,r):e.result+=Se.repeat(`
180
+ `,i?1+r:r),i=!0,u=!0,r=0,l=e.position;!wt(s)&&s!==0;)s=e.input.charCodeAt(++e.position);Ml(e,l,e.position,!1)}return!0}function Qd(e,t){var l,n=e.tag,a=e.anchor,i=[],u,c=!1,r;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),r=e.input.charCodeAt(e.position);r!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,M(e,"tab characters must not be used in indentation")),!(r!==45||(u=e.input.charCodeAt(e.position+1),!ke(u))));){if(c=!0,e.position++,ve(e,!0,-1)&&e.lineIndent<=t){i.push(null),r=e.input.charCodeAt(e.position);continue}if(l=e.line,ta(e,t,Xp,!1,!0),i.push(e.result),ve(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&r!==0)M(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=a,e.kind="sequence",e.result=i,!0):!1}function Z2(e,t,l){var n,a,i,u,c,r,f=e.tag,d=e.anchor,s={},h=Object.create(null),y=null,x=null,S=null,A=!1,p=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),m=e.input.charCodeAt(e.position);m!==0;){if(!A&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,M(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,(m===63||m===58)&&ke(n))m===63?(A&&(Hn(e,s,h,y,x,null,u,c,r),y=x=S=null),p=!0,A=!0,a=!0):A?(A=!1,a=!0):M(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=n;else{if(u=e.line,c=e.lineStart,r=e.position,!ta(e,l,Vp,!1,!0))break;if(e.line===i){for(m=e.input.charCodeAt(e.position);Wl(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),ke(m)||M(e,"a whitespace character is expected after the key-value separator within a block mapping"),A&&(Hn(e,s,h,y,x,null,u,c,r),y=x=S=null),p=!0,A=!1,a=!1,y=e.tag,x=e.result;else if(p)M(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=d,!0}else if(p)M(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=d,!0}if((e.line===i||e.lineIndent>t)&&(A&&(u=e.line,c=e.lineStart,r=e.position),ta(e,t,Fu,!0,a)&&(A?x=e.result:S=e.result),A||(Hn(e,s,h,y,x,S,u,c,r),y=x=S=null),ve(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&m!==0)M(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return A&&Hn(e,s,h,y,x,null,u,c,r),p&&(e.tag=f,e.anchor=d,e.kind="mapping",e.result=s),p}function k2(e){var t,l=!1,n=!1,a,i,u;if(u=e.input.charCodeAt(e.position),u!==33)return!1;if(e.tag!==null&&M(e,"duplication of a tag property"),u=e.input.charCodeAt(++e.position),u===60?(l=!0,u=e.input.charCodeAt(++e.position)):u===33?(n=!0,a="!!",u=e.input.charCodeAt(++e.position)):a="!",t=e.position,l){do u=e.input.charCodeAt(++e.position);while(u!==0&&u!==62);e.position<e.length?(i=e.input.slice(t,e.position),u=e.input.charCodeAt(++e.position)):M(e,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!ke(u);)u===33&&(n?M(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(t-1,e.position+1),Zp.test(a)||M(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),u=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),w2.test(i)&&M(e,"tag suffix cannot contain flow indicator characters")}i&&!kp.test(i)&&M(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch{M(e,"tag name is malformed: "+i)}return l?e.tag=i:Hl.call(e.tagMap,a)?e.tag=e.tagMap[a]+i:a==="!"?e.tag="!"+i:a==="!!"?e.tag="tag:yaml.org,2002:"+i:M(e,'undeclared tag handle "'+a+'"'),!0}function K2(e){var t,l;if(l=e.input.charCodeAt(e.position),l!==38)return!1;for(e.anchor!==null&&M(e,"duplication of an anchor property"),l=e.input.charCodeAt(++e.position),t=e.position;l!==0&&!ke(l)&&!Un(l);)l=e.input.charCodeAt(++e.position);return e.position===t&&M(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function J2(e){var t,l,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ke(n)&&!Un(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&M(e,"name of an alias node must contain at least one character"),l=e.input.slice(t,e.position),Hl.call(e.anchorMap,l)||M(e,'unidentified alias "'+l+'"'),e.result=e.anchorMap[l],ve(e,!0,-1),!0}function ta(e,t,l,n,a){var i,u,c,r=1,f=!1,d=!1,s,h,y,x,S,A;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=u=c=Fu===l||Xp===l,n&&ve(e,!0,-1)&&(f=!0,e.lineIndent>t?r=1:e.lineIndent===t?r=0:e.lineIndent<t&&(r=-1)),r===1)for(;k2(e)||K2(e);)ve(e,!0,-1)?(f=!0,c=i,e.lineIndent>t?r=1:e.lineIndent===t?r=0:e.lineIndent<t&&(r=-1)):c=!1;if(c&&(c=f||a),(r===1||Fu===l)&&(Ju===l||Vp===l?S=t:S=t+1,A=e.position-e.lineStart,r===1?c&&(Qd(e,A)||Z2(e,A,S))||V2(e,S)?d=!0:(u&&X2(e,S)||G2(e,S)||Q2(e,S)?d=!0:J2(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&M(e,"alias node should not have any properties")):q2(e,S,Ju===l)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):r===0&&(d=c&&Qd(e,A))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&M(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,h=e.implicitTypes.length;s<h;s+=1)if(x=e.implicitTypes[s],x.resolve(e.result)){e.result=x.construct(e.result),e.tag=x.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Hl.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,y=e.typeMap.multi[e.kind||"fallback"],s=0,h=y.length;s<h;s+=1)if(e.tag.slice(0,y[s].tag.length)===y[s].tag){x=y[s];break}x||M(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&M(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):M(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function F2(e){var t=e.position,l,n,a,i=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(ve(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(i=!0,u=e.input.charCodeAt(++e.position),l=e.position;u!==0&&!ke(u);)u=e.input.charCodeAt(++e.position);for(n=e.input.slice(l,e.position),a=[],n.length<1&&M(e,"directive name must not be less than one character in length");u!==0;){for(;Wl(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!wt(u));break}if(wt(u))break;for(l=e.position;u!==0&&!ke(u);)u=e.input.charCodeAt(++e.position);a.push(e.input.slice(l,e.position))}u!==0&&jo(e),Hl.call(qd,n)?qd[n](e,n,a):$u(e,'unknown document directive "'+n+'"')}if(ve(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ve(e,!0,-1)):i&&M(e,"directives end mark is expected"),ta(e,e.lineIndent-1,Fu,!1,!0),ve(e,!0,-1),e.checkLineBreaks&&D2.test(e.input.slice(t,e.position))&&$u(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&bc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ve(e,!0,-1));return}if(e.position<e.length-1)M(e,"end of the stream or a document separator is expected");else return}function Wp(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
181
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var l=new Y2(e,t),n=e.indexOf("\0");for(n!==-1&&(l.position=n,M(l,"null byte is not allowed in input")),l.input+="\0";l.input.charCodeAt(l.position)===32;)l.lineIndent+=1,l.position+=1;for(;l.position<l.length-1;)F2(l);return l.documents}function $2(e,t,l){t!==null&&typeof t=="object"&&typeof l>"u"&&(l=t,t=null);var n=Wp(e,l);if(typeof t!="function")return n;for(var a=0,i=n.length;a<i;a+=1)t(n[a])}function W2(e,t){var l=Wp(e,t);if(l.length!==0){if(l.length===1)return l[0];throw new Ye("expected a single document in the stream, but found more")}}var I2=$2,P2=W2,Ip={loadAll:I2,load:P2},Pp=Object.prototype.toString,ey=Object.prototype.hasOwnProperty,Ro=65279,eS=9,fi=10,tS=13,lS=32,nS=33,aS=34,pf=35,iS=37,uS=38,cS=39,rS=42,ty=44,fS=45,Wu=58,oS=61,sS=62,dS=63,hS=64,ly=91,ny=93,mS=96,ay=123,pS=124,iy=125,Le={};Le[0]="\\0";Le[7]="\\a";Le[8]="\\b";Le[9]="\\t";Le[10]="\\n";Le[11]="\\v";Le[12]="\\f";Le[13]="\\r";Le[27]="\\e";Le[34]='\\"';Le[92]="\\\\";Le[133]="\\N";Le[160]="\\_";Le[8232]="\\L";Le[8233]="\\P";var yS=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],vS=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function gS(e,t){var l,n,a,i,u,c,r;if(t===null)return{};for(l={},n=Object.keys(t),a=0,i=n.length;a<i;a+=1)u=n[a],c=String(t[u]),u.slice(0,2)==="!!"&&(u="tag:yaml.org,2002:"+u.slice(2)),r=e.compiledTypeMap.fallback[u],r&&ey.call(r.styleAliases,c)&&(c=r.styleAliases[c]),l[u]=c;return l}function xS(e){var t,l,n;if(t=e.toString(16).toUpperCase(),e<=255)l="x",n=2;else if(e<=65535)l="u",n=4;else if(e<=4294967295)l="U",n=8;else throw new Ye("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+l+Se.repeat("0",n-t.length)+t}var bS=1,oi=2;function SS(e){this.schema=e.schema||Oo,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Se.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gS(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?oi:bS,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Vd(e,t){for(var l=Se.repeat(" ",t),n=0,a=-1,i="",u,c=e.length;n<c;)a=e.indexOf(`
182
+ `,n),a===-1?(u=e.slice(n),n=c):(u=e.slice(n,a+1),n=a+1),u.length&&u!==`
183
+ `&&(i+=l),i+=u;return i}function yf(e,t){return`
184
+ `+Se.repeat(" ",e.indent*t)}function ES(e,t){var l,n,a;for(l=0,n=e.implicitTypes.length;l<n;l+=1)if(a=e.implicitTypes[l],a.resolve(t))return!0;return!1}function Iu(e){return e===lS||e===eS}function si(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ro||65536<=e&&e<=1114111}function Xd(e){return si(e)&&e!==Ro&&e!==tS&&e!==fi}function Zd(e,t,l){var n=Xd(e),a=n&&!Iu(e);return(l?n:n&&e!==ty&&e!==ly&&e!==ny&&e!==ay&&e!==iy)&&e!==pf&&!(t===Wu&&!a)||Xd(t)&&!Iu(t)&&e===pf||t===Wu&&a}function AS(e){return si(e)&&e!==Ro&&!Iu(e)&&e!==fS&&e!==dS&&e!==Wu&&e!==ty&&e!==ly&&e!==ny&&e!==ay&&e!==iy&&e!==pf&&e!==uS&&e!==rS&&e!==nS&&e!==pS&&e!==oS&&e!==sS&&e!==cS&&e!==aS&&e!==iS&&e!==hS&&e!==mS}function CS(e){return!Iu(e)&&e!==Wu}function Ra(e,t){var l=e.charCodeAt(t),n;return l>=55296&&l<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(l-55296)*1024+n-56320+65536:l}function uy(e){var t=/^\n* /;return t.test(e)}var cy=1,vf=2,ry=3,fy=4,En=5;function TS(e,t,l,n,a,i,u,c){var r,f=0,d=null,s=!1,h=!1,y=n!==-1,x=-1,S=AS(Ra(e,0))&&CS(Ra(e,e.length-1));if(t||u)for(r=0;r<e.length;f>=65536?r+=2:r++){if(f=Ra(e,r),!si(f))return En;S=S&&Zd(f,d,c),d=f}else{for(r=0;r<e.length;f>=65536?r+=2:r++){if(f=Ra(e,r),f===fi)s=!0,y&&(h=h||r-x-1>n&&e[x+1]!==" ",x=r);else if(!si(f))return En;S=S&&Zd(f,d,c),d=f}h=h||y&&r-x-1>n&&e[x+1]!==" "}return!s&&!h?S&&!u&&!a(e)?cy:i===oi?En:vf:l>9&&uy(e)?En:u?i===oi?En:vf:h?fy:ry}function NS(e,t,l,n,a){e.dump=function(){if(t.length===0)return e.quotingType===oi?'""':"''";if(!e.noCompatMode&&(yS.indexOf(t)!==-1||vS.test(t)))return e.quotingType===oi?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,l),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),c=n||e.flowLevel>-1&&l>=e.flowLevel;function r(f){return ES(e,f)}switch(TS(t,c,e.indent,u,r,e.quotingType,e.forceQuotes&&!n,a)){case cy:return t;case vf:return"'"+t.replace(/'/g,"''")+"'";case ry:return"|"+kd(t,e.indent)+Kd(Vd(t,i));case fy:return">"+kd(t,e.indent)+Kd(Vd(zS(t,u),i));case En:return'"'+_S(t)+'"';default:throw new Ye("impossible error: invalid scalar style")}}()}function kd(e,t){var l=uy(e)?String(t):"",n=e[e.length-1]===`
185
+ `,a=n&&(e[e.length-2]===`
186
+ `||e===`
187
+ `),i=a?"+":n?"":"-";return l+i+`
188
+ `}function Kd(e){return e[e.length-1]===`
189
+ `?e.slice(0,-1):e}function zS(e,t){for(var l=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
190
+ `);return f=f!==-1?f:e.length,l.lastIndex=f,Jd(e.slice(0,f),t)}(),a=e[0]===`
191
+ `||e[0]===" ",i,u;u=l.exec(e);){var c=u[1],r=u[2];i=r[0]===" ",n+=c+(!a&&!i&&r!==""?`
192
+ `:"")+Jd(r,t),a=i}return n}function Jd(e,t){if(e===""||e[0]===" ")return e;for(var l=/ [^ ]/g,n,a=0,i,u=0,c=0,r="";n=l.exec(e);)c=n.index,c-a>t&&(i=u>a?u:c,r+=`
193
+ `+e.slice(a,i),a=i+1),u=c;return r+=`
194
+ `,e.length-a>t&&u>a?r+=e.slice(a,u)+`
195
+ `+e.slice(u+1):r+=e.slice(a),r.slice(1)}function _S(e){for(var t="",l=0,n,a=0;a<e.length;l>=65536?a+=2:a++)l=Ra(e,a),n=Le[l],!n&&si(l)?(t+=e[a],l>=65536&&(t+=e[a+1])):t+=n||xS(l);return t}function OS(e,t,l){var n="",a=e.tag,i,u,c;for(i=0,u=l.length;i<u;i+=1)c=l[i],e.replacer&&(c=e.replacer.call(l,String(i),c)),(al(e,t,c,!1,!1)||typeof c>"u"&&al(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=a,e.dump="["+n+"]"}function Fd(e,t,l,n){var a="",i=e.tag,u,c,r;for(u=0,c=l.length;u<c;u+=1)r=l[u],e.replacer&&(r=e.replacer.call(l,String(u),r)),(al(e,t+1,r,!0,!0,!1,!0)||typeof r>"u"&&al(e,t+1,null,!0,!0,!1,!0))&&((!n||a!=="")&&(a+=yf(e,t)),e.dump&&fi===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function jS(e,t,l){var n="",a=e.tag,i=Object.keys(l),u,c,r,f,d;for(u=0,c=i.length;u<c;u+=1)d="",n!==""&&(d+=", "),e.condenseFlow&&(d+='"'),r=i[u],f=l[r],e.replacer&&(f=e.replacer.call(l,r,f)),al(e,t,r,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),al(e,t,f,!1,!1)&&(d+=e.dump,n+=d));e.tag=a,e.dump="{"+n+"}"}function MS(e,t,l,n){var a="",i=e.tag,u=Object.keys(l),c,r,f,d,s,h;if(e.sortKeys===!0)u.sort();else if(typeof e.sortKeys=="function")u.sort(e.sortKeys);else if(e.sortKeys)throw new Ye("sortKeys must be a boolean or a function");for(c=0,r=u.length;c<r;c+=1)h="",(!n||a!=="")&&(h+=yf(e,t)),f=u[c],d=l[f],e.replacer&&(d=e.replacer.call(l,f,d)),al(e,t+1,f,!0,!0,!0)&&(s=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,s&&(e.dump&&fi===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,s&&(h+=yf(e,t)),al(e,t+1,d,!0,s)&&(e.dump&&fi===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,a+=h));e.tag=i,e.dump=a||"{}"}function $d(e,t,l){var n,a,i,u,c,r;for(a=l?e.explicitTypes:e.implicitTypes,i=0,u=a.length;i<u;i+=1)if(c=a[i],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(l?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(r=e.styleMap[c.tag]||c.defaultStyle,Pp.call(c.represent)==="[object Function]")n=c.represent(t,r);else if(ey.call(c.represent,r))n=c.represent[r](t,r);else throw new Ye("!<"+c.tag+'> tag resolver accepts not "'+r+'" style');e.dump=n}return!0}return!1}function al(e,t,l,n,a,i,u){e.tag=null,e.dump=l,$d(e,l,!1)||$d(e,l,!0);var c=Pp.call(e.dump),r=n,f;n&&(n=e.flowLevel<0||e.flowLevel>t);var d=c==="[object Object]"||c==="[object Array]",s,h;if(d&&(s=e.duplicates.indexOf(l),h=s!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(a=!1),h&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(d&&h&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),c==="[object Object]")n&&Object.keys(e.dump).length!==0?(MS(e,t,e.dump,a),h&&(e.dump="&ref_"+s+e.dump)):(jS(e,t,e.dump),h&&(e.dump="&ref_"+s+" "+e.dump));else if(c==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!u&&t>0?Fd(e,t-1,e.dump,a):Fd(e,t,e.dump,a),h&&(e.dump="&ref_"+s+e.dump)):(OS(e,t,e.dump),h&&(e.dump="&ref_"+s+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&NS(e,e.dump,t,i,r);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ye("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function RS(e,t){var l=[],n=[],a,i;for(gf(e,l,n),a=0,i=n.length;a<i;a+=1)t.duplicates.push(l[n[a]]);t.usedDuplicates=new Array(i)}function gf(e,t,l){var n,a,i;if(e!==null&&typeof e=="object")if(a=t.indexOf(e),a!==-1)l.indexOf(a)===-1&&l.push(a);else if(t.push(e),Array.isArray(e))for(a=0,i=e.length;a<i;a+=1)gf(e[a],t,l);else for(n=Object.keys(e),a=0,i=n.length;a<i;a+=1)gf(e[n[a]],t,l)}function DS(e,t){t=t||{};var l=new SS(t);l.noRefs||RS(e,l);var n=e;return l.replacer&&(n=l.replacer.call({"":n},"",n)),al(l,0,n,!0,!0)?l.dump+`
196
+ `:""}var wS=DS,US={dump:wS};function Do(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var HS=we,LS=Cp,BS=_p,YS=Dp,qS=wp,GS=Oo,oy=Ip.load,QS=Ip.loadAll,VS=US.dump,XS=Ye,ZS={binary:Yp,float:Rp,map:zp,null:Op,pairs:Gp,set:Qp,timestamp:Lp,bool:jp,int:Mp,merge:Bp,omap:qp,seq:Np,str:Tp},kS=Do("safeLoad","load"),KS=Do("safeLoadAll","loadAll"),JS=Do("safeDump","dump"),nE={Type:HS,Schema:LS,FAILSAFE_SCHEMA:BS,JSON_SCHEMA:YS,CORE_SCHEMA:qS,DEFAULT_SCHEMA:GS,load:oy,loadAll:QS,dump:VS,YAMLException:XS,types:ZS,safeLoad:kS,safeLoadAll:KS,safeDump:JS};const FS=g.lazy(()=>jb(()=>import("./index-QJ-IaVhl.js"),[]));function $S(e){const[t,l]=g.useState("rendered"),n=g.useMemo(()=>{if(!(!e.openApiDoc.exists||!e.openApiDoc.raw))try{return{...e.openApiDoc.format==="yaml"?oy(e.openApiDoc.raw):JSON.parse(e.openApiDoc.raw),servers:[{url:window.location.origin}]}}catch{return}},[e.openApiDoc]);return o.jsx("div",{className:"space-y-6",children:o.jsxs(Ct,{title:"OpenAPI Contract",subtitle:"Upload or inspect the currently loaded OpenAPI file.",tone:"highlight",actions:o.jsxs("div",{className:"flex items-center gap-2",children:[e.openApiDoc.exists?o.jsx("button",{disabled:e.busy,onClick:e.deleteOpenApiDoc,className:"rounded-xl border border-rose-700 px-4 py-2 text-sm font-medium text-rose-300 hover:bg-rose-900/30 disabled:opacity-50",children:"Delete"}):null,o.jsxs("button",{disabled:e.busy||!e.openApiFile,onClick:()=>e.uploadFile("/-/api/openapi",e.openApiFile,"OpenAPI imported"),className:"inline-flex items-center gap-2 rounded-xl bg-indigo-600 px-4 py-2 text-sm font-medium disabled:opacity-50",children:[o.jsx(Sp,{className:"h-4 w-4"}),"Upload OpenAPI"]})]}),children:[o.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[o.jsx("input",{type:"file",accept:".json,.yaml,.yml",onChange:a=>{var i;return e.setOpenApiFile(((i=a.target.files)==null?void 0:i[0])??null)},className:"block w-full text-sm file:mr-4 file:rounded-lg file:border-0 file:bg-indigo-600 file:px-4 file:py-2 file:text-white hover:file:bg-indigo-500"}),o.jsx("button",{onClick:e.loadOpenApiDoc,className:"rounded-lg border border-zinc-700 px-3 py-2 text-xs",children:"Refresh"})]}),e.openApiDoc.exists?o.jsxs("div",{children:[o.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[o.jsxs("p",{className:"text-xs text-zinc-400",children:["Loaded format:"," ",o.jsx("span",{className:"text-zinc-200",children:e.openApiDoc.format})]}),o.jsxs("div",{className:"inline-flex rounded-lg border border-zinc-700 overflow-hidden",children:[o.jsx("button",{onClick:()=>l("rendered"),className:`px-3 py-1.5 text-xs ${t==="rendered"?"bg-zinc-700 text-zinc-100":"bg-zinc-900 text-zinc-400"}`,children:"Rendered Docs"}),o.jsx("button",{onClick:()=>l("raw"),className:`px-3 py-1.5 text-xs ${t==="raw"?"bg-zinc-700 text-zinc-100":"bg-zinc-900 text-zinc-400"}`,children:"Raw Contract"})]})]}),t==="rendered"?n?o.jsx("div",{className:"swagger-dark rounded-xl border border-zinc-800 bg-zinc-950 overflow-hidden",children:o.jsx(g.Suspense,{fallback:o.jsx("div",{className:"p-6 text-sm text-zinc-500",children:"Loading API docs viewer…"}),children:o.jsx(FS,{spec:n})})}):o.jsx("div",{className:"rounded-xl border border-dashed border-zinc-700 p-6 text-sm text-zinc-400",children:"Could not parse OpenAPI contract for rendering."}):o.jsx("pre",{className:"max-h-[65vh] overflow-auto rounded-xl border border-zinc-800 bg-zinc-950 p-3 text-xs whitespace-pre-wrap",children:e.openApiDoc.raw})]}):o.jsx("div",{className:"rounded-xl border border-dashed border-zinc-700 p-6 text-sm text-zinc-400",children:"No OpenAPI contract uploaded yet."})]})})}function WS(e){const[t,l]=g.useState([]),[n,a]=g.useState([]),[i,u]=g.useState([]),[c,r]=g.useState("unknown"),[f,d]=g.useState(""),[s,h]=g.useState(e),[y,x]=g.useState(!1),[S,A]=g.useState({}),[p,m]=g.useState("openai"),[v,b]=g.useState("gpt-5.4-mini"),[C,R]=g.useState("https://api.openai.com/v1"),[T,O]=g.useState("https://api.anthropic.com"),[_,D]=g.useState("http://127.0.0.1:11434"),[F,Ue]=g.useState(""),[zt,Lt]=g.useState(""),[He,N]=g.useState(!1),[H,L]=g.useState(null),[ee,te]=g.useState(null),[$e,bt]=g.useState(null),[Bt,St]=g.useState({exists:!1});function Ae(j){Lt(j),setTimeout(()=>Lt(""),1800)}async function sa(){const j=await(await fetch("/-/api/endpoints")).json();j.sort((re,he)=>re.path.localeCompare(he.path)||re.method.localeCompare(he.method)),l(j)}async function on(){const j=await(await fetch("/-/api/requests?limit=100")).json();a(j.rows??[])}async function da(){const j=await(await fetch("/-/api/misses")).json();u(Array.isArray(j)?j:[])}async function zi(){var re,he,rl;const j=await(await fetch("/-/api/config")).json();d(JSON.stringify(j,null,2)),h(j.aiPromptTemplate&&String(j.aiPromptTemplate).trim()?j.aiPromptTemplate:e),m(j.aiProvider??"openai"),b(j.aiModel??"gpt-5.4-mini"),R(((re=j.providerBaseUrls)==null?void 0:re.openai)??"https://api.openai.com/v1"),O(((he=j.providerBaseUrls)==null?void 0:he.anthropic)??"https://api.anthropic.com"),D(((rl=j.providerBaseUrls)==null?void 0:rl.ollama)??"http://127.0.0.1:11434")}async function _i(){const j=await(await fetch("/-/api/health")).json();r(j.version||"unknown")}async function Oi(){const j=await(await fetch("/-/api/providers")).json();A(j??{})}async function ji(){const j=await(await fetch("/-/api/context")).json();Ue(j.context||"")}async function ha(){const j=await(await fetch("/-/api/openapi")).json();St(j??{exists:!1})}async function Sc(){N(!0);try{if(!(await fetch("/-/api/openapi",{method:"DELETE"})).ok)throw new Error("delete failed");bt(null),await ha(),Ae("OpenAPI contract deleted")}catch{Ae("Failed to delete OpenAPI contract")}finally{N(!1)}}async function ma(){await Promise.all([sa(),on(),da(),zi(),_i(),Oi(),ji(),ha()])}g.useEffect(()=>{ma()},[]),g.useEffect(()=>{var re,he;const j=((he=(re=S.providers)==null?void 0:re[p])==null?void 0:he.models)??[];j.length!==0&&(j.includes(v)||b(j[0]))},[S,p,v]);const pa=g.useMemo(()=>{const j=t.reduce((re,he)=>re+he.variants,0);return{endpoints:t.length,variants:j,misses:i.length,requests:n.length}},[t,i,n]),sn=g.useMemo(()=>{if(!f.trim())return"Config cannot be empty";try{return JSON.parse(f),""}catch(j){return`Invalid JSON: ${j.message}`}},[f]);async function Ce(){await fetch("/-/api/requests",{method:"DELETE"}),await on(),Ae("Request logs cleared")}async function ya(){await fetch("/-/api/misses",{method:"DELETE"}),await da(),Ae("Misses cleared")}async function Te(j,re,he){if(re){N(!0);try{const rl=new FormData;if(rl.append("file",re),!(await fetch(j,{method:"POST",body:rl})).ok)throw new Error("upload failed");await ma(),Ae(he)}catch{Ae("Upload failed")}finally{N(!1)}}}function va(j){try{const re=JSON.parse(f||"{}");re.aiStorePrompt=j,d(JSON.stringify(re,null,2))}catch{}}function Mi(){try{return!!JSON.parse(f||"{}").aiStorePrompt}catch{return!1}}async function ga(){N(!0);try{const j=JSON.parse(f);j.aiPromptTemplate=s,j.aiProvider=p,j.aiModel=v,j.providerBaseUrls={...j.providerBaseUrls??{},openai:C,anthropic:T,ollama:_},await fetch("/-/api/config",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(j)}),Ae("Config saved")}catch{Ae("Config invalid")}finally{N(!1)}}async function Yl(){N(!0);try{await fetch("/-/api/context",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({context:F})}),Ae("Context saved")}catch{Ae("Context save failed")}finally{N(!1)}}return{endpoints:t,requests:n,misses:i,serverVersion:c,configText:f,setConfigText:d,promptTemplate:s,setPromptTemplate:h,showPromptHints:y,setShowPromptHints:x,providerInfo:S,providerName:p,setProviderName:m,providerModel:v,setProviderModel:b,openaiBaseUrl:C,setOpenaiBaseUrl:R,anthropicBaseUrl:T,setAnthropicBaseUrl:O,ollamaBaseUrl:_,setOllamaBaseUrl:D,context:F,setContext:Ue,toast:zt,showToast:Ae,busy:He,setBusy:N,promptDialog:H,setPromptDialog:L,harFile:ee,setHarFile:te,openApiFile:$e,setOpenApiFile:bt,openApiDoc:Bt,stats:pa,configError:sn,refresh:ma,loadEndpoints:sa,loadRequests:on,loadMisses:da,loadConfig:zi,loadHealth:_i,loadProviders:Oi,loadContext:ji,loadOpenApiDoc:ha,clearLogs:Ce,clearMisses:ya,uploadFile:Te,deleteOpenApiDoc:Sc,setAiStorePrompt:va,getAiStorePrompt:Mi,saveConfig:ga,saveContext:Yl}}const IS="/-/admin/assets/bff_candy_heart-tUzGTaBH.svg",PS=`You are an HTTP server for a Single Page Application.
197
+ Read the incoming HTTP request and return the most realistic successful HTTP response for a production-style REST API.
198
+
199
+ Output requirements:
200
+ 1. Return exactly one JSON object with these top-level keys:
201
+ - \`status\`: number
202
+ - \`contentType\`: string (mime-type)
203
+ - \`body\`: JSON value or string (depending on content type)
204
+ 2. Do not include prose, commentary, explanations, or markdown.
205
+ 3. The response must always be a successful HTTP response (2xx only).
206
+
207
+ Content negotiation:
208
+ 1. Inspect the \`Accept\` header to determine the response format.
209
+
210
+ 2. Default behavior (critical):
211
+ - If the \`Accept\` header resembles a typical browser request (e.g. includes multiple types like \`text/html\`, \`application/xhtml+xml\`, \`application/xml\`, \`image/*\`, \`*/*\`), treat it as NO explicit preference.
212
+ - In these cases, ALWAYS return \`application/json\`.
213
+ - If \`*/*\` is present, treat it as no preference and return JSON.
214
+
215
+ 3. Explicit format selection:
216
+ - Only return a non-JSON format (e.g. \`text/html\`) if:
217
+ - The \`Accept\` header specifies a single clear mime type, OR
218
+ - One mime type has a strictly higher q-value than all others and is not a wildcard.
219
+
220
+ 4. Ambiguous or browser-style headers:
221
+ - If multiple types are listed without a clear single winner (even if ordered), IGNORE ordering and return JSON.
222
+
223
+ 5. If the requested type is unsupported or unclear, default to \`application/json\`.
224
+
225
+ 6. For non-JSON responses (only when explicitly required), return a realistic representation (e.g. full HTML document as a string).
226
+
227
+ 7. Always set the \`Content-Type\` header accordingly.
228
+
229
+ Response behavior:
230
+ 1. Follow standard REST conventions:
231
+ - \`POST\` creates a resource and returns the created entity.
232
+ - \`GET /collection\` returns an array.
233
+ - \`GET /collection/:id\` returns a single entity.
234
+ - \`PATCH\` partially updates fields and returns the updated entity.
235
+ - \`PUT\` replaces the entity and returns the replaced entity.
236
+ - \`DELETE\` returns \`204\` with \`body: null\` or a confirmation object.
237
+ 2. Support nested resources such as \`/users/:id/comments/:commentId\`.
238
+ 3. IDs must be unique and realistic.
239
+ 4. Timestamps must be realistic ISO-8601 strings.
240
+ 5. Prefer realistic defaults when information is missing.
241
+
242
+ Conflict resolution:
243
+ 1. Always return a successful response (2xx). Never return 4xx or 5xx.
244
+ 2. If format expectations conflict, prioritize explicit \`Accept\` rules, otherwise default to JSON.
245
+
246
+ Data modeling rules:
247
+ 1. Use the provided schema and endpoint hints whenever relevant.
248
+ 2. Preserve field names and types exactly as defined.
249
+ 3. Populate optional fields only when realistic.
250
+ 4. Keep generated values internally consistent.
251
+ 5. IDs should be unique numbers (random).
252
+ 6. Output VALID JSON ONLY. Do not add ellipsis or other non valid output.
253
+
254
+ ADDITIONAL CONTEXT:
255
+ {{context}}
256
+
257
+ SIMILAR EXAMPLES:
258
+ {{similar_examples_json}}
259
+
260
+ THE REQUEST:
261
+ Timestamp: {{datetime_iso}}
262
+ Method: {{method}}
263
+ Path: {{path}}
264
+ Query params: {{query_json}}
265
+ Body: {{body_json}}
266
+ Headers: {{headers_json}}`;function eE(){const e=WS(PS),{endpoints:t,requests:l,misses:n,configText:a,setConfigText:i,promptTemplate:u,setPromptTemplate:c,showPromptHints:r,setShowPromptHints:f,providerInfo:d,providerName:s,serverVersion:h,setProviderName:y,providerModel:x,setProviderModel:S,openaiBaseUrl:A,setOpenaiBaseUrl:p,anthropicBaseUrl:m,setAnthropicBaseUrl:v,ollamaBaseUrl:b,setOllamaBaseUrl:C,context:R,setContext:T,toast:O,showToast:_,busy:D,setBusy:F,promptDialog:Ue,setPromptDialog:zt,harFile:Lt,setHarFile:He,openApiFile:N,setOpenApiFile:H,stats:L,configError:ee,refresh:te,loadEndpoints:$e,loadRequests:bt,loadMisses:Bt,clearLogs:St,clearMisses:Ae,loadProviders:sa,uploadFile:on,deleteOpenApiDoc:da,setAiStorePrompt:zi,getAiStorePrompt:_i,saveConfig:Oi,saveContext:ji,loadConfig:ha,loadContext:Sc,openApiDoc:ma,loadOpenApiDoc:pa}=e,sn=cl(),[Ce,ya]=g.useState(""),[Te,va]=g.useState(""),[Mi,ga]=g.useState([]),[Yl,j]=g.useState(""),[re,he]=g.useState(""),[rl,Ec]=g.useState("GET"),[Ri,wo]=g.useState(""),[Uo,sy]=g.useState("default_manual"),[Ho,dy]=g.useState(200),[Lo,hy]=g.useState(`{
267
+ "ok": true
268
+ }`),[Bo,fl]=g.useState(!1),[Di,Yo]=g.useState(""),[wi,Ac]=g.useState({}),[Ui,Hi]=g.useState(!1),[my,Cc]=g.useState(!1),[_t,Tc]=g.useState({open:!1,message:""}),dn=g.useMemo(()=>{const z=Di.trim().toLowerCase();return z?t.filter(G=>`${G.method} ${G.path}`.toLowerCase().includes(z)):t},[t,Di]),qo=dn.length>0&&dn.every(z=>wi[`${z.method} ${z.path}`]),py=g.useMemo(()=>{if(!Yl)return"";if(!re.trim())return"Variant body is empty";try{return JSON.parse(re),""}catch(z){return`Invalid JSON: ${z.message}`}},[re,Yl]);g.useEffect(()=>{const z=sn.pathname;if(z==="/"){te();return}if(z==="/endpoints"){$e();return}if(z==="/variants"){$e(),Ce&&Te&&mn(Ce,Te);return}if(z==="/logs"){Promise.all([bt(),Bt()]);return}if(z==="/openapi"){pa();return}z==="/settings"&&Promise.all([ha(),sa(),Sc()])},[sn.pathname]),g.useEffect(()=>{const z=sn.pathname,G=new EventSource("/-/api/events");if(G.onopen=()=>Hi(!0),G.onerror=()=>Hi(!1),G.addEventListener("ready",()=>Hi(!0)),z==="/logs"){const V=()=>{bt(),Bt()};G.addEventListener("request",V),G.addEventListener("miss",V),G.addEventListener("requests-cleared",V),G.addEventListener("misses-cleared",V)}if(z==="/endpoints"||z==="/variants"){const V=()=>{$e(),z==="/variants"&&Ce&&Te&&mn(Ce,Te)};G.addEventListener("endpoints-updated",V),G.addEventListener("variants-updated",V)}if(z==="/openapi"){const V=()=>pa();G.addEventListener("openapi-updated",V)}return()=>{G.close(),Hi(!1)}},[sn.pathname,Ce,Te]);function hn(z,G,V){return new Promise(xe=>{Tc({open:!0,title:G,message:z,confirmLabel:V,resolve:xe})})}async function Go(z,G){if(await hn(`Clear endpoint ${z} ${G}? This removes all its variants.`,"Delete endpoint","Delete")){F(!0);try{if(!(await fetch(`/-/api/endpoint?method=${encodeURIComponent(z)}&path=${encodeURIComponent(G)}`,{method:"DELETE"})).ok)throw new Error("clear failed");Ce===z&&Te===G&&(ya(""),va(""),ga([]),j(""),he("")),await te(),_("Endpoint cleared")}catch{_("Failed to clear endpoint")}finally{F(!1)}}}function Qo(z,G,V){const xe=`${z} ${G}`;Ac(pn=>({...pn,[xe]:V}))}function Vo(z){Ac(G=>{const V={...G};for(const xe of dn)V[`${xe.method} ${xe.path}`]=z;return V})}async function Xo(){const z=dn.filter(V=>wi[`${V.method} ${V.path}`]);if(z.length===0)return _("No endpoints selected");if(await hn(`Delete ${z.length} selected endpoint(s) and all their variants?`,"Delete selected endpoints","Delete")){F(!0);try{for(const V of z)if(!(await fetch(`/-/api/endpoint?method=${encodeURIComponent(V.method)}&path=${encodeURIComponent(V.path)}`,{method:"DELETE"})).ok)throw new Error("delete failed");ya(""),va(""),ga([]),j(""),he(""),Ac({}),await te(),_("Selected endpoints deleted")}catch{_("Failed to delete selected endpoints")}finally{F(!1)}}}async function mn(z,G){ya(z),va(G);const xe=(await(await fetch(`/-/api/variants?method=${encodeURIComponent(z)}&path=${encodeURIComponent(G)}`)).json()).variants??[];if(ga(xe),xe.length===1){const pn=xe[0].id;j(pn);const Zo=await(await fetch(`/-/api/variant?method=${encodeURIComponent(z)}&path=${encodeURIComponent(G)}&id=${encodeURIComponent(pn)}`)).json();he(JSON.stringify(Zo.mock,null,2))}else j(""),he("")}async function yy(z){j(z);const G=await(await fetch(`/-/api/variant?method=${encodeURIComponent(Ce)}&path=${encodeURIComponent(Te)}&id=${encodeURIComponent(z)}`)).json();he(JSON.stringify(G.mock,null,2))}async function vy(z){if(!Ce||!Te)return;if(Mi.length<=1)return _("Cannot delete the last variant. Delete the endpoint instead.");if(await hn(`Delete variant ${z} for ${Ce} ${Te}?`,"Delete variant","Delete")){F(!0);try{const V=await fetch(`/-/api/variant?method=${encodeURIComponent(Ce)}&path=${encodeURIComponent(Te)}&id=${encodeURIComponent(z)}`,{method:"DELETE"});if(!V.ok){const xe=await V.json().catch(()=>({}));throw new Error((xe==null?void 0:xe.error)||"delete failed")}Yl===z&&(j(""),he("")),await $e(),await mn(Ce,Te),_("Variant deleted")}catch(V){_((V==null?void 0:V.message)||"Failed to delete variant")}finally{F(!1)}}}async function gy(){F(!0);try{const z=JSON.parse(re);await fetch("/-/api/variant",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({method:Ce,path:Te,id:Yl,mock:z})}),await mn(Ce,Te),await $e(),_("Variant saved")}catch{_("Variant save failed")}finally{F(!1)}}async function xy(){await hn("Clear all request logs?","Clear request logs","Clear")&&await St()}async function by(){await hn("Clear all misses?","Clear misses","Clear")&&await Ae()}async function Sy(){await hn("Delete the saved OpenAPI contract?","Delete OpenAPI contract","Delete")&&await da()}async function Ey(){F(!0);try{const z=JSON.parse(Lo),G=rl.toUpperCase(),V=Ri.startsWith("/")?Ri:`/${Ri}`,xe=Uo.trim()||"default_manual",pn={requestSignature:{method:G,path:V,queryHash:"manual",bodyHash:"manual"},requestSnapshot:{query:{},body:{}},response:{status:Number(Ho)||200,headers:{"content-type":"application/json"},body:z},meta:{source:"manual",createdAt:new Date().toISOString(),notes:"created-from-admin-ui"}};if(!(await fetch("/-/api/variant",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({method:G,path:V,id:xe,mock:pn})})).ok)throw new Error("create failed");await $e(),await mn(G,V),j(xe),Cc(!1),_("Endpoint/variant created")}catch{_("Create failed (check JSON/path)")}finally{F(!1)}}return o.jsxs("main",{className:"min-h-screen bg-zinc-950 text-zinc-100",children:[o.jsx("header",{className:"sticky top-0 z-30 border-b border-zinc-800/80 bg-zinc-950/95 backdrop-blur",children:o.jsxs("div",{className:"mx-auto max-w-7xl px-4 lg:px-8 h-16 flex items-center justify-between",children:[o.jsxs("div",{className:"inline-flex items-center gap-3",children:[o.jsx("img",{src:IS,alt:"Mock BFF logo",className:"h-8 w-8"}),o.jsx("div",{children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("h1",{className:"text-sm sm:text-base font-semibold tracking-tight",children:"Mock BFF"}),o.jsxs("span",{className:"relative inline-flex h-3 w-3 items-center justify-center",title:`${Ui?"Connected":"Disconnected"} · ${h}`,"aria-label":`${Ui?"Connected":"Disconnected"}, server version ${h}`,children:[o.jsx("span",{className:`absolute h-3 w-3 rounded-full ${Ui?"bg-emerald-400/30":"bg-rose-400/30"}`}),o.jsx("span",{className:`relative h-2 w-2 rounded-full ${Ui?"bg-emerald-400":"bg-rose-400"}`})]})]})})]}),o.jsx("button",{className:"lg:hidden rounded-lg border border-zinc-700 p-2",onClick:()=>fl(z=>!z),"aria-label":"Toggle menu",children:Bo?o.jsx(xb,{className:"h-4 w-4"}):o.jsx(ob,{className:"h-4 w-4"})}),o.jsxs("nav",{className:"hidden lg:flex items-center gap-2",children:[o.jsx(rt,{to:"/",label:"Dashboard",icon:o.jsx(Od,{className:"h-4 w-4"})}),o.jsx(rt,{to:"/endpoints",label:"Endpoints",icon:o.jsx(jd,{className:"h-4 w-4"})}),o.jsx(rt,{to:"/variants",label:"Variants",icon:o.jsx(Rd,{className:"h-4 w-4"})}),o.jsx(rt,{to:"/logs",label:"Logs",icon:o.jsx(Md,{className:"h-4 w-4"})}),o.jsx(rt,{to:"/openapi",label:"OpenAPI",icon:o.jsx(_d,{className:"h-4 w-4"})}),o.jsx(rt,{to:"/settings",label:"Settings",icon:o.jsx(Dd,{className:"h-4 w-4"})})]})]})}),Bo?o.jsx("div",{className:"lg:hidden fixed inset-0 z-20 bg-black/60",onClick:()=>fl(!1),children:o.jsxs("aside",{className:"absolute right-0 top-0 h-full w-72 bg-zinc-900 border-l border-zinc-800 p-4 pt-20",onClick:z=>z.stopPropagation(),children:[o.jsx("div",{className:"mb-4 text-sm font-semibold",children:"Navigation"}),o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx(rt,{to:"/",label:"Dashboard",icon:o.jsx(Od,{className:"h-4 w-4"}),onClick:()=>fl(!1)}),o.jsx(rt,{to:"/endpoints",label:"Endpoints",icon:o.jsx(jd,{className:"h-4 w-4"}),onClick:()=>fl(!1)}),o.jsx(rt,{to:"/variants",label:"Variants",icon:o.jsx(Rd,{className:"h-4 w-4"}),onClick:()=>fl(!1)}),o.jsx(rt,{to:"/logs",label:"Logs",icon:o.jsx(Md,{className:"h-4 w-4"}),onClick:()=>fl(!1)}),o.jsx(rt,{to:"/openapi",label:"OpenAPI",icon:o.jsx(_d,{className:"h-4 w-4"}),onClick:()=>fl(!1)}),o.jsx(rt,{to:"/settings",label:"Settings",icon:o.jsx(Dd,{className:"h-4 w-4"}),onClick:()=>fl(!1)})]})]})}):null,o.jsxs("div",{className:"mx-auto max-w-7xl p-6 lg:p-8 space-y-6",children:[o.jsxs(g1,{children:[o.jsx(Zl,{path:"/",element:o.jsx(Tb,{stats:L,refresh:te,setHash:z=>window.location.hash=z,busy:D,harFile:Lt,setHarFile:He,openApiFile:N,setOpenApiFile:H,uploadFile:on})}),o.jsx(Zl,{path:"/endpoints",element:o.jsx(Ab,{filteredEndpoints:dn,endpointSearch:Di,setEndpointSearch:Yo,allFilteredSelected:qo,setAllFilteredSelection:Vo,selectedEndpointKeys:wi,toggleEndpointSelection:Qo,clearEndpoint:Go,clearSelectedEndpoints:Xo,busy:D})}),o.jsx(Zl,{path:"/variants",element:o.jsx(zb,{busy:D,filteredEndpoints:dn,endpointSearch:Di,setEndpointSearch:Yo,allFilteredSelected:qo,setAllFilteredSelection:Vo,selectedEndpointKeys:wi,toggleEndpointSelection:Qo,selectedMethod:Ce,selectedPath:Te,openCreateDialog:()=>{Ce&&Te&&(Ec(Ce),wo(Te)),Cc(!0)},loadVariants:mn,clearSelectedEndpoints:Xo,clearEndpoint:Go,variantList:Mi,selectedVariantId:Yl,selectVariant:yy,deleteVariant:vy,variantEditor:re,setVariantEditor:he,saveVariant:gy,variantError:py})}),o.jsx(Zl,{path:"/logs",element:o.jsx(Cb,{requests:l,misses:n,loadRequests:bt,clearLogs:xy,loadMisses:Bt,clearMisses:by,setPromptDialog:zt})}),o.jsx(Zl,{path:"/openapi",element:o.jsx($S,{busy:D,openApiFile:N,setOpenApiFile:H,uploadFile:on,deleteOpenApiDoc:Sy,openApiDoc:ma,loadOpenApiDoc:pa})}),o.jsx(Zl,{path:"/settings",element:o.jsx(Nb,{busy:D,configError:ee,saveConfig:Oi,getAiStorePrompt:_i,setAiStorePrompt:zi,providerInfo:d,providerName:s,setProviderName:y,providerModel:x,setProviderModel:S,openaiBaseUrl:A,setOpenaiBaseUrl:p,anthropicBaseUrl:m,setAnthropicBaseUrl:v,ollamaBaseUrl:b,setOllamaBaseUrl:C,loadProviders:sa,showPromptHints:r,setShowPromptHints:f,promptTemplate:u,setPromptTemplate:c,configText:a,setConfigText:i,context:R,setContext:T,saveContext:ji})})]}),Ue?o.jsx(bb,{prompt:Ue,onClose:()=>zt(null),showToast:_}):null,o.jsx(Eb,{open:my,busy:D,createMethod:rl,setCreateMethod:Ec,createPath:Ri,setCreatePath:wo,createVariantId:Uo,setCreateVariantId:sy,createStatus:Ho,setCreateStatus:dy,createBody:Lo,setCreateBody:hy,onCreate:Ey,onClose:()=>Cc(!1)}),o.jsx(Sb,{open:_t.open,title:_t.title,message:_t.message,confirmLabel:_t.confirmLabel,onCancel:()=>{var z;(z=_t.resolve)==null||z.call(_t,!1),Tc({open:!1,message:""})},onConfirm:()=>{var z;(z=_t.resolve)==null||z.call(_t,!0),Tc({open:!1,message:""})}}),O?o.jsx("div",{className:"fixed bottom-6 right-6 rounded-xl bg-zinc-800 border border-zinc-700 px-4 py-2 text-sm shadow-lg",children:O}):null]})]})}bx.createRoot(document.getElementById("root")).render(o.jsx(Gy.StrictMode,{children:o.jsx(Q1,{children:o.jsx(eE,{})})}));export{YS as J,Gy as R,tE as c,xf as g,nE as j,g as r,lE as y};