claude-session-viewer 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var hu=e=>{throw TypeError(e)};var So=(e,t,n)=>t.has(e)||hu("Cannot "+n);var y=(e,t,n)=>(So(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>t.has(e)?hu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(So(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(So(e,t,"access private method"),n);var bi=(e,t,n,r)=>({set _(i){M(e,t,i,n)},get _(){return y(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lf={exports:{}},to={},of={exports:{}},$={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 Ai=Symbol.for("react.element"),rp=Symbol.for("react.portal"),ip=Symbol.for("react.fragment"),lp=Symbol.for("react.strict_mode"),op=Symbol.for("react.profiler"),sp=Symbol.for("react.provider"),ap=Symbol.for("react.context"),up=Symbol.for("react.forward_ref"),cp=Symbol.for("react.suspense"),fp=Symbol.for("react.memo"),dp=Symbol.for("react.lazy"),pu=Symbol.iterator;function hp(e){return e===null||typeof e!="object"?null:(e=pu&&e[pu]||e["@@iterator"],typeof e=="function"?e:null)}var sf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},af=Object.assign,uf={};function jr(e,t,n){this.props=e,this.context=t,this.refs=uf,this.updater=n||sf}jr.prototype.isReactComponent={};jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cf(){}cf.prototype=jr.prototype;function ua(e,t,n){this.props=e,this.context=t,this.refs=uf,this.updater=n||sf}var ca=ua.prototype=new cf;ca.constructor=ua;af(ca,jr.prototype);ca.isPureReactComponent=!0;var mu=Array.isArray,ff=Object.prototype.hasOwnProperty,fa={current:null},df={key:!0,ref:!0,__self:!0,__source:!0};function hf(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)ff.call(t,r)&&!df.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Ai,type:e,key:l,ref:o,props:i,_owner:fa.current}}function pp(e,t){return{$$typeof:Ai,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function da(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ai}function mp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yu=/\/+/g;function Eo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?mp(""+e.key):t.toString(36)}function pl(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ai:case rp:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Eo(o,0):r,mu(i)?(n="",e!=null&&(n=e.replace(yu,"$&/")+"/"),pl(i,t,n,"",function(u){return u})):i!=null&&(da(i)&&(i=pp(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(yu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",mu(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+Eo(l,s);o+=pl(l,t,n,a,i)}else if(a=hp(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+Eo(l,s++),o+=pl(l,t,n,a,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Gi(e,t,n){if(e==null)return e;var r=[],i=0;return pl(e,r,"","",function(l){return t.call(n,l,i++)}),r}function yp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var De={current:null},ml={transition:null},gp={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:ml,ReactCurrentOwner:fa};function pf(){throw Error("act(...) is not supported in production builds of React.")}$.Children={map:Gi,forEach:function(e,t,n){Gi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gi(e,function(){t++}),t},toArray:function(e){return Gi(e,function(t){return t})||[]},only:function(e){if(!da(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Component=jr;$.Fragment=ip;$.Profiler=op;$.PureComponent=ua;$.StrictMode=lp;$.Suspense=cp;$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gp;$.act=pf;$.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=af({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=fa.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)ff.call(t,a)&&!df.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Ai,type:e.type,key:i,ref:l,props:r,_owner:o}};$.createContext=function(e){return e={$$typeof:ap,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sp,_context:e},e.Consumer=e};$.createElement=hf;$.createFactory=function(e){var t=hf.bind(null,e);return t.type=e,t};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:up,render:e}};$.isValidElement=da;$.lazy=function(e){return{$$typeof:dp,_payload:{_status:-1,_result:e},_init:yp}};$.memo=function(e,t){return{$$typeof:fp,type:e,compare:t===void 0?null:t}};$.startTransition=function(e){var t=ml.transition;ml.transition={};try{e()}finally{ml.transition=t}};$.unstable_act=pf;$.useCallback=function(e,t){return De.current.useCallback(e,t)};$.useContext=function(e){return De.current.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e){return De.current.useDeferredValue(e)};$.useEffect=function(e,t){return De.current.useEffect(e,t)};$.useId=function(){return De.current.useId()};$.useImperativeHandle=function(e,t,n){return De.current.useImperativeHandle(e,t,n)};$.useInsertionEffect=function(e,t){return De.current.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return De.current.useLayoutEffect(e,t)};$.useMemo=function(e,t){return De.current.useMemo(e,t)};$.useReducer=function(e,t,n){return De.current.useReducer(e,t,n)};$.useRef=function(e){return De.current.useRef(e)};$.useState=function(e){return De.current.useState(e)};$.useSyncExternalStore=function(e,t,n){return De.current.useSyncExternalStore(e,t,n)};$.useTransition=function(){return De.current.useTransition()};$.version="18.3.1";of.exports=$;var g=of.exports;const vp=np(g);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 wp=g,xp=Symbol.for("react.element"),Sp=Symbol.for("react.fragment"),Ep=Object.prototype.hasOwnProperty,kp=wp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cp={key:!0,ref:!0,__self:!0,__source:!0};function mf(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Ep.call(t,r)&&!Cp.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:xp,type:e,key:l,ref:o,props:i,_owner:kp.current}}to.Fragment=Sp;to.jsx=mf;to.jsxs=mf;lf.exports=to;var C=lf.exports,Jo={},yf={exports:{}},Ye={},gf={exports:{}},vf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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(k,D){var F=k.length;k.push(D);e:for(;0<F;){var W=F-1>>>1,z=k[W];if(0<i(z,D))k[W]=D,k[F]=z,F=W;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var D=k[0],F=k.pop();if(F!==D){k[0]=F;e:for(var W=0,z=k.length,re=z>>>1;W<re;){var Ne=2*(W+1)-1,$t=k[Ne],se=Ne+1,ae=k[se];if(0>i($t,F))se<z&&0>i(ae,$t)?(k[W]=ae,k[se]=F,W=se):(k[W]=$t,k[Ne]=F,W=Ne);else if(se<z&&0>i(ae,F))k[W]=ae,k[se]=F,W=se;else break e}}return D}function i(k,D){var F=k.sortIndex-D.sortIndex;return F!==0?F:k.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],c=1,f=null,m=3,v=!1,w=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(k){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=k)r(u),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(u)}}function x(k){if(S=!1,p(k),!w)if(n(a)!==null)w=!0,be(P);else{var D=n(u);D!==null&&mt(x,D.startTime-k)}}function P(k,D){w=!1,S&&(S=!1,h(R),R=-1),v=!0;var F=m;try{for(p(D),f=n(a);f!==null&&(!(f.expirationTime>D)||k&&!A());){var W=f.callback;if(typeof W=="function"){f.callback=null,m=f.priorityLevel;var z=W(f.expirationTime<=D);D=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(a)&&r(a),p(D)}else r(a);f=n(a)}if(f!==null)var re=!0;else{var Ne=n(u);Ne!==null&&mt(x,Ne.startTime-D),re=!1}return re}finally{f=null,m=F,v=!1}}var O=!1,_=null,R=-1,j=5,N=-1;function A(){return!(e.unstable_now()-N<j)}function ce(){if(_!==null){var k=e.unstable_now();N=k;var D=!0;try{D=_(!0,k)}finally{D?Se():(O=!1,_=null)}}else O=!1}var Se;if(typeof d=="function")Se=function(){d(ce)};else if(typeof MessageChannel<"u"){var xn=new MessageChannel,U=xn.port2;xn.port1.onmessage=ce,Se=function(){U.postMessage(null)}}else Se=function(){E(ce,0)};function be(k){_=k,O||(O=!0,Se())}function mt(k,D){R=E(function(){k(e.unstable_now())},D)}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(k){k.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,be(P))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(k){switch(m){case 1:case 2:case 3:var D=3;break;default:D=m}var F=m;m=D;try{return k()}finally{m=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,D){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var F=m;m=k;try{return D()}finally{m=F}},e.unstable_scheduleCallback=function(k,D,F){var W=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?W+F:W):F=W,k){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=F+z,k={id:c++,callback:D,priorityLevel:k,startTime:F,expirationTime:z,sortIndex:-1},F>W?(k.sortIndex=F,t(u,k),n(a)===null&&k===n(u)&&(S?(h(R),R=-1):S=!0,mt(x,F-W))):(k.sortIndex=z,t(a,k),w||v||(w=!0,be(P))),k},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(k){var D=m;return function(){var F=m;m=D;try{return k.apply(this,arguments)}finally{m=F}}}})(vf);gf.exports=vf;var Pp=gf.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 Rp=g,Ve=Pp;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var wf=new Set,di={};function Kn(e,t){Tr(e,t),Tr(e+"Capture",t)}function Tr(e,t){for(di[e]=t,e=0;e<t.length;e++)wf.add(t[e])}var jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zo=Object.prototype.hasOwnProperty,Np=/^[: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]*$/,gu={},vu={};function Tp(e){return Zo.call(vu,e)?!0:Zo.call(gu,e)?!1:Np.test(e)?vu[e]=!0:(gu[e]=!0,!1)}function Op(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _p(e,t,n,r){if(t===null||typeof t>"u"||Op(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fe(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ha=/[\-:]([a-z])/g;function pa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ha,pa);xe[t]=new Fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ha,pa);xe[t]=new Fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ha,pa);xe[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ma(e,t,n,r){var i=xe.hasOwnProperty(t)?xe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_p(t,n,i,r)&&(n=null),r||i===null?Tp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Wt=Rp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qi=Symbol.for("react.element"),Jn=Symbol.for("react.portal"),Zn=Symbol.for("react.fragment"),ya=Symbol.for("react.strict_mode"),es=Symbol.for("react.profiler"),xf=Symbol.for("react.provider"),Sf=Symbol.for("react.context"),ga=Symbol.for("react.forward_ref"),ts=Symbol.for("react.suspense"),ns=Symbol.for("react.suspense_list"),va=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),Ef=Symbol.for("react.offscreen"),wu=Symbol.iterator;function Wr(e){return e===null||typeof e!="object"?null:(e=wu&&e[wu]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Object.assign,ko;function Xr(e){if(ko===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ko=t&&t[1]||""}return`
|
|
34
|
+
`+ko+e}var Co=!1;function Po(e,t){if(!e||Co)return"";Co=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),o=i.length-1,s=l.length-1;1<=o&&0<=s&&i[o]!==l[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==l[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==l[s]){var a=`
|
|
37
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xr(e):""}function Mp(e){switch(e.tag){case 5:return Xr(e.type);case 16:return Xr("Lazy");case 13:return Xr("Suspense");case 19:return Xr("SuspenseList");case 0:case 2:case 15:return e=Po(e.type,!1),e;case 11:return e=Po(e.type.render,!1),e;case 1:return e=Po(e.type,!0),e;default:return""}}function rs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Zn:return"Fragment";case Jn:return"Portal";case es:return"Profiler";case ya:return"StrictMode";case ts:return"Suspense";case ns:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sf:return(e.displayName||"Context")+".Consumer";case xf:return(e._context.displayName||"Context")+".Provider";case ga:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case va:return t=e.displayName||null,t!==null?t:rs(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return rs(e(t))}catch{}}return null}function Lp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rs(t);case 8:return t===ya?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dp(e){var t=kf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xi(e){e._valueTracker||(e._valueTracker=Dp(e))}function Cf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function is(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Pf(e,t){t=t.checked,t!=null&&ma(e,"checked",t,!1)}function ls(e,t){Pf(e,t);var n=mn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?os(e,t.type,n):t.hasOwnProperty("defaultValue")&&os(e,t.type,mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Su(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function os(e,t,n){(t!=="number"||Tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jr=Array.isArray;function cr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+mn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ss(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Eu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(Jr(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:mn(n)}}function Rf(e,t){var n=mn(t.value),r=mn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ku(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function as(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ji,Tf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ji=Ji||document.createElement("div"),Ji.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ni={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fp=["Webkit","ms","Moz","O"];Object.keys(ni).forEach(function(e){Fp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ni[t]=ni[e]})});function Of(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ni.hasOwnProperty(e)&&ni[e]?(""+t).trim():t+"px"}function _f(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Of(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jp=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function us(e,t){if(t){if(jp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function cs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fs=null;function wa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ds=null,fr=null,dr=null;function Cu(e){if(e=$i(e)){if(typeof ds!="function")throw Error(T(280));var t=e.stateNode;t&&(t=oo(t),ds(e.stateNode,e.type,t))}}function Mf(e){fr?dr?dr.push(e):dr=[e]:fr=e}function Lf(){if(fr){var e=fr,t=dr;if(dr=fr=null,Cu(e),t)for(e=0;e<t.length;e++)Cu(t[e])}}function Df(e,t){return e(t)}function Ff(){}var Ro=!1;function jf(e,t,n){if(Ro)return e(t,n);Ro=!0;try{return Df(e,t,n)}finally{Ro=!1,(fr!==null||dr!==null)&&(Ff(),Lf())}}function pi(e,t){var n=e.stateNode;if(n===null)return null;var r=oo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var hs=!1;if(jt)try{var $r={};Object.defineProperty($r,"passive",{get:function(){hs=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{hs=!1}function Ip(e,t,n,r,i,l,o,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ri=!1,Ol=null,_l=!1,ps=null,zp={onError:function(e){ri=!0,Ol=e}};function Ap(e,t,n,r,i,l,o,s,a){ri=!1,Ol=null,Ip.apply(zp,arguments)}function Up(e,t,n,r,i,l,o,s,a){if(Ap.apply(this,arguments),ri){if(ri){var u=Ol;ri=!1,Ol=null}else throw Error(T(198));_l||(_l=!0,ps=u)}}function bn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function If(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 Pu(e){if(bn(e)!==e)throw Error(T(188))}function Wp(e){var t=e.alternate;if(!t){if(t=bn(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Pu(i),e;if(l===r)return Pu(i),t;l=l.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o){for(s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function zf(e){return e=Wp(e),e!==null?Af(e):null}function Af(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Af(e);if(t!==null)return t;e=e.sibling}return null}var Uf=Ve.unstable_scheduleCallback,Ru=Ve.unstable_cancelCallback,$p=Ve.unstable_shouldYield,Bp=Ve.unstable_requestPaint,oe=Ve.unstable_now,Qp=Ve.unstable_getCurrentPriorityLevel,xa=Ve.unstable_ImmediatePriority,Wf=Ve.unstable_UserBlockingPriority,Ml=Ve.unstable_NormalPriority,Hp=Ve.unstable_LowPriority,$f=Ve.unstable_IdlePriority,no=null,kt=null;function Vp(e){if(kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(no,e,void 0,(e.current.flags&128)===128)}catch{}}var ct=Math.clz32?Math.clz32:bp,Yp=Math.log,Kp=Math.LN2;function bp(e){return e>>>=0,e===0?32:31-(Yp(e)/Kp|0)|0}var Zi=64,el=4194304;function Zr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ll(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Zr(s):(l&=o,l!==0&&(r=Zr(l)))}else o=n&~i,o!==0?r=Zr(o):l!==0&&(r=Zr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ct(t),i=1<<n,r|=e[n],t&=~i;return r}function Gp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-ct(l),s=1<<o,a=i[o];a===-1?(!(s&n)||s&r)&&(i[o]=Gp(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function ms(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Bf(){var e=Zi;return Zi<<=1,!(Zi&4194240)&&(Zi=64),e}function No(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function Xp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ct(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function Sa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ct(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var K=0;function Qf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Hf,Ea,Vf,Yf,Kf,ys=!1,tl=[],on=null,sn=null,an=null,mi=new Map,yi=new Map,Kt=[],Jp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nu(e,t){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":sn=null;break;case"mouseover":case"mouseout":an=null;break;case"pointerover":case"pointerout":mi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yi.delete(t.pointerId)}}function Br(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=$i(t),t!==null&&Ea(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Zp(e,t,n,r,i){switch(t){case"focusin":return on=Br(on,e,t,n,r,i),!0;case"dragenter":return sn=Br(sn,e,t,n,r,i),!0;case"mouseover":return an=Br(an,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return mi.set(l,Br(mi.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,yi.set(l,Br(yi.get(l)||null,e,t,n,r,i)),!0}return!1}function bf(e){var t=Pn(e.target);if(t!==null){var n=bn(t);if(n!==null){if(t=n.tag,t===13){if(t=If(n),t!==null){e.blockedOn=t,Kf(e.priority,function(){Vf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fs=r,n.target.dispatchEvent(r),fs=null}else return t=$i(n),t!==null&&Ea(t),e.blockedOn=n,!1;t.shift()}return!0}function Tu(e,t,n){yl(e)&&n.delete(t)}function em(){ys=!1,on!==null&&yl(on)&&(on=null),sn!==null&&yl(sn)&&(sn=null),an!==null&&yl(an)&&(an=null),mi.forEach(Tu),yi.forEach(Tu)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,ys||(ys=!0,Ve.unstable_scheduleCallback(Ve.unstable_NormalPriority,em)))}function gi(e){function t(i){return Qr(i,e)}if(0<tl.length){Qr(tl[0],e);for(var n=1;n<tl.length;n++){var r=tl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(on!==null&&Qr(on,e),sn!==null&&Qr(sn,e),an!==null&&Qr(an,e),mi.forEach(t),yi.forEach(t),n=0;n<Kt.length;n++)r=Kt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kt.length&&(n=Kt[0],n.blockedOn===null);)bf(n),n.blockedOn===null&&Kt.shift()}var hr=Wt.ReactCurrentBatchConfig,Dl=!0;function tm(e,t,n,r){var i=K,l=hr.transition;hr.transition=null;try{K=1,ka(e,t,n,r)}finally{K=i,hr.transition=l}}function nm(e,t,n,r){var i=K,l=hr.transition;hr.transition=null;try{K=4,ka(e,t,n,r)}finally{K=i,hr.transition=l}}function ka(e,t,n,r){if(Dl){var i=gs(e,t,n,r);if(i===null)zo(e,t,r,Fl,n),Nu(e,r);else if(Zp(i,e,t,n,r))r.stopPropagation();else if(Nu(e,r),t&4&&-1<Jp.indexOf(e)){for(;i!==null;){var l=$i(i);if(l!==null&&Hf(l),l=gs(e,t,n,r),l===null&&zo(e,t,r,Fl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else zo(e,t,r,null,n)}}var Fl=null;function gs(e,t,n,r){if(Fl=null,e=wa(r),e=Pn(e),e!==null)if(t=bn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=If(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fl=e,null}function Gf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qp()){case xa:return 1;case Wf:return 4;case Ml:case Hp:return 16;case $f:return 536870912;default:return 16}default:return 16}}var rn=null,Ca=null,gl=null;function qf(){if(gl)return gl;var e,t=Ca,n=t.length,r,i="value"in rn?rn.value:rn.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return gl=i.slice(e,1<r?1-r:void 0)}function vl(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 nl(){return!0}function Ou(){return!1}function Ke(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?nl:Ou,this.isPropagationStopped=Ou,this}return ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nl)},persist:function(){},isPersistent:nl}),t}var Ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pa=Ke(Ir),Wi=ne({},Ir,{view:0,detail:0}),rm=Ke(Wi),To,Oo,Hr,ro=ne({},Wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ra,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!==Hr&&(Hr&&e.type==="mousemove"?(To=e.screenX-Hr.screenX,Oo=e.screenY-Hr.screenY):Oo=To=0,Hr=e),To)},movementY:function(e){return"movementY"in e?e.movementY:Oo}}),_u=Ke(ro),im=ne({},ro,{dataTransfer:0}),lm=Ke(im),om=ne({},Wi,{relatedTarget:0}),_o=Ke(om),sm=ne({},Ir,{animationName:0,elapsedTime:0,pseudoElement:0}),am=Ke(sm),um=ne({},Ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cm=Ke(um),fm=ne({},Ir,{data:0}),Mu=Ke(fm),dm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hm={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"},pm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pm[e])?!!t[e]:!1}function Ra(){return mm}var ym=ne({},Wi,{key:function(e){if(e.key){var t=dm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ra,charCode:function(e){return e.type==="keypress"?vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gm=Ke(ym),vm=ne({},ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lu=Ke(vm),wm=ne({},Wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ra}),xm=Ke(wm),Sm=ne({},Ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),Em=Ke(Sm),km=ne({},ro,{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}),Cm=Ke(km),Pm=[9,13,27,32],Na=jt&&"CompositionEvent"in window,ii=null;jt&&"documentMode"in document&&(ii=document.documentMode);var Rm=jt&&"TextEvent"in window&&!ii,Xf=jt&&(!Na||ii&&8<ii&&11>=ii),Du=" ",Fu=!1;function Jf(e,t){switch(e){case"keyup":return Pm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function Nm(e,t){switch(e){case"compositionend":return Zf(t);case"keypress":return t.which!==32?null:(Fu=!0,Du);case"textInput":return e=t.data,e===Du&&Fu?null:e;default:return null}}function Tm(e,t){if(er)return e==="compositionend"||!Na&&Jf(e,t)?(e=qf(),gl=Ca=rn=null,er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xf&&t.locale!=="ko"?null:t.data;default:return null}}var Om={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 ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Om[e.type]:t==="textarea"}function ed(e,t,n,r){Mf(r),t=jl(t,"onChange"),0<t.length&&(n=new Pa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var li=null,vi=null;function _m(e){fd(e,0)}function io(e){var t=rr(e);if(Cf(t))return e}function Mm(e,t){if(e==="change")return t}var td=!1;if(jt){var Mo;if(jt){var Lo="oninput"in document;if(!Lo){var Iu=document.createElement("div");Iu.setAttribute("oninput","return;"),Lo=typeof Iu.oninput=="function"}Mo=Lo}else Mo=!1;td=Mo&&(!document.documentMode||9<document.documentMode)}function zu(){li&&(li.detachEvent("onpropertychange",nd),vi=li=null)}function nd(e){if(e.propertyName==="value"&&io(vi)){var t=[];ed(t,vi,e,wa(e)),jf(_m,t)}}function Lm(e,t,n){e==="focusin"?(zu(),li=t,vi=n,li.attachEvent("onpropertychange",nd)):e==="focusout"&&zu()}function Dm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return io(vi)}function Fm(e,t){if(e==="click")return io(t)}function jm(e,t){if(e==="input"||e==="change")return io(t)}function Im(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:Im;function wi(e,t){if(dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Zo.call(t,i)||!dt(e[i],t[i]))return!1}return!0}function Au(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uu(e,t){var n=Au(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Au(n)}}function rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function id(){for(var e=window,t=Tl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tl(e.document)}return t}function Ta(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zm(e){var t=id(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rd(n.ownerDocument.documentElement,n)){if(r!==null&&Ta(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Uu(n,l);var o=Uu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Am=jt&&"documentMode"in document&&11>=document.documentMode,tr=null,vs=null,oi=null,ws=!1;function Wu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ws||tr==null||tr!==Tl(r)||(r=tr,"selectionStart"in r&&Ta(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),oi&&wi(oi,r)||(oi=r,r=jl(vs,"onSelect"),0<r.length&&(t=new Pa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=tr)))}function rl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nr={animationend:rl("Animation","AnimationEnd"),animationiteration:rl("Animation","AnimationIteration"),animationstart:rl("Animation","AnimationStart"),transitionend:rl("Transition","TransitionEnd")},Do={},ld={};jt&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete nr.animationend.animation,delete nr.animationiteration.animation,delete nr.animationstart.animation),"TransitionEvent"in window||delete nr.transitionend.transition);function lo(e){if(Do[e])return Do[e];if(!nr[e])return e;var t=nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ld)return Do[e]=t[n];return e}var od=lo("animationend"),sd=lo("animationiteration"),ad=lo("animationstart"),ud=lo("transitionend"),cd=new Map,$u="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gn(e,t){cd.set(e,t),Kn(t,[e])}for(var Fo=0;Fo<$u.length;Fo++){var jo=$u[Fo],Um=jo.toLowerCase(),Wm=jo[0].toUpperCase()+jo.slice(1);gn(Um,"on"+Wm)}gn(od,"onAnimationEnd");gn(sd,"onAnimationIteration");gn(ad,"onAnimationStart");gn("dblclick","onDoubleClick");gn("focusin","onFocus");gn("focusout","onBlur");gn(ud,"onTransitionEnd");Tr("onMouseEnter",["mouseout","mouseover"]);Tr("onMouseLeave",["mouseout","mouseover"]);Tr("onPointerEnter",["pointerout","pointerover"]);Tr("onPointerLeave",["pointerout","pointerover"]);Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="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(" "),$m=new Set("cancel close invalid load scroll toggle".split(" ").concat(ei));function Bu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Up(r,t,void 0,e),e.currentTarget=null}function fd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&i.isPropagationStopped())break e;Bu(i,s,u),l=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&i.isPropagationStopped())break e;Bu(i,s,u),l=a}}}if(_l)throw e=ps,_l=!1,ps=null,e}function q(e,t){var n=t[Cs];n===void 0&&(n=t[Cs]=new Set);var r=e+"__bubble";n.has(r)||(dd(t,e,2,!1),n.add(r))}function Io(e,t,n){var r=0;t&&(r|=4),dd(n,e,r,t)}var il="_reactListening"+Math.random().toString(36).slice(2);function xi(e){if(!e[il]){e[il]=!0,wf.forEach(function(n){n!=="selectionchange"&&($m.has(n)||Io(n,!1,e),Io(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[il]||(t[il]=!0,Io("selectionchange",!1,t))}}function dd(e,t,n,r){switch(Gf(t)){case 1:var i=tm;break;case 4:i=nm;break;default:i=ka}n=i.bind(null,t,n,e),i=void 0,!hs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zo(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Pn(s),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}s=s.parentNode}}r=r.return}jf(function(){var u=l,c=wa(n),f=[];e:{var m=cd.get(e);if(m!==void 0){var v=Pa,w=e;switch(e){case"keypress":if(vl(n)===0)break e;case"keydown":case"keyup":v=gm;break;case"focusin":w="focus",v=_o;break;case"focusout":w="blur",v=_o;break;case"beforeblur":case"afterblur":v=_o;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=_u;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=lm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=xm;break;case od:case sd:case ad:v=am;break;case ud:v=Em;break;case"scroll":v=rm;break;case"wheel":v=Cm;break;case"copy":case"cut":case"paste":v=cm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Lu}var S=(t&4)!==0,E=!S&&e==="scroll",h=S?m!==null?m+"Capture":null:m;S=[];for(var d=u,p;d!==null;){p=d;var x=p.stateNode;if(p.tag===5&&x!==null&&(p=x,h!==null&&(x=pi(d,h),x!=null&&S.push(Si(d,x,p)))),E)break;d=d.return}0<S.length&&(m=new v(m,w,null,n,c),f.push({event:m,listeners:S}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==fs&&(w=n.relatedTarget||n.fromElement)&&(Pn(w)||w[It]))break e;if((v||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=u,w=w?Pn(w):null,w!==null&&(E=bn(w),w!==E||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=u),v!==w)){if(S=_u,x="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(S=Lu,x="onPointerLeave",h="onPointerEnter",d="pointer"),E=v==null?m:rr(v),p=w==null?m:rr(w),m=new S(x,d+"leave",v,n,c),m.target=E,m.relatedTarget=p,x=null,Pn(c)===u&&(S=new S(h,d+"enter",w,n,c),S.target=p,S.relatedTarget=E,x=S),E=x,v&&w)t:{for(S=v,h=w,d=0,p=S;p;p=qn(p))d++;for(p=0,x=h;x;x=qn(x))p++;for(;0<d-p;)S=qn(S),d--;for(;0<p-d;)h=qn(h),p--;for(;d--;){if(S===h||h!==null&&S===h.alternate)break t;S=qn(S),h=qn(h)}S=null}else S=null;v!==null&&Qu(f,m,v,S,!1),w!==null&&E!==null&&Qu(f,E,w,S,!0)}}e:{if(m=u?rr(u):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var P=Mm;else if(ju(m))if(td)P=jm;else{P=Dm;var O=Lm}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=Fm);if(P&&(P=P(e,u))){ed(f,P,n,c);break e}O&&O(e,m,u),e==="focusout"&&(O=m._wrapperState)&&O.controlled&&m.type==="number"&&os(m,"number",m.value)}switch(O=u?rr(u):window,e){case"focusin":(ju(O)||O.contentEditable==="true")&&(tr=O,vs=u,oi=null);break;case"focusout":oi=vs=tr=null;break;case"mousedown":ws=!0;break;case"contextmenu":case"mouseup":case"dragend":ws=!1,Wu(f,n,c);break;case"selectionchange":if(Am)break;case"keydown":case"keyup":Wu(f,n,c)}var _;if(Na)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else er?Jf(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Xf&&n.locale!=="ko"&&(er||R!=="onCompositionStart"?R==="onCompositionEnd"&&er&&(_=qf()):(rn=c,Ca="value"in rn?rn.value:rn.textContent,er=!0)),O=jl(u,R),0<O.length&&(R=new Mu(R,e,null,n,c),f.push({event:R,listeners:O}),_?R.data=_:(_=Zf(n),_!==null&&(R.data=_)))),(_=Rm?Nm(e,n):Tm(e,n))&&(u=jl(u,"onBeforeInput"),0<u.length&&(c=new Mu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=_))}fd(f,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=pi(e,n),l!=null&&r.unshift(Si(e,l,i)),l=pi(e,t),l!=null&&r.push(Si(e,l,i))),e=e.return}return r}function qn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qu(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=pi(n,l),a!=null&&o.unshift(Si(n,a,s))):i||(a=pi(n,l),a!=null&&o.push(Si(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Bm=/\r\n?/g,Qm=/\u0000|\uFFFD/g;function Hu(e){return(typeof e=="string"?e:""+e).replace(Bm,`
|
|
38
|
+
`).replace(Qm,"")}function ll(e,t,n){if(t=Hu(t),Hu(e)!==t&&n)throw Error(T(425))}function Il(){}var xs=null,Ss=null;function Es(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ks=typeof setTimeout=="function"?setTimeout:void 0,Hm=typeof clearTimeout=="function"?clearTimeout:void 0,Vu=typeof Promise=="function"?Promise:void 0,Vm=typeof queueMicrotask=="function"?queueMicrotask:typeof Vu<"u"?function(e){return Vu.resolve(null).then(e).catch(Ym)}:ks;function Ym(e){setTimeout(function(){throw e})}function Ao(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),gi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);gi(t)}function un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Yu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var zr=Math.random().toString(36).slice(2),Et="__reactFiber$"+zr,Ei="__reactProps$"+zr,It="__reactContainer$"+zr,Cs="__reactEvents$"+zr,Km="__reactListeners$"+zr,bm="__reactHandles$"+zr;function Pn(e){var t=e[Et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[It]||n[Et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Yu(e);e!==null;){if(n=e[Et])return n;e=Yu(e)}return t}e=n,n=e.parentNode}return null}function $i(e){return e=e[Et]||e[It],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function rr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function oo(e){return e[Ei]||null}var Ps=[],ir=-1;function vn(e){return{current:e}}function X(e){0>ir||(e.current=Ps[ir],Ps[ir]=null,ir--)}function b(e,t){ir++,Ps[ir]=e.current,e.current=t}var yn={},Re=vn(yn),Ue=vn(!1),Wn=yn;function Or(e,t){var n=e.type.contextTypes;if(!n)return yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function zl(){X(Ue),X(Re)}function Ku(e,t,n){if(Re.current!==yn)throw Error(T(168));b(Re,t),b(Ue,n)}function hd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,Lp(e)||"Unknown",i));return ne({},n,r)}function Al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yn,Wn=Re.current,b(Re,e),b(Ue,Ue.current),!0}function bu(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=hd(e,t,Wn),r.__reactInternalMemoizedMergedChildContext=e,X(Ue),X(Re),b(Re,e)):X(Ue),b(Ue,n)}var Tt=null,so=!1,Uo=!1;function pd(e){Tt===null?Tt=[e]:Tt.push(e)}function Gm(e){so=!0,pd(e)}function wn(){if(!Uo&&Tt!==null){Uo=!0;var e=0,t=K;try{var n=Tt;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tt=null,so=!1}catch(i){throw Tt!==null&&(Tt=Tt.slice(e+1)),Uf(xa,wn),i}finally{K=t,Uo=!1}}return null}var lr=[],or=0,Ul=null,Wl=0,Xe=[],Je=0,$n=null,Mt=1,Lt="";function En(e,t){lr[or++]=Wl,lr[or++]=Ul,Ul=e,Wl=t}function md(e,t,n){Xe[Je++]=Mt,Xe[Je++]=Lt,Xe[Je++]=$n,$n=e;var r=Mt;e=Lt;var i=32-ct(r)-1;r&=~(1<<i),n+=1;var l=32-ct(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Mt=1<<32-ct(t)+i|n<<i|r,Lt=l+e}else Mt=1<<l|n<<i|r,Lt=e}function Oa(e){e.return!==null&&(En(e,1),md(e,1,0))}function _a(e){for(;e===Ul;)Ul=lr[--or],lr[or]=null,Wl=lr[--or],lr[or]=null;for(;e===$n;)$n=Xe[--Je],Xe[Je]=null,Lt=Xe[--Je],Xe[Je]=null,Mt=Xe[--Je],Xe[Je]=null}var He=null,Qe=null,J=!1,ut=null;function yd(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Gu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,He=e,Qe=un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,He=e,Qe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=$n!==null?{id:Mt,overflow:Lt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,He=e,Qe=null,!0):!1;default:return!1}}function Rs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ns(e){if(J){var t=Qe;if(t){var n=t;if(!Gu(e,t)){if(Rs(e))throw Error(T(418));t=un(n.nextSibling);var r=He;t&&Gu(e,t)?yd(r,n):(e.flags=e.flags&-4097|2,J=!1,He=e)}}else{if(Rs(e))throw Error(T(418));e.flags=e.flags&-4097|2,J=!1,He=e}}}function qu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;He=e}function ol(e){if(e!==He)return!1;if(!J)return qu(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Es(e.type,e.memoizedProps)),t&&(t=Qe)){if(Rs(e))throw gd(),Error(T(418));for(;t;)yd(e,t),t=un(t.nextSibling)}if(qu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qe=un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qe=null}}else Qe=He?un(e.stateNode.nextSibling):null;return!0}function gd(){for(var e=Qe;e;)e=un(e.nextSibling)}function _r(){Qe=He=null,J=!1}function Ma(e){ut===null?ut=[e]:ut.push(e)}var qm=Wt.ReactCurrentBatchConfig;function Vr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var s=i.refs;o===null?delete s[l]:s[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function sl(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xu(e){var t=e._init;return t(e._payload)}function vd(e){function t(h,d){if(e){var p=h.deletions;p===null?(h.deletions=[d],h.flags|=16):p.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function i(h,d){return h=hn(h,d),h.index=0,h.sibling=null,h}function l(h,d,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<d?(h.flags|=2,d):p):(h.flags|=2,d)):(h.flags|=1048576,d)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,d,p,x){return d===null||d.tag!==6?(d=Yo(p,h.mode,x),d.return=h,d):(d=i(d,p),d.return=h,d)}function a(h,d,p,x){var P=p.type;return P===Zn?c(h,d,p.props.children,x,p.key):d!==null&&(d.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Vt&&Xu(P)===d.type)?(x=i(d,p.props),x.ref=Vr(h,d,p),x.return=h,x):(x=Pl(p.type,p.key,p.props,null,h.mode,x),x.ref=Vr(h,d,p),x.return=h,x)}function u(h,d,p,x){return d===null||d.tag!==4||d.stateNode.containerInfo!==p.containerInfo||d.stateNode.implementation!==p.implementation?(d=Ko(p,h.mode,x),d.return=h,d):(d=i(d,p.children||[]),d.return=h,d)}function c(h,d,p,x,P){return d===null||d.tag!==7?(d=Un(p,h.mode,x,P),d.return=h,d):(d=i(d,p),d.return=h,d)}function f(h,d,p){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Yo(""+d,h.mode,p),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case qi:return p=Pl(d.type,d.key,d.props,null,h.mode,p),p.ref=Vr(h,null,d),p.return=h,p;case Jn:return d=Ko(d,h.mode,p),d.return=h,d;case Vt:var x=d._init;return f(h,x(d._payload),p)}if(Jr(d)||Wr(d))return d=Un(d,h.mode,p,null),d.return=h,d;sl(h,d)}return null}function m(h,d,p,x){var P=d!==null?d.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return P!==null?null:s(h,d,""+p,x);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case qi:return p.key===P?a(h,d,p,x):null;case Jn:return p.key===P?u(h,d,p,x):null;case Vt:return P=p._init,m(h,d,P(p._payload),x)}if(Jr(p)||Wr(p))return P!==null?null:c(h,d,p,x,null);sl(h,p)}return null}function v(h,d,p,x,P){if(typeof x=="string"&&x!==""||typeof x=="number")return h=h.get(p)||null,s(d,h,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case qi:return h=h.get(x.key===null?p:x.key)||null,a(d,h,x,P);case Jn:return h=h.get(x.key===null?p:x.key)||null,u(d,h,x,P);case Vt:var O=x._init;return v(h,d,p,O(x._payload),P)}if(Jr(x)||Wr(x))return h=h.get(p)||null,c(d,h,x,P,null);sl(d,x)}return null}function w(h,d,p,x){for(var P=null,O=null,_=d,R=d=0,j=null;_!==null&&R<p.length;R++){_.index>R?(j=_,_=null):j=_.sibling;var N=m(h,_,p[R],x);if(N===null){_===null&&(_=j);break}e&&_&&N.alternate===null&&t(h,_),d=l(N,d,R),O===null?P=N:O.sibling=N,O=N,_=j}if(R===p.length)return n(h,_),J&&En(h,R),P;if(_===null){for(;R<p.length;R++)_=f(h,p[R],x),_!==null&&(d=l(_,d,R),O===null?P=_:O.sibling=_,O=_);return J&&En(h,R),P}for(_=r(h,_);R<p.length;R++)j=v(_,h,R,p[R],x),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?R:j.key),d=l(j,d,R),O===null?P=j:O.sibling=j,O=j);return e&&_.forEach(function(A){return t(h,A)}),J&&En(h,R),P}function S(h,d,p,x){var P=Wr(p);if(typeof P!="function")throw Error(T(150));if(p=P.call(p),p==null)throw Error(T(151));for(var O=P=null,_=d,R=d=0,j=null,N=p.next();_!==null&&!N.done;R++,N=p.next()){_.index>R?(j=_,_=null):j=_.sibling;var A=m(h,_,N.value,x);if(A===null){_===null&&(_=j);break}e&&_&&A.alternate===null&&t(h,_),d=l(A,d,R),O===null?P=A:O.sibling=A,O=A,_=j}if(N.done)return n(h,_),J&&En(h,R),P;if(_===null){for(;!N.done;R++,N=p.next())N=f(h,N.value,x),N!==null&&(d=l(N,d,R),O===null?P=N:O.sibling=N,O=N);return J&&En(h,R),P}for(_=r(h,_);!N.done;R++,N=p.next())N=v(_,h,R,N.value,x),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?R:N.key),d=l(N,d,R),O===null?P=N:O.sibling=N,O=N);return e&&_.forEach(function(ce){return t(h,ce)}),J&&En(h,R),P}function E(h,d,p,x){if(typeof p=="object"&&p!==null&&p.type===Zn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case qi:e:{for(var P=p.key,O=d;O!==null;){if(O.key===P){if(P=p.type,P===Zn){if(O.tag===7){n(h,O.sibling),d=i(O,p.props.children),d.return=h,h=d;break e}}else if(O.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Vt&&Xu(P)===O.type){n(h,O.sibling),d=i(O,p.props),d.ref=Vr(h,O,p),d.return=h,h=d;break e}n(h,O);break}else t(h,O);O=O.sibling}p.type===Zn?(d=Un(p.props.children,h.mode,x,p.key),d.return=h,h=d):(x=Pl(p.type,p.key,p.props,null,h.mode,x),x.ref=Vr(h,d,p),x.return=h,h=x)}return o(h);case Jn:e:{for(O=p.key;d!==null;){if(d.key===O)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){n(h,d.sibling),d=i(d,p.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=Ko(p,h.mode,x),d.return=h,h=d}return o(h);case Vt:return O=p._init,E(h,d,O(p._payload),x)}if(Jr(p))return w(h,d,p,x);if(Wr(p))return S(h,d,p,x);sl(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(n(h,d.sibling),d=i(d,p),d.return=h,h=d):(n(h,d),d=Yo(p,h.mode,x),d.return=h,h=d),o(h)):n(h,d)}return E}var Mr=vd(!0),wd=vd(!1),$l=vn(null),Bl=null,sr=null,La=null;function Da(){La=sr=Bl=null}function Fa(e){var t=$l.current;X($l),e._currentValue=t}function Ts(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function pr(e,t){Bl=e,La=sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(La!==e)if(e={context:e,memoizedValue:t,next:null},sr===null){if(Bl===null)throw Error(T(308));sr=e,Bl.dependencies={lanes:0,firstContext:e}}else sr=sr.next=e;return t}var Rn=null;function ja(e){Rn===null?Rn=[e]:Rn.push(e)}function xd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ja(t)):(n.next=i.next,i.next=n),t.interleaved=n,zt(e,r)}function zt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Yt=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Dt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,zt(e,n)}return i=r.interleaved,i===null?(t.next=t,ja(r)):(t.next=i.next,i.next=t),r.interleaved=t,zt(e,n)}function wl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sa(e,n)}}function Ju(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ql(e,t,n,r){var i=e.updateQueue;Yt=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(l!==null){var f=i.baseState;o=0,c=u=a=null,s=l;do{var m=s.lane,v=s.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,S=s;switch(m=t,v=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){f=w.call(v,f,m);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,m=typeof w=="function"?w.call(v,f,m):w,m==null)break e;f=ne({},f,m);break e;case 2:Yt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[s]:m.push(s))}else v={eventTime:v,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=v,a=f):c=c.next=v,o|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Qn|=o,e.lanes=o,e.memoizedState=f}}function Zu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var Bi={},Ct=vn(Bi),ki=vn(Bi),Ci=vn(Bi);function Nn(e){if(e===Bi)throw Error(T(174));return e}function za(e,t){switch(b(Ci,t),b(ki,e),b(Ct,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:as(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=as(t,e)}X(Ct),b(Ct,t)}function Lr(){X(Ct),X(ki),X(Ci)}function Ed(e){Nn(Ci.current);var t=Nn(Ct.current),n=as(t,e.type);t!==n&&(b(ki,e),b(Ct,n))}function Aa(e){ki.current===e&&(X(Ct),X(ki))}var Z=vn(0);function Hl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wo=[];function Ua(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var xl=Wt.ReactCurrentDispatcher,$o=Wt.ReactCurrentBatchConfig,Bn=0,ee=null,fe=null,pe=null,Vl=!1,si=!1,Pi=0,Xm=0;function ke(){throw Error(T(321))}function Wa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dt(e[n],t[n]))return!1;return!0}function $a(e,t,n,r,i,l){if(Bn=l,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xl.current=e===null||e.memoizedState===null?ty:ny,e=n(r,i),si){l=0;do{if(si=!1,Pi=0,25<=l)throw Error(T(301));l+=1,pe=fe=null,t.updateQueue=null,xl.current=ry,e=n(r,i)}while(si)}if(xl.current=Yl,t=fe!==null&&fe.next!==null,Bn=0,pe=fe=ee=null,Vl=!1,t)throw Error(T(300));return e}function Ba(){var e=Pi!==0;return Pi=0,e}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pe===null?ee.memoizedState=pe=e:pe=pe.next=e,pe}function nt(){if(fe===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=pe===null?ee.memoizedState:pe.next;if(t!==null)pe=t,fe=e;else{if(e===null)throw Error(T(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},pe===null?ee.memoizedState=pe=e:pe=pe.next=e}return pe}function Ri(e,t){return typeof t=="function"?t(e):t}function Bo(e){var t=nt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=fe,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var s=o=null,a=null,u=l;do{var c=u.lane;if((Bn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=f,o=r):a=a.next=f,ee.lanes|=c,Qn|=c}u=u.next}while(u!==null&&u!==l);a===null?o=r:a.next=s,dt(r,t.memoizedState)||(Ae=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,ee.lanes|=l,Qn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Qo(e){var t=nt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);dt(l,t.memoizedState)||(Ae=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function kd(){}function Cd(e,t){var n=ee,r=nt(),i=t(),l=!dt(r.memoizedState,i);if(l&&(r.memoizedState=i,Ae=!0),r=r.queue,Qa(Nd.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||pe!==null&&pe.memoizedState.tag&1){if(n.flags|=2048,Ni(9,Rd.bind(null,n,r,i,t),void 0,null),me===null)throw Error(T(349));Bn&30||Pd(n,t,i)}return i}function Pd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Rd(e,t,n,r){t.value=n,t.getSnapshot=r,Td(t)&&Od(e)}function Nd(e,t,n){return n(function(){Td(t)&&Od(e)})}function Td(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dt(e,n)}catch{return!0}}function Od(e){var t=zt(e,1);t!==null&&ft(t,e,1,-1)}function ec(e){var t=vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},t.queue=e,e=e.dispatch=ey.bind(null,ee,e),[t.memoizedState,e]}function Ni(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function _d(){return nt().memoizedState}function Sl(e,t,n,r){var i=vt();ee.flags|=e,i.memoizedState=Ni(1|t,n,void 0,r===void 0?null:r)}function ao(e,t,n,r){var i=nt();r=r===void 0?null:r;var l=void 0;if(fe!==null){var o=fe.memoizedState;if(l=o.destroy,r!==null&&Wa(r,o.deps)){i.memoizedState=Ni(t,n,l,r);return}}ee.flags|=e,i.memoizedState=Ni(1|t,n,l,r)}function tc(e,t){return Sl(8390656,8,e,t)}function Qa(e,t){return ao(2048,8,e,t)}function Md(e,t){return ao(4,2,e,t)}function Ld(e,t){return ao(4,4,e,t)}function Dd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Fd(e,t,n){return n=n!=null?n.concat([e]):null,ao(4,4,Dd.bind(null,t,e),n)}function Ha(){}function jd(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Id(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zd(e,t,n){return Bn&21?(dt(n,t)||(n=Bf(),ee.lanes|=n,Qn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ae=!0),e.memoizedState=n)}function Jm(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=$o.transition;$o.transition={};try{e(!1),t()}finally{K=n,$o.transition=r}}function Ad(){return nt().memoizedState}function Zm(e,t,n){var r=dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ud(e))Wd(t,n);else if(n=xd(e,t,n,r),n!==null){var i=Le();ft(n,e,r,i),$d(n,t,r)}}function ey(e,t,n){var r=dn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ud(e))Wd(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,dt(s,o)){var a=t.interleaved;a===null?(i.next=i,ja(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=xd(e,t,i,r),n!==null&&(i=Le(),ft(n,e,r,i),$d(n,t,r))}}function Ud(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Wd(e,t){si=Vl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $d(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sa(e,n)}}var Yl={readContext:tt,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},ty={readContext:tt,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:tc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sl(4194308,4,Dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sl(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Zm.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:ec,useDebugValue:Ha,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=ec(!1),t=e[0];return e=Jm.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,i=vt();if(J){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),me===null)throw Error(T(349));Bn&30||Pd(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,tc(Nd.bind(null,r,l,e),[e]),r.flags|=2048,Ni(9,Rd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=vt(),t=me.identifierPrefix;if(J){var n=Lt,r=Mt;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Xm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ny={readContext:tt,useCallback:jd,useContext:tt,useEffect:Qa,useImperativeHandle:Fd,useInsertionEffect:Md,useLayoutEffect:Ld,useMemo:Id,useReducer:Bo,useRef:_d,useState:function(){return Bo(Ri)},useDebugValue:Ha,useDeferredValue:function(e){var t=nt();return zd(t,fe.memoizedState,e)},useTransition:function(){var e=Bo(Ri)[0],t=nt().memoizedState;return[e,t]},useMutableSource:kd,useSyncExternalStore:Cd,useId:Ad,unstable_isNewReconciler:!1},ry={readContext:tt,useCallback:jd,useContext:tt,useEffect:Qa,useImperativeHandle:Fd,useInsertionEffect:Md,useLayoutEffect:Ld,useMemo:Id,useReducer:Qo,useRef:_d,useState:function(){return Qo(Ri)},useDebugValue:Ha,useDeferredValue:function(e){var t=nt();return fe===null?t.memoizedState=e:zd(t,fe.memoizedState,e)},useTransition:function(){var e=Qo(Ri)[0],t=nt().memoizedState;return[e,t]},useMutableSource:kd,useSyncExternalStore:Cd,useId:Ad,unstable_isNewReconciler:!1};function lt(e,t){if(e&&e.defaultProps){t=ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Os(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var uo={isMounted:function(e){return(e=e._reactInternals)?bn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),i=dn(e),l=Dt(r,i);l.payload=t,n!=null&&(l.callback=n),t=cn(e,l,i),t!==null&&(ft(t,e,i,r),wl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),i=dn(e),l=Dt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=cn(e,l,i),t!==null&&(ft(t,e,i,r),wl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=dn(e),i=Dt(n,r);i.tag=2,t!=null&&(i.callback=t),t=cn(e,i,r),t!==null&&(ft(t,e,r,n),wl(t,e,r))}};function nc(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!wi(n,r)||!wi(i,l):!0}function Bd(e,t,n){var r=!1,i=yn,l=t.contextType;return typeof l=="object"&&l!==null?l=tt(l):(i=We(t)?Wn:Re.current,r=t.contextTypes,l=(r=r!=null)?Or(e,i):yn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=uo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function rc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&uo.enqueueReplaceState(t,t.state,null)}function _s(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ia(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=tt(l):(l=We(t)?Wn:Re.current,i.context=Or(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Os(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&uo.enqueueReplaceState(i,i.state,null),Ql(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Dr(e,t){try{var n="",r=t;do n+=Mp(r),r=r.return;while(r);var i=n}catch(l){i=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function Ho(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ms(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var iy=typeof WeakMap=="function"?WeakMap:Map;function Qd(e,t,n){n=Dt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bl||(bl=!0,$s=r),Ms(e,t)},n}function Hd(e,t,n){n=Dt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ms(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Ms(e,t),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ic(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new iy;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=vy.bind(null,e,t,n),t.then(e,e))}function lc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function oc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Dt(-1,1),t.tag=2,cn(n,t,1))),n.lanes|=1),e)}var ly=Wt.ReactCurrentOwner,Ae=!1;function Me(e,t,n,r){t.child=e===null?wd(t,null,n,r):Mr(t,e.child,n,r)}function sc(e,t,n,r,i){n=n.render;var l=t.ref;return pr(t,i),r=$a(e,t,n,r,l,i),n=Ba(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(J&&n&&Oa(t),t.flags|=1,Me(e,t,r,i),t.child)}function ac(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Ja(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Vd(e,t,l,r,i)):(e=Pl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:wi,n(o,r)&&e.ref===t.ref)return At(e,t,i)}return t.flags|=1,e=hn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Vd(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(wi(l,r)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ae=!0);else return t.lanes=e.lanes,At(e,t,i)}return Ls(e,t,n,r,i)}function Yd(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},b(ur,Be),Be|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,b(ur,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,b(ur,Be),Be|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,b(ur,Be),Be|=r;return Me(e,t,i,n),t.child}function Kd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ls(e,t,n,r,i){var l=We(n)?Wn:Re.current;return l=Or(t,l),pr(t,i),n=$a(e,t,n,r,l,i),r=Ba(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(J&&r&&Oa(t),t.flags|=1,Me(e,t,n,i),t.child)}function uc(e,t,n,r,i){if(We(n)){var l=!0;Al(t)}else l=!1;if(pr(t,i),t.stateNode===null)El(e,t),Bd(t,n,r),_s(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=tt(u):(u=We(n)?Wn:Re.current,u=Or(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==u)&&rc(t,o,r,u),Yt=!1;var m=t.memoizedState;o.state=m,Ql(t,r,o,i),a=t.memoizedState,s!==r||m!==a||Ue.current||Yt?(typeof c=="function"&&(Os(t,n,c,r),a=t.memoizedState),(s=Yt||nc(t,n,s,r,m,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Sd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:lt(t.type,s),o.props=u,f=t.pendingProps,m=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=tt(a):(a=We(n)?Wn:Re.current,a=Or(t,a));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||m!==a)&&rc(t,o,r,a),Yt=!1,m=t.memoizedState,o.state=m,Ql(t,r,o,i);var w=t.memoizedState;s!==f||m!==w||Ue.current||Yt?(typeof v=="function"&&(Os(t,n,v,r),w=t.memoizedState),(u=Yt||nc(t,n,u,r,m,w,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Ds(e,t,n,r,l,i)}function Ds(e,t,n,r,i,l){Kd(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&bu(t,n,!1),At(e,t,l);r=t.stateNode,ly.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Mr(t,e.child,null,l),t.child=Mr(t,null,s,l)):Me(e,t,s,l),t.memoizedState=r.state,i&&bu(t,n,!0),t.child}function bd(e){var t=e.stateNode;t.pendingContext?Ku(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ku(e,t.context,!1),za(e,t.containerInfo)}function cc(e,t,n,r,i){return _r(),Ma(i),t.flags|=256,Me(e,t,n,r),t.child}var Fs={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Gd(e,t,n){var r=t.pendingProps,i=Z.current,l=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),b(Z,i&1),e===null)return Ns(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=ho(o,r,0,null),e=Un(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=js(n),t.memoizedState=Fs,e):Va(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return oy(e,t,o,r,s,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=hn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=hn(s,l):(l=Un(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?js(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Fs,r}return l=e.child,e=l.sibling,r=hn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Va(e,t){return t=ho({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function al(e,t,n,r){return r!==null&&Ma(r),Mr(t,e.child,null,n),e=Va(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oy(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Ho(Error(T(422))),al(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=ho({mode:"visible",children:r.children},i,0,null),l=Un(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Mr(t,e.child,null,o),t.child.memoizedState=js(o),t.memoizedState=Fs,l);if(!(t.mode&1))return al(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(T(419)),r=Ho(l,r,void 0),al(e,t,o,r)}if(s=(o&e.childLanes)!==0,Ae||s){if(r=me,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,zt(e,i),ft(r,e,i,-1))}return Xa(),r=Ho(Error(T(421))),al(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=wy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Qe=un(i.nextSibling),He=t,J=!0,ut=null,e!==null&&(Xe[Je++]=Mt,Xe[Je++]=Lt,Xe[Je++]=$n,Mt=e.id,Lt=e.overflow,$n=t),t=Va(t,r.children),t.flags|=4096,t)}function fc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ts(e.return,t,n)}function Vo(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function qd(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Me(e,t,r.children,n),r=Z.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fc(e,n,t);else if(e.tag===19)fc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(b(Z,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Hl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Vo(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Hl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Vo(t,!0,n,null,l);break;case"together":Vo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function El(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function At(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sy(e,t,n){switch(t.tag){case 3:bd(t),_r();break;case 5:Ed(t);break;case 1:We(t.type)&&Al(t);break;case 4:za(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;b($l,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(b(Z,Z.current&1),t.flags|=128,null):n&t.child.childLanes?Gd(e,t,n):(b(Z,Z.current&1),e=At(e,t,n),e!==null?e.sibling:null);b(Z,Z.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return qd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),b(Z,Z.current),r)break;return null;case 22:case 23:return t.lanes=0,Yd(e,t,n)}return At(e,t,n)}var Xd,Is,Jd,Zd;Xd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Is=function(){};Jd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Nn(Ct.current);var l=null;switch(n){case"input":i=is(e,i),r=is(e,r),l=[];break;case"select":i=ne({},i,{value:void 0}),r=ne({},r,{value:void 0}),l=[];break;case"textarea":i=ss(e,i),r=ss(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Il)}us(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(di.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(di.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&q("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Zd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Yr(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ay(e,t,n){var r=t.pendingProps;switch(_a(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(t),null;case 1:return We(t.type)&&zl(),Ce(t),null;case 3:return r=t.stateNode,Lr(),X(Ue),X(Re),Ua(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ol(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ut!==null&&(Hs(ut),ut=null))),Is(e,t),Ce(t),null;case 5:Aa(t);var i=Nn(Ci.current);if(n=t.type,e!==null&&t.stateNode!=null)Jd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return Ce(t),null}if(e=Nn(Ct.current),ol(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Et]=t,r[Ei]=l,e=(t.mode&1)!==0,n){case"dialog":q("cancel",r),q("close",r);break;case"iframe":case"object":case"embed":q("load",r);break;case"video":case"audio":for(i=0;i<ei.length;i++)q(ei[i],r);break;case"source":q("error",r);break;case"img":case"image":case"link":q("error",r),q("load",r);break;case"details":q("toggle",r);break;case"input":xu(r,l),q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},q("invalid",r);break;case"textarea":Eu(r,l),q("invalid",r)}us(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&ll(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&ll(r.textContent,s,e),i=["children",""+s]):di.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&q("scroll",r)}switch(n){case"input":Xi(r),Su(r,l,!0);break;case"textarea":Xi(r),ku(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Il)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Nf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Et]=t,e[Ei]=r,Xd(e,t,!1,!1),t.stateNode=e;e:{switch(o=cs(n,r),n){case"dialog":q("cancel",e),q("close",e),i=r;break;case"iframe":case"object":case"embed":q("load",e),i=r;break;case"video":case"audio":for(i=0;i<ei.length;i++)q(ei[i],e);i=r;break;case"source":q("error",e),i=r;break;case"img":case"image":case"link":q("error",e),q("load",e),i=r;break;case"details":q("toggle",e),i=r;break;case"input":xu(e,r),i=is(e,r),q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ne({},r,{value:void 0}),q("invalid",e);break;case"textarea":Eu(e,r),i=ss(e,r),q("invalid",e);break;default:i=r}us(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?_f(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Tf(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&hi(e,a):typeof a=="number"&&hi(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(di.hasOwnProperty(l)?a!=null&&l==="onScroll"&&q("scroll",e):a!=null&&ma(e,l,a,o))}switch(n){case"input":Xi(e),Su(e,r,!1);break;case"textarea":Xi(e),ku(e);break;case"option":r.value!=null&&e.setAttribute("value",""+mn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?cr(e,!!r.multiple,l,!1):r.defaultValue!=null&&cr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Il)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ce(t),null;case 6:if(e&&t.stateNode!=null)Zd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Nn(Ci.current),Nn(Ct.current),ol(t)){if(r=t.stateNode,n=t.memoizedProps,r[Et]=t,(l=r.nodeValue!==n)&&(e=He,e!==null))switch(e.tag){case 3:ll(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ll(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Et]=t,t.stateNode=r}return Ce(t),null;case 13:if(X(Z),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&Qe!==null&&t.mode&1&&!(t.flags&128))gd(),_r(),t.flags|=98560,l=!1;else if(l=ol(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(T(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(T(317));l[Et]=t}else _r(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ce(t),l=!1}else ut!==null&&(Hs(ut),ut=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Z.current&1?de===0&&(de=3):Xa())),t.updateQueue!==null&&(t.flags|=4),Ce(t),null);case 4:return Lr(),Is(e,t),e===null&&xi(t.stateNode.containerInfo),Ce(t),null;case 10:return Fa(t.type._context),Ce(t),null;case 17:return We(t.type)&&zl(),Ce(t),null;case 19:if(X(Z),l=t.memoizedState,l===null)return Ce(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Yr(l,!1);else{if(de!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Hl(e),o!==null){for(t.flags|=128,Yr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return b(Z,Z.current&1|2),t.child}e=e.sibling}l.tail!==null&&oe()>Fr&&(t.flags|=128,r=!0,Yr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Hl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Yr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!J)return Ce(t),null}else 2*oe()-l.renderingStartTime>Fr&&n!==1073741824&&(t.flags|=128,r=!0,Yr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=oe(),t.sibling=null,n=Z.current,b(Z,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return qa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Be&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function uy(e,t){switch(_a(t),t.tag){case 1:return We(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lr(),X(Ue),X(Re),Ua(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Aa(t),null;case 13:if(X(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Z),null;case 4:return Lr(),null;case 10:return Fa(t.type._context),null;case 22:case 23:return qa(),null;case 24:return null;default:return null}}var ul=!1,Pe=!1,cy=typeof WeakSet=="function"?WeakSet:Set,L=null;function ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function zs(e,t,n){try{n()}catch(r){le(e,t,r)}}var dc=!1;function fy(e,t){if(xs=Dl,e=id(),Ta(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,c=0,f=e,m=null;t:for(;;){for(var v;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==l||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(v=f.firstChild)!==null;)m=f,f=v;for(;;){if(f===e)break t;if(m===n&&++u===i&&(s=o),m===l&&++c===r&&(a=o),(v=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ss={focusedElem:e,selectionRange:n},Dl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,E=w.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:lt(t.type,S),E);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(x){le(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return w=dc,dc=!1,w}function ai(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&zs(t,n,l)}i=i.next}while(i!==r)}}function co(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function As(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function eh(e){var t=e.alternate;t!==null&&(e.alternate=null,eh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Et],delete t[Ei],delete t[Cs],delete t[Km],delete t[bm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function th(e){return e.tag===5||e.tag===3||e.tag===4}function hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||th(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Us(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Il));else if(r!==4&&(e=e.child,e!==null))for(Us(e,t,n),e=e.sibling;e!==null;)Us(e,t,n),e=e.sibling}function Ws(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ws(e,t,n),e=e.sibling;e!==null;)Ws(e,t,n),e=e.sibling}var ge=null,at=!1;function Bt(e,t,n){for(n=n.child;n!==null;)nh(e,t,n),n=n.sibling}function nh(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(no,n)}catch{}switch(n.tag){case 5:Pe||ar(n,t);case 6:var r=ge,i=at;ge=null,Bt(e,t,n),ge=r,at=i,ge!==null&&(at?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(at?(e=ge,n=n.stateNode,e.nodeType===8?Ao(e.parentNode,n):e.nodeType===1&&Ao(e,n),gi(e)):Ao(ge,n.stateNode));break;case 4:r=ge,i=at,ge=n.stateNode.containerInfo,at=!0,Bt(e,t,n),ge=r,at=i;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&zs(n,t,o),i=i.next}while(i!==r)}Bt(e,t,n);break;case 1:if(!Pe&&(ar(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){le(n,t,s)}Bt(e,t,n);break;case 21:Bt(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,Bt(e,t,n),Pe=r):Bt(e,t,n);break;default:Bt(e,t,n)}}function pc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cy),t.forEach(function(r){var i=xy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:ge=s.stateNode,at=!1;break e;case 3:ge=s.stateNode.containerInfo,at=!0;break e;case 4:ge=s.stateNode.containerInfo,at=!0;break e}s=s.return}if(ge===null)throw Error(T(160));nh(l,o,i),ge=null,at=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){le(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rh(t,e),t=t.sibling}function rh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(it(t,e),gt(e),r&4){try{ai(3,e,e.return),co(3,e)}catch(S){le(e,e.return,S)}try{ai(5,e,e.return)}catch(S){le(e,e.return,S)}}break;case 1:it(t,e),gt(e),r&512&&n!==null&&ar(n,n.return);break;case 5:if(it(t,e),gt(e),r&512&&n!==null&&ar(n,n.return),e.flags&32){var i=e.stateNode;try{hi(i,"")}catch(S){le(e,e.return,S)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&Pf(i,l),cs(s,o);var u=cs(s,l);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?_f(i,f):c==="dangerouslySetInnerHTML"?Tf(i,f):c==="children"?hi(i,f):ma(i,c,f,u)}switch(s){case"input":ls(i,l);break;case"textarea":Rf(i,l);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?cr(i,!!l.multiple,v,!1):m!==!!l.multiple&&(l.defaultValue!=null?cr(i,!!l.multiple,l.defaultValue,!0):cr(i,!!l.multiple,l.multiple?[]:"",!1))}i[Ei]=l}catch(S){le(e,e.return,S)}}break;case 6:if(it(t,e),gt(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(S){le(e,e.return,S)}}break;case 3:if(it(t,e),gt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{gi(t.containerInfo)}catch(S){le(e,e.return,S)}break;case 4:it(t,e),gt(e);break;case 13:it(t,e),gt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(ba=oe())),r&4&&pc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Pe=(u=Pe)||c,it(t,e),Pe=u):it(t,e),gt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(L=e,c=e.child;c!==null;){for(f=L=c;L!==null;){switch(m=L,v=m.child,m.tag){case 0:case 11:case 14:case 15:ai(4,m,m.return);break;case 1:ar(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(S){le(r,n,S)}}break;case 5:ar(m,m.return);break;case 22:if(m.memoizedState!==null){yc(f);continue}}v!==null?(v.return=m,L=v):yc(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Of("display",o))}catch(S){le(e,e.return,S)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(S){le(e,e.return,S)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:it(t,e),gt(e),r&4&&pc(e);break;case 21:break;default:it(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(th(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(hi(i,""),r.flags&=-33);var l=hc(e);Ws(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=hc(e);Us(e,s,o);break;default:throw Error(T(161))}}catch(a){le(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dy(e,t,n){L=e,ih(e)}function ih(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var i=L,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ul;if(!o){var s=i.alternate,a=s!==null&&s.memoizedState!==null||Pe;s=ul;var u=Pe;if(ul=o,(Pe=a)&&!u)for(L=i;L!==null;)o=L,a=o.child,o.tag===22&&o.memoizedState!==null?gc(i):a!==null?(a.return=o,L=a):gc(i);for(;l!==null;)L=l,ih(l),l=l.sibling;L=i,ul=s,Pe=u}mc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,L=l):mc(e)}}function mc(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pe||co(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:lt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Zu(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Zu(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&gi(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Pe||t.flags&512&&As(t)}catch(m){le(t,t.return,m)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function yc(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function gc(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{co(4,t)}catch(a){le(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){le(t,i,a)}}var l=t.return;try{As(t)}catch(a){le(t,l,a)}break;case 5:var o=t.return;try{As(t)}catch(a){le(t,o,a)}}}catch(a){le(t,t.return,a)}if(t===e){L=null;break}var s=t.sibling;if(s!==null){s.return=t.return,L=s;break}L=t.return}}var hy=Math.ceil,Kl=Wt.ReactCurrentDispatcher,Ya=Wt.ReactCurrentOwner,et=Wt.ReactCurrentBatchConfig,H=0,me=null,ue=null,we=0,Be=0,ur=vn(0),de=0,Ti=null,Qn=0,fo=0,Ka=0,ui=null,ze=null,ba=0,Fr=1/0,Nt=null,bl=!1,$s=null,fn=null,cl=!1,ln=null,Gl=0,ci=0,Bs=null,kl=-1,Cl=0;function Le(){return H&6?oe():kl!==-1?kl:kl=oe()}function dn(e){return e.mode&1?H&2&&we!==0?we&-we:qm.transition!==null?(Cl===0&&(Cl=Bf()),Cl):(e=K,e!==0||(e=window.event,e=e===void 0?16:Gf(e.type)),e):1}function ft(e,t,n,r){if(50<ci)throw ci=0,Bs=null,Error(T(185));Ui(e,n,r),(!(H&2)||e!==me)&&(e===me&&(!(H&2)&&(fo|=n),de===4&&bt(e,we)),$e(e,r),n===1&&H===0&&!(t.mode&1)&&(Fr=oe()+500,so&&wn()))}function $e(e,t){var n=e.callbackNode;qp(e,t);var r=Ll(e,e===me?we:0);if(r===0)n!==null&&Ru(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ru(n),t===1)e.tag===0?Gm(vc.bind(null,e)):pd(vc.bind(null,e)),Vm(function(){!(H&6)&&wn()}),n=null;else{switch(Qf(r)){case 1:n=xa;break;case 4:n=Wf;break;case 16:n=Ml;break;case 536870912:n=$f;break;default:n=Ml}n=dh(n,lh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lh(e,t){if(kl=-1,Cl=0,H&6)throw Error(T(327));var n=e.callbackNode;if(mr()&&e.callbackNode!==n)return null;var r=Ll(e,e===me?we:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ql(e,r);else{t=r;var i=H;H|=2;var l=sh();(me!==e||we!==t)&&(Nt=null,Fr=oe()+500,An(e,t));do try{yy();break}catch(s){oh(e,s)}while(!0);Da(),Kl.current=l,H=i,ue!==null?t=0:(me=null,we=0,t=de)}if(t!==0){if(t===2&&(i=ms(e),i!==0&&(r=i,t=Qs(e,i))),t===1)throw n=Ti,An(e,0),bt(e,r),$e(e,oe()),n;if(t===6)bt(e,r);else{if(i=e.current.alternate,!(r&30)&&!py(i)&&(t=ql(e,r),t===2&&(l=ms(e),l!==0&&(r=l,t=Qs(e,l))),t===1))throw n=Ti,An(e,0),bt(e,r),$e(e,oe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:kn(e,ze,Nt);break;case 3:if(bt(e,r),(r&130023424)===r&&(t=ba+500-oe(),10<t)){if(Ll(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Le(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ks(kn.bind(null,e,ze,Nt),t);break}kn(e,ze,Nt);break;case 4:if(bt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-ct(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hy(r/1960))-r,10<r){e.timeoutHandle=ks(kn.bind(null,e,ze,Nt),r);break}kn(e,ze,Nt);break;case 5:kn(e,ze,Nt);break;default:throw Error(T(329))}}}return $e(e,oe()),e.callbackNode===n?lh.bind(null,e):null}function Qs(e,t){var n=ui;return e.current.memoizedState.isDehydrated&&(An(e,t).flags|=256),e=ql(e,t),e!==2&&(t=ze,ze=n,t!==null&&Hs(t)),e}function Hs(e){ze===null?ze=e:ze.push.apply(ze,e)}function py(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!dt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bt(e,t){for(t&=~Ka,t&=~fo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ct(t),r=1<<n;e[n]=-1,t&=~r}}function vc(e){if(H&6)throw Error(T(327));mr();var t=Ll(e,0);if(!(t&1))return $e(e,oe()),null;var n=ql(e,t);if(e.tag!==0&&n===2){var r=ms(e);r!==0&&(t=r,n=Qs(e,r))}if(n===1)throw n=Ti,An(e,0),bt(e,t),$e(e,oe()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kn(e,ze,Nt),$e(e,oe()),null}function Ga(e,t){var n=H;H|=1;try{return e(t)}finally{H=n,H===0&&(Fr=oe()+500,so&&wn())}}function Hn(e){ln!==null&&ln.tag===0&&!(H&6)&&mr();var t=H;H|=1;var n=et.transition,r=K;try{if(et.transition=null,K=1,e)return e()}finally{K=r,et.transition=n,H=t,!(H&6)&&wn()}}function qa(){Be=ur.current,X(ur)}function An(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hm(n)),ue!==null)for(n=ue.return;n!==null;){var r=n;switch(_a(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zl();break;case 3:Lr(),X(Ue),X(Re),Ua();break;case 5:Aa(r);break;case 4:Lr();break;case 13:X(Z);break;case 19:X(Z);break;case 10:Fa(r.type._context);break;case 22:case 23:qa()}n=n.return}if(me=e,ue=e=hn(e.current,null),we=Be=t,de=0,Ti=null,Ka=fo=Qn=0,ze=ui=null,Rn!==null){for(t=0;t<Rn.length;t++)if(n=Rn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}Rn=null}return e}function oh(e,t){do{var n=ue;try{if(Da(),xl.current=Yl,Vl){for(var r=ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Vl=!1}if(Bn=0,pe=fe=ee=null,si=!1,Pi=0,Ya.current=null,n===null||n.return===null){de=1,Ti=t,ue=null;break}e:{var l=e,o=n.return,s=n,a=t;if(t=we,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var m=c.alternate;m?(c.updateQueue=m.updateQueue,c.memoizedState=m.memoizedState,c.lanes=m.lanes):(c.updateQueue=null,c.memoizedState=null)}var v=lc(o);if(v!==null){v.flags&=-257,oc(v,o,s,l,t),v.mode&1&&ic(l,u,t),t=v,a=u;var w=t.updateQueue;if(w===null){var S=new Set;S.add(a),t.updateQueue=S}else w.add(a);break e}else{if(!(t&1)){ic(l,u,t),Xa();break e}a=Error(T(426))}}else if(J&&s.mode&1){var E=lc(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),oc(E,o,s,l,t),Ma(Dr(a,s));break e}}l=a=Dr(a,s),de!==4&&(de=2),ui===null?ui=[l]:ui.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=Qd(l,a,t);Ju(l,h);break e;case 1:s=a;var d=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof d.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(fn===null||!fn.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var x=Hd(l,s,t);Ju(l,x);break e}}l=l.return}while(l!==null)}uh(n)}catch(P){t=P,ue===n&&n!==null&&(ue=n=n.return);continue}break}while(!0)}function sh(){var e=Kl.current;return Kl.current=Yl,e===null?Yl:e}function Xa(){(de===0||de===3||de===2)&&(de=4),me===null||!(Qn&268435455)&&!(fo&268435455)||bt(me,we)}function ql(e,t){var n=H;H|=2;var r=sh();(me!==e||we!==t)&&(Nt=null,An(e,t));do try{my();break}catch(i){oh(e,i)}while(!0);if(Da(),H=n,Kl.current=r,ue!==null)throw Error(T(261));return me=null,we=0,de}function my(){for(;ue!==null;)ah(ue)}function yy(){for(;ue!==null&&!$p();)ah(ue)}function ah(e){var t=fh(e.alternate,e,Be);e.memoizedProps=e.pendingProps,t===null?uh(e):ue=t,Ya.current=null}function uh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=uy(n,t),n!==null){n.flags&=32767,ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{de=6,ue=null;return}}else if(n=ay(n,t,Be),n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);de===0&&(de=5)}function kn(e,t,n){var r=K,i=et.transition;try{et.transition=null,K=1,gy(e,t,n,r)}finally{et.transition=i,K=r}return null}function gy(e,t,n,r){do mr();while(ln!==null);if(H&6)throw Error(T(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Xp(e,l),e===me&&(ue=me=null,we=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||cl||(cl=!0,dh(Ml,function(){return mr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=et.transition,et.transition=null;var o=K;K=1;var s=H;H|=4,Ya.current=null,fy(e,n),rh(n,e),zm(Ss),Dl=!!xs,Ss=xs=null,e.current=n,dy(n),Bp(),H=s,K=o,et.transition=l}else e.current=n;if(cl&&(cl=!1,ln=e,Gl=i),l=e.pendingLanes,l===0&&(fn=null),Vp(n.stateNode),$e(e,oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(bl)throw bl=!1,e=$s,$s=null,e;return Gl&1&&e.tag!==0&&mr(),l=e.pendingLanes,l&1?e===Bs?ci++:(ci=0,Bs=e):ci=0,wn(),null}function mr(){if(ln!==null){var e=Qf(Gl),t=et.transition,n=K;try{if(et.transition=null,K=16>e?16:e,ln===null)var r=!1;else{if(e=ln,ln=null,Gl=0,H&6)throw Error(T(331));var i=H;for(H|=4,L=e.current;L!==null;){var l=L,o=l.child;if(L.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(L=u;L!==null;){var c=L;switch(c.tag){case 0:case 11:case 15:ai(8,c,l)}var f=c.child;if(f!==null)f.return=c,L=f;else for(;L!==null;){c=L;var m=c.sibling,v=c.return;if(eh(c),c===u){L=null;break}if(m!==null){m.return=v,L=m;break}L=v}}}var w=l.alternate;if(w!==null){var S=w.child;if(S!==null){w.child=null;do{var E=S.sibling;S.sibling=null,S=E}while(S!==null)}}L=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,L=o;else e:for(;L!==null;){if(l=L,l.flags&2048)switch(l.tag){case 0:case 11:case 15:ai(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,L=h;break e}L=l.return}}var d=e.current;for(L=d;L!==null;){o=L;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,L=p;else e:for(o=d;L!==null;){if(s=L,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:co(9,s)}}catch(P){le(s,s.return,P)}if(s===o){L=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,L=x;break e}L=s.return}}if(H=i,wn(),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(no,e)}catch{}r=!0}return r}finally{K=n,et.transition=t}}return!1}function wc(e,t,n){t=Dr(n,t),t=Qd(e,t,1),e=cn(e,t,1),t=Le(),e!==null&&(Ui(e,1,t),$e(e,t))}function le(e,t,n){if(e.tag===3)wc(e,e,n);else for(;t!==null;){if(t.tag===3){wc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(fn===null||!fn.has(r))){e=Dr(n,e),e=Hd(t,e,1),t=cn(t,e,1),e=Le(),t!==null&&(Ui(t,1,e),$e(t,e));break}}t=t.return}}function vy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,me===e&&(we&n)===n&&(de===4||de===3&&(we&130023424)===we&&500>oe()-ba?An(e,0):Ka|=n),$e(e,t)}function ch(e,t){t===0&&(e.mode&1?(t=el,el<<=1,!(el&130023424)&&(el=4194304)):t=1);var n=Le();e=zt(e,t),e!==null&&(Ui(e,t,n),$e(e,n))}function wy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ch(e,n)}function xy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),ch(e,n)}var fh;fh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,sy(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,J&&t.flags&1048576&&md(t,Wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var i=Or(t,Re.current);pr(t,n),i=$a(null,t,r,e,i,n);var l=Ba();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(l=!0,Al(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ia(t),i.updater=uo,t.stateNode=i,i._reactInternals=t,_s(t,r,e,n),t=Ds(null,t,r,!0,l,n)):(t.tag=0,J&&l&&Oa(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(El(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ey(r),e=lt(r,e),i){case 0:t=Ls(null,t,r,e,n);break e;case 1:t=uc(null,t,r,e,n);break e;case 11:t=sc(null,t,r,e,n);break e;case 14:t=ac(null,t,r,lt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lt(r,i),Ls(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lt(r,i),uc(e,t,r,i,n);case 3:e:{if(bd(t),e===null)throw Error(T(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Sd(e,t),Ql(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=Dr(Error(T(423)),t),t=cc(e,t,r,n,i);break e}else if(r!==i){i=Dr(Error(T(424)),t),t=cc(e,t,r,n,i);break e}else for(Qe=un(t.stateNode.containerInfo.firstChild),He=t,J=!0,ut=null,n=wd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_r(),r===i){t=At(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Ed(t),e===null&&Ns(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Es(r,i)?o=null:l!==null&&Es(r,l)&&(t.flags|=32),Kd(e,t),Me(e,t,o,n),t.child;case 6:return e===null&&Ns(t),null;case 13:return Gd(e,t,n);case 4:return za(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lt(r,i),sc(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,b($l,r._currentValue),r._currentValue=o,l!==null)if(dt(l.value,o)){if(l.children===i.children&&!Ue.current){t=At(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Dt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ts(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(T(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ts(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,pr(t,n),i=tt(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=lt(r,t.pendingProps),i=lt(r.type,i),ac(e,t,r,i,n);case 15:return Vd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lt(r,i),El(e,t),t.tag=1,We(r)?(e=!0,Al(t)):e=!1,pr(t,n),Bd(t,r,i),_s(t,r,i,n),Ds(null,t,r,!0,e,n);case 19:return qd(e,t,n);case 22:return Yd(e,t,n)}throw Error(T(156,t.tag))};function dh(e,t){return Uf(e,t)}function Sy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,n,r){return new Sy(e,t,n,r)}function Ja(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ey(e){if(typeof e=="function")return Ja(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ga)return 11;if(e===va)return 14}return 2}function hn(e,t){var n=e.alternate;return n===null?(n=Ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Ja(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Zn:return Un(n.children,i,l,t);case ya:o=8,i|=8;break;case es:return e=Ze(12,n,t,i|2),e.elementType=es,e.lanes=l,e;case ts:return e=Ze(13,n,t,i),e.elementType=ts,e.lanes=l,e;case ns:return e=Ze(19,n,t,i),e.elementType=ns,e.lanes=l,e;case Ef:return ho(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xf:o=10;break e;case Sf:o=9;break e;case ga:o=11;break e;case va:o=14;break e;case Vt:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=Ze(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Un(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function ho(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=Ef,e.lanes=n,e.stateNode={isHidden:!1},e}function Yo(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function Ko(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ky(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=No(0),this.expirationTimes=No(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=No(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Za(e,t,n,r,i,l,o,s,a){return e=new ky(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ze(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(l),e}function Cy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function hh(e){if(!e)return yn;e=e._reactInternals;e:{if(bn(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(We(n))return hd(e,n,t)}return t}function ph(e,t,n,r,i,l,o,s,a){return e=Za(n,r,!0,e,i,l,o,s,a),e.context=hh(null),n=e.current,r=Le(),i=dn(n),l=Dt(r,i),l.callback=t??null,cn(n,l,i),e.current.lanes=i,Ui(e,i,r),$e(e,r),e}function po(e,t,n,r){var i=t.current,l=Le(),o=dn(i);return n=hh(n),t.context===null?t.context=n:t.pendingContext=n,t=Dt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=cn(i,t,o),e!==null&&(ft(e,i,o,l),wl(e,i,o)),o}function Xl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function eu(e,t){xc(e,t),(e=e.alternate)&&xc(e,t)}function Py(){return null}var mh=typeof reportError=="function"?reportError:function(e){console.error(e)};function tu(e){this._internalRoot=e}mo.prototype.render=tu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));po(e,t,null,null)};mo.prototype.unmount=tu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hn(function(){po(null,e,null,null)}),t[It]=null}};function mo(e){this._internalRoot=e}mo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kt.length&&t!==0&&t<Kt[n].priority;n++);Kt.splice(n,0,e),n===0&&bf(e)}};function nu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sc(){}function Ry(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Xl(o);l.call(u)}}var o=ph(t,r,e,0,null,!1,!1,"",Sc);return e._reactRootContainer=o,e[It]=o.current,xi(e.nodeType===8?e.parentNode:e),Hn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Xl(a);s.call(u)}}var a=Za(e,0,!1,null,null,!1,!1,"",Sc);return e._reactRootContainer=a,e[It]=a.current,xi(e.nodeType===8?e.parentNode:e),Hn(function(){po(t,a,n,r)}),a}function go(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var a=Xl(o);s.call(a)}}po(t,o,e,i)}else o=Ry(n,t,e,i,r);return Xl(o)}Hf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Zr(t.pendingLanes);n!==0&&(Sa(t,n|1),$e(t,oe()),!(H&6)&&(Fr=oe()+500,wn()))}break;case 13:Hn(function(){var r=zt(e,1);if(r!==null){var i=Le();ft(r,e,1,i)}}),eu(e,1)}};Ea=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=Le();ft(t,e,134217728,n)}eu(e,134217728)}};Vf=function(e){if(e.tag===13){var t=dn(e),n=zt(e,t);if(n!==null){var r=Le();ft(n,e,t,r)}eu(e,t)}};Yf=function(){return K};Kf=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};ds=function(e,t,n){switch(t){case"input":if(ls(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=oo(r);if(!i)throw Error(T(90));Cf(r),ls(r,i)}}}break;case"textarea":Rf(e,n);break;case"select":t=n.value,t!=null&&cr(e,!!n.multiple,t,!1)}};Df=Ga;Ff=Hn;var Ny={usingClientEntryPoint:!1,Events:[$i,rr,oo,Mf,Lf,Ga]},Kr={findFiberByHostInstance:Pn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ty={bundleType:Kr.bundleType,version:Kr.version,rendererPackageName:Kr.rendererPackageName,rendererConfig:Kr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zf(e),e===null?null:e.stateNode},findFiberByHostInstance:Kr.findFiberByHostInstance||Py,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fl.isDisabled&&fl.supportsFiber)try{no=fl.inject(Ty),kt=fl}catch{}}Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ny;Ye.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nu(t))throw Error(T(200));return Cy(e,t,null,n)};Ye.createRoot=function(e,t){if(!nu(e))throw Error(T(299));var n=!1,r="",i=mh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Za(e,1,!1,null,null,n,!1,r,i),e[It]=t.current,xi(e.nodeType===8?e.parentNode:e),new tu(t)};Ye.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=zf(t),e=e===null?null:e.stateNode,e};Ye.flushSync=function(e){return Hn(e)};Ye.hydrate=function(e,t,n){if(!yo(t))throw Error(T(200));return go(null,e,t,!0,n)};Ye.hydrateRoot=function(e,t,n){if(!nu(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=mh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=ph(t,null,e,1,n??null,i,!1,l,o),e[It]=t.current,xi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new mo(t)};Ye.render=function(e,t,n){if(!yo(t))throw Error(T(200));return go(null,e,t,!1,n)};Ye.unmountComponentAtNode=function(e){if(!yo(e))throw Error(T(40));return e._reactRootContainer?(Hn(function(){go(null,null,e,!1,function(){e._reactRootContainer=null,e[It]=null})}),!0):!1};Ye.unstable_batchedUpdates=Ga;Ye.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yo(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return go(e,t,n,!1,r)};Ye.version="18.3.1-next-f1338f8080-20240426";function yh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yh)}catch(e){console.error(e)}}yh(),yf.exports=Ye;var Oy=yf.exports,Ec=Oy;Jo.createRoot=Ec.createRoot,Jo.hydrateRoot=Ec.hydrateRoot;var Qi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_y={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Gt,aa,bc,My=(bc=class{constructor(){I(this,Gt,_y);I(this,aa,!1)}setTimeoutProvider(e){M(this,Gt,e)}setTimeout(e,t){return y(this,Gt).setTimeout(e,t)}clearTimeout(e){y(this,Gt).clearTimeout(e)}setInterval(e,t){return y(this,Gt).setInterval(e,t)}clearInterval(e){y(this,Gt).clearInterval(e)}},Gt=new WeakMap,aa=new WeakMap,bc),Tn=new My;function Ly(e){setTimeout(e,0)}var Vn=typeof window>"u"||"Deno"in globalThis;function Ie(){}function Dy(e,t){return typeof e=="function"?e(t):e}function Vs(e){return typeof e=="number"&&e>=0&&e!==1/0}function gh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pn(e,t){return typeof e=="function"?e(t):e}function qe(e,t){return typeof e=="function"?e(t):e}function kc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ru(o,t.options))return!1}else if(!_i(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||l&&!l(t))}function Cc(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Oi(t.options.mutationKey)!==Oi(l))return!1}else if(!_i(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ru(e,t){return((t==null?void 0:t.queryKeyHashFn)||Oi)(e)}function Oi(e){return JSON.stringify(e,(t,n)=>Ks(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function _i(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>_i(e[n],t[n])):!1}var Fy=Object.prototype.hasOwnProperty;function vh(e,t){if(e===t)return e;const n=Pc(e)&&Pc(t);if(!n&&!(Ks(e)&&Ks(t)))return t;const i=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),o=l.length,s=n?new Array(o):{};let a=0;for(let u=0;u<o;u++){const c=n?u:l[u],f=e[c],m=t[c];if(f===m){s[c]=f,(n?u<i:Fy.call(e,c))&&a++;continue}if(f===null||m===null||typeof f!="object"||typeof m!="object"){s[c]=m;continue}const v=vh(f,m);s[c]=v,v===f&&a++}return i===o&&a===i?e:s}function Ys(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Pc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ks(e){if(!Rc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Rc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Rc(e){return Object.prototype.toString.call(e)==="[object Object]"}function jy(e){return new Promise(t=>{Tn.setTimeout(t,e)})}function bs(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vh(e,t):t}function Iy(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function zy(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var iu=Symbol();function wh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===iu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xh(e,t){return typeof e=="function"?e(...t):!!e}function Ay(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var On,qt,yr,Gc,Uy=(Gc=class extends Qi{constructor(){super();I(this,On);I(this,qt);I(this,yr);M(this,yr,t=>{if(!Vn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,qt)||this.setEventListener(y(this,yr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,qt))==null||t.call(this),M(this,qt,void 0))}setEventListener(t){var n;M(this,yr,t),(n=y(this,qt))==null||n.call(this),M(this,qt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,On)!==t&&(M(this,On,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,On)=="boolean"?y(this,On):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},On=new WeakMap,qt=new WeakMap,yr=new WeakMap,Gc),lu=new Uy;function Gs(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Wy=Ly;function $y(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=Wy;const l=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(a=>{n(a)})})})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||o()}return a},batchCalls:s=>(...a)=>{l(()=>{s(...a)})},schedule:l,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var ve=$y(),gr,Xt,vr,qc,By=(qc=class extends Qi{constructor(){super();I(this,gr,!0);I(this,Xt);I(this,vr);M(this,vr,t=>{if(!Vn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Xt)||this.setEventListener(y(this,vr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Xt))==null||t.call(this),M(this,Xt,void 0))}setEventListener(t){var n;M(this,vr,t),(n=y(this,Xt))==null||n.call(this),M(this,Xt,t(this.setOnline.bind(this)))}setOnline(t){y(this,gr)!==t&&(M(this,gr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,gr)}},gr=new WeakMap,Xt=new WeakMap,vr=new WeakMap,qc),Jl=new By;function Qy(e){return Math.min(1e3*2**e,3e4)}function Sh(e){return(e??"online")==="online"?Jl.isOnline():!0}var qs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Eh(e){let t=!1,n=0,r;const i=Gs(),l=()=>i.status!=="pending",o=S=>{var E;if(!l()){const h=new qs(S);m(h),(E=e.onCancel)==null||E.call(e,h)}},s=()=>{t=!0},a=()=>{t=!1},u=()=>lu.isFocused()&&(e.networkMode==="always"||Jl.isOnline())&&e.canRun(),c=()=>Sh(e.networkMode)&&e.canRun(),f=S=>{l()||(r==null||r(),i.resolve(S))},m=S=>{l()||(r==null||r(),i.reject(S))},v=()=>new Promise(S=>{var E;r=h=>{(l()||u())&&S(h)},(E=e.onPause)==null||E.call(e)}).then(()=>{var S;r=void 0,l()||(S=e.onContinue)==null||S.call(e)}),w=()=>{if(l())return;let S;const E=n===0?e.initialPromise:void 0;try{S=E??e.fn()}catch(h){S=Promise.reject(h)}Promise.resolve(S).then(f).catch(h=>{var O;if(l())return;const d=e.retry??(Vn?0:3),p=e.retryDelay??Qy,x=typeof p=="function"?p(n,h):p,P=d===!0||typeof d=="number"&&n<d||typeof d=="function"&&d(n,h);if(t||!P){m(h);return}n++,(O=e.onFail)==null||O.call(e,n,h),jy(x).then(()=>u()?void 0:v()).then(()=>{t?m(h):w()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:a,canStart:c,start:()=>(c()?w():v().then(w),i)}}var _n,Xc,kh=(Xc=class{constructor(){I(this,_n)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vs(this.gcTime)&&M(this,_n,Tn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vn?1/0:5*60*1e3))}clearGcTimeout(){y(this,_n)&&(Tn.clearTimeout(y(this,_n)),M(this,_n,void 0))}},_n=new WeakMap,Xc),Mn,wr,Ge,Ln,he,Di,Dn,ot,Rt,Jc,Hy=(Jc=class extends kh{constructor(t){super();I(this,ot);I(this,Mn);I(this,wr);I(this,Ge);I(this,Ln);I(this,he);I(this,Di);I(this,Dn);M(this,Dn,!1),M(this,Di,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Ln,t.client),M(this,Ge,y(this,Ln).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Mn,Tc(this.options)),this.state=t.state??y(this,Mn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,he))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,Di),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Tc(this.options);n.data!==void 0&&(this.setState(Nc(n.data,n.dataUpdatedAt)),M(this,Mn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ge).remove(this)}setData(t,n){const r=bs(this.state.data,t,this.options);return B(this,ot,Rt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){B(this,ot,Rt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,he))==null?void 0:r.promise;return(i=y(this,he))==null||i.cancel(t),n?n.then(Ie).catch(Ie):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Mn))}isActive(){return this.observers.some(t=>qe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===iu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>pn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!gh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,he))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,he))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Ge).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,he)&&(y(this,Dn)?y(this,he).cancel({revert:!0}):y(this,he).cancelRetry()),this.scheduleGc()),y(this,Ge).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||B(this,ot,Rt).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,c,f,m,v,w,S,E,h,d,p;if(this.state.fetchStatus!=="idle"&&((a=y(this,he))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,he))return y(this,he).continueRetry(),y(this,he).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(P=>P.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,i=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(M(this,Dn,!0),r.signal)})},l=()=>{const x=wh(this.options,n),O=(()=>{const _={client:y(this,Ln),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return M(this,Dn,!1),this.options.persister?this.options.persister(x,O,this):x(O)},s=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,Ln),state:this.state,fetchFn:l};return i(x),x})();(u=this.options.behavior)==null||u.onFetch(s,this),M(this,wr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=s.fetchOptions)==null?void 0:c.meta))&&B(this,ot,Rt).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta}),M(this,he,Eh({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:x=>{x instanceof qs&&x.revert&&this.setState({...y(this,wr),fetchStatus:"idle"}),r.abort()},onFail:(x,P)=>{B(this,ot,Rt).call(this,{type:"failed",failureCount:x,error:P})},onPause:()=>{B(this,ot,Rt).call(this,{type:"pause"})},onContinue:()=>{B(this,ot,Rt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const x=await y(this,he).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(v=(m=y(this,Ge).config).onSuccess)==null||v.call(m,x,this),(S=(w=y(this,Ge).config).onSettled)==null||S.call(w,x,this.state.error,this),x}catch(x){if(x instanceof qs){if(x.silent)return y(this,he).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw B(this,ot,Rt).call(this,{type:"error",error:x}),(h=(E=y(this,Ge).config).onError)==null||h.call(E,x,this),(p=(d=y(this,Ge).config).onSettled)==null||p.call(d,this.state.data,x,this),x}finally{this.scheduleGc()}}},Mn=new WeakMap,wr=new WeakMap,Ge=new WeakMap,Ln=new WeakMap,he=new WeakMap,Di=new WeakMap,Dn=new WeakMap,ot=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ch(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...Nc(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,wr,t.manual?i:void 0),i;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ve.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Ge).notify({query:this,type:"updated",action:t})})},Jc);function Ch(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Nc(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Tc(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var je,Q,Fi,Oe,Fn,xr,Ot,Jt,ji,Sr,Er,jn,In,Zt,kr,V,ti,Xs,Js,Zs,ea,ta,na,ra,Ph,Zc,Vy=(Zc=class extends Qi{constructor(t,n){super();I(this,V);I(this,je);I(this,Q);I(this,Fi);I(this,Oe);I(this,Fn);I(this,xr);I(this,Ot);I(this,Jt);I(this,ji);I(this,Sr);I(this,Er);I(this,jn);I(this,In);I(this,Zt);I(this,kr,new Set);this.options=n,M(this,je,t),M(this,Jt,null),M(this,Ot,Gs()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,Q).addObserver(this),Oc(y(this,Q),this.options)?B(this,V,ti).call(this):this.updateResult(),B(this,V,ea).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ia(y(this,Q),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ia(y(this,Q),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,B(this,V,ta).call(this),B(this,V,na).call(this),y(this,Q).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,Q);if(this.options=y(this,je).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qe(this.options.enabled,y(this,Q))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");B(this,V,ra).call(this),y(this,Q).setOptions(this.options),n._defaulted&&!Ys(this.options,n)&&y(this,je).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,Q),observer:this});const i=this.hasListeners();i&&_c(y(this,Q),r,this.options,n)&&B(this,V,ti).call(this),this.updateResult(),i&&(y(this,Q)!==r||qe(this.options.enabled,y(this,Q))!==qe(n.enabled,y(this,Q))||pn(this.options.staleTime,y(this,Q))!==pn(n.staleTime,y(this,Q)))&&B(this,V,Xs).call(this);const l=B(this,V,Js).call(this);i&&(y(this,Q)!==r||qe(this.options.enabled,y(this,Q))!==qe(n.enabled,y(this,Q))||l!==y(this,Zt))&&B(this,V,Zs).call(this,l)}getOptimisticResult(t){const n=y(this,je).getQueryCache().build(y(this,je),t),r=this.createResult(n,t);return Ky(this,r)&&(M(this,Oe,r),M(this,xr,this.options),M(this,Fn,y(this,Q).state)),r}getCurrentResult(){return y(this,Oe)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&y(this,Ot).status==="pending"&&y(this,Ot).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){y(this,kr).add(t)}getCurrentQuery(){return y(this,Q)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,je).defaultQueryOptions(t),r=y(this,je).getQueryCache().build(y(this,je),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return B(this,V,ti).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Oe)))}createResult(t,n){var j;const r=y(this,Q),i=this.options,l=y(this,Oe),o=y(this,Fn),s=y(this,xr),u=t!==r?t.state:y(this,Fi),{state:c}=t;let f={...c},m=!1,v;if(n._optimisticResults){const N=this.hasListeners(),A=!N&&Oc(t,n),ce=N&&_c(t,r,n,i);(A||ce)&&(f={...f,...Ch(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:w,errorUpdatedAt:S,status:E}=f;v=f.data;let h=!1;if(n.placeholderData!==void 0&&v===void 0&&E==="pending"){let N;l!=null&&l.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(N=l.data,h=!0):N=typeof n.placeholderData=="function"?n.placeholderData((j=y(this,Er))==null?void 0:j.state.data,y(this,Er)):n.placeholderData,N!==void 0&&(E="success",v=bs(l==null?void 0:l.data,N,n),m=!0)}if(n.select&&v!==void 0&&!h)if(l&&v===(o==null?void 0:o.data)&&n.select===y(this,ji))v=y(this,Sr);else try{M(this,ji,n.select),v=n.select(v),v=bs(l==null?void 0:l.data,v,n),M(this,Sr,v),M(this,Jt,null)}catch(N){M(this,Jt,N)}y(this,Jt)&&(w=y(this,Jt),v=y(this,Sr),S=Date.now(),E="error");const d=f.fetchStatus==="fetching",p=E==="pending",x=E==="error",P=p&&d,O=v!==void 0,R={status:E,fetchStatus:f.fetchStatus,isPending:p,isSuccess:E==="success",isError:x,isInitialLoading:P,isLoading:P,data:v,dataUpdatedAt:f.dataUpdatedAt,error:w,errorUpdatedAt:S,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:d,isRefetching:d&&!p,isLoadingError:x&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:x&&O,isStale:ou(t,n),refetch:this.refetch,promise:y(this,Ot),isEnabled:qe(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=Se=>{R.status==="error"?Se.reject(R.error):R.data!==void 0&&Se.resolve(R.data)},A=()=>{const Se=M(this,Ot,R.promise=Gs());N(Se)},ce=y(this,Ot);switch(ce.status){case"pending":t.queryHash===r.queryHash&&N(ce);break;case"fulfilled":(R.status==="error"||R.data!==ce.value)&&A();break;case"rejected":(R.status!=="error"||R.error!==ce.reason)&&A();break}}return R}updateResult(){const t=y(this,Oe),n=this.createResult(y(this,Q),this.options);if(M(this,Fn,y(this,Q).state),M(this,xr,this.options),y(this,Fn).data!==void 0&&M(this,Er,y(this,Q)),Ys(n,t))return;M(this,Oe,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!y(this,kr).size)return!0;const o=new Set(l??y(this,kr));return this.options.throwOnError&&o.add("error"),Object.keys(y(this,Oe)).some(s=>{const a=s;return y(this,Oe)[a]!==t[a]&&o.has(a)})};B(this,V,Ph).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&B(this,V,ea).call(this)}},je=new WeakMap,Q=new WeakMap,Fi=new WeakMap,Oe=new WeakMap,Fn=new WeakMap,xr=new WeakMap,Ot=new WeakMap,Jt=new WeakMap,ji=new WeakMap,Sr=new WeakMap,Er=new WeakMap,jn=new WeakMap,In=new WeakMap,Zt=new WeakMap,kr=new WeakMap,V=new WeakSet,ti=function(t){B(this,V,ra).call(this);let n=y(this,Q).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ie)),n},Xs=function(){B(this,V,ta).call(this);const t=pn(this.options.staleTime,y(this,Q));if(Vn||y(this,Oe).isStale||!Vs(t))return;const r=gh(y(this,Oe).dataUpdatedAt,t)+1;M(this,jn,Tn.setTimeout(()=>{y(this,Oe).isStale||this.updateResult()},r))},Js=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,Q)):this.options.refetchInterval)??!1},Zs=function(t){B(this,V,na).call(this),M(this,Zt,t),!(Vn||qe(this.options.enabled,y(this,Q))===!1||!Vs(y(this,Zt))||y(this,Zt)===0)&&M(this,In,Tn.setInterval(()=>{(this.options.refetchIntervalInBackground||lu.isFocused())&&B(this,V,ti).call(this)},y(this,Zt)))},ea=function(){B(this,V,Xs).call(this),B(this,V,Zs).call(this,B(this,V,Js).call(this))},ta=function(){y(this,jn)&&(Tn.clearTimeout(y(this,jn)),M(this,jn,void 0))},na=function(){y(this,In)&&(Tn.clearInterval(y(this,In)),M(this,In,void 0))},ra=function(){const t=y(this,je).getQueryCache().build(y(this,je),this.options);if(t===y(this,Q))return;const n=y(this,Q);M(this,Q,t),M(this,Fi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ph=function(t){ve.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Oe))}),y(this,je).getQueryCache().notify({query:y(this,Q),type:"observerResultsUpdated"})})},Zc);function Yy(e,t){return qe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Oc(e,t){return Yy(e,t)||e.state.data!==void 0&&ia(e,t,t.refetchOnMount)}function ia(e,t,n){if(qe(t.enabled,e)!==!1&&pn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ou(e,t)}return!1}function _c(e,t,n,r){return(e!==t||qe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ou(e,n)}function ou(e,t){return qe(t.enabled,e)!==!1&&e.isStaleByTime(pn(t.staleTime,e))}function Ky(e,t){return!Ys(e.getCurrentResult(),t)}function Mc(e){return{onFetch:(t,n)=>{var c,f,m,v,w;const r=t.options,i=(m=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,l=((v=t.state.data)==null?void 0:v.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},a=0;const u=async()=>{let S=!1;const E=p=>{Ay(p,()=>t.signal,()=>S=!0)},h=wh(t.options,t.fetchOptions),d=async(p,x,P)=>{if(S)return Promise.reject();if(x==null&&p.pages.length)return Promise.resolve(p);const _=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:x,direction:P?"backward":"forward",meta:t.options.meta};return E(A),A})(),R=await h(_),{maxPages:j}=t.options,N=P?zy:Iy;return{pages:N(p.pages,R,j),pageParams:N(p.pageParams,x,j)}};if(i&&l.length){const p=i==="backward",x=p?by:Lc,P={pages:l,pageParams:o},O=x(r,P);s=await d(P,O,p)}else{const p=e??l.length;do{const x=a===0?o[0]??r.initialPageParam:Lc(r,s);if(a>0&&x==null)break;s=await d(s,x),a++}while(a<p)}return s};t.options.persister?t.fetchFn=()=>{var S,E;return(E=(S=t.options).persister)==null?void 0:E.call(S,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Lc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function by(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ii,wt,_e,zn,xt,Ht,ef,Gy=(ef=class extends kh{constructor(t){super();I(this,xt);I(this,Ii);I(this,wt);I(this,_e);I(this,zn);M(this,Ii,t.client),this.mutationId=t.mutationId,M(this,_e,t.mutationCache),M(this,wt,[]),this.state=t.state||qy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,wt).includes(t)||(y(this,wt).push(t),this.clearGcTimeout(),y(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,wt,y(this,wt).filter(n=>n!==t)),this.scheduleGc(),y(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,wt).length||(this.state.status==="pending"?this.scheduleGc():y(this,_e).remove(this))}continue(){var t;return((t=y(this,zn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,u,c,f,m,v,w,S,E,h,d,p,x,P,O,_,R,j;const n=()=>{B(this,xt,Ht).call(this,{type:"continue"})},r={client:y(this,Ii),meta:this.options.meta,mutationKey:this.options.mutationKey};M(this,zn,Eh({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(N,A)=>{B(this,xt,Ht).call(this,{type:"failed",failureCount:N,error:A})},onPause:()=>{B(this,xt,Ht).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,_e).canRun(this)}));const i=this.state.status==="pending",l=!y(this,zn).canStart();try{if(i)n();else{B(this,xt,Ht).call(this,{type:"pending",variables:t,isPaused:l}),await((s=(o=y(this,_e).config).onMutate)==null?void 0:s.call(o,t,this,r));const A=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t,r));A!==this.state.context&&B(this,xt,Ht).call(this,{type:"pending",context:A,variables:t,isPaused:l})}const N=await y(this,zn).start();return await((f=(c=y(this,_e).config).onSuccess)==null?void 0:f.call(c,N,t,this.state.context,this,r)),await((v=(m=this.options).onSuccess)==null?void 0:v.call(m,N,t,this.state.context,r)),await((S=(w=y(this,_e).config).onSettled)==null?void 0:S.call(w,N,null,this.state.variables,this.state.context,this,r)),await((h=(E=this.options).onSettled)==null?void 0:h.call(E,N,null,t,this.state.context,r)),B(this,xt,Ht).call(this,{type:"success",data:N}),N}catch(N){try{await((p=(d=y(this,_e).config).onError)==null?void 0:p.call(d,N,t,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((P=(x=this.options).onError)==null?void 0:P.call(x,N,t,this.state.context,r))}catch(A){Promise.reject(A)}try{await((_=(O=y(this,_e).config).onSettled)==null?void 0:_.call(O,void 0,N,this.state.variables,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((j=(R=this.options).onSettled)==null?void 0:j.call(R,void 0,N,t,this.state.context,r))}catch(A){Promise.reject(A)}throw B(this,xt,Ht).call(this,{type:"error",error:N}),N}finally{y(this,_e).runNext(this)}}},Ii=new WeakMap,wt=new WeakMap,_e=new WeakMap,zn=new WeakMap,xt=new WeakSet,Ht=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ve.batch(()=>{y(this,wt).forEach(r=>{r.onMutationUpdate(t)}),y(this,_e).notify({mutation:this,type:"updated",action:t})})},ef);function qy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _t,st,zi,tf,Xy=(tf=class extends Qi{constructor(t={}){super();I(this,_t);I(this,st);I(this,zi);this.config=t,M(this,_t,new Set),M(this,st,new Map),M(this,zi,0)}build(t,n,r){const i=new Gy({client:t,mutationCache:this,mutationId:++bi(this,zi)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){y(this,_t).add(t);const n=dl(t);if(typeof n=="string"){const r=y(this,st).get(n);r?r.push(t):y(this,st).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,_t).delete(t)){const n=dl(t);if(typeof n=="string"){const r=y(this,st).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&y(this,st).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=dl(t);if(typeof n=="string"){const r=y(this,st).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=dl(t);if(typeof n=="string"){const i=(r=y(this,st).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ve.batch(()=>{y(this,_t).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,_t).clear(),y(this,st).clear()})}getAll(){return Array.from(y(this,_t))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Cc(n,r))}findAll(t={}){return this.getAll().filter(n=>Cc(t,n))}notify(t){ve.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ve.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ie))))}},_t=new WeakMap,st=new WeakMap,zi=new WeakMap,tf);function dl(e){var t;return(t=e.options.scope)==null?void 0:t.id}var St,nf,Jy=(nf=class extends Qi{constructor(t={}){super();I(this,St);this.config=t,M(this,St,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??ru(i,n);let o=this.get(l);return o||(o=new Hy({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,St).has(t.queryHash)||(y(this,St).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,St).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,St).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ve.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,St).get(t)}getAll(){return[...y(this,St).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>kc(t,r)):n}notify(t){ve.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ve.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ve.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},St=new WeakMap,nf),ie,en,tn,Cr,Pr,nn,Rr,Nr,rf,Zy=(rf=class{constructor(e={}){I(this,ie);I(this,en);I(this,tn);I(this,Cr);I(this,Pr);I(this,nn);I(this,Rr);I(this,Nr);M(this,ie,e.queryCache||new Jy),M(this,en,e.mutationCache||new Xy),M(this,tn,e.defaultOptions||{}),M(this,Cr,new Map),M(this,Pr,new Map),M(this,nn,0)}mount(){bi(this,nn)._++,y(this,nn)===1&&(M(this,Rr,lu.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ie).onFocus())})),M(this,Nr,Jl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ie).onOnline())})))}unmount(){var e,t;bi(this,nn)._--,y(this,nn)===0&&((e=y(this,Rr))==null||e.call(this),M(this,Rr,void 0),(t=y(this,Nr))==null||t.call(this),M(this,Nr,void 0))}isFetching(e){return y(this,ie).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,en).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ie).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,ie).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,ie).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,ie).get(r.queryHash),l=i==null?void 0:i.state.data,o=Dy(t,l);if(o!==void 0)return y(this,ie).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ve.batch(()=>y(this,ie).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ie).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ie);ve.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ie);return ve.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ve.batch(()=>y(this,ie).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ie).catch(Ie)}invalidateQueries(e,t={}){return ve.batch(()=>(y(this,ie).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ve.batch(()=>y(this,ie).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(Ie)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Ie)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ie).build(this,t);return n.isStaleByTime(pn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ie).catch(Ie)}fetchInfiniteQuery(e){return e.behavior=Mc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ie).catch(Ie)}ensureInfiniteQueryData(e){return e.behavior=Mc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Jl.isOnline()?y(this,en).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ie)}getMutationCache(){return y(this,en)}getDefaultOptions(){return y(this,tn)}setDefaultOptions(e){M(this,tn,e)}setQueryDefaults(e,t){y(this,Cr).set(Oi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Cr).values()],n={};return t.forEach(r=>{_i(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,Pr).set(Oi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,Pr).values()],n={};return t.forEach(r=>{_i(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,tn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ru(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===iu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,tn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ie).clear(),y(this,en).clear()}},ie=new WeakMap,en=new WeakMap,tn=new WeakMap,Cr=new WeakMap,Pr=new WeakMap,nn=new WeakMap,Rr=new WeakMap,Nr=new WeakMap,rf),Rh=g.createContext(void 0),eg=e=>{const t=g.useContext(Rh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tg=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(Rh.Provider,{value:e,children:t})),Nh=g.createContext(!1),ng=()=>g.useContext(Nh);Nh.Provider;function rg(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ig=g.createContext(rg()),lg=()=>g.useContext(ig),og=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?xh(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},sg=e=>{g.useEffect(()=>{e.clearReset()},[e])},ag=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||xh(n,[e.error,r])),ug=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},cg=(e,t)=>e.isLoading&&e.isFetching&&!t,fg=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Dc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function dg(e,t,n){var m,v,w,S;const r=ng(),i=lg(),l=eg(),o=l.defaultQueryOptions(e);(v=(m=l.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||v.call(m,o);const s=l.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",ug(o),og(o,i,s),sg(i);const a=!l.getQueryCache().get(o.queryHash),[u]=g.useState(()=>new t(l,o)),c=u.getOptimisticResult(o),f=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(E=>{const h=f?u.subscribe(ve.batchCalls(E)):Ie;return u.updateResult(),h},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),g.useEffect(()=>{u.setOptions(o)},[o,u]),fg(o,c))throw Dc(o,u,i);if(ag({result:c,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw c.error;if((S=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||S.call(w,o,c),o.experimental_prefetchInRender&&!Vn&&cg(c,r)){const E=a?Dc(o,u,i):s==null?void 0:s.promise;E==null||E.catch(Ie).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?c:u.trackResult(c)}function Th(e,t){return dg(e,Vy)}/**
|
|
41
|
+
* react-router v7.11.0
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var Fc="popstate";function hg(e={}){function t(r,i){let{pathname:l,search:o,hash:s}=r.location;return la("",{pathname:l,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Mi(i)}return mg(t,n,null,e)}function te(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ht(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pg(){return Math.random().toString(36).substring(2,10)}function jc(e,t){return{usr:e.state,key:e.key,idx:t}}function la(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ar(t):t,state:n,key:t&&t.key||r||pg()}}function Mi({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ar(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function mg(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s="POP",a=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function f(){s="POP";let E=c(),h=E==null?null:E-u;u=E,a&&a({action:s,location:S.location,delta:h})}function m(E,h){s="PUSH";let d=la(S.location,E,h);u=c()+1;let p=jc(d,u),x=S.createHref(d);try{o.pushState(p,"",x)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(x)}l&&a&&a({action:s,location:S.location,delta:1})}function v(E,h){s="REPLACE";let d=la(S.location,E,h);u=c();let p=jc(d,u),x=S.createHref(d);o.replaceState(p,"",x),l&&a&&a({action:s,location:S.location,delta:0})}function w(E){return yg(E)}let S={get action(){return s},get location(){return e(i,o)},listen(E){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Fc,f),a=E,()=>{i.removeEventListener(Fc,f),a=null}},createHref(E){return t(i,E)},createURL:w,encodeLocation(E){let h=w(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:v,go(E){return o.go(E)}};return S}function yg(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),te(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Mi(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Oh(e,t,n="/"){return gg(e,t,n,!1)}function gg(e,t,n,r){let i=typeof t=="string"?Ar(t):t,l=Ut(i.pathname||"/",n);if(l==null)return null;let o=_h(e);vg(o);let s=null;for(let a=0;s==null&&a<o.length;++a){let u=Og(l);s=Ng(o[a],u,r)}return s}function _h(e,t=[],n=[],r="",i=!1){let l=(o,s,a=i,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&a)return;te(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let f=Ft([r,c.relativePath]),m=n.concat(c);o.children&&o.children.length>0&&(te(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),_h(o.children,t,m,f,a)),!(o.path==null&&!o.index)&&t.push({path:f,score:Pg(f,o.index),routesMeta:m})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,s);else for(let u of Mh(o.path))l(o,s,!0,u)}),t}function Mh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=Mh(r.join("/")),s=[];return s.push(...o.map(a=>a===""?l:[l,a].join("/"))),i&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function vg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Rg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var wg=/^:[\w-]+$/,xg=3,Sg=2,Eg=1,kg=10,Cg=-2,Ic=e=>e==="*";function Pg(e,t){let n=e.split("/"),r=n.length;return n.some(Ic)&&(r+=Cg),t&&(r+=Sg),n.filter(i=>!Ic(i)).reduce((i,l)=>i+(wg.test(l)?xg:l===""?Eg:kg),r)}function Rg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Ng(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",o=[];for(let s=0;s<r.length;++s){let a=r[s],u=s===r.length-1,c=l==="/"?t:t.slice(l.length)||"/",f=Zl({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},c),m=a.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Zl({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:Ft([l,f.pathname]),pathnameBase:Dg(Ft([l,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(l=Ft([l,f.pathnameBase]))}return o}function Zl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Tg(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],o=l.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},m)=>{if(c==="*"){let w=s[m]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const v=s[m];return f&&!v?u[c]=void 0:u[c]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function Tg(e,t=!1,n=!0){ht(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Og(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ht(!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 Ut(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Lh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_g=e=>Lh.test(e);function Mg(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ar(e):e,l;if(n)if(_g(n))l=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),ht(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?l=zc(n.substring(1),"/"):l=zc(n,t)}else l=t;return{pathname:l,search:Fg(r),hash:jg(i)}}function zc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function bo(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Lg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dh(e){let t=Lg(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Fh(e,t,n,r=!1){let i;typeof e=="string"?i=Ar(e):(i={...e},te(!i.pathname||!i.pathname.includes("?"),bo("?","pathname","search",i)),te(!i.pathname||!i.pathname.includes("#"),bo("#","pathname","hash",i)),te(!i.search||!i.search.includes("#"),bo("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let a=Mg(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(l||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}var Ft=e=>e.join("/").replace(/\/\/+/g,"/"),Dg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Fg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ig=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function zg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ag(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var jh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ih(e,t){let n=e;if(typeof n!="string"||!Lh.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(jh)try{let l=new URL(window.location.href),o=n.startsWith("//")?new URL(l.protocol+n):new URL(n),s=Ut(o.pathname,t);o.origin===l.origin&&s!=null?n=s+o.search+o.hash:i=!0}catch{ht(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var zh=["POST","PUT","PATCH","DELETE"];new Set(zh);var Ug=["GET",...zh];new Set(Ug);var Ur=g.createContext(null);Ur.displayName="DataRouter";var vo=g.createContext(null);vo.displayName="DataRouterState";var Wg=g.createContext(!1),Ah=g.createContext({isTransitioning:!1});Ah.displayName="ViewTransition";var $g=g.createContext(new Map);$g.displayName="Fetchers";var Bg=g.createContext(null);Bg.displayName="Await";var rt=g.createContext(null);rt.displayName="Navigation";var Hi=g.createContext(null);Hi.displayName="Location";var Pt=g.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var su=g.createContext(null);su.displayName="RouteError";var Uh="REACT_ROUTER_ERROR",Qg="REDIRECT",Hg="ROUTE_ERROR_RESPONSE";function Vg(e){if(e.startsWith(`${Uh}:${Qg}:{`))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 Yg(e){if(e.startsWith(`${Uh}:${Hg}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ig(t.status,t.statusText,t.data)}catch{}}function Kg(e,{relative:t}={}){te(Vi(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(rt),{hash:i,pathname:l,search:o}=Yi(e,{relative:t}),s=l;return n!=="/"&&(s=l==="/"?n:Ft([n,l])),r.createHref({pathname:s,search:o,hash:i})}function Vi(){return g.useContext(Hi)!=null}function Gn(){return te(Vi(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Hi).location}var Wh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $h(e){g.useContext(rt).static||g.useLayoutEffect(e)}function Bh(){let{isDataRoute:e}=g.useContext(Pt);return e?sv():bg()}function bg(){te(Vi(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(Ur),{basename:t,navigator:n}=g.useContext(rt),{matches:r}=g.useContext(Pt),{pathname:i}=Gn(),l=JSON.stringify(Dh(r)),o=g.useRef(!1);return $h(()=>{o.current=!0}),g.useCallback((a,u={})=>{if(ht(o.current,Wh),!o.current)return;if(typeof a=="number"){n.go(a);return}let c=Fh(a,JSON.parse(l),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Ft([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,l,i,e])}g.createContext(null);function Gg(){let{matches:e}=g.useContext(Pt),t=e[e.length-1];return t?t.params:{}}function Yi(e,{relative:t}={}){let{matches:n}=g.useContext(Pt),{pathname:r}=Gn(),i=JSON.stringify(Dh(n));return g.useMemo(()=>Fh(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function qg(e,t){return Qh(e,t)}function Qh(e,t,n,r,i){var d;te(Vi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=g.useContext(rt),{matches:o}=g.useContext(Pt),s=o[o.length-1],a=s?s.params:{},u=s?s.pathname:"/",c=s?s.pathnameBase:"/",f=s&&s.route;{let p=f&&f.path||"";Vh(u,!f||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (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.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let m=Gn(),v;if(t){let p=typeof t=="string"?Ar(t):t;te(c==="/"||((d=p.pathname)==null?void 0:d.startsWith(c)),`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 "${c}" but pathname "${p.pathname}" was given in the \`location\` prop.`),v=p}else v=m;let w=v.pathname||"/",S=w;if(c!=="/"){let p=c.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(p.length).join("/")}let E=Oh(e,{pathname:S});ht(f||E!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),ht(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=tv(E&&E.map(p=>Object.assign({},p,{params:Object.assign({},a,p.params),pathname:Ft([c,l.encodeLocation?l.encodeLocation(p.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:Ft([c,l.encodeLocation?l.encodeLocation(p.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),o,n,r,i);return t&&h?g.createElement(Hi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},h):h}function Xg(){let e=ov(),t=zg(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=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:l},"ErrorBoundary")," or"," ",g.createElement("code",{style:l},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:i},n):null,o)}var Jg=g.createElement(Xg,null),Hh=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 n=Yg(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(Pt.Provider,{value:this.props.routeContext},g.createElement(su.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(Zg,{error:e},t):t}};Hh.contextType=Wg;var Go=new WeakMap;function Zg({children:e,error:t}){let{basename:n}=g.useContext(rt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Vg(t.digest);if(r){let i=Go.get(t);if(i)throw i;let l=Ih(r.location,n);if(jh&&!Go.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw Go.set(t,o),o}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function ev({routeContext:e,match:t,children:n}){let r=g.useContext(Ur);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(Pt.Provider,{value:e},n)}function tv(e,t=[],n=null,r=null,i=null){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 l=e,o=n==null?void 0:n.errors;if(o!=null){let c=l.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);te(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,c+1))}let s=!1,a=-1;if(n)for(let c=0;c<l.length;c++){let f=l[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(a=c),f.route.id){let{loaderData:m,errors:v}=n,w=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!v||v[f.route.id]===void 0);if(f.route.lazy||w){s=!0,a>=0?l=l.slice(0,a+1):l=[l[0]];break}}}let u=n&&r?(c,f)=>{var m,v;r(c,{location:n.location,params:((v=(m=n.matches)==null?void 0:m[0])==null?void 0:v.params)??{},unstable_pattern:Ag(n.matches),errorInfo:f})}:void 0;return l.reduceRight((c,f,m)=>{let v,w=!1,S=null,E=null;n&&(v=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||Jg,s&&(a<0&&m===0?(Vh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):a===m&&(w=!0,E=f.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,m+1)),d=()=>{let p;return v?p=S:w?p=E:f.route.Component?p=g.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=c,g.createElement(ev,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:p})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?g.createElement(Hh,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:d(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):d()},null)}function au(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nv(e){let t=g.useContext(Ur);return te(t,au(e)),t}function rv(e){let t=g.useContext(vo);return te(t,au(e)),t}function iv(e){let t=g.useContext(Pt);return te(t,au(e)),t}function uu(e){let t=iv(e),n=t.matches[t.matches.length-1];return te(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function lv(){return uu("useRouteId")}function ov(){var r;let e=g.useContext(su),t=rv("useRouteError"),n=uu("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function sv(){let{router:e}=nv("useNavigate"),t=uu("useNavigate"),n=g.useRef(!1);return $h(()=>{n.current=!0}),g.useCallback(async(i,l={})=>{ht(n.current,Wh),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var Ac={};function Vh(e,t,n){!t&&!Ac[e]&&(Ac[e]=!0,ht(!1,n))}g.memo(av);function av({routes:e,future:t,state:n,onError:r}){return Qh(e,void 0,n,r,t)}function oa(e){te(!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 uv({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1,unstable_useTransitions:o}){te(!Vi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),a=g.useMemo(()=>({basename:s,navigator:i,static:l,unstable_useTransitions:o,future:{}}),[s,i,l,o]);typeof n=="string"&&(n=Ar(n));let{pathname:u="/",search:c="",hash:f="",state:m=null,key:v="default"}=n,w=g.useMemo(()=>{let S=Ut(u,s);return S==null?null:{location:{pathname:S,search:c,hash:f,state:m,key:v},navigationType:r}},[s,u,c,f,m,v,r]);return ht(w!=null,`<Router basename="${s}"> is not able to match the URL "${u}${c}${f}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:g.createElement(rt.Provider,{value:a},g.createElement(Hi.Provider,{children:t,value:w}))}function cv({children:e,location:t}){return qg(sa(e),t)}function sa(e,t=[]){let n=[];return g.Children.forEach(e,(r,i)=>{if(!g.isValidElement(r))return;let l=[...t,i];if(r.type===g.Fragment){n.push.apply(n,sa(r.props.children,l));return}te(r.type===oa,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),te(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=sa(r.props.children,l)),n.push(o)}),n}var Rl="get",Nl="application/x-www-form-urlencoded";function wo(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function fv(e){return wo(e)&&e.tagName.toLowerCase()==="button"}function dv(e){return wo(e)&&e.tagName.toLowerCase()==="form"}function hv(e){return wo(e)&&e.tagName.toLowerCase()==="input"}function pv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mv(e,t){return e.button===0&&(!t||t==="_self")&&!pv(e)}var hl=null;function yv(){if(hl===null)try{new FormData(document.createElement("form"),0),hl=!1}catch{hl=!0}return hl}var gv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qo(e){return e!=null&&!gv.has(e)?(ht(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Nl}"`),null):e}function vv(e,t){let n,r,i,l,o;if(dv(e)){let s=e.getAttribute("action");r=s?Ut(s,t):null,n=e.getAttribute("method")||Rl,i=qo(e.getAttribute("enctype"))||Nl,l=new FormData(e)}else if(fv(e)||hv(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?Ut(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Rl,i=qo(e.getAttribute("formenctype"))||qo(s.getAttribute("enctype"))||Nl,l=new FormData(s,e),!yv()){let{name:u,type:c,value:f}=e;if(c==="image"){let m=u?`${u}.`:"";l.append(`${m}x`,"0"),l.append(`${m}y`,"0")}else u&&l.append(u,f)}}else{if(wo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Rl,r=null,i=Nl,o=e}return l&&i==="text/plain"&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cu(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wv(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Ut(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function xv(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Sv(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 Ev(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let o=await xv(l,n);return o.links?o.links():[]}return[]}));return Rv(r.flat(1).filter(Sv).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Uc(e,t,n,r,i,l){let o=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,s=(a,u)=>{var c;return n[u].pathname!==a.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return l==="assets"?t.filter((a,u)=>o(a,u)||s(a,u)):l==="data"?t.filter((a,u)=>{var f;let c=r.routes[a.route.id];if(!c||!c.hasLoader)return!1;if(o(a,u)||s(a,u))return!0;if(a.route.shouldRevalidate){let m=a.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function kv(e,t,{includeHydrateFallback:n}={}){return Cv(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function Cv(e){return[...new Set(e)]}function Pv(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Rv(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(Pv(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function Yh(){let e=g.useContext(Ur);return cu(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Nv(){let e=g.useContext(vo);return cu(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var fu=g.createContext(void 0);fu.displayName="FrameworkContext";function Kh(){let e=g.useContext(fu);return cu(e,"You must render this element inside a <HydratedRouter> element"),e}function Tv(e,t){let n=g.useContext(fu),[r,i]=g.useState(!1),[l,o]=g.useState(!1),{onFocus:s,onBlur:a,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=t,m=g.useRef(null);g.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let S=h=>{h.forEach(d=>{o(d.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return m.current&&E.observe(m.current),()=>{E.disconnect()}}},[e]),g.useEffect(()=>{if(r){let S=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(S)}}},[r]);let v=()=>{i(!0)},w=()=>{i(!1),o(!1)};return n?e!=="intent"?[l,m,{}]:[l,m,{onFocus:br(s,v),onBlur:br(a,w),onMouseEnter:br(u,v),onMouseLeave:br(c,w),onTouchStart:br(f,v)}]:[!1,m,{}]}function br(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ov({page:e,...t}){let{router:n}=Yh(),r=g.useMemo(()=>Oh(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(Mv,{page:e,matches:r,...t}):null}function _v(e){let{manifest:t,routeModules:n}=Kh(),[r,i]=g.useState([]);return g.useEffect(()=>{let l=!1;return Ev(e,t,n).then(o=>{l||i(o)}),()=>{l=!0}},[e,t,n]),r}function Mv({page:e,matches:t,...n}){let r=Gn(),{manifest:i,routeModules:l}=Kh(),{basename:o}=Yh(),{loaderData:s,matches:a}=Nv(),u=g.useMemo(()=>Uc(e,t,a,i,r,"data"),[e,t,a,i,r]),c=g.useMemo(()=>Uc(e,t,a,i,r,"assets"),[e,t,a,i,r]),f=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,S=!1;if(t.forEach(h=>{var p;let d=i.routes[h.route.id];!d||!d.hasLoader||(!u.some(x=>x.route.id===h.route.id)&&h.route.id in s&&((p=l[h.route.id])!=null&&p.shouldRevalidate)||d.hasClientLoader?S=!0:w.add(h.route.id))}),w.size===0)return[];let E=wv(e,o,"data");return S&&w.size>0&&E.searchParams.set("_routes",t.filter(h=>w.has(h.route.id)).map(h=>h.route.id).join(",")),[E.pathname+E.search]},[o,s,r,i,u,t,e,l]),m=g.useMemo(()=>kv(c,i),[c,i]),v=_v(c);return g.createElement(g.Fragment,null,f.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),m.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),v.map(({key:w,link:S})=>g.createElement("link",{key:w,nonce:n.nonce,...S})))}function Lv(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Dv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dv&&(window.__reactRouterVersion="7.11.0")}catch{}function Fv({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=g.useRef();i.current==null&&(i.current=hg({window:r,v5Compat:!0}));let l=i.current,[o,s]=g.useState({action:l.action,location:l.location}),a=g.useCallback(u=>{n===!1?s(u):g.startTransition(()=>s(u))},[n]);return g.useLayoutEffect(()=>l.listen(a),[l,a]),g.createElement(uv,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:l,unstable_useTransitions:n})}var bh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,du=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:o,state:s,target:a,to:u,preventScrollReset:c,viewTransition:f,unstable_defaultShouldRevalidate:m,...v},w){let{basename:S,unstable_useTransitions:E}=g.useContext(rt),h=typeof u=="string"&&bh.test(u),d=Ih(u,S);u=d.to;let p=Kg(u,{relative:i}),[x,P,O]=Tv(r,v),_=Av(u,{replace:o,state:s,target:a,preventScrollReset:c,relative:i,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:E});function R(N){t&&t(N),N.defaultPrevented||_(N)}let j=g.createElement("a",{...v,...O,href:d.absoluteURL||p,onClick:d.isExternal||l?t:R,ref:Lv(w,P),target:a,"data-discover":!h&&n==="render"?"true":void 0});return x&&!h?g.createElement(g.Fragment,null,j,g.createElement(Ov,{page:p})):j});du.displayName="Link";var jv=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:o,viewTransition:s,children:a,...u},c){let f=Yi(o,{relative:u.relative}),m=Gn(),v=g.useContext(vo),{navigator:w,basename:S}=g.useContext(rt),E=v!=null&&Qv(f)&&s===!0,h=w.encodeLocation?w.encodeLocation(f).pathname:f.pathname,d=m.pathname,p=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(d=d.toLowerCase(),p=p?p.toLowerCase():null,h=h.toLowerCase()),p&&S&&(p=Ut(p,S)||p);const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let P=d===h||!i&&d.startsWith(h)&&d.charAt(x)==="/",O=p!=null&&(p===h||!i&&p.startsWith(h)&&p.charAt(h.length)==="/"),_={isActive:P,isPending:O,isTransitioning:E},R=P?t:void 0,j;typeof r=="function"?j=r(_):j=[r,P?"active":null,O?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let N=typeof l=="function"?l(_):l;return g.createElement(du,{...u,"aria-current":R,className:j,ref:c,style:N,to:o,viewTransition:s},typeof a=="function"?a(_):a)});jv.displayName="NavLink";var Iv=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:o=Rl,action:s,onSubmit:a,relative:u,preventScrollReset:c,viewTransition:f,unstable_defaultShouldRevalidate:m,...v},w)=>{let{unstable_useTransitions:S}=g.useContext(rt),E=$v(),h=Bv(s,{relative:u}),d=o.toLowerCase()==="get"?"get":"post",p=typeof s=="string"&&bh.test(s),x=P=>{if(a&&a(P),P.defaultPrevented)return;P.preventDefault();let O=P.nativeEvent.submitter,_=(O==null?void 0:O.getAttribute("formmethod"))||o,R=()=>E(O||P.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:i,state:l,relative:u,preventScrollReset:c,viewTransition:f,unstable_defaultShouldRevalidate:m});S&&n!==!1?g.startTransition(()=>R()):R()};return g.createElement("form",{ref:w,method:d,action:h,onSubmit:r?a:x,...v,"data-discover":!p&&e==="render"?"true":void 0})});Iv.displayName="Form";function zv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gh(e){let t=g.useContext(Ur);return te(t,zv(e)),t}function Av(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s,unstable_useTransitions:a}={}){let u=Bh(),c=Gn(),f=Yi(e,{relative:l});return g.useCallback(m=>{if(mv(m,t)){m.preventDefault();let v=n!==void 0?n:Mi(c)===Mi(f),w=()=>u(e,{replace:v,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s});a?g.startTransition(()=>w()):w()}},[c,u,f,n,r,t,e,i,l,o,s,a])}var Uv=0,Wv=()=>`__${String(++Uv)}__`;function $v(){let{router:e}=Gh("useSubmit"),{basename:t}=g.useContext(rt),n=lv(),r=e.fetch,i=e.navigate;return g.useCallback(async(l,o={})=>{let{action:s,method:a,encType:u,formData:c,body:f}=vv(l,t);if(o.navigate===!1){let m=o.fetcherKey||Wv();await r(m,n,o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||a,formEncType:o.encType||u,flushSync:o.flushSync})}else await i(o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||a,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}function Bv(e,{relative:t}={}){let{basename:n}=g.useContext(rt),r=g.useContext(Pt);te(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...Yi(e||".",{relative:t})},o=Gn();if(e==null){l.search=o.search;let s=new URLSearchParams(l.search),a=s.getAll("index");if(a.some(c=>c==="")){s.delete("index"),a.filter(f=>f).forEach(f=>s.append("index",f));let c=s.toString();l.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ft([n,l.pathname])),Mi(l)}function Qv(e,{relative:t}={}){let n=g.useContext(Ah);te(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gh("useViewTransitionState"),i=Yi(e,{relative:t});if(!n.isTransitioning)return!1;let l=Ut(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ut(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Zl(i.pathname,o)!=null||Zl(i.pathname,l)!=null}function pt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Yn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const qh=6048e5,Hv=864e5;let Vv={};function xo(){return Vv}function Li(e,t){var s,a,u,c;const n=xo(),r=(t==null?void 0:t.weekStartsOn)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=pt(e),l=i.getDay(),o=(l<r?7:0)+l-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function eo(e){return Li(e,{weekStartsOn:1})}function Xh(e){const t=pt(e),n=t.getFullYear(),r=Yn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=eo(r),l=Yn(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const o=eo(l);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Wc(e){const t=pt(e);return t.setHours(0,0,0,0),t}function $c(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Yv(e,t){const n=Wc(e),r=Wc(t),i=+n-$c(n),l=+r-$c(r);return Math.round((i-l)/Hv)}function Kv(e){const t=Xh(e),n=Yn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),eo(n)}function bv(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Gv(e){if(!bv(e)&&typeof e!="number")return!1;const t=pt(e);return!isNaN(Number(t))}function qv(e){const t=pt(e),n=Yn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Xv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Jv=(e,t,n)=>{let r;const i=Xv[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Zv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e0={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n0={date:Xo({formats:Zv,defaultWidth:"full"}),time:Xo({formats:e0,defaultWidth:"full"}),dateTime:Xo({formats:t0,defaultWidth:"full"})},r0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i0=(e,t,n,r)=>r0[e];function Gr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const l0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},f0=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},d0={ordinalNumber:f0,era:Gr({values:l0,defaultWidth:"wide"}),quarter:Gr({values:o0,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gr({values:s0,defaultWidth:"wide"}),day:Gr({values:a0,defaultWidth:"wide"}),dayPeriod:Gr({values:u0,defaultWidth:"wide",formattingValues:c0,defaultFormattingWidth:"wide"})};function qr(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const o=l[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?p0(s,f=>f.test(o)):h0(s,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(a):a,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function h0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function p0(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function m0(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],l=t.match(e.parsePattern);if(!l)return null;let o=e.valueCallback?e.valueCallback(l[0]):l[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const y0=/^(\d+)(th|st|nd|rd)?/i,g0=/\d+/i,v0={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},w0={any:[/^b/i,/^(a|c)/i]},x0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},S0={any:[/1/i,/2/i,/3/i,/4/i]},E0={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},k0={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},C0={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},P0={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},R0={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},N0={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},T0={ordinalNumber:m0({matchPattern:y0,parsePattern:g0,valueCallback:e=>parseInt(e,10)}),era:qr({matchPatterns:v0,defaultMatchWidth:"wide",parsePatterns:w0,defaultParseWidth:"any"}),quarter:qr({matchPatterns:x0,defaultMatchWidth:"wide",parsePatterns:S0,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qr({matchPatterns:E0,defaultMatchWidth:"wide",parsePatterns:k0,defaultParseWidth:"any"}),day:qr({matchPatterns:C0,defaultMatchWidth:"wide",parsePatterns:P0,defaultParseWidth:"any"}),dayPeriod:qr({matchPatterns:R0,defaultMatchWidth:"any",parsePatterns:N0,defaultParseWidth:"any"})},O0={code:"en-US",formatDistance:Jv,formatLong:n0,formatRelative:i0,localize:d0,match:T0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function _0(e){const t=pt(e);return Yv(t,qv(t))+1}function M0(e){const t=pt(e),n=+eo(t)-+Kv(t);return Math.round(n/qh)+1}function Jh(e,t){var c,f,m,v;const n=pt(e),r=n.getFullYear(),i=xo(),l=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(m=i.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,o=Yn(e,0);o.setFullYear(r+1,0,l),o.setHours(0,0,0,0);const s=Li(o,t),a=Yn(e,0);a.setFullYear(r,0,l),a.setHours(0,0,0,0);const u=Li(a,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function L0(e,t){var s,a,u,c;const n=xo(),r=(t==null?void 0:t.firstWeekContainsDate)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=Jh(e,t),l=Yn(e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),Li(l,t)}function D0(e,t){const n=pt(e),r=+Li(n,t)-+L0(n,t);return Math.round(r/qh)+1}function Y(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Qt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Y(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Y(n+1,2)},d(e,t){return Y(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Y(e.getHours()%12||12,t.length)},H(e,t){return Y(e.getHours(),t.length)},m(e,t){return Y(e.getMinutes(),t.length)},s(e,t){return Y(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Y(i,t.length)}},Xn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Bc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Qt.y(e,t)},Y:function(e,t,n,r){const i=Jh(e,r),l=i>0?i:1-i;if(t==="YY"){const o=l%100;return Y(o,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):Y(l,t.length)},R:function(e,t){const n=Xh(e);return Y(n,t.length)},u:function(e,t){const n=e.getFullYear();return Y(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Y(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Y(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Qt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Y(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=D0(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Y(i,t.length)},I:function(e,t,n){const r=M0(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Y(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Qt.d(e,t)},D:function(e,t,n){const r=_0(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Y(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return Y(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return Y(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Y(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Xn.noon:r===0?i=Xn.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Xn.evening:r>=12?i=Xn.afternoon:r>=4?i=Xn.morning:i=Xn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Qt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Qt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Y(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Y(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Qt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Qt.s(e,t)},S:function(e,t){return Qt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Hc(r);case"XXXX":case"XX":return Cn(r);case"XXXXX":case"XXX":default:return Cn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Hc(r);case"xxxx":case"xx":return Cn(r);case"xxxxx":case"xxx":default:return Cn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qc(r,":");case"OOOO":default:return"GMT"+Cn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qc(r,":");case"zzzz":default:return"GMT"+Cn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Y(r,t.length)},T:function(e,t,n){const r=e.getTime();return Y(r,t.length)}};function Qc(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return l===0?n+String(i):n+String(i)+t+Y(l,2)}function Hc(e,t){return e%60===0?(e>0?"-":"+")+Y(Math.abs(e)/60,2):Cn(e,t)}function Cn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Y(Math.trunc(r/60),2),l=Y(r%60,2);return n+i+t+l}const Vc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Zh=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},F0=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Vc(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",Vc(r,t)).replace("{{time}}",Zh(i,t))},j0={p:Zh,P:F0},I0=/^D+$/,z0=/^Y+$/,A0=["D","DD","YY","YYYY"];function U0(e){return I0.test(e)}function W0(e){return z0.test(e)}function $0(e,t,n){const r=B0(e,t,n);if(console.warn(r),A0.includes(e))throw new RangeError(r)}function B0(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Q0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,V0=/^'([^]*?)'?$/,Y0=/''/g,K0=/[a-zA-Z]/;function fi(e,t,n){var c,f,m,v;const r=xo(),i=r.locale??O0,l=r.firstWeekContainsDate??((f=(c=r.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??1,o=r.weekStartsOn??((v=(m=r.locale)==null?void 0:m.options)==null?void 0:v.weekStartsOn)??0,s=pt(e);if(!Gv(s))throw new RangeError("Invalid time value");let a=t.match(H0).map(w=>{const S=w[0];if(S==="p"||S==="P"){const E=j0[S];return E(w,i.formatLong)}return w}).join("").match(Q0).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const S=w[0];if(S==="'")return{isToken:!1,value:b0(w)};if(Bc[S])return{isToken:!0,value:w};if(S.match(K0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(a=i.localize.preprocessor(s,a));const u={firstWeekContainsDate:l,weekStartsOn:o,locale:i};return a.map(w=>{if(!w.isToken)return w.value;const S=w.value;(W0(S)||U0(S))&&$0(S,t,String(e));const E=Bc[S[0]];return E(s,S,i.localize,u)}).join("")}function b0(e){const t=e.match(V0);return t?t[1].replace(Y0,"'"):e}function G0({displayName:e,sessionCount:t,lastActivity:n,sessions:r,selectedId:i,onSelectSession:l,initialExpanded:o=!1}){const[s,a]=g.useState(o);return g.useEffect(()=>{i&&r.some(c=>{var f;return c.id===i||((f=c.agentSessions)==null?void 0:f.some(m=>m.id===i))})&&a(!0)},[i,r]),C.jsxs("div",{className:"border-b border-gray-700",children:[C.jsx("button",{onClick:()=>a(!s),className:"sticky top-0 z-10 w-full text-left p-4 bg-gray-900 hover:bg-gray-800 transition-colors flex items-center justify-between",children:C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("svg",{className:`w-4 h-4 transition-transform ${s?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),C.jsx("span",{className:"font-semibold text-sm truncate",children:e})]}),C.jsxs("div",{className:"text-xs text-gray-400 mt-1 ml-6",children:[t," session",t!==1?"s":""," · Last activity"," ",fi(new Date(n),"PPp")]})]})}),s&&C.jsx("div",{className:"bg-gray-900/50",children:r.map(u=>C.jsxs("div",{children:[C.jsxs("button",{onClick:()=>l(u.id),className:`w-full text-left px-4 py-3 pl-8 hover:bg-gray-700/50 transition-colors border-l-2 ${i===u.id?"bg-gray-700 border-blue-500":"border-transparent"}`,children:[u.title&&C.jsx("div",{className:"text-sm font-medium text-gray-200 mb-1 truncate",children:u.title}),C.jsx("div",{className:"text-xs text-gray-400",children:fi(new Date(u.timestamp),"PPpp")}),C.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[u.messageCount," message",u.messageCount!==1?"s":"",u.agentSessions&&u.agentSessions.length>0&&C.jsxs("span",{className:"ml-2",children:["· ",u.agentSessions.length," task",u.agentSessions.length!==1?"s":""]})]})]}),u.agentSessions&&u.agentSessions.length>0&&C.jsx("div",{className:"bg-gray-900/70",children:u.agentSessions.map(c=>C.jsxs("button",{onClick:()=>l(c.id),className:`w-full text-left px-4 py-2 pl-14 hover:bg-gray-700/50 transition-colors border-l-2 ${i===c.id?"bg-gray-700 border-blue-500":"border-transparent"}`,children:[C.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[C.jsx("span",{className:"px-1.5 py-0.5 text-xs bg-purple-900/50 text-purple-300 rounded",children:"TASK"}),c.title&&C.jsx("span",{className:"text-sm font-medium text-gray-300 truncate",children:c.title})]}),C.jsx("div",{className:"text-xs text-gray-400",children:fi(new Date(c.timestamp),"PPpp")}),C.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[c.messageCount," message",c.messageCount!==1?"s":""]})]},c.id))})]},u.id))})]})}function q0({projects:e,selectedId:t,onSelect:n}){const r=i=>t?i.sessions.some(l=>{var o;return l.id===t||((o=l.agentSessions)==null?void 0:o.some(s=>s.id===t))}):!1;return C.jsx("div",{children:e.map(i=>C.jsx(G0,{name:i.name,displayName:i.displayName,sessionCount:i.sessionCount,lastActivity:i.lastActivity,sessions:i.sessions,selectedId:t,onSelectSession:n,initialExpanded:r(i)},i.name))})}function X0({messages:e,activeId:t,onNavigate:n}){const[r,i]=g.useState([]),l=g.useRef(null),o=g.useRef(null);g.useEffect(()=>{const a=e.map((u,c)=>{var w;const f=`message-${c}`;let m="";const v=[];if((w=u.message)!=null&&w.content&&Array.isArray(u.message.content)){const S=u.message.content.find(E=>E.type==="text");S&&(m=S.text.slice(0,50)+(S.text.length>50?"...":"")),u.message.content.forEach(E=>{E.type==="tool_use"?v.push({name:E.name,type:"tool_use"}):E.type==="tool_result"&&v.push({name:"Tool Result",type:"tool_result"})})}return{id:f,type:u.type||"system",text:m,toolUses:v,timestamp:u.timestamp}});i(a)},[e]),g.useEffect(()=>{if(l.current&&o.current){const a=o.current,u=l.current,c=a.getBoundingClientRect(),f=u.getBoundingClientRect();(f.top<c.top||f.bottom>c.bottom)&&u.scrollIntoView({behavior:"smooth",block:"nearest"})}},[t]);const s=a=>{n(a,!0)};return C.jsxs("div",{className:"w-full h-full flex flex-col border-l border-gray-700 bg-gray-800",children:[C.jsxs("div",{className:"p-4 border-b border-gray-700 bg-gray-800 flex-shrink-0",children:[C.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Table of Contents"}),C.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[r.length," messages"]})]}),C.jsx("nav",{ref:o,className:"p-2 flex-1 overflow-y-auto",children:r.map((a,u)=>C.jsx("div",{className:"mb-1",children:C.jsxs("button",{ref:t===a.id?l:null,onClick:()=>s(a.id),className:`w-full text-left px-3 py-2 rounded text-xs transition-colors ${t===a.id?"bg-blue-900/50 text-blue-200 border-l-2 border-blue-400":"text-gray-400 hover:bg-gray-700 hover:text-gray-200"}`,style:{scrollMarginTop:"16px",scrollMarginBottom:"16px"},children:[C.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[C.jsx("span",{className:`px-1.5 py-0.5 text-[10px] rounded ${a.type==="user"?"bg-blue-900/50 text-blue-300":a.type==="assistant"?"bg-green-900/50 text-green-300":"bg-gray-700 text-gray-400"}`,children:a.type}),C.jsxs("span",{className:"text-gray-500",children:["#",u+1]})]}),a.text&&C.jsx("div",{className:"text-gray-300 line-clamp-2 leading-tight",children:a.text}),a.toolUses.length>0&&C.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:a.toolUses.map((c,f)=>C.jsxs("span",{className:`px-1.5 py-0.5 text-[10px] rounded font-mono ${c.type==="tool_result"?"bg-green-900/30 text-green-400":"bg-yellow-900/30 text-yellow-400"}`,children:[c.type==="tool_result"?"✓":"🔧"," ",c.name]},f))})]})},a.id))})]})}const ep=256,J0=640,Z0=896,ew=Z0+ep;function tw({sessionId:e}){var be,mt;const[t,n]=g.useState(null),[r,i]=g.useState(!0),[l,o]=g.useState(null),s=g.useRef(new Map),a=g.useRef(!1),u=g.useRef(null),c=g.useRef(null),f=g.useRef(null),m=g.useRef(null),v=g.useRef(!1),w=g.useRef(0),S=g.useRef(0),E=g.useRef(null),h=g.useRef(null),d=g.useRef(null),p=g.useRef(null),x=g.useRef(null),P=g.useRef(null),O=g.useRef(null),_=g.useRef(null),R=g.useRef(0),{data:j,isLoading:N,error:A}=Th({queryKey:["session",e],queryFn:async()=>{const k=await fetch(`/api/sessions/${e}`);if(!k.ok)throw new Error("Failed to fetch session");return k.json()}});g.useEffect(()=>{w.current=0,S.current=0,E.current!==null&&(cancelAnimationFrame(E.current),E.current=null),R.current=0,n(null),u.current=null,v.current=!1;const k=_.current;k&&(k.scrollTop=0)},[e]);const ce=k=>{const D=d.current;if(!D)return;const F=14+k*8,W=1.25+k*.25,z=k,re=k,Ne=Math.max(0,1-z);D.style.padding=`${F}px 24px`,p.current&&(p.current.style.fontSize=`${W}rem`),x.current&&(x.current.style.opacity=`${z}`,x.current.style.height=z>0?"auto":"0"),P.current&&(P.current.style.opacity=`${re}`,P.current.style.height=re>0?"auto":"0",P.current.style.marginTop=re>0?"1rem":"0"),O.current&&(O.current.style.opacity=`${Ne}`)};g.useEffect(()=>{const k=l;if(!k)return;const D=()=>{var Ee;const W=w.current,z=S.current,re=z+(W-z)*.2,Ne=k.scrollHeight-(re+k.clientHeight),$t=Ne<=5,se=re<R.current;let ae=v.current;ae?Ne>40&&(ae=!1):$t&&(ae=!0),v.current=ae;const Sn=Math.max(0,1-(se?0:ae?80:re)/80);ce(Sn),S.current=re,R.current=re,Math.abs(W-re)>.5?E.current=requestAnimationFrame(D):(S.current=W,R.current=W,E.current=null,ae&&((Ee=f.current)==null||Ee.call(f)))},F=()=>{w.current=k.scrollTop,E.current===null&&(E.current=requestAnimationFrame(D))};return k.addEventListener("scroll",F),()=>{k.removeEventListener("scroll",F),E.current!==null&&(cancelAnimationFrame(E.current),E.current=null)}},[e,l]),g.useEffect(()=>{if(!h.current)return;const k=h.current.parentElement??h.current,D=z=>{i(z>=ew)},F=new ResizeObserver(z=>{for(const re of z)D(re.contentRect.width)}),W=k.getBoundingClientRect().width;return D(W),F.observe(k),()=>{F.disconnect()}},[]),g.useEffect(()=>{var $t;if(!(($t=j==null?void 0:j.session)!=null&&$t.messages))return;const k=_.current;if(!k)return;const D=new Set;let F=null;const W=()=>{if(a.current)return;const se=[];s.current.forEach((Te,G)=>{const ye=Te.getBoundingClientRect();se.push({id:G,element:Te,rect:ye})}),se.sort((Te,G)=>Te.rect.top-G.rect.top);const ae=k.getBoundingClientRect(),yt=ae.top,Sn=ae.bottom;let Ee=null;for(const Te of se){const G=Te.rect.top>=yt&&Te.rect.bottom<=Sn,ye=Te.rect.bottom>yt&&Te.rect.top<Sn;if(G){Ee=Te.id;break}else ye&&!Ee&&(Ee=Te.id)}Ee&&Ee!==u.current&&n(Ee)},z=()=>{const se=m.current;if(a.current&&se){const G=s.current.get(se);if(G){const ye=k.getBoundingClientRect(),Ki=G.getBoundingClientRect();if(!(Ki.top>=ye.top&&Ki.top<=ye.top+5))return}a.current=!1,m.current=null}if(v.current){const G=j.session.messages.length-1,ye=G>=0?`message-${G}`:null;ye&&ye!==u.current&&n(ye);return}if(D.size===0){W();return}const ae=k.getBoundingClientRect(),yt=ae.top,Sn=ae.bottom;let Ee=null;const Te=Array.from(D).map(G=>{const ye=s.current.get(G);return ye?{id:G,rect:ye.getBoundingClientRect()}:null}).filter(G=>!!G);if(Te.length===0){W();return}Te.sort((G,ye)=>G.rect.top-ye.rect.top);for(const G of Te){const ye=G.rect.top>=yt&&G.rect.bottom<=Sn,Ki=G.rect.bottom>yt&&G.rect.top<Sn;if(ye){Ee=G.id;break}else Ki&&!Ee&&(Ee=G.id)}Ee&&Ee!==u.current&&n(Ee)},re=()=>{F!==null&&cancelAnimationFrame(F),F=requestAnimationFrame(()=>{F=null,z()})};f.current=z;const Ne=new IntersectionObserver(se=>{for(const ae of se){const yt=ae.target.dataset.messageId;yt&&(ae.isIntersecting?D.add(yt):D.delete(yt))}re()},{root:k,threshold:[0,.1,.5,1]});return s.current.forEach(se=>Ne.observe(se)),re(),()=>{Ne.disconnect(),f.current=null,F!==null&&cancelAnimationFrame(F)}},[(be=j==null?void 0:j.session)==null?void 0:be.messages,l]),g.useEffect(()=>{u.current=t},[t]),g.useEffect(()=>{ce(1)},[(mt=j==null?void 0:j.session)==null?void 0:mt.id]);const Se=g.useCallback(k=>{_.current=k,o(D=>D===k?D:k)},[]),xn=(k,D=!1)=>{if(n(k),D){a.current=!0,m.current=k,c.current&&(clearTimeout(c.current),c.current=null);const F=s.current.get(k);F&&F.scrollIntoView({behavior:"smooth",block:"start"}),c.current=setTimeout(()=>{var W;a.current=!1,m.current=null,c.current=null,(W=f.current)==null||W.call(f)},1500)}};if(g.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),N)return C.jsx("div",{className:"flex items-center justify-center h-full",children:C.jsx("div",{className:"text-gray-400",children:"Loading session..."})});if(A)return C.jsx("div",{className:"flex items-center justify-center h-full",children:C.jsxs("div",{className:"text-red-400",children:["Error: ",A.message]})});const U=j==null?void 0:j.session;return C.jsxs("div",{ref:h,className:"h-full flex min-w-0",children:[C.jsxs("div",{className:"flex-1 flex flex-col min-w-0",style:{minWidth:`${J0}px`},children:[C.jsxs("div",{ref:d,className:"border-b border-gray-700 bg-gray-800 flex-shrink-0 transition-all duration-200",style:{padding:"22px 24px"},children:[C.jsxs("div",{className:"flex items-center gap-2",children:[(U==null?void 0:U.isAgent)&&C.jsx("span",{className:"px-2 py-1 text-xs bg-purple-900/50 text-purple-300 rounded font-semibold",children:"TASK"}),C.jsx("h2",{ref:p,className:"font-bold truncate flex-1 transition-all duration-200",style:{fontSize:"1.5rem"},children:(U==null?void 0:U.title)||"Untitled Session"}),C.jsx("span",{ref:O,className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 rounded transition-opacity duration-200",style:{opacity:0},children:U==null?void 0:U.project})]}),C.jsx("div",{ref:x,className:"text-xl text-gray-300 transition-all duration-200",style:{opacity:1,height:"auto",overflow:"hidden",marginTop:"-2px"},children:U==null?void 0:U.project}),C.jsxs("div",{ref:P,className:"flex items-center gap-3 text-sm text-gray-400 transition-all duration-200",style:{opacity:1,height:"auto",overflow:"hidden",marginTop:"1rem"},children:[C.jsx("span",{children:(U==null?void 0:U.timestamp)&&fi(new Date(U.timestamp),"PPpp")}),C.jsx("span",{children:"•"}),C.jsxs("span",{children:[(U==null?void 0:U.messageCount)||0," message",(U==null?void 0:U.messageCount)!==1?"s":""]}),(U==null?void 0:U.agentSessions)&&U.agentSessions.length>0&&C.jsxs(C.Fragment,{children:[C.jsx("span",{children:"•"}),C.jsxs("span",{children:[U.agentSessions.length," task",U.agentSessions.length!==1?"s":""]})]})]})]}),C.jsx("div",{ref:Se,className:"flex-1 overflow-y-auto p-6",children:C.jsx("div",{className:"max-w-4xl mx-auto space-y-6",children:U==null?void 0:U.messages.map((k,D)=>{var W;const F=`message-${D}`;return C.jsxs("div",{ref:z=>{z?s.current.set(F,z):s.current.delete(F)},"data-message-id":F,className:"border-l-2 border-gray-700 pl-4",style:{scrollMarginTop:"24px"},children:[C.jsx("div",{className:"flex items-start justify-between mb-2",children:C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:`px-2 py-1 text-xs rounded ${k.type==="user"?"bg-blue-900 text-blue-200":k.type==="assistant"?"bg-green-900 text-green-200":"bg-gray-700 text-gray-300"}`,children:k.type||"system"}),C.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["#",D+1]}),k.timestamp&&C.jsx("span",{className:"text-xs text-gray-500",children:fi(new Date(k.timestamp),"HH:mm:ss")})]})}),C.jsx("div",{className:"bg-gray-800 rounded-lg p-4 text-sm",children:(W=k.message)!=null&&W.content&&Array.isArray(k.message.content)?C.jsx("div",{className:"space-y-2",children:k.message.content.map((z,re)=>C.jsxs("div",{children:[z.type==="text"&&C.jsx("p",{className:"whitespace-pre-wrap",children:z.text}),z.type==="tool_use"&&C.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[C.jsxs("div",{className:"flex items-center justify-between mb-2",children:[C.jsxs("div",{className:"text-yellow-400 font-mono text-xs",children:["🔧 ",z.name]}),z.name==="Task"&&z.agentId&&C.jsx(du,{to:`/sessions/agent-${z.agentId}`,className:"px-2 py-1 text-xs bg-purple-700 hover:bg-purple-600 text-purple-100 rounded transition-colors",children:"View Task →"})]}),C.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(z.input,null,2)})]}),z.type==="tool_result"&&C.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[C.jsx("div",{className:"text-green-400 font-mono text-xs mb-2",children:"✓ Tool Result"}),C.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:typeof z.content=="string"?z.content:JSON.stringify(z.content,null,2)})]})]},re))}):C.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(k,null,2)})})]},D)})})})]}),r&&(U==null?void 0:U.messages)&&U.messages.length>0&&C.jsx("div",{style:{width:`${ep}px`,flexShrink:0},children:C.jsx(X0,{messages:U.messages,activeId:t,onNavigate:xn})})]})}const tp=new Zy,Yc="claude-session-viewer-sidebar-width",nw=320,rw=200,iw=600;function Kc(){const e=Bh(),n=Gg().sessionId||null,[r,i]=g.useState(()=>{const R=localStorage.getItem(Yc);return R?parseInt(R,10):nw}),[l,o]=g.useState(!1),[s,a]=g.useState(0),[u,c]=g.useState(!1),f=g.useRef(null),m=g.useRef(null),v=g.useRef(0),{data:w,isLoading:S,error:E,refetch:h}=Th({queryKey:["sessions"],queryFn:async()=>{const R=await fetch("/api/sessions");if(!R.ok)throw new Error("Failed to fetch sessions");return R.json()}}),d=R=>{e(`/sessions/${R}`)};g.useEffect(()=>{const R=m.current;if(!R)return;const j=()=>{const N=R.scrollTop,A=N<v.current;a(N),c(A),v.current=N};return R.addEventListener("scroll",j),()=>R.removeEventListener("scroll",j)},[]),g.useEffect(()=>{const R=N=>{if(!l)return;const A=N.clientX;A>=rw&&A<=iw&&(i(A),localStorage.setItem(Yc,A.toString()))},j=()=>{o(!1),document.body.style.cursor="",document.body.style.userSelect=""};return l&&(document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",R),document.addEventListener("mouseup",j)),()=>{document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",j)}},[l]),g.useEffect(()=>{const j=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;let N=null,A=!1,ce=null,Se=0,xn=!0;const U=()=>{N=new WebSocket(j),A=!1,N.onopen=()=>{if(A){N==null||N.close();return}Se=0},N.onmessage=be=>{const mt=JSON.parse(be.data);(mt.type==="file-added"||mt.type==="file-changed"||mt.type==="file-deleted")&&(h(),n&&tp.invalidateQueries({queryKey:["session",n]}))},N.onerror=be=>{console.error("WebSocket error:",be)},N.onclose=()=>{if(!xn)return;const be=Math.min(1e3*2**Se,1e4);Se+=1,ce=setTimeout(U,be)}};return U(),()=>{xn=!1,ce&&clearTimeout(ce),N&&N.readyState===WebSocket.CONNECTING?A=!0:N==null||N.close()}},[h,n]);const x=Math.max(0,1-(u?0:s)/80),P=12+x*12,O=1.125+x*.375,_=x;return C.jsxs("div",{className:"flex h-screen bg-gray-900 text-white",children:[C.jsxs("div",{className:"relative flex flex-col",style:{width:`${r}px`},children:[C.jsxs("div",{ref:f,className:"border-r border-gray-700 h-full flex flex-col",children:[C.jsxs("div",{className:"border-b border-gray-700 flex-shrink-0 transition-all duration-200",style:{padding:`${P}px`},children:[C.jsx("h1",{className:"font-bold transition-all duration-200",style:{fontSize:`${O}rem`},children:"Claude Sessions"}),C.jsx("p",{className:"text-sm text-gray-400 mt-1 transition-opacity duration-200",style:{opacity:_,height:_>0?"auto":0,overflow:"hidden"},children:S?"Loading...":`${(w==null?void 0:w.projects.length)||0} project${(w==null?void 0:w.projects.length)!==1?"s":""}`})]}),C.jsx("div",{ref:m,className:"flex-1 overflow-y-auto",children:E?C.jsxs("div",{className:"p-4 text-red-400 text-sm",children:["Error loading sessions: ",E.message]}):C.jsx(q0,{projects:(w==null?void 0:w.projects)||[],selectedId:n,onSelect:d})})]}),C.jsx("div",{className:"absolute top-0 right-0 w-4 h-full cursor-col-resize group z-10",onMouseDown:R=>{R.preventDefault(),o(!0)},style:{touchAction:"none"},children:C.jsx("div",{className:`w-1 h-full ml-auto transition-colors ${l?"bg-blue-500":"bg-transparent group-hover:bg-blue-500"}`})})]}),C.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto",children:n?C.jsx(tw,{sessionId:n}):C.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:C.jsxs("div",{className:"text-center",children:[C.jsx("svg",{className:"mx-auto h-12 w-12 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),C.jsx("h3",{className:"mt-2 text-sm font-medium",children:"No session selected"}),C.jsx("p",{className:"mt-1 text-sm text-gray-600",children:"Select a session from the sidebar to view details"})]})})})]})}function lw(){return C.jsx(tg,{client:tp,children:C.jsx(Fv,{children:C.jsxs(cv,{children:[C.jsx(oa,{path:"/",element:C.jsx(Kc,{})}),C.jsx(oa,{path:"/sessions/:sessionId",element:C.jsx(Kc,{})})]})})})}Jo.createRoot(document.getElementById("root")).render(C.jsx(vp.StrictMode,{children:C.jsx(lw,{})}));
|